@everymatrix/casino-page 1.86.4 → 1.86.5

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 (100) hide show
  1. package/components/CasinoCalendar-4k288rHh.cjs +19 -0
  2. package/components/{CasinoCalendar-B9athdXu.js → CasinoCalendar-BNbVJJdG.js} +1010 -989
  3. package/components/{CasinoCalendar-US4h2Hvk.js → CasinoCalendar-DAKxxPPx.js} +845 -824
  4. package/components/{CasinoCalendarDailyDetails-qCDgzSZI.js → CasinoCalendarDailyDetails-C9QkDeeW.js} +38 -38
  5. package/components/{CasinoCalendarDailyDetails-CtKjozsd.cjs → CasinoCalendarDailyDetails-CerVlpW4.cjs} +1 -1
  6. package/components/{CasinoCalendarDailyDetails-C4NiLt00.js → CasinoCalendarDailyDetails-DG8jTkOb.js} +38 -38
  7. package/components/{CasinoCalendarDailyItem-Dsy3pV5t.js → CasinoCalendarDailyItem-77QxCgOg.js} +34 -34
  8. package/components/{CasinoCalendarDailyItem-a82YKite.cjs → CasinoCalendarDailyItem-B7YANGR4.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-BqsGqDUw.js → CasinoCalendarDailyItem-H9bFOk6V.js} +34 -34
  10. package/components/{CasinoCollectionsProviders-B8P5ilfl.js → CasinoCollectionsProviders-BRaAIVvV.js} +68 -68
  11. package/components/{CasinoCollectionsProviders-BLZo026s.js → CasinoCollectionsProviders-DOGIidgs.js} +44 -44
  12. package/components/{CasinoCollectionsProviders-C936QkAI.cjs → CasinoCollectionsProviders-OZw09qnR.cjs} +1 -1
  13. package/components/{CasinoFavoritesSection-DFl1IIkG.js → CasinoFavoritesSection-C-WTpxpq.js} +17 -17
  14. package/components/{CasinoFavoritesSection-B8VdjdgY.js → CasinoFavoritesSection-CZ-q50oD.js} +17 -17
  15. package/components/{CasinoFavoritesSection-BjjfIamg.cjs → CasinoFavoritesSection-DYzKNVZJ.cjs} +1 -1
  16. package/components/CasinoFilter-BP97bmoQ.cjs +1 -0
  17. package/components/{CasinoFilter-Cu-B0JVE.js → CasinoFilter-BqfBTs3X.js} +244 -245
  18. package/components/{CasinoFilter-Brq2dd8W.js → CasinoFilter-Dd_ByQUb.js} +223 -222
  19. package/components/{CasinoGameThumbnail-CeXacstF.js → CasinoGameThumbnail-CySg8Qzs.js} +1252 -1268
  20. package/components/CasinoGameThumbnail-W0nETKCH.cjs +47 -0
  21. package/components/{CasinoGameThumbnail-dTcMa5_w.js → CasinoGameThumbnail-ge_yVb-v.js} +778 -762
  22. package/components/{CasinoGamesCategorySection-CGZSX4Qs.js → CasinoGamesCategorySection-B2CXUJ-V.js} +301 -301
  23. package/components/{CasinoGamesCategorySection-DmgZ6F4T.js → CasinoGamesCategorySection-B8IjpDwj.js} +302 -302
  24. package/components/{CasinoGamesCategorySection-DNFUoHUY.cjs → CasinoGamesCategorySection-DCjn0aiz.cjs} +1 -1
  25. package/components/{CasinoJackpotBanner-DFhfp_Dj.js → CasinoJackpotBanner-Ba0HSy7J.js} +90 -90
  26. package/components/{CasinoJackpotBanner-C1RmEQF6.js → CasinoJackpotBanner-BuCeq-FN.js} +84 -84
  27. package/components/{CasinoJackpotBanner-DqxRahUL.cjs → CasinoJackpotBanner-DRtiH_Mn.cjs} +1 -1
  28. package/components/{CasinoLastPlayedSection-CAFFDTTc.js → CasinoLastPlayedSection-C5vsXbz8.js} +41 -41
  29. package/components/{CasinoLastPlayedSection-D6bW88M2.cjs → CasinoLastPlayedSection-CP4YzhAu.cjs} +1 -1
  30. package/components/{CasinoLastPlayedSection-Cwvr2pTt.js → CasinoLastPlayedSection-DJ9HO253.js} +41 -41
  31. package/components/{CasinoMostPlayedSection-BDEL6NF1.js → CasinoMostPlayedSection-Cj9P1O_g.js} +45 -45
  32. package/components/{CasinoMostPlayedSection-CjHezC0K.cjs → CasinoMostPlayedSection-DPG3YsM6.cjs} +1 -1
  33. package/components/{CasinoMostPlayedSection-D9lq9zAT.js → CasinoMostPlayedSection-_rcZwydD.js} +45 -45
  34. package/components/{CasinoMyGames-CBBj3oNk.js → CasinoMyGames-BCWaO0Ph.js} +33 -33
  35. package/components/{CasinoMyGames-CdZbU0N-.cjs → CasinoMyGames-Bqyyy2Me.cjs} +1 -1
  36. package/components/{CasinoMyGames-CPBodisx.js → CasinoMyGames-DA-mPnwJ.js} +34 -34
  37. package/components/{CasinoPage-BU-ox_zv.js → CasinoPage-CA4i1Mab.js} +119 -119
  38. package/components/{CasinoPage-C41UtoKN.js → CasinoPage-ChZMdGaK.js} +106 -106
  39. package/components/{CasinoPage-CDakhIvY.cjs → CasinoPage-Ct1hNeF-.cjs} +1 -1
  40. package/components/{CasinoRandomGame-BwOupdSZ.cjs → CasinoRandomGame-DRGWOXO6.cjs} +1 -1
  41. package/components/{CasinoRandomGame-U8QHdeoj.js → CasinoRandomGame-Dicpdv5N.js} +59 -59
  42. package/components/{CasinoRandomGame-C_CNG9MS.js → CasinoRandomGame-Mzhi_geU.js} +58 -58
  43. package/components/{CasinoSearch-l_Fef9YE.js → CasinoSearch-BkcRkT-Z.js} +82 -82
  44. package/components/{CasinoSearch-BAe7cS7r.js → CasinoSearch-CFh1KpPL.js} +85 -85
  45. package/components/{CasinoSearch-NcpOGdNZ.cjs → CasinoSearch-D14Ak2E9.cjs} +1 -1
  46. package/components/{CasinoSort-DJ0BE5kb.cjs → CasinoSort-BVyHskml.cjs} +1 -1
  47. package/components/{CasinoSort-DEeWkAHf.js → CasinoSort-DHqu-YG-.js} +111 -112
  48. package/components/{CasinoSort-BGbfsSOC.js → CasinoSort-DuvD0KkH.js} +103 -102
  49. package/components/{CasinoWinners-DnMFzeVH.js → CasinoWinners-BHA-xtsz.js} +148 -148
  50. package/components/{CasinoWinners-cSln9yQG.cjs → CasinoWinners-DWoEFnVn.cjs} +1 -1
  51. package/components/{CasinoWinners-BidD6fSv.js → CasinoWinners-DtlRi9Ya.js} +158 -158
  52. package/components/{GeneralAnimationLoading-CI1FkTFT.js → GeneralAnimationLoading-B00sPlMG.js} +14 -14
  53. package/components/{GeneralAnimationLoading-DyF1rRP4.js → GeneralAnimationLoading-DhrziAD2.js} +14 -14
  54. package/components/{GeneralAnimationLoading-BqZm_WCe.cjs → GeneralAnimationLoading-wnzFPEVd.cjs} +1 -1
  55. package/es2015/casino-page.cjs +1 -1
  56. package/es2015/casino-page.js +1 -1
  57. package/esnext/casino-page.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{casino-play-random-game-DuO9PliV.cjs → casino-play-random-game-Cl8BQ6zx.cjs} +1 -1
  60. package/stencil/{casino-play-random-game-Dge6-qaF.js → casino-play-random-game-DmsXPThq.js} +1 -1
  61. package/stencil/{casino-play-random-game-D9PFB7B2.js → casino-play-random-game-bUDjgSKo.js} +1 -1
  62. package/stencil/{casino-play-random-game_2-CunwpDd1.js → casino-play-random-game_2-Bf4CHBc9.js} +2 -2
  63. package/stencil/{casino-play-random-game_2-auPXMZnz.js → casino-play-random-game_2-C30-vRGp.js} +2 -2
  64. package/stencil/{casino-play-random-game_2-cZvlv_fo.cjs → casino-play-random-game_2-CCCLDakd.cjs} +2 -2
  65. package/stencil/index-328e660d-B6ge05AJ.js +560 -0
  66. package/stencil/index-328e660d-C6OCQOhB.cjs +1 -0
  67. package/stencil/index-328e660d-Duk3nD23.js +576 -0
  68. package/stencil/index-97d17652-B6BYeRne.js +542 -0
  69. package/stencil/index-97d17652-BOr4KAqq.js +558 -0
  70. package/stencil/index-97d17652-zTl06Vn9.cjs +1 -0
  71. package/stencil/index-b2193545-BZAG_Jnw.js +503 -0
  72. package/stencil/index-b2193545-DG7pnr-7.js +519 -0
  73. package/stencil/index-b2193545-DuCTLpV-.cjs +1 -0
  74. package/stencil/{ui-image-C1Fl5HOc.cjs → ui-image-BmLAbwvr.cjs} +1 -1
  75. package/stencil/{ui-image-DnOuibDF.js → ui-image-DDulMZDF.js} +1 -1
  76. package/stencil/{ui-image-_mAQXh8W.js → ui-image-DwWgscwP.js} +1 -1
  77. package/stencil/{ui-image-b7b48fe5-rCWcyktd.js → ui-image-b7b48fe5-BKRtoUuG.js} +1 -1
  78. package/stencil/{ui-image-b7b48fe5-CBB2FKRZ.js → ui-image-b7b48fe5-HA45CrsG.js} +1 -1
  79. package/stencil/{ui-image-b7b48fe5-DjCO-ZF4.cjs → ui-image-b7b48fe5-MC0x5ZQd.cjs} +1 -1
  80. package/stencil/{ui-image_2-BfZmduAK.js → ui-image_2-CmVho0dS.js} +2 -2
  81. package/stencil/{ui-image_2-ZFidgTXM.cjs → ui-image_2-CyqE6j_W.cjs} +1 -1
  82. package/stencil/{ui-image_2-BESQEo1l.js → ui-image_2-Daq38JGa.js} +2 -2
  83. package/stencil/{ui-skeleton-CWdppDyF.cjs → ui-skeleton-BWEKzqTN.cjs} +1 -1
  84. package/stencil/{ui-skeleton-TkMXeWrD.js → ui-skeleton-D_tu1FGi.js} +2 -2
  85. package/stencil/{ui-skeleton-QCtPK7l5.js → ui-skeleton-DgZQnowa.js} +2 -2
  86. package/stencil/{ui-skeleton-ed169f8f-CiWqRE71.js → ui-skeleton-ed169f8f-Bs1q2JQr.js} +1 -1
  87. package/stencil/{ui-skeleton-ed169f8f-pTYMIneT.js → ui-skeleton-ed169f8f-D2rWx_KU.js} +1 -1
  88. package/stencil/{ui-skeleton-ed169f8f-BT7QFq3s.cjs → ui-skeleton-ed169f8f-Ti6Ksz7V.cjs} +1 -1
  89. package/components/CasinoCalendar-C42gDFHO.cjs +0 -19
  90. package/components/CasinoFilter-C3jkZv6Z.cjs +0 -1
  91. package/components/CasinoGameThumbnail-Bcw2baBS.cjs +0 -47
  92. package/stencil/index-328e660d-A_dWaOAX.cjs +0 -1
  93. package/stencil/index-328e660d-BiHqu78m.js +0 -576
  94. package/stencil/index-328e660d-DJbpQFmN.js +0 -560
  95. package/stencil/index-97d17652-DvplcHtm.js +0 -558
  96. package/stencil/index-97d17652-ILzgTtTR.cjs +0 -1
  97. package/stencil/index-97d17652-p-iQtjus.js +0 -542
  98. package/stencil/index-b2193545-BkP0Nc2C.cjs +0 -1
  99. package/stencil/index-b2193545-CejVSlwL.js +0 -519
  100. package/stencil/index-b2193545-DL1I-QYR.js +0 -503
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-C42gDFHO.cjs");require("../stencil/ui-image-C1Fl5HOc.cjs");function ge(n,t){e.addMessages(n,t)}function je(n){e.$locale.set(n)}const _e={en:{loadingText:"Loading, please wait..."},"zh-hk":{loadingText:"加载请稍候 ..."},fr:{loadingText:"Chargement, veuillez patienter..."},ro:{loadingText:"Se incarca, va rugam asteptati..."},es:{loadingText:"Cargando"},pt:{loadingText:"Carregando, por favor espere..."},de:{loadingText:"Laden, bitte warten..."},hr:{loadingText:"Učitavanje"},"pt-br":{CarregandoText:"Carregando"},"es-mx":{CargandoText:"Cargando, por favor espere…"},tr:{loadingText:"Yükleniyor, lütfen bekleyin..."},"en-us":{loadingText:"Loading, please wait..."}};function Se(n){e.append_styles(n,"svelte-w5pa6u",':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title ui-image img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title ui-image img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #22B04E);border-color:var(--emw--color-primary, #22B04E) transparent var(--emw--color-primary, #22B04E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function he(n,t,a){const l=n.slice();return l[56]=t[a],l[58]=a,l}function Te(n){let t,a,l,r,m,s,b,C,w,h,_,g,j;function I(u,o){return u[8]?Ae:Ie}let k=I(n),p=k(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("div"),r=e.element("div"),m=e.space(),s=e.element("div"),p.c(),b=e.space(),C=e.element("div"),w=e.element("ui-image"),e.attr(r,"class","vendorLogo"),e.set_style(r,"background-image","url("+n[9]+")"),e.attr(s,"class","displayContainer"),e.src_url_equal(w.src,h=n[14])||e.set_custom_element_data(w,"src",h),e.set_custom_element_data(w,"alt",""),e.attr(C,"class","title"),e.attr(l,"class",_="mainWrapper "+n[0]+" "+(n[7]&&!n[8]?"mobile":n[8]?"tablet":"")),e.set_style(l,"background","url("+n[13]+")"),e.attr(a,"class","jackpotBanner"),e.attr(t,"class","")},m(u,o){e.insert(u,t,o),e.append(t,a),e.append(a,l),e.append(l,r),e.append(l,m),e.append(l,s),p.m(s,null),e.append(l,b),e.append(l,C),e.append(C,w),g||(j=e.listen(a,"click",n[35]),g=!0)},p(u,o){o[0]&512&&e.set_style(r,"background-image","url("+u[9]+")"),k===(k=I(u))&&p?p.p(u,o):(p.d(1),p=k(u),p&&(p.c(),p.m(s,null))),o[0]&16384&&!e.src_url_equal(w.src,h=u[14])&&e.set_custom_element_data(w,"src",h),o[0]&385&&_!==(_="mainWrapper "+u[0]+" "+(u[7]&&!u[8]?"mobile":u[8]?"tablet":""))&&e.attr(l,"class",_),o[0]&8192&&e.set_style(l,"background","url("+u[13]+")")},d(u){u&&e.detach(t),p.d(),g=!1,j()}}}function xe(n){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(a,l){e.insert(a,t,l)},p:e.noop,d(a){a&&e.detach(t)}}}function We(n){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(a,l){e.insert(a,t,l)},p:e.noop,d(a){a&&e.detach(t)}}}function Ae(n){let t,a,l,r,m,s,b,C=n[11][0]+"",w,h,_,g,j=(n[2]==="true"?n[16][0]:n[10][0])+"",I,k,p,u,o,f,S,K,N,q=n[11][1]+"",ie,Z,E,Q,H=(n[2]==="true"?n[16][1]:n[10][1])+"",G,$,ee,z,U,R,v,O,re,Y,J=n[11][2]+"",F,de,V,te,ae=(n[2]==="true"?n[6][2]:n[10][2])+"",se,pe,ue,M,P,B,ne,ce,le,X=n[11][3]+"",oe,me,D,i,d=(n[2]==="true"?n[6][3]:n[10][3])+"",L,fe,T=!n[3]&&ye(n),x=!n[3]&&be(n),W=!n[3]&&ke(n),A=!n[3]&&ve(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("div"),r=e.element("ui-image"),s=e.space(),b=e.element("span"),w=e.text(C),h=e.space(),_=e.element("span"),g=e.element("span"),I=e.text(j),k=e.space(),T&&T.c(),p=e.space(),u=e.element("div"),o=e.element("div"),f=e.element("ui-image"),K=e.space(),N=e.element("span"),ie=e.text(q),Z=e.space(),E=e.element("span"),Q=e.element("span"),G=e.text(H),$=e.space(),x&&x.c(),ee=e.space(),z=e.element("div"),U=e.element("div"),R=e.element("div"),v=e.element("ui-image"),re=e.space(),Y=e.element("span"),F=e.text(J),de=e.space(),V=e.element("span"),te=e.element("span"),se=e.text(ae),pe=e.space(),W&&W.c(),ue=e.space(),M=e.element("div"),P=e.element("div"),B=e.element("ui-image"),ce=e.space(),le=e.element("span"),oe=e.text(X),me=e.space(),D=e.element("span"),i=e.element("span"),L=e.text(d),fe=e.space(),A&&A.c(),e.set_custom_element_data(r,"class","displayCardIcon"),e.src_url_equal(r.src,m=n[12][0])||e.set_custom_element_data(r,"src",m),e.set_custom_element_data(r,"alt",""),e.attr(b,"class","cardLabel"),e.attr(l,"class","iconWrapper"),e.attr(g,"class","jackpotValue"),e.attr(_,"class","cardTextWrapper"),e.attr(a,"class","displayCard"),e.set_custom_element_data(f,"class","displayCardIcon"),e.src_url_equal(f.src,S=n[12][1])||e.set_custom_element_data(f,"src",S),e.set_custom_element_data(f,"alt",""),e.attr(N,"class","cardLabel"),e.attr(o,"class","iconWrapper"),e.attr(Q,"class","jackpotValue"),e.attr(E,"class","cardTextWrapper"),e.attr(u,"class","displayCard"),e.attr(t,"class","pairWrapper"),e.set_custom_element_data(v,"class","displayCardIcon"),e.src_url_equal(v.src,O=n[12][2])||e.set_custom_element_data(v,"src",O),e.set_custom_element_data(v,"alt",""),e.attr(Y,"class","cardLabel"),e.attr(R,"class","iconWrapper"),e.attr(te,"class","jackpotValue"),e.attr(V,"class","cardTextWrapper"),e.attr(U,"class","displayCard"),e.set_custom_element_data(B,"class","displayCardIcon"),e.src_url_equal(B.src,ne=n[12][3])||e.set_custom_element_data(B,"src",ne),e.set_custom_element_data(B,"alt",""),e.attr(le,"class","cardLabel"),e.attr(P,"class","iconWrapper"),e.attr(i,"class","jackpotValue"),e.attr(D,"class","cardTextWrapper"),e.attr(M,"class","displayCard"),e.attr(z,"class","pairWrapper")},m(c,y){e.insert(c,t,y),e.append(t,a),e.append(a,l),e.append(l,r),e.append(l,s),e.append(l,b),e.append(b,w),e.append(a,h),e.append(a,_),e.append(_,g),e.append(g,I),e.append(_,k),T&&T.m(_,null),e.append(t,p),e.append(t,u),e.append(u,o),e.append(o,f),e.append(o,K),e.append(o,N),e.append(N,ie),e.append(u,Z),e.append(u,E),e.append(E,Q),e.append(Q,G),e.append(E,$),x&&x.m(E,null),e.insert(c,ee,y),e.insert(c,z,y),e.append(z,U),e.append(U,R),e.append(R,v),e.append(R,re),e.append(R,Y),e.append(Y,F),e.append(U,de),e.append(U,V),e.append(V,te),e.append(te,se),e.append(V,pe),W&&W.m(V,null),e.append(z,ue),e.append(z,M),e.append(M,P),e.append(P,B),e.append(P,ce),e.append(P,le),e.append(le,oe),e.append(M,me),e.append(M,D),e.append(D,i),e.append(i,L),e.append(D,fe),A&&A.m(D,null)},p(c,y){y[0]&4096&&!e.src_url_equal(r.src,m=c[12][0])&&e.set_custom_element_data(r,"src",m),y[0]&2048&&C!==(C=c[11][0]+"")&&e.set_data(w,C),y[0]&66564&&j!==(j=(c[2]==="true"?c[16][0]:c[10][0])+"")&&e.set_data(I,j),c[3]?T&&(T.d(1),T=null):T?T.p(c,y):(T=ye(c),T.c(),T.m(_,null)),y[0]&4096&&!e.src_url_equal(f.src,S=c[12][1])&&e.set_custom_element_data(f,"src",S),y[0]&2048&&q!==(q=c[11][1]+"")&&e.set_data(ie,q),y[0]&66564&&H!==(H=(c[2]==="true"?c[16][1]:c[10][1])+"")&&e.set_data(G,H),c[3]?x&&(x.d(1),x=null):x?x.p(c,y):(x=be(c),x.c(),x.m(E,null)),y[0]&4096&&!e.src_url_equal(v.src,O=c[12][2])&&e.set_custom_element_data(v,"src",O),y[0]&2048&&J!==(J=c[11][2]+"")&&e.set_data(F,J),y[0]&1092&&ae!==(ae=(c[2]==="true"?c[6][2]:c[10][2])+"")&&e.set_data(se,ae),c[3]?W&&(W.d(1),W=null):W?W.p(c,y):(W=ke(c),W.c(),W.m(V,null)),y[0]&4096&&!e.src_url_equal(B.src,ne=c[12][3])&&e.set_custom_element_data(B,"src",ne),y[0]&2048&&X!==(X=c[11][3]+"")&&e.set_data(oe,X),y[0]&1092&&d!==(d=(c[2]==="true"?c[6][3]:c[10][3])+"")&&e.set_data(L,d),c[3]?A&&(A.d(1),A=null):A?A.p(c,y):(A=ve(c),A.c(),A.m(D,null))},d(c){c&&(e.detach(t),e.detach(ee),e.detach(z)),T&&T.d(),x&&x.d(),W&&W.d(),A&&A.d()}}}function Ie(n){let t,a=e.ensure_array_like(Array(4)),l=[];for(let r=0;r<a.length;r+=1)l[r]=Ce(he(n,a,r));return{c(){for(let r=0;r<l.length;r+=1)l[r].c();t=e.empty()},m(r,m){for(let s=0;s<l.length;s+=1)l[s]&&l[s].m(r,m);e.insert(r,t,m)},p(r,m){if(m[0]&72718){a=e.ensure_array_like(Array(4));let s;for(s=0;s<a.length;s+=1){const b=he(r,a,s);l[s]?l[s].p(b,m):(l[s]=Ce(b),l[s].c(),l[s].m(t.parentNode,t))}for(;s<l.length;s+=1)l[s].d(1);l.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(l,r)}}}function ye(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function be(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function ke(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function ve(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function we(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function Ce(n){var u;let t,a,l,r,m,s,b=n[11][n[58]]+"",C,w,h,_,g=(n[2]==="true"?n[16][n[58]]:(u=n[10][n[58]])!=null?u:"")+"",j,I,k,p=!n[3]&&we(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("ui-image"),m=e.space(),s=e.element("span"),C=e.text(b),w=e.space(),h=e.element("span"),_=e.element("span"),j=e.text(g),I=e.space(),p&&p.c(),k=e.space(),e.set_custom_element_data(l,"class","displayCardIcon"),e.src_url_equal(l.src,r=n[12][n[58]])||e.set_custom_element_data(l,"src",r),e.set_custom_element_data(l,"alt",""),e.attr(s,"class","cardLabel"),e.attr(a,"class","iconWrapper"),e.attr(_,"class","jackpotValue"),e.attr(h,"class","cardTextWrapper"),e.attr(t,"class","displayCard")},m(o,f){e.insert(o,t,f),e.append(t,a),e.append(a,l),e.append(a,m),e.append(a,s),e.append(s,C),e.append(t,w),e.append(t,h),e.append(h,_),e.append(_,j),e.append(h,I),p&&p.m(h,null),e.append(t,k)},p(o,f){var S;f[0]&4096&&!e.src_url_equal(l.src,r=o[12][o[58]])&&e.set_custom_element_data(l,"src",r),f[0]&2048&&b!==(b=o[11][o[58]]+"")&&e.set_data(C,b),f[0]&66564&&g!==(g=(o[2]==="true"?o[16][o[58]]:(S=o[10][o[58]])!=null?S:"")+"")&&e.set_data(j,g),o[3]?p&&(p.d(1),p=null):p?p.p(o,f):(p=we(o),p.c(),p.m(h,null))},d(o){o&&e.detach(t),p&&p.d()}}}function Ee(n){let t;function a(m,s){return m[15]?We:m[5]?xe:Te}let l=a(n),r=l(n);return{c(){t=e.element("div"),r.c()},m(m,s){e.insert(m,t,s),r.m(t,null),n[36](t)},p(m,s){l===(l=a(m))&&r?r.p(m,s):(r.d(1),r=l(m),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),n[36](null)}}}function Je(n,t,a){let l,{visualstructure:r=""}=t,{title:m=""}=t,{caticon0:s=""}=t,{caticon1:b=""}=t,{caticon2:C=""}=t,{caticon3:w=""}=t,{iconlabels:h=""}=t,{backgroundsrc:_=""}=t,{currency:g=""}=t,{backgroundsrcmobile:j=""}=t,{titlelogopath:I=""}=t,{lang:k="en"}=t,{clientstyling:p=""}=t,{clientstylingurl:u=""}=t,{translationurl:o=""}=t,{endpoint:f=""}=t,{gameid:S=""}=t,{mbsource:K}=t,{realtimeupdate:N="false"}=t,{currencylocale:q=""}=t,ie=window.navigator.userAgent,Z=!1,E=!1,Q="",H=[],G=[],$=[],ee=[],z=[],U="",R="",v,O=!0,re=!1,Y,J=null,F=[];const de=()=>{fetch(o).then(d=>d.json()).then(d=>{Object.keys(d).forEach(L=>{ge(L,d[L])})}).catch(d=>{console.log(d)})};Object.keys(_e).forEach(i=>{ge(i,_e[i])});const V=["typeSpread","typeLeft"],te=i=>{var L;const d=(L=i==null?void 0:i.items[0])==null?void 0:L.additionalData;d&&Object.values(d).forEach(fe=>H.push(+fe))},ae=i=>{var d;a(9,Q=((d=i==null?void 0:i.items[0])==null?void 0:d.vendorLogo)||"")},se=()=>{if(f&&k&&g){let i=new URL(`${f}/v1/casino/jackpots`);i.searchParams.append("filter",`id=${S}`),i.searchParams.append("language",k),i.searchParams.append("additionalDataCurrency",g),fetch(i.href).then(d=>d.json().then(L=>{a(5,O=!1),Y=L,G.includes(S)&&(te(Y),ae(Y))}).catch(L=>{a(15,re=!0),a(5,O=!1),console.error(L)}).finally(()=>{pe()}))}},pe=()=>{const i=v.getRootNode().host;i.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:i}}))},ue=()=>{let i=new URL(`${f}/v1/casino/jackpots/config`);fetch(i.href).then(d=>d.json()).then(d=>{a(34,G=d.egtJackpotIds.map(L=>L))})},M=()=>{a(7,Z=e.isMobile(ie)&&window.innerHeight/window.innerWidth>1),a(8,E=ne()),H.length!==0&&(a(10,$=B(H)),$.reverse()),a(11,ee=h?h.split(",").map(i=>i.trim().toUpperCase()):new Array(4).fill("")),V.includes(r.trim())?a(0,r=r.trim()):(console.warn(`Invalid Attribute Value: "${r}" is not a valid value for the "visualstructure" attribute. Defaulting to "${V[0]}"`),a(0,r=V[0])),a(13,U=j&&Z&&!E?j:_),a(14,R=I),a(12,z=[s,b,C,w])},P=i=>Intl.NumberFormat(q,{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:g}).format(i).replace(/\s/g,""),B=i=>q?i.map(d=>P(d)):i.map(d=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(d)),ne=()=>{const i=window.innerHeight/window.innerWidth;return .75<i&&i<1.6},ce=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:S},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${S}`})},le=()=>{je(k)},X=i=>{const d=JSON.parse(i.data);if(d.success&&d.data.messageType==="UpdateEgtJackpotBalance"&&d.data.jackpotAlias.split("_")[0]===S){const L=Number(d.data.jackpotAlias.split("_")[1])-1;a(6,F[L]=q?P(d.data.data[`${g}`].balance):d.data.data[`${g}`].balance.toString(),F)}},oe=()=>{N==="true"&&(M(),a(6,F=["","","",""]),J=new EventSource(`${f}/v1/encoder/jackpot/*/update`),J.addEventListener("message",X))};e.onMount(()=>()=>{}),e.onDestroy(()=>{J&&(J.removeEventListener("message",X),J.close(),J=null)});const me=()=>ce();function D(i){e.binding_callbacks[i?"unshift":"push"](()=>{v=i,a(4,v)})}return n.$$set=i=>{"visualstructure"in i&&a(0,r=i.visualstructure),"title"in i&&a(18,m=i.title),"caticon0"in i&&a(19,s=i.caticon0),"caticon1"in i&&a(20,b=i.caticon1),"caticon2"in i&&a(21,C=i.caticon2),"caticon3"in i&&a(22,w=i.caticon3),"iconlabels"in i&&a(23,h=i.iconlabels),"backgroundsrc"in i&&a(24,_=i.backgroundsrc),"currency"in i&&a(1,g=i.currency),"backgroundsrcmobile"in i&&a(25,j=i.backgroundsrcmobile),"titlelogopath"in i&&a(26,I=i.titlelogopath),"lang"in i&&a(27,k=i.lang),"clientstyling"in i&&a(28,p=i.clientstyling),"clientstylingurl"in i&&a(29,u=i.clientstylingurl),"translationurl"in i&&a(30,o=i.translationurl),"endpoint"in i&&a(31,f=i.endpoint),"gameid"in i&&a(32,S=i.gameid),"mbsource"in i&&a(33,K=i.mbsource),"realtimeupdate"in i&&a(2,N=i.realtimeupdate),"currencylocale"in i&&a(3,q=i.currencylocale)},n.$$.update=()=>{n.$$.dirty[1]&1&&f&&ue(),n.$$.dirty[0]&268435472&&p&&v&&e.setClientStyling(v,p),n.$$.dirty[0]&536870928&&u&&v&&e.setClientStylingURL(v,u),n.$$.dirty[0]&16|n.$$.dirty[1]&4&&K&&v&&e.setStreamStyling(v,`${K}.Style`),n.$$.dirty[0]&134217730|n.$$.dirty[1]&9&&f&&k&&g&&G.length>0&&se(),n.$$.dirty[0]&134217762&&g&&k&&!O&&M(),n.$$.dirty[0]&134217728&&k&&le(),n.$$.dirty[0]&1073741824&&o&&de(),n.$$.dirty[0]&4&&N&&oe(),n.$$.dirty[0]&64&&a(16,l=[...F].reverse())},[r,g,N,q,v,O,F,Z,E,Q,$,ee,z,U,R,re,l,ce,m,s,b,C,w,h,_,j,I,k,p,u,o,f,S,K,G,me,D]}class Le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Je,Ee,e.safe_not_equal,{visualstructure:0,title:18,caticon0:19,caticon1:20,caticon2:21,caticon3:22,iconlabels:23,backgroundsrc:24,currency:1,backgroundsrcmobile:25,titlelogopath:26,lang:27,clientstyling:28,clientstylingurl:29,translationurl:30,endpoint:31,gameid:32,mbsource:33,realtimeupdate:2,currencylocale:3},Se,[-1,-1])}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),e.flush()}get title(){return this.$$.ctx[18]}set title(t){this.$$set({title:t}),e.flush()}get caticon0(){return this.$$.ctx[19]}set caticon0(t){this.$$set({caticon0:t}),e.flush()}get caticon1(){return this.$$.ctx[20]}set caticon1(t){this.$$set({caticon1:t}),e.flush()}get caticon2(){return this.$$.ctx[21]}set caticon2(t){this.$$set({caticon2:t}),e.flush()}get caticon3(){return this.$$.ctx[22]}set caticon3(t){this.$$set({caticon3:t}),e.flush()}get iconlabels(){return this.$$.ctx[23]}set iconlabels(t){this.$$set({iconlabels:t}),e.flush()}get backgroundsrc(){return this.$$.ctx[24]}set backgroundsrc(t){this.$$set({backgroundsrc:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get backgroundsrcmobile(){return this.$$.ctx[25]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),e.flush()}get titlelogopath(){return this.$$.ctx[26]}set titlelogopath(t){this.$$set({titlelogopath:t}),e.flush()}get lang(){return this.$$.ctx[27]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[30]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get gameid(){return this.$$.ctx[32]}set gameid(t){this.$$set({gameid:t}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get realtimeupdate(){return this.$$.ctx[2]}set realtimeupdate(t){this.$$set({realtimeupdate:t}),e.flush()}get currencylocale(){return this.$$.ctx[3]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}}e.create_custom_element(Le,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{},mbsource:{},realtimeupdate:{},currencylocale:{}},[],[],!0);exports.default=Le;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-4k288rHh.cjs");require("../stencil/ui-image-BmLAbwvr.cjs");function ge(n,t){e.addMessages(n,t)}function je(n){e.$locale.set(n)}const _e={en:{loadingText:"Loading, please wait..."},"zh-hk":{loadingText:"加载请稍候 ..."},fr:{loadingText:"Chargement, veuillez patienter..."},ro:{loadingText:"Se incarca, va rugam asteptati..."},es:{loadingText:"Cargando"},pt:{loadingText:"Carregando, por favor espere..."},de:{loadingText:"Laden, bitte warten..."},hr:{loadingText:"Učitavanje"},"pt-br":{CarregandoText:"Carregando"},"es-mx":{CargandoText:"Cargando, por favor espere…"},tr:{loadingText:"Yükleniyor, lütfen bekleyin..."},"en-us":{loadingText:"Loading, please wait..."}};function Se(n){e.append_styles(n,"svelte-w5pa6u",':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title ui-image img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title ui-image img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #22B04E);border-color:var(--emw--color-primary, #22B04E) transparent var(--emw--color-primary, #22B04E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function he(n,t,a){const l=n.slice();return l[56]=t[a],l[58]=a,l}function Te(n){let t,a,l,r,m,s,b,C,w,h,_,g,j;function I(u,o){return u[8]?Ae:Ie}let k=I(n),p=k(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("div"),r=e.element("div"),m=e.space(),s=e.element("div"),p.c(),b=e.space(),C=e.element("div"),w=e.element("ui-image"),e.attr(r,"class","vendorLogo"),e.set_style(r,"background-image","url("+n[9]+")"),e.attr(s,"class","displayContainer"),e.src_url_equal(w.src,h=n[14])||e.set_custom_element_data(w,"src",h),e.set_custom_element_data(w,"alt",""),e.attr(C,"class","title"),e.attr(l,"class",_="mainWrapper "+n[0]+" "+(n[7]&&!n[8]?"mobile":n[8]?"tablet":"")),e.set_style(l,"background","url("+n[13]+")"),e.attr(a,"class","jackpotBanner"),e.attr(t,"class","")},m(u,o){e.insert(u,t,o),e.append(t,a),e.append(a,l),e.append(l,r),e.append(l,m),e.append(l,s),p.m(s,null),e.append(l,b),e.append(l,C),e.append(C,w),g||(j=e.listen(a,"click",n[35]),g=!0)},p(u,o){o[0]&512&&e.set_style(r,"background-image","url("+u[9]+")"),k===(k=I(u))&&p?p.p(u,o):(p.d(1),p=k(u),p&&(p.c(),p.m(s,null))),o[0]&16384&&!e.src_url_equal(w.src,h=u[14])&&e.set_custom_element_data(w,"src",h),o[0]&385&&_!==(_="mainWrapper "+u[0]+" "+(u[7]&&!u[8]?"mobile":u[8]?"tablet":""))&&e.attr(l,"class",_),o[0]&8192&&e.set_style(l,"background","url("+u[13]+")")},d(u){u&&e.detach(t),p.d(),g=!1,j()}}}function xe(n){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(a,l){e.insert(a,t,l)},p:e.noop,d(a){a&&e.detach(t)}}}function We(n){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(a,l){e.insert(a,t,l)},p:e.noop,d(a){a&&e.detach(t)}}}function Ae(n){let t,a,l,r,m,s,b,C=n[11][0]+"",w,h,_,g,j=(n[2]==="true"?n[16][0]:n[10][0])+"",I,k,p,u,o,f,S,K,N,q=n[11][1]+"",ie,Z,E,Q,H=(n[2]==="true"?n[16][1]:n[10][1])+"",G,$,ee,z,U,R,v,O,re,Y,J=n[11][2]+"",F,de,V,te,ae=(n[2]==="true"?n[6][2]:n[10][2])+"",se,pe,ue,M,P,B,ne,ce,le,X=n[11][3]+"",oe,me,D,i,d=(n[2]==="true"?n[6][3]:n[10][3])+"",L,fe,T=!n[3]&&ye(n),x=!n[3]&&be(n),W=!n[3]&&ke(n),A=!n[3]&&ve(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("div"),r=e.element("ui-image"),s=e.space(),b=e.element("span"),w=e.text(C),h=e.space(),_=e.element("span"),g=e.element("span"),I=e.text(j),k=e.space(),T&&T.c(),p=e.space(),u=e.element("div"),o=e.element("div"),f=e.element("ui-image"),K=e.space(),N=e.element("span"),ie=e.text(q),Z=e.space(),E=e.element("span"),Q=e.element("span"),G=e.text(H),$=e.space(),x&&x.c(),ee=e.space(),z=e.element("div"),U=e.element("div"),R=e.element("div"),v=e.element("ui-image"),re=e.space(),Y=e.element("span"),F=e.text(J),de=e.space(),V=e.element("span"),te=e.element("span"),se=e.text(ae),pe=e.space(),W&&W.c(),ue=e.space(),M=e.element("div"),P=e.element("div"),B=e.element("ui-image"),ce=e.space(),le=e.element("span"),oe=e.text(X),me=e.space(),D=e.element("span"),i=e.element("span"),L=e.text(d),fe=e.space(),A&&A.c(),e.set_custom_element_data(r,"class","displayCardIcon"),e.src_url_equal(r.src,m=n[12][0])||e.set_custom_element_data(r,"src",m),e.set_custom_element_data(r,"alt",""),e.attr(b,"class","cardLabel"),e.attr(l,"class","iconWrapper"),e.attr(g,"class","jackpotValue"),e.attr(_,"class","cardTextWrapper"),e.attr(a,"class","displayCard"),e.set_custom_element_data(f,"class","displayCardIcon"),e.src_url_equal(f.src,S=n[12][1])||e.set_custom_element_data(f,"src",S),e.set_custom_element_data(f,"alt",""),e.attr(N,"class","cardLabel"),e.attr(o,"class","iconWrapper"),e.attr(Q,"class","jackpotValue"),e.attr(E,"class","cardTextWrapper"),e.attr(u,"class","displayCard"),e.attr(t,"class","pairWrapper"),e.set_custom_element_data(v,"class","displayCardIcon"),e.src_url_equal(v.src,O=n[12][2])||e.set_custom_element_data(v,"src",O),e.set_custom_element_data(v,"alt",""),e.attr(Y,"class","cardLabel"),e.attr(R,"class","iconWrapper"),e.attr(te,"class","jackpotValue"),e.attr(V,"class","cardTextWrapper"),e.attr(U,"class","displayCard"),e.set_custom_element_data(B,"class","displayCardIcon"),e.src_url_equal(B.src,ne=n[12][3])||e.set_custom_element_data(B,"src",ne),e.set_custom_element_data(B,"alt",""),e.attr(le,"class","cardLabel"),e.attr(P,"class","iconWrapper"),e.attr(i,"class","jackpotValue"),e.attr(D,"class","cardTextWrapper"),e.attr(M,"class","displayCard"),e.attr(z,"class","pairWrapper")},m(c,y){e.insert(c,t,y),e.append(t,a),e.append(a,l),e.append(l,r),e.append(l,s),e.append(l,b),e.append(b,w),e.append(a,h),e.append(a,_),e.append(_,g),e.append(g,I),e.append(_,k),T&&T.m(_,null),e.append(t,p),e.append(t,u),e.append(u,o),e.append(o,f),e.append(o,K),e.append(o,N),e.append(N,ie),e.append(u,Z),e.append(u,E),e.append(E,Q),e.append(Q,G),e.append(E,$),x&&x.m(E,null),e.insert(c,ee,y),e.insert(c,z,y),e.append(z,U),e.append(U,R),e.append(R,v),e.append(R,re),e.append(R,Y),e.append(Y,F),e.append(U,de),e.append(U,V),e.append(V,te),e.append(te,se),e.append(V,pe),W&&W.m(V,null),e.append(z,ue),e.append(z,M),e.append(M,P),e.append(P,B),e.append(P,ce),e.append(P,le),e.append(le,oe),e.append(M,me),e.append(M,D),e.append(D,i),e.append(i,L),e.append(D,fe),A&&A.m(D,null)},p(c,y){y[0]&4096&&!e.src_url_equal(r.src,m=c[12][0])&&e.set_custom_element_data(r,"src",m),y[0]&2048&&C!==(C=c[11][0]+"")&&e.set_data(w,C),y[0]&66564&&j!==(j=(c[2]==="true"?c[16][0]:c[10][0])+"")&&e.set_data(I,j),c[3]?T&&(T.d(1),T=null):T?T.p(c,y):(T=ye(c),T.c(),T.m(_,null)),y[0]&4096&&!e.src_url_equal(f.src,S=c[12][1])&&e.set_custom_element_data(f,"src",S),y[0]&2048&&q!==(q=c[11][1]+"")&&e.set_data(ie,q),y[0]&66564&&H!==(H=(c[2]==="true"?c[16][1]:c[10][1])+"")&&e.set_data(G,H),c[3]?x&&(x.d(1),x=null):x?x.p(c,y):(x=be(c),x.c(),x.m(E,null)),y[0]&4096&&!e.src_url_equal(v.src,O=c[12][2])&&e.set_custom_element_data(v,"src",O),y[0]&2048&&J!==(J=c[11][2]+"")&&e.set_data(F,J),y[0]&1092&&ae!==(ae=(c[2]==="true"?c[6][2]:c[10][2])+"")&&e.set_data(se,ae),c[3]?W&&(W.d(1),W=null):W?W.p(c,y):(W=ke(c),W.c(),W.m(V,null)),y[0]&4096&&!e.src_url_equal(B.src,ne=c[12][3])&&e.set_custom_element_data(B,"src",ne),y[0]&2048&&X!==(X=c[11][3]+"")&&e.set_data(oe,X),y[0]&1092&&d!==(d=(c[2]==="true"?c[6][3]:c[10][3])+"")&&e.set_data(L,d),c[3]?A&&(A.d(1),A=null):A?A.p(c,y):(A=ve(c),A.c(),A.m(D,null))},d(c){c&&(e.detach(t),e.detach(ee),e.detach(z)),T&&T.d(),x&&x.d(),W&&W.d(),A&&A.d()}}}function Ie(n){let t,a=e.ensure_array_like(Array(4)),l=[];for(let r=0;r<a.length;r+=1)l[r]=Ce(he(n,a,r));return{c(){for(let r=0;r<l.length;r+=1)l[r].c();t=e.empty()},m(r,m){for(let s=0;s<l.length;s+=1)l[s]&&l[s].m(r,m);e.insert(r,t,m)},p(r,m){if(m[0]&72718){a=e.ensure_array_like(Array(4));let s;for(s=0;s<a.length;s+=1){const b=he(r,a,s);l[s]?l[s].p(b,m):(l[s]=Ce(b),l[s].c(),l[s].m(t.parentNode,t))}for(;s<l.length;s+=1)l[s].d(1);l.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(l,r)}}}function ye(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function be(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function ke(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function ve(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function we(n){let t,a;return{c(){t=e.element("span"),a=e.text(n[1]),e.attr(t,"class","jackpot-currency")},m(l,r){e.insert(l,t,r),e.append(t,a)},p(l,r){r[0]&2&&e.set_data(a,l[1])},d(l){l&&e.detach(t)}}}function Ce(n){var u;let t,a,l,r,m,s,b=n[11][n[58]]+"",C,w,h,_,g=(n[2]==="true"?n[16][n[58]]:(u=n[10][n[58]])!=null?u:"")+"",j,I,k,p=!n[3]&&we(n);return{c(){t=e.element("div"),a=e.element("div"),l=e.element("ui-image"),m=e.space(),s=e.element("span"),C=e.text(b),w=e.space(),h=e.element("span"),_=e.element("span"),j=e.text(g),I=e.space(),p&&p.c(),k=e.space(),e.set_custom_element_data(l,"class","displayCardIcon"),e.src_url_equal(l.src,r=n[12][n[58]])||e.set_custom_element_data(l,"src",r),e.set_custom_element_data(l,"alt",""),e.attr(s,"class","cardLabel"),e.attr(a,"class","iconWrapper"),e.attr(_,"class","jackpotValue"),e.attr(h,"class","cardTextWrapper"),e.attr(t,"class","displayCard")},m(o,f){e.insert(o,t,f),e.append(t,a),e.append(a,l),e.append(a,m),e.append(a,s),e.append(s,C),e.append(t,w),e.append(t,h),e.append(h,_),e.append(_,j),e.append(h,I),p&&p.m(h,null),e.append(t,k)},p(o,f){var S;f[0]&4096&&!e.src_url_equal(l.src,r=o[12][o[58]])&&e.set_custom_element_data(l,"src",r),f[0]&2048&&b!==(b=o[11][o[58]]+"")&&e.set_data(C,b),f[0]&66564&&g!==(g=(o[2]==="true"?o[16][o[58]]:(S=o[10][o[58]])!=null?S:"")+"")&&e.set_data(j,g),o[3]?p&&(p.d(1),p=null):p?p.p(o,f):(p=we(o),p.c(),p.m(h,null))},d(o){o&&e.detach(t),p&&p.d()}}}function Ee(n){let t;function a(m,s){return m[15]?We:m[5]?xe:Te}let l=a(n),r=l(n);return{c(){t=e.element("div"),r.c()},m(m,s){e.insert(m,t,s),r.m(t,null),n[36](t)},p(m,s){l===(l=a(m))&&r?r.p(m,s):(r.d(1),r=l(m),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),n[36](null)}}}function Je(n,t,a){let l,{visualstructure:r=""}=t,{title:m=""}=t,{caticon0:s=""}=t,{caticon1:b=""}=t,{caticon2:C=""}=t,{caticon3:w=""}=t,{iconlabels:h=""}=t,{backgroundsrc:_=""}=t,{currency:g=""}=t,{backgroundsrcmobile:j=""}=t,{titlelogopath:I=""}=t,{lang:k="en"}=t,{clientstyling:p=""}=t,{clientstylingurl:u=""}=t,{translationurl:o=""}=t,{endpoint:f=""}=t,{gameid:S=""}=t,{mbsource:K}=t,{realtimeupdate:N="false"}=t,{currencylocale:q=""}=t,ie=window.navigator.userAgent,Z=!1,E=!1,Q="",H=[],G=[],$=[],ee=[],z=[],U="",R="",v,O=!0,re=!1,Y,J=null,F=[];const de=()=>{fetch(o).then(d=>d.json()).then(d=>{Object.keys(d).forEach(L=>{ge(L,d[L])})}).catch(d=>{console.log(d)})};Object.keys(_e).forEach(i=>{ge(i,_e[i])});const V=["typeSpread","typeLeft"],te=i=>{var L;const d=(L=i==null?void 0:i.items[0])==null?void 0:L.additionalData;d&&Object.values(d).forEach(fe=>H.push(+fe))},ae=i=>{var d;a(9,Q=((d=i==null?void 0:i.items[0])==null?void 0:d.vendorLogo)||"")},se=()=>{if(f&&k&&g){let i=new URL(`${f}/v1/casino/jackpots`);i.searchParams.append("filter",`id=${S}`),i.searchParams.append("language",k),i.searchParams.append("additionalDataCurrency",g),fetch(i.href).then(d=>d.json().then(L=>{a(5,O=!1),Y=L,G.includes(S)&&(te(Y),ae(Y))}).catch(L=>{a(15,re=!0),a(5,O=!1),console.error(L)}).finally(()=>{pe()}))}},pe=()=>{const i=v.getRootNode().host;i.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:i}}))},ue=()=>{let i=new URL(`${f}/v1/casino/jackpots/config`);fetch(i.href).then(d=>d.json()).then(d=>{a(34,G=d.egtJackpotIds.map(L=>L))})},M=()=>{a(7,Z=e.isMobile(ie)&&window.innerHeight/window.innerWidth>1),a(8,E=ne()),H.length!==0&&(a(10,$=B(H)),$.reverse()),a(11,ee=h?h.split(",").map(i=>i.trim().toUpperCase()):new Array(4).fill("")),V.includes(r.trim())?a(0,r=r.trim()):(console.warn(`Invalid Attribute Value: "${r}" is not a valid value for the "visualstructure" attribute. Defaulting to "${V[0]}"`),a(0,r=V[0])),a(13,U=j&&Z&&!E?j:_),a(14,R=I),a(12,z=[s,b,C,w])},P=i=>Intl.NumberFormat(q,{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:g}).format(i).replace(/\s/g,""),B=i=>q?i.map(d=>P(d)):i.map(d=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(d)),ne=()=>{const i=window.innerHeight/window.innerWidth;return .75<i&&i<1.6},ce=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:S},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${S}`})},le=()=>{je(k)},X=i=>{const d=JSON.parse(i.data);if(d.success&&d.data.messageType==="UpdateEgtJackpotBalance"&&d.data.jackpotAlias.split("_")[0]===S){const L=Number(d.data.jackpotAlias.split("_")[1])-1;a(6,F[L]=q?P(d.data.data[`${g}`].balance):d.data.data[`${g}`].balance.toString(),F)}},oe=()=>{N==="true"&&(M(),a(6,F=["","","",""]),J=new EventSource(`${f}/v1/encoder/jackpot/*/update`),J.addEventListener("message",X))};e.onMount(()=>()=>{}),e.onDestroy(()=>{J&&(J.removeEventListener("message",X),J.close(),J=null)});const me=()=>ce();function D(i){e.binding_callbacks[i?"unshift":"push"](()=>{v=i,a(4,v)})}return n.$$set=i=>{"visualstructure"in i&&a(0,r=i.visualstructure),"title"in i&&a(18,m=i.title),"caticon0"in i&&a(19,s=i.caticon0),"caticon1"in i&&a(20,b=i.caticon1),"caticon2"in i&&a(21,C=i.caticon2),"caticon3"in i&&a(22,w=i.caticon3),"iconlabels"in i&&a(23,h=i.iconlabels),"backgroundsrc"in i&&a(24,_=i.backgroundsrc),"currency"in i&&a(1,g=i.currency),"backgroundsrcmobile"in i&&a(25,j=i.backgroundsrcmobile),"titlelogopath"in i&&a(26,I=i.titlelogopath),"lang"in i&&a(27,k=i.lang),"clientstyling"in i&&a(28,p=i.clientstyling),"clientstylingurl"in i&&a(29,u=i.clientstylingurl),"translationurl"in i&&a(30,o=i.translationurl),"endpoint"in i&&a(31,f=i.endpoint),"gameid"in i&&a(32,S=i.gameid),"mbsource"in i&&a(33,K=i.mbsource),"realtimeupdate"in i&&a(2,N=i.realtimeupdate),"currencylocale"in i&&a(3,q=i.currencylocale)},n.$$.update=()=>{n.$$.dirty[1]&1&&f&&ue(),n.$$.dirty[0]&268435472&&p&&v&&e.setClientStyling(v,p),n.$$.dirty[0]&536870928&&u&&v&&e.setClientStylingURL(v,u),n.$$.dirty[0]&16|n.$$.dirty[1]&4&&K&&v&&e.setStreamStyling(v,`${K}.Style`),n.$$.dirty[0]&134217730|n.$$.dirty[1]&9&&f&&k&&g&&G.length>0&&se(),n.$$.dirty[0]&134217762&&g&&k&&!O&&M(),n.$$.dirty[0]&134217728&&k&&le(),n.$$.dirty[0]&1073741824&&o&&de(),n.$$.dirty[0]&4&&N&&oe(),n.$$.dirty[0]&64&&a(16,l=[...F].reverse())},[r,g,N,q,v,O,F,Z,E,Q,$,ee,z,U,R,re,l,ce,m,s,b,C,w,h,_,j,I,k,p,u,o,f,S,K,G,me,D]}class Le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Je,Ee,e.safe_not_equal,{visualstructure:0,title:18,caticon0:19,caticon1:20,caticon2:21,caticon3:22,iconlabels:23,backgroundsrc:24,currency:1,backgroundsrcmobile:25,titlelogopath:26,lang:27,clientstyling:28,clientstylingurl:29,translationurl:30,endpoint:31,gameid:32,mbsource:33,realtimeupdate:2,currencylocale:3},Se,[-1,-1])}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),e.flush()}get title(){return this.$$.ctx[18]}set title(t){this.$$set({title:t}),e.flush()}get caticon0(){return this.$$.ctx[19]}set caticon0(t){this.$$set({caticon0:t}),e.flush()}get caticon1(){return this.$$.ctx[20]}set caticon1(t){this.$$set({caticon1:t}),e.flush()}get caticon2(){return this.$$.ctx[21]}set caticon2(t){this.$$set({caticon2:t}),e.flush()}get caticon3(){return this.$$.ctx[22]}set caticon3(t){this.$$set({caticon3:t}),e.flush()}get iconlabels(){return this.$$.ctx[23]}set iconlabels(t){this.$$set({iconlabels:t}),e.flush()}get backgroundsrc(){return this.$$.ctx[24]}set backgroundsrc(t){this.$$set({backgroundsrc:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get backgroundsrcmobile(){return this.$$.ctx[25]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),e.flush()}get titlelogopath(){return this.$$.ctx[26]}set titlelogopath(t){this.$$set({titlelogopath:t}),e.flush()}get lang(){return this.$$.ctx[27]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[28]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[29]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[30]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get gameid(){return this.$$.ctx[32]}set gameid(t){this.$$set({gameid:t}),e.flush()}get mbsource(){return this.$$.ctx[33]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get realtimeupdate(){return this.$$.ctx[2]}set realtimeupdate(t){this.$$set({realtimeupdate:t}),e.flush()}get currencylocale(){return this.$$.ctx[3]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}}e.create_custom_element(Le,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{},mbsource:{},realtimeupdate:{},currencylocale:{}},[],[],!0);exports.default=Le;
@@ -1,12 +1,12 @@
1
- import { a as ee, $ as te, S as ae, i as se, f as l, c as ie, s as ne, b as le, e as P, y as A, d as M, z as B, G as I, j as D, k as re, o as oe, p as ue, q as ce, r as me, l as ge, H as i, x as de, E as fe, J as he, P as ye } from "./CasinoCalendar-B9athdXu.js";
2
- import "./CasinoFavoritesSection-DFl1IIkG.js";
3
- function V(s, e) {
1
+ import { a as ee, $ as te, S as ae, i as se, s as ie, f as l, b as ne, n as H, d as M, h as D, p as Z, j as L, r as A, k as le, o as re, C as oe, m as ue, q as ce, E as i, P as me, H as ge, I as de, J as fe, K as he, L as ye } from "./CasinoCalendar-DAKxxPPx.js";
2
+ import "./CasinoFavoritesSection-CZ-q50oD.js";
3
+ function K(s, e) {
4
4
  ee(s, e);
5
5
  }
6
6
  function be(s) {
7
7
  te.set(s);
8
8
  }
9
- const Z = {
9
+ const V = {
10
10
  en: {
11
11
  noRecentGames: "You haven't played yet but here you will find in the future a list of your games."
12
12
  },
@@ -33,13 +33,13 @@ const Z = {
33
33
  }
34
34
  };
35
35
  function ve(s) {
36
- le(s, "svelte-9pcrt1", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
36
+ ne(s, "svelte-9pcrt1", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}");
37
37
  }
38
38
  function we(s) {
39
39
  let e;
40
40
  return {
41
41
  c() {
42
- e = P("casino-games-category-section"), i(
42
+ e = L("casino-games-category-section"), i(
43
43
  e,
44
44
  "session",
45
45
  /*session*/
@@ -137,7 +137,7 @@ function we(s) {
137
137
  );
138
138
  },
139
139
  m(t, n) {
140
- M(t, e, n);
140
+ D(t, e, n);
141
141
  },
142
142
  p(t, n) {
143
143
  n[0] & /*session*/
@@ -257,7 +257,7 @@ function we(s) {
257
257
  );
258
258
  },
259
259
  d(t) {
260
- t && D(e);
260
+ t && M(e);
261
261
  }
262
262
  };
263
263
  }
@@ -268,18 +268,18 @@ function _e(s) {
268
268
  ), n;
269
269
  return {
270
270
  c() {
271
- e = P("p"), n = de(t), A(e, "class", "SearchLoading");
271
+ e = L("p"), n = ce(t), A(e, "class", "SearchLoading");
272
272
  },
273
273
  m(o, r) {
274
- M(o, e, r), B(e, n);
274
+ D(o, e, r), Z(e, n);
275
275
  },
276
276
  p(o, r) {
277
277
  r[0] & /*$_*/
278
278
  2097152 && t !== (t = /*$_*/
279
- o[21]("noRecentGames") + "") && fe(n, t);
279
+ o[21]("noRecentGames") + "") && ue(n, t);
280
280
  },
281
281
  d(o) {
282
- o && D(e);
282
+ o && M(e);
283
283
  }
284
284
  };
285
285
  }
@@ -294,43 +294,43 @@ function ke(s) {
294
294
  let o = n(s), r = o(s);
295
295
  return {
296
296
  c() {
297
- e = P("div"), t = P("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
297
+ e = L("div"), t = L("div"), r.c(), A(t, "class", "CasinoLastPlayedSection"), A(e, "class", "CasinoGamesCategorySectionContainer");
298
298
  },
299
299
  m(m, d) {
300
- M(m, e, d), B(e, t), r.m(t, null), s[26](e);
300
+ D(m, e, d), Z(e, t), r.m(t, null), s[26](e);
301
301
  },
302
302
  p(m, d) {
303
303
  o === (o = n(m)) && r ? r.p(m, d) : (r.d(1), r = o(m), r && (r.c(), r.m(t, null)));
304
304
  },
305
- i: I,
306
- o: I,
305
+ i: H,
306
+ o: H,
307
307
  d(m) {
308
- m && D(e), r.d(), s[26](null);
308
+ m && M(e), r.d(), s[26](null);
309
309
  }
310
310
  };
311
311
  }
312
- function Pe(s, e, t) {
312
+ function Le(s, e, t) {
313
313
  let n;
314
- re(s, he, (a) => t(21, n = a));
315
- let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: z = "false" } = e, { integratedgameframedesktop: F = "false" } = e, { gamepagemodalurl: N = "false" } = e, { showgamename: O = "" } = e, { visiblegames: L = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: S = "Last30Days" } = e, { lastplayedorder: C = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, K = window.navigator.userAgent, Y = !1, k = [], J, f;
314
+ le(s, ye, (a) => t(21, n = a));
315
+ let { endpoint: o = "" } = e, { datasource: r = "" } = e, { currency: m = "" } = e, { lang: d = "" } = e, { session: E = "" } = e, { userid: y = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: v = "" } = e, { translationurl: w = "" } = e, { livecasino: _ = "false" } = e, { integratedgameframemobile: F = "false" } = e, { integratedgameframedesktop: N = "false" } = e, { gamepagemodalurl: z = "false" } = e, { showgamename: O = "" } = e, { visiblegames: P = "" } = e, { favorites: T = "" } = e, { lastplayedperiod: C = "Last30Days" } = e, { lastplayedorder: S = "" } = e, { lastplayedlimit: j = "" } = e, { casinomygames: G = "false" } = e, { lastplayedunique: R = "true" } = e, { fetchviaevent: U = "true" } = e, { mbsource: q } = e, B = window.navigator.userAgent, Y = !1, k = [], I, f;
316
316
  const Q = () => {
317
317
  fetch(w).then((g) => g.json()).then((g) => {
318
318
  Object.keys(g).forEach((u) => {
319
- V(u, g[u]);
319
+ K(u, g[u]);
320
320
  });
321
321
  }).catch((g) => {
322
322
  console.log(g);
323
323
  });
324
324
  };
325
- Object.keys(Z).forEach((a) => {
326
- V(a, Z[a]);
325
+ Object.keys(V).forEach((a) => {
326
+ K(a, V[a]);
327
327
  });
328
328
  const W = () => new Promise((a, g) => {
329
329
  let u = new URL(`${o}/v1/player/${y}/games/last-played`);
330
- u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", C), u.searchParams.append("period", S), ye(K) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), J = _ ? u : u.href, fetch(J).then((c) => c.json()).then((c) => {
330
+ u.searchParams.append("unique", R), u.searchParams.append("limit", j), u.searchParams.append("order", S), u.searchParams.append("period", C), me(B) === "PC" ? u.searchParams.append("device", "Desktop") : u.searchParams.append("device", "Mobile"), I = _ ? u : u.href, fetch(I).then((c) => c.json()).then((c) => {
331
331
  c.items = c.items.filter(($) => {
332
- let H = !0;
333
- return $.gameCode == "OddsMatrix2" && (c.count--, H = !1), H;
332
+ let J = !0;
333
+ return $.gameCode == "OddsMatrix2" && (c.count--, J = !1), J;
334
334
  }), a(c), window.postMessage(
335
335
  {
336
336
  type: "AddNewCategory",
@@ -349,7 +349,7 @@ function Pe(s, e, t) {
349
349
  let h = new URL(`${o}/v1/casino/games/${u.gameId}`);
350
350
  h.searchParams.append("datasource", r), _ ? g.push(fetch(h.href).then((c) => c.json())) : g.push(fetch(h.href).then((c) => c.json()));
351
351
  }), Promise.all(g).then((u) => {
352
- k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(L))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
352
+ k = u.filter((h) => !("error" in h)).map((h) => h[0]), G === "true" && (k = k.slice(0, JSON.parse(P))), window.postMessage({ type: "LastPlayedData", lastPlayedGames: k }, window.location.href);
353
353
  });
354
354
  } else
355
355
  t(20, Y = !0);
@@ -357,22 +357,22 @@ function Pe(s, e, t) {
357
357
  }, p = () => {
358
358
  be(d);
359
359
  };
360
- oe(() => () => {
360
+ re(() => () => {
361
361
  });
362
362
  function x(a) {
363
- ue[a ? "unshift" : "push"](() => {
363
+ oe[a ? "unshift" : "push"](() => {
364
364
  f = a, t(19, f);
365
365
  });
366
366
  }
367
367
  return s.$$set = (a) => {
368
- "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, E = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, z = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, F = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, N = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, L = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, S = a.lastplayedperiod), "lastplayedorder" in a && t(23, C = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
368
+ "endpoint" in a && t(0, o = a.endpoint), "datasource" in a && t(1, r = a.datasource), "currency" in a && t(2, m = a.currency), "lang" in a && t(3, d = a.lang), "session" in a && t(4, E = a.session), "userid" in a && t(5, y = a.userid), "clientstyling" in a && t(6, b = a.clientstyling), "clientstylingurl" in a && t(7, v = a.clientstylingurl), "translationurl" in a && t(8, w = a.translationurl), "livecasino" in a && t(9, _ = a.livecasino), "integratedgameframemobile" in a && t(10, F = a.integratedgameframemobile), "integratedgameframedesktop" in a && t(11, N = a.integratedgameframedesktop), "gamepagemodalurl" in a && t(12, z = a.gamepagemodalurl), "showgamename" in a && t(13, O = a.showgamename), "visiblegames" in a && t(14, P = a.visiblegames), "favorites" in a && t(15, T = a.favorites), "lastplayedperiod" in a && t(22, C = a.lastplayedperiod), "lastplayedorder" in a && t(23, S = a.lastplayedorder), "lastplayedlimit" in a && t(24, j = a.lastplayedlimit), "casinomygames" in a && t(16, G = a.casinomygames), "lastplayedunique" in a && t(25, R = a.lastplayedunique), "fetchviaevent" in a && t(17, U = a.fetchviaevent), "mbsource" in a && t(18, q = a.mbsource);
369
369
  }, s.$$.update = () => {
370
370
  s.$$.dirty[0] & /*endpoint, userid, lang*/
371
371
  41 && o && y && d && X(), s.$$.dirty[0] & /*translationurl*/
372
372
  256 && w && Q(), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
373
- 524352 && b && f && ce(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
374
- 524416 && v && f && me(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
375
- 786432 && f && ge(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
373
+ 524352 && b && f && ge(f, b), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
374
+ 524416 && v && f && de(f, v), s.$$.dirty[0] & /*customStylingContainer, mbsource*/
375
+ 786432 && f && fe(f, `${q}.Style`), s.$$.dirty[0] & /*lang*/
376
376
  8 && d && p();
377
377
  }, [
378
378
  o,
@@ -385,11 +385,11 @@ function Pe(s, e, t) {
385
385
  v,
386
386
  w,
387
387
  _,
388
- z,
389
388
  F,
390
389
  N,
390
+ z,
391
391
  O,
392
- L,
392
+ P,
393
393
  T,
394
394
  G,
395
395
  U,
@@ -397,21 +397,21 @@ function Pe(s, e, t) {
397
397
  f,
398
398
  Y,
399
399
  n,
400
- S,
401
400
  C,
401
+ S,
402
402
  j,
403
403
  R,
404
404
  x
405
405
  ];
406
406
  }
407
- class Le extends ae {
407
+ class Pe extends ae {
408
408
  constructor(e) {
409
409
  super(), se(
410
410
  this,
411
411
  e,
412
- Pe,
412
+ Le,
413
413
  ke,
414
- ne,
414
+ ie,
415
415
  {
416
416
  endpoint: 0,
417
417
  datasource: 1,
@@ -580,7 +580,7 @@ class Le extends ae {
580
580
  this.$$set({ mbsource: e }), l();
581
581
  }
582
582
  }
583
- ie(Le, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
583
+ he(Pe, { endpoint: {}, datasource: {}, currency: {}, lang: {}, session: {}, userid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, livecasino: {}, integratedgameframemobile: {}, integratedgameframedesktop: {}, gamepagemodalurl: {}, showgamename: {}, visiblegames: {}, favorites: {}, lastplayedperiod: {}, lastplayedorder: {}, lastplayedlimit: {}, casinomygames: {}, lastplayedunique: {}, fetchviaevent: {}, mbsource: {} }, [], [], !0);
584
584
  export {
585
- Le as default
585
+ Pe as default
586
586
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-C42gDFHO.cjs");require("./CasinoFavoritesSection-BjjfIamg.cjs");function z(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};function W(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function p(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?p:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{clientstyling:h=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:D=""}=e,{visiblegames:k=""}=e,{favorites:E=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,N=!1,w=[],O,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let m=new URL(`${o}/v1/player/${_}/games/last-played`);m.searchParams.append("unique",j),m.searchParams.append("limit",C),m.searchParams.append("order",L),m.searchParams.append("period",P),t.getDevice(I)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),O=v?m:m.href,fetch(O).then(r=>r.json()).then(r=>{r.items=r.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(r.count--,T=!1),T}),s(r),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:r},window.location.href)}).catch(r=>{console.error(r),c(r)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(m=>{let f=new URL(`${o}/v1/casino/games/${m.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(r=>r.json())):c.push(fetch(f.href).then(r=>r.json()))}),Promise.all(c).then(m=>{w=m.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,N=!0)})},Z=()=>{Q(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,_=s.userid),"clientstyling"in s&&a(6,h=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,M=s.gamepagemodalurl),"showgamename"in s&&a(13,D=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,E=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&h&&g&&t.setClientStyling(g,h),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,v,R,A,M,D,k,E,S,F,q,g,N,i,P,L,C,j,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-4k288rHh.cjs");require("./CasinoFavoritesSection-DYzKNVZJ.cjs");function z(n,e){t.addMessages(n,e)}function Q(n){t.$locale.set(n)}const U={en:{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."},de:{noRecentGames:"Du hast bisher noch nicht gespielt, aber hier findest du in Zukunft eine Liste deiner Spiele."},es:{noRecentGames:"No has jugado aún pero aquí encontrarás en el futuro una lista de tus juegos."},hr:{noRecentGames:"Još niste igrali, ali ovdje ćete u budućnosti pronaći popis svojih igara."},"pt-br":{noRecentGames:"Você ainda não jogou, mas aqui você encontrará a lista futura de jogos jogados."},"es-mx":{noRecentGames:"Aún no has jugado pero aquí encontrarás la futura lista de juegos jugados."},tr:{noRecentGames:"Henüz oynamadınız ama burada gelecekte oyun listenizi bulacaksınız."},"en-us":{noRecentGames:"You haven't played yet but here you will find in the future a list of your games."}};function W(n){t.append_styles(n,"svelte-9pcrt1","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.CasinoLastPlayedSection{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function X(n){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",n[4]),t.set_custom_element_data(e,"userid",n[5]),t.set_custom_element_data(e,"endpoint",n[0]),t.set_custom_element_data(e,"datasource",n[1]),t.set_custom_element_data(e,"lang",n[3]),t.set_custom_element_data(e,"currency",n[2]),t.set_custom_element_data(e,"favorites",n[15]),t.set_custom_element_data(e,"fetchviaevent",n[17]),t.set_custom_element_data(e,"categoryid","LASTPLAYED"),t.set_custom_element_data(e,"categoryindex","1"),t.set_custom_element_data(e,"categorygames","9"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"mbsource",n[18]),t.set_custom_element_data(e,"showgamename",n[13]),t.set_custom_element_data(e,"clientstyling",n[6]),t.set_custom_element_data(e,"clientstylingurl",n[7]),t.set_custom_element_data(e,"translationurl",n[8]),t.set_custom_element_data(e,"livecasino",n[9]),t.set_custom_element_data(e,"visiblegames",n[14]),t.set_custom_element_data(e,"gamepagemodalurl",n[12]),t.set_custom_element_data(e,"integratedgameframedesktop",n[11]),t.set_custom_element_data(e,"integratedgameframemobile",n[10]),t.set_custom_element_data(e,"casinomygames",n[16])},m(a,i){t.insert(a,e,i)},p(a,i){i[0]&16&&t.set_custom_element_data(e,"session",a[4]),i[0]&32&&t.set_custom_element_data(e,"userid",a[5]),i[0]&1&&t.set_custom_element_data(e,"endpoint",a[0]),i[0]&2&&t.set_custom_element_data(e,"datasource",a[1]),i[0]&8&&t.set_custom_element_data(e,"lang",a[3]),i[0]&4&&t.set_custom_element_data(e,"currency",a[2]),i[0]&32768&&t.set_custom_element_data(e,"favorites",a[15]),i[0]&131072&&t.set_custom_element_data(e,"fetchviaevent",a[17]),i[0]&262144&&t.set_custom_element_data(e,"mbsource",a[18]),i[0]&8192&&t.set_custom_element_data(e,"showgamename",a[13]),i[0]&64&&t.set_custom_element_data(e,"clientstyling",a[6]),i[0]&128&&t.set_custom_element_data(e,"clientstylingurl",a[7]),i[0]&256&&t.set_custom_element_data(e,"translationurl",a[8]),i[0]&512&&t.set_custom_element_data(e,"livecasino",a[9]),i[0]&16384&&t.set_custom_element_data(e,"visiblegames",a[14]),i[0]&4096&&t.set_custom_element_data(e,"gamepagemodalurl",a[12]),i[0]&2048&&t.set_custom_element_data(e,"integratedgameframedesktop",a[11]),i[0]&1024&&t.set_custom_element_data(e,"integratedgameframemobile",a[10]),i[0]&65536&&t.set_custom_element_data(e,"casinomygames",a[16])},d(a){a&&t.detach(e)}}}function p(n){let e,a=n[21]("noRecentGames")+"",i;return{c(){e=t.element("p"),i=t.text(a),t.attr(e,"class","SearchLoading")},m(o,l){t.insert(o,e,l),t.append(e,i)},p(o,l){l[0]&2097152&&a!==(a=o[21]("noRecentGames")+"")&&t.set_data(i,a)},d(o){o&&t.detach(e)}}}function x(n){let e,a;function i(u,d){return u[20]?p:X}let o=i(n),l=o(n);return{c(){e=t.element("div"),a=t.element("div"),l.c(),t.attr(a,"class","CasinoLastPlayedSection"),t.attr(e,"class","CasinoGamesCategorySectionContainer")},m(u,d){t.insert(u,e,d),t.append(e,a),l.m(a,null),n[26](e)},p(u,d){o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(a,null)))},i:t.noop,o:t.noop,d(u){u&&t.detach(e),l.d(),n[26](null)}}}function $(n,e,a){let i;t.component_subscribe(n,t.$format,s=>a(21,i=s));let{endpoint:o=""}=e,{datasource:l=""}=e,{currency:u=""}=e,{lang:d=""}=e,{session:G=""}=e,{userid:_=""}=e,{clientstyling:h=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,{livecasino:v="false"}=e,{integratedgameframemobile:R="false"}=e,{integratedgameframedesktop:A="false"}=e,{gamepagemodalurl:M="false"}=e,{showgamename:D=""}=e,{visiblegames:k=""}=e,{favorites:E=""}=e,{lastplayedperiod:P="Last30Days"}=e,{lastplayedorder:L=""}=e,{lastplayedlimit:C=""}=e,{casinomygames:S="false"}=e,{lastplayedunique:j="true"}=e,{fetchviaevent:F="true"}=e,{mbsource:q}=e,I=window.navigator.userAgent,N=!1,w=[],O,g;const J=()=>{fetch(b).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(U).forEach(s=>{z(s,U[s])});const H=()=>new Promise((s,c)=>{let m=new URL(`${o}/v1/player/${_}/games/last-played`);m.searchParams.append("unique",j),m.searchParams.append("limit",C),m.searchParams.append("order",L),m.searchParams.append("period",P),t.getDevice(I)==="PC"?m.searchParams.append("device","Desktop"):m.searchParams.append("device","Mobile"),O=v?m:m.href,fetch(O).then(r=>r.json()).then(r=>{r.items=r.items.filter(K=>{let T=!0;return K.gameCode=="OddsMatrix2"&&(r.count--,T=!1),T}),s(r),window.postMessage({type:"AddNewCategory",category:{name:"Last Played",id:"LASTPLAYED"}},window.location.href),window.postMessage({type:"LastPlayedGames",data:r},window.location.href)}).catch(r=>{console.error(r),c(r)})}),V=()=>{H().then(s=>{if(s.count>0){let c=[];s.items.forEach(m=>{let f=new URL(`${o}/v1/casino/games/${m.gameId}`);f.searchParams.append("datasource",l),v?c.push(fetch(f.href).then(r=>r.json())):c.push(fetch(f.href).then(r=>r.json()))}),Promise.all(c).then(m=>{w=m.filter(f=>!("error"in f)).map(f=>f[0]),S==="true"&&(w=w.slice(0,JSON.parse(k))),window.postMessage({type:"LastPlayedData",lastPlayedGames:w},window.location.href)})}else a(20,N=!0)})},Z=()=>{Q(d)};t.onMount(()=>()=>{});function B(s){t.binding_callbacks[s?"unshift":"push"](()=>{g=s,a(19,g)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(1,l=s.datasource),"currency"in s&&a(2,u=s.currency),"lang"in s&&a(3,d=s.lang),"session"in s&&a(4,G=s.session),"userid"in s&&a(5,_=s.userid),"clientstyling"in s&&a(6,h=s.clientstyling),"clientstylingurl"in s&&a(7,y=s.clientstylingurl),"translationurl"in s&&a(8,b=s.translationurl),"livecasino"in s&&a(9,v=s.livecasino),"integratedgameframemobile"in s&&a(10,R=s.integratedgameframemobile),"integratedgameframedesktop"in s&&a(11,A=s.integratedgameframedesktop),"gamepagemodalurl"in s&&a(12,M=s.gamepagemodalurl),"showgamename"in s&&a(13,D=s.showgamename),"visiblegames"in s&&a(14,k=s.visiblegames),"favorites"in s&&a(15,E=s.favorites),"lastplayedperiod"in s&&a(22,P=s.lastplayedperiod),"lastplayedorder"in s&&a(23,L=s.lastplayedorder),"lastplayedlimit"in s&&a(24,C=s.lastplayedlimit),"casinomygames"in s&&a(16,S=s.casinomygames),"lastplayedunique"in s&&a(25,j=s.lastplayedunique),"fetchviaevent"in s&&a(17,F=s.fetchviaevent),"mbsource"in s&&a(18,q=s.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&41&&o&&_&&d&&V(),n.$$.dirty[0]&256&&b&&J(),n.$$.dirty[0]&524352&&h&&g&&t.setClientStyling(g,h),n.$$.dirty[0]&524416&&y&&g&&t.setClientStylingURL(g,y),n.$$.dirty[0]&786432&&g&&t.setStreamStyling(g,`${q}.Style`),n.$$.dirty[0]&8&&d&&Z()},[o,l,u,d,G,_,h,y,b,v,R,A,M,D,k,E,S,F,q,g,N,i,P,L,C,j,B]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$,x,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,translationurl:8,livecasino:9,integratedgameframemobile:10,integratedgameframedesktop:11,gamepagemodalurl:12,showgamename:13,visiblegames:14,favorites:15,lastplayedperiod:22,lastplayedorder:23,lastplayedlimit:24,casinomygames:16,lastplayedunique:25,fetchviaevent:17,mbsource:18},W,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[8]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get livecasino(){return this.$$.ctx[9]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[10]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[11]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get showgamename(){return this.$$.ctx[13]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get visiblegames(){return this.$$.ctx[14]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[15]}set favorites(e){this.$$set({favorites:e}),t.flush()}get lastplayedperiod(){return this.$$.ctx[22]}set lastplayedperiod(e){this.$$set({lastplayedperiod:e}),t.flush()}get lastplayedorder(){return this.$$.ctx[23]}set lastplayedorder(e){this.$$set({lastplayedorder:e}),t.flush()}get lastplayedlimit(){return this.$$.ctx[24]}set lastplayedlimit(e){this.$$set({lastplayedlimit:e}),t.flush()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get lastplayedunique(){return this.$$.ctx[25]}set lastplayedunique(e){this.$$set({lastplayedunique:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[17]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},translationurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},gamepagemodalurl:{},showgamename:{},visiblegames:{},favorites:{},lastplayedperiod:{},lastplayedorder:{},lastplayedlimit:{},casinomygames:{},lastplayedunique:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=Y;