@everymatrix/player-account-controller 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.
- package/components/GeneralLogout-CA9TEW-a.cjs +8 -0
- package/components/GeneralLogout-DtE4YABi.js +4829 -0
- package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
- package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
- package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
- package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
- package/components/PlayerAccountClosure-B3Zq9k2d.cjs +1 -0
- package/components/PlayerAccountClosure-CHDX6d_o.js +339 -0
- package/components/PlayerAccountController-CdygDjsk.js +6188 -0
- package/components/PlayerAccountController-D9QoMCz_.cjs +1 -0
- package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
- package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
- package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
- package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
- package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
- package/components/PlayerAccountGamingLimitsWrapper2-CQ1mGZNj.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-DWdHKdUm.js +844 -0
- package/components/PlayerAccountMenu-Bh0HKBfq.js +587 -0
- package/components/PlayerAccountMenu-D4sBRaIm.cjs +1 -0
- package/components/PlayerAccountModal-Blsborh1.js +198 -0
- package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
- package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
- package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
- package/components/PlayerAccountSelfExclusion-BPADa27T.js +15842 -0
- package/components/PlayerAccountSelfExclusion-DxHpS1Fj.cjs +3693 -0
- package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
- package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
- package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
- package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
- package/components/PlayerBonusCard-665KSNoF.js +555 -0
- package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
- package/components/PlayerBonusHistory-BaBcSSSm.js +824 -0
- package/components/PlayerBonusHistory-Dzk7jL5w.cjs +1 -0
- package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
- package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
- package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
- package/components/PlayerDeposit-CqgNmu8i.js +395 -0
- package/components/PlayerGamingHistory-CmufIVok.cjs +1 -0
- package/components/PlayerGamingHistory-ovbzB3YP.js +920 -0
- package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
- package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
- package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
- package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
- package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
- package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
- package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
- package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
- package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
- package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
- package/package.json +23 -22
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { Y as T, S as B, i as F, f as d, c as P, s as R, b as U, B as W, k as S, H as y, I as m, Z as j, p as k, v as q, D as A, e as h, g as f, l as p, E as G, F as I, G as N, P as Y, _ as v, a0 as Z, x as M } from "./GeneralLogout-DtE4YABi.js";
|
|
2
|
+
function z(t, { delay: e = 0, duration: i = 400, easing: n = T } = {}) {
|
|
3
|
+
const s = +getComputedStyle(t).opacity;
|
|
4
|
+
return {
|
|
5
|
+
delay: e,
|
|
6
|
+
duration: i,
|
|
7
|
+
easing: n,
|
|
8
|
+
css: (o) => `opacity: ${o * s}`
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function J(t) {
|
|
12
|
+
U(t, "svelte-eulycz", ".svelte-eulycz,.svelte-eulycz::before,.svelte-eulycz::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-eulycz{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}");
|
|
13
|
+
}
|
|
14
|
+
function C(t) {
|
|
15
|
+
let e, i, n, s, o;
|
|
16
|
+
const c = (
|
|
17
|
+
/*#slots*/
|
|
18
|
+
t[7].default
|
|
19
|
+
), r = A(
|
|
20
|
+
c,
|
|
21
|
+
t,
|
|
22
|
+
/*$$scope*/
|
|
23
|
+
t[6],
|
|
24
|
+
null
|
|
25
|
+
);
|
|
26
|
+
return {
|
|
27
|
+
c() {
|
|
28
|
+
e = h("div"), i = h("div"), n = h("div"), r && r.c(), f(n, "class", "ModalContainer svelte-eulycz"), f(i, "class", "ModalWindow svelte-eulycz"), f(i, "id", "Modal"), f(e, "class", "svelte-eulycz");
|
|
29
|
+
},
|
|
30
|
+
m(a, u) {
|
|
31
|
+
S(a, e, u), p(e, i), p(i, n), r && r.m(n, null), t[8](i), t[9](e), o = !0;
|
|
32
|
+
},
|
|
33
|
+
p(a, u) {
|
|
34
|
+
t = a, r && r.p && (!o || u & /*$$scope*/
|
|
35
|
+
64) && G(
|
|
36
|
+
r,
|
|
37
|
+
c,
|
|
38
|
+
t,
|
|
39
|
+
/*$$scope*/
|
|
40
|
+
t[6],
|
|
41
|
+
o ? N(
|
|
42
|
+
c,
|
|
43
|
+
/*$$scope*/
|
|
44
|
+
t[6],
|
|
45
|
+
u,
|
|
46
|
+
null
|
|
47
|
+
) : I(
|
|
48
|
+
/*$$scope*/
|
|
49
|
+
t[6]
|
|
50
|
+
),
|
|
51
|
+
null
|
|
52
|
+
);
|
|
53
|
+
},
|
|
54
|
+
i(a) {
|
|
55
|
+
o || (y(r, a), a && Y(() => {
|
|
56
|
+
o && (s || (s = v(i, z, { transitionDuration: (
|
|
57
|
+
/*duration*/
|
|
58
|
+
t[1]
|
|
59
|
+
) }, !0)), s.run(1));
|
|
60
|
+
}), o = !0);
|
|
61
|
+
},
|
|
62
|
+
o(a) {
|
|
63
|
+
m(r, a), a && (s || (s = v(i, z, { transitionDuration: (
|
|
64
|
+
/*duration*/
|
|
65
|
+
t[1]
|
|
66
|
+
) }, !1)), s.run(0)), o = !1;
|
|
67
|
+
},
|
|
68
|
+
d(a) {
|
|
69
|
+
a && k(e), r && r.d(a), t[8](null), a && s && s.end(), t[9](null);
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function K(t) {
|
|
74
|
+
let e, i, n = (
|
|
75
|
+
/*show*/
|
|
76
|
+
t[0] && C(t)
|
|
77
|
+
);
|
|
78
|
+
return {
|
|
79
|
+
c() {
|
|
80
|
+
n && n.c(), e = W();
|
|
81
|
+
},
|
|
82
|
+
m(s, o) {
|
|
83
|
+
n && n.m(s, o), S(s, e, o), i = !0;
|
|
84
|
+
},
|
|
85
|
+
p(s, [o]) {
|
|
86
|
+
/*show*/
|
|
87
|
+
s[0] ? n ? (n.p(s, o), o & /*show*/
|
|
88
|
+
1 && y(n, 1)) : (n = C(s), n.c(), y(n, 1), n.m(e.parentNode, e)) : n && (Z(), m(n, 1, 1, () => {
|
|
89
|
+
n = null;
|
|
90
|
+
}), j());
|
|
91
|
+
},
|
|
92
|
+
i(s) {
|
|
93
|
+
i || (y(n), i = !0);
|
|
94
|
+
},
|
|
95
|
+
o(s) {
|
|
96
|
+
m(n), i = !1;
|
|
97
|
+
},
|
|
98
|
+
d(s) {
|
|
99
|
+
s && k(e), n && n.d(s);
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function O(t, e, i) {
|
|
104
|
+
let { $$slots: n = {}, $$scope: s } = e, { show: o = !1 } = e, { duration: c = 350 } = e, { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, u, _;
|
|
105
|
+
const w = (l) => {
|
|
106
|
+
l.data.type == "ModalClosed" && i(0, o = !1), l.data.type === "ShowLimitsConfirmationModal" && (i(0, o = !0), window.postMessage({ type: "DisableScroll" }, window.location.href));
|
|
107
|
+
}, L = () => {
|
|
108
|
+
let l = document.createElement("style");
|
|
109
|
+
l.innerHTML = r, u.appendChild(l);
|
|
110
|
+
}, E = () => {
|
|
111
|
+
let l = new URL(a), b = document.createElement("style");
|
|
112
|
+
fetch(l.href).then((g) => g.text()).then((g) => {
|
|
113
|
+
b.innerHTML = g, setTimeout(
|
|
114
|
+
() => {
|
|
115
|
+
u.appendChild(b);
|
|
116
|
+
},
|
|
117
|
+
1
|
|
118
|
+
);
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
q(() => (window.addEventListener("message", w, !1), () => {
|
|
122
|
+
window.removeEventListener("message", w);
|
|
123
|
+
}));
|
|
124
|
+
function D(l) {
|
|
125
|
+
M[l ? "unshift" : "push"](() => {
|
|
126
|
+
_ = l, i(3, _);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function H(l) {
|
|
130
|
+
M[l ? "unshift" : "push"](() => {
|
|
131
|
+
u = l, i(2, u);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return t.$$set = (l) => {
|
|
135
|
+
"show" in l && i(0, o = l.show), "duration" in l && i(1, c = l.duration), "clientstyling" in l && i(4, r = l.clientstyling), "clientstylingurl" in l && i(5, a = l.clientstylingurl), "$$scope" in l && i(6, s = l.$$scope);
|
|
136
|
+
}, t.$$.update = () => {
|
|
137
|
+
t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
138
|
+
36 && a && u && E(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
139
|
+
20 && r && u && L();
|
|
140
|
+
}, [
|
|
141
|
+
o,
|
|
142
|
+
c,
|
|
143
|
+
u,
|
|
144
|
+
_,
|
|
145
|
+
r,
|
|
146
|
+
a,
|
|
147
|
+
s,
|
|
148
|
+
n,
|
|
149
|
+
D,
|
|
150
|
+
H
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
class Q extends B {
|
|
154
|
+
constructor(e) {
|
|
155
|
+
super(), F(
|
|
156
|
+
this,
|
|
157
|
+
e,
|
|
158
|
+
O,
|
|
159
|
+
K,
|
|
160
|
+
R,
|
|
161
|
+
{
|
|
162
|
+
show: 0,
|
|
163
|
+
duration: 1,
|
|
164
|
+
clientstyling: 4,
|
|
165
|
+
clientstylingurl: 5
|
|
166
|
+
},
|
|
167
|
+
J
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
get show() {
|
|
171
|
+
return this.$$.ctx[0];
|
|
172
|
+
}
|
|
173
|
+
set show(e) {
|
|
174
|
+
this.$$set({ show: e }), d();
|
|
175
|
+
}
|
|
176
|
+
get duration() {
|
|
177
|
+
return this.$$.ctx[1];
|
|
178
|
+
}
|
|
179
|
+
set duration(e) {
|
|
180
|
+
this.$$set({ duration: e }), d();
|
|
181
|
+
}
|
|
182
|
+
get clientstyling() {
|
|
183
|
+
return this.$$.ctx[4];
|
|
184
|
+
}
|
|
185
|
+
set clientstyling(e) {
|
|
186
|
+
this.$$set({ clientstyling: e }), d();
|
|
187
|
+
}
|
|
188
|
+
get clientstylingurl() {
|
|
189
|
+
return this.$$.ctx[5];
|
|
190
|
+
}
|
|
191
|
+
set clientstylingurl(e) {
|
|
192
|
+
this.$$set({ clientstylingurl: e }), d();
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
P(Q, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {} }, ["default"], [], !0);
|
|
196
|
+
export {
|
|
197
|
+
Q as default
|
|
198
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-CA9TEW-a.cjs");function h(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function z(n){t.append_styles(n,"svelte-eulycz",".svelte-eulycz,.svelte-eulycz::before,.svelte-eulycz::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-eulycz{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}")}function m(n){let e,l,i,s,r;const d=n[7].default,a=t.create_slot(d,n,n[6],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),a&&a.c(),t.attr(i,"class","ModalContainer svelte-eulycz"),t.attr(l,"class","ModalWindow svelte-eulycz"),t.attr(l,"id","Modal"),t.attr(e,"class","svelte-eulycz")},m(u,c){t.insert(u,e,c),t.append(e,l),t.append(l,i),a&&a.m(i,null),n[8](l),n[9](e),r=!0},p(u,c){n=u,a&&a.p&&(!r||c&64)&&t.update_slot_base(a,d,n,n[6],r?t.get_slot_changes(d,n[6],c,null):t.get_all_dirty_from_scope(n[6]),null)},i(u){r||(t.transition_in(a,u),u&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,h,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(u){t.transition_out(a,u),u&&(s||(s=t.create_bidirectional_transition(l,h,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(u){u&&t.detach(e),a&&a.d(u),n[8](null),u&&s&&s.end(),n[9](null)}}}function C(n){let e,l,i=n[0]&&m(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=m(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function S(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:d=350}=e,{clientstyling:a=""}=e,{clientstylingurl:u=""}=e,c,f;const y=o=>{o.data.type=="ModalClosed"&&l(0,r=!1),o.data.type==="ShowLimitsConfirmationModal"&&(l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))},w=()=>{let o=document.createElement("style");o.innerHTML=a,c.appendChild(o)},p=()=>{let o=new URL(u),g=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{c.appendChild(g)},1)})};t.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function v(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(3,f)})}function M(o){t.binding_callbacks[o?"unshift":"push"](()=>{c=o,l(2,c)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,d=o.duration),"clientstyling"in o&&l(4,a=o.clientstyling),"clientstylingurl"in o&&l(5,u=o.clientstylingurl),"$$scope"in o&&l(6,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&u&&c&&p(),n.$$.dirty&20&&a&&c&&w()},[r,d,c,f,a,u,s,i,v,M]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,S,C,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5},z)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-CA9TEW-a.cjs");function P(o){t.append_styles(o,"svelte-pyshfk",'.PlayerAccountNotificationsContainer.svelte-pyshfk.svelte-pyshfk{padding:0 5px}.PlayerAccountNotificationBox.svelte-pyshfk.svelte-pyshfk{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader.svelte-pyshfk.svelte-pyshfk{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:16px;flex:2}.PlayerAccountNotificationText.svelte-pyshfk.svelte-pyshfk{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:14px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:24px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationText.svelte-pyshfk{font-size:16px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:60px;margin-right:20px}')}function _(o,n,a){const e=o.slice();return e[14]=n[a],e}function x(o){let n,a=t.ensure_array_like(o[1]),e=[];for(let i=0;i<a.length;i+=1)e[i]=b(_(o,a,i));return{c(){n=t.element("div");for(let i=0;i<e.length;i+=1)e[i].c();t.attr(n,"class","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":"")+" svelte-pyshfk"),t.attr(n,"part","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":""))},m(i,c){t.insert(i,n,c);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(n,null)},p(i,c){if(c&2){a=t.ensure_array_like(i[1]);let l;for(l=0;l<a.length;l+=1){const f=_(i,a,l);e[l]?e[l].p(f,c):(e[l]=b(f),e[l].c(),e[l].m(n,null))}for(;l<e.length;l+=1)e[l].d(1);e.length=a.length}},d(i){i&&t.detach(n),t.destroy_each(e,i)}}}function b(o){let n,a,e,i,c,l,f,g=o[14].title+"",p,y,d,h=o[14].description+"",m;return{c(){n=t.element("div"),a=t.element("div"),e=t.element("img"),l=t.space(),f=t.element("p"),p=t.text(g),y=t.space(),d=t.element("p"),m=t.space(),t.attr(e,"class","PlayerAccountNotificationIcon svelte-pyshfk"),t.src_url_equal(e.src,i=o[14].icon)||t.attr(e,"src",i),t.attr(e,"alt",c=o[14].title),t.attr(f,"class","PlayerAccountNotificationTitle svelte-pyshfk"),t.attr(a,"class","PlayerAccountNotificationBoxHeader svelte-pyshfk"),t.attr(d,"class","PlayerAccountNotificationText svelte-pyshfk"),t.attr(n,"class","PlayerAccountNotificationBox svelte-pyshfk"),t.set_style(n,"background",o[14].backgroundColor)},m(r,u){t.insert(r,n,u),t.append(n,a),t.append(a,e),t.append(a,l),t.append(a,f),t.append(f,p),t.append(n,y),t.append(n,d),d.innerHTML=h,t.append(n,m)},p(r,u){u&2&&!t.src_url_equal(e.src,i=r[14].icon)&&t.attr(e,"src",i),u&2&&c!==(c=r[14].title)&&t.attr(e,"alt",c),u&2&&g!==(g=r[14].title+"")&&t.set_data(p,g),u&2&&h!==(h=r[14].description+"")&&(d.innerHTML=h),u&2&&t.set_style(n,"background",r[14].backgroundColor)},d(r){r&&t.detach(n)}}}function C(o){let n;function a(c,l){if(c[1].length)return x}let e=a(o),i=e&&e(o);return{c(){n=t.element("div"),i&&i.c()},m(c,l){t.insert(c,n,l),i&&i.m(n,null),o[7](n)},p(c,[l]){e===(e=a(c))&&i?i.p(c,l):(i&&i.d(1),i=e&&e(c),i&&(i.c(),i.m(n,null)))},i:t.noop,o:t.noop,d(c){c&&t.detach(n),i&&i.d(),o[7](null)}}}function w(o,n,a){let{customnotif:e=""}=n,{clientstyling:i=""}=n,{clientstylingurl:c=""}=n,l,f=window.navigator.userAgent,g=t.getDevice(f)!=="PC",p=[],y=[];const d=window.matchMedia("(min-width: 768px)"),h=s=>{if(s.data)switch(s.data.type){case"NotificationsDetails":a(1,p=s.data.notificationsInfo),p.forEach(k=>{y.length&&(k.backgroundColor=y[0],y.shift())});break}},m=()=>{e.replace(" ",""),y=e.split(",")},r=()=>{let s=document.createElement("style");s.innerHTML=i,l.appendChild(s)},u=()=>{let s=new URL(c),k=document.createElement("style");fetch(s.href).then(v=>v.text()).then(v=>{k.innerHTML=v,setTimeout(()=>{l.appendChild(k)},1)})};t.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function N(s){t.binding_callbacks[s?"unshift":"push"](()=>{l=s,a(0,l)})}return o.$$set=s=>{"customnotif"in s&&a(4,e=s.customnotif),"clientstyling"in s&&a(5,i=s.clientstyling),"clientstylingurl"in s&&a(6,c=s.clientstylingurl)},o.$$.update=()=>{o.$$.dirty&16&&e&&m(),o.$$.dirty&2&&p&&m(),o.$$.dirty&65&&c&&l&&u(),o.$$.dirty&33&&i&&l&&r()},[l,p,g,d,e,i,c,N]}class A extends t.SvelteComponent{constructor(n){super(),t.init(this,n,w,C,t.safe_not_equal,{customnotif:4,clientstyling:5,clientstylingurl:6},P)}get customnotif(){return this.$$.ctx[4]}set customnotif(n){this.$$set({customnotif:n}),t.flush()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}}t.create_custom_element(A,{customnotif:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=A;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { S as F, i as z, f as b, c as E, s as I, b as S, e as m, k as P, o as C, p as x, u as D, v as q, x as R, K as w, g as r, L as U, d as N, t as K, X as T, W as M, l as p, n as Q } from "./GeneralLogout-DtE4YABi.js";
|
|
2
|
+
function W(l) {
|
|
3
|
+
S(l, "svelte-pyshfk", '.PlayerAccountNotificationsContainer.svelte-pyshfk.svelte-pyshfk{padding:0 5px}.PlayerAccountNotificationBox.svelte-pyshfk.svelte-pyshfk{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader.svelte-pyshfk.svelte-pyshfk{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:16px;flex:2}.PlayerAccountNotificationText.svelte-pyshfk.svelte-pyshfk{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:14px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:24px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationText.svelte-pyshfk{font-size:16px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:60px;margin-right:20px}');
|
|
4
|
+
}
|
|
5
|
+
function H(l, i, o) {
|
|
6
|
+
const t = l.slice();
|
|
7
|
+
return t[14] = i[o], t;
|
|
8
|
+
}
|
|
9
|
+
function X(l) {
|
|
10
|
+
let i, o = w(
|
|
11
|
+
/*notificationsData*/
|
|
12
|
+
l[1]
|
|
13
|
+
), t = [];
|
|
14
|
+
for (let e = 0; e < o.length; e += 1)
|
|
15
|
+
t[e] = B(H(l, o, e));
|
|
16
|
+
return {
|
|
17
|
+
c() {
|
|
18
|
+
i = m("div");
|
|
19
|
+
for (let e = 0; e < t.length; e += 1)
|
|
20
|
+
t[e].c();
|
|
21
|
+
r(i, "class", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
22
|
+
(l[2] && /*mediaQuery*/
|
|
23
|
+
l[3].matches ? "PlayerAccountNotificationsTabletContainer" : (
|
|
24
|
+
/*isMobile*/
|
|
25
|
+
l[2] ? "PlayerAccountNotificationsMobileContainer" : ""
|
|
26
|
+
)) + " svelte-pyshfk"), r(i, "part", "PlayerAccountNotificationsContainer " + /*isMobile*/
|
|
27
|
+
(l[2] && /*mediaQuery*/
|
|
28
|
+
l[3].matches ? "PlayerAccountNotificationsTabletContainer" : (
|
|
29
|
+
/*isMobile*/
|
|
30
|
+
l[2] ? "PlayerAccountNotificationsMobileContainer" : ""
|
|
31
|
+
)));
|
|
32
|
+
},
|
|
33
|
+
m(e, a) {
|
|
34
|
+
P(e, i, a);
|
|
35
|
+
for (let n = 0; n < t.length; n += 1)
|
|
36
|
+
t[n] && t[n].m(i, null);
|
|
37
|
+
},
|
|
38
|
+
p(e, a) {
|
|
39
|
+
if (a & /*notificationsData*/
|
|
40
|
+
2) {
|
|
41
|
+
o = w(
|
|
42
|
+
/*notificationsData*/
|
|
43
|
+
e[1]
|
|
44
|
+
);
|
|
45
|
+
let n;
|
|
46
|
+
for (n = 0; n < o.length; n += 1) {
|
|
47
|
+
const f = H(e, o, n);
|
|
48
|
+
t[n] ? t[n].p(f, a) : (t[n] = B(f), t[n].c(), t[n].m(i, null));
|
|
49
|
+
}
|
|
50
|
+
for (; n < t.length; n += 1)
|
|
51
|
+
t[n].d(1);
|
|
52
|
+
t.length = o.length;
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
d(e) {
|
|
56
|
+
e && x(i), U(t, e);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function B(l) {
|
|
61
|
+
let i, o, t, e, a, n, f, k = (
|
|
62
|
+
/*notification*/
|
|
63
|
+
l[14].title + ""
|
|
64
|
+
), y, d, h, g = (
|
|
65
|
+
/*notification*/
|
|
66
|
+
l[14].description + ""
|
|
67
|
+
), v;
|
|
68
|
+
return {
|
|
69
|
+
c() {
|
|
70
|
+
i = m("div"), o = m("div"), t = m("img"), n = N(), f = m("p"), y = K(k), d = N(), h = m("p"), v = N(), r(t, "class", "PlayerAccountNotificationIcon svelte-pyshfk"), T(t.src, e = /*notification*/
|
|
71
|
+
l[14].icon) || r(t, "src", e), r(t, "alt", a = /*notification*/
|
|
72
|
+
l[14].title), r(f, "class", "PlayerAccountNotificationTitle svelte-pyshfk"), r(o, "class", "PlayerAccountNotificationBoxHeader svelte-pyshfk"), r(h, "class", "PlayerAccountNotificationText svelte-pyshfk"), r(i, "class", "PlayerAccountNotificationBox svelte-pyshfk"), M(
|
|
73
|
+
i,
|
|
74
|
+
"background",
|
|
75
|
+
/*notification*/
|
|
76
|
+
l[14].backgroundColor
|
|
77
|
+
);
|
|
78
|
+
},
|
|
79
|
+
m(c, u) {
|
|
80
|
+
P(c, i, u), p(i, o), p(o, t), p(o, n), p(o, f), p(f, y), p(i, d), p(i, h), h.innerHTML = g, p(i, v);
|
|
81
|
+
},
|
|
82
|
+
p(c, u) {
|
|
83
|
+
u & /*notificationsData*/
|
|
84
|
+
2 && !T(t.src, e = /*notification*/
|
|
85
|
+
c[14].icon) && r(t, "src", e), u & /*notificationsData*/
|
|
86
|
+
2 && a !== (a = /*notification*/
|
|
87
|
+
c[14].title) && r(t, "alt", a), u & /*notificationsData*/
|
|
88
|
+
2 && k !== (k = /*notification*/
|
|
89
|
+
c[14].title + "") && Q(y, k), u & /*notificationsData*/
|
|
90
|
+
2 && g !== (g = /*notification*/
|
|
91
|
+
c[14].description + "") && (h.innerHTML = g), u & /*notificationsData*/
|
|
92
|
+
2 && M(
|
|
93
|
+
i,
|
|
94
|
+
"background",
|
|
95
|
+
/*notification*/
|
|
96
|
+
c[14].backgroundColor
|
|
97
|
+
);
|
|
98
|
+
},
|
|
99
|
+
d(c) {
|
|
100
|
+
c && x(i);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function j(l) {
|
|
105
|
+
let i;
|
|
106
|
+
function o(a, n) {
|
|
107
|
+
if (
|
|
108
|
+
/*notificationsData*/
|
|
109
|
+
a[1].length
|
|
110
|
+
) return X;
|
|
111
|
+
}
|
|
112
|
+
let t = o(l), e = t && t(l);
|
|
113
|
+
return {
|
|
114
|
+
c() {
|
|
115
|
+
i = m("div"), e && e.c();
|
|
116
|
+
},
|
|
117
|
+
m(a, n) {
|
|
118
|
+
P(a, i, n), e && e.m(i, null), l[7](i);
|
|
119
|
+
},
|
|
120
|
+
p(a, [n]) {
|
|
121
|
+
t === (t = o(a)) && e ? e.p(a, n) : (e && e.d(1), e = t && t(a), e && (e.c(), e.m(i, null)));
|
|
122
|
+
},
|
|
123
|
+
i: C,
|
|
124
|
+
o: C,
|
|
125
|
+
d(a) {
|
|
126
|
+
a && x(i), e && e.d(), l[7](null);
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function G(l, i, o) {
|
|
131
|
+
let { customnotif: t = "" } = i, { clientstyling: e = "" } = i, { clientstylingurl: a = "" } = i, n, f = window.navigator.userAgent, k = D(f) !== "PC", y = [], d = [];
|
|
132
|
+
const h = window.matchMedia("(min-width: 768px)"), g = (s) => {
|
|
133
|
+
if (s.data)
|
|
134
|
+
switch (s.data.type) {
|
|
135
|
+
case "NotificationsDetails":
|
|
136
|
+
o(1, y = s.data.notificationsInfo), y.forEach((A) => {
|
|
137
|
+
d.length && (A.backgroundColor = d[0], d.shift());
|
|
138
|
+
});
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}, v = () => {
|
|
142
|
+
t.replace(" ", ""), d = t.split(",");
|
|
143
|
+
}, c = () => {
|
|
144
|
+
let s = document.createElement("style");
|
|
145
|
+
s.innerHTML = e, n.appendChild(s);
|
|
146
|
+
}, u = () => {
|
|
147
|
+
let s = new URL(a), A = document.createElement("style");
|
|
148
|
+
fetch(s.href).then((_) => _.text()).then((_) => {
|
|
149
|
+
A.innerHTML = _, setTimeout(
|
|
150
|
+
() => {
|
|
151
|
+
n.appendChild(A);
|
|
152
|
+
},
|
|
153
|
+
1
|
|
154
|
+
);
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
q(() => (window.addEventListener("message", g, !1), () => {
|
|
158
|
+
window.removeEventListener("message", g);
|
|
159
|
+
}));
|
|
160
|
+
function L(s) {
|
|
161
|
+
R[s ? "unshift" : "push"](() => {
|
|
162
|
+
n = s, o(0, n);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return l.$$set = (s) => {
|
|
166
|
+
"customnotif" in s && o(4, t = s.customnotif), "clientstyling" in s && o(5, e = s.clientstyling), "clientstylingurl" in s && o(6, a = s.clientstylingurl);
|
|
167
|
+
}, l.$$.update = () => {
|
|
168
|
+
l.$$.dirty & /*customnotif*/
|
|
169
|
+
16 && t && v(), l.$$.dirty & /*notificationsData*/
|
|
170
|
+
2 && y && v(), l.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
171
|
+
65 && a && n && u(), l.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
172
|
+
33 && e && n && c();
|
|
173
|
+
}, [
|
|
174
|
+
n,
|
|
175
|
+
y,
|
|
176
|
+
k,
|
|
177
|
+
h,
|
|
178
|
+
t,
|
|
179
|
+
e,
|
|
180
|
+
a,
|
|
181
|
+
L
|
|
182
|
+
];
|
|
183
|
+
}
|
|
184
|
+
class J extends F {
|
|
185
|
+
constructor(i) {
|
|
186
|
+
super(), z(
|
|
187
|
+
this,
|
|
188
|
+
i,
|
|
189
|
+
G,
|
|
190
|
+
j,
|
|
191
|
+
I,
|
|
192
|
+
{
|
|
193
|
+
customnotif: 4,
|
|
194
|
+
clientstyling: 5,
|
|
195
|
+
clientstylingurl: 6
|
|
196
|
+
},
|
|
197
|
+
W
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
get customnotif() {
|
|
201
|
+
return this.$$.ctx[4];
|
|
202
|
+
}
|
|
203
|
+
set customnotif(i) {
|
|
204
|
+
this.$$set({ customnotif: i }), b();
|
|
205
|
+
}
|
|
206
|
+
get clientstyling() {
|
|
207
|
+
return this.$$.ctx[5];
|
|
208
|
+
}
|
|
209
|
+
set clientstyling(i) {
|
|
210
|
+
this.$$set({ clientstyling: i }), b();
|
|
211
|
+
}
|
|
212
|
+
get clientstylingurl() {
|
|
213
|
+
return this.$$.ctx[6];
|
|
214
|
+
}
|
|
215
|
+
set clientstylingurl(i) {
|
|
216
|
+
this.$$set({ clientstylingurl: i }), b();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
E(J, { customnotif: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
|
|
220
|
+
export {
|
|
221
|
+
J as default
|
|
222
|
+
};
|