@everymatrix/player-account-controller-nd 1.0.69 → 1.0.71

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.
Files changed (59) hide show
  1. package/components/GeneralLogout-CA9TEW-a.cjs +8 -0
  2. package/components/GeneralLogout-DtE4YABi.js +4829 -0
  3. package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
  4. package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
  6. package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
  7. package/components/PlayerAccountClosureNd-B3Zq9k2d.cjs +1 -0
  8. package/components/PlayerAccountClosureNd-CHDX6d_o.js +339 -0
  9. package/components/PlayerAccountControllerNd-DIStkt_S.js +6166 -0
  10. package/components/PlayerAccountControllerNd-zAl7gjSL.cjs +1 -0
  11. package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
  12. package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
  24. package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2Nd-B02Mw4lh.js +844 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2Nd-BiSwua8y.cjs +1 -0
  27. package/components/PlayerAccountMenuNd-DU5_NtH9.js +587 -0
  28. package/components/PlayerAccountMenuNd-DwURI2AG.cjs +1 -0
  29. package/components/PlayerAccountModal-Blsborh1.js +198 -0
  30. package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
  31. package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
  32. package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
  33. package/components/PlayerAccountSelfExclusionNd-BPADa27T.js +15842 -0
  34. package/components/PlayerAccountSelfExclusionNd-DxHpS1Fj.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
  36. package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
  37. package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
  38. package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
  39. package/components/PlayerBonusCard-665KSNoF.js +555 -0
  40. package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
  41. package/components/PlayerBonusHistory-BIQHNNEB.js +824 -0
  42. package/components/PlayerBonusHistory-DkpMW9_f.cjs +1 -0
  43. package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
  44. package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
  45. package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
  46. package/components/PlayerDeposit-CqgNmu8i.js +395 -0
  47. package/components/PlayerGamingHistory-BAPUDgf0.cjs +1 -0
  48. package/components/PlayerGamingHistory-C4j3T8xX.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
  50. package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
  51. package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
  52. package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
  53. package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
  54. package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
  55. package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
  56. package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
  57. package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
  58. package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
  59. package/package.json +23 -22
