@everymatrix/casino-lobby 1.59.2 → 1.59.3
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-Km8tdNHN.js → CasinoCalendar-BYTytQgJ.js} +690 -712
- package/components/{CasinoCalendar-6ncpIgng.js → CasinoCalendar-CI-C6zUY.js} +696 -718
- package/components/CasinoCalendar-DqS7aKva.cjs +22 -0
- package/components/{CasinoCalendarDailyDetails-CGaAU2gc.js → CasinoCalendarDailyDetails-DQB9Y3_Q.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-CsEZhtVE.cjs → CasinoCalendarDailyDetails-DUQWFLJJ.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-CAbwFBvZ.js → CasinoCalendarDailyDetails-Xi-Uo8v-.js} +48 -48
- package/components/{CasinoCalendarDailyItem-DSlC0F3s.cjs → CasinoCalendarDailyItem-CVt2FFo1.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-5aqnKIMr.js → CasinoCalendarDailyItem-CjRZKnnD.js} +41 -41
- package/components/{CasinoCalendarDailyItem-D_MTrKed.js → CasinoCalendarDailyItem-DC91__VM.js} +41 -41
- package/components/{CasinoCategoriesSlider-CZHyRC-C.js → CasinoCategoriesSlider-BeqGvJrA.js} +67 -67
- package/components/{CasinoCategoriesSlider-Dm2i_QTf.js → CasinoCategoriesSlider-Cvb-krxJ.js} +66 -66
- package/components/CasinoCategoriesSlider-DZpvR9sw.cjs +1 -0
- package/components/{CasinoCollectionsProviders-B7d5LuGP.js → CasinoCollectionsProviders-BMyAx20Y.js} +73 -73
- package/components/{CasinoCollectionsProviders-pk8jpLQt.js → CasinoCollectionsProviders-B_4F6cIK.js} +71 -71
- package/components/{CasinoCollectionsProviders-B6occ8TF.cjs → CasinoCollectionsProviders-FGrPURo4.cjs} +1 -1
- package/components/{CasinoFavoritesSection-C949lfcK.js → CasinoFavoritesSection-BZmf5I3g.js} +26 -26
- package/components/{CasinoFavoritesSection-hHKNAcoS.cjs → CasinoFavoritesSection-CBb3Eo8J.cjs} +1 -1
- package/components/{CasinoFavoritesSection-V5ybOUJC.js → CasinoFavoritesSection-Dmko0_Ik.js} +26 -26
- package/components/{CasinoFilter-BWjq7W1e.js → CasinoFilter-BHLJqOwW.js} +235 -234
- package/components/CasinoFilter-Bg-VilMd.cjs +1 -0
- package/components/{CasinoFilter-BTof425X.js → CasinoFilter-Dt8GhenI.js} +246 -247
- package/components/{CasinoGamePage-ssKF-ZD1.js → CasinoGamePage-5moXxd0d.js} +741 -741
- package/components/{CasinoGamePage-D2huRBJX.cjs → CasinoGamePage-BmgERtPr.cjs} +6 -6
- package/components/{CasinoGamePage-Cp2CKRka.js → CasinoGamePage-D_TzJsC-.js} +742 -742
- package/components/{CasinoGameThumbnail-CVz7FpsB.js → CasinoGameThumbnail-DSjNVacg.js} +512 -528
- package/components/{CasinoGameThumbnail-NLieCJGe.js → CasinoGameThumbnail-DqBpfUwf.js} +436 -420
- package/components/{CasinoGameThumbnail-DK9cpR-G.cjs → CasinoGameThumbnail-OrvrYv4V.cjs} +15 -15
- package/components/{CasinoGamesCategorySection-BP3bZsZg.js → CasinoGamesCategorySection-Ce43OSOZ.js} +247 -247
- package/components/{CasinoGamesCategorySection-BAcJus2G.cjs → CasinoGamesCategorySection-DEh7yuGp.cjs} +1 -1
- package/components/{CasinoGamesCategorySection-Bpy9vh6D.js → CasinoGamesCategorySection-d8QOFywW.js} +247 -247
- package/components/{CasinoJackpotBanner-DredUN6K.cjs → CasinoJackpotBanner-B_CnR3Kj.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CuP8WP5Q.js → CasinoJackpotBanner-Dxq2Y_-S.js} +74 -74
- package/components/{CasinoJackpotBanner-Dl2rX6vI.js → CasinoJackpotBanner-UQaC63Zv.js} +69 -69
- package/components/{CasinoLastPlayedSection-CVEuFsbi.js → CasinoLastPlayedSection-BVANPPTi.js} +43 -43
- package/components/{CasinoLastPlayedSection-B9I2fZm5.js → CasinoLastPlayedSection-Bmr8n1pA.js} +43 -43
- package/components/{CasinoLastPlayedSection-COAM1aoc.cjs → CasinoLastPlayedSection-CyL83M3y.cjs} +1 -1
- package/components/{CasinoLobby-AoZlXLOV.js → CasinoLobby-CWzN0imw.js} +45 -45
- package/components/{CasinoLobby-BRiasSXJ.js → CasinoLobby-DUI1Ki3q.js} +47 -47
- package/components/{CasinoLobby-CYqI5Bvp.cjs → CasinoLobby-os94WdnE.cjs} +1 -1
- package/components/{CasinoModal-B9Gmdwc0.js → CasinoModal-BaV1FE12.js} +41 -41
- package/components/{CasinoModal-DLgyWFbs.js → CasinoModal-Bn6r73ff.js} +41 -41
- package/components/{CasinoModal-d1VUXUWj.cjs → CasinoModal-DWbCqr0p.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-9B6X9czZ.js → CasinoMostPlayedSection-B4SHGVp4.js} +50 -50
- package/components/{CasinoMostPlayedSection-DwZh0uxo.js → CasinoMostPlayedSection-CD00UC6r.js} +50 -50
- package/components/{CasinoMostPlayedSection-BUwIld9p.cjs → CasinoMostPlayedSection-y-GWnOes.cjs} +1 -1
- package/components/{CasinoMyGames-76IMIo9z.js → CasinoMyGames-BBsq56wQ.js} +50 -50
- package/components/{CasinoMyGames-DTGaTHyO.cjs → CasinoMyGames-DKu8rYmc.cjs} +1 -1
- package/components/{CasinoMyGames-DRCxYUHg.js → CasinoMyGames-DRCL87dq.js} +53 -53
- package/components/{CasinoPage-CikRIum6.js → CasinoPage-BJ2hLXJb.js} +93 -93
- package/components/{CasinoPage-DZ6Yhwli.cjs → CasinoPage-CXAKd3oS.cjs} +1 -1
- package/components/{CasinoPage-BPxxsTeq.js → CasinoPage-DXP80Vgm.js} +85 -85
- package/components/{CasinoRandomGame-CBcSHzZL.cjs → CasinoRandomGame-BO7BqLXA.cjs} +1 -1
- package/components/{CasinoRandomGame-CfOiAKHl.js → CasinoRandomGame-CsA5xgwc.js} +63 -63
- package/components/{CasinoRandomGame-CqripZYr.js → CasinoRandomGame-DLzqJj4x.js} +64 -64
- package/components/{CasinoSearch-CZSrkWFZ.cjs → CasinoSearch-CxFbGTdy.cjs} +1 -1
- package/components/{CasinoSearch-CCcjmB9U.js → CasinoSearch-CzUqsTgU.js} +72 -72
- package/components/{CasinoSearch-Cs8FRwGb.js → CasinoSearch-atJ6AGYa.js} +72 -72
- package/components/{CasinoSlider-CMKmgXUK.cjs → CasinoSlider-CgiDJzPs.cjs} +1 -1
- package/components/{CasinoSlider-0rdHVHjG.js → CasinoSlider-DjqwMakd.js} +65 -65
- package/components/{CasinoSlider-CleETLFf.js → CasinoSlider-zHVThApL.js} +74 -74
- package/components/{CasinoSort-C78a6veQ.cjs → CasinoSort-23PYwtO1.cjs} +1 -1
- package/components/{CasinoSort-xZsxfLYC.js → CasinoSort-B3A_Ar_A.js} +110 -111
- package/components/{CasinoSort-BRC8Jmi_.js → CasinoSort-DtUIrmuZ.js} +104 -103
- package/components/{CasinoWinners-DD8ZyQkV.js → CasinoWinners-CF_PptIS.js} +162 -162
- package/components/{CasinoWinners-BEOhs5WG.js → CasinoWinners-Gb2w2dXe.js} +179 -179
- package/components/{CasinoWinners-Cp1yMlzb.cjs → CasinoWinners-KEY7dD3z.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CURVDkRT.js → GeneralAnimationLoading-8TvNjXay.js} +16 -16
- package/components/{GeneralAnimationLoading-Bl6_sP-d.cjs → GeneralAnimationLoading-B-6s0l9d.cjs} +1 -1
- package/components/{GeneralAnimationLoading-uswxvfCW.js → GeneralAnimationLoading-Bbxdne1m.js} +16 -16
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +2 -2
- package/stencil/{casino-play-random-game-Bk7toWLj.js → casino-play-random-game-CLSQBVzD.js} +2 -2
- package/stencil/{casino-play-random-game-CKM_xKne.cjs → casino-play-random-game-CdZKN03s.cjs} +2 -2
- package/stencil/{casino-play-random-game-BW66Civ1.js → casino-play-random-game-Dm8A9dTR.js} +2 -2
- package/stencil/index-ab3202d6-C1hgKWrC.cjs +1 -0
- package/stencil/index-ab3202d6-OPh7hJp9.js +575 -0
- package/stencil/index-ab3202d6-hGs51skN.js +559 -0
- package/stencil/index-ae04a8b1-BhaHMrLE.js +516 -0
- package/stencil/index-ae04a8b1-Dn3cponN.js +532 -0
- package/stencil/index-ae04a8b1-jEvGbYrB.cjs +1 -0
- package/stencil/{ui-skeleton-DET4YE0J.js → ui-skeleton-Bz6cw7xJ.js} +2 -2
- package/stencil/{ui-skeleton-DlNNnOZy.cjs → ui-skeleton-D9k-xWaS.cjs} +1 -1
- package/stencil/{ui-skeleton-C02hm1pt.js → ui-skeleton-DDYD_XHU.js} +2 -2
- package/stencil/{ui-skeleton-a642cced-Dn9GOtgo.js → ui-skeleton-a642cced-Bg6oYmhk.js} +1 -1
- package/stencil/{ui-skeleton-a642cced-BhVS1i2r.cjs → ui-skeleton-a642cced-CVw8zpGJ.cjs} +1 -1
- package/stencil/{ui-skeleton-a642cced-7C4Fyb2d.js → ui-skeleton-a642cced-MvzXi5-c.js} +1 -1
- package/components/CasinoCalendar-CkNAiTx8.cjs +0 -22
- package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +0 -1
- package/components/CasinoFilter-C2Q93qQz.cjs +0 -1
- package/stencil/index-ab3202d6-BW1TSmQg.js +0 -575
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +0 -1
- package/stencil/index-ab3202d6-CkTejM5U.js +0 -559
- package/stencil/index-ae04a8b1-BvZmaj3p.js +0 -532
- package/stencil/index-ae04a8b1-DoeYpoC5.js +0 -516
- package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs");function ae(r,t){e.addMessages(r,t)}function je(r){e.$locale.set(r)}const oe={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢",noWinnersMessage:"現在暫時沒有贏家!"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen",noWinnersMessage:"Zurzeit gibt es keine Gewinner!"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Non ci sono vincitori al momento!"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner",noWinnersMessage:"Il n’y a pas de gagnants pour le moment !"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores",noWinnersMessage:"No hay ganadores en este momento."},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε",noWinnersMessage:"Δεν υπάρχουν νικητές αυτή τη στιγμή!"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı",noWinnersMessage:"Şu anda kazanan yok!"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"В данный момент нет победителей!"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat",noWinnersMessage:"Nu există câștigători în acest moment!"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio",noWinnersMessage:"Trenutno nema pobjednika!"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert",noWinnersMessage:"Jelenleg nincsenek nyertesek!"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Obecnie nie ma żadnych zwycięzców!"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Trenutno nema pobednika!"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar",noWinnersMessage:"Não há vencedores no momento!"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano",noWinnersMessage:"No hay ganadores en este momento."},"en-us":{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-Bl6_sP-d.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function Ee(r){e.append_styles(r,"svelte-1x13ubp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emw--casino-typography, var(--emw--color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.WinnersSlider .NoWinnersMessage{color:var(--emw--casino-typography, var(--emw--color-typography, #FFFFFF));font-size:var(--emw--font-size-medium, 16px)}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emw--color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}")}function ce(r,t,n){const i=r.slice();return i[70]=t[n],i}function ue(r,t,n){const i=r.slice();return i[73]=t[n],i}function Le(r){let t,n,i,l,a,o,d,u,W,j,F,h,p,A,x,z,B,T,k,w=e.ensure_array_like(r[18]),f=[];for(let c=0;c<w.length;c+=1)f[c]=pe(ue(r,w,c));function E(c,b){return c[19]?Pe:Re}let N=E(r),g=N(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("div");for(let c=0;c<f.length;c+=1)f[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),d=e.svg_element("svg"),u=e.svg_element("path"),j=e.space(),F=e.element("button"),h=e.svg_element("svg"),p=e.svg_element("path"),z=e.space(),g.c(),e.attr(i,"class","WinnerButtonsContainer"),e.attr(u,"style",W=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(u,"id","Path_36"),e.attr(u,"data-name","Path 36"),e.attr(u,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(u,"transform","translate(14.656 0) rotate(90)"),e.attr(u,"fill","#fff"),e.attr(d,"id","Component_46_2"),e.attr(d,"data-name","Component 46 – 2"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","15"),e.attr(d,"height","15"),e.attr(d,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(p,"style",A=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(p,"id","Path_36"),e.attr(p,"data-name","Path 36"),e.attr(p,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(p,"transform","translate(0 24.656) rotate(-90)"),e.attr(p,"fill","#fff"),e.attr(h,"id","Component_46_2"),e.attr(h,"data-name","Component 46 – 2"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"width","15"),e.attr(h,"height","15"),e.attr(h,"viewBox","0 0 16 24.656"),e.attr(F,"class","SliderButton"),e.attr(a,"class",x="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",B="CasinoWinners "+(r[14]?"Mobile":""))},m(c,b){e.insert(c,t,b),e.append(t,n),e.append(n,i);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(i,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,d),e.append(d,u),e.append(a,j),e.append(a,F),e.append(F,h),e.append(h,p),e.append(t,z),g.m(t,null),T||(k=[e.listen(o,"click",r[44]),e.listen(F,"click",r[45])],T=!0)},p(c,b){if(b[0]&6555651){w=e.ensure_array_like(c[18]);let m;for(m=0;m<w.length;m+=1){const M=ue(c,w,m);f[m]?f[m].p(M,b):(f[m]=pe(M),f[m].c(),f[m].m(i,null))}for(;m<f.length;m+=1)f[m].d(1);f.length=w.length}b[0]&12288&&W!==(W=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(u,"style",W),b[0]&12288&&A!==(A=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(p,"style",A),b[0]&64&&x!==(x="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",x),N===(N=E(c))&&g?g.p(c,b):(g.d(1),g=N(c),g&&(g.c(),g.m(t,null))),b[0]&16384&&B!==(B="CasinoWinners "+(c[14]?"Mobile":""))&&e.attr(t,"class",B)},d(c){c&&e.detach(t),e.destroy_each(f,c),g.d(),T=!1,e.run_all(k)}}}function Oe(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function de(r){let t,n=r[0]==="true"&&me(r);return{c(){n&&n.c(),t=e.empty()},m(i,l){n&&n.m(i,l),e.insert(i,t,l)},p(i,l){i[0]==="true"?n?n.p(i,l):(n=me(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&e.detach(t),n&&n.d(i)}}}function me(r){let t,n=r[21]("recentWinners")+"",i,l,a,o;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[11]=="recent"?"Active":""))},m(d,u){e.insert(d,t,u),e.append(t,i),a||(o=e.listen(t,"click",r[42]),a=!0)},p(d,u){u[0]&2097152&&n!==(n=d[21]("recentWinners")+"")&&e.set_data(i,n),u[0]&2048&&l!==(l="WinnersButton "+(d[11]=="recent"?"Active":""))&&e.attr(t,"class",l)},d(d){d&&e.detach(t),a=!1,o()}}}function fe(r){let t,n=r[21]("topWinners")+"",i,l,a,o,d;return{c(){t=e.element("button"),i=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[11]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(u,W){e.insert(u,t,W),e.append(t,i),e.append(t,l),o||(d=e.listen(t,"click",r[43]),o=!0)},p(u,W){W[0]&2097152&&n!==(n=u[21]("topWinners")+"")&&e.set_data(i,n),W[0]&2050&&a!==(a="WinnersButton "+(u[11]=="top"?"Active":"")+" "+(u[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(u){u&&e.detach(t),o=!1,d()}}}function pe(r){let t,n,i=r[73]=="recent"&&de(r),l=r[73]=="top"&&fe(r);return{c(){i&&i.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){i&&i.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?i?i.p(a,o):(i=de(a),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),a[73]=="top"?l?l.p(a,o):(l=fe(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),i&&i.d(a),l&&l.d(a)}}}function Re(r){let t;function n(a,o){return a[12].length!==0?De:Ge}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c(),e.attr(t,"class","WinnersSlider")},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Pe(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5]),e.set_custom_element_data(t,"mbsource",r[7])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),i[0]&128&&e.set_custom_element_data(t,"mbsource",n[7])},d(n){n&&e.detach(t)}}}function Ge(r){let t,n=r[21]("noWinnersMessage")+"",i;return{c(){t=e.element("p"),i=e.text(n),e.attr(t,"class","NoWinnersMessage")},m(l,a){e.insert(l,t,a),e.append(t,i)},p(l,a){a[0]&2097152&&n!==(n=l[21]("noWinnersMessage")+"")&&e.set_data(i,n)},d(l){l&&e.detach(t)}}}function De(r){let t,n=e.ensure_array_like(r[12]),i=[];for(let l=0;l<n.length;l+=1)i[l]=ge(ce(r,n,l));return{c(){for(let l=0;l<i.length;l+=1)i[l].c();t=e.empty()},m(l,a){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(l,a);e.insert(l,t,a)},p(l,a){if(a[0]&28446988){n=e.ensure_array_like(l[12]);let o;for(o=0;o<n.length;o+=1){const d=ce(l,n,o);i[o]?i[o].p(d,a):(i[o]=ge(d),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(i,l)}}}function ge(r){let t,n,i,l,a,o,d,u=r[70].gameName+"",W,j,F,h=r[23](r[70].username)+"",p,A,x,z=r[21]("won")+"",B,T,k,w=r[70].specifiedCurrencyAmount.toFixed(2)+"",f,E,N,g=(r[8]?r[3]:r[2])+"",c,b,m,M,_;function v(){return r[46](r[70])}return{c(){var L,C,O,R;t=e.element("div"),n=e.element("div"),i=e.element("img"),o=e.space(),d=e.element("p"),W=e.text(u),j=e.space(),F=e.element("p"),p=e.text(h),A=e.space(),x=e.element("p"),B=e.text(z),T=e.space(),k=e.element("p"),f=e.text(w),E=e.space(),N=e.element("span"),c=e.text(g),b=e.space(),e.src_url_equal(i.src,l=(C=(L=r[70])==null?void 0:L.gameModel)==null?void 0:C.thumbnail)||e.attr(i,"src",l),e.attr(i,"alt",a=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail),e.attr(i,"class","WinnersImage"),e.attr(x,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))},m(L,C){e.insert(L,t,C),e.append(t,n),e.append(n,i),e.append(n,o),e.append(n,d),e.append(d,W),e.append(n,j),e.append(n,F),e.append(F,p),e.append(n,A),e.append(n,x),e.append(x,B),e.append(n,T),e.append(n,k),e.append(k,f),e.append(k,E),e.append(k,N),e.append(N,c),e.append(t,b),r[47](t),M||(_=e.listen(i,"click",v),M=!0)},p(L,C){var O,R,S,G;r=L,C[0]&4096&&!e.src_url_equal(i.src,l=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail)&&e.attr(i,"src",l),C[0]&4096&&a!==(a=(G=(S=r[70])==null?void 0:S.gameModel)==null?void 0:G.thumbnail)&&e.attr(i,"alt",a),C[0]&4096&&u!==(u=r[70].gameName+"")&&e.set_data(W,u),C[0]&4096&&h!==(h=r[23](r[70].username)+"")&&e.set_data(p,h),C[0]&2097152&&z!==(z=r[21]("won")+"")&&e.set_data(B,z),C[0]&4096&&w!==(w=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(f,w),C[0]&268&&g!==(g=(r[8]?r[3]:r[2])+"")&&e.set_data(c,g),C[0]&131072&&m!==(m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))&&e.attr(t,"class",m)},d(L){L&&e.detach(t),r[47](null),M=!1,_()}}}function Ie(r){let t;function n(a,o){return a[15]||a[16]?Oe:Le}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[49](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[49](null)}}}function Ue(r,t,n){let i;e.component_subscribe(r,e.$format,s=>n(21,i=s));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:d="Today"}=t,{periodtop:u="Last7Days"}=t,{numberusersrecent:W="20"}=t,{numberuserstop:j="20"}=t,{amountlimit:F="1"}=t,{vendorCategory:h="All"}=t,{lang:p="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:x="true"}=t,{defaultcurrency:z=""}=t,{usercurrency:B=""}=t,{clientstyling:T=""}=t,{clientstylingurl:k=""}=t,{enableautoscroll:w=""}=t,{tabsorder:f=""}=t,{translationurl:E=""}=t,{winnersdatasources:N=""}=t,{hascustomstyling:g="false"}=t,{mbsource:c}=t,b,m,M=[],_=0,v=0,L=window.navigator.userAgent,C,O,R,S,G=!0,J=!1,X=!1,Y,D,V,I,Q=[],H=!1,U,$=0,ee;const be=()=>{let s=new URL(E);fetch(s.href).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{ae(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(oe).forEach(s=>{ae(s,oe[s])});const te=()=>{Q=N.split(",").map(function(y){return y.trim()});const s=new URL(`${l}/v1/casino/${m}-winners`);n(19,H=!0),s.searchParams.append("limit",m=="recent"?W:j),s.searchParams.append("specifiedCurrency",I),s.searchParams.append("period",m=="recent"?d:u),s.searchParams.append("language",p),s.searchParams.append("amountLimit",F),s.searchParams.append("vendorCategory",h),Q.forEach(y=>{s.searchParams.append("dataSource",y)}),setTimeout(()=>{fetch(s.href).then(y=>y.json()).then(y=>{n(12,M=[]),n(12,M=y.items.map(P=>P)),n(19,H=!1),setTimeout(()=>{we(),re(),w=="true"&&(clearInterval(D),We()),n(15,G=!1),_e()},5)})},1e3)},_e=()=>{const s=S.getRootNode().host;s.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:s}}))},K=s=>{m!==s&&(n(12,M=[]),n(11,m=s),te())},ye=s=>s.slice(0,2)+s.slice(2,-2).replace(/./g,"*")+s.slice(-2),ne=(s,y,P,q)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:s,launchUrl:y,gameName:P,subVendor:q},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"WinnersWidget",gameId:`${s}`,userId:`${R||"Not logged in"}`})},re=s=>{const y=[...b.children];Y=y.length,y.forEach((P,q)=>{P.style.transform=`translateX(${100*(s?q-s:q)}%)`}),setTimeout(()=>{n(17,X=!0)},10)},We=()=>{_=0,v<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},ie=()=>{re(_)},we=()=>{$=U.offsetWidth,n(13,v=Math.round(b.offsetWidth/$))},se=()=>{if(v>=M.length)return;const s=M.length;_===0?_=s-v:_-v<0?_=0:_=_-v,ie()},Z=()=>{if(v>=M.length)return;const s=M.length;w=="true"&&(_===s-v?_=0:_++),w=="false"&&(_===s-v?_=0:s-v<_+v?_=s-v:_+=v),ie()},ve=()=>{je(p)},Ce=()=>{n(8,O=!0),R=o},le=()=>{n(41,I=O?B:z)},ke=()=>{g==="true"&&(!T&&!k&&S&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!T&&k&&n(16,J=!0))},Me=()=>{n(18,V=f.split(",")),n(11,m=V[0]),le(),n(15,G=!1)};e.onMount(()=>(n(14,C=e.isMobile(L)),()=>{window.emMessageBus&&ee&&ee.unsubscribe(),clearInterval(D)}));const Fe=()=>K("recent"),Se=()=>K("top"),xe=()=>se(),Be=()=>Z(),Te=s=>ne(s.gameId,s.gameModel.launchUrl,s.gameModel.name,s.gameModel.subVendor);function Ne(s){e.binding_callbacks[s?"unshift":"push"](()=>{U=s,n(20,U)})}function ze(s){e.binding_callbacks[s?"unshift":"push"](()=>{b=s,n(10,b)})}function Ae(s){e.binding_callbacks[s?"unshift":"push"](()=>{S=s,n(9,S)})}return r.$$set=s=>{"endpoint"in s&&n(27,l=s.endpoint),"session"in s&&n(28,a=s.session),"userid"in s&&n(29,o=s.userid),"periodrecent"in s&&n(30,d=s.periodrecent),"periodtop"in s&&n(31,u=s.periodtop),"numberusersrecent"in s&&n(32,W=s.numberusersrecent),"numberuserstop"in s&&n(33,j=s.numberuserstop),"amountlimit"in s&&n(34,F=s.amountlimit),"vendorCategory"in s&&n(35,h=s.vendorCategory),"lang"in s&&n(36,p=s.lang),"isrecentavailable"in s&&n(0,A=s.isrecentavailable),"istopavailable"in s&&n(1,x=s.istopavailable),"defaultcurrency"in s&&n(2,z=s.defaultcurrency),"usercurrency"in s&&n(3,B=s.usercurrency),"clientstyling"in s&&n(4,T=s.clientstyling),"clientstylingurl"in s&&n(5,k=s.clientstylingurl),"enableautoscroll"in s&&n(6,w=s.enableautoscroll),"tabsorder"in s&&n(37,f=s.tabsorder),"translationurl"in s&&n(38,E=s.translationurl),"winnersdatasources"in s&&n(39,N=s.winnersdatasources),"hascustomstyling"in s&&n(40,g=s.hascustomstyling),"mbsource"in s&&n(7,c=s.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&1073741827|r.$$.dirty[1]&127&&A&&x&&d&&u&&W&&j&&F&&h&&p&&f&&Me(),r.$$.dirty[0]&268435456&&a&&Ce(),r.$$.dirty[0]&268&&O&&(B||z)&&le(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&1280&&l&&N&&I&&te(),r.$$.dirty[1]&32&&p&&ve(),r.$$.dirty[1]&128&&E&&be(),r.$$.dirty[1]&512&&g&&ke(),r.$$.dirty[0]&528&&T&&S&&e.setClientStyling(S,T),r.$$.dirty[0]&544&&k&&S&&e.setClientStylingURL(S,k),r.$$.dirty[0]&640&&S&&e.setStreamStyling(S,`${c}.Style`)},[A,x,z,B,T,k,w,c,O,S,b,m,M,v,C,G,J,X,V,H,U,i,K,ye,ne,se,Z,l,a,o,d,u,W,j,F,h,p,f,E,N,g,I,Fe,Se,xe,Be,Te,Ne,ze,Ae]}class he extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ue,Ie,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:34,vendorCategory:35,lang:36,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:37,translationurl:38,winnersdatasources:39,hascustomstyling:40,mbsource:7},Ee,[-1,-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[30]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[31]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[32]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[33]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[34]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[35]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[36]}set lang(t){this.$$set({lang:t}),e.flush()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(t){this.$$set({isrecentavailable:t}),e.flush()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(t){this.$$set({istopavailable:t}),e.flush()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[6]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[37]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[38]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[39]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[40]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(he,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{},mbsource:{}},[],[],!0);exports.default=he;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DqS7aKva.cjs");function le(r,t){e.addMessages(r,t)}function Ae(r){e.$locale.set(r)}const ae={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢",noWinnersMessage:"現在暫時沒有贏家!"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen",noWinnersMessage:"Zurzeit gibt es keine Gewinner!"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Non ci sono vincitori al momento!"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner",noWinnersMessage:"Il n’y a pas de gagnants pour le moment !"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores",noWinnersMessage:"No hay ganadores en este momento."},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε",noWinnersMessage:"Δεν υπάρχουν νικητές αυτή τη στιγμή!"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı",noWinnersMessage:"Şu anda kazanan yok!"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"В данный момент нет победителей!"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat",noWinnersMessage:"Nu există câștigători în acest moment!"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio",noWinnersMessage:"Trenutno nema pobjednika!"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert",noWinnersMessage:"Jelenleg nincsenek nyertesek!"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Obecnie nie ma żadnych zwycięzców!"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Trenutno nema pobednika!"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"There are no winners at the moment!"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar",noWinnersMessage:"Não há vencedores no momento!"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano",noWinnersMessage:"No hay ganadores en este momento."},"en-us":{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won",noWinnersMessage:"Currently there are no winners."}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-B-6s0l9d.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-1x13ubp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:320px;margin:0 auto}.CasinoWinners.Mobile{padding:25px 10px;height:250px}.WinnersHeader{display:flex;justify-content:space-between}.SliderButton{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px}.SliderButton.SliderButton:active{transform:translateY(1px)}.WinnerButtonsContainer{display:flex;margin-bottom:42px}.WinnersButton{border:none;background:none;color:var(--emw--casino-typography, var(--emw--color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));line-height:40px}.ButtonsContainerNone{display:none}.WinnersSlider{display:flex;justify-content:flex-start;position:relative;height:180px;overflow:hidden;-ms-overflow-style:none;scrollbar-width:none}.WinnersSlider::-webkit-scrollbar{display:none}.WinnersSlider .NoWinnersMessage{color:var(--emw--casino-typography, var(--emw--color-typography, #FFFFFF));font-size:var(--emw--font-size-medium, 16px)}.CardWrapper{position:absolute;top:0;left:0}.CardWrapperAnimation{transition:transform 2s}.WinnerCard{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;height:180px;min-width:191px;margin-bottom:30px;margin-right:30px}.WinnerCard p:first-of-type{color:var(--emw--color-gray-150, #828282);font-size:14px;inline-size:189px;overflow-wrap:break-word;text-align:center}.WinnerCard p:nth-child(3){text-align:center;color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:16px}.WinnerCard:hover{border:1px solid rgba(255, 255, 255, 0.4)}.WinnersImage{border-radius:5px;height:54px;margin-bottom:10px;width:80px;cursor:pointer}.Mobile .CasinoWinners{width:320px;max-width:320px}.Mobile .WinnersHeader{justify-content:flex-start}.Mobile .WinnersButton{font-size:18px;white-space:nowrap;margin-right:40px}.Mobile .WinnersButton:last-child{margin-right:0}.Mobile .WinnersButton.Active{padding-bottom:4px}.Mobile .WinnersSlider{overflow:scroll;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.Mobile .SliderButton{display:none}.Mobile .WinnerCard{width:140px;height:150px;min-width:140px;margin-right:12px}.Mobile .WinnerCard p:first-of-type{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;width:100px}.Mobile .WinnerCard p:nth-child(3){font-size:10px}.Mobile .WinnerCard p:nth-child(4){font-size:8px;font-weight:300;text-align:center}.Mobile .WinnerCard p:last-of-type{font-size:11px}.Mobile .WinnerButtonsContainer{margin-bottom:20px}")}function oe(r,t,n){const i=r.slice();return i[70]=t[n],i}function ce(r,t,n){const i=r.slice();return i[73]=t[n],i}function Ee(r){let t,n,i,l,a,o,d,u,W,j,F,h,p,A,x,z,B,T,k,w=e.ensure_array_like(r[18]),f=[];for(let c=0;c<w.length;c+=1)f[c]=fe(ce(r,w,c));function E(c,b){return c[19]?Re:Oe}let N=E(r),g=N(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("div");for(let c=0;c<f.length;c+=1)f[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),d=e.svg_element("svg"),u=e.svg_element("path"),j=e.space(),F=e.element("button"),h=e.svg_element("svg"),p=e.svg_element("path"),z=e.space(),g.c(),e.attr(i,"class","WinnerButtonsContainer"),e.attr(u,"style",W=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(u,"id","Path_36"),e.attr(u,"data-name","Path 36"),e.attr(u,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(u,"transform","translate(14.656 0) rotate(90)"),e.attr(u,"fill","#fff"),e.attr(d,"id","Component_46_2"),e.attr(d,"data-name","Component 46 – 2"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","15"),e.attr(d,"height","15"),e.attr(d,"viewBox","0 0 16 24.656"),e.attr(o,"class","SliderButton"),e.attr(p,"style",A=r[13]>=r[12].length?"fill:#F6F6F62E":""),e.attr(p,"id","Path_36"),e.attr(p,"data-name","Path 36"),e.attr(p,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(p,"transform","translate(0 24.656) rotate(-90)"),e.attr(p,"fill","#fff"),e.attr(h,"id","Component_46_2"),e.attr(h,"data-name","Component 46 – 2"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"width","15"),e.attr(h,"height","15"),e.attr(h,"viewBox","0 0 16 24.656"),e.attr(F,"class","SliderButton"),e.attr(a,"class",x="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",B="CasinoWinners "+(r[14]?"Mobile":""))},m(c,b){e.insert(c,t,b),e.append(t,n),e.append(n,i);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(i,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,d),e.append(d,u),e.append(a,j),e.append(a,F),e.append(F,h),e.append(h,p),e.append(t,z),g.m(t,null),T||(k=[e.listen(o,"click",r[44]),e.listen(F,"click",r[45])],T=!0)},p(c,b){if(b[0]&6555651){w=e.ensure_array_like(c[18]);let m;for(m=0;m<w.length;m+=1){const M=ce(c,w,m);f[m]?f[m].p(M,b):(f[m]=fe(M),f[m].c(),f[m].m(i,null))}for(;m<f.length;m+=1)f[m].d(1);f.length=w.length}b[0]&12288&&W!==(W=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(u,"style",W),b[0]&12288&&A!==(A=c[13]>=c[12].length?"fill:#F6F6F62E":"")&&e.attr(p,"style",A),b[0]&64&&x!==(x="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",x),N===(N=E(c))&&g?g.p(c,b):(g.d(1),g=N(c),g&&(g.c(),g.m(t,null))),b[0]&16384&&B!==(B="CasinoWinners "+(c[14]?"Mobile":""))&&e.attr(t,"class",B)},d(c){c&&e.detach(t),e.destroy_each(f,c),g.d(),T=!1,e.run_all(k)}}}function Le(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ue(r){let t,n=r[0]==="true"&&de(r);return{c(){n&&n.c(),t=e.empty()},m(i,l){n&&n.m(i,l),e.insert(i,t,l)},p(i,l){i[0]==="true"?n?n.p(i,l):(n=de(i),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(i){i&&e.detach(t),n&&n.d(i)}}}function de(r){let t,n=r[21]("recentWinners")+"",i,l,a,o;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[11]=="recent"?"Active":""))},m(d,u){e.insert(d,t,u),e.append(t,i),a||(o=e.listen(t,"click",r[42]),a=!0)},p(d,u){u[0]&2097152&&n!==(n=d[21]("recentWinners")+"")&&e.set_data(i,n),u[0]&2048&&l!==(l="WinnersButton "+(d[11]=="recent"?"Active":""))&&e.attr(t,"class",l)},d(d){d&&e.detach(t),a=!1,o()}}}function me(r){let t,n=r[21]("topWinners")+"",i,l,a,o,d;return{c(){t=e.element("button"),i=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[11]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(u,W){e.insert(u,t,W),e.append(t,i),e.append(t,l),o||(d=e.listen(t,"click",r[43]),o=!0)},p(u,W){W[0]&2097152&&n!==(n=u[21]("topWinners")+"")&&e.set_data(i,n),W[0]&2050&&a!==(a="WinnersButton "+(u[11]=="top"?"Active":"")+" "+(u[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(u){u&&e.detach(t),o=!1,d()}}}function fe(r){let t,n,i=r[73]=="recent"&&ue(r),l=r[73]=="top"&&me(r);return{c(){i&&i.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){i&&i.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?i?i.p(a,o):(i=ue(a),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),a[73]=="top"?l?l.p(a,o):(l=me(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),i&&i.d(a),l&&l.d(a)}}}function Oe(r){let t;function n(a,o){return a[12].length!==0?Ge:Pe}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c(),e.attr(t,"class","WinnersSlider")},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[4]),e.set_custom_element_data(t,"clientstylingurl",r[5]),e.set_custom_element_data(t,"mbsource",r[7])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),i[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5]),i[0]&128&&e.set_custom_element_data(t,"mbsource",n[7])},d(n){n&&e.detach(t)}}}function Pe(r){let t,n=r[21]("noWinnersMessage")+"",i;return{c(){t=e.element("p"),i=e.text(n),e.attr(t,"class","NoWinnersMessage")},m(l,a){e.insert(l,t,a),e.append(t,i)},p(l,a){a[0]&2097152&&n!==(n=l[21]("noWinnersMessage")+"")&&e.set_data(i,n)},d(l){l&&e.detach(t)}}}function Ge(r){let t,n=e.ensure_array_like(r[12]),i=[];for(let l=0;l<n.length;l+=1)i[l]=pe(oe(r,n,l));return{c(){for(let l=0;l<i.length;l+=1)i[l].c();t=e.empty()},m(l,a){for(let o=0;o<i.length;o+=1)i[o]&&i[o].m(l,a);e.insert(l,t,a)},p(l,a){if(a[0]&28446988){n=e.ensure_array_like(l[12]);let o;for(o=0;o<n.length;o+=1){const d=oe(l,n,o);i[o]?i[o].p(d,a):(i[o]=pe(d),i[o].c(),i[o].m(t.parentNode,t))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(i,l)}}}function pe(r){let t,n,i,l,a,o,d,u=r[70].gameName+"",W,j,F,h=r[23](r[70].username)+"",p,A,x,z=r[21]("won")+"",B,T,k,w=r[70].specifiedCurrencyAmount.toFixed(2)+"",f,E,N,g=(r[8]?r[3]:r[2])+"",c,b,m,M,_;function v(){return r[46](r[70])}return{c(){var L,C,O,R;t=e.element("div"),n=e.element("div"),i=e.element("img"),o=e.space(),d=e.element("p"),W=e.text(u),j=e.space(),F=e.element("p"),p=e.text(h),A=e.space(),x=e.element("p"),B=e.text(z),T=e.space(),k=e.element("p"),f=e.text(w),E=e.space(),N=e.element("span"),c=e.text(g),b=e.space(),e.src_url_equal(i.src,l=(C=(L=r[70])==null?void 0:L.gameModel)==null?void 0:C.thumbnail)||e.attr(i,"src",l),e.attr(i,"alt",a=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail),e.attr(i,"class","WinnersImage"),e.attr(x,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))},m(L,C){e.insert(L,t,C),e.append(t,n),e.append(n,i),e.append(n,o),e.append(n,d),e.append(d,W),e.append(n,j),e.append(n,F),e.append(F,p),e.append(n,A),e.append(n,x),e.append(x,B),e.append(n,T),e.append(n,k),e.append(k,f),e.append(k,E),e.append(k,N),e.append(N,c),e.append(t,b),r[47](t),M||(_=e.listen(i,"click",v),M=!0)},p(L,C){var O,R,S,G;r=L,C[0]&4096&&!e.src_url_equal(i.src,l=(R=(O=r[70])==null?void 0:O.gameModel)==null?void 0:R.thumbnail)&&e.attr(i,"src",l),C[0]&4096&&a!==(a=(G=(S=r[70])==null?void 0:S.gameModel)==null?void 0:G.thumbnail)&&e.attr(i,"alt",a),C[0]&4096&&u!==(u=r[70].gameName+"")&&e.set_data(W,u),C[0]&4096&&h!==(h=r[23](r[70].username)+"")&&e.set_data(p,h),C[0]&2097152&&z!==(z=r[21]("won")+"")&&e.set_data(B,z),C[0]&4096&&w!==(w=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(f,w),C[0]&268&&g!==(g=(r[8]?r[3]:r[2])+"")&&e.set_data(c,g),C[0]&131072&&m!==(m="CardWrapper "+(r[17]?"CardWrapperAnimation":""))&&e.attr(t,"class",m)},d(L){L&&e.detach(t),r[47](null),M=!1,_()}}}function De(r){let t;function n(a,o){return a[15]||a[16]?Le:Ee}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[49](t)},p(a,o){i===(i=n(a))&&l?l.p(a,o):(l.d(1),l=i(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[49](null)}}}function Ie(r,t,n){let i;e.component_subscribe(r,e.$format,s=>n(21,i=s));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:d="Today"}=t,{periodtop:u="Last7Days"}=t,{numberusersrecent:W="20"}=t,{numberuserstop:j="20"}=t,{amountlimit:F="1"}=t,{vendorCategory:h="All"}=t,{lang:p="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:x="true"}=t,{defaultcurrency:z=""}=t,{usercurrency:B=""}=t,{clientstyling:T=""}=t,{clientstylingurl:k=""}=t,{enableautoscroll:w=""}=t,{tabsorder:f=""}=t,{translationurl:E=""}=t,{winnersdatasources:N=""}=t,{hascustomstyling:g="false"}=t,{mbsource:c}=t,b,m,M=[],_=0,v=0,L=window.navigator.userAgent,C,O,R,S,G=!0,J=!1,X=!1,Y,D,V,I,Q=[],H=!1,U,$=0;const he=()=>{let s=new URL(E);fetch(s.href).then(y=>y.json()).then(y=>{Object.keys(y).forEach(P=>{le(P,y[P])})}).catch(y=>{console.log(y)})};Object.keys(ae).forEach(s=>{le(s,ae[s])});const ee=()=>{Q=N.split(",").map(function(y){return y.trim()});const s=new URL(`${l}/v1/casino/${m}-winners`);n(19,H=!0),s.searchParams.append("limit",m=="recent"?W:j),s.searchParams.append("specifiedCurrency",I),s.searchParams.append("period",m=="recent"?d:u),s.searchParams.append("language",p),s.searchParams.append("amountLimit",F),s.searchParams.append("vendorCategory",h),Q.forEach(y=>{s.searchParams.append("dataSource",y)}),setTimeout(()=>{fetch(s.href).then(y=>y.json()).then(y=>{n(12,M=[]),n(12,M=y.items.map(P=>P)),n(19,H=!1),setTimeout(()=>{We(),ne(),w=="true"&&(clearInterval(D),ye()),n(15,G=!1),be()},5)})},1e3)},be=()=>{const s=S.getRootNode().host;s.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:s}}))},K=s=>{m!==s&&(n(12,M=[]),n(11,m=s),ee())},_e=s=>s.slice(0,2)+s.slice(2,-2).replace(/./g,"*")+s.slice(-2),te=(s,y,P,q)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:s,launchUrl:y,gameName:P,subVendor:q},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"WinnersWidget",gameId:`${s}`,userId:`${R||"Not logged in"}`})},ne=s=>{const y=[...b.children];Y=y.length,y.forEach((P,q)=>{P.style.transform=`translateX(${100*(s?q-s:q)}%)`}),setTimeout(()=>{n(17,X=!0)},10)},ye=()=>{_=0,v<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},re=()=>{ne(_)},We=()=>{$=U.offsetWidth,n(13,v=Math.round(b.offsetWidth/$))},ie=()=>{if(v>=M.length)return;const s=M.length;_===0?_=s-v:_-v<0?_=0:_=_-v,re()},Z=()=>{if(v>=M.length)return;const s=M.length;w=="true"&&(_===s-v?_=0:_++),w=="false"&&(_===s-v?_=0:s-v<_+v?_=s-v:_+=v),re()},we=()=>{Ae(p)},ve=()=>{n(8,O=!0),R=o},se=()=>{n(41,I=O?B:z)},Ce=()=>{g==="true"&&(!T&&!k&&S&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!T&&k&&n(16,J=!0))},ke=()=>{n(18,V=f.split(",")),n(11,m=V[0]),se(),n(15,G=!1)};e.onMount(()=>(n(14,C=e.isMobile(L)),()=>{clearInterval(D)}));const Me=()=>K("recent"),Fe=()=>K("top"),Se=()=>ie(),xe=()=>Z(),Be=s=>te(s.gameId,s.gameModel.launchUrl,s.gameModel.name,s.gameModel.subVendor);function Te(s){e.binding_callbacks[s?"unshift":"push"](()=>{U=s,n(20,U)})}function Ne(s){e.binding_callbacks[s?"unshift":"push"](()=>{b=s,n(10,b)})}function ze(s){e.binding_callbacks[s?"unshift":"push"](()=>{S=s,n(9,S)})}return r.$$set=s=>{"endpoint"in s&&n(27,l=s.endpoint),"session"in s&&n(28,a=s.session),"userid"in s&&n(29,o=s.userid),"periodrecent"in s&&n(30,d=s.periodrecent),"periodtop"in s&&n(31,u=s.periodtop),"numberusersrecent"in s&&n(32,W=s.numberusersrecent),"numberuserstop"in s&&n(33,j=s.numberuserstop),"amountlimit"in s&&n(34,F=s.amountlimit),"vendorCategory"in s&&n(35,h=s.vendorCategory),"lang"in s&&n(36,p=s.lang),"isrecentavailable"in s&&n(0,A=s.isrecentavailable),"istopavailable"in s&&n(1,x=s.istopavailable),"defaultcurrency"in s&&n(2,z=s.defaultcurrency),"usercurrency"in s&&n(3,B=s.usercurrency),"clientstyling"in s&&n(4,T=s.clientstyling),"clientstylingurl"in s&&n(5,k=s.clientstylingurl),"enableautoscroll"in s&&n(6,w=s.enableautoscroll),"tabsorder"in s&&n(37,f=s.tabsorder),"translationurl"in s&&n(38,E=s.translationurl),"winnersdatasources"in s&&n(39,N=s.winnersdatasources),"hascustomstyling"in s&&n(40,g=s.hascustomstyling),"mbsource"in s&&n(7,c=s.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&1073741827|r.$$.dirty[1]&127&&A&&x&&d&&u&&W&&j&&F&&h&&p&&f&&ke(),r.$$.dirty[0]&268435456&&a&&ve(),r.$$.dirty[0]&268&&O&&(B||z)&&se(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&1280&&l&&N&&I&&ee(),r.$$.dirty[1]&32&&p&&we(),r.$$.dirty[1]&128&&E&&he(),r.$$.dirty[1]&512&&g&&Ce(),r.$$.dirty[0]&528&&T&&S&&e.setClientStyling(S,T),r.$$.dirty[0]&544&&k&&S&&e.setClientStylingURL(S,k),r.$$.dirty[0]&640&&S&&e.setStreamStyling(S,`${c}.Style`)},[A,x,z,B,T,k,w,c,O,S,b,m,M,v,C,G,J,X,V,H,U,i,K,_e,te,ie,Z,l,a,o,d,u,W,j,F,h,p,f,E,N,g,I,Me,Fe,Se,xe,Be,Te,Ne,ze]}class ge extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ie,De,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:34,vendorCategory:35,lang:36,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:37,translationurl:38,winnersdatasources:39,hascustomstyling:40,mbsource:7},je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[27]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[30]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[31]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[32]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[33]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[34]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[35]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[36]}set lang(t){this.$$set({lang:t}),e.flush()}get isrecentavailable(){return this.$$.ctx[0]}set isrecentavailable(t){this.$$set({isrecentavailable:t}),e.flush()}get istopavailable(){return this.$$.ctx[1]}set istopavailable(t){this.$$set({istopavailable:t}),e.flush()}get defaultcurrency(){return this.$$.ctx[2]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[3]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[6]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[37]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[38]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[39]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[40]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(ge,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{},mbsource:{}},[],[],!0);exports.default=ge;
|
package/components/{GeneralAnimationLoading-CURVDkRT.js → GeneralAnimationLoading-8TvNjXay.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { S as u, i as f,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, I as x, J as _, K as S, L as C } from "./CasinoCalendar-BYTytQgJ.js";
|
|
2
|
+
function k(t) {
|
|
3
|
+
g(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;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
i =
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
10
|
},
|
|
11
11
|
m(n, l) {
|
|
12
|
-
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
13
|
},
|
|
14
14
|
p: d,
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function j(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
b(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function j(t, i, n) {
|
|
|
32
32
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
33
33
|
}, t.$$.update = () => {
|
|
34
34
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && l && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && r && s &&
|
|
35
|
+
3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && r && s && S(s, `${r}.Style`);
|
|
38
38
|
}, [
|
|
39
39
|
s,
|
|
40
40
|
l,
|
|
@@ -43,20 +43,20 @@ function j(t, i, n) {
|
|
|
43
43
|
o
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class w extends u {
|
|
47
47
|
constructor(i) {
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
51
|
j,
|
|
52
52
|
L,
|
|
53
|
-
|
|
53
|
+
m,
|
|
54
54
|
{
|
|
55
55
|
clientstyling: 1,
|
|
56
56
|
clientstylingurl: 2,
|
|
57
57
|
mbsource: 3
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
k
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
get clientstyling() {
|
|
@@ -78,7 +78,7 @@ class q extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
w as default
|
|
84
84
|
};
|
package/components/{GeneralAnimationLoading-Bl6_sP-d.cjs → GeneralAnimationLoading-B-6s0l9d.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-DqS7aKva.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-uswxvfCW.js → GeneralAnimationLoading-Bbxdne1m.js}
RENAMED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { S as u, i as f,
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { S as u, i as f, s as m, f as c, b as g, n as d, d as y, h, j as p, o as b, C as v, I as x, J as _, K as S, L as C } from "./CasinoCalendar-CI-C6zUY.js";
|
|
2
|
+
function k(t) {
|
|
3
|
+
g(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;
|
|
7
7
|
return {
|
|
8
8
|
c() {
|
|
9
|
-
i =
|
|
9
|
+
i = p("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
10
10
|
},
|
|
11
11
|
m(n, l) {
|
|
12
|
-
|
|
12
|
+
h(n, i, l), t[4](i);
|
|
13
13
|
},
|
|
14
14
|
p: d,
|
|
15
15
|
i: d,
|
|
16
16
|
o: d,
|
|
17
17
|
d(n) {
|
|
18
|
-
n &&
|
|
18
|
+
n && y(i), t[4](null);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function j(t, i, n) {
|
|
23
23
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s;
|
|
24
|
-
|
|
24
|
+
b(() => () => {
|
|
25
25
|
});
|
|
26
26
|
function o(e) {
|
|
27
|
-
|
|
27
|
+
v[e ? "unshift" : "push"](() => {
|
|
28
28
|
s = e, n(0, s);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -32,9 +32,9 @@ function j(t, i, n) {
|
|
|
32
32
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
33
33
|
}, t.$$.update = () => {
|
|
34
34
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
35
|
-
3 && l && s &&
|
|
36
|
-
5 && a && s &&
|
|
37
|
-
9 && r && s &&
|
|
35
|
+
3 && l && s && x(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
36
|
+
5 && a && s && _(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
37
|
+
9 && r && s && S(s, `${r}.Style`);
|
|
38
38
|
}, [
|
|
39
39
|
s,
|
|
40
40
|
l,
|
|
@@ -43,20 +43,20 @@ function j(t, i, n) {
|
|
|
43
43
|
o
|
|
44
44
|
];
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class w extends u {
|
|
47
47
|
constructor(i) {
|
|
48
48
|
super(), f(
|
|
49
49
|
this,
|
|
50
50
|
i,
|
|
51
51
|
j,
|
|
52
52
|
L,
|
|
53
|
-
|
|
53
|
+
m,
|
|
54
54
|
{
|
|
55
55
|
clientstyling: 1,
|
|
56
56
|
clientstylingurl: 2,
|
|
57
57
|
mbsource: 3
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
k
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
62
|
get clientstyling() {
|
|
@@ -78,7 +78,7 @@ class q extends u {
|
|
|
78
78
|
this.$$set({ mbsource: i }), c();
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
C(w, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
82
82
|
export {
|
|
83
|
-
|
|
83
|
+
w as default
|
|
84
84
|
};
|
package/es2015/casino-lobby.cjs
CHANGED
|
@@ -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/CasinoLobby-
|
|
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/CasinoLobby-os94WdnE.cjs")).then(({default:t})=>{!customElements.get("casino-lobby")&&customElements.define("casino-lobby",t.element)})}
|
package/es2015/casino-lobby.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoLobby-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoLobby-DUI1Ki3q.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-lobby") && customElements.define("casino-lobby", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/casino-lobby.js
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-
|
|
1
|
+
import { b as p, p as g, r as u, c as f, h as i, g as w } from "./index-ab3202d6-hGs51skN.js";
|
|
2
2
|
import { g as y } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
3
3
|
var x = () => {
|
|
4
4
|
const n = import.meta.url, e = {};
|
|
@@ -458,7 +458,7 @@ const R = `:host {
|
|
|
458
458
|
}
|
|
459
459
|
}`, C = R, k = class {
|
|
460
460
|
constructor(n) {
|
|
461
|
-
u(this, n), this.dataLoaded = f(this, "data-loaded"
|
|
461
|
+
u(this, n), this.dataLoaded = f(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
462
462
|
let t = e.length, a;
|
|
463
463
|
for (; t !== 0; )
|
|
464
464
|
a = Math.floor(Math.random() * t), t--, [e[t], e[a]] = [e[a], e[t]];
|
package/stencil/{casino-play-random-game-CKM_xKne.cjs → casino-play-random-game-CdZKN03s.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ab3202d6-
|
|
1
|
+
"use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ab3202d6-C1hgKWrC.cjs"),x=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var p=typeof document!="undefined"?document.currentScript:null,b=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/casino-play-random-game-CdZKN03s.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),i.promiseResolve(e)};b().then(n=>g(exports,null,function*(){return yield x.globalScripts(),i.bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const G=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},v="en",l={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:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{l[t]||(l[t]={});for(let o in a[t])l[t][o]=a[t][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:v][n]};function f(n,e){if(n){const a=document.createElement("style");a.innerHTML=e,n.appendChild(a)}}function w(n,e){const a=new URL(e);fetch(a.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function R(n,e,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,o=>{t.innerHTML=o,n&&n.appendChild(t)})}}const C=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -368,4 +368,4 @@
|
|
|
368
368
|
width: 70px;
|
|
369
369
|
height: 85px;
|
|
370
370
|
}
|
|
371
|
-
}`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.dataLoaded=i.createEvent(this,"data-loaded"
|
|
371
|
+
}`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.dataLoaded=i.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,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 n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),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 i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;
|
|
@@ -14,7 +14,7 @@ var p = (n, e, a) => new Promise((t, o) => {
|
|
|
14
14
|
}, c = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(m, d);
|
|
15
15
|
c((a = a.apply(n, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { b as w, p as y, r as x, c as b, h as i, g as G } from "./index-ab3202d6-
|
|
17
|
+
import { b as w, p as y, r as x, c as b, h as i, g as G } from "./index-ab3202d6-OPh7hJp9.js";
|
|
18
18
|
import { g as v } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
19
19
|
var R = () => {
|
|
20
20
|
const n = import.meta.url, e = {};
|
|
@@ -476,7 +476,7 @@ const L = `:host {
|
|
|
476
476
|
}
|
|
477
477
|
}`, F = L, I = class {
|
|
478
478
|
constructor(n) {
|
|
479
|
-
x(this, n), this.dataLoaded = b(this, "data-loaded"
|
|
479
|
+
x(this, n), this.dataLoaded = b(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (e) => {
|
|
480
480
|
let a = e.length, t;
|
|
481
481
|
for (; a !== 0; )
|
|
482
482
|
t = Math.floor(Math.random() * a), a--, [e[a], e[t]] = [e[t], e[a]];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var P=(e,t,n)=>new Promise((s,r)=>{var a=o=>{try{i(n.next(o))}catch($){r($)}},l=o=>{try{i(n.throw(o))}catch($){r($)}},i=o=>o.done?s(o.value):Promise.resolve(o.value).then(a,l);i((n=n.apply(e,t)).next())});const Se="casino-play-random-game",Ee={hydratedSelectorName:"hydrated"};var ke=Object.defineProperty,be=(e,t)=>{for(var n in t)ke(e,n,{get:t[n],enumerable:!0})},R=new WeakMap,E=e=>R.get(e),we=(e,t)=>R.set(t.$lazyInstance$=e,t),Te=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],R.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),z=new Map,Pe=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const a=z.get(r);if(a)return a[s];{const l=i=>(z.set(r,i),i[s]);switch(r){case"casino-play-random-game":return Promise.resolve().then(()=>require("./casino-play-random-game-CdZKN03s.cjs")).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(z.set(r,l),l[s]),b)},L=new Map,xe="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.document||{head:{}},h={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),_e=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,X=[],se=[],Ae=(e,t)=>n=>{e.push(n),U||(U=!0,h.$flags$&4?D(C):h.raf(C))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},C=()=>{Y(X),Y(se),(U=X.length>0)&&h.raf(C)},D=e=>te().then(e),Le=Ae(se),J={},Ie=e=>e!=null,M=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var je={};be(je,{err:()=>re,map:()=>Oe,ok:()=>H,unwrap:()=>ze,unwrapErr:()=>Ue});var H=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Oe(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>H(s)):H(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var ze=e=>{if(e.isOk)return e.value;throw e.value},Ue=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},Ce=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,a=!1,l=!1;const i=[],o=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?o(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!M(s))&&(s=String(s)),a&&l?i[i.length-1].$text$+=s:i.push(a?B(null,s):s),l=a)};if(o(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=B(e,null);return $.$attrs$=t,i.length>0&&($.$children$=i),$.$key$=r,$},B=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},He={},Be=e=>e&&e.$tag$===He,qe=(e,t)=>e!=null&&!M(e)&&t&1?String(e):e,ae=e=>E(e).$hostElement$,Re=(e,t,n)=>{const s=ae(e);return{emit:r=>oe(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},oe=(e,t,n)=>{const s=h.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,De=(e,t,n)=>{let s=L.get(e);_e&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,L.set(e,s)},Me=(e,t,n)=>{var s;const r=ie(t),a=L.get(r);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=K.get(e),i;if(l||K.set(e,l=new Set),!l.has(r)){{i=m.createElement("style"),i.innerHTML=a;const o=(s=h.$nonce$)!=null?s:ne(m);o!=null&&i.setAttribute("nonce",o),e.insertBefore(i,e.querySelector("link"))}t.$flags$&4&&(i.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return r},We=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=S("attachStyles",t.$tagName$),a=Me(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=a,n.classList.add(a+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,a)=>{if(n!==s){let l=G(e,t),i=t.toLowerCase();if(t==="class"){const o=e.classList,$=Z(n),c=Z(s);o.remove(...$.filter(f=>f&&!c.includes(f))),o.add(...c.filter(f=>f&&!$.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(j,i)?t=i.slice(2):t=i[2]+t.slice(3),n||s){const o=t.endsWith($e);t=t.replace(Ge,""),n&&h.rel(e,t,n,o),s&&h.ael(e,t,s,o)}}else{const o=M(s);if(l||o&&s!==null)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||r)&&!o&&(s=s===!0?"":s,e.setAttribute(t,s))}}},Fe=/\s/,Z=e=>e?e.split(Fe):[],$e="Capture",Ge=new RegExp($e+"$"),ce=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,a=t.$attrs$||J;for(const l of N(Object.keys(r)))l in a||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(a)))Q(s,l,r[l],a[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var _,W,fe=!1,I=(e,t,n,s)=>{const r=t.$children$[n];let a=0,l,i;if(r.$text$!==null)l=r.$elm$=m.createTextNode(r.$text$);else if(l=r.$elm$=m.createElement(r.$tag$),ce(null,r,fe),Ie(_)&&l["s-si"]!==_&&l.classList.add(l["s-si"]=_),r.$children$)for(a=0;a<r.$children$.length;++a)i=I(e,r,a),i&&l.appendChild(i);return l["s-hn"]=W,l},ue=(e,t,n,s,r,a)=>{let l=e,i;for(l.shadowRoot&&l.tagName===W&&(l=l.shadowRoot);r<=a;++r)s[r]&&(i=I(null,n,r),i&&(s[r].$elm$=i,A(l,i,t)))},de=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const a=r.$elm$;ve(r),a&&a.remove()}}},Xe=(e,t,n,s,r=!1)=>{let a=0,l=0,i=0,o=0,$=t.length-1,c=t[0],f=t[$],u=s.length-1,d=s[0],v=s[u],p,y;for(;a<=$&&l<=u;)if(c==null)c=t[++a];else if(f==null)f=t[--$];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(x(c,d,r))w(c,d,r),c=t[++a],d=s[++l];else if(x(f,v,r))w(f,v,r),f=t[--$],v=s[--u];else if(x(c,v,r))w(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++a],v=s[--u];else if(x(f,d,r))w(f,d,r),A(e,f.$elm$,c.$elm$),f=t[--$],d=s[++l];else{for(i=-1,o=a;o<=$;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===d.$key$){i=o;break}i>=0?(y=t[i],y.$tag$!==d.$tag$?p=I(t&&t[l],n,i):(w(y,d,r),t[i]=void 0,p=y.$elm$),d=s[++l]):(p=I(t&&t[l],n,l),d=s[++l]),p&&A(c.$elm$.parentNode,p,c.$elm$)}a>$?ue(e,s[u+1]==null?null:s[u+1].$elm$,n,s,l,u):l>u&&de(t,a,$)},x=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,w=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,l=t.$text$;l===null?(ce(e,t,fe),r!==null&&a!==null?Xe(s,r,t,a,n):a!==null?(e.$text$!==null&&(s.textContent=""),ue(s,null,t,a,0,a.length-1)):r!==null&&de(r,0,r.length-1)):e.$text$!==l&&(s.data=l)},ve=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ve)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Ye=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,a=e.$vnode$||B(null,null),l=Be(t)?t:le(null,null,t);if(W=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([i,o])=>l.$attrs$[o]=s[i])),n&&l.$attrs$)for(const i of Object.keys(l.$attrs$))s.hasAttribute(i)&&!["key","ref","style","class"].includes(i)&&(l.$attrs$[i]=s[i]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,_=s["s-sc"],r.$flags$&1,w(a,l,n)},pe=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},F=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return pe(e,e.$ancestorComponent$),Le(()=>Je(e,t))},Je=(e,t)=>{const n=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=O(r,"componentWillLoad")),s(),Ke(a,()=>Ze(e,r,t))},Ke=(e,t)=>Qe(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Qe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ze=(e,t,n)=>P(exports,null,function*(){var s;const r=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&We(e);const i=S("render",e.$cmpMeta$.$tagName$);Ne(e,t,r,n),l&&(l.map(o=>o()),r["s-rc"]=void 0),i(),a();{const o=(s=r["s-p"])!=null?s:[],$=()=>Ve(e);o.length===0?$():(Promise.all(o).then($),e.$flags$|=4,o.length=0)}}),Ne=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ye(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ve=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=S("postUpdate",t),r=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),O(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),a||he()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&D(()=>F(e,!1)),e.$flags$&=-517},he=e=>{ge(m.documentElement),D(()=>oe(j,"appload",{detail:{namespace:Se}}))},O=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=Ee.hydratedSelectorName)!=null?t:"hydrated")},et=(e,t)=>E(e).$instanceValues$.get(t),tt=(e,t,n,s)=>{const r=E(e);if(!r)throw new Error(`Couldn't find host element for "${s.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const a=r.$hostElement$,l=r.$instanceValues$.get(t),i=r.$flags$,o=r.$lazyInstance$;n=qe(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(i&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),o)){if(s.$watchers$&&i&128){const f=s.$watchers$[t];f&&f.map(u=>{try{o[u](n,l,t)}catch(d){b(d,a)}})}(i&18)===2&&F(r,!1)}},ye=(e,t,n)=>{var s,r;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([i,[o]])=>{(o&31||n&2&&o&32)&&Object.defineProperty(a,i,{get(){return et(this,i)},set($){tt(this,i,$,t)},configurable:!0,enumerable:!0})}),n&1){const i=new Map;a.attributeChangedCallback=function(o,$,c){h.jmp(()=>{var f;const u=i.get(o);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(a.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const p=d.$lazyInstance$,y=(f=t.$watchers$)==null?void 0:f[o];y==null||y.forEach(g=>{p[g]!=null&&p[g].call(p,c,$,o)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([o,$])=>$[0]&15).map(([o,$])=>{var c;const f=$[1]||o;return i.set(f,o),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([o,f])),f})]))}}return e},st=(e,t,n,s)=>P(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const o=Pe(n);if(o&&"then"in o){const c=Ce();r=yield o,c()}else r=o;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,ye(r,n,2),r.isProxied=!0);const $=S("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$(),q(t.$lazyInstance$)}else{r=e.constructor;const o=e.localName;customElements.whenDefined(o).then(()=>t.$flags$|=128)}if(r&&r.style){let o;typeof r.style=="string"&&(o=r.style);const $=ie(n);if(!L.has($)){const c=S("registerStyles",n.$tagName$);De($,o,!!(n.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>F(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),q=e=>{O(e,"connectedCallback")},nt=e=>{if(!(h.$flags$&1)){const t=E(e),n=t.$cmpMeta$,s=S("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$?q(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>q(t.$lazyInstance$));else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){pe(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[a]])=>{if(a&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),st(e,t,n)}s()}},V=e=>{O(e,"disconnectedCallback")},rt=e=>P(exports,null,function*(){if(!(h.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=S(),r=[],a=t.exclude||[],l=j.customElements,i=m.head,o=i.querySelector("meta[charset]"),$=m.createElement("style"),c=[];let f,u=!0;Object.assign(h,t),h.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(p=>{var y;const g={$flags$:p[0],$tagName$:p[1],$members$:p[2],$listeners$:p[3]};g.$flags$&4&&(d=!0),g.$members$=p[2],g.$attrsToReflect$=[],g.$watchers$=(y=p[4])!=null?y:{};const T=g.$tagName$,me=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,Te(k,g),g.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):h.jmp(()=>nt(this))}disconnectedCallback(){h.jmp(()=>rt(this))}componentOnReady(){return E(this).$onReadyPromise$}};g.$lazyBundleId$=v[0],!a.includes(T)&&!l.get(T)&&(r.push(T),l.define(T,ye(me,g,1)))})}),r.length>0&&(d&&($.textContent+=ee),$.textContent+=r.sort()+xe,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=h.$nonce$)!=null?n:ne(m);v!=null&&$.setAttribute("nonce",v),i.insertBefore($,o?o.nextSibling:i.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):h.jmp(()=>f=setTimeout(he,30)),s()};exports.bootstrapLazy=lt;exports.createEvent=Re;exports.getElement=ae;exports.h=le;exports.promiseResolve=te;exports.registerInstance=we;
|