@everymatrix/casino-last-played-section 1.45.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoFilter-DvwXHWZ_.cjs");function O(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const z={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."}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}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-BAaZoBNZ.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function W(n){t.append_styles(n,"svelte-12y9z0x","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}")}function X(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,"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(s,i){t.insert(s,e,i)},p(s,i){i[0]&16&&t.set_custom_element_data(e,"session",s[4]),i[0]&32&&t.set_custom_element_data(e,"userid",s[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",s[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",s[1]),i[0]&8&&t.set_custom_element_data(e,"lang",s[3]),i[0]&4&&t.set_custom_element_data(e,"currency",s[2]),i[0]&16384&&t.set_custom_element_data(e,"favorites",s[14]),i[0]&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i[0]&4096&&t.set_custom_element_data(e,"showgamename",s[12]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i[0]&256&&t.set_custom_element_data(e,"livecasino",s[8]),i[0]&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i[0]&2048&&t.set_custom_element_data(e,"gamepagemodalurl",s[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i[0]&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i[0]&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function x(n){let e,s=n[19]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(s),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&524288&&s!==(s=o[19]("noRecentGames")+"")&&t.set_data(i,s)},d(o){o&&t.detach(e)}}}function $(n){let e,s;function i(c,d){return c[18]?x:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),s=t.element("div"),l.c(),t.attr(s,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(c,d){t.insert(c,e,d),t.append(e,s),l.m(s,null),n[25](e)},p(c,d){o===(o=i(c))&&l?l.p(c,d):(l.d(1),l=o(c),l&&(l.c(),l.m(s,null)))},i:t.noop,o:t.noop,d(c){c&&t.detach(e),l.d(),n[25](null)}}}function ee(n,e,s){let i;t.component_subscribe(n,t.$format,a=>s(19,i=a));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:c=""}=e,{lang:d=""}=e,{session:q=""}=e,{userid:h=""}=e,{clientstyling:_=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:E="false"}=e,{gamepagemodalurl:G="false"}=e,{showgamename:A=""}=e,{visiblegames:L=""}=e,{favorites:M=""}=e,{lastplayedperiod:k="Last30Days"}=e,{lastplayedorder:P=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:j="false"}=e,{lastplayedunique:S="true"}=e,{fetchviaevent:D="true"}=e,U=window.navigator.userAgent,T=!1,w=[],p,f;const H=()=>{fetch(b).then(r=>r.json()).then(r=>{Object.keys(r).forEach(m=>{O(m,r[m])})}).catch(r=>{console.log(r)})};Object.keys(z).forEach(a=>{O(a,z[a])});const Y=()=>new Promise((a,r)=>{let m=new URL(`${o}/v1/player/${h}/games/last-played`);m.searchParams.append("unique",S),m.searchParams.append("limit",C),m.searchParams.append("order",P),m.searchParams.append("period",k),t.getDevice(U)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),p=v?m:m.href,fetch(p).then(u=>u.json()).then(u=>{u.items=u.items.filter(K=>{let F=!0;return K.gameCode=="OddsMatrix2"&&(u.count--,F=!1),F}),a(u),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:u},window.location.href)}).catch(u=>{console.error(u),r(u)})}),I=()=>{Y().then(a=>{if(a.count>0){let r=[];a.items.forEach(m=>{let g=new URL(`${o}/v1/casino/games/${m.gameId}`);g.searchParams.append("datasource",l),v?r.push(fetch(g.href).then(u=>u.json())):r.push(fetch(g.href).then(u=>u.json()))}),Promise.all(r).then(m=>{w=m.filter(g=>!("error"in g)).map(g=>g[0]),j==="true"&&(w=w.slice(0,JSON.parse(L))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else s(18,T=!0)})},J=()=>{Q(d)},V=()=>{let a=document.createElement("style");a.innerHTML=_,f.appendChild(a)},Z=()=>{let a=document.createElement("style");fetch(new URL(y)).then(r=>r.text()).then(r=>{a.innerHTML=r,setTimeout(()=>{f.appendChild(a)},1)})};function B(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(17,f)})}return n.$$set=a=>{"endpoint"in a&&s(0,o=a.endpoint),"datasource"in a&&s(1,l=a.datasource),"currency"in a&&s(2,c=a.currency),"lang"in a&&s(3,d=a.lang),"session"in a&&s(4,q=a.session),"userid"in a&&s(5,h=a.userid),"clientstyling"in a&&s(6,_=a.clientstyling),"clientstylingurl"in a&&s(7,y=a.clientstylingurl),"translationurl"in a&&s(20,b=a.translationurl),"livecasino"in a&&s(8,v=a.livecasino),"integratedgameframemobile"in a&&s(9,R=a.integratedgameframemobile),"integratedgameframedesktop"in a&&s(10,E=a.integratedgameframedesktop),"gamepagemodalurl"in a&&s(11,G=a.gamepagemodalurl),"showgamename"in a&&s(12,A=a.showgamename),"visiblegames"in a&&s(13,L=a.visiblegames),"favorites"in a&&s(14,M=a.favorites),"lastplayedperiod"in a&&s(21,k=a.lastplayedperiod),"lastplayedorder"in a&&s(22,P=a.lastplayedorder),"lastplayedlimit"in a&&s(23,C=a.lastplayedlimit),"casinomygames"in a&&s(15,j=a.casinomygames),"lastplayedunique"in a&&s(24,S=a.lastplayedunique),"fetchviaevent"in a&&s(16,D=a.fetchviaevent)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&h&&d&&I(),n.$$.dirty[0]&1048576&&b&&H(),n.$$.dirty[0]&131136&&_&&f&&V(),n.$$.dirty[0]&131200&&y&&f&&Z(),n.$$.dirty[0]&8&&d&&J()},[o,l,c,d,q,h,_,y,v,R,E,G,A,L,M,j,D,f,T,i,b,k,P,C,S,B]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ee,$,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:20,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,showgamename:12,visiblegames:13,favorites:14,lastplayedperiod:21,lastplayedorder:22,lastplayedlimit:23,casinomygames:15,lastplayedunique:24,fetchviaevent:16},W,[-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[20]}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[21]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[22]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[23]}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[24]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(N,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{}},[],[],!0);exports.default=N;
@@ -1,4 +1,4 @@
1
- import { a as te, $ as ae, S as se, i as ne, f as l, c as ie, s as le, b as re, e as k, h as E, k as G, l as B, o as Y, p as A, q as oe, y as ce, F as n, t as me, m as ge, B as ue, x as de } from "./CasinoFilter-BA6RsRdQ.js";
1
+ import { a as te, $ as ae, S as se, i as ne, f as l, c as ie, s as le, b as re, e as L, h as A, k as G, l as V, n as Y, o as q, p as oe, x as ce, E as n, t as me, m as ue, A as ge, w as de } from "./CasinoFilter-H10ltJK5.js";
2
2
  function I(s, e) {
3
3
  te(s, e);
4
4
  }
@@ -40,18 +40,18 @@ if (typeof window != "undefined") {
40
40
  }
41
41
  };
42
42
  };
