@everymatrix/casino-page 1.44.0 → 1.45.2

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.
Files changed (55) hide show
  1. package/components/CasinoCalendar-C_cW3If4.js +4945 -0
  2. package/components/CasinoCalendar-nl2iiorT.cjs +6 -0
  3. package/components/CasinoCalendarDailyDetails-DnM1i-yw.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-DuM1JdXu.js +605 -0
  5. package/components/CasinoCalendarDailyItem-Cu1cJO-o.js +220 -0
  6. package/components/CasinoCalendarDailyItem-wSh0TQmw.cjs +1 -0
  7. package/components/CasinoCollectionsProviders-C5cW1Ynt.cjs +1 -0
  8. package/components/CasinoCollectionsProviders-xxbKg_Ci.js +659 -0
  9. package/components/CasinoFavoritesSection-BxsD_mwb.cjs +1 -0
  10. package/components/CasinoFavoritesSection-inNLndzn.js +418 -0
  11. package/components/CasinoFilter-Bf-aKCs4.js +628 -0
  12. package/components/CasinoFilter-DsfEPxOV.cjs +1 -0
  13. package/components/CasinoGameThumbnail-B2zKPVWX.js +4404 -0
  14. package/components/CasinoGameThumbnail-D4dpi4pE.cjs +47 -0
  15. package/components/CasinoGamesCategorySection-DYWJz3Kr.js +3018 -0
  16. package/components/CasinoGamesCategorySection-eXV9pLYW.cjs +1 -0
  17. package/components/CasinoJackpotBanner-BbZfAtK7.cjs +1 -0
  18. package/components/CasinoJackpotBanner-DG-gRn5m.js +615 -0
  19. package/components/CasinoLastPlayedSection-DIHIwpkO.js +563 -0
  20. package/components/CasinoLastPlayedSection-r5pOc9-L.cjs +1 -0
  21. package/components/CasinoMostPlayedSection-Bwta9L31.js +580 -0
  22. package/components/CasinoMostPlayedSection-jL-AhnSB.cjs +1 -0
  23. package/components/CasinoMyGames-CHwKmM7d.js +1313 -0
  24. package/components/CasinoMyGames-D9DeNmGU.cjs +1 -0
  25. package/components/CasinoPage-05ZglU1l.cjs +1 -0
  26. package/components/CasinoPage-BpIKXaav.js +3514 -0
  27. package/components/CasinoRandomGame-CfvXKJmb.cjs +2 -0
  28. package/components/CasinoRandomGame-D8i7LRIG.js +641 -0
  29. package/components/CasinoSearch-CNLDoBng.cjs +1 -0
  30. package/components/CasinoSearch-D3L2Udhc.js +1062 -0
  31. package/components/CasinoSort-DkyKZJ6D.js +425 -0
  32. package/components/CasinoSort-DlxCxisZ.cjs +1 -0
  33. package/components/CasinoWinners-BJz7Z50Z.js +884 -0
  34. package/components/CasinoWinners-DAGGAApV.cjs +1 -0
  35. package/components/GeneralAnimationLoading-CSq5Z70E.js +75 -0
  36. package/components/GeneralAnimationLoading-DkcoDbK8.cjs +1 -0
  37. package/es2015/casino-page.cjs +1 -0
  38. package/es2015/casino-page.js +16 -0
  39. package/package.json +25 -32
  40. package/CHANGELOG.md +0 -14
  41. package/README.md +0 -30
  42. package/dist/casino-page.js +0 -31
  43. package/dist/casino-page.js.map +0 -1
  44. package/index.html +0 -37
  45. package/index.js +0 -1
  46. package/public/favicon.png +0 -0
  47. package/public/reset.css +0 -48
  48. package/rollup.config.js +0 -67
  49. package/src/CasinoPage.svelte +0 -850
  50. package/src/CasinoPage.types.ts +0 -92
  51. package/src/i18n.js +0 -27
  52. package/src/index.ts +0 -4
  53. package/src/translations.js +0 -214
  54. package/stories/CasinoPage.stories.js +0 -13
  55. package/tsconfig.json +0 -6
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-nl2iiorT.cjs");function se(r,t){e.addMessages(r,t)}function Le(r){e.$locale.set(r)}const le={en:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"zh-hk":{recentWinners:"最近的获奖者",topWinners:"最佳获奖者",won:"刚赢"},de:{recentWinners:"Kürzliche Gewinner",topWinners:"Top Gewinner",won:"Eben gewonnen"},it:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},fr:{recentWinners:"Gagnants récents",topWinners:"Meilleurs gagnants",won:"vient de gagner"},es:{recentWinners:"Ganadores Recientes",topWinners:"Ganadores Top",won:"Últimos Ganadores"},el:{recentWinners:"Πρόσφατοι νικητές",topWinners:"Κορυφαίοι νικητές",won:"μόλις κέρδισε"},tr:{recentWinners:"Son Kazananlar",topWinners:"En Çok Kazananlar",won:"Sadece kazandı"},ru:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},ro:{recentWinners:"Ultimii câștigători",topWinners:"Câștigători de top",won:"tocmai a câștigat"},hr:{recentWinners:"Nedavni dobitnici",topWinners:"Top dobitnici",won:"upravo osvojio"},hu:{recentWinners:"Legutóbbi nyertesek",topWinners:"Top nyertesek",won:"Nyert"},pl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},pt:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sl:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},sr:{recentWinners:"Recent Winners",topWinners:"Top Winners",won:"just won"},"pt-br":{recentWinners:"Vencedores recentes",topWinners:"Principais vencedores",won:"acabei de ganhar"},"es-mx":{recentWinners:"Ganadores recientes",topWinners:"Mejores Ganadores",won:"recién gano"}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./GeneralAnimationLoading-DkcoDbK8.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}function je(r){e.append_styles(r,"svelte-14orrs9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.Off{display:none}.CasinoWinners{background-color:var(--emfe-w-casino-color-bg, var(--emfe-w-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(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500;margin-right:60px;cursor:pointer}.WinnersButton:hover{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton:focus{color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));line-height:40px}.WinnersButton.Active{border-bottom:2px solid #D0046C;padding-bottom:10px;color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))}.WinnersButton.Active{border-bottom:1px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-casino-color-primary, var(--emfe-w-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}.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(--emfe-w-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(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.WinnerCard p:nth-child(4){color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:14px;text-align:center}.WinnerCard p:last-of-type{color:var(--emfe-w-casino-color-primary, var(--emfe-w-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 ae(r,t,n){const s=r.slice();return s[70]=t[n],s}function oe(r,t,n){const s=r.slice();return s[73]=t[n],s}function ze(r){let t,n,s,l,a,o,u,d,w,E,k,y,b,A,F,L,S,B,x,v=e.ensure_array_like(r[17]),m=[];for(let c=0;c<v.length;c+=1)m[c]=de(oe(r,v,c));function O(c,g){return c[18]?Ne:Oe}let T=O(r),_=T(r);return{c(){t=e.element("div"),n=e.element("div"),s=e.element("div");for(let c=0;c<m.length;c+=1)m[c].c();l=e.space(),a=e.element("div"),o=e.element("button"),u=e.svg_element("svg"),d=e.svg_element("path"),E=e.space(),k=e.element("button"),y=e.svg_element("svg"),b=e.svg_element("path"),L=e.space(),_.c(),e.attr(s,"class","WinnerButtonsContainer"),e.attr(d,"style",w=r[12]>=r[11].length?"fill:#F6F6F62E":""),e.attr(d,"id","Path_36"),e.attr(d,"data-name","Path 36"),e.attr(d,"d","M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z"),e.attr(d,"transform","translate(14.656 0) rotate(90)"),e.attr(d,"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(o,"class","SliderButton"),e.attr(b,"style",A=r[12]>=r[11].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(y,"id","Component_46_2"),e.attr(y,"data-name","Component 46 – 2"),e.attr(y,"xmlns","http://www.w3.org/2000/svg"),e.attr(y,"width","15"),e.attr(y,"height","15"),e.attr(y,"viewBox","0 0 16 24.656"),e.attr(k,"class","SliderButton"),e.attr(a,"class",F="ButtonsContainer "+(r[6]=="true"?"ButtonsContainerNone":"")),e.attr(n,"class","WinnersHeader"),e.attr(t,"class",S="CasinoWinners "+(r[13]?"Mobile":""))},m(c,g){e.insert(c,t,g),e.append(t,n),e.append(n,s);for(let f=0;f<m.length;f+=1)m[f]&&m[f].m(s,null);e.append(n,l),e.append(n,a),e.append(a,o),e.append(o,u),e.append(u,d),e.append(a,E),e.append(a,k),e.append(k,y),e.append(y,b),e.append(t,L),_.m(t,null),B||(x=[e.listen(o,"click",r[43]),e.listen(k,"click",r[44])],B=!0)},p(c,g){if(g[0]&3277827){v=e.ensure_array_like(c[17]);let f;for(f=0;f<v.length;f+=1){const p=oe(c,v,f);m[f]?m[f].p(p,g):(m[f]=de(p),m[f].c(),m[f].m(s,null))}for(;f<m.length;f+=1)m[f].d(1);m.length=v.length}g[0]&6144&&w!==(w=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(d,"style",w),g[0]&6144&&A!==(A=c[12]>=c[11].length?"fill:#F6F6F62E":"")&&e.attr(b,"style",A),g[0]&64&&F!==(F="ButtonsContainer "+(c[6]=="true"?"ButtonsContainerNone":""))&&e.attr(a,"class",F),T===(T=O(c))&&_?_.p(c,g):(_.d(1),_=T(c),_&&(_.c(),_.m(t,null))),g[0]&8192&&S!==(S="CasinoWinners "+(c[13]?"Mobile":""))&&e.attr(t,"class",S)},d(c){c&&e.detach(t),e.destroy_each(m,c),_.d(),B=!1,e.run_all(x)}}}function Ee(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,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function ce(r){let t,n=r[20]("recentWinners")+"",s,l,a,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class",l="WinnersButton "+(r[10]=="recent"?"Active":"")+" "+(r[0]=="false"?"Off":""))},m(u,d){e.insert(u,t,d),e.append(t,s),a||(o=e.listen(t,"click",r[41]),a=!0)},p(u,d){d[0]&1048576&&n!==(n=u[20]("recentWinners")+"")&&e.set_data(s,n),d[0]&1025&&l!==(l="WinnersButton "+(u[10]=="recent"?"Active":"")+" "+(u[0]=="false"?"Off":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),a=!1,o()}}}function ue(r){let t,n=r[20]("topWinners")+"",s,l,a,o,u;return{c(){t=e.element("button"),s=e.text(n),l=e.space(),e.attr(t,"class",a="WinnersButton "+(r[10]=="top"?"Active":"")+" "+(r[1]=="false"?"Off":""))},m(d,w){e.insert(d,t,w),e.append(t,s),e.append(t,l),o||(u=e.listen(t,"click",r[42]),o=!0)},p(d,w){w[0]&1048576&&n!==(n=d[20]("topWinners")+"")&&e.set_data(s,n),w[0]&1026&&a!==(a="WinnersButton "+(d[10]=="top"?"Active":"")+" "+(d[1]=="false"?"Off":""))&&e.attr(t,"class",a)},d(d){d&&e.detach(t),o=!1,u()}}}function de(r){let t,n,s=r[73]=="recent"&&ce(r),l=r[73]=="top"&&ue(r);return{c(){s&&s.c(),t=e.space(),l&&l.c(),n=e.empty()},m(a,o){s&&s.m(a,o),e.insert(a,t,o),l&&l.m(a,o),e.insert(a,n,o)},p(a,o){a[73]=="recent"?s?s.p(a,o):(s=ce(a),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),a[73]=="top"?l?l.p(a,o):(l=ue(a),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},d(a){a&&(e.detach(t),e.detach(n)),s&&s.d(a),l&&l.d(a)}}}function Oe(r){let t,n=e.ensure_array_like(r[11]),s=[];for(let l=0;l<n.length;l+=1)s[l]=fe(ae(r,n,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","WinnersSlider")},m(l,a){e.insert(l,t,a);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null);r[47](t)},p(l,a){if(a[0]&14223500){n=e.ensure_array_like(l[11]);let o;for(o=0;o<n.length;o+=1){const u=ae(l,n,o);s[o]?s[o].p(u,a):(s[o]=fe(u),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),r[47](null)}}}function Ne(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,s){e.insert(n,t,s)},p(n,s){s[0]&16&&e.set_custom_element_data(t,"clientstyling",n[4]),s[0]&32&&e.set_custom_element_data(t,"clientstylingurl",n[5])},d(n){n&&e.detach(t)}}}function fe(r){let t,n,s,l,a,o,u,d=r[70].gameName+"",w,E,k,y=r[22](r[70].username)+"",b,A,F,L=r[20]("won")+"",S,B,x,v=r[70].specifiedCurrencyAmount.toFixed(2)+"",m,O,T,_=(r[7]?r[3]:r[2])+"",c,g,f,p,C;function q(){return r[45](r[70])}return{c(){var z,W,N,M;t=e.element("div"),n=e.element("div"),s=e.element("img"),o=e.space(),u=e.element("p"),w=e.text(d),E=e.space(),k=e.element("p"),b=e.text(y),A=e.space(),F=e.element("p"),S=e.text(L),B=e.space(),x=e.element("p"),m=e.text(v),O=e.space(),T=e.element("span"),c=e.text(_),g=e.space(),e.src_url_equal(s.src,l=(W=(z=r[70])==null?void 0:z.gameModel)==null?void 0:W.thumbnail)||e.attr(s,"src",l),e.attr(s,"alt",a=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail),e.attr(s,"class","WinnersImage"),e.attr(F,"class","WinnerUsername"),e.attr(n,"class","WinnerCard"),e.attr(t,"class",f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))},m(z,W){e.insert(z,t,W),e.append(t,n),e.append(n,s),e.append(n,o),e.append(n,u),e.append(u,w),e.append(n,E),e.append(n,k),e.append(k,b),e.append(n,A),e.append(n,F),e.append(F,S),e.append(n,B),e.append(n,x),e.append(x,m),e.append(x,O),e.append(x,T),e.append(T,c),e.append(t,g),r[46](t),p||(C=e.listen(s,"click",q),p=!0)},p(z,W){var N,M,P,R;r=z,W[0]&2048&&!e.src_url_equal(s.src,l=(M=(N=r[70])==null?void 0:N.gameModel)==null?void 0:M.thumbnail)&&e.attr(s,"src",l),W[0]&2048&&a!==(a=(R=(P=r[70])==null?void 0:P.gameModel)==null?void 0:R.thumbnail)&&e.attr(s,"alt",a),W[0]&2048&&d!==(d=r[70].gameName+"")&&e.set_data(w,d),W[0]&2048&&y!==(y=r[22](r[70].username)+"")&&e.set_data(b,y),W[0]&1048576&&L!==(L=r[20]("won")+"")&&e.set_data(S,L),W[0]&2048&&v!==(v=r[70].specifiedCurrencyAmount.toFixed(2)+"")&&e.set_data(m,v),W[0]&140&&_!==(_=(r[7]?r[3]:r[2])+"")&&e.set_data(c,_),W[0]&65536&&f!==(f="CardWrapper "+(r[16]?"CardWrapperAnimation":""))&&e.attr(t,"class",f)},d(z){z&&e.detach(t),r[46](null),p=!1,C()}}}function Pe(r){let t;function n(a,o){return a[14]||a[15]?Ee:ze}let s=n(r),l=s(r);return{c(){t=e.element("div"),l.c()},m(a,o){e.insert(a,t,o),l.m(t,null),r[48](t)},p(a,o){s===(s=n(a))&&l?l.p(a,o):(l.d(1),l=s(a),l&&(l.c(),l.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),l.d(),r[48](null)}}}function Re(r,t,n){let s;e.component_subscribe(r,e.$format,i=>n(20,s=i));let{endpoint:l=""}=t,{session:a=""}=t,{userid:o=""}=t,{periodrecent:u="Today"}=t,{periodtop:d="Last7Days"}=t,{numberusersrecent:w="20"}=t,{numberuserstop:E="20"}=t,{amountlimit:k="1"}=t,{vendorCategory:y="All"}=t,{lang:b="en"}=t,{isrecentavailable:A="true"}=t,{istopavailable:F="true"}=t,{defaultcurrency:L=""}=t,{usercurrency:S=""}=t,{clientstyling:B=""}=t,{clientstylingurl:x=""}=t,{enableautoscroll:v=""}=t,{tabsorder:m=""}=t,{translationurl:O=""}=t,{winnersdatasources:T=""}=t,{hascustomstyling:_="false"}=t,c,g,f=[],p=0,C=0,q=window.navigator.userAgent,z,W,N,M,P=!0,R=!1,X=!1,Y,D,H,G,J=[],V=!1,I,Q=0;const pe=()=>{let i=new URL(O);fetch(i.href).then(h=>h.json()).then(h=>{Object.keys(h).forEach(j=>{se(j,h[j])})}).catch(h=>{console.log(h)})};Object.keys(le).forEach(i=>{se(i,le[i])});const $=()=>{J=T.split(",").map(function(h){return h.trim()});const i=new URL(`${l}/v1/casino/${g}-winners`);n(18,V=!0),i.searchParams.append("limit",g=="recent"?w:E),i.searchParams.append("specifiedCurrency",G),i.searchParams.append("period",g=="recent"?u:d),i.searchParams.append("language",b),i.searchParams.append("amountLimit",k),i.searchParams.append("vendorCategory",y),J.forEach(h=>{i.searchParams.append("dataSource",h)}),setTimeout(()=>{fetch(i.href).then(h=>h.json()).then(h=>{n(11,f=[]),n(11,f=h.items.map(j=>j)),n(18,V=!1),setTimeout(()=>{be(),te(),v=="true"&&(clearInterval(D),ge()),n(14,P=!1)},5)})},1e3)},K=i=>{g!==i&&(n(11,f=[]),n(10,g=i),$())},he=i=>i.slice(0,2)+i.slice(2,-2).replace(/./g,"*")+i.slice(-2),ee=(i,h,j,U)=>{window.postMessage({type:"OpenCasinoWinnersGame",gameId:i,launchUrl:h,gameName:j,subVendor:U},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"WinnersWidget",gameId:`${i}`,userId:`${N||"Not logged in"}`})},te=i=>{const h=[...c.children];Y=h.length,h.forEach((j,U)=>{j.style.transform=`translateX(${100*(i?U-i:U)}%)`}),setTimeout(()=>{n(16,X=!0)},10)},ge=()=>{p=0,C<Y?D=setInterval(()=>{Z()},3e3):clearInterval(D)},ne=()=>{te(p)},be=()=>{Q=I.offsetWidth,n(12,C=Math.round(c.offsetWidth/Q))},re=()=>{if(C>=f.length)return;const i=f.length;p===0?p=i-C:p-C<0?p=0:p=p-C,ne()},Z=()=>{if(C>=f.length)return;const i=f.length;v=="true"&&(p===i-C?p=0:p++),v=="false"&&(p===i-C?p=0:i-C<p+C?p=i-C:p+=C),ne()},_e=()=>{Le(b)},ye=()=>{n(7,W=!0),N=o},ie=()=>{n(40,G=W?S:L)},we=()=>{let i=document.createElement("style");i.innerHTML=B,M.appendChild(i)},We=()=>{let i=new URL(x),h=document.createElement("style");fetch(i.href).then(j=>j.text()).then(j=>{h.innerHTML=j,setTimeout(()=>{M.appendChild(h)},1),setTimeout(()=>{},500),n(15,R=!1)})},ve=()=>{_==="true"&&(!B&&!x&&M&&console.error("clientstyling or clientstylingurl mandatory if hascustomstyling is true"),!B&&x&&n(15,R=!0))},Ce=()=>{n(17,H=m.split(",")),n(10,g=H[0]),A=="false"&&n(26,k=""),ie(),n(14,P=!1)};e.onMount(()=>(n(13,z=e.isMobile(q)),()=>{clearInterval(D)}));const ke=()=>K("recent"),xe=()=>K("top"),Me=()=>re(),Fe=()=>Z(),Se=i=>ee(i.gameId,i.gameModel.launchUrl,i.gameModel.name,i.gameModel.subVendor);function Be(i){e.binding_callbacks[i?"unshift":"push"](()=>{I=i,n(19,I)})}function Te(i){e.binding_callbacks[i?"unshift":"push"](()=>{c=i,n(9,c)})}function Ae(i){e.binding_callbacks[i?"unshift":"push"](()=>{M=i,n(8,M)})}return r.$$set=i=>{"endpoint"in i&&n(27,l=i.endpoint),"session"in i&&n(28,a=i.session),"userid"in i&&n(29,o=i.userid),"periodrecent"in i&&n(30,u=i.periodrecent),"periodtop"in i&&n(31,d=i.periodtop),"numberusersrecent"in i&&n(32,w=i.numberusersrecent),"numberuserstop"in i&&n(33,E=i.numberuserstop),"amountlimit"in i&&n(26,k=i.amountlimit),"vendorCategory"in i&&n(34,y=i.vendorCategory),"lang"in i&&n(35,b=i.lang),"isrecentavailable"in i&&n(0,A=i.isrecentavailable),"istopavailable"in i&&n(1,F=i.istopavailable),"defaultcurrency"in i&&n(2,L=i.defaultcurrency),"usercurrency"in i&&n(3,S=i.usercurrency),"clientstyling"in i&&n(4,B=i.clientstyling),"clientstylingurl"in i&&n(5,x=i.clientstylingurl),"enableautoscroll"in i&&n(6,v=i.enableautoscroll),"tabsorder"in i&&n(36,m=i.tabsorder),"translationurl"in i&&n(37,O=i.translationurl),"winnersdatasources"in i&&n(38,T=i.winnersdatasources),"hascustomstyling"in i&&n(39,_=i.hascustomstyling)},r.$$.update=()=>{r.$$.dirty[0]&1140850691|r.$$.dirty[1]&63&&A&&F&&u&&d&&w&&E&&k&&y&&b&&m&&Ce(),r.$$.dirty[0]&268435456&&a&&ye(),r.$$.dirty[0]&140&&W&&(S||L)&&ie(),r.$$.dirty[0]&134217728|r.$$.dirty[1]&640&&l&&T&&G&&$(),r.$$.dirty[1]&16&&b&&_e(),r.$$.dirty[1]&64&&O&&pe(),r.$$.dirty[1]&256&&_&&ve(),r.$$.dirty[0]&272&&B&&M&&we(),r.$$.dirty[0]&288&&x&&M&&We()},[A,F,L,S,B,x,v,W,M,c,g,f,C,z,P,R,X,H,V,I,s,K,he,ee,re,Z,k,l,a,o,u,d,w,E,y,b,m,O,T,_,G,ke,xe,Me,Fe,Se,Be,Te,Ae]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Re,Pe,e.safe_not_equal,{endpoint:27,session:28,userid:29,periodrecent:30,periodtop:31,numberusersrecent:32,numberuserstop:33,amountlimit:26,vendorCategory:34,lang:35,isrecentavailable:0,istopavailable:1,defaultcurrency:2,usercurrency:3,clientstyling:4,clientstylingurl:5,enableautoscroll:6,tabsorder:36,translationurl:37,winnersdatasources:38,hascustomstyling:39},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[26]}set amountlimit(t){this.$$set({amountlimit:t}),e.flush()}get vendorCategory(){return this.$$.ctx[34]}set vendorCategory(t){this.$$set({vendorCategory:t}),e.flush()}get lang(){return this.$$.ctx[35]}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[36]}set tabsorder(t){this.$$set({tabsorder:t}),e.flush()}get translationurl(){return this.$$.ctx[37]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get winnersdatasources(){return this.$$.ctx[38]}set winnersdatasources(t){this.$$set({winnersdatasources:t}),e.flush()}get hascustomstyling(){return this.$$.ctx[39]}set hascustomstyling(t){this.$$set({hascustomstyling:t}),e.flush()}}e.create_custom_element(me,{endpoint:{},session:{},userid:{},periodrecent:{},periodtop:{},numberusersrecent:{},numberuserstop:{},amountlimit:{},vendorCategory:{},lang:{},isrecentavailable:{},istopavailable:{},defaultcurrency:{},usercurrency:{},clientstyling:{},clientstylingurl:{},enableautoscroll:{},tabsorder:{},translationurl:{},winnersdatasources:{},hascustomstyling:{}},[],[],!0);exports.default=me;
@@ -0,0 +1,75 @@
1
+ import { S as m, i as h, f as o, c as g, s as y, b as v, e as x, d as b, C as r, j as C, m as _ } from "./CasinoCalendar-C_cW3If4.js";
2
+ function L(e) {
3
+ v(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)}}");
4
+ }
5
+ function k(e) {
6
+ let i;
7
+ return {
8
+ c() {
9
+ i = x("div"), i.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
10
+ },
11
+ m(n, l) {
12
+ b(n, i, l), e[3](i);
13
+ },
14
+ p: r,
15
+ i: r,
16
+ o: r,
17
+ d(n) {
18
+ n && C(i), e[3](null);
19
+ }
20
+ };
21
+ }
22
+ function S(e, i, n) {
23
+ let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, s;
24
+ const u = () => {
25
+ let t = document.createElement("style");
26
+ t.innerHTML = l, s.appendChild(t);
27
+ }, p = () => {
28
+ let t = new URL(a), c = document.createElement("style");
29
+ fetch(t.href).then((d) => d.text()).then((d) => {
30
+ c.innerHTML = d, setTimeout(
31
+ () => {
32
+ s.appendChild(c);
33
+ },
34
+ 1
35
+ ), setTimeout(
36
+ () => {
37
+ },
38
+ 500
39
+ );
40
+ });
41
+ };
42
+ function f(t) {
43
+ _[t ? "unshift" : "push"](() => {
44
+ s = t, n(0, s);
45
+ });
46
+ }
47
+ return e.$$set = (t) => {
48
+ "clientstyling" in t && n(1, l = t.clientstyling), "clientstylingurl" in t && n(2, a = t.clientstylingurl);
49
+ }, e.$$.update = () => {
50
+ e.$$.dirty & /*clientstyling, customStylingContainer*/
51
+ 3 && l && s && u(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
52
+ 5 && a && s && p();
53
+ }, [s, l, a, f];
54
+ }
55
+ class T extends m {
56
+ constructor(i) {
57
+ super(), h(this, i, S, k, y, { clientstyling: 1, clientstylingurl: 2 }, L);
58
+ }
59
+ get clientstyling() {
60
+ return this.$$.ctx[1];
61
+ }
62
+ set clientstyling(i) {
63
+ this.$$set({ clientstyling: i }), o();
64
+ }
65
+ get clientstylingurl() {
66
+ return this.$$.ctx[2];
67
+ }
68
+ set clientstylingurl(i) {
69
+ this.$$set({ clientstylingurl: i }), o();
70
+ }
71
+ }
72
+ g(T, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
73
+ export {
74
+ T as default
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-nl2iiorT.cjs");function h(n){t.append_styles(n,"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 m(n){let i;return{c(){i=t.element("div"),i.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(l,d){t.insert(l,i,d),n[3](i)},p:t.noop,i:t.noop,o:t.noop,d(l){l&&t.detach(i),n[3](null)}}}function g(n,i,l){let{clientstyling:d=""}=i,{clientstylingurl:r=""}=i,s;const u=()=>{let e=document.createElement("style");e.innerHTML=d,s.appendChild(e)},p=()=>{let e=new URL(r),c=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{c.innerHTML=a,setTimeout(()=>{s.appendChild(c)},1),setTimeout(()=>{},500)})};function f(e){t.binding_callbacks[e?"unshift":"push"](()=>{s=e,l(0,s)})}return n.$$set=e=>{"clientstyling"in e&&l(1,d=e.clientstyling),"clientstylingurl"in e&&l(2,r=e.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&3&&d&&s&&u(),n.$$.dirty&5&&r&&s&&p()},[s,d,r,f]}class o extends t.SvelteComponent{constructor(i){super(),t.init(this,i,g,m,t.safe_not_equal,{clientstyling:1,clientstylingurl:2},h)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(i){this.$$set({clientstyling:i}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),t.flush()}}t.create_custom_element(o,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=o;
@@ -0,0 +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/CasinoPage-05ZglU1l.cjs")).then(({default:t})=>{!customElements.get("casino-page")&&customElements.define("casino-page",t.element)})}
@@ -0,0 +1,16 @@
1
+ if (typeof window != "undefined") {
2
+ let n = function(t) {
3
+ return function(...s) {
4
+ try {
5
+ return t.apply(this, s);
6
+ } catch (e) {
7
+ 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"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ };
13
+ customElements.define = n(customElements.define), import("../components/CasinoPage-BpIKXaav.js").then(({ default: t }) => {
14
+ !customElements.get("casino-page") && customElements.define("casino-page", t.element);
15
+ });
16
+ }
package/package.json CHANGED
@@ -1,39 +1,32 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-page",
3
- "version": "1.44.0",
4
- "main": "dist/casino-page.js",
5
- "svelte": "src/index.ts",
6
- "scripts": {
7
- "start": "sirv public",
8
- "build": "cross-env NODE_ENV=production rollup -c",
9
- "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
- "validate": "svelte-check",
11
- "test": "echo"
12
- },
13
- "devDependencies": {
14
- "@rollup/plugin-babel": "^5.3.0",
15
- "@rollup/plugin-commonjs": "^16.0.0",
16
- "@rollup/plugin-node-resolve": "^10.0.0",
17
- "@rollup/plugin-typescript": "^6.0.0",
18
- "@tsconfig/svelte": "^1.0.0",
19
- "rollup": "^2.3.4",
20
- "rollup-plugin-dev-server": "^0.4.3",
21
- "rollup-plugin-livereload": "^2.0.0",
22
- "rollup-plugin-svelte": "^7.0.0",
23
- "rollup-plugin-terser": "^7.0.0",
24
- "rollup-plugin-uglify": "^6.0.4",
25
- "svelte-check": "^1.0.0",
26
- "svelte-preprocess": "^5.0.0",
27
- "tslib": "^2.0.0",
28
- "typescript": "^3.9.3"
29
- },
30
- "dependencies": {
31
- "cross-env": "^7.0.3",
32
- "sirv-cli": "^1.0.0",
33
- "svelte": "^3.0.0"
3
+ "version": "1.45.2",
4
+ "type": "module",
5
+ "main": "es2015/casino-page.cjs",
6
+ "module": "es2015/casino-page.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./es2015/casino-page.js",
10
+ "require": "./es2015/casino-page.cjs"
11
+ },
12
+ "./es2015/casino-page.cjs": "./es2015/casino-page.cjs"
34
13
  },
14
+ "files": [
15
+ "es2015/",
16
+ "components"
17
+ ],
35
18
  "publishConfig": {
36
19
  "access": "public"
37
20
  },
38
- "gitHead": "701410f2b76dfe1ee4038f799b1e8e340c85cdb5"
21
+ "dependencies": {
22
+ "@everymatrix/casino-games-category-section": "1.0.72",
23
+ "@everymatrix/casino-random-game": "1.0.72",
24
+ "@everymatrix/casino-winners": "1.0.72",
25
+ "@everymatrix/casino-jackpot-banner": "1.0.72",
26
+ "@everymatrix/casino-collections-providers": "1.0.72",
27
+ "@everymatrix/casino-my-games": "1.0.72",
28
+ "@everymatrix/casino-search": "1.0.72",
29
+ "@everymatrix/casino-calendar": "1.0.72",
30
+ "@everymatrix/casino-play-random-game": "*"
31
+ }
39
32
  }
package/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
-
2
- ## casino-page widget changelogs
3
-
4
- | Version | Release date | Impacted areas | Changes |
5
- | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
- | 1.40.0 | Mon Sep 16 2024 | casino-page | fix(EMFE-32866)(casino-lobby,casino-page,casino-games-category-section): remove event communication with child components, replace with props |
7
- | 1.39.1 | Fri Sep 06 2024 | casino-page | fix(EMFE-32662)(casino-games-category-section,casino-page,casino-games-category-section-nd,casino-page-nd): Optimise transition between lobby rooms |
8
- | 1.37.9 | Tue Aug 20 2024 | casino-page | fix(EMFE-32446)(casino-page,casino-games-category-section,casino-games-category-section-nd): check if total of games is lesss then visible games to not display the show all games button |
9
- | 1.37.2 | Mon Aug 12 2024 | casino-page | feat(EMFE-31830)(casino-lobby,casino-page): integrate casino random game <br /> fix(EMFE-31799)(casino-games-category-section-nds,casino-lobby,casino-page): add... <br /> refactor(EMFE-31625)(casino-lobby,casino-page): remove legacy filters <br /> fix(EMFE-31127)(casino-games-category-section-nd,casino-lobby,casino-page,casino-game-page,casino-favorite-section,casino-most-played-section,casino-last-played-section): i wanna die so hard <br /> fix(EMFE-31127)(casino-games-category-section-nd,casino-favorites-section,casino-last-played-section,casino-most-played-section,casino-page): Fix the play button by adding new variables <br /> fix(EMFE-30724)(casino-search,casino-page): add missing translated keys <br /> fix(EMFE-30086)(casino-page): add spacing for jackpots widget for lower desktop resolutions <br /> fix(EMFE-29100)(casino-lobby,casino-page): resolve problems on script and complete task requirements <br /> chore(EMFE-28466)(casino-page): bump rvhelper and add a missing v1 |
10
- | 1.36.0 | Mon Jul 29 2024 | casino-page | feat(EMFE-31830)(casino-lobby,casino-page): integrate casino random game <br /> fix(EMFE-31799)(casino-games-category-section-nds,casino-lobby,casino-page): add... |
11
- | 1.34.1 | Tue Jun 25 2024 | casino-page | fix(EMFE-31127)(casino-games-category-section-nd,casino-lobby,casino-page,casino-game-page,casino-favorite-section,casino-most-played-section,casino-last-played-section): i wanna die so hard |
12
- | 1.29.4 | Wed Apr 17 2024 | casino-page | fix(EMFE-30724)(casino-search,casino-page): add missing translated keys |
13
- | 1.28.0 | Fri Mar 08 2024 | casino-page | fix(EMFE-30086)(casino-page): add spacing for jackpots widget for lower desktop resolutions |
14
- | 1.25.0 | Fri Jan 26 2024 | casino-page | fix(EMFE-29100)(casino-lobby,casino-page): resolve problems on script and complete task requirements |
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # @everymatrix/casino-page
2
- ---------
3
-
4
- ## First step
5
- ---------
6
- ```
7
- lerna bootstrap
8
- ```
9
-
10
- ## Run Widget
11
- ---------
12
- - starts server at port 5050
13
- - has livereload
14
-
15
- ```
16
- yarn run dev
17
- ```
18
-
19
- ## Build Widget
20
- ---------
21
- ```
22
- yarn run build
23
- ```
24
-
25
- ## Publishing widget
26
- ---------
27
- - Note add your user to the npm
28
- ```
29
- lerna publish
30
- ```