@everymatrix/casino-page-nd 1.88.4 → 1.88.6
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/{CasinoCalendar-iryuTcDf.js → CasinoCalendar-2v8KmLtG.js} +3 -3
- package/components/{CasinoCalendar-Bs5y6HyN.js → CasinoCalendar-CqlNd02f.js} +3 -3
- package/components/{CasinoCalendar-PHBPbaF2.cjs → CasinoCalendar-D6mSP0wJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-C4ABK-hj.js → CasinoCalendarDailyDetails-DfLgjOnE.js} +1 -1
- package/components/{CasinoCalendarDailyDetails-R-BUs_4C.js → CasinoCalendarDailyDetails-DqZ1EB8U.js} +1 -1
- package/components/{CasinoCalendarDailyDetails-CuTWW_kP.cjs → CasinoCalendarDailyDetails-DrrMa8G-.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-COG9HtgU.js → CasinoCalendarDailyItem-CLmYBy5V.js} +1 -1
- package/components/{CasinoCalendarDailyItem-DrPis4DQ.cjs → CasinoCalendarDailyItem-D8ayBNeo.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CC--t0n4.js → CasinoCalendarDailyItem-DmTah2Ox.js} +1 -1
- package/components/{CasinoCollectionsProviders-0ev_Ppit.js → CasinoCollectionsProviders-CorJFiDe.js} +1 -1
- package/components/{CasinoCollectionsProviders-BypTWAZo.js → CasinoCollectionsProviders-CsPgOec7.js} +1 -1
- package/components/{CasinoCollectionsProviders-AG8aMeSb.cjs → CasinoCollectionsProviders-Gi43RX3s.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-B6pCB7G5.js → CasinoFavoritesSectionNd-B8p1vike.js} +2 -2
- package/components/{CasinoFavoritesSectionNd-5FvWMLZC.cjs → CasinoFavoritesSectionNd-CUs4uHvm.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BYa2wBNM.js → CasinoFavoritesSectionNd-D-OzpP1D.js} +2 -2
- package/components/{CasinoFilter-DEj_J9bg.cjs → CasinoFilter-8KdY9wF9.cjs} +1 -1
- package/components/{CasinoFilter-DYw8BdiR.js → CasinoFilter-DDepo-i_.js} +1 -1
- package/components/{CasinoFilter-e11MfDcv.js → CasinoFilter-DLJXOfpY.js} +1 -1
- package/components/{CasinoGameThumbnailNd-DX4CDofr.js → CasinoGameThumbnailNd-B138gbNc.js} +2 -2
- package/components/{CasinoGameThumbnailNd-BZefDcZd.cjs → CasinoGameThumbnailNd-BwGwKMIj.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-CqIV-bJY.js → CasinoGameThumbnailNd-DEcdS_Ap.js} +2 -2
- package/components/{CasinoGamesCategorySectionNd-McQOy3WA.js → CasinoGamesCategorySectionNd-7Q-QnDWT.js} +233 -231
- package/components/{CasinoGamesCategorySectionNd-4ZZ4Ij55.js → CasinoGamesCategorySectionNd-Ce-N9ECY.js} +234 -232
- package/components/{CasinoGamesCategorySectionNd-gvDywBqd.cjs → CasinoGamesCategorySectionNd-Q_0eGBpu.cjs} +1 -1
- package/components/{CasinoJackpotBanner-C999kfwM.js → CasinoJackpotBanner-CX2xIXsB.js} +1 -1
- package/components/{CasinoJackpotBanner-ChDCq-pm.js → CasinoJackpotBanner-CYt6KWDz.js} +1 -1
- package/components/{CasinoJackpotBanner-C2hkNEGV.cjs → CasinoJackpotBanner-D9PObgDw.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-DnRPSYli.js → CasinoLastPlayedSectionNd-BpKpVPAr.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-D06owEgz.js → CasinoLastPlayedSectionNd-DNdVwKwY.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-Bw90251i.cjs → CasinoLastPlayedSectionNd-DPLSrjc-.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-DU-v7apF.js → CasinoMostPlayedSectionNd-C0EpI2-9.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-DEc87MqG.cjs → CasinoMostPlayedSectionNd-Dkjf16fh.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-BfZOpaFO.js → CasinoMostPlayedSectionNd-LwVUX5eL.js} +2 -2
- package/components/{CasinoMyGamesNd-CJntrYV2.cjs → CasinoMyGamesNd-CLmjlE6H.cjs} +1 -1
- package/components/{CasinoMyGamesNd-C7rR07x8.js → CasinoMyGamesNd-D37uyGzg.js} +4 -4
- package/components/{CasinoMyGamesNd-BZI5QXz9.js → CasinoMyGamesNd-DQkXyjn1.js} +4 -4
- package/components/{CasinoPageNd-Bs5io29X.js → CasinoPageNd-C3I90qgz.js} +10 -10
- package/components/{CasinoPageNd-BXyyuhSz.js → CasinoPageNd-DecZz0bA.js} +10 -10
- package/components/{CasinoPageNd-C2hbDxOV.cjs → CasinoPageNd-sBqrOtht.cjs} +1 -1
- package/components/{CasinoRandomGame-BJb8zmCb.js → CasinoRandomGame-Bj6hLVg7.js} +1 -1
- package/components/{CasinoRandomGame-BEdQUQuH.cjs → CasinoRandomGame-D8noKlPx.cjs} +1 -1
- package/components/{CasinoRandomGame--THH_bxj.js → CasinoRandomGame-TX3_oKyQ.js} +1 -1
- package/components/{CasinoSearchNd-CbiqxzyM.js → CasinoSearchNd-DfmzrMbD.js} +3 -3
- package/components/{CasinoSearchNd-BQK0IJ37.cjs → CasinoSearchNd-DzmdB6wz.cjs} +1 -1
- package/components/{CasinoSearchNd-DnkqLhHx.js → CasinoSearchNd-dKgX0PeS.js} +3 -3
- package/components/{CasinoSort-DPRZB8eu.js → CasinoSort-BvIhZgZN.js} +1 -1
- package/components/{CasinoSort-DB2ayLHB.js → CasinoSort-C0Jjqmrf.js} +1 -1
- package/components/{CasinoSort-BujYz95D.cjs → CasinoSort-qyHfdFy3.cjs} +1 -1
- package/components/{CasinoWinners-B-8_zRNZ.js → CasinoWinners-BDDBeDxe.js} +2 -2
- package/components/{CasinoWinners-DzNXPK5o.js → CasinoWinners-CS1za1iW.js} +2 -2
- package/components/{CasinoWinners-DR9GT2S_.cjs → CasinoWinners-DAhoht2U.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DiNzR6l5.js → GeneralAnimationLoading-B4Miia6j.js} +1 -1
- package/components/{GeneralAnimationLoading-pmqKotOM.cjs → GeneralAnimationLoading-C5fu_cQV.cjs} +1 -1
- package/components/{GeneralAnimationLoading-C2OTi339.js → GeneralAnimationLoading-CVT4i-Ba.js} +1 -1
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/lazy/{casino-calendar-CI4g5jG1.js → casino-calendar-CRfqGFJh.js} +1 -1
- package/lazy/{casino-calendar-Zc3qHDJS.cjs → casino-calendar-Cv9hPqFs.cjs} +1 -1
- package/lazy/{casino-calendar-DOMBK3sZ.js → casino-calendar-GXRgvQkq.js} +1 -1
- package/lazy/{casino-calendar-daily-details-Cjo8f_8W.js → casino-calendar-daily-details-Dq6rsDPF.js} +1 -1
- package/lazy/{casino-calendar-daily-details-3m2_rWNq.cjs → casino-calendar-daily-details-DxBxsnKv.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-Dc3FO0Ub.js → casino-calendar-daily-details-YNzZvEql.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DFfpjqap.js → casino-calendar-daily-item-BZA3jMsA.js} +1 -1
- package/lazy/{casino-calendar-daily-item-CM8aGlMP.js → casino-calendar-daily-item-DHiuQHhX.js} +1 -1
- package/lazy/{casino-calendar-daily-item-BH7NUcKC.cjs → casino-calendar-daily-item-xmH8-W-7.cjs} +1 -1
- package/lazy/{casino-collections-providers-CO4X2MJz.js → casino-collections-providers-BofsQfPr.js} +1 -1
- package/lazy/{casino-collections-providers-CcxIzo2c.cjs → casino-collections-providers-CjD90HQf.cjs} +1 -1
- package/lazy/{casino-collections-providers-DVmlubKt.js → casino-collections-providers-CnBa3_xG.js} +1 -1
- package/lazy/{casino-favorites-section-nd-pSMsOKXp.js → casino-favorites-section-nd-CrLNMvhU.js} +1 -1
- package/lazy/{casino-favorites-section-nd-DOu6nuT1.cjs → casino-favorites-section-nd-D3u9bZzR.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd-BNOwJhkX.js → casino-favorites-section-nd-Dpot-5KU.js} +1 -1
- package/lazy/{casino-filter-Dv9tdP1N.cjs → casino-filter-BEk5FFr6.cjs} +1 -1
- package/lazy/{casino-filter-VPOkWuw9.js → casino-filter-DFLWJ_gB.js} +1 -1
- package/lazy/{casino-filter-acM5UgpI.js → casino-filter-DWBDsS3s.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CnnTraQF.js → casino-game-thumbnail-nd-CLjYTZIW.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-CWovp-ET.js → casino-game-thumbnail-nd-DpmtVDy7.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-DgSFdag1.cjs → casino-game-thumbnail-nd-NVfnlxo5.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-BUHlgD7x.js → casino-games-category-section-nd-4g1T-MPF.js} +1 -1
- package/lazy/{casino-games-category-section-nd-DWxGgvxH.cjs → casino-games-category-section-nd-Dkzor4Tq.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-CN9DU7wr.js → casino-games-category-section-nd-DogtXnT6.js} +1 -1
- package/lazy/{casino-jackpot-banner-D1HXuC11.cjs → casino-jackpot-banner-C9WcmG5E.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-BQeYLvs-.js → casino-jackpot-banner-DLVaIc33.js} +1 -1
- package/lazy/{casino-jackpot-banner-ChsbXQ4C.js → casino-jackpot-banner-RYF2rRW8.js} +1 -1
- package/lazy/{casino-last-played-section-nd-Cn7lfVWT.cjs → casino-last-played-section-nd-CJ7aai7v.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-DneNT8Li.js → casino-last-played-section-nd-CWnGpMSh.js} +1 -1
- package/lazy/{casino-last-played-section-nd-CkUEUnrS.js → casino-last-played-section-nd-PgjgjfkF.js} +1 -1
- package/lazy/{casino-most-played-section-nd-Cm0pOTKd.js → casino-most-played-section-nd-BxmUiyAs.js} +1 -1
- package/lazy/{casino-most-played-section-nd-DLTu3UOC.js → casino-most-played-section-nd-CbBQNkBC.js} +1 -1
- package/lazy/{casino-most-played-section-nd-BWUJg4HF.cjs → casino-most-played-section-nd-ChDueNja.cjs} +1 -1
- package/lazy/{casino-my-games-nd-Bbfj1SMZ.js → casino-my-games-nd-BVaHQL-w.js} +1 -1
- package/lazy/{casino-my-games-nd-CmaeOGG4.js → casino-my-games-nd-CKLSYuy7.js} +1 -1
- package/lazy/{casino-my-games-nd-B1nXxgRi.cjs → casino-my-games-nd-Cy-LfWrR.cjs} +1 -1
- package/lazy/{casino-play-random-game-pwqgQVLV.cjs → casino-play-random-game-CeZZ7mhN.cjs} +1 -1
- package/lazy/{casino-play-random-game-CFCxse5b.js → casino-play-random-game-CoQ9xSZ4.js} +1 -1
- package/lazy/{casino-play-random-game-BWZurtgT.js → casino-play-random-game-DVsDGezc.js} +1 -1
- package/lazy/{casino-random-game-fn7RFIyr.js → casino-random-game-B-Dbfi_Z.js} +1 -1
- package/lazy/{casino-random-game-vA3NldiD.js → casino-random-game-Dqpy-ahE.js} +1 -1
- package/lazy/{casino-random-game-DXUhJxyK.cjs → casino-random-game-EeYGt0i9.cjs} +1 -1
- package/lazy/{casino-search-nd-3lnOxiIT.js → casino-search-nd-DG_9lIKs.js} +1 -1
- package/lazy/{casino-search-nd-3aKojkkq.js → casino-search-nd-Dr2QdUSS.js} +1 -1
- package/lazy/{casino-search-nd-rcOSGuFP.cjs → casino-search-nd-VzzQfjQ3.cjs} +1 -1
- package/lazy/{casino-sort-Br-qTKj8.cjs → casino-sort-BGxScqHd.cjs} +1 -1
- package/lazy/{casino-sort-Bjcbtdcf.js → casino-sort-CoLP_8T8.js} +1 -1
- package/lazy/{casino-sort-B6tPZ6GA.js → casino-sort-DZ2AaMDF.js} +1 -1
- package/lazy/{casino-winners-CqZtClFG.js → casino-winners-4rTwzY8_.js} +1 -1
- package/lazy/{casino-winners-C8D49Lnd.cjs → casino-winners-B_FPafju.cjs} +1 -1
- package/lazy/{casino-winners-CLQj9w4c.js → casino-winners-DZ6LyVKE.js} +1 -1
- package/lazy/{general-animation-loading-Qh0Npy2M.js → general-animation-loading-DLw3WzsN.js} +1 -1
- package/lazy/{general-animation-loading-C5k5jvFT.js → general-animation-loading-MZxx7I-B.js} +1 -1
- package/lazy/{general-animation-loading-D2J7wscz.cjs → general-animation-loading-UvZ6ywmy.cjs} +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-yO-x2QjR.js → casino-play-random-game-CwsXmdAL.js} +2 -2
- package/stencil/{casino-play-random-game-CoPqwq78.cjs → casino-play-random-game-DAeG0zQv.cjs} +1 -1
- package/stencil/{casino-play-random-game-BOPRTiwD.js → casino-play-random-game-RYjDd-MV.js} +2 -2
- package/stencil/{casino-play-random-game_2-CIEKYYQF.js → casino-play-random-game_2-BMJfVset.js} +3 -3
- package/stencil/{casino-play-random-game_2-BxaCgNIB.js → casino-play-random-game_2-Dv13xRoJ.js} +3 -3
- package/stencil/{casino-play-random-game_2-DXgBuAeq.cjs → casino-play-random-game_2-a_1h1MOl.cjs} +2 -2
package/lazy/{general-animation-loading-C5k5jvFT.js → general-animation-loading-MZxx7I-B.js}
RENAMED
|
@@ -10,7 +10,7 @@ if (typeof window < "u") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-B4Miia6j.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/lazy/{general-animation-loading-D2J7wscz.cjs → general-animation-loading-UvZ6ywmy.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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/GeneralAnimationLoading-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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/GeneralAnimationLoading-C5fu_cQV.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as a, p as t } from "../lazy/casino-play-random-game-
|
|
2
|
-
import { s as g } from "../lazy/casino-play-random-game-
|
|
1
|
+
import { b as a, p as t } from "../lazy/casino-play-random-game-DVsDGezc.js";
|
|
2
|
+
import { s as g } from "../lazy/casino-play-random-game-DVsDGezc.js";
|
|
3
3
|
import { g as e } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
4
4
|
var r = () => {
|
|
5
5
|
const n = import.meta.url, i = {};
|
package/stencil/{casino-play-random-game-CoPqwq78.cjs → casino-play-random-game-DAeG0zQv.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=(n,t,a)=>new Promise((u,c)=>{var m=e=>{try{i(a.next(e))}catch(r){c(r)}},g=e=>{try{i(a.throw(e))}catch(r){c(r)}},i=e=>e.done?u(e.value):Promise.resolve(e.value).then(m,g);i((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../lazy/casino-play-random-game-
|
|
1
|
+
"use strict";var s=(n,t,a)=>new Promise((u,c)=>{var m=e=>{try{i(a.next(e))}catch(r){c(r)}},g=e=>{try{i(a.throw(e))}catch(r){c(r)}},i=e=>e.done?u(e.value):Promise.resolve(e.value).then(m,g);i((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../lazy/casino-play-random-game-CeZZ7mhN.cjs"),d=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var o=typeof document!="undefined"?document.currentScript:null,p=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/casino-play-random-game-DAeG0zQv.cjs",document.baseURI).href,t={};return n!==""&&(t.resourcesUrl=new URL(".",n).href),l.promiseResolve(t)};p().then(n=>s(exports,null,function*(){return yield d.globalScripts(),l.bootstrapLazy([["casino-play-random-game_2",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],n)}));exports.setNonce=l.setNonce;
|
|
@@ -14,8 +14,8 @@ var l = (i, a, t) => new Promise((s, o) => {
|
|
|
14
14
|
}, e = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(c, g);
|
|
15
15
|
e((t = t.apply(i, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as m, p as u } from "../lazy/casino-play-random-game-
|
|
18
|
-
import { s as f } from "../lazy/casino-play-random-game-
|
|
17
|
+
import { b as m, p as u } from "../lazy/casino-play-random-game-CoQ9xSZ4.js";
|
|
18
|
+
import { s as f } from "../lazy/casino-play-random-game-CoQ9xSZ4.js";
|
|
19
19
|
import { g as d } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
20
20
|
var h = () => {
|
|
21
21
|
const i = import.meta.url, a = {};
|
package/stencil/{casino-play-random-game_2-CIEKYYQF.js → casino-play-random-game_2-BMJfVset.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-
|
|
1
|
+
import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-DVsDGezc.js";
|
|
2
2
|
const x = () => {
|
|
3
3
|
let e = window.navigator.userAgent;
|
|
4
4
|
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
@@ -525,7 +525,7 @@ const C = `:host {
|
|
|
525
525
|
return this.fetchGameList();
|
|
526
526
|
}
|
|
527
527
|
componentDidLoad() {
|
|
528
|
-
window.emMessageBus != null ? G(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl));
|
|
528
|
+
window.emMessageBus != null ? this.stylingSubscription = G(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription, !0) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl));
|
|
529
529
|
}
|
|
530
530
|
disconnectedCallback() {
|
|
531
531
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.translationSubscription && this.translationSubscription.unsubscribe();
|
|
@@ -597,7 +597,7 @@ const C = `:host {
|
|
|
597
597
|
return a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer" }, e));
|
|
598
598
|
}
|
|
599
599
|
render() {
|
|
600
|
-
return a("div", { key: "
|
|
600
|
+
return a("div", { key: "39282b98f33d528ab689d4526114140853a774c1", ref: (e) => this.stylingContainer = e }, this.hasErrors ? a("div", { class: "RandomGameError" }, a("div", { class: "Title" }, d("error", this.language))) : this.isLoading ? this.renderSkeleton() : a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => a("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, a("div", { class: "RandomGameVendor" }, e.vendor.name), a("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === n && this.renderGameDetails()))), a("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, a("div", { class: "ButtonContainer" }, this.iconVisibility && a("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, a("div", { class: "QustionMark" }, "?"), a("div", { class: "HexagonMarkShadow" }), a("div", { class: "HexagonMark" })), !this.animationStarted && a("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, d("playRandomGame", this.language))))));
|
|
601
601
|
}
|
|
602
602
|
get host() {
|
|
603
603
|
return y(this);
|
package/stencil/{casino-play-random-game_2-BxaCgNIB.js → casino-play-random-game_2-Dv13xRoJ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-
|
|
1
|
+
import { r as p, c as f, h as a, g as y, H as b } from "../lazy/casino-play-random-game-CoQ9xSZ4.js";
|
|
2
2
|
const x = () => {
|
|
3
3
|
let e = window.navigator.userAgent;
|
|
4
4
|
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
@@ -526,7 +526,7 @@ const C = `:host {
|
|
|
526
526
|
return this.fetchGameList();
|
|
527
527
|
}
|
|
528
528
|
componentDidLoad() {
|
|
529
|
-
window.emMessageBus != null ? G(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl));
|
|
529
|
+
window.emMessageBus != null ? this.stylingSubscription = G(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription, !0) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl));
|
|
530
530
|
}
|
|
531
531
|
disconnectedCallback() {
|
|
532
532
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.translationSubscription && this.translationSubscription.unsubscribe();
|
|
@@ -598,7 +598,7 @@ const C = `:host {
|
|
|
598
598
|
return a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer" }, e));
|
|
599
599
|
}
|
|
600
600
|
render() {
|
|
601
|
-
return a("div", { key: "
|
|
601
|
+
return a("div", { key: "39282b98f33d528ab689d4526114140853a774c1", ref: (e) => this.stylingContainer = e }, this.hasErrors ? a("div", { class: "RandomGameError" }, a("div", { class: "Title" }, h("error", this.language))) : this.isLoading ? this.renderSkeleton() : a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => a("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, a("div", { class: "RandomGameVendor" }, e.vendor.name), a("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === n && this.renderGameDetails()))), a("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, a("div", { class: "ButtonContainer" }, this.iconVisibility && a("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, a("div", { class: "QustionMark" }, "?"), a("div", { class: "HexagonMarkShadow" }), a("div", { class: "HexagonMark" })), !this.animationStarted && a("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, h("playRandomGame", this.language))))));
|
|
602
602
|
}
|
|
603
603
|
get host() {
|
|
604
604
|
return y(this);
|
package/stencil/{casino-play-random-game_2-DXgBuAeq.cjs → casino-play-random-game_2-a_1h1MOl.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../lazy/casino-play-random-game-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../lazy/casino-play-random-game-CeZZ7mhN.cjs"),y=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},b="en",d={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rastgele Bir Oyun Oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},c=e=>new Promise(n=>{fetch(e).then(a=>a.json()).then(a=>{p(a),n(!0)})}),h=(e,n)=>{const a=n;return d[a!==void 0&&a in d?a:b][e]},p=e=>{Object.keys(e).forEach(n=>{d[n]||(d[n]={});for(let a in e[n])d[n][a]=e[n][a]})},m="__WIDGET_GLOBAL_STYLE_CACHE__";function g(e,n){if(e){const a=document.createElement("style");a.innerHTML=n,e.appendChild(a)}}function u(e,n){if(!e||!n)return;const a=new URL(n);fetch(a.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function x(e,n,a,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return a=k(e,n),a;window[m]||(window[m]={}),a=G(e,n);const r=a.unsubscribe.bind(a),s=()=>{if(window[m][n]){const l=window[m][n];l.refCount>1?l.refCount=l.refCount-1:delete window[m][n]}r()};return a.unsubscribe=s,a}function k(e,n){const a=document.createElement("style");return window.emMessageBus.subscribe(n,i=>{e&&(a.innerHTML=i,e.appendChild(a))})}function G(e,n){return window.emMessageBus.subscribe(n,a=>{var l;if(!e)return;const i=e.getRootNode(),o=window[m];let r=(l=o[n])==null?void 0:l.sheet;r?o[n].refCount=o[n].refCount+1:(r=new CSSStyleSheet,r.replaceSync(a),o[n]={sheet:r,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(r)||(i.adoptedStyleSheets=[...s,r])})}function v(e,n,a){return window.emMessageBus&&(n=window.emMessageBus.subscribe(e,a)),n}const S=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
width: 70px;
|
|
376
376
|
height: 85px;
|
|
377
377
|
}
|
|
378
|
-
}`,S=R,w=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,c(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&c(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&v(`${this.mbSource}.Translation`,this.translationSubscription,p),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?x(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",y()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((n,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+n)*this.selectedGameIndex+a/2-i/2,r=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],s={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(r,s),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},h("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},h("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"a1e3f626fea9bcd6a351f1769675e11b21ac8fbd",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},h("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},h("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};w.style=S;const C=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",L=C,f=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
378
|
+
}`,R=S,w=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,c(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&c(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&v(`${this.mbSource}.Translation`,this.translationSubscription,p),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?this.stylingSubscription=x(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription,!0):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",y()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((n,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+n)*this.selectedGameIndex+a/2-i/2,r=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],s={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(r,s),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},h("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},h("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"39282b98f33d528ab689d4526114140853a774c1",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},h("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},h("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};w.style=R;const C=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",L=C,f=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
379
379
|
:host {
|
|
380
380
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
381
381
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|