@everymatrix/casino-lobby 1.85.21 → 1.85.23
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/{CasinoLobby-CFSpJTsL.js → CasinoLobby-Bc2QHTe4.js} +1 -1
- package/components/{CasinoLobby-Dx1uQVaB.js → CasinoLobby-Bkj4ZQu6.js} +1 -1
- package/components/{CasinoLobby-C1Mn5fog.cjs → CasinoLobby-Cs6HmQRu.cjs} +1 -1
- package/components/{CasinoPage-CJwNAZ8N.cjs → CasinoPage-BzASY7Hg.cjs} +1 -1
- package/components/{CasinoPage-D_FruAge.js → CasinoPage-CUUEVdPt.js} +1 -1
- package/components/{CasinoPage-Ct2goZ1h.js → CasinoPage-Dg5sPuQa.js} +1 -1
- package/components/{CasinoWinners-B-X5vWfM.js → CasinoWinners-CDQfWIM6.js} +262 -257
- package/components/CasinoWinners-CxuidCR1.cjs +1 -0
- package/components/{CasinoWinners-CJEwkKws.js → CasinoWinners-DAW-pGRt.js} +224 -219
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/components/CasinoWinners-Dv6vK4Ko.cjs +0 -1
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-Cs6HmQRu.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-Bkj4ZQu6.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 +0,0 @@
|
|
|
1
|
-
"use strict";var J=(r,t,n)=>new Promise((i,l)=>{var o=c=>{try{u(n.next(c))}catch(h){l(h)}},a=c=>{try{u(n.throw(c))}catch(h){l(h)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,a);u((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CDybCkBw.cjs");function oe(r,t){e.addMessages(r,t)}function Le(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-CFokXkWs.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function Oe(r){e.append_styles(r,"svelte-d1flp7","*,*::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, #22B04E));line-height:40px}.WinnersButton:focus{color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #22B04E;padding-bottom:10px;color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E))}.WinnersButton.Active{border-bottom:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--casino-color-primary, var(--emw--color-primary, #22B04E));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, #22B04E));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[72]=t[n],i}function ue(r,t,n){const i=r.slice();return i[75]=t[n],i}function Re(r){let t,n,i,l,o,a,u,c,h,L,M,_,b,A,x,S,F,T,v,y=e.ensure_array_like(r[16]),f=[];for(let m=0;m<y.length;m+=1)f[m]=ge(ue(r,y,m));function N(m,g){return m[17]?Ge:Ie}let B=N(r),W=B(r);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("div");for(let m=0;m<f.length;m+=1)f[m].c();l=e.space(),o=e.element("div"),a=e.element("button"),u=e.svg_element("svg"),c=e.svg_element("path"),L=e.space(),M=e.element("button"),_=e.svg_element("svg"),b=e.svg_element("path"),S=e.space(),W.c(),e.attr(i,"class","WinnerButtonsContainer"),e.attr(c,"style",h=r[11]>=r[10].length?"fill:#F6F6F62E":""),e.attr(c,"id","Path_36"),e.attr(c,"data-name","Path 36"),e.attr(c,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(c,"transform","translate(14.656 0) rotate(90)"),e.attr(c,"fill","#fff"),e.attr(u,"id","Component_46_2"),e.attr(u,"data-name","Component 46 – 2"),e.attr(u,"xmlns","http://www.w3.org/2000/svg"),e.attr(u,"width","15"),e.attr(u,"height","15"),e.attr(u,"viewBox","0 0 16 24.656"),e.attr(a,"class","SliderButton"),e.attr(b,"style",A=r[11]>=r[10].length?"fill:#F6F6F62E":""),e.attr(b,"id","Path_36"),e.attr(b,"data-name","Path 36"),e.attr(b,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(b,"transform","translate(0 24.656) rotate(-90)"),e.attr(b,"fill","#fff"),e.attr(_,"id","Component_46_2"),e.attr(_,"data-name","Component 46 – 2"),e.attr(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","15"),e.attr(_,"height","15"),e.attr(_,"viewBox","0 0 16 24.656"),e.attr(M,"class","SliderButton"),e.attr(o,"class",x="ButtonsContainer "+(r[4]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",F="CasinoWinners "+(r[12]?"Mobile":""))},m(m,g){e.insert(m,t,g),e.append(t,n),e.append(n,i);for(let d=0;d<f.length;d+=1)f[d]&&f[d].m(i,null);e.append(n,l),e.append(n,o),e.append(o,a),e.append(a,u),e.append(u,c),e.append(o,L),e.append(o,M),e.append(M,_),e.append(_,b),e.append(t,S),W.m(t,null),T||(v=[e.listen(a,"click",r[47]),e.listen(M,"click",r[48])],T=!0)},p(m,g){if(g[0]&852483){y=e.ensure_array_like(m[16]);let d;for(d=0;d<y.length;d+=1){const k=ue(m,y,d);f[d]?f[d].p(k,g):(f[d]=ge(k),f[d].c(),f[d].m(i,null))}for(;d<f.length;d+=1)f[d].d(1);f.length=y.length}g[0]&3072&&h!==(h=m[11]>=m[10].length?"fill:#F6F6F62E":"")&&e.attr(c,"style",h),g[0]&3072&&A!==(A=m[11]>=m[10].length?"fill:#F6F6F62E":"")&&e.attr(b,"style",A),g[0]&16&&x!==(x="ButtonsContainer "+(m[4]=="true"?"ButtonsContainerNone":""))&&e.attr(o,"class",x),B===(B=N(m))&&W?W.p(m,g):(W.d(1),W=B(m),W&&(W.c(),W.m(t,null))),g[0]&4096&&F!==(F="CasinoWinners "+(m[12]?"Mobile":""))&&e.attr(t,"class",F)},d(m){m&&e.detach(t),e.destroy_each(f,m),W.d(),T=!1,e.run_all(v)}}}function Pe(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[2]),e.set_custom_element_data(t,"clientstylingurl",r[3])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&4&&e.set_custom_element_data(t,"clientstyling",n[2]),i[0]&8&&e.set_custom_element_data(t,"clientstylingurl",n[3])},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[18]("recentWinners")+"",i,l,o,a;return{c(){t=e.element("button"),i=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[9]=="recent"?"Active":""))},m(u,c){e.insert(u,t,c),e.append(t,i),o||(a=e.listen(t,"click",r[45]),o=!0)},p(u,c){c[0]&262144&&n!==(n=u[18]("recentWinners")+"")&&e.set_data(i,n),c[0]&512&&l!==(l="WinnersButton "+(u[9]=="recent"?"Active":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),o=!1,a()}}}function fe(r){let t,n=r[18]("topWinners")+"",i,l,o,a,u;return{c(){t=e.element("button"),i=e.text(n),l=e.space(),e.attr(t,"class",o="WinnersButton "+(r[9]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(c,h){e.insert(c,t,h),e.append(t,i),e.append(t,l),a||(u=e.listen(t,"click",r[46]),a=!0)},p(c,h){h[0]&262144&&n!==(n=c[18]("topWinners")+"")&&e.set_data(i,n),h[0]&514&&o!==(o="WinnersButton "+(c[9]=="top"?"Active":"")+" "+(c[1]=="false"?"Off":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),a=!1,u()}}}function ge(r){let t,n,i=r[75]=="recent"&&de(r),l=r[75]=="top"&&fe(r);return{c(){i&&i.c(),t=e.space(),l&&l.c(),n=e.empty()},m(o,a){i&&i.m(o,a),e.insert(o,t,a),l&&l.m(o,a),e.insert(o,n,a)},p(o,a){o[75]=="recent"?i?i.p(o,a):(i=de(o),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),o[75]=="top"?l?l.p(o,a):(l=fe(o),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(o){o&&(e.detach(t),e.detach(n)),i&&i.d(o),l&&l.d(o)}}}function Ie(r){let t;function n(o,a){return o[10].length!==0?De:Ue}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c(),e.attr(t,"class","WinnersSlider")},m(o,a){e.insert(o,t,a),l.m(t,null),r[51](t)},p(o,a){i===(i=n(o))&&l?l.p(o,a):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},d(o){o&&e.detach(t),l.d(),r[51](null)}}}function Ge(r){let t;return{c(){t=e.element("general-animation-loading"),e.set_custom_element_data(t,"clientstyling",r[2]),e.set_custom_element_data(t,"clientstylingurl",r[3]),e.set_custom_element_data(t,"mbsource",r[5])},m(n,i){e.insert(n,t,i)},p(n,i){i[0]&4&&e.set_custom_element_data(t,"clientstyling",n[2]),i[0]&8&&e.set_custom_element_data(t,"clientstylingurl",n[3]),i[0]&32&&e.set_custom_element_data(t,"mbsource",n[5])},d(n){n&&e.detach(t)}}}function Ue(r){let t,n=r[18]("noWinnersMessage")+"",i;return{c(){t=e.element("p"),i=e.text(n),e.attr(t,"class","NoWinnersMessage")},m(l,o){e.insert(l,t,o),e.append(t,i)},p(l,o){o[0]&262144&&n!==(n=l[18]("noWinnersMessage")+"")&&e.set_data(i,n)},d(l){l&&e.detach(t)}}}function De(r){let t,n=e.ensure_array_like(r[10]),i=[];for(let l=0;l<n.length;l+=1)i[l]=he(ce(r,n,l));return{c(){for(let l=0;l<i.length;l+=1)i[l].c();t=e.empty()},m(l,o){for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(l,o);e.insert(l,t,o)},p(l,o){if(o[0]&20219136){n=e.ensure_array_like(l[10]);let a;for(a=0;a<n.length;a+=1){const u=ce(l,n,a);i[a]?i[a].p(u,o):(i[a]=he(u),i[a].c(),i[a].m(t.parentNode,t))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(i,l)}}}function he(r){let t,n,i,l,o,a,u,c=r[72].gameName+"",h,L,M,_=r[20](r[72].username)+"",b,A,x,S=r[18]("won")+"",F,T,v,y=r[24](r[72].specifiedCurrencyAmount)+"",f,N,B,W;function m(){return r[49](r[72])}return{c(){var g,d,k,E;t=e.element("div"),n=e.element("div"),i=e.element("img"),a=e.space(),u=e.element("p"),h=e.text(c),L=e.space(),M=e.element("p"),b=e.text(_),A=e.space(),x=e.element("p"),F=e.text(S),T=e.space(),v=e.element("p"),f=e.space(),e.src_url_equal(i.src,l=(d=(g=r[72])==null?void 0:g.gameModel)==null?void 0:d.thumbnail)||e.attr(i,"src",l),e.attr(i,"alt",o=(E=(k=r[72])==null?void 0:k.gameModel)==null?void 0:E.thumbnail),e.attr(i,"class","WinnersImage"),e.attr(x,"class","WinnerUsername"),e.attr(v,"class","WinnerAmount"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",N="CardWrapper "+(r[15]?"CardWrapperAnimation":""))},m(g,d){e.insert(g,t,d),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,u),e.append(u,h),e.append(n,L),e.append(n,M),e.append(M,b),e.append(n,A),e.append(n,x),e.append(x,F),e.append(n,T),e.append(n,v),v.innerHTML=y,r[50](n),e.append(t,f),B||(W=e.listen(i,"click",m),B=!0)},p(g,d){var k,E,O,z;r=g,d[0]&1024&&!e.src_url_equal(i.src,l=(E=(k=r[72])==null?void 0:k.gameModel)==null?void 0:E.thumbnail)&&e.attr(i,"src",l),d[0]&1024&&o!==(o=(z=(O=r[72])==null?void 0:O.gameModel)==null?void 0:z.thumbnail)&&e.attr(i,"alt",o),d[0]&1024&&c!==(c=r[72].gameName+"")&&e.set_data(h,c),d[0]&1024&&_!==(_=r[20](r[72].username)+"")&&e.set_data(b,_),d[0]&262144&&S!==(S=r[18]("won")+"")&&e.set_data(F,S),d[0]&1024&&y!==(y=r[24](r[72].specifiedCurrencyAmount)+"")&&(v.innerHTML=y),d[0]&32768&&N!==(N="CardWrapper "+(r[15]?"CardWrapperAnimation":""))&&e.attr(t,"class",N)},d(g){g&&e.detach(t),r[50](null),B=!1,W()}}}function qe(r){let t;function n(o,a){return o[13]||o[14]?Pe:Re}let i=n(r),l=i(r);return{c(){t=e.element("div"),l.c()},m(o,a){e.insert(o,t,a),l.m(t,null),r[52](t)},p(o,a){i===(i=n(o))&&l?l.p(o,a):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),l.d(),r[52](null)}}}function He(r,t,n){let i;e.component_subscribe(r,e.$format,s=>n(18,i=s));let{endpoint:l=""}=t,{session:o=""}=t,{userid:a=""}=t,{periodrecent:u="Today"}=t,{periodtop:c="Last7Days"}=t,{numberusersrecent:h="20"}=t,{numberuserstop:L="20"}=t,{amountlimit:M="1"}=t,{vendorCategory:_="All"}=t,{lang:b="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:x="true"}=t,{defaultcurrency:S=""}=t,{usercurrency:F=""}=t,{customcurrencysymbol:T}=t,{clientstyling:v=""}=t,{clientstylingurl:y=""}=t,{enableautoscroll:f=""}=t,{tabsorder:N=""}=t,{translationurl:B=""}=t,{winnersdatasources:W=""}=t,{hascustomstyling:m="false"}=t,{mbsource:g}=t,{currencylocale:d=""}=t,k,E,O,z=[],w=0,C=0,be=window.navigator.userAgent,X,P,U,j,D=!0,Y=!1,Q=!1,$,G,q,I,ee=[],H=!1;const _e=()=>{let s=new URL(B);fetch(s.href).then(p=>p.json()).then(p=>{Object.keys(p).forEach(R=>{oe(R,p[R])})}).catch(p=>{console.log(p)})};Object.keys(ae).forEach(s=>{oe(s,ae[s])});const te=()=>{ee=W.split(",").map(function(p){return p.trim()});const s=new URL(`${l}/v1/casino/${O}-winners`);n(17,H=!0),s.searchParams.append("limit",O=="recent"?h:L),s.searchParams.append("specifiedCurrency",I),s.searchParams.append("period",O=="recent"?u:c),s.searchParams.append("language",b),s.searchParams.append("amountLimit",M),s.searchParams.append("vendorCategory",_),ee.forEach(p=>{s.searchParams.append("dataSource",p)}),setTimeout(()=>{fetch(s.href).then(p=>p.json()).then(p=>J(this,null,function*(){n(10,z=[]),n(10,z=p.items.map(R=>R)),n(17,H=!1),yield e.tick(),ve(),re(),f=="true"&&(clearInterval(G),we()),n(13,D=!1),ye()}))},1e3)},ye=()=>{const s=j.getRootNode().host;s.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:s}}))},V=s=>{O!==s&&(n(10,z=[]),n(9,O=s),te())},We=s=>s.slice(0,2)+s.slice(2,-2).replace(/./g,"*")+s.slice(-2),ne=(s,p,R,Z)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:s,launchUrl:p,gameName:R,subVendor:Z},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"WinnersWidget",gameId:`${s}`,userId:`${U||"Not logged in"}`})},re=(s=0)=>{const p=[...k.children];$=p.length,p.forEach((R,Z)=>{R.style.transform=`translateX(${100*(Z-s)}%)`}),setTimeout(()=>{n(15,Q=!0)},10)},we=()=>{w=0,C<$?G=setInterval(()=>{K()},3e3):clearInterval(G)},ie=()=>{re(w)},ve=()=>J(this,null,function*(){yield e.tick(),requestAnimationFrame(()=>{const s=E?E.offsetWidth:0;k.offsetWidth&&s?n(11,C=Math.round(k.offsetWidth/s)):n(11,C=0)})}),se=()=>{if(C>=z.length)return;const s=z.length;w===0?w=s-C:w-C<0?w=0:w=w-C,ie()},K=()=>{if(C>=z.length)return;const s=z.length;f=="true"&&(w===s-C?w=0:w++),f=="false"&&(w===s-C?w=0:s-C<w+C?w=s-C:w+=C),ie()},ke=()=>{Le(b)},Ce=()=>{n(43,P=!0),U=a},le=()=>{n(44,I=P?F:S)},Me=s=>{const p=T!=null?T:P?F:S;return`${d?Intl.NumberFormat(d,{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:I}).format(s).replace(/\s/g,""):s.toFixed(2)}<span class="CurrencySymbol">${p}</span>`},Fe=()=>{m==="true"&&(!v&&!y&&j&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!v&&y&&n(14,Y=!0))},xe=()=>{n(16,q=N.split(",")),n(9,O=q[0]),le(),n(13,D=!1)};e.onMount(()=>(n(12,X=e.isMobile(be)),()=>{clearInterval(G)}));const Se=()=>V("recent"),Be=()=>V("top"),Te=()=>se(),Ne=()=>K(),Ae=s=>ne(s.gameId,s.gameModel.launchUrl,s.gameModel.name,s.gameModel.subVendor);function Ee(s){e.binding_callbacks[s?"unshift":"push"](()=>{E=s,n(8,E)})}function ze(s){e.binding_callbacks[s?"unshift":"push"](()=>{k=s,n(7,k)})}function je(s){e.binding_callbacks[s?"unshift":"push"](()=>{j=s,n(6,j)})}return r.$$set=s=>{"endpoint"in s&&n(25,l=s.endpoint),"session"in s&&n(26,o=s.session),"userid"in s&&n(27,a=s.userid),"periodrecent"in s&&n(28,u=s.periodrecent),"periodtop"in s&&n(29,c=s.periodtop),"numberusersrecent"in s&&n(30,h=s.numberusersrecent),"numberuserstop"in s&&n(31,L=s.numberuserstop),"amountlimit"in s&&n(32,M=s.amountlimit),"vendorCategory"in s&&n(33,_=s.vendorCategory),"lang"in s&&n(34,b=s.lang),"isrecentavailable"in s&&n(0,A=s.isrecentavailable),"istopavailable"in s&&n(1,x=s.istopavailable),"defaultcurrency"in s&&n(35,S=s.defaultcurrency),"usercurrency"in s&&n(36,F=s.usercurrency),"customcurrencysymbol"in s&&n(37,T=s.customcurrencysymbol),"clientstyling"in s&&n(2,v=s.clientstyling),"clientstylingurl"in s&&n(3,y=s.clientstylingurl),"enableautoscroll"in s&&n(4,f=s.enableautoscroll),"tabsorder"in s&&n(38,N=s.tabsorder),"translationurl"in s&&n(39,B=s.translationurl),"winnersdatasources"in s&&n(40,W=s.winnersdatasources),"hascustomstyling"in s&&n(41,m=s.hascustomstyling),"mbsource"in s&&n(5,g=s.mbsource),"currencylocale"in s&&n(42,d=s.currencylocale)},r.$$.update=()=>{r.$$.dirty[0]&1879048195|r.$$.dirty[1]&143&&A&&x&&u&&c&&h&&L&&M&&_&&b&&N&&xe(),r.$$.dirty[0]&67108864&&o&&Ce(),r.$$.dirty[1]&4144&&P&&(F||S)&&le(),r.$$.dirty[0]&33554432|r.$$.dirty[1]&8704&&l&&W&&I&&te(),r.$$.dirty[1]&8&&b&&ke(),r.$$.dirty[1]&256&&B&&_e(),r.$$.dirty[1]&1024&&m&&Fe(),r.$$.dirty[0]&68&&v&&j&&e.setClientStyling(j,v),r.$$.dirty[0]&72&&y&&j&&e.setClientStylingURL(j,y),r.$$.dirty[0]&96&&j&&e.setStreamStyling(j,`${g}.Style`)},[A,x,v,y,f,g,j,k,E,O,z,C,X,D,Y,Q,q,H,i,V,We,ne,se,K,Me,l,o,a,u,c,h,L,M,_,b,S,F,T,N,B,W,m,d,P,I,Se,Be,Te,Ne,Ae,Ee,ze,je]}class pe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,He,qe,e.safe_not_equal,{endpoint:25,session:26,userid:27,periodrecent:28,periodtop:29,numberusersrecent:30,numberuserstop:31,amountlimit:32,vendorCategory:33,lang:34,isrecentavailable:0,istopavailable:1,defaultcurrency:35,usercurrency:36,customcurrencysymbol:37,clientstyling:2,clientstylingurl:3,enableautoscroll:4,tabsorder:38,translationurl:39,winnersdatasources:40,hascustomstyling:41,mbsource:5,currencylocale:42},Oe,[-1,-1,-1])}get endpoint(){return this.$$.ctx[25]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[26]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[27]}set userid(t){this.$$set({userid:t}),e.flush()}get periodrecent(){return this.$$.ctx[28]}set periodrecent(t){this.$$set({periodrecent:t}),e.flush()}get periodtop(){return this.$$.ctx[29]}set periodtop(t){this.$$set({periodtop:t}),e.flush()}get numberusersrecent(){return this.$$.ctx[30]}set numberusersrecent(t){this.$$set({numberusersrecent:t}),e.flush()}get numberuserstop(){return this.$$.ctx[31]}set numberuserstop(t){this.$$set({numberuserstop:t}),e.flush()}get amountlimit(){return this.$$.ctx[32]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[33]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[34]}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[35]}set defaultcurrency(t){this.$$set({defaultcurrency:t}),e.flush()}get usercurrency(){return this.$$.ctx[36]}set usercurrency(t){this.$$set({usercurrency:t}),e.flush()}get customcurrencysymbol(){return this.$$.ctx[37]}set customcurrencysymbol(t){this.$$set({customcurrencysymbol:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get enableautoscroll(){return this.$$.ctx[4]}set enableautoscroll(t){this.$$set({enableautoscroll:t}),e.flush()}get tabsorder(){return this.$$.ctx[38]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[39]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[40]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[41]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}get mbsource(){return this.$$.ctx[5]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get currencylocale(){return this.$$.ctx[42]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}}e.create_custom_element(pe,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},customcurrencysymbol:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{},mbsource:{},currencylocale:{}},[],[],!0);exports.default=pe;
|