@everymatrix/casino-page-nd 1.77.10 → 1.77.12
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-lrNBAs15.cjs → CasinoCalendar-Bb4l6GHP.cjs} +1 -1
- package/components/{CasinoCalendar-D6jmsZcK.js → CasinoCalendar-C-Gc1XNl.js} +2 -2
- package/components/{CasinoCalendar-BDBAlpOq.js → CasinoCalendar-DEsVuhHv.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-6lb-wVha.cjs → CasinoCalendarDailyDetails-BoCRu-0B.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-D__yXWgj.js → CasinoCalendarDailyDetails-Bshm9kom.js} +2 -2
- package/components/{CasinoCalendarDailyDetails-BBhFF2WM.js → CasinoCalendarDailyDetails-DC-cdq2S.js} +2 -2
- package/components/{CasinoCalendarDailyItem-ql_ihisO.js → CasinoCalendarDailyItem-C1rbVbBh.js} +2 -2
- package/components/{CasinoCalendarDailyItem-DvaPzfgS.cjs → CasinoCalendarDailyItem-C8BZA5cO.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-D-kfWsiH.js → CasinoCalendarDailyItem-DRr0UMFE.js} +2 -2
- package/components/{CasinoCollectionsProviders-DwrD7vd-.js → CasinoCollectionsProviders-Cm4t95De.js} +1 -1
- package/components/{CasinoCollectionsProviders-BFeSctQw.cjs → CasinoCollectionsProviders-D368qYjr.cjs} +1 -1
- package/components/{CasinoCollectionsProviders-Bab1uPWy.js → CasinoCollectionsProviders-WotINE7k.js} +1 -1
- package/components/{CasinoFavoritesSectionNd-0mJ6RL8V.js → CasinoFavoritesSectionNd-BHQmqNMq.js} +2 -2
- package/components/{CasinoFavoritesSectionNd-CxKtk_F7.cjs → CasinoFavoritesSectionNd-Bmc8bU-z.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BGWRCGIA.js → CasinoFavoritesSectionNd-C6-yWARI.js} +2 -2
- package/components/{CasinoFilter-Yz-iNPE_.js → CasinoFilter-BLnnmGTk.js} +1 -1
- package/components/{CasinoFilter-BXW3sehT.cjs → CasinoFilter-BuWKwvsk.cjs} +1 -1
- package/components/{CasinoFilter-BlAj36MS.js → CasinoFilter-BwMaB48o.js} +1 -1
- package/components/{CasinoGameThumbnailNd-CTSgL622.js → CasinoGameThumbnailNd-B7QZJgR3.js} +2 -2
- package/components/{CasinoGameThumbnailNd-BAo1UKJV.cjs → CasinoGameThumbnailNd-CRMtNXgh.cjs} +1 -1
- package/components/{CasinoGameThumbnailNd-Eq4TBfUx.js → CasinoGameThumbnailNd-DUu2pPcA.js} +2 -2
- package/components/{CasinoGamesCategorySectionNd-Ch7UYkAx.js → CasinoGamesCategorySectionNd-BakkXDI1.js} +5 -5
- package/components/{CasinoGamesCategorySectionNd-CqphQ-de.cjs → CasinoGamesCategorySectionNd-Cvc4BjLD.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-Cnnba9sa.js → CasinoGamesCategorySectionNd-D6Iusrpm.js} +5 -5
- package/components/{CasinoJackpotBanner-CKYOMpfu.js → CasinoJackpotBanner-C4sBhHV3.js} +2 -2
- package/components/{CasinoJackpotBanner-LfeqW0MZ.js → CasinoJackpotBanner-CaCQ3A3V.js} +2 -2
- package/components/{CasinoJackpotBanner-D80xW-Mk.cjs → CasinoJackpotBanner-CxWwqwA3.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-hkEvsgJI.js → CasinoLastPlayedSectionNd-BOR2Eq4i.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-C1wRm8wE.js → CasinoLastPlayedSectionNd-BO_cHPi2.js} +2 -2
- package/components/{CasinoLastPlayedSectionNd-BIAayfEX.cjs → CasinoLastPlayedSectionNd-CjJkmOSu.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-D8i4BUNG.js → CasinoMostPlayedSectionNd-Ccjm8g_T.js} +2 -2
- package/components/{CasinoMostPlayedSectionNd-CFM1yXwt.cjs → CasinoMostPlayedSectionNd-DxGy0grX.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-LytMNWvc.js → CasinoMostPlayedSectionNd-b29WKWdf.js} +2 -2
- package/components/{CasinoMyGamesNd-BB0oNhFI.js → CasinoMyGamesNd-BvWBib45.js} +4 -4
- package/components/{CasinoMyGamesNd-Dq6Dlkno.js → CasinoMyGamesNd-CtlFOZ-P.js} +4 -4
- package/components/{CasinoMyGamesNd-XbXB5eJ-.cjs → CasinoMyGamesNd-ml5JKzhP.cjs} +1 -1
- package/components/{CasinoPageNd-C1V3G6gS.js → CasinoPageNd-CFfTnbWK.js} +11 -11
- package/components/{CasinoPageNd-BNeGwygZ.cjs → CasinoPageNd-P616JQl8.cjs} +1 -1
- package/components/{CasinoPageNd-DKZz18XW.js → CasinoPageNd-nu9HqX-v.js} +11 -11
- package/components/{CasinoRandomGame-DIrzPIbu.js → CasinoRandomGame-CROz9-qb.js} +1 -1
- package/components/{CasinoRandomGame-CMSYhF_-.js → CasinoRandomGame-iLAl8PT1.js} +1 -1
- package/components/{CasinoRandomGame-DpBr3bha.cjs → CasinoRandomGame-nW4hfNCL.cjs} +1 -1
- package/components/{CasinoSearchNd-BVEWgq5n.cjs → CasinoSearchNd-D3Rlb42i.cjs} +1 -1
- package/components/{CasinoSearchNd-Bo4IP8b1.js → CasinoSearchNd-JCbnWDoT.js} +3 -3
- package/components/{CasinoSearchNd-DXQ9Qwfg.js → CasinoSearchNd-U73g-0SV.js} +3 -3
- package/components/{CasinoSort-BN-JK1pj.js → CasinoSort-CTlEjsW6.js} +1 -1
- package/components/{CasinoSort-DgMFkpPM.cjs → CasinoSort-Ce1vDL8z.cjs} +1 -1
- package/components/{CasinoSort-h2RisOUg.js → CasinoSort-DOkmQroL.js} +1 -1
- package/components/{CasinoWinners-CSSuv3e-.cjs → CasinoWinners-Bgxj-WaT.cjs} +1 -1
- package/components/{CasinoWinners-Bgo2Rs_n.js → CasinoWinners-BnOaeWod.js} +2 -2
- package/components/{CasinoWinners-BvVbL9Vu.js → CasinoWinners-C_u9lTEZ.js} +2 -2
- package/components/{GeneralAnimationLoading-BW_2bLk1.js → GeneralAnimationLoading-Bid-JpR1.js} +1 -1
- package/components/{GeneralAnimationLoading-Nh1_6F46.cjs → GeneralAnimationLoading-CMpO5woq.cjs} +1 -1
- package/components/{GeneralAnimationLoading-DN41fbSR.js → GeneralAnimationLoading-DIbb8v9O.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-DgndEC1h.js → casino-calendar-Cs0jFzFd.js} +1 -1
- package/lazy/{casino-calendar-lJPTDQ1j.js → casino-calendar-CsNsKiZY.js} +1 -1
- package/lazy/{casino-calendar-Bl77-gFq.cjs → casino-calendar-YkbDV8u-.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-NIrPMAx9.js → casino-calendar-daily-details-245QLr11.js} +1 -1
- package/lazy/{casino-calendar-daily-details-CnI64th8.cjs → casino-calendar-daily-details-CPtlx4kW.cjs} +1 -1
- package/lazy/{casino-calendar-daily-details-RfH6TQ30.js → casino-calendar-daily-details-YbqHTfeW.js} +1 -1
- package/lazy/{casino-calendar-daily-item-BDCZrR-6.js → casino-calendar-daily-item-C-eqWtT0.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DE9raRau.js → casino-calendar-daily-item-DU29B-S3.js} +1 -1
- package/lazy/{casino-calendar-daily-item-DFHlMY8X.cjs → casino-calendar-daily-item-D_hB5GRk.cjs} +1 -1
- package/lazy/{casino-collections-providers-DL7r04tn.js → casino-collections-providers-C2NqfsDL.js} +1 -1
- package/lazy/{casino-collections-providers-34hCFtJ2.cjs → casino-collections-providers-DI96GWu-.cjs} +1 -1
- package/lazy/{casino-collections-providers-DNM_Iyu6.js → casino-collections-providers-qcRdTKtX.js} +1 -1
- package/lazy/{casino-favorites-section-nd-CQgMbpxt.cjs → casino-favorites-section-nd-8jwugjME.cjs} +1 -1
- package/lazy/{casino-favorites-section-nd--AMnuoRU.js → casino-favorites-section-nd-C7X_c8WA.js} +1 -1
- package/lazy/{casino-favorites-section-nd-D2VLdX83.js → casino-favorites-section-nd-DZU8aHmE.js} +1 -1
- package/lazy/{casino-filter-z-FXMfx_.js → casino-filter-BeEmgxog.js} +1 -1
- package/lazy/{casino-filter-Bs8WowUn.js → casino-filter-D8PJSlUz.js} +1 -1
- package/lazy/{casino-filter-CF2ZCQqb.cjs → casino-filter-DbcMmIk_.cjs} +1 -1
- package/lazy/{casino-game-thumbnail-nd-jxJuT9i4.js → casino-game-thumbnail-nd-CpwMV7LL.js} +1 -1
- package/lazy/{casino-game-thumbnail-nd-MnzWkvM8.cjs → casino-game-thumbnail-nd-PGdD0_IP.cjs} +1 -1
- package/lazy/{casino-game-thumbnail-nd-Cmz17Gw1.js → casino-game-thumbnail-nd-fVN7s9p3.js} +1 -1
- package/lazy/{casino-games-category-section-nd-D7yxFIiu.cjs → casino-games-category-section-nd-BYmjd6dL.cjs} +1 -1
- package/lazy/{casino-games-category-section-nd-CaDNvKu1.js → casino-games-category-section-nd-Df9BEdvf.js} +1 -1
- package/lazy/{casino-games-category-section-nd-CifLABXO.js → casino-games-category-section-nd-Dn1t4CWy.js} +1 -1
- package/lazy/{casino-jackpot-banner-B4viw7Nz.js → casino-jackpot-banner-BIiv6bjj.js} +1 -1
- package/lazy/{casino-jackpot-banner-D9ZIYrUW.cjs → casino-jackpot-banner-ByR6Zc1f.cjs} +1 -1
- package/lazy/{casino-jackpot-banner-DE-QFzom.js → casino-jackpot-banner-DJd6KJQi.js} +1 -1
- package/lazy/{casino-last-played-section-nd-C6FQsZ2J.js → casino-last-played-section-nd-BTB6t4OE.js} +1 -1
- package/lazy/{casino-last-played-section-nd-YLYUMJRO.cjs → casino-last-played-section-nd-CqjHRwIW.cjs} +1 -1
- package/lazy/{casino-last-played-section-nd-DFHsNsYW.js → casino-last-played-section-nd-gmnR5s4s.js} +1 -1
- package/lazy/{casino-most-played-section-nd-CsN8xi5e.js → casino-most-played-section-nd-BEVPSN6I.js} +1 -1
- package/lazy/{casino-most-played-section-nd-Yea3f9Si.js → casino-most-played-section-nd-DmOXcjq2.js} +1 -1
- package/lazy/{casino-most-played-section-nd-BzBHiW6D.cjs → casino-most-played-section-nd-vVzJCBeu.cjs} +1 -1
- package/lazy/{casino-my-games-nd-sNbRe4io.cjs → casino-my-games-nd-CCZzTLyG.cjs} +1 -1
- package/lazy/{casino-my-games-nd-ikqfKgMd.js → casino-my-games-nd-DX5-KSYG.js} +1 -1
- package/lazy/{casino-my-games-nd-B7anfWWS.js → casino-my-games-nd-DdFHsoU1.js} +1 -1
- package/lazy/{casino-play-random-game-B0jqtwb8.js → casino-play-random-game-DXY5a1vd.js} +1 -1
- package/lazy/{casino-play-random-game-Cka6VtRY.cjs → casino-play-random-game-DsvAa0pU.cjs} +1 -1
- package/lazy/{casino-play-random-game-BLjUToOl.js → casino-play-random-game-Dx7GeDg-.js} +1 -1
- package/lazy/{casino-random-game-Ciau0Mvd.js → casino-random-game-Bo0vfYPH.js} +1 -1
- package/lazy/{casino-random-game-D_e0851H.js → casino-random-game-CymQ57Gq.js} +1 -1
- package/lazy/{casino-random-game-CpQ6i7dG.cjs → casino-random-game-Czlq0-VB.cjs} +1 -1
- package/lazy/{casino-search-nd-Dpk7Zw6M.js → casino-search-nd-B7hwSaEk.js} +1 -1
- package/lazy/{casino-search-nd-CpNxCltl.cjs → casino-search-nd-BED9H3PW.cjs} +1 -1
- package/lazy/{casino-search-nd-fmDOb2sI.js → casino-search-nd-DFwBI4Qk.js} +1 -1
- package/lazy/{casino-sort-DCeDZhYp.js → casino-sort-BCOB6Jg-.js} +1 -1
- package/lazy/{casino-sort-DPeKcRAy.cjs → casino-sort-CmEYuC2P.cjs} +1 -1
- package/lazy/{casino-sort-_0OBcn9p.js → casino-sort-Co6zKDLB.js} +1 -1
- package/lazy/{casino-winners-sG6URrVE.js → casino-winners-CMCXuPK3.js} +1 -1
- package/lazy/{casino-winners-Bgv_HVaE.cjs → casino-winners-DC4QNFs1.cjs} +1 -1
- package/lazy/{casino-winners-RoKqyNPS.js → casino-winners-SfAP5xJr.js} +1 -1
- package/lazy/{general-animation-loading-DOzPVdH_.js → general-animation-loading-DMjUl0Rz.js} +1 -1
- package/lazy/{general-animation-loading-ChH2HRhq.js → general-animation-loading-DOvLyO6h.js} +1 -1
- package/lazy/{general-animation-loading-CVbVP9X6.cjs → general-animation-loading-DQ36UHLN.cjs} +1 -1
- package/lazy/{ui-image-Co06JuWa.cjs → ui-image-Bfp60xra.cjs} +1 -1
- package/lazy/{ui-image-DfAu-p11.js → ui-image-DN4m37SE.js} +1 -1
- package/lazy/{ui-image-CwC1nmDQ.js → ui-image-Gj7rJvHi.js} +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-RZvtsB6j.js → casino-play-random-game-C5MTrbms.js} +2 -2
- package/stencil/{casino-play-random-game-7w8tLfw3.cjs → casino-play-random-game-D6quvMHY.cjs} +1 -1
- package/stencil/{casino-play-random-game-lMSukf76.js → casino-play-random-game-fHX7Vj4m.js} +2 -2
- package/stencil/{casino-play-random-game_3-BGi492Zx.js → casino-play-random-game_3-COuR8an7.js} +15 -5
- package/stencil/{casino-play-random-game_3-qgVlR9ud.cjs → casino-play-random-game_3-DOusVAh7.cjs} +2 -2
- package/stencil/{casino-play-random-game_3-DeMIDfdZ.js → casino-play-random-game_3-FMiWkeIB.js} +15 -5
- package/stencil/{ui-image-Bc9Okpqm.js → ui-image-B1gnYL7S.js} +1 -1
- package/stencil/{ui-image-BucplX2u.js → ui-image-BfKM3Qq_.js} +1 -1
- package/stencil/{ui-image-YhLF4F-p.cjs → ui-image-Dv6GC1lm.cjs} +1 -1
- package/stencil/{ui-image-8975d115-C4aRPj4L.js → ui-image-ae115205-CrezTJRy.js} +18 -8
- package/stencil/{ui-image-8975d115-DA_xNMMW.js → ui-image-ae115205-D6AaeZwA.js} +18 -8
- package/stencil/ui-image-ae115205-QubhRQ2C.cjs +1 -0
- package/stencil/{ui-image_2-CU7-9W4b.js → ui-image_2-CG9gShl1.js} +2 -2
- package/stencil/{ui-image_2-DUlGtGaX.cjs → ui-image_2-D6Y1TRww.cjs} +1 -1
- package/stencil/{ui-image_2-DmmjcHqK.js → ui-image_2-DA8s2q6a.js} +2 -2
- package/stencil/ui-image-8975d115-CsGWHOum.cjs +0 -1
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-DXY5a1vd.js";
|
|
2
|
+
import { s as g } from "../lazy/casino-play-random-game-DXY5a1vd.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-7w8tLfw3.cjs → casino-play-random-game-D6quvMHY.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=(n,t,i)=>new Promise((d,c)=>{var g=e=>{try{a(i.next(e))}catch(r){c(r)}},m=e=>{try{a(i.throw(e))}catch(r){c(r)}},a=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,m);a((i=i.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,i)=>new Promise((d,c)=>{var g=e=>{try{a(i.next(e))}catch(r){c(r)}},m=e=>{try{a(i.throw(e))}catch(r){c(r)}},a=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,m);a((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../lazy/casino-play-random-game-DsvAa0pU.cjs"),u=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/casino-play-random-game-D6quvMHY.cjs",document.baseURI).href,t={};return n!==""&&(t.resourcesUrl=new URL(".",n).href),l.promiseResolve(t)};h().then(n=>s(exports,null,function*(){return yield u.globalScripts(),l.bootstrapLazy([["casino-play-random-game_3",[[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],imageLoadingType:[32],detectDistance:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[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 d } from "../lazy/casino-play-random-game-
|
|
18
|
-
import { s as f } from "../lazy/casino-play-random-game-
|
|
17
|
+
import { b as m, p as d } from "../lazy/casino-play-random-game-Dx7GeDg-.js";
|
|
18
|
+
import { s as f } from "../lazy/casino-play-random-game-Dx7GeDg-.js";
|
|
19
19
|
import { g as h } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
20
20
|
var u = () => {
|
|
21
21
|
const i = import.meta.url, a = {};
|
package/stencil/{casino-play-random-game_3-BGi492Zx.js → casino-play-random-game_3-COuR8an7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as d, c as w, h as t, g, H as l } from "../lazy/casino-play-random-game-
|
|
1
|
+
import { r as d, c as w, h as t, g, H as l } from "../lazy/casino-play-random-game-DXY5a1vd.js";
|
|
2
2
|
const f = () => {
|
|
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";
|
|
@@ -589,15 +589,15 @@ const x = `:host {
|
|
|
589
589
|
v.style = k;
|
|
590
590
|
const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", R = G, C = class {
|
|
591
591
|
constructor(e) {
|
|
592
|
-
d(this, e), this.
|
|
592
|
+
d(this, e), this._onLoad = () => {
|
|
593
593
|
this.imgLoaded = !0;
|
|
594
594
|
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
595
595
|
}
|
|
596
596
|
onSrcChange() {
|
|
597
|
-
this.loading !== "eager" && (this.imgLoaded = !1,
|
|
597
|
+
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
598
598
|
}
|
|
599
599
|
onLoadingChange(e, n) {
|
|
600
|
-
e !== n && (this.cleanupObserver(), e === "eager" ?
|
|
600
|
+
e !== n && (this.cleanupObserver(), e === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
601
601
|
}
|
|
602
602
|
componentDidLoad() {
|
|
603
603
|
this.loading !== "eager" && this.setupObserver();
|
|
@@ -629,7 +629,17 @@ const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
629
629
|
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
630
630
|
}
|
|
631
631
|
beginLoad() {
|
|
632
|
-
this.
|
|
632
|
+
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
633
|
+
}
|
|
634
|
+
preloadAndSetSrc() {
|
|
635
|
+
if (!this.src || !this.imgEl)
|
|
636
|
+
return;
|
|
637
|
+
const e = new Image();
|
|
638
|
+
e.onload = () => {
|
|
639
|
+
this.imgEl && (this.imgEl.src = e.src, this.imgLoaded = !0);
|
|
640
|
+
}, e.onerror = () => {
|
|
641
|
+
this.imgEl && (this.imgEl.src = this.src);
|
|
642
|
+
}, e.src = this.src;
|
|
633
643
|
}
|
|
634
644
|
get showSkeleton() {
|
|
635
645
|
return this.loading !== "eager" && !this.imgLoaded;
|
package/stencil/{casino-play-random-game_3-qgVlR9ud.cjs → casino-play-random-game_3-DOusVAh7.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../lazy/casino-play-random-game-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../lazy/casino-play-random-game-DsvAa0pU.cjs"),w=()=>{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"},f="en",r={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"}},l=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(a=>{r[a]||(r[a]={});for(let s in i[a])r[a][s]=i[a][s]}),t(!0)})}),o=(e,t)=>{const i=t;return r[i!==void 0&&i in r?i:f][e]};function d(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function m(e,t){const i=new URL(t);fetch(i.href).then(a=>a.text()).then(a=>{const s=document.createElement("style");s.innerHTML=a,e&&e.appendChild(s)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function y(e,t,i){if(window.emMessageBus){const a=document.createElement("style");window.emMessageBus.subscribe(t,s=>{a.innerHTML=s,e&&e.appendChild(a)})}}const b=`: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
|
-
}`,x=b,h=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=t=>{let i=t.length,a;for(;i!==0;)a=Math.floor(Math.random()*i),i--,[t[i],t[a]]=[t[a],t[i]];return t},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,this.imageLoadingType="lazy",this.detectDistance="200px"}watchEndpoint(e,t){e&&e!=t&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,t){e!=t&&d(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){"IntersectionObserver"in window&&(this.io=new IntersectionObserver(e=>{e.forEach(t=>{var i;t.isIntersecting&&(this.imageLoadingType="eager",(i=this.io)===null||i===void 0||i.unobserve(t.target))})},{root:null,rootMargin:this.detectDistance}),this.io.observe(this.host)),window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&d(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",w()),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((t,i)=>{this.isLoading=!0,fetch(e.href).then(a=>a.json()).then(a=>{this.gamesToShow=this.setUpGames(a==null?void 0:a.items),t(!0)}).catch(a=>{console.error(a),this.hasErrors=!0,i(a)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const t=this.shuffle(e).slice(0,40);return t.concat(t)}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"),t=parseInt(e,10),i=this.selectedGameEl.offsetWidth,a=this.gameContainer.offsetWidth,s=(i+t)*this.selectedGameIndex+i/2-a/2,u=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${s}px)`,scale:1}],p={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(u,p),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 n.h("div",{class:"RandomButtonsWrapper"},n.h("div",{class:"RandomGameDetails"},n.h("span",{class:"RandomGameTitle"},this.selectedGame.name),n.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),n.h("div",{class:"RandomButtons"},n.h("button",{class:"RandomButton On",onClick:()=>this.respin()},o("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},o("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(t,i)=>n.h("div",{class:"RandomGameCard",key:i},n.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer"},e))}render(){return n.h("div",{key:"29fe3535d63177e6d1f30a757bf17b70d89ce386",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},o("error",this.language))):this.isLoading?this.renderSkeleton():n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,t)=>n.h("div",{class:"RandomGameCard",key:t,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},n.h("div",{class:"RandomGameVendor"},e.vendor.name),n.h("ui-image",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name,loading:this.imageLoadingType}),this.selectedGame&&this.selectedGameIndex===t&&this.renderGameDetails()))),n.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},n.h("div",{class:"ButtonContainer"},this.iconVisibility&&n.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},n.h("div",{class:"QustionMark"},"?"),n.h("div",{class:"HexagonMarkShadow"}),n.h("div",{class:"HexagonMark"})),!this.animationStarted&&n.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},o("playRandomGame",this.language))))))}get host(){return n.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};h.style=x;const k=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",v=k,c=class{constructor(e){n.registerInstance(this,e),this.hasStarted=!1,this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,this.hasStarted=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),e==="eager"?(this.imgEl&&this.src&&(this.imgEl.src=this.src),this.hasStarted=!0):(this.imgLoaded=!1,this.hasStarted=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const i of e)if(i.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(i.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}beginLoad(){this.hasStarted||this.imgEl&&this.src&&(this.hasStarted=!0,this.imgEl.src=this.src,this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0))}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return n.h(n.Host,{class:"HostContainer"},n.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return n.h(n.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&n.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),n.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return n.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};c.style=v;const G=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}",R=G,g=class{constructor(e){n.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,t){t!==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 n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return n.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,t)=>n.h("div",{key:t,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
378
|
+
}`,x=b,h=class{constructor(e){n.registerInstance(this,e),this.dataLoaded=n.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=t=>{let i=t.length,a;for(;i!==0;)a=Math.floor(Math.random()*i),i--,[t[i],t[a]]=[t[a],t[i]];return t},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,this.imageLoadingType="lazy",this.detectDistance="200px"}watchEndpoint(e,t){e&&e!=t&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,t){e!=t&&d(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){"IntersectionObserver"in window&&(this.io=new IntersectionObserver(e=>{e.forEach(t=>{var i;t.isIntersecting&&(this.imageLoadingType="eager",(i=this.io)===null||i===void 0||i.unobserve(t.target))})},{root:null,rootMargin:this.detectDistance}),this.io.observe(this.host)),window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&d(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&m(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",w()),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((t,i)=>{this.isLoading=!0,fetch(e.href).then(a=>a.json()).then(a=>{this.gamesToShow=this.setUpGames(a==null?void 0:a.items),t(!0)}).catch(a=>{console.error(a),this.hasErrors=!0,i(a)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const t=this.shuffle(e).slice(0,40);return t.concat(t)}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"),t=parseInt(e,10),i=this.selectedGameEl.offsetWidth,a=this.gameContainer.offsetWidth,s=(i+t)*this.selectedGameIndex+i/2-a/2,u=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${s}px)`,scale:1}],p={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(u,p),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 n.h("div",{class:"RandomButtonsWrapper"},n.h("div",{class:"RandomGameDetails"},n.h("span",{class:"RandomGameTitle"},this.selectedGame.name),n.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),n.h("div",{class:"RandomButtons"},n.h("button",{class:"RandomButton On",onClick:()=>this.respin()},o("spinRandomGame",this.language)),!this.launchByGameCard&&n.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},o("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(t,i)=>n.h("div",{class:"RandomGameCard",key:i},n.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer"},e))}render(){return n.h("div",{key:"29fe3535d63177e6d1f30a757bf17b70d89ce386",ref:e=>this.stylingContainer=e},this.hasErrors?n.h("div",{class:"RandomGameError"},n.h("div",{class:"Title"},o("error",this.language))):this.isLoading?this.renderSkeleton():n.h("div",{class:"RandomGameWrapper"},n.h("div",{class:"GameContainerGradient"}),n.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,t)=>n.h("div",{class:"RandomGameCard",key:t,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},n.h("div",{class:"RandomGameVendor"},e.vendor.name),n.h("ui-image",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name,loading:this.imageLoadingType}),this.selectedGame&&this.selectedGameIndex===t&&this.renderGameDetails()))),n.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},n.h("div",{class:"ButtonContainer"},this.iconVisibility&&n.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},n.h("div",{class:"QustionMark"},"?"),n.h("div",{class:"HexagonMarkShadow"}),n.h("div",{class:"HexagonMark"})),!this.animationStarted&&n.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},o("playRandomGame",this.language))))))}get host(){return n.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};h.style=x;const k=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",v=k,c=class{constructor(e){n.registerInstance(this,e),this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),e==="eager"?this.imgEl&&this.src&&(this.imgEl.src=this.src):(this.imgLoaded=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const i of e)if(i.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(i.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}beginLoad(){this.preloadAndSetSrc(),this.imgEl&&this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}preloadAndSetSrc(){if(!this.src||!this.imgEl)return;const e=new Image;e.onload=()=>{this.imgEl&&(this.imgEl.src=e.src,this.imgLoaded=!0)},e.onerror=()=>{this.imgEl&&(this.imgEl.src=this.src)},e.src=this.src}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return n.h(n.Host,{class:"HostContainer"},n.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return n.h(n.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&n.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),n.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return n.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};c.style=v;const G=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}",R=G,g=class{constructor(e){n.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,t){t!==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 n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return n.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return n.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,t)=>n.h("div",{key:t,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return n.h("div",{class:"SkeletonContainer"},n.h("div",{class:"Circle "+(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};
|
package/stencil/{casino-play-random-game_3-DeMIDfdZ.js → casino-play-random-game_3-FMiWkeIB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as d, c as w, h as t, g, H as l } from "../lazy/casino-play-random-game-
|
|
1
|
+
import { r as d, c as w, h as t, g, H as l } from "../lazy/casino-play-random-game-Dx7GeDg-.js";
|
|
2
2
|
const f = () => {
|
|
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";
|
|
@@ -589,15 +589,15 @@ const x = `:host {
|
|
|
589
589
|
v.style = k;
|
|
590
590
|
const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", R = G, C = class {
|
|
591
591
|
constructor(e) {
|
|
592
|
-
d(this, e), this.
|
|
592
|
+
d(this, e), this._onLoad = () => {
|
|
593
593
|
this.imgLoaded = !0;
|
|
594
594
|
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
595
595
|
}
|
|
596
596
|
onSrcChange() {
|
|
597
|
-
this.loading !== "eager" && (this.imgLoaded = !1,
|
|
597
|
+
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
598
598
|
}
|
|
599
599
|
onLoadingChange(e, n) {
|
|
600
|
-
e !== n && (this.cleanupObserver(), e === "eager" ?
|
|
600
|
+
e !== n && (this.cleanupObserver(), e === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
601
601
|
}
|
|
602
602
|
componentDidLoad() {
|
|
603
603
|
this.loading !== "eager" && this.setupObserver();
|
|
@@ -629,7 +629,17 @@ const G = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
629
629
|
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
630
630
|
}
|
|
631
631
|
beginLoad() {
|
|
632
|
-
this.
|
|
632
|
+
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
633
|
+
}
|
|
634
|
+
preloadAndSetSrc() {
|
|
635
|
+
if (!this.src || !this.imgEl)
|
|
636
|
+
return;
|
|
637
|
+
const e = new Image();
|
|
638
|
+
e.onload = () => {
|
|
639
|
+
this.imgEl && (this.imgEl.src = e.src, this.imgLoaded = !0);
|
|
640
|
+
}, e.onerror = () => {
|
|
641
|
+
this.imgEl && (this.imgEl.src = this.src);
|
|
642
|
+
}, e.src = this.src;
|
|
633
643
|
}
|
|
634
644
|
get showSkeleton() {
|
|
635
645
|
return this.loading !== "eager" && !this.imgLoaded;
|
|
@@ -14,7 +14,7 @@ var s = (r, a, e) => new Promise((g, n) => {
|
|
|
14
14
|
}, i = (t) => t.done ? g(t.value) : Promise.resolve(t.value).then(m, u);
|
|
15
15
|
i((e = e.apply(r, a)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as c, p as l } from "../lazy/ui-image-
|
|
17
|
+
import { b as c, p as l } from "../lazy/ui-image-Gj7rJvHi.js";
|
|
18
18
|
import { a as d } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
19
|
var h = () => {
|
|
20
20
|
const r = import.meta.url, a = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(t,r,i)=>new Promise((g,s)=>{var m=e=>{try{n(i.next(e))}catch(a){s(a)}},d=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?g(e.value):Promise.resolve(e.value).then(m,d);n((i=i.apply(t,r)).next())});const u=require("../lazy/ui-image-
|
|
1
|
+
"use strict";var c=(t,r,i)=>new Promise((g,s)=>{var m=e=>{try{n(i.next(e))}catch(a){s(a)}},d=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?g(e.value):Promise.resolve(e.value).then(m,d);n((i=i.apply(t,r)).next())});const u=require("../lazy/ui-image-Bfp60xra.cjs"),l=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-Dv6GC1lm.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield l.globalScripts$1(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],loading:[1],imgLoaded:[32]},null,{src:["onSrcChange"],loading:["onLoadingChange"]}],[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"]}]]]],t)}));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-
|
|
2
|
-
const
|
|
1
|
+
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-Gj7rJvHi.js";
|
|
2
|
+
const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", d = o, h = class {
|
|
3
3
|
constructor(i) {
|
|
4
|
-
n(this, i), this.
|
|
4
|
+
n(this, i), this._onLoad = () => {
|
|
5
5
|
this.imgLoaded = !0;
|
|
6
6
|
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
7
7
|
}
|
|
8
8
|
onSrcChange() {
|
|
9
|
-
this.loading !== "eager" && (this.imgLoaded = !1,
|
|
9
|
+
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window == "undefined" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
10
|
}
|
|
11
11
|
onLoadingChange(i, e) {
|
|
12
|
-
i !== e && (this.cleanupObserver(), i === "eager" ?
|
|
12
|
+
i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
13
13
|
}
|
|
14
14
|
componentDidLoad() {
|
|
15
15
|
this.loading !== "eager" && this.setupObserver();
|
|
@@ -41,7 +41,17 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
41
41
|
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
42
|
}
|
|
43
43
|
beginLoad() {
|
|
44
|
-
this.
|
|
44
|
+
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
45
|
+
}
|
|
46
|
+
preloadAndSetSrc() {
|
|
47
|
+
if (!this.src || !this.imgEl)
|
|
48
|
+
return;
|
|
49
|
+
const i = new Image();
|
|
50
|
+
i.onload = () => {
|
|
51
|
+
this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
|
|
52
|
+
}, i.onerror = () => {
|
|
53
|
+
this.imgEl && (this.imgEl.src = this.src);
|
|
54
|
+
}, i.src = this.src;
|
|
45
55
|
}
|
|
46
56
|
get showSkeleton() {
|
|
47
57
|
return this.loading !== "eager" && !this.imgLoaded;
|
|
@@ -65,7 +75,7 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
65
75
|
};
|
|
66
76
|
}
|
|
67
77
|
};
|
|
68
|
-
|
|
78
|
+
h.style = d;
|
|
69
79
|
export {
|
|
70
|
-
|
|
80
|
+
h as U
|
|
71
81
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-
|
|
2
|
-
const
|
|
1
|
+
import { r as n, h as t, H as r, g as a } from "../lazy/ui-image-DN4m37SE.js";
|
|
2
|
+
const o = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}", d = o, h = class {
|
|
3
3
|
constructor(i) {
|
|
4
|
-
n(this, i), this.
|
|
4
|
+
n(this, i), this._onLoad = () => {
|
|
5
5
|
this.imgLoaded = !0;
|
|
6
6
|
}, this.src = void 0, this.width = void 0, this.height = void 0, this.alt = void 0, this.styles = void 0, this.detectDistance = "200px", this.loading = "lazy", this.imgLoaded = !1;
|
|
7
7
|
}
|
|
8
8
|
onSrcChange() {
|
|
9
|
-
this.loading !== "eager" && (this.imgLoaded = !1,
|
|
9
|
+
this.loading !== "eager" && (this.imgLoaded = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
10
10
|
}
|
|
11
11
|
onLoadingChange(i, e) {
|
|
12
|
-
i !== e && (this.cleanupObserver(), i === "eager" ?
|
|
12
|
+
i !== e && (this.cleanupObserver(), i === "eager" ? this.imgEl && this.src && (this.imgEl.src = this.src) : (this.imgLoaded = !1, this.setupObserver()));
|
|
13
13
|
}
|
|
14
14
|
componentDidLoad() {
|
|
15
15
|
this.loading !== "eager" && this.setupObserver();
|
|
@@ -41,7 +41,17 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
41
41
|
(i = this.io) === null || i === void 0 || i.disconnect(), this.io = void 0;
|
|
42
42
|
}
|
|
43
43
|
beginLoad() {
|
|
44
|
-
this.
|
|
44
|
+
this.preloadAndSetSrc(), this.imgEl && this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
45
|
+
}
|
|
46
|
+
preloadAndSetSrc() {
|
|
47
|
+
if (!this.src || !this.imgEl)
|
|
48
|
+
return;
|
|
49
|
+
const i = new Image();
|
|
50
|
+
i.onload = () => {
|
|
51
|
+
this.imgEl && (this.imgEl.src = i.src, this.imgLoaded = !0);
|
|
52
|
+
}, i.onerror = () => {
|
|
53
|
+
this.imgEl && (this.imgEl.src = this.src);
|
|
54
|
+
}, i.src = this.src;
|
|
45
55
|
}
|
|
46
56
|
get showSkeleton() {
|
|
47
57
|
return this.loading !== "eager" && !this.imgLoaded;
|
|
@@ -65,7 +75,7 @@ const h = ".HostContainer{display:block}.UiContainer{height:100%;width:100%;bord
|
|
|
65
75
|
};
|
|
66
76
|
}
|
|
67
77
|
};
|
|
68
|
-
|
|
78
|
+
h.style = d;
|
|
69
79
|
export {
|
|
70
|
-
|
|
80
|
+
h as U
|
|
71
81
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../lazy/ui-image-Bfp60xra.cjs"),n=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",a=n,r=class{constructor(i){e.registerInstance(this,i),this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(i,t){i!==t&&(this.cleanupObserver(),i==="eager"?this.imgEl&&this.src&&(this.imgEl.src=this.src):(this.imgLoaded=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(i=>{var t;for(const s of i)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var i;(i=this.io)===null||i===void 0||i.disconnect(),this.io=void 0}beginLoad(){this.preloadAndSetSrc(),this.imgEl&&this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0)}preloadAndSetSrc(){if(!this.src||!this.imgEl)return;const i=new Image;i.onload=()=>{this.imgEl&&(this.imgEl.src=i.src,this.imgLoaded=!0)},i.onerror=()=>{this.imgEl&&(this.imgEl.src=this.src)},i.src=this.src}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return e.h(e.Host,{class:"HostContainer"},e.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return e.h(e.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&e.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e.h("img",{ref:i=>this.imgEl=i,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return e.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-
|
|
2
|
-
import { r, h as t, H as n } from "../lazy/ui-image-
|
|
1
|
+
import { U as m } from "./ui-image-ae115205-CrezTJRy.js";
|
|
2
|
+
import { r, h as t, H as n } from "../lazy/ui-image-Gj7rJvHi.js";
|
|
3
3
|
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}", a = s, l = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
r(this, e), this.stylingValue = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./ui-image-ae115205-QubhRQ2C.cjs"),t=require("../lazy/ui-image-Bfp60xra.cjs"),s=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}",a=s,n=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,i){i!==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:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,i)=>t.h("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
2
2
|
:host {
|
|
3
3
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
4
4
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as m } from "./ui-image-
|
|
2
|
-
import { r, h as t, H as n } from "../lazy/ui-image-
|
|
1
|
+
import { U as m } from "./ui-image-ae115205-D6AaeZwA.js";
|
|
2
|
+
import { r, h as t, H as n } from "../lazy/ui-image-DN4m37SE.js";
|
|
3
3
|
const s = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}", a = s, l = class {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
r(this, e), this.stylingValue = {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("../lazy/ui-image-Co06JuWa.cjs"),n=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}",a=n,r=class{constructor(e){i.registerInstance(this,e),this.hasStarted=!1,this._onLoad=()=>{this.imgLoaded=!0},this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.loading="lazy",this.imgLoaded=!1}onSrcChange(){this.loading!=="eager"&&(this.imgLoaded=!1,this.hasStarted=!1,(typeof window=="undefined"||!("IntersectionObserver"in window))&&this.beginLoad())}onLoadingChange(e,t){e!==t&&(this.cleanupObserver(),e==="eager"?(this.imgEl&&this.src&&(this.imgEl.src=this.src),this.hasStarted=!0):(this.imgLoaded=!1,this.hasStarted=!1,this.setupObserver()))}componentDidLoad(){this.loading!=="eager"&&this.setupObserver()}disconnectedCallback(){this.cleanupObserver(),this.imgEl&&(this.imgEl.src="")}canUseIO(){return typeof window!="undefined"&&"IntersectionObserver"in window}setupObserver(){if(this.loading!=="eager"){if(!this.canUseIO()){this.beginLoad();return}this.io=new IntersectionObserver(e=>{var t;for(const s of e)if(s.isIntersecting){this.beginLoad(),(t=this.io)===null||t===void 0||t.unobserve(s.target),this.cleanupObserver();break}},{root:null,rootMargin:this.detectDistance,threshold:0}),this.io.observe(this.el)}}cleanupObserver(){var e;(e=this.io)===null||e===void 0||e.disconnect(),this.io=void 0}beginLoad(){this.hasStarted||this.imgEl&&this.src&&(this.hasStarted=!0,this.imgEl.src=this.src,this.imgEl.complete&&this.imgEl.naturalWidth>0&&(this.imgLoaded=!0))}get showSkeleton(){return this.loading!=="eager"&&!this.imgLoaded}renderEager(){return i.h(i.Host,{class:"HostContainer"},i.h("img",{src:this.src,decoding:"async",style:this.styles,class:"UiContainer Visible",alt:this.alt,width:this.width,height:this.height,loading:"eager"}))}renderLazy(){return i.h(i.Host,{class:"HostContainer","aria-busy":this.imgLoaded?"false":"true"},this.showSkeleton&&i.h("ui-skeleton",{class:"UiContainer",structure:"image",width:"100%",height:"100%"}),i.h("img",{ref:e=>this.imgEl=e,src:void 0,decoding:"async",style:this.styles,onLoad:this._onLoad,class:`UiContainer ${this.imgLoaded?"Visible":"Hidden"}`,alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}render(){return this.loading==="eager"?this.renderEager():this.renderLazy()}get el(){return i.getElement(this)}static get watchers(){return{src:["onSrcChange"],loading:["onLoadingChange"]}}};r.style=a;exports.UiImage=r;
|