@everymatrix/casino-last-played-section 1.74.5 → 1.74.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.
- package/components/CasinoLastPlayedSection-6bLmNeoB.cjs +1 -0
- package/components/{CasinoLastPlayedSection-BrNZ3giY.js → CasinoLastPlayedSection-DOGcrLp4.js} +153 -142
- package/components/{CasinoLastPlayedSection-076P77jo.js → CasinoLastPlayedSection-wdtsNIUk.js} +153 -142
- package/es2015/casino-last-played-section.cjs +1 -1
- package/es2015/casino-last-played-section.js +1 -1
- package/esnext/casino-last-played-section.js +1 -1
- package/package.json +1 -1
- package/components/CasinoLastPlayedSection-BWkeZKfB.cjs +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-2ovoa6CH.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,E=s.gamepagemodalurl),"showgamename"in s&&a(13,M=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,b,v,R,A,E,M,k,D,S,F,q,g,O,i,P,L,C,j,p]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},Q,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|
package/components/{CasinoLastPlayedSection-BrNZ3giY.js → CasinoLastPlayedSection-DOGcrLp4.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as ee, $ as te, c as ae, S as se, i as
|
1
|
+
import { a as ee, $ as te, c as ae, S as se, i as ne, s as ie, f as l, b as le, e as L, j as A, l as E, m as Z, o as B, p as D, q as re, r as oe, u as ue, z as ce, A as me, B as ge, h as n, t as de, n as fe, E as he, y as ye } from "./CasinoFilter-BUlwRomz.js";
|
2
2
|
function H(s, e) {
|
3
3
|
ee(s, e);
|
4
4
|
}
|
@@ -36,10 +36,10 @@ if (typeof window < "u") {
|
|
36
36
|
return function(...t) {
|
37
37
|
try {
|
38
38
|
return e.apply(this, t);
|
39
|
-
} catch (
|
40
|
-
if (
|
39
|
+
} catch (i) {
|
40
|
+
if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
|
41
41
|
return !1;
|
42
|
-
throw
|
42
|
+
throw i;
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
@@ -54,210 +54,221 @@ function we(s) {
|
|
54
54
|
let e;
|
55
55
|
return {
|
56
56
|
c() {
|
57
|
-
e = L("casino-games-category-section"),
|
57
|
+
e = L("casino-games-category-section"), n(
|
58
58
|
e,
|
59
59
|
"session",
|
60
60
|
/*session*/
|
61
61
|
s[4]
|
62
|
-
),
|
62
|
+
), n(
|
63
63
|
e,
|
64
64
|
"userid",
|
65
65
|
/*userid*/
|
66
66
|
s[5]
|
67
|
-
),
|
67
|
+
), n(
|
68
68
|
e,
|
69
69
|
"endpoint",
|
70
70
|
/*endpoint*/
|
71
71
|
s[0]
|
72
|
-
),
|
72
|
+
), n(
|
73
73
|
e,
|
74
74
|
"datasource",
|
75
75
|
/*datasource*/
|
76
76
|
s[1]
|
77
|
-
),
|
77
|
+
), n(
|
78
78
|
e,
|
79
79
|
"lang",
|
80
80
|
/*lang*/
|
81
81
|
s[3]
|
82
|
-
),
|
82
|
+
), n(
|
83
83
|
e,
|
84
84
|
"currency",
|
85
85
|
/*currency*/
|
86
86
|
s[2]
|
87
|
-
),
|
87
|
+
), n(
|
88
88
|
e,
|
89
89
|
"favorites",
|
90
90
|
/*favorites*/
|
91
|
-
s[
|
92
|
-
),
|
91
|
+
s[15]
|
92
|
+
), n(
|
93
93
|
e,
|
94
94
|
"fetchviaevent",
|
95
95
|
/*fetchviaevent*/
|
96
|
-
s[
|
97
|
-
),
|
96
|
+
s[17]
|
97
|
+
), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
|
98
98
|
e,
|
99
99
|
"mbsource",
|
100
100
|
/*mbsource*/
|
101
|
-
s[
|
102
|
-
),
|
101
|
+
s[18]
|
102
|
+
), n(
|
103
103
|
e,
|
104
104
|
"showgamename",
|
105
105
|
/*showgamename*/
|
106
|
-
s[
|
107
|
-
),
|
106
|
+
s[13]
|
107
|
+
), n(
|
108
108
|
e,
|
109
109
|
"clientstyling",
|
110
110
|
/*clientstyling*/
|
111
111
|
s[6]
|
112
|
-
),
|
112
|
+
), n(
|
113
113
|
e,
|
114
114
|
"clientstylingurl",
|
115
115
|
/*clientstylingurl*/
|
116
116
|
s[7]
|
117
|
-
),
|
117
|
+
), n(
|
118
|
+
e,
|
119
|
+
"translationurl",
|
120
|
+
/*translationurl*/
|
121
|
+
s[8]
|
122
|
+
), n(
|
118
123
|
e,
|
119
124
|
"livecasino",
|
120
125
|
/*livecasino*/
|
121
|
-
s[
|
122
|
-
),
|
126
|
+
s[9]
|
127
|
+
), n(
|
123
128
|
e,
|
124
129
|
"visiblegames",
|
125
130
|
/*visiblegames*/
|
126
|
-
s[
|
127
|
-
),
|
131
|
+
s[14]
|
132
|
+
), n(
|
128
133
|
e,
|
129
134
|
"gamepagemodalurl",
|
130
135
|
/*gamepagemodalurl*/
|
131
|
-
s[
|
132
|
-
),
|
136
|
+
s[12]
|
137
|
+
), n(
|
133
138
|
e,
|
134
139
|
"integratedgameframedesktop",
|
135
140
|
/*integratedgameframedesktop*/
|
136
|
-
s[
|
137
|
-
),
|
141
|
+
s[11]
|
142
|
+
), n(
|
138
143
|
e,
|
139
144
|
"integratedgameframemobile",
|
140
145
|
/*integratedgameframemobile*/
|
141
|
-
s[
|
142
|
-
),
|
146
|
+
s[10]
|
147
|
+
), n(
|
143
148
|
e,
|
144
149
|
"casinomygames",
|
145
150
|
/*casinomygames*/
|
146
|
-
s[
|
151
|
+
s[16]
|
147
152
|
);
|
148
153
|
},
|
149
|
-
m(t,
|
150
|
-
E(t, e,
|
154
|
+
m(t, i) {
|
155
|
+
E(t, e, i);
|
151
156
|
},
|
152
|
-
p(t,
|
153
|
-
|
154
|
-
16 &&
|
157
|
+
p(t, i) {
|
158
|
+
i[0] & /*session*/
|
159
|
+
16 && n(
|
155
160
|
e,
|
156
161
|
"session",
|
157
162
|
/*session*/
|
158
163
|
t[4]
|
159
|
-
),
|
160
|
-
32 &&
|
164
|
+
), i[0] & /*userid*/
|
165
|
+
32 && n(
|
161
166
|
e,
|
162
167
|
"userid",
|
163
168
|
/*userid*/
|
164
169
|
t[5]
|
165
|
-
),
|
166
|
-
1 &&
|
170
|
+
), i[0] & /*endpoint*/
|
171
|
+
1 && n(
|
167
172
|
e,
|
168
173
|
"endpoint",
|
169
174
|
/*endpoint*/
|
170
175
|
t[0]
|
171
|
-
),
|
172
|
-
2 &&
|
176
|
+
), i[0] & /*datasource*/
|
177
|
+
2 && n(
|
173
178
|
e,
|
174
179
|
"datasource",
|
175
180
|
/*datasource*/
|
176
181
|
t[1]
|
177
|
-
),
|
178
|
-
8 &&
|
182
|
+
), i[0] & /*lang*/
|
183
|
+
8 && n(
|
179
184
|
e,
|
180
185
|
"lang",
|
181
186
|
/*lang*/
|
182
187
|
t[3]
|
183
|
-
),
|
184
|
-
4 &&
|
188
|
+
), i[0] & /*currency*/
|
189
|
+
4 && n(
|
185
190
|
e,
|
186
191
|
"currency",
|
187
192
|
/*currency*/
|
188
193
|
t[2]
|
189
|
-
),
|
190
|
-
|
194
|
+
), i[0] & /*favorites*/
|
195
|
+
32768 && n(
|
191
196
|
e,
|
192
197
|
"favorites",
|
193
198
|
/*favorites*/
|
194
|
-
t[
|
195
|
-
),
|
196
|
-
|
199
|
+
t[15]
|
200
|
+
), i[0] & /*fetchviaevent*/
|
201
|
+
131072 && n(
|
197
202
|
e,
|
198
203
|
"fetchviaevent",
|
199
204
|
/*fetchviaevent*/
|
200
|
-
t[
|
201
|
-
),
|
202
|
-
|
205
|
+
t[17]
|
206
|
+
), i[0] & /*mbsource*/
|
207
|
+
262144 && n(
|
203
208
|
e,
|
204
209
|
"mbsource",
|
205
210
|
/*mbsource*/
|
206
|
-
t[
|
207
|
-
),
|
208
|
-
|
211
|
+
t[18]
|
212
|
+
), i[0] & /*showgamename*/
|
213
|
+
8192 && n(
|
209
214
|
e,
|
210
215
|
"showgamename",
|
211
216
|
/*showgamename*/
|
212
|
-
t[
|
213
|
-
),
|
214
|
-
64 &&
|
217
|
+
t[13]
|
218
|
+
), i[0] & /*clientstyling*/
|
219
|
+
64 && n(
|
215
220
|
e,
|
216
221
|
"clientstyling",
|
217
222
|
/*clientstyling*/
|
218
223
|
t[6]
|
219
|
-
),
|
220
|
-
128 &&
|
224
|
+
), i[0] & /*clientstylingurl*/
|
225
|
+
128 && n(
|
221
226
|
e,
|
222
227
|
"clientstylingurl",
|
223
228
|
/*clientstylingurl*/
|
224
229
|
t[7]
|
225
|
-
),
|
226
|
-
256 &&
|
230
|
+
), i[0] & /*translationurl*/
|
231
|
+
256 && n(
|
232
|
+
e,
|
233
|
+
"translationurl",
|
234
|
+
/*translationurl*/
|
235
|
+
t[8]
|
236
|
+
), i[0] & /*livecasino*/
|
237
|
+
512 && n(
|
227
238
|
e,
|
228
239
|
"livecasino",
|
229
240
|
/*livecasino*/
|
230
|
-
t[
|
231
|
-
),
|
232
|
-
|
241
|
+
t[9]
|
242
|
+
), i[0] & /*visiblegames*/
|
243
|
+
16384 && n(
|
233
244
|
e,
|
234
245
|
"visiblegames",
|
235
246
|
/*visiblegames*/
|
236
|
-
t[
|
237
|
-
),
|
238
|
-
|
247
|
+
t[14]
|
248
|
+
), i[0] & /*gamepagemodalurl*/
|
249
|
+
4096 && n(
|
239
250
|
e,
|
240
251
|
"gamepagemodalurl",
|
241
252
|
/*gamepagemodalurl*/
|
242
|
-
t[
|
243
|
-
),
|
244
|
-
|
253
|
+
t[12]
|
254
|
+
), i[0] & /*integratedgameframedesktop*/
|
255
|
+
2048 && n(
|
245
256
|
e,
|
246
257
|
"integratedgameframedesktop",
|
247
258
|
/*integratedgameframedesktop*/
|
248
|
-
t[
|
249
|
-
),
|
250
|
-
|
259
|
+
t[11]
|
260
|
+
), i[0] & /*integratedgameframemobile*/
|
261
|
+
1024 && n(
|
251
262
|
e,
|
252
263
|
"integratedgameframemobile",
|
253
264
|
/*integratedgameframemobile*/
|
254
|
-
t[
|
255
|
-
),
|
256
|
-
|
265
|
+
t[10]
|
266
|
+
), i[0] & /*casinomygames*/
|
267
|
+
65536 && n(
|
257
268
|
e,
|
258
269
|
"casinomygames",
|
259
270
|
/*casinomygames*/
|
260
|
-
t[
|
271
|
+
t[16]
|
261
272
|
);
|
262
273
|
},
|
263
274
|
d(t) {
|
@@ -268,19 +279,19 @@ function we(s) {
|
|
268
279
|
function _e(s) {
|
269
280
|
let e, t = (
|
270
281
|
/*$_*/
|
271
|
-
s[
|
272
|
-
),
|
282
|
+
s[21]("noRecentGames") + ""
|
283
|
+
), i;
|
273
284
|
return {
|
274
285
|
c() {
|
275
|
-
e = L("p"),
|
286
|
+
e = L("p"), i = de(t), A(e, "class", "SearchLoading");
|
276
287
|
},
|
277
288
|
m(o, r) {
|
278
|
-
E(o, e, r), Z(e,
|
289
|
+
E(o, e, r), Z(e, i);
|
279
290
|
},
|
280
291
|
p(o, r) {
|
281
292
|
r[0] & /*$_*/
|
282
|
-
|
283
|
-
o[
|
293
|
+
2097152 && t !== (t = /*$_*/
|
294
|
+
o[21]("noRecentGames") + "") && fe(i, t);
|
284
295
|
},
|
285
296
|
d(o) {
|
286
297
|
o && D(e);
|
@@ -289,13 +300,13 @@ function _e(s) {
|
|
289
300
|
}
|
290
301
|
function ke(s) {
|
291
302
|
let e, t;
|
292
|
-
function
|
303
|
+
function i(m, d) {
|
293
304
|
return (
|
294
305
|
/*lastPlayedEmpty*/
|
295
|
-
m[
|
306
|
+
m[20] ? _e : we
|
296
307
|
);
|
297
308
|
}
|
298
|
-
let o =
|
309
|
+
let o = i(s), r = o(s);
|
299
310
|
return {
|
300
311
|
c() {
|
301
312
|
e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
@@ -304,7 +315,7 @@ function ke(s) {
|
|
304
315
|
E(m, e, d), Z(e, t), r.m(t, null), s[26](e);
|
305
316
|
},
|
306
317
|
p(m, d) {
|
307
|
-
o === (o =
|
318
|
+
o === (o = i(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
|
308
319
|
},
|
309
320
|
i: B,
|
310
321
|
o: B,
|
@@ -314,13 +325,13 @@ function ke(s) {
|
|
314
325
|
};
|
315
326
|
}
|
316
327
|
function Le(s, e, t) {
|
317
|
-
let
|
318
|
-
re(s, he, (a) => t(
|
328
|
+
let i;
|
329
|
+
re(s, he, (a) => t(21, i = a));
|
319
330
|
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
320
331
|
const Q = () => {
|
321
332
|
fetch(w).then((g) => g.json()).then((g) => {
|
322
|
-
Object.keys(g).forEach((
|
323
|
-
H(
|
333
|
+
Object.keys(g).forEach((u) => {
|
334
|
+
H(u, g[u]);
|
324
335
|
});
|
325
336
|
}).catch((g) => {
|
326
337
|
console.log(g);
|
@@ -330,33 +341,33 @@ function Le(s, e, t) {
|
|
330
341
|
H(a, V[a]);
|
331
342
|
});
|
332
343
|
const W = () => new Promise((a, g) => {
|
333
|
-
let
|
334
|
-
|
335
|
-
|
344
|
+
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
345
|
+
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
|
346
|
+
c.items = c.items.filter(($) => {
|
336
347
|
let J = !0;
|
337
|
-
return $.gameCode == "OddsMatrix2" && (
|
338
|
-
}), a(
|
348
|
+
return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
|
349
|
+
}), a(c), window.postMessage(
|
339
350
|
{
|
340
351
|
type: "AddNewCategory",
|
341
352
|
category: { name: "Last Played", id: "LASTPLAYED" }
|
342
353
|
},
|
343
354
|
window.location.href
|
344
|
-
), window.postMessage({ type: "LastPlayedGames", data:
|
345
|
-
}).catch((
|
346
|
-
console.error(
|
355
|
+
), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
|
356
|
+
}).catch((c) => {
|
357
|
+
console.error(c), g(c);
|
347
358
|
});
|
348
359
|
}), X = () => {
|
349
360
|
W().then((a) => {
|
350
361
|
if (a.count > 0) {
|
351
362
|
let g = [];
|
352
|
-
a.items.forEach((
|
353
|
-
let h = new URL(`${o}/v1/casino/games/${
|
354
|
-
h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((
|
355
|
-
}), Promise.all(g).then((
|
356
|
-
k =
|
363
|
+
a.items.forEach((u) => {
|
364
|
+
let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
365
|
+
h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((c) => c.json())) : g.push(fetch(h.href).then((c) => c.json()));
|
366
|
+
}), Promise.all(g).then((u) => {
|
367
|
+
k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
357
368
|
});
|
358
369
|
} else
|
359
|
-
t(
|
370
|
+
t(20, Y = !0);
|
360
371
|
});
|
361
372
|
}, p = () => {
|
362
373
|
be(d);
|
@@ -364,19 +375,19 @@ function Le(s, e, t) {
|
|
364
375
|
oe(() => () => {
|
365
376
|
});
|
366
377
|
function x(a) {
|
367
|
-
|
368
|
-
f = a, t(
|
378
|
+
ce[a ? "unshift" : "push"](() => {
|
379
|
+
f = a, t(19, f);
|
369
380
|
});
|
370
381
|
}
|
371
382
|
return s.$$set = (a) => {
|
372
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(
|
383
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
|
373
384
|
}, s.$$.update = () => {
|
374
385
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
375
386
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
387
|
+
256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
388
|
+
524352 && b && f && me(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
389
|
+
524416 && v && f && ue(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
390
|
+
786432 && f && ge(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
380
391
|
8 && d && p();
|
381
392
|
}, [
|
382
393
|
o,
|
@@ -387,6 +398,7 @@ function Le(s, e, t) {
|
|
387
398
|
y,
|
388
399
|
b,
|
389
400
|
v,
|
401
|
+
w,
|
390
402
|
_,
|
391
403
|
z,
|
392
404
|
F,
|
@@ -399,8 +411,7 @@ function Le(s, e, t) {
|
|
399
411
|
q,
|
400
412
|
f,
|
401
413
|
Y,
|
402
|
-
|
403
|
-
w,
|
414
|
+
i,
|
404
415
|
C,
|
405
416
|
S,
|
406
417
|
j,
|
@@ -410,12 +421,12 @@ function Le(s, e, t) {
|
|
410
421
|
}
|
411
422
|
class Pe extends se {
|
412
423
|
constructor(e) {
|
413
|
-
super(),
|
424
|
+
super(), ne(
|
414
425
|
this,
|
415
426
|
e,
|
416
427
|
Le,
|
417
428
|
ke,
|
418
|
-
|
429
|
+
ie,
|
419
430
|
{
|
420
431
|
endpoint: 0,
|
421
432
|
datasource: 1,
|
@@ -425,21 +436,21 @@ class Pe extends se {
|
|
425
436
|
userid: 5,
|
426
437
|
clientstyling: 6,
|
427
438
|
clientstylingurl: 7,
|
428
|
-
translationurl:
|
429
|
-
livecasino:
|
430
|
-
integratedgameframemobile:
|
431
|
-
integratedgameframedesktop:
|
432
|
-
gamepagemodalurl:
|
433
|
-
showgamename:
|
434
|
-
visiblegames:
|
435
|
-
favorites:
|
439
|
+
translationurl: 8,
|
440
|
+
livecasino: 9,
|
441
|
+
integratedgameframemobile: 10,
|
442
|
+
integratedgameframedesktop: 11,
|
443
|
+
gamepagemodalurl: 12,
|
444
|
+
showgamename: 13,
|
445
|
+
visiblegames: 14,
|
446
|
+
favorites: 15,
|
436
447
|
lastplayedperiod: 22,
|
437
448
|
lastplayedorder: 23,
|
438
449
|
lastplayedlimit: 24,
|
439
|
-
casinomygames:
|
450
|
+
casinomygames: 16,
|
440
451
|
lastplayedunique: 25,
|
441
|
-
fetchviaevent:
|
442
|
-
mbsource:
|
452
|
+
fetchviaevent: 17,
|
453
|
+
mbsource: 18
|
443
454
|
},
|
444
455
|
ve,
|
445
456
|
[-1, -1]
|
@@ -494,49 +505,49 @@ class Pe extends se {
|
|
494
505
|
this.$$set({ clientstylingurl: e }), l();
|
495
506
|
}
|
496
507
|
get translationurl() {
|
497
|
-
return this.$$.ctx[
|
508
|
+
return this.$$.ctx[8];
|
498
509
|
}
|
499
510
|
set translationurl(e) {
|
500
511
|
this.$$set({ translationurl: e }), l();
|
501
512
|
}
|
502
513
|
get livecasino() {
|
503
|
-
return this.$$.ctx[
|
514
|
+
return this.$$.ctx[9];
|
504
515
|
}
|
505
516
|
set livecasino(e) {
|
506
517
|
this.$$set({ livecasino: e }), l();
|
507
518
|
}
|
508
519
|
get integratedgameframemobile() {
|
509
|
-
return this.$$.ctx[
|
520
|
+
return this.$$.ctx[10];
|
510
521
|
}
|
511
522
|
set integratedgameframemobile(e) {
|
512
523
|
this.$$set({ integratedgameframemobile: e }), l();
|
513
524
|
}
|
514
525
|
get integratedgameframedesktop() {
|
515
|
-
return this.$$.ctx[
|
526
|
+
return this.$$.ctx[11];
|
516
527
|
}
|
517
528
|
set integratedgameframedesktop(e) {
|
518
529
|
this.$$set({ integratedgameframedesktop: e }), l();
|
519
530
|
}
|
520
531
|
get gamepagemodalurl() {
|
521
|
-
return this.$$.ctx[
|
532
|
+
return this.$$.ctx[12];
|
522
533
|
}
|
523
534
|
set gamepagemodalurl(e) {
|
524
535
|
this.$$set({ gamepagemodalurl: e }), l();
|
525
536
|
}
|
526
537
|
get showgamename() {
|
527
|
-
return this.$$.ctx[
|
538
|
+
return this.$$.ctx[13];
|
528
539
|
}
|
529
540
|
set showgamename(e) {
|
530
541
|
this.$$set({ showgamename: e }), l();
|
531
542
|
}
|
532
543
|
get visiblegames() {
|
533
|
-
return this.$$.ctx[
|
544
|
+
return this.$$.ctx[14];
|
534
545
|
}
|
535
546
|
set visiblegames(e) {
|
536
547
|
this.$$set({ visiblegames: e }), l();
|
537
548
|
}
|
538
549
|
get favorites() {
|
539
|
-
return this.$$.ctx[
|
550
|
+
return this.$$.ctx[15];
|
540
551
|
}
|
541
552
|
set favorites(e) {
|
542
553
|
this.$$set({ favorites: e }), l();
|
@@ -560,7 +571,7 @@ class Pe extends se {
|
|
560
571
|
this.$$set({ lastplayedlimit: e }), l();
|
561
572
|
}
|
562
573
|
get casinomygames() {
|
563
|
-
return this.$$.ctx[
|
574
|
+
return this.$$.ctx[16];
|
564
575
|
}
|
565
576
|
set casinomygames(e) {
|
566
577
|
this.$$set({ casinomygames: e }), l();
|
@@ -572,13 +583,13 @@ class Pe extends se {
|
|
572
583
|
this.$$set({ lastplayedunique: e }), l();
|
573
584
|
}
|
574
585
|
get fetchviaevent() {
|
575
|
-
return this.$$.ctx[
|
586
|
+
return this.$$.ctx[17];
|
576
587
|
}
|
577
588
|
set fetchviaevent(e) {
|
578
589
|
this.$$set({ fetchviaevent: e }), l();
|
579
590
|
}
|
580
591
|
get mbsource() {
|
581
|
-
return this.$$.ctx[
|
592
|
+
return this.$$.ctx[18];
|
582
593
|
}
|
583
594
|
set mbsource(e) {
|
584
595
|
this.$$set({ mbsource: e }), l();
|
package/components/{CasinoLastPlayedSection-076P77jo.js → CasinoLastPlayedSection-wdtsNIUk.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as ee, $ as te, S as ae, i as se, f as l, c as
|
1
|
+
import { a as ee, $ as te, S as ae, i as se, f as l, c as ne, s as ie, b as le, e as L, j as A, l as E, m as Z, o as B, p as D, q as re, r as oe, u as ue, z as ce, A as me, B as ge, h as n, t as de, n as fe, E as he, y as ye } from "./CasinoFilter-BPwlHha2.js";
|
2
2
|
function H(s, e) {
|
3
3
|
ee(s, e);
|
4
4
|
}
|
@@ -36,10 +36,10 @@ if (typeof window != "undefined") {
|
|
36
36
|
return function(...t) {
|
37
37
|
try {
|
38
38
|
return e.apply(this, t);
|
39
|
-
} catch (
|
40
|
-
if (
|
39
|
+
} catch (i) {
|
40
|
+
if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
|
41
41
|
return !1;
|
42
|
-
throw
|
42
|
+
throw i;
|
43
43
|
}
|
44
44
|
};
|
45
45
|
};
|
@@ -54,210 +54,221 @@ function we(s) {
|
|
54
54
|
let e;
|
55
55
|
return {
|
56
56
|
c() {
|
57
|
-
e = L("casino-games-category-section"),
|
57
|
+
e = L("casino-games-category-section"), n(
|
58
58
|
e,
|
59
59
|
"session",
|
60
60
|
/*session*/
|
61
61
|
s[4]
|
62
|
-
),
|
62
|
+
), n(
|
63
63
|
e,
|
64
64
|
"userid",
|
65
65
|
/*userid*/
|
66
66
|
s[5]
|
67
|
-
),
|
67
|
+
), n(
|
68
68
|
e,
|
69
69
|
"endpoint",
|
70
70
|
/*endpoint*/
|
71
71
|
s[0]
|
72
|
-
),
|
72
|
+
), n(
|
73
73
|
e,
|
74
74
|
"datasource",
|
75
75
|
/*datasource*/
|
76
76
|
s[1]
|
77
|
-
),
|
77
|
+
), n(
|
78
78
|
e,
|
79
79
|
"lang",
|
80
80
|
/*lang*/
|
81
81
|
s[3]
|
82
|
-
),
|
82
|
+
), n(
|
83
83
|
e,
|
84
84
|
"currency",
|
85
85
|
/*currency*/
|
86
86
|
s[2]
|
87
|
-
),
|
87
|
+
), n(
|
88
88
|
e,
|
89
89
|
"favorites",
|
90
90
|
/*favorites*/
|
91
|
-
s[
|
92
|
-
),
|
91
|
+
s[15]
|
92
|
+
), n(
|
93
93
|
e,
|
94
94
|
"fetchviaevent",
|
95
95
|
/*fetchviaevent*/
|
96
|
-
s[
|
97
|
-
),
|
96
|
+
s[17]
|
97
|
+
), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
|
98
98
|
e,
|
99
99
|
"mbsource",
|
100
100
|
/*mbsource*/
|
101
|
-
s[
|
102
|
-
),
|
101
|
+
s[18]
|
102
|
+
), n(
|
103
103
|
e,
|
104
104
|
"showgamename",
|
105
105
|
/*showgamename*/
|
106
|
-
s[
|
107
|
-
),
|
106
|
+
s[13]
|
107
|
+
), n(
|
108
108
|
e,
|
109
109
|
"clientstyling",
|
110
110
|
/*clientstyling*/
|
111
111
|
s[6]
|
112
|
-
),
|
112
|
+
), n(
|
113
113
|
e,
|
114
114
|
"clientstylingurl",
|
115
115
|
/*clientstylingurl*/
|
116
116
|
s[7]
|
117
|
-
),
|
117
|
+
), n(
|
118
|
+
e,
|
119
|
+
"translationurl",
|
120
|
+
/*translationurl*/
|
121
|
+
s[8]
|
122
|
+
), n(
|
118
123
|
e,
|
119
124
|
"livecasino",
|
120
125
|
/*livecasino*/
|
121
|
-
s[
|
122
|
-
),
|
126
|
+
s[9]
|
127
|
+
), n(
|
123
128
|
e,
|
124
129
|
"visiblegames",
|
125
130
|
/*visiblegames*/
|
126
|
-
s[
|
127
|
-
),
|
131
|
+
s[14]
|
132
|
+
), n(
|
128
133
|
e,
|
129
134
|
"gamepagemodalurl",
|
130
135
|
/*gamepagemodalurl*/
|
131
|
-
s[
|
132
|
-
),
|
136
|
+
s[12]
|
137
|
+
), n(
|
133
138
|
e,
|
134
139
|
"integratedgameframedesktop",
|
135
140
|
/*integratedgameframedesktop*/
|
136
|
-
s[
|
137
|
-
),
|
141
|
+
s[11]
|
142
|
+
), n(
|
138
143
|
e,
|
139
144
|
"integratedgameframemobile",
|
140
145
|
/*integratedgameframemobile*/
|
141
|
-
s[
|
142
|
-
),
|
146
|
+
s[10]
|
147
|
+
), n(
|
143
148
|
e,
|
144
149
|
"casinomygames",
|
145
150
|
/*casinomygames*/
|
146
|
-
s[
|
151
|
+
s[16]
|
147
152
|
);
|
148
153
|
},
|
149
|
-
m(t,
|
150
|
-
E(t, e,
|
154
|
+
m(t, i) {
|
155
|
+
E(t, e, i);
|
151
156
|
},
|
152
|
-
p(t,
|
153
|
-
|
154
|
-
16 &&
|
157
|
+
p(t, i) {
|
158
|
+
i[0] & /*session*/
|
159
|
+
16 && n(
|
155
160
|
e,
|
156
161
|
"session",
|
157
162
|
/*session*/
|
158
163
|
t[4]
|
159
|
-
),
|
160
|
-
32 &&
|
164
|
+
), i[0] & /*userid*/
|
165
|
+
32 && n(
|
161
166
|
e,
|
162
167
|
"userid",
|
163
168
|
/*userid*/
|
164
169
|
t[5]
|
165
|
-
),
|
166
|
-
1 &&
|
170
|
+
), i[0] & /*endpoint*/
|
171
|
+
1 && n(
|
167
172
|
e,
|
168
173
|
"endpoint",
|
169
174
|
/*endpoint*/
|
170
175
|
t[0]
|
171
|
-
),
|
172
|
-
2 &&
|
176
|
+
), i[0] & /*datasource*/
|
177
|
+
2 && n(
|
173
178
|
e,
|
174
179
|
"datasource",
|
175
180
|
/*datasource*/
|
176
181
|
t[1]
|
177
|
-
),
|
178
|
-
8 &&
|
182
|
+
), i[0] & /*lang*/
|
183
|
+
8 && n(
|
179
184
|
e,
|
180
185
|
"lang",
|
181
186
|
/*lang*/
|
182
187
|
t[3]
|
183
|
-
),
|
184
|
-
4 &&
|
188
|
+
), i[0] & /*currency*/
|
189
|
+
4 && n(
|
185
190
|
e,
|
186
191
|
"currency",
|
187
192
|
/*currency*/
|
188
193
|
t[2]
|
189
|
-
),
|
190
|
-
|
194
|
+
), i[0] & /*favorites*/
|
195
|
+
32768 && n(
|
191
196
|
e,
|
192
197
|
"favorites",
|
193
198
|
/*favorites*/
|
194
|
-
t[
|
195
|
-
),
|
196
|
-
|
199
|
+
t[15]
|
200
|
+
), i[0] & /*fetchviaevent*/
|
201
|
+
131072 && n(
|
197
202
|
e,
|
198
203
|
"fetchviaevent",
|
199
204
|
/*fetchviaevent*/
|
200
|
-
t[
|
201
|
-
),
|
202
|
-
|
205
|
+
t[17]
|
206
|
+
), i[0] & /*mbsource*/
|
207
|
+
262144 && n(
|
203
208
|
e,
|
204
209
|
"mbsource",
|
205
210
|
/*mbsource*/
|
206
|
-
t[
|
207
|
-
),
|
208
|
-
|
211
|
+
t[18]
|
212
|
+
), i[0] & /*showgamename*/
|
213
|
+
8192 && n(
|
209
214
|
e,
|
210
215
|
"showgamename",
|
211
216
|
/*showgamename*/
|
212
|
-
t[
|
213
|
-
),
|
214
|
-
64 &&
|
217
|
+
t[13]
|
218
|
+
), i[0] & /*clientstyling*/
|
219
|
+
64 && n(
|
215
220
|
e,
|
216
221
|
"clientstyling",
|
217
222
|
/*clientstyling*/
|
218
223
|
t[6]
|
219
|
-
),
|
220
|
-
128 &&
|
224
|
+
), i[0] & /*clientstylingurl*/
|
225
|
+
128 && n(
|
221
226
|
e,
|
222
227
|
"clientstylingurl",
|
223
228
|
/*clientstylingurl*/
|
224
229
|
t[7]
|
225
|
-
),
|
226
|
-
256 &&
|
230
|
+
), i[0] & /*translationurl*/
|
231
|
+
256 && n(
|
232
|
+
e,
|
233
|
+
"translationurl",
|
234
|
+
/*translationurl*/
|
235
|
+
t[8]
|
236
|
+
), i[0] & /*livecasino*/
|
237
|
+
512 && n(
|
227
238
|
e,
|
228
239
|
"livecasino",
|
229
240
|
/*livecasino*/
|
230
|
-
t[
|
231
|
-
),
|
232
|
-
|
241
|
+
t[9]
|
242
|
+
), i[0] & /*visiblegames*/
|
243
|
+
16384 && n(
|
233
244
|
e,
|
234
245
|
"visiblegames",
|
235
246
|
/*visiblegames*/
|
236
|
-
t[
|
237
|
-
),
|
238
|
-
|
247
|
+
t[14]
|
248
|
+
), i[0] & /*gamepagemodalurl*/
|
249
|
+
4096 && n(
|
239
250
|
e,
|
240
251
|
"gamepagemodalurl",
|
241
252
|
/*gamepagemodalurl*/
|
242
|
-
t[
|
243
|
-
),
|
244
|
-
|
253
|
+
t[12]
|
254
|
+
), i[0] & /*integratedgameframedesktop*/
|
255
|
+
2048 && n(
|
245
256
|
e,
|
246
257
|
"integratedgameframedesktop",
|
247
258
|
/*integratedgameframedesktop*/
|
248
|
-
t[
|
249
|
-
),
|
250
|
-
|
259
|
+
t[11]
|
260
|
+
), i[0] & /*integratedgameframemobile*/
|
261
|
+
1024 && n(
|
251
262
|
e,
|
252
263
|
"integratedgameframemobile",
|
253
264
|
/*integratedgameframemobile*/
|
254
|
-
t[
|
255
|
-
),
|
256
|
-
|
265
|
+
t[10]
|
266
|
+
), i[0] & /*casinomygames*/
|
267
|
+
65536 && n(
|
257
268
|
e,
|
258
269
|
"casinomygames",
|
259
270
|
/*casinomygames*/
|
260
|
-
t[
|
271
|
+
t[16]
|
261
272
|
);
|
262
273
|
},
|
263
274
|
d(t) {
|
@@ -268,19 +279,19 @@ function we(s) {
|
|
268
279
|
function _e(s) {
|
269
280
|
let e, t = (
|
270
281
|
/*$_*/
|
271
|
-
s[
|
272
|
-
),
|
282
|
+
s[21]("noRecentGames") + ""
|
283
|
+
), i;
|
273
284
|
return {
|
274
285
|
c() {
|
275
|
-
e = L("p"),
|
286
|
+
e = L("p"), i = de(t), A(e, "class", "SearchLoading");
|
276
287
|
},
|
277
288
|
m(o, r) {
|
278
|
-
E(o, e, r), Z(e,
|
289
|
+
E(o, e, r), Z(e, i);
|
279
290
|
},
|
280
291
|
p(o, r) {
|
281
292
|
r[0] & /*$_*/
|
282
|
-
|
283
|
-
o[
|
293
|
+
2097152 && t !== (t = /*$_*/
|
294
|
+
o[21]("noRecentGames") + "") && fe(i, t);
|
284
295
|
},
|
285
296
|
d(o) {
|
286
297
|
o && D(e);
|
@@ -289,13 +300,13 @@ function _e(s) {
|
|
289
300
|
}
|
290
301
|
function ke(s) {
|
291
302
|
let e, t;
|
292
|
-
function
|
303
|
+
function i(m, d) {
|
293
304
|
return (
|
294
305
|
/*lastPlayedEmpty*/
|
295
|
-
m[
|
306
|
+
m[20] ? _e : we
|
296
307
|
);
|
297
308
|
}
|
298
|
-
let o =
|
309
|
+
let o = i(s), r = o(s);
|
299
310
|
return {
|
300
311
|
c() {
|
301
312
|
e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
|
@@ -304,7 +315,7 @@ function ke(s) {
|
|
304
315
|
E(m, e, d), Z(e, t), r.m(t, null), s[26](e);
|
305
316
|
},
|
306
317
|
p(m, d) {
|
307
|
-
o === (o =
|
318
|
+
o === (o = i(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
|
308
319
|
},
|
309
320
|
i: B,
|
310
321
|
o: B,
|
@@ -314,13 +325,13 @@ function ke(s) {
|
|
314
325
|
};
|
315
326
|
}
|
316
327
|
function Le(s, e, t) {
|
317
|
-
let
|
318
|
-
re(s, he, (a) => t(
|
328
|
+
let i;
|
329
|
+
re(s, he, (a) => t(21, i = a));
|
319
330
|
let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], I, f;
|
320
331
|
const Q = () => {
|
321
332
|
fetch(w).then((g) => g.json()).then((g) => {
|
322
|
-
Object.keys(g).forEach((
|
323
|
-
H(
|
333
|
+
Object.keys(g).forEach((u) => {
|
334
|
+
H(u, g[u]);
|
324
335
|
});
|
325
336
|
}).catch((g) => {
|
326
337
|
console.log(g);
|
@@ -330,33 +341,33 @@ function Le(s, e, t) {
|
|
330
341
|
H(a, V[a]);
|
331
342
|
});
|
332
343
|
const W = () => new Promise((a, g) => {
|
333
|
-
let
|
334
|
-
|
335
|
-
|
344
|
+
let u = new URL(`${o}/v1/player/${y}/games/last-played`);
|
345
|
+
u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
|
346
|
+
c.items = c.items.filter(($) => {
|
336
347
|
let J = !0;
|
337
|
-
return $.gameCode == "OddsMatrix2" && (
|
338
|
-
}), a(
|
348
|
+
return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
|
349
|
+
}), a(c), window.postMessage(
|
339
350
|
{
|
340
351
|
type: "AddNewCategory",
|
341
352
|
category: { name: "Last Played", id: "LASTPLAYED" }
|
342
353
|
},
|
343
354
|
window.location.href
|
344
|
-
), window.postMessage({ type: "LastPlayedGames", data:
|
345
|
-
}).catch((
|
346
|
-
console.error(
|
355
|
+
), window.postMessage({ type: "LastPlayedGames", data: c }, window.location.href);
|
356
|
+
}).catch((c) => {
|
357
|
+
console.error(c), g(c);
|
347
358
|
});
|
348
359
|
}), X = () => {
|
349
360
|
W().then((a) => {
|
350
361
|
if (a.count > 0) {
|
351
362
|
let g = [];
|
352
|
-
a.items.forEach((
|
353
|
-
let h = new URL(`${o}/v1/casino/games/${
|
354
|
-
h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((
|
355
|
-
}), Promise.all(g).then((
|
356
|
-
k =
|
363
|
+
a.items.forEach((u) => {
|
364
|
+
let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
|
365
|
+
h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((c) => c.json())) : g.push(fetch(h.href).then((c) => c.json()));
|
366
|
+
}), Promise.all(g).then((u) => {
|
367
|
+
k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
|
357
368
|
});
|
358
369
|
} else
|
359
|
-
t(
|
370
|
+
t(20, Y = !0);
|
360
371
|
});
|
361
372
|
}, p = () => {
|
362
373
|
be(d);
|
@@ -364,19 +375,19 @@ function Le(s, e, t) {
|
|
364
375
|
oe(() => () => {
|
365
376
|
});
|
366
377
|
function x(a) {
|
367
|
-
|
368
|
-
f = a, t(
|
378
|
+
ce[a ? "unshift" : "push"](() => {
|
379
|
+
f = a, t(19, f);
|
369
380
|
});
|
370
381
|
}
|
371
382
|
return s.$$set = (a) => {
|
372
|
-
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(
|
383
|
+
"endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, M = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
|
373
384
|
}, s.$$.update = () => {
|
374
385
|
s.$$.dirty[0] & /*endpoint, userid, lang*/
|
375
386
|
41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
387
|
+
256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
388
|
+
524352 && b && f && me(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
389
|
+
524416 && v && f && ue(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
390
|
+
786432 && f && ge(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
|
380
391
|
8 && d && p();
|
381
392
|
}, [
|
382
393
|
o,
|
@@ -387,6 +398,7 @@ function Le(s, e, t) {
|
|
387
398
|
y,
|
388
399
|
b,
|
389
400
|
v,
|
401
|
+
w,
|
390
402
|
_,
|
391
403
|
z,
|
392
404
|
F,
|
@@ -399,8 +411,7 @@ function Le(s, e, t) {
|
|
399
411
|
q,
|
400
412
|
f,
|
401
413
|
Y,
|
402
|
-
|
403
|
-
w,
|
414
|
+
i,
|
404
415
|
C,
|
405
416
|
S,
|
406
417
|
j,
|
@@ -415,7 +426,7 @@ class Pe extends ae {
|
|
415
426
|
e,
|
416
427
|
Le,
|
417
428
|
ke,
|
418
|
-
|
429
|
+
ie,
|
419
430
|
{
|
420
431
|
endpoint: 0,
|
421
432
|
datasource: 1,
|
@@ -425,21 +436,21 @@ class Pe extends ae {
|
|
425
436
|
userid: 5,
|
426
437
|
clientstyling: 6,
|
427
438
|
clientstylingurl: 7,
|
428
|
-
translationurl:
|
429
|
-
livecasino:
|
430
|
-
integratedgameframemobile:
|
431
|
-
integratedgameframedesktop:
|
432
|
-
gamepagemodalurl:
|
433
|
-
showgamename:
|
434
|
-
visiblegames:
|
435
|
-
favorites:
|
439
|
+
translationurl: 8,
|
440
|
+
livecasino: 9,
|
441
|
+
integratedgameframemobile: 10,
|
442
|
+
integratedgameframedesktop: 11,
|
443
|
+
gamepagemodalurl: 12,
|
444
|
+
showgamename: 13,
|
445
|
+
visiblegames: 14,
|
446
|
+
favorites: 15,
|
436
447
|
lastplayedperiod: 22,
|
437
448
|
lastplayedorder: 23,
|
438
449
|
lastplayedlimit: 24,
|
439
|
-
casinomygames:
|
450
|
+
casinomygames: 16,
|
440
451
|
lastplayedunique: 25,
|
441
|
-
fetchviaevent:
|
442
|
-
mbsource:
|
452
|
+
fetchviaevent: 17,
|
453
|
+
mbsource: 18
|
443
454
|
},
|
444
455
|
ve,
|
445
456
|
[-1, -1]
|
@@ -494,49 +505,49 @@ class Pe extends ae {
|
|
494
505
|
this.$$set({ clientstylingurl: e }), l();
|
495
506
|
}
|
496
507
|
get translationurl() {
|
497
|
-
return this.$$.ctx[
|
508
|
+
return this.$$.ctx[8];
|
498
509
|
}
|
499
510
|
set translationurl(e) {
|
500
511
|
this.$$set({ translationurl: e }), l();
|
501
512
|
}
|
502
513
|
get livecasino() {
|
503
|
-
return this.$$.ctx[
|
514
|
+
return this.$$.ctx[9];
|
504
515
|
}
|
505
516
|
set livecasino(e) {
|
506
517
|
this.$$set({ livecasino: e }), l();
|
507
518
|
}
|
508
519
|
get integratedgameframemobile() {
|
509
|
-
return this.$$.ctx[
|
520
|
+
return this.$$.ctx[10];
|
510
521
|
}
|
511
522
|
set integratedgameframemobile(e) {
|
512
523
|
this.$$set({ integratedgameframemobile: e }), l();
|
513
524
|
}
|
514
525
|
get integratedgameframedesktop() {
|
515
|
-
return this.$$.ctx[
|
526
|
+
return this.$$.ctx[11];
|
516
527
|
}
|
517
528
|
set integratedgameframedesktop(e) {
|
518
529
|
this.$$set({ integratedgameframedesktop: e }), l();
|
519
530
|
}
|
520
531
|
get gamepagemodalurl() {
|
521
|
-
return this.$$.ctx[
|
532
|
+
return this.$$.ctx[12];
|
522
533
|
}
|
523
534
|
set gamepagemodalurl(e) {
|
524
535
|
this.$$set({ gamepagemodalurl: e }), l();
|
525
536
|
}
|
526
537
|
get showgamename() {
|
527
|
-
return this.$$.ctx[
|
538
|
+
return this.$$.ctx[13];
|
528
539
|
}
|
529
540
|
set showgamename(e) {
|
530
541
|
this.$$set({ showgamename: e }), l();
|
531
542
|
}
|
532
543
|
get visiblegames() {
|
533
|
-
return this.$$.ctx[
|
544
|
+
return this.$$.ctx[14];
|
534
545
|
}
|
535
546
|
set visiblegames(e) {
|
536
547
|
this.$$set({ visiblegames: e }), l();
|
537
548
|
}
|
538
549
|
get favorites() {
|
539
|
-
return this.$$.ctx[
|
550
|
+
return this.$$.ctx[15];
|
540
551
|
}
|
541
552
|
set favorites(e) {
|
542
553
|
this.$$set({ favorites: e }), l();
|
@@ -560,7 +571,7 @@ class Pe extends ae {
|
|
560
571
|
this.$$set({ lastplayedlimit: e }), l();
|
561
572
|
}
|
562
573
|
get casinomygames() {
|
563
|
-
return this.$$.ctx[
|
574
|
+
return this.$$.ctx[16];
|
564
575
|
}
|
565
576
|
set casinomygames(e) {
|
566
577
|
this.$$set({ casinomygames: e }), l();
|
@@ -572,19 +583,19 @@ class Pe extends ae {
|
|
572
583
|
this.$$set({ lastplayedunique: e }), l();
|
573
584
|
}
|
574
585
|
get fetchviaevent() {
|
575
|
-
return this.$$.ctx[
|
586
|
+
return this.$$.ctx[17];
|
576
587
|
}
|
577
588
|
set fetchviaevent(e) {
|
578
589
|
this.$$set({ fetchviaevent: e }), l();
|
579
590
|
}
|
580
591
|
get mbsource() {
|
581
|
-
return this.$$.ctx[
|
592
|
+
return this.$$.ctx[18];
|
582
593
|
}
|
583
594
|
set mbsource(e) {
|
584
595
|
this.$$set({ mbsource: e }), l();
|
585
596
|
}
|
586
597
|
}
|
587
|
-
|
598
|
+
ne(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
|
588
599
|
export {
|
589
600
|
Pe as default
|
590
601
|
};
|
@@ -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/CasinoLastPlayedSection-
|
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/CasinoLastPlayedSection-6bLmNeoB.cjs")).then(({default:t})=>{!customElements.get("casino-last-played-section")&&customElements.define("casino-last-played-section",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLastPlayedSection-wdtsNIUk.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-last-played-section") && customElements.define("casino-last-played-section", t.element);
|
15
15
|
});
|
16
16
|
}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-BTWS0FsQ.cjs");function z(n,e){t.addMessages(n,e)}function K(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};if(typeof window!="undefined"){let n=function(e){return function(...a){try{return e.apply(this,a)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-2ovoa6CH.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function Q(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function W(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[14]),t.set_custom_element_data(e,"fetchviaevent",n[16]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"mbsource",n[17]),t.set_custom_element_data(e,"showgamename",n[12]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"livecasino",n[8]),t.set_custom_element_data(e,"visiblegames",n[13]),t.set_custom_element_data(e,"gamepagemodalurl",n[11]),t.set_custom_element_data(e,"integratedgameframedesktop",n[10]),t.set_custom_element_data(e,"integratedgameframemobile",n[9]),t.set_custom_element_data(e,"casinomygames",n[15])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",a[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",a[16]),i[0]&131072&&t.set_custom_element_data(e,"mbsource",a[17]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",a[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",a[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",a[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",a[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",a[15])},d(a){a&&t.detach(e)}}}function X(n){let e,a=n[20]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&1048576&&a!==(a=o[20]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[19]?X:W}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(20,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:E="false"}=e,{showgamename:M=""}=e,{visiblegames:k=""}=e,{favorites:D=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,O=!1,w=[],N,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(r=>{z(r,c[r])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let r=new URL(`${o}/v1/player/${h}/games/last-played`);r.searchParams.append("unique",j),r.searchParams.append("limit",C),r.searchParams.append("order",L),r.searchParams.append("period",P),t.getDevice(I)==="PC"?r.searchParams.append("device","Desktop"):r.searchParams.append("device","Mobile"),N=v?r:r.href,fetch(N).then(m=>m.json()).then(m=>{m.items=m.items.filter(B=>{let T=!0;return B.gameCode=="OddsMatrix2"&&(m.count--,T=!1),T}),s(m),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:m},window.location.href)}).catch(m=>{console.error(m),c(m)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(r=>{let f=new URL(`${o}/v1/casino/games/${r.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(m=>m.json())):c.push(fetch(f.href).then(m=>m.json()))}),Promise.all(c).then(r=>{w=r.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(19,O=!0)})},Z=()=>{K(d)};t.onMount(()=>()=>{});function p(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(18,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,h=s.userid),"clientstyling"in s&&a(6,_=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(21,b=s.translationurl),"livecasino"in s&&a(8,v=s.livecasino),"integratedgameframemobile"in s&&a(9,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(10,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(11,E=s.gamepagemodalurl),"showgamename"in s&&a(12,M=s.showgamename),"visiblegames"in s&&a(13,k=s.visiblegames),"favorites"in s&&a(14,D=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(15,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(16,F=s.fetchviaevent),"mbsource"in s&&a(17,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&V(),n.$$.dirty[0]&2097152&&b&&J(),n.$$.dirty[0]&262208&&_&&g&&t.setClientStyling(g,_),n.$$.dirty[0]&262272&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&393216&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,h,_,y,v,R,A,E,M,k,D,S,F,q,g,O,i,b,P,L,C,j,p]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:21,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:15,lastplayedunique:25,fetchviaevent:16,mbsource:17},Q,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[12]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
|