@everymatrix/casino-page-nd 1.76.13 → 1.76.14
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-DDXo_sLW.js → CasinoCalendar-BpmBQMqg.js} +835 -856
- package/components/CasinoCalendar-CzrlHwD6.cjs +19 -0
- package/components/{CasinoCalendar-DdCnnpAB.js → CasinoCalendar-DIKM6-FX.js} +992 -1013
- package/components/{CasinoCalendarDailyDetails-CY7B1lxS.js → CasinoCalendarDailyDetails-B2rPnr-r.js} +37 -37
- package/components/{CasinoCalendarDailyDetails-CQZJ4CVD.js → CasinoCalendarDailyDetails-CR3HaDXZ.js} +38 -38
- package/components/{CasinoCalendarDailyDetails-C27NHVH_.cjs → CasinoCalendarDailyDetails-Db4V8lzv.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-BqL5H57o.cjs → CasinoCalendarDailyItem-BYf0S582.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-CwQkhLDC.js → CasinoCalendarDailyItem-BtpO8qS-.js} +36 -36
- package/components/{CasinoCalendarDailyItem-DGbWXxCR.js → CasinoCalendarDailyItem-EtfFPL69.js} +39 -39
- package/components/{CasinoCollectionsProviders-BoWCBksj.js → CasinoCollectionsProviders-CGHuHGKJ.js} +68 -68
- package/components/{CasinoCollectionsProviders-D9evjksc.js → CasinoCollectionsProviders-DRvdCXk8.js} +65 -65
- package/components/{CasinoCollectionsProviders-DuN6pZVH.cjs → CasinoCollectionsProviders-zDF0lel_.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-CGOlvGdM.js → CasinoFavoritesSectionNd-D_iRqzx7.js} +24 -24
- package/components/{CasinoFavoritesSectionNd-H7nx1r94.js → CasinoFavoritesSectionNd-Vth9qKYe.js} +27 -27
- package/components/{CasinoFavoritesSectionNd-CvXJsyAP.cjs → CasinoFavoritesSectionNd-wD4aGs9L.cjs} +1 -1
- package/components/CasinoFilter-BVW1b78L.cjs +1 -0
- package/components/{CasinoFilter-KfWVyYe3.js → CasinoFilter-DzWurkh4.js} +235 -236
- package/components/{CasinoFilter-DnMTdTn9.js → CasinoFilter-PMuyKrfM.js} +254 -253
- package/components/CasinoGameThumbnailNd-B-r_T1ag.cjs +30 -0
- package/components/{CasinoGameThumbnailNd-NR9WwTZ6.js → CasinoGameThumbnailNd-Bew7sNHs.js} +64 -62
- package/components/{CasinoGameThumbnailNd-Bzu_4Oxw.js → CasinoGameThumbnailNd-a3JP2Y65.js} +66 -64
- package/components/{CasinoGamesCategorySectionNd-CblCav-m.js → CasinoGamesCategorySectionNd-BViAsj82.js} +162 -162
- package/components/{CasinoGamesCategorySectionNd-CIcaCq68.cjs → CasinoGamesCategorySectionNd-BxnBPZSN.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-Rm6DYIBP.js → CasinoGamesCategorySectionNd-Dmc0zltf.js} +136 -136
- package/components/{CasinoJackpotBanner-C6wXEguN.js → CasinoJackpotBanner-BqnIz0Jh.js} +58 -58
- package/components/{CasinoJackpotBanner-MCIBXYea.js → CasinoJackpotBanner-BvlsWFl7.js} +103 -103
- package/components/{CasinoJackpotBanner-BwX1dP1o.cjs → CasinoJackpotBanner-DVQ8suFI.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-CN3yKI9-.js → CasinoLastPlayedSectionNd-DP2wNqqR.js} +34 -34
- package/components/{CasinoLastPlayedSectionNd-fAiSSaIh.js → CasinoLastPlayedSectionNd-DgT1mzLh.js} +41 -41
- package/components/{CasinoLastPlayedSectionNd-Bxs8eYQG.cjs → CasinoLastPlayedSectionNd-jre5mCnw.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-B1at83la.js → CasinoMostPlayedSectionNd-B60c74Nx.js} +36 -36
- package/components/{CasinoMostPlayedSectionNd-G7f4yFDo.js → CasinoMostPlayedSectionNd-BDbP0dVK.js} +42 -42
- package/components/{CasinoMostPlayedSectionNd-C-cloax-.cjs → CasinoMostPlayedSectionNd-C9EPOuC_.cjs} +1 -1
- package/components/{CasinoMyGamesNd-CxF3mFQs.cjs → CasinoMyGamesNd-Bhufp11n.cjs} +1 -1
- package/components/{CasinoMyGamesNd-DwAtzu1i.js → CasinoMyGamesNd-DMqZrYBo.js} +37 -37
- package/components/{CasinoMyGamesNd-Bj2okvQP.js → CasinoMyGamesNd-VCvq-Ujh.js} +28 -28
- package/components/{CasinoPageNd-Bo7ns-k8.js → CasinoPageNd-BvQvfzbo.js} +113 -113
- package/components/{CasinoPageNd-DxVmo3F5.cjs → CasinoPageNd-D34CwHfP.cjs} +1 -1
- package/components/{CasinoPageNd-B6pJElK0.js → CasinoPageNd-DA7qMS-l.js} +109 -109
- package/components/{CasinoRandomGame-DlzNumMI.js → CasinoRandomGame-BPjl3Vyt.js} +49 -49
- package/components/{CasinoRandomGame-8L_f477H.js → CasinoRandomGame-Dbm27S1o.js} +58 -58
- package/components/{CasinoRandomGame-CxZ9BOdC.cjs → CasinoRandomGame-Er_WDp3Q.cjs} +1 -1
- package/components/{CasinoSearchNd-BGNGhn3i.cjs → CasinoSearchNd-CNcdxlUR.cjs} +1 -1
- package/components/{CasinoSearchNd-DlBxnUCa.js → CasinoSearchNd-DW1Pw7-Q.js} +69 -69
- package/components/{CasinoSearchNd-DHWo9Sq0.js → CasinoSearchNd-Dk2PKhWq.js} +82 -82
- package/components/{CasinoSort-DNllDxl4.js → CasinoSort-CkIWjxkg.js} +117 -116
- package/components/{CasinoSort-BXkq0BBq.cjs → CasinoSort-T5gzvKTb.cjs} +1 -1
- package/components/{CasinoSort-D-B4gJyW.js → CasinoSort-zIeABc70.js} +107 -108
- package/components/{CasinoWinners-BXurlLis.js → CasinoWinners-BdPKRRdb.js} +162 -162
- package/components/{CasinoWinners-eDycJCzQ.cjs → CasinoWinners-DSywKe-Y.cjs} +1 -1
- package/components/{CasinoWinners-Gp8fceSt.js → CasinoWinners-iRjkvip2.js} +155 -155
- package/components/{GeneralAnimationLoading-CGEL9clS.cjs → GeneralAnimationLoading-BxgOtrDA.cjs} +1 -1
- package/components/{GeneralAnimationLoading-vgt-l_aE.js → GeneralAnimationLoading-D0OVj1dQ.js} +8 -8
- package/components/{GeneralAnimationLoading-DZ1wrvtM.js → GeneralAnimationLoading-DzWSt2Rd.js} +10 -10
- 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/package.json +1 -1
- package/stencil/casino-play-random-game-CUpRDmsd.js +29 -0
- package/stencil/casino-play-random-game-Cn7_43lQ.js +11 -0
- package/stencil/casino-play-random-game-fvC6k6u_.cjs +1 -0
- package/stencil/{casino-play-random-game_2-C2bZyPjR.js → casino-play-random-game_3-B7x6w4BA.js} +155 -66
- package/stencil/{casino-play-random-game_2-BdD78js8.js → casino-play-random-game_3-D2RbqU-v.js} +155 -66
- package/stencil/casino-play-random-game_3-y8iURQaW.cjs +432 -0
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/index-27b314b8-9-rvsddy.js +566 -0
- package/stencil/index-27b314b8-CCprWmCo.js +582 -0
- package/stencil/index-27b314b8-DoR1KfK8.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-Bj3y-YhF.js → ui-image-BqbNkjGg.js} +1 -1
- package/stencil/{ui-image-SXcjABMO.cjs → ui-image-CNN86Aho.cjs} +1 -1
- package/stencil/{ui-image-BTT8PTe6.js → ui-image-_f0XGSO2.js} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CasinoCalendar-1EiuG4ja.cjs +0 -19
- package/components/CasinoFilter-Da1iRlYf.cjs +0 -1
- package/components/CasinoGameThumbnailNd-CZW4Modc.cjs +0 -30
- package/stencil/casino-play-random-game-BpDaQ8lr.js +0 -29
- package/stencil/casino-play-random-game-BtyKwZuB.cjs +0 -1
- package/stencil/casino-play-random-game-DkvncoWi.js +0 -11
- package/stencil/casino-play-random-game_2-CYSobUaR.cjs +0 -432
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
- package/stencil/index-328e660d-B9ooleuJ.js +0 -561
- package/stencil/index-328e660d-C6jlVqfy.js +0 -577
- package/stencil/index-328e660d-D9ZPPQF8.cjs +0 -1
package/components/{GeneralAnimationLoading-CGEL9clS.cjs → GeneralAnimationLoading-BxgOtrDA.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CasinoCalendar-CzrlHwD6.cjs");function u(e){i.append_styles(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function f(e){let t;return{c(){t=i.element("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,r){i.insert(l,t,r),e[4](t)},p:i.noop,i:i.noop,o:i.noop,d(l){l&&i.detach(t),e[4](null)}}}function m(e,t,l){let{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{mbsource:d}=t,n;i.onMount(()=>()=>{});function a(s){i.binding_callbacks[s?"unshift":"push"](()=>{n=s,l(0,n)})}return e.$$set=s=>{"clientstyling"in s&&l(1,r=s.clientstyling),"clientstylingurl"in s&&l(2,c=s.clientstylingurl),"mbsource"in s&&l(3,d=s.mbsource)},e.$$.update=()=>{e.$$.dirty&3&&r&&n&&i.setClientStyling(n,r),e.$$.dirty&5&&c&&n&&i.setClientStylingURL(n,c),e.$$.dirty&9&&d&&n&&i.setStreamStyling(n,`${d}.Style`)},[n,r,c,d,a]}class o extends i.SvelteComponent{constructor(t){super(),i.init(this,t,m,f,i.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},u)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(o,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=o;
|
package/components/{GeneralAnimationLoading-vgt-l_aE.js → GeneralAnimationLoading-D0OVj1dQ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as u, i as f, s as m, f as c,
|
|
1
|
+
import { S as u, i as f, s as m, f as c, c as g, b as y, e as p, d as h, H as d, k as b, o as v, p as x, q as _, r as S, u as k } from "./CasinoCalendar-DIKM6-FX.js";
|
|
2
2
|
function C(t) {
|
|
3
|
-
|
|
3
|
+
y(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
4
4
|
}
|
|
5
5
|
function L(t) {
|
|
6
6
|
let i;
|
|
@@ -15,16 +15,16 @@ function L(t) {
|
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && b(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function q(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
v(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
k[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -48,7 +48,7 @@ class w extends u {
|
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
|
-
|
|
51
|
+
q,
|
|
52
52
|
L,
|
|
53
53
|
m,
|
|
54
54
|
{
|
|
@@ -78,7 +78,7 @@ class w extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
g(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
83
|
w as default
|
|
84
84
|
};
|
package/components/{GeneralAnimationLoading-DZ1wrvtM.js → GeneralAnimationLoading-DzWSt2Rd.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as u, i as f, s as m, f as c,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as u, i as f, s as m, f as c, c as g, b as y, e as p, d as h, H as d, k as b, o as v, p as x, q as _, r as S, u as k } from "./CasinoCalendar-BpmBQMqg.js";
|
|
2
|
+
function C(t) {
|
|
3
|
+
y(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
4
4
|
}
|
|
5
5
|
function L(t) {
|
|
6
6
|
let i;
|
|
@@ -15,16 +15,16 @@ function L(t) {
|
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && b(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function q(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
v(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
k[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -48,7 +48,7 @@ class w extends u {
|
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
|
-
|
|
51
|
+
q,
|
|
52
52
|
L,
|
|
53
53
|
m,
|
|
54
54
|
{
|
|
@@ -56,7 +56,7 @@ class w extends u {
|
|
|
56
56
|
clientstylingurl: 2,
|
|
57
57
|
mbsource: 3
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
C
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
get clientstyling() {
|
|
@@ -78,7 +78,7 @@ class w extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
g(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
83
|
w as default
|
|
84
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPageNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoPageNd-D34CwHfP.cjs")).then(({default:t})=>{!customElements.get("casino-page-nd")&&customElements.define("casino-page-nd",t.element)})}
|
package/es2015/casino-page-nd.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoPageNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoPageNd-BvQvfzbo.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-page-nd") && customElements.define("casino-page-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/casino-page-nd.js
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var l = (i, a, t) => new Promise((s, o) => {
|
|
2
|
+
var c = (n) => {
|
|
3
|
+
try {
|
|
4
|
+
e(t.next(n));
|
|
5
|
+
} catch (r) {
|
|
6
|
+
o(r);
|
|
7
|
+
}
|
|
8
|
+
}, g = (n) => {
|
|
9
|
+
try {
|
|
10
|
+
e(t.throw(n));
|
|
11
|
+
} catch (r) {
|
|
12
|
+
o(r);
|
|
13
|
+
}
|
|
14
|
+
}, e = (n) => n.done ? s(n.value) : Promise.resolve(n.value).then(c, g);
|
|
15
|
+
e((t = t.apply(i, a)).next());
|
|
16
|
+
});
|
|
17
|
+
import { b as m, p as d } from "./index-27b314b8-CCprWmCo.js";
|
|
18
|
+
import { s as f } from "./index-27b314b8-CCprWmCo.js";
|
|
19
|
+
import { g as h } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
20
|
+
var u = () => {
|
|
21
|
+
const i = import.meta.url, a = {};
|
|
22
|
+
return i !== "" && (a.resourcesUrl = new URL(".", i).href), d(a);
|
|
23
|
+
};
|
|
24
|
+
u().then((i) => l(void 0, null, function* () {
|
|
25
|
+
return yield h(), m([["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"] }]]]], i);
|
|
26
|
+
}));
|
|
27
|
+
export {
|
|
28
|
+
f as setNonce
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as a, p as t } from "./index-27b314b8-9-rvsddy.js";
|
|
2
|
+
import { s as g } from "./index-27b314b8-9-rvsddy.js";
|
|
3
|
+
import { g as e } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
4
|
+
var r = () => {
|
|
5
|
+
const n = import.meta.url, i = {};
|
|
6
|
+
return n !== "" && (i.resourcesUrl = new URL(".", n).href), t(i);
|
|
7
|
+
};
|
|
8
|
+
r().then(async (n) => (await e(), a([["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)));
|
|
9
|
+
export {
|
|
10
|
+
g as setNonce
|
|
11
|
+
};
|
|
@@ -0,0 +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)}},u=e=>{try{a(i.throw(e))}catch(r){c(r)}},a=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,u);a((i=i.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-27b314b8-DoR1KfK8.cjs"),m=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-fvC6k6u_.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 m.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;
|
package/stencil/{casino-play-random-game_2-C2bZyPjR.js → casino-play-random-game_3-B7x6w4BA.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as d, c as f, h as t, g, H as l } from "./index-27b314b8-9-rvsddy.js";
|
|
2
|
+
const w = () => {
|
|
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";
|
|
5
|
-
}, y = "en",
|
|
5
|
+
}, y = "en", s = {
|
|
6
6
|
en: {
|
|
7
7
|
error: "Error",
|
|
8
8
|
randomGameLoading: "Loading ...",
|
|
@@ -45,42 +45,42 @@ const f = () => {
|
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
48
|
+
}, m = (e) => new Promise((n) => {
|
|
49
49
|
fetch(e).then((i) => i.json()).then((i) => {
|
|
50
50
|
Object.keys(i).forEach((a) => {
|
|
51
|
-
|
|
52
|
-
for (let
|
|
53
|
-
|
|
54
|
-
}),
|
|
51
|
+
s[a] || (s[a] = {});
|
|
52
|
+
for (let r in i[a])
|
|
53
|
+
s[a][r] = i[a][r];
|
|
54
|
+
}), n(!0);
|
|
55
55
|
});
|
|
56
|
-
}),
|
|
57
|
-
const i =
|
|
58
|
-
return
|
|
56
|
+
}), o = (e, n) => {
|
|
57
|
+
const i = n;
|
|
58
|
+
return s[i !== void 0 && i in s ? i : y][e];
|
|
59
59
|
};
|
|
60
|
-
function
|
|
60
|
+
function h(e, n) {
|
|
61
61
|
if (e) {
|
|
62
62
|
const i = document.createElement("style");
|
|
63
|
-
i.innerHTML =
|
|
63
|
+
i.innerHTML = n, e.appendChild(i);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const i = new URL(
|
|
66
|
+
function c(e, n) {
|
|
67
|
+
const i = new URL(n);
|
|
68
68
|
fetch(i.href).then((a) => a.text()).then((a) => {
|
|
69
|
-
const
|
|
70
|
-
|
|
69
|
+
const r = document.createElement("style");
|
|
70
|
+
r.innerHTML = a, e && e.appendChild(r);
|
|
71
71
|
}).catch((a) => {
|
|
72
72
|
console.error("There was an error while trying to load client styling from URL", a);
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function b(e, n, i) {
|
|
76
76
|
if (window.emMessageBus) {
|
|
77
77
|
const a = document.createElement("style");
|
|
78
|
-
window.emMessageBus.subscribe(
|
|
79
|
-
a.innerHTML =
|
|
78
|
+
window.emMessageBus.subscribe(n, (r) => {
|
|
79
|
+
a.innerHTML = r, e && e.appendChild(a);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const x = `:host {
|
|
84
84
|
display: block;
|
|
85
85
|
font-family: inherit;
|
|
86
86
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -457,50 +457,56 @@ const b = `:host {
|
|
|
457
457
|
width: 70px;
|
|
458
458
|
height: 85px;
|
|
459
459
|
}
|
|
460
|
-
}`,
|
|
460
|
+
}`, v = x, k = class {
|
|
461
461
|
constructor(e) {
|
|
462
|
-
|
|
463
|
-
let i =
|
|
462
|
+
d(this, e), this.dataLoaded = f(this, "data-loaded", 7), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (n) => {
|
|
463
|
+
let i = n.length, a;
|
|
464
464
|
for (; i !== 0; )
|
|
465
|
-
a = Math.floor(Math.random() * i), i--, [
|
|
466
|
-
return
|
|
467
|
-
}, 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;
|
|
465
|
+
a = Math.floor(Math.random() * i), i--, [n[i], n[a]] = [n[a], n[i]];
|
|
466
|
+
return n;
|
|
467
|
+
}, 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";
|
|
468
468
|
}
|
|
469
|
-
watchEndpoint(e,
|
|
470
|
-
e && e !=
|
|
469
|
+
watchEndpoint(e, n) {
|
|
470
|
+
e && e != n && this.endpoint && this.fetchGameList();
|
|
471
471
|
}
|
|
472
472
|
handleNewTranslations() {
|
|
473
|
-
this.isLoading = !0,
|
|
473
|
+
this.isLoading = !0, m(this.translationUrl).then(() => {
|
|
474
474
|
this.isLoading = !1;
|
|
475
475
|
});
|
|
476
476
|
}
|
|
477
477
|
handleIsIconVisible() {
|
|
478
478
|
this.iconVisibility = this.iconVisible === "true";
|
|
479
479
|
}
|
|
480
|
-
handleClientStylingChange(e,
|
|
481
|
-
e !=
|
|
480
|
+
handleClientStylingChange(e, n) {
|
|
481
|
+
e != n && h(this.stylingContainer, this.clientStyling);
|
|
482
482
|
}
|
|
483
|
-
handleClientStylingChangeURL(e,
|
|
484
|
-
e !=
|
|
483
|
+
handleClientStylingChangeURL(e, n) {
|
|
484
|
+
e != n && this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl);
|
|
485
485
|
}
|
|
486
486
|
connectedCallback() {
|
|
487
487
|
this.handleIsIconVisible();
|
|
488
488
|
}
|
|
489
489
|
componentWillLoad() {
|
|
490
|
-
if (this.translationUrl.length > 2 &&
|
|
490
|
+
if (this.translationUrl.length > 2 && m(this.translationUrl), this.endpoint && this.language && this.datasource)
|
|
491
491
|
return this.fetchGameList();
|
|
492
492
|
}
|
|
493
493
|
componentDidLoad() {
|
|
494
|
-
|
|
494
|
+
"IntersectionObserver" in window && (this.io = new IntersectionObserver((e) => {
|
|
495
|
+
e.forEach((n) => {
|
|
496
|
+
var i;
|
|
497
|
+
n.isIntersecting && (this.imageLoadingType = "eager", (i = this.io) === null || i === void 0 || i.unobserve(n.target));
|
|
498
|
+
});
|
|
499
|
+
}, { root: null, rootMargin: this.detectDistance }), this.io.observe(this.host)), window.emMessageBus != null ? b(this.stylingContainer, `${this.mbSource}.Style`) : (this.clientStyling && h(this.stylingContainer, this.clientStyling), this.clientStylingUrl && c(this.stylingContainer, this.clientStylingUrl));
|
|
495
500
|
}
|
|
496
501
|
disconnectedCallback() {
|
|
497
|
-
|
|
502
|
+
var e;
|
|
503
|
+
(e = this.io) === null || e === void 0 || e.disconnect(), this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
498
504
|
}
|
|
499
505
|
fetchGameList() {
|
|
500
506
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
501
|
-
return e.searchParams.append("platform",
|
|
507
|
+
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((n, i) => {
|
|
502
508
|
this.isLoading = !0, fetch(e.href).then((a) => a.json()).then((a) => {
|
|
503
|
-
this.gamesToShow = this.setUpGames(a?.items),
|
|
509
|
+
this.gamesToShow = this.setUpGames(a?.items), n(!0);
|
|
504
510
|
}).catch((a) => {
|
|
505
511
|
console.error(a), this.hasErrors = !0, i(a);
|
|
506
512
|
}).finally(() => {
|
|
@@ -511,8 +517,8 @@ const b = `:host {
|
|
|
511
517
|
});
|
|
512
518
|
}
|
|
513
519
|
setUpGames(e) {
|
|
514
|
-
const
|
|
515
|
-
return
|
|
520
|
+
const n = this.shuffle(e).slice(0, 40);
|
|
521
|
+
return n.concat(n);
|
|
516
522
|
}
|
|
517
523
|
selectRandomGame() {
|
|
518
524
|
const e = this.gamesToShow.length / 2;
|
|
@@ -530,18 +536,18 @@ const b = `:host {
|
|
|
530
536
|
}
|
|
531
537
|
animateGames() {
|
|
532
538
|
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();
|
|
533
|
-
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),
|
|
539
|
+
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), i = this.selectedGameEl.offsetWidth, a = this.gameContainer.offsetWidth, r = (i + n) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
534
540
|
i / 2 - // Additional half card width to center to the selected game
|
|
535
|
-
a / 2,
|
|
541
|
+
a / 2, u = [
|
|
536
542
|
{ transform: "translateX(0px)", scale: 1 },
|
|
537
543
|
{ scale: 0.75 },
|
|
538
|
-
{ transform: `translateX(-${
|
|
539
|
-
],
|
|
544
|
+
{ transform: `translateX(-${r}px)`, scale: 1 }
|
|
545
|
+
], p = {
|
|
540
546
|
duration: 3e3,
|
|
541
547
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
542
548
|
fill: "forwards"
|
|
543
549
|
};
|
|
544
|
-
this.animation = this.gameContainer.animate(
|
|
550
|
+
this.animation = this.gameContainer.animate(u, p), this.animation.onfinish = () => {
|
|
545
551
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
546
552
|
};
|
|
547
553
|
}
|
|
@@ -556,17 +562,17 @@ const b = `:host {
|
|
|
556
562
|
});
|
|
557
563
|
}
|
|
558
564
|
renderGameDetails() {
|
|
559
|
-
return
|
|
565
|
+
return t("div", { class: "RandomButtonsWrapper" }, t("div", { class: "RandomGameDetails" }, t("span", { class: "RandomGameTitle" }, this.selectedGame.name), t("span", { class: "RandomGameInfo", onClick: () => this.showGameInfo() }, "i")), t("div", { class: "RandomButtons" }, t("button", { class: "RandomButton On", onClick: () => this.respin() }, o("spinRandomGame", this.language)), !this.launchByGameCard && t("button", { class: "RandomButton On", onClick: () => this.playGame() }, o("playNowRandomGame", this.language))));
|
|
560
566
|
}
|
|
561
567
|
renderSkeleton() {
|
|
562
|
-
const e = Array.from({ length: 5 }, (
|
|
563
|
-
return
|
|
568
|
+
const e = Array.from({ length: 5 }, (n, i) => t("div", { class: "RandomGameCard", key: i }, t("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
|
|
569
|
+
return t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer" }, e));
|
|
564
570
|
}
|
|
565
571
|
render() {
|
|
566
|
-
return
|
|
572
|
+
return t("div", { key: "29fe3535d63177e6d1f30a757bf17b70d89ce386", ref: (e) => this.stylingContainer = e }, this.hasErrors ? t("div", { class: "RandomGameError" }, t("div", { class: "Title" }, o("error", this.language))) : this.isLoading ? this.renderSkeleton() : t("div", { class: "RandomGameWrapper" }, t("div", { class: "GameContainerGradient" }), t("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => t("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, t("div", { class: "RandomGameVendor" }, e.vendor.name), t("ui-image", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name, loading: this.imageLoadingType }), this.selectedGame && this.selectedGameIndex === n && this.renderGameDetails()))), t("div", { class: `ButtonWrapper ${this.animationDone ? "HideAnimation" : ""}` }, t("div", { class: "ButtonContainer" }, this.iconVisibility && t("div", { class: `ButtonIcon ${this.animationStarted ? "Flip" : ""}` }, t("div", { class: "QustionMark" }, "?"), t("div", { class: "HexagonMarkShadow" }), t("div", { class: "HexagonMark" })), !this.animationStarted && t("div", { class: `RandomButton ${this.animationStarted ? "HideAnimation" : ""}`, onClick: () => this.playRandomGame() }, o("playRandomGame", this.language))))));
|
|
567
573
|
}
|
|
568
574
|
get host() {
|
|
569
|
-
return
|
|
575
|
+
return g(this);
|
|
570
576
|
}
|
|
571
577
|
static get watchers() {
|
|
572
578
|
return {
|
|
@@ -580,10 +586,92 @@ const b = `:host {
|
|
|
580
586
|
};
|
|
581
587
|
}
|
|
582
588
|
};
|
|
583
|
-
|
|
584
|
-
const
|
|
589
|
+
k.style = v;
|
|
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, S = class {
|
|
591
|
+
constructor(e) {
|
|
592
|
+
d(this, e), this.hasStarted = !1, 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;
|
|
593
|
+
}
|
|
594
|
+
onSrcChange() {
|
|
595
|
+
this.loading !== "eager" && (this.imgLoaded = !1, this.hasStarted = !1, (typeof window > "u" || !("IntersectionObserver" in window)) && this.beginLoad());
|
|
596
|
+
}
|
|
597
|
+
onLoadingChange(e, n) {
|
|
598
|
+
e !== n && (this.cleanupObserver(), this.detachImgHandlers(), e === "eager" ? (this.imgEl && this.src && (this.imgEl.src = this.src), this.hasStarted = !0) : (this.imgLoaded = !1, this.hasStarted = !1, this.setupObserver()));
|
|
599
|
+
}
|
|
600
|
+
componentDidLoad() {
|
|
601
|
+
this.loading !== "eager" && this.setupObserver();
|
|
602
|
+
}
|
|
603
|
+
disconnectedCallback() {
|
|
604
|
+
this.cleanupObserver(), this.detachImgHandlers();
|
|
605
|
+
}
|
|
606
|
+
canUseIO() {
|
|
607
|
+
return typeof window < "u" && "IntersectionObserver" in window;
|
|
608
|
+
}
|
|
609
|
+
setupObserver() {
|
|
610
|
+
if (this.loading !== "eager") {
|
|
611
|
+
if (!this.canUseIO()) {
|
|
612
|
+
this.beginLoad();
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
this.io = new IntersectionObserver((e) => {
|
|
616
|
+
var n;
|
|
617
|
+
for (const i of e)
|
|
618
|
+
if (i.isIntersecting) {
|
|
619
|
+
this.beginLoad(), (n = this.io) === null || n === void 0 || n.unobserve(i.target), this.cleanupObserver();
|
|
620
|
+
break;
|
|
621
|
+
}
|
|
622
|
+
}, { root: null, rootMargin: this.detectDistance, threshold: 0 }), this.io.observe(this.el);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
cleanupObserver() {
|
|
626
|
+
var e;
|
|
627
|
+
(e = this.io) === null || e === void 0 || e.disconnect(), this.io = void 0;
|
|
628
|
+
}
|
|
629
|
+
wireOnceHandlers() {
|
|
630
|
+
this.imgEl && (this.detachImgHandlers(), this._onLoad = () => {
|
|
631
|
+
var e;
|
|
632
|
+
this.currentSrc && (!((e = this.imgEl) === null || e === void 0) && e.currentSrc) && !this.imgEl.currentSrc.includes(this.currentSrc) || (this.imgLoaded = !0);
|
|
633
|
+
}, this._onError = () => {
|
|
634
|
+
console.error("Load image failed:", this.src);
|
|
635
|
+
}, this.imgEl.addEventListener("load", this._onLoad, { once: !0 }), this.imgEl.addEventListener("error", this._onError, { once: !0 }));
|
|
636
|
+
}
|
|
637
|
+
detachImgHandlers() {
|
|
638
|
+
this.imgEl && (this._onLoad && this.imgEl.removeEventListener("load", this._onLoad), this._onError && this.imgEl.removeEventListener("error", this._onError), this._onLoad = void 0, this._onError = void 0);
|
|
639
|
+
}
|
|
640
|
+
beginLoad() {
|
|
641
|
+
if (!this.hasStarted && this.imgEl && this.src) {
|
|
642
|
+
if (this.hasStarted = !0, this.wireOnceHandlers(), this.imgEl.complete && this.imgEl.naturalWidth > 0) {
|
|
643
|
+
this.imgLoaded = !0;
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
this.currentSrc = this.src, this.imgEl.src = this.src, this.imgEl.complete && this.imgEl.naturalWidth > 0 && (this.imgLoaded = !0);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
get showSkeleton() {
|
|
650
|
+
return this.loading !== "eager" && !this.imgLoaded;
|
|
651
|
+
}
|
|
652
|
+
renderEager() {
|
|
653
|
+
return t(l, { class: "HostContainer" }, t("img", { src: this.src, decoding: "async", style: this.styles, class: "UiContainer Visible", alt: this.alt, width: this.width, height: this.height, loading: "eager" }));
|
|
654
|
+
}
|
|
655
|
+
renderLazy() {
|
|
656
|
+
return t(l, { class: "HostContainer", "aria-busy": this.imgLoaded ? "false" : "true" }, this.showSkeleton && t("ui-skeleton", { class: "UiContainer", structure: "image", width: "100%", height: "100%" }), t("img", { ref: (e) => this.imgEl = e, src: void 0, decoding: "async", style: this.styles, class: `UiContainer ${this.imgLoaded ? "Visible" : "Hidden"}`, alt: this.alt, width: this.width, height: this.height, loading: "lazy" }));
|
|
657
|
+
}
|
|
658
|
+
render() {
|
|
659
|
+
return this.loading === "eager" ? this.renderEager() : this.renderLazy();
|
|
660
|
+
}
|
|
661
|
+
get el() {
|
|
662
|
+
return g(this);
|
|
663
|
+
}
|
|
664
|
+
static get watchers() {
|
|
665
|
+
return {
|
|
666
|
+
src: ["onSrcChange"],
|
|
667
|
+
loading: ["onLoadingChange"]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
S.style = R;
|
|
672
|
+
const C = ":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)}}", L = C, E = class {
|
|
585
673
|
constructor(e) {
|
|
586
|
-
|
|
674
|
+
d(this, e), this.stylingValue = {
|
|
587
675
|
width: this.handleStylingProps(this.width),
|
|
588
676
|
height: this.handleStylingProps(this.height),
|
|
589
677
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
@@ -594,8 +682,8 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
594
682
|
size: this.handleStylingProps(this.size)
|
|
595
683
|
}, 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%";
|
|
596
684
|
}
|
|
597
|
-
handleStructureChange(e,
|
|
598
|
-
|
|
685
|
+
handleStructureChange(e, n) {
|
|
686
|
+
n !== e && this.handleStructure(e);
|
|
599
687
|
}
|
|
600
688
|
handleStylingProps(e) {
|
|
601
689
|
switch (typeof e) {
|
|
@@ -628,22 +716,22 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
628
716
|
}
|
|
629
717
|
}
|
|
630
718
|
renderLogo() {
|
|
631
|
-
return
|
|
719
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Logo " + (this.animation ? "Skeleton" : "") }));
|
|
632
720
|
}
|
|
633
721
|
renderImage() {
|
|
634
|
-
return
|
|
722
|
+
return t("div", { class: "Image " + (this.animation ? "Skeleton" : "") });
|
|
635
723
|
}
|
|
636
724
|
renderTitle() {
|
|
637
|
-
return
|
|
725
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Title " + (this.animation ? "Skeleton" : "") }));
|
|
638
726
|
}
|
|
639
727
|
renderText() {
|
|
640
|
-
return
|
|
728
|
+
return t("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, n) => t("div", { key: n, class: "Text " + (this.animation ? "Skeleton" : "") })));
|
|
641
729
|
}
|
|
642
730
|
renderRectangle() {
|
|
643
|
-
return
|
|
731
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Rectangle " + (this.animation ? "Skeleton" : "") }));
|
|
644
732
|
}
|
|
645
733
|
renderCircle() {
|
|
646
|
-
return
|
|
734
|
+
return t("div", { class: "SkeletonContainer" }, t("div", { class: "Circle " + (this.animation ? "Skeleton" : "") }));
|
|
647
735
|
}
|
|
648
736
|
render() {
|
|
649
737
|
let e = "";
|
|
@@ -723,7 +811,7 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
723
811
|
default:
|
|
724
812
|
e = "";
|
|
725
813
|
}
|
|
726
|
-
return
|
|
814
|
+
return t(l, { key: "e6b885bfd985ce7663d990756fe9101e25eb97f0" }, t("style", { key: "06ae24c7bb74f4dacfc12ae58085333f9dc89da5" }, e), this.handleStructure(this.structure));
|
|
727
815
|
}
|
|
728
816
|
static get watchers() {
|
|
729
817
|
return {
|
|
@@ -731,8 +819,9 @@ const v = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
731
819
|
};
|
|
732
820
|
}
|
|
733
821
|
};
|
|
734
|
-
|
|
822
|
+
E.style = L;
|
|
735
823
|
export {
|
|
736
|
-
|
|
737
|
-
S as
|
|
824
|
+
k as casino_play_random_game,
|
|
825
|
+
S as ui_image,
|
|
826
|
+
E as ui_skeleton
|
|
738
827
|
};
|