43
- customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-BqPidgQt.js").then(({ default: e }) => {
43
+ customElements.define = s(customElements.define), import("./CasinoGamesCategorySection-DA91MEdW.js").then(({ default: e }) => {
44
44
  !customElements.get("casino-games-category-section") && customElements.define("casino-games-category-section", e.element);
45
45
  });
46
46
  }
47
47
  function he(s) {
48
- re(s, "svelte-12g7jmb", ".svelte-12g7jmb,.svelte-12g7jmb::before,.svelte-12g7jmb::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection.svelte-12g7jmb{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
48
+ re(s, "svelte-12y9z0x", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoLastPlayedSection{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}");
49
49
  }
50
50
  function ye(s) {
51
51
  let e;
52
52
  return {
53
53
  c() {
54
- e = k("casino-games-category-section"), n(
54
+ e = L("casino-games-category-section"), n(
55
55
  e,
56
56
  "session",
57
57
  /*session*/
@@ -91,7 +91,7 @@ function ye(s) {
91
91
  "fetchviaevent",
92
92
  /*fetchviaevent*/
93
93
  s[16]
94
- ), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer svelte-12g7jmb"), n(
94
+ ), n(e, "categoryid", "LASTPLAYED"), n(e, "categoryindex", "1"), n(e, "categorygames", "9"), n(e, "class", "CategoryContainer"), n(
95
95
  e,
96
96
  "showgamename",
97
97
  /*showgamename*/
@@ -247,7 +247,7 @@ function ye(s) {
247
247
  );
248
248
  },
249
249
  d(a) {
250
- a && A(e);
250
+ a && q(e);
251
251
  }
252
252
  };
253
253
  }
@@ -258,52 +258,52 @@ function be(s) {
258
258
  ), i;
259
259
  return {
260
260
  c() {
261
- e = k("p"), i = me(a), E(e, "class", "SearchLoading svelte-12g7jmb");
261
+ e = L("p"), i = me(a), A(e, "class", "SearchLoading");
262
262
  },
263
263
  m(o, r) {
264
- G(o, e, r), B(e, i);
264
+ G(o, e, r), V(e, i);
265
265
  },
266
266
  p(o, r) {
267
267
  r[0] & /*$_*/
268
268
  524288 && a !== (a = /*$_*/
269
- o[19]("noRecentGames") + "") && ge(i, a);
269
+ o[19]("noRecentGames") + "") && ue(i, a);
270
270
  },
271
271
  d(o) {
272
- o && A(e);
272
+ o && q(e);
273
273
  }
274
274
  };
275
275
  }
276
276
  function ve(s) {
277
277
  let e, a;
278
- function i(u, d) {
278
+ function i(g, d) {
279
279
  return (
280
280
  /*lastPlayedEmpty*/
281
- u[18] ? be : ye
281
+ g[18] ? be : ye
282
282
  );
283
283
  }
284
284
  let o = i(s), r = o(s);
285
285
  return {
286
286
  c() {
287
- e = k("div"), a = k("div"), r.c(), E(a, "class", "CasinoLastPlayedSection svelte-12g7jmb"), E(e, "class", "CasinoGamesCategorySectionContainer svelte-12g7jmb");
287
+ e = L("div"), a = L("div"), r.c(), A(a, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
288
288
  },
289
- m(u, d) {
290
- G(u, e, d), B(e, a), r.m(a, null), s[25](e);
289
+ m(g, d) {
290
+ G(g, e, d), V(e, a), r.m(a, null), s[25](e);
291
291
  },
292
- p(u, d) {
293
- o === (o = i(u)) && r ? r.p(u, d) : (r.d(1), r = o(u), r && (r.c(), r.m(a, null)));
292
+ p(g, d) {
293
+ o === (o = i(g)) && r ? r.p(g, d) : (r.d(1), r = o(g), r && (r.c(), r.m(a, null)));
294
294
  },
295
295
  i: Y,
296
296
  o: Y,
297
- d(u) {
298
- u && A(e), r.d(), s[25](null);
297
+ d(g) {
298
+ g && q(e), r.d(), s[25](null);
299
299
  }
300
300
  };
301
301
  }
302
302
  function we(s, e, a) {
303
303
  let i;
304
- oe(s, ue, (t) => a(19, i = t));
305
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: u = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: D = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: T = "false" } = e, { showgamename: p = "" } = e, { visiblegames: L = "" } = e, { favorites: N = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: P = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: R = "false" } = e, { lastplayedunique: q = "true" } = e, { fetchviaevent: O = "true" } = e, V = window.navigator.userAgent, z = !1, j = [], U, h;
306
- const Z = () => {
304
+ oe(s, ge, (t) => a(19, i = t));
305
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: g = "" } = e, { lang: d = "" } = e, { session: M = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: D = "false" } = e, { integratedgameframedesktop: T = "false" } = e, { gamepagemodalurl: p = "false" } = e, { showgamename: F = "" } = e, { visiblegames: C = "" } = e, { favorites: z = "" } = e, { lastplayedperiod: P = "Last30Days" } = e, { lastplayedorder: j = "" } = e, { lastplayedlimit: S = "" } = e, { casinomygames: E = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: N = "true" } = e, Z = window.navigator.userAgent, O = !1, k = [], U, h;
306
+ const B = () => {
307
307
  fetch(w).then((c) => c.json()).then((c) => {
308
308
  Object.keys(c).forEach((m) => {
309
309
  I(m, c[m]);
@@ -317,19 +317,19 @@ function we(s, e, a) {
317
317
  });
318
318
  const K = () => new Promise((t, c) => {
319
319
  let m = new URL(`${o}/v1/player/${y}/games/last-played`);
320
- m.searchParams.append("unique", q), m.searchParams.append("limit", S), m.searchParams.append("order", P), m.searchParams.append("period", C), de(V) === "PC" ? m.searchParams.append("device", "Desktop") : m.searchParams.append("device", "Mobile"), U = _ ? m : m.href, fetch(U).then((g) => g.json()).then((g) => {
321
- g.items = g.items.filter((ee) => {
320
+ m.searchParams.append("unique", R), m.searchParams.append("limit", S), m.searchParams.append("order", j), m.searchParams.append("period", P), de(Z) === "PC" ? m.searchParams.append("device", "Desktop") : m.searchParams.append("device", "Mobile"), U = _ ? m : m.href, fetch(U).then((u) => u.json()).then((u) => {
321
+ u.items = u.items.filter((ee) => {
322
322
  let H = !0;
323
- return ee.gameCode == "OddsMatrix2" && (g.count--, H = !1), H;
324
- }), t(g), window.postMessage(
323
+ return ee.gameCode == "OddsMatrix2" && (u.count--, H = !1), H;
324
+ }), t(u), window.postMessage(
325
325
  {
326
326
  type: "AddNewCategory",
327
327
  category: { name: "Last Played", id: "LASTPLAYED" }
328
328
  },
329
329
  window.location.href
330
- ), window.postMessage({ type: "LastPlayedGames", data: g }, window.location.href);
331
- }).catch((g) => {
332
- console.error(g), c(g);
330
+ ), window.postMessage({ type: "LastPlayedGames", data: u }, window.location.href);
331
+ }).catch((u) => {
332
+ console.error(u), c(u);
333
333
  });
334
334
  }), Q = () => {
335
335
  K().then((t) => {
@@ -337,12 +337,12 @@ function we(s, e, a) {
337
337
  let c = [];
338
338
  t.items.forEach((m) => {
339
339
  let f = new URL(`${o}/v1/casino/games/${m.gameId}`);
340
- f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((g) => g.json())) : c.push(fetch(f.href).then((g) => g.json()));
340
+ f.searchParams.append("datasource", r), _ ? c.push(fetch(f.href).then((u) => u.json())) : c.push(fetch(f.href).then((u) => u.json()));
341
341
  }), Promise.all(c).then((m) => {
342
- j = m.filter((f) => !("error" in f)).map((f) => f[0]), R === "true" && (j = j.slice(0, JSON.parse(L))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: j }, window.location.href);
342
+ k = m.filter((f) => !("error" in f)).map((f) => f[0]), E === "true" && (k = k.slice(0, JSON.parse(C))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
343
343
  });
344
344
  } else
345
- a(18, z = !0);
345
+ a(18, O = !0);
346
346
  });
347
347
  }, W = () => {
348
348
  fe(d);
@@ -366,18 +366,18 @@ function we(s, e, a) {
366
366
  });
367
367
  }
368
368
  return s.$$set = (t) => {
369
- "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, u = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, M = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, D = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, F = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, T = t.gamepagemodalurl), "showgamename" in t && a(12, p = t.showgamename), "visiblegames" in t && a(13, L = t.visiblegames), "favorites" in t && a(14, N = t.favorites), "lastplayedperiod" in t && a(21, C = t.lastplayedperiod), "lastplayedorder" in t && a(22, P = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, R = t.casinomygames), "lastplayedunique" in t && a(24, q = t.lastplayedunique), "fetchviaevent" in t && a(16, O = t.fetchviaevent);
369
+ "endpoint" in t && a(0, o = t.endpoint), "datasource" in t && a(1, r = t.datasource), "currency" in t && a(2, g = t.currency), "lang" in t && a(3, d = t.lang), "session" in t && a(4, M = t.session), "userid" in t && a(5, y = t.userid), "clientstyling" in t && a(6, b = t.clientstyling), "clientstylingurl" in t && a(7, v = t.clientstylingurl), "translationurl" in t && a(20, w = t.translationurl), "livecasino" in t && a(8, _ = t.livecasino), "integratedgameframemobile" in t && a(9, D = t.integratedgameframemobile), "integratedgameframedesktop" in t && a(10, T = t.integratedgameframedesktop), "gamepagemodalurl" in t && a(11, p = t.gamepagemodalurl), "showgamename" in t && a(12, F = t.showgamename), "visiblegames" in t && a(13, C = t.visiblegames), "favorites" in t && a(14, z = t.favorites), "lastplayedperiod" in t && a(21, P = t.lastplayedperiod), "lastplayedorder" in t && a(22, j = t.lastplayedorder), "lastplayedlimit" in t && a(23, S = t.lastplayedlimit), "casinomygames" in t && a(15, E = t.casinomygames), "lastplayedunique" in t && a(24, R = t.lastplayedunique), "fetchviaevent" in t && a(16, N = t.fetchviaevent);
370
370
  }, s.$$.update = () => {
371
371
  s.$$.dirty[0] & /*endpoint, userid, lang*/
372
372
  41 && o && y && d && Q(), s.$$.dirty[0] & /*translationurl*/
373
- 1048576 && w && Z(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
373
+ 1048576 && w && B(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
374
374
  131136 && b && h && X(), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
375
375
  131200 && v && h && x(), s.$$.dirty[0] & /*lang*/
376
376
  8 && d && W();
377
377
  }, [
378
378
  o,
379
379
  r,
380
- u,
380
+ g,
381
381
  d,
382
382
  M,
383
383
  y,
@@ -385,21 +385,21 @@ function we(s, e, a) {
385
385
  v,
386
386
  _,
387
387
  D,
388
- F,
389
388
  T,
390
389
  p,
391
- L,
390
+ F,
391
+ C,
392
+ z,
393
+ E,
392
394
  N,
393
- R,
394
- O,
395
395
  h,
396
- z,
396
+ O,
397
397
  i,
398
398
  w,
399
- C,
400
399
  P,
400
+ j,
401
401
  S,
402
- q,
402
+ R,
403
403
  $
404
404
  ];
405
405
  }