@@ -0,0 +1,307 @@
1
+ import { a as H, $ as q, S as O, i as X, f as v, c as D, s as G, b as V, e as b, d as C, t as x, g as c, k as M, l as g, n as L, o as B, p as T, q as Y, u as Z, w as _, m as J, x as K, X as E, y as Q } from "./GeneralLogout-DtE4YABi.js";
2
+ function S(n, e) {
3
+ H(n, e);
4
+ }
5
+ function $(n) {
6
+ q.set(n);
7
+ }
8
+ const j = {
9
+ en: {
10
+ titlePendingWithdrawals: "Pending Withdrawal",
11
+ loading: "Loading, please wait ..."
12
+ },
13
+ "zh-hk": {
14
+ titlePendingWithdrawals: "待取款",
15
+ loading: "加載請稍候…"
16
+ },
17
+ fr: {
18
+ titlePendingWithdrawals: "Retrait en cours",
19
+ loading: "Chargement, veuillez patienter ..."
20
+ },
21
+ ro: {
22
+ titlePendingWithdrawals: "Retragere în așteptare",
23
+ loading: "Se încarcă..."
24
+ },
25
+ es: {
26
+ titlePendingWithdrawals: "Retiro Pendiente",
27
+ loading: "Cargando..."
28
+ },
29
+ pt: {
30
+ titlePendingWithdrawals: "Retirada pendente",
31
+ loading: "Carregando, por favor espere ..."
32
+ },
33
+ hr: {
34
+ titlePendingWithdrawals: "Isplate na čekanju",
35
+ loading: "Učitavanje"
36
+ },
37
+ tr: {
38
+ titlePendingWithdrawals: "Çekilme Bekleniyor",
39
+ loading: "Yükleniyor lütfen bekleyin ..."
40
+ }
41
+ };
42
+ function ee(n) {
43
+ V(n, "svelte-177etwb", ".PendingWithdrawalsWrapper.svelte-177etwb.svelte-177etwb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile.svelte-177etwb.svelte-177etwb{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-177etwb.svelte-177etwb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-177etwb svg.svelte-177etwb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PendingWithdrawalsTitle.svelte-177etwb.svelte-177etwb{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.PendingWithdrawalsTitleMobile.svelte-177etwb.svelte-177etwb{font-size:var(--emw--size-standard, 16px)}.PendingWithdrawalsTitleNone.svelte-177etwb.svelte-177etwb{display:none}.PendingWithdrawalsIframeWrapper.svelte-177etwb iframe.svelte-177etwb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
44
+ }
45
+ function te(n) {
46
+ let e, t, r, i, o, h, d, u, w, s, a = (
47
+ /*$_*/
48
+ n[3]("titlePendingWithdrawals") + ""
49
+ ), f, W, P;
50
+ return {
51
+ c() {
52
+ e = b("div"), t = _("svg"), r = _("defs"), i = _("style"), o = x(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), h = _("g"), d = _("g"), u = _("path"), w = C(), s = b("h2"), f = x(a), c(u, "class", "aaa"), c(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(u, "transform", "translate(15 15) rotate(180)"), c(d, "transform", "translate(20 158)"), c(h, "transform", "translate(-20 -158)"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(t, "width", "15"), c(t, "height", "15"), c(t, "viewBox", "0 0 15 15"), c(t, "class", "svelte-177etwb"), c(s, "class", "PendingWithdrawalsTitleMobile svelte-177etwb"), c(e, "class", "MenuReturnButton svelte-177etwb");
53
+ },
54
+ m(y, k) {
55
+ M(y, e, k), g(e, t), g(t, r), g(r, i), g(i, o), g(t, h), g(h, d), g(d, u), g(e, w), g(e, s), g(s, f), W || (P = J(
56
+ e,
57
+ "click",
58
+ /*click_handler*/
59
+ n[13]
60
+ ), W = !0);
61
+ },
62
+ p(y, k) {
63
+ k & /*$_*/
64
+ 8 && a !== (a = /*$_*/
65
+ y[3]("titlePendingWithdrawals") + "") && L(f, a);
66
+ },
67
+ d(y) {
68
+ y && T(e), W = !1, P();
69
+ }
70
+ };
71
+ }
72
+ function ne(n) {
73
+ let e, t, r;
74
+ return {
75
+ c() {
76
+ e = b("div"), t = b("iframe"), E(t.src, r = /*iframeUrl*/
77
+ n[2]) || c(t, "src", r), c(t, "title", "Pending Withdrawals Iframe"), c(t, "class", "svelte-177etwb"), c(e, "class", "PendingWithdrawalsIframeWrapper svelte-177etwb");
78
+ },
79
+ m(i, o) {
80
+ M(i, e, o), g(e, t);
81
+ },
82
+ p(i, o) {
83
+ o & /*iframeUrl*/
84
+ 4 && !E(t.src, r = /*iframeUrl*/
85
+ i[2]) && c(t, "src", r);
86
+ },
87
+ d(i) {
88
+ i && T(e);
89
+ }
90
+ };
91
+ }
92
+ function le(n) {
93
+ let e, t = (
94
+ /*$_*/
95
+ n[3]("loading") + ""
96
+ ), r;
97
+ return {
98
+ c() {
99
+ e = b("p"), r = x(t);
100
+ },
101
+ m(i, o) {
102
+ M(i, e, o), g(e, r);
103
+ },
104
+ p(i, o) {
105
+ o & /*$_*/
106
+ 8 && t !== (t = /*$_*/
107
+ i[3]("loading") + "") && L(r, t);
108
+ },
109
+ d(i) {
110
+ i && T(e);
111
+ }
112
+ };
113
+ }
114
+ function ie(n) {
115
+ let e, t, r, i = (
116
+ /*$_*/
117
+ n[3]("titlePendingWithdrawals") + ""
118
+ ), o, h, d = (
119
+ /*isMobile*/
120
+ n[4] && te(n)
121
+ );
122
+ function u(a, f) {
123
+ return (
124
+ /*isLoading*/
125
+ a[1] ? le : ne
126
+ );
127
+ }
128
+ let w = u(n), s = w(n);
129
+ return {
130
+ c() {
131
+ e = b("div"), d && d.c(), t = C(), r = b("h2"), o = x(i), h = C(), s.c(), c(r, "class", "PendingWithdrawalsTitle " + /*isMobile*/
132
+ (n[4] ? "PendingWithdrawalsTitleNone" : "") + " svelte-177etwb"), c(e, "class", "PendingWithdrawalsWrapper " + /*isMobile*/
133
+ (n[4] ? "PendingWithdrawalsWrapperMobile" : "") + " svelte-177etwb");
134
+ },
135
+ m(a, f) {
136
+ M(a, e, f), d && d.m(e, null), g(e, t), g(e, r), g(r, o), g(e, h), s.m(e, null), n[14](e);
137
+ },
138
+ p(a, [f]) {
139
+ /*isMobile*/
140
+ a[4] && d.p(a, f), f & /*$_*/
141
+ 8 && i !== (i = /*$_*/
142
+ a[3]("titlePendingWithdrawals") + "") && L(o, i), w === (w = u(a)) && s ? s.p(a, f) : (s.d(1), s = w(a), s && (s.c(), s.m(e, null)));
143
+ },
144
+ i: B,
145
+ o: B,
146
+ d(a) {
147
+ a && T(e), d && d.d(), s.d(), n[14](null);
148
+ }
149
+ };
150
+ }
151
+ function ae(n, e, t) {
152
+ let r;
153
+ Y(n, Q, (l) => t(3, r = l));
154
+ let { endpoint: i = "" } = e, { session: o = "" } = e, { playerid: h = "" } = e, { lang: d = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: w = "" } = e, { translationurl: s = "" } = e, a, f = window.navigator.userAgent, W = Z(f) !== "PC", P = !0, y = "";
155
+ const k = () => {
156
+ fetch(s).then((p) => p.json()).then((p) => {
157
+ Object.keys(p).forEach((m) => {
158
+ S(m, p[m]);
159
+ });
160
+ }).catch((p) => {
161
+ console.log(p);
162
+ });
163
+ };
164
+ Object.keys(j).forEach((l) => {
165
+ S(l, j[l]);
166
+ });
167
+ const R = () => {
168
+ window.postMessage(
169
+ {
170
+ type: "PlayerAccountMenuActive",
171
+ isMobile: W
172
+ },
173
+ window.location.href
174
+ );
175
+ }, A = () => {
176
+ let l = new URL(`${i}/v1/player/${h}/hostedcashier/pendingwithdrawals`);
177
+ l.searchParams.append("language", d);
178
+ let p = {
179
+ method: "GET",
180
+ headers: {
181
+ "X-SessionId": o,
182
+ accept: "application/json"
183
+ }
184
+ };
185
+ fetch(l.href, p).then((m) => m.json()).then(
186
+ (m) => {
187
+ t(1, P = !1), t(2, y = m.CashierUrl);
188
+ },
189
+ (m) => {
190
+ console.error(m);
191
+ }
192
+ );
193
+ }, I = () => {
194
+ $(d);
195
+ }, U = () => {
196
+ let l = document.createElement("style");
197
+ l.innerHTML = u, a.appendChild(l);
198
+ }, z = () => {
199
+ let l = new URL(w), p = document.createElement("style");
200
+ fetch(l.href).then((m) => m.text()).then((m) => {
201
+ p.innerHTML = m, setTimeout(
202
+ () => {
203
+ a.appendChild(p);
204
+ },
205
+ 1
206
+ );
207
+ });
208
+ }, N = () => R();
209
+ function F(l) {
210
+ K[l ? "unshift" : "push"](() => {
211
+ a = l, t(0, a);
212
+ });
213
+ }
214
+ return n.$$set = (l) => {
215
+ "endpoint" in l && t(6, i = l.endpoint), "session" in l && t(7, o = l.session), "playerid" in l && t(8, h = l.playerid), "lang" in l && t(9, d = l.lang), "clientstyling" in l && t(10, u = l.clientstyling), "clientstylingurl" in l && t(11, w = l.clientstylingurl), "translationurl" in l && t(12, s = l.translationurl);
216
+ }, n.$$.update = () => {
217
+ n.$$.dirty & /*lang*/
218
+ 512 && d && I(), n.$$.dirty & /*session, playerid, endpoint, lang*/
219
+ 960 && o && h && i && d && A(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
220
+ 2049 && w && a && z(), n.$$.dirty & /*clientstyling, customStylingContainer*/
221
+ 1025 && u && a && U(), n.$$.dirty & /*translationurl*/
222
+ 4096 && s && k();
223
+ }, [
224
+ a,
225
+ P,
226
+ y,
227
+ r,
228
+ W,
229
+ R,
230
+ i,
231
+ o,
232
+ h,
233
+ d,
234
+ u,
235
+ w,
236
+ s,
237
+ N,
238
+ F
239
+ ];
240
+ }
241
+ class re extends O {
242
+ constructor(e) {
243
+ super(), X(
244
+ this,
245
+ e,
246
+ ae,
247
+ ie,
248
+ G,
249
+ {
250
+ endpoint: 6,
251
+ session: 7,
252
+ playerid: 8,
253
+ lang: 9,
254
+ clientstyling: 10,
255
+ clientstylingurl: 11,
256
+ translationurl: 12
257
+ },
258
+ ee
259
+ );
260
+ }
261
+ get endpoint() {
262
+ return this.$$.ctx[6];
263
+ }
264
+ set endpoint(e) {
265
+ this.$$set({ endpoint: e }), v();
266
+ }
267
+ get session() {
268
+ return this.$$.ctx[7];
269
+ }
270
+ set session(e) {
271
+ this.$$set({ session: e }), v();
272
+ }
273
+ get playerid() {
274
+ return this.$$.ctx[8];
275
+ }
276
+ set playerid(e) {
277
+ this.$$set({ playerid: e }), v();
278
+ }
279
+ get lang() {
280
+ return this.$$.ctx[9];
281
+ }
282
+ set lang(e) {
283
+ this.$$set({ lang: e }), v();
284
+ }
285
+ get clientstyling() {
286
+ return this.$$.ctx[10];
287
+ }
288
+ set clientstyling(e) {
289
+ this.$$set({ clientstyling: e }), v();
290
+ }
291
+ get clientstylingurl() {
292
+ return this.$$.ctx[11];
293
+ }
294
+ set clientstylingurl(e) {
295
+ this.$$set({ clientstylingurl: e }), v();
296
+ }
297
+ get translationurl() {
298
+ return this.$$.ctx[12];
299
+ }
300
+ set translationurl(e) {
301
+ this.$$set({ translationurl: e }), v();
302
+ }
303
+ }
304
+ D(re, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
305
+ export {
306
+ re as default
307
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CA9TEW-a.cjs");function W(l,t){e.addMessages(l,t)}function S(l){e.$locale.set(l)}const P={en:{titlePendingWithdrawals:"Pending Withdrawal",loading:"Loading, please wait ..."},"zh-hk":{titlePendingWithdrawals:"待取款",loading:"加載請稍候…"},fr:{titlePendingWithdrawals:"Retrait en cours",loading:"Chargement, veuillez patienter ..."},ro:{titlePendingWithdrawals:"Retragere în așteptare",loading:"Se încarcă..."},es:{titlePendingWithdrawals:"Retiro Pendiente",loading:"Cargando..."},pt:{titlePendingWithdrawals:"Retirada pendente",loading:"Carregando, por favor espere ..."},hr:{titlePendingWithdrawals:"Isplate na čekanju",loading:"Učitavanje"},tr:{titlePendingWithdrawals:"Çekilme Bekleniyor",loading:"Yükleniyor lütfen bekleyin ..."}};function B(l){e.append_styles(l,"svelte-177etwb",".PendingWithdrawalsWrapper.svelte-177etwb.svelte-177etwb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.PendingWithdrawalsWrapper.PendingWithdrawalsWrapperMobile.svelte-177etwb.svelte-177etwb{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-177etwb.svelte-177etwb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-177etwb svg.svelte-177etwb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PendingWithdrawalsTitle.svelte-177etwb.svelte-177etwb{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.PendingWithdrawalsTitleMobile.svelte-177etwb.svelte-177etwb{font-size:var(--emw--size-standard, 16px)}.PendingWithdrawalsTitleNone.svelte-177etwb.svelte-177etwb{display:none}.PendingWithdrawalsIframeWrapper.svelte-177etwb iframe.svelte-177etwb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function E(l){let t,n,s,a,o,u,c,g,h,d,r=l[3]("titlePendingWithdrawals")+"",p,v,y;return{c(){t=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("defs"),a=e.svg_element("style"),o=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=e.svg_element("g"),c=e.svg_element("g"),g=e.svg_element("path"),h=e.space(),d=e.element("h2"),p=e.text(r),e.attr(g,"class","aaa"),e.attr(g,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(g,"transform","translate(15 15) rotate(180)"),e.attr(c,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(n,"class","svelte-177etwb"),e.attr(d,"class","PendingWithdrawalsTitleMobile svelte-177etwb"),e.attr(t,"class","MenuReturnButton svelte-177etwb")},m(f,b){e.insert(f,t,b),e.append(t,n),e.append(n,s),e.append(s,a),e.append(a,o),e.append(n,u),e.append(u,c),e.append(c,g),e.append(t,h),e.append(t,d),e.append(d,p),v||(y=e.listen(t,"click",l[13]),v=!0)},p(f,b){b&8&&r!==(r=f[3]("titlePendingWithdrawals")+"")&&e.set_data(p,r)},d(f){f&&e.detach(t),v=!1,y()}}}function j(l){let t,n,s;return{c(){t=e.element("div"),n=e.element("iframe"),e.src_url_equal(n.src,s=l[2])||e.attr(n,"src",s),e.attr(n,"title","Pending Withdrawals Iframe"),e.attr(n,"class","svelte-177etwb"),e.attr(t,"class","PendingWithdrawalsIframeWrapper svelte-177etwb")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o&4&&!e.src_url_equal(n.src,s=a[2])&&e.attr(n,"src",s)},d(a){a&&e.detach(t)}}}function A(l){let t,n=l[3]("loading")+"",s;return{c(){t=e.element("p"),s=e.text(n)},m(a,o){e.insert(a,t,o),e.append(t,s)},p(a,o){o&8&&n!==(n=a[3]("loading")+"")&&e.set_data(s,n)},d(a){a&&e.detach(t)}}}function I(l){let t,n,s,a=l[3]("titlePendingWithdrawals")+"",o,u,c=l[4]&&E(l);function g(r,p){return r[1]?A:j}let h=g(l),d=h(l);return{c(){t=e.element("div"),c&&c.c(),n=e.space(),s=e.element("h2"),o=e.text(a),u=e.space(),d.c(),e.attr(s,"class","PendingWithdrawalsTitle "+(l[4]?"PendingWithdrawalsTitleNone":"")+" svelte-177etwb"),e.attr(t,"class","PendingWithdrawalsWrapper "+(l[4]?"PendingWithdrawalsWrapperMobile":"")+" svelte-177etwb")},m(r,p){e.insert(r,t,p),c&&c.m(t,null),e.append(t,n),e.append(t,s),e.append(s,o),e.append(t,u),d.m(t,null),l[14](t)},p(r,[p]){r[4]&&c.p(r,p),p&8&&a!==(a=r[3]("titlePendingWithdrawals")+"")&&e.set_data(o,a),h===(h=g(r))&&d?d.p(r,p):(d.d(1),d=h(r),d&&(d.c(),d.m(t,null)))},i:e.noop,o:e.noop,d(r){r&&e.detach(t),c&&c.d(),d.d(),l[14](null)}}}function U(l,t,n){let s;e.component_subscribe(l,e.$format,i=>n(3,s=i));let{endpoint:a=""}=t,{session:o=""}=t,{playerid:u=""}=t,{lang:c="en"}=t,{clientstyling:g=""}=t,{clientstylingurl:h=""}=t,{translationurl:d=""}=t,r,p=window.navigator.userAgent,v=e.getDevice(p)!=="PC",y=!0,f="";const b=()=>{fetch(d).then(m=>m.json()).then(m=>{Object.keys(m).forEach(w=>{W(w,m[w])})}).catch(m=>{console.log(m)})};Object.keys(P).forEach(i=>{W(i,P[i])});const _=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:v},window.location.href)},x=()=>{let i=new URL(`${a}/v1/player/${u}/hostedcashier/pendingwithdrawals`);i.searchParams.append("language",c);let m={method:"GET",headers:{"X-SessionId":o,accept:"application/json"}};fetch(i.href,m).then(w=>w.json()).then(w=>{n(1,y=!1),n(2,f=w.CashierUrl)},w=>{console.error(w)})},M=()=>{S(c)},T=()=>{let i=document.createElement("style");i.innerHTML=g,r.appendChild(i)},L=()=>{let i=new URL(h),m=document.createElement("style");fetch(i.href).then(w=>w.text()).then(w=>{m.innerHTML=w,setTimeout(()=>{r.appendChild(m)},1)})},C=()=>_();function R(i){e.binding_callbacks[i?"unshift":"push"](()=>{r=i,n(0,r)})}return l.$$set=i=>{"endpoint"in i&&n(6,a=i.endpoint),"session"in i&&n(7,o=i.session),"playerid"in i&&n(8,u=i.playerid),"lang"in i&&n(9,c=i.lang),"clientstyling"in i&&n(10,g=i.clientstyling),"clientstylingurl"in i&&n(11,h=i.clientstylingurl),"translationurl"in i&&n(12,d=i.translationurl)},l.$$.update=()=>{l.$$.dirty&512&&c&&M(),l.$$.dirty&960&&o&&u&&a&&c&&x(),l.$$.dirty&2049&&h&&r&&L(),l.$$.dirty&1025&&g&&r&&T(),l.$$.dirty&4096&&d&&b()},[r,y,f,s,v,_,a,o,u,c,g,h,d,C,R]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,U,I,e.safe_not_equal,{endpoint:6,session:7,playerid:8,lang:9,clientstyling:10,clientstylingurl:11,translationurl:12},B)}get endpoint(){return this.$$.ctx[6]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[7]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[8]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(k,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=k;