@everymatrix/casino-lobby 1.45.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 (84) hide show
  1. package/components/{CasinoCalendar-DEhfBjpm.js → CasinoCalendar-3HRZGpnG.js} +57 -61
  2. package/components/{CasinoCalendar-egUFg4eK.cjs → CasinoCalendar-9cVNHt1-.cjs} +5 -5
  3. package/components/CasinoCalendarDailyDetails-Dcf0TKzH.cjs +1 -0
  4. package/components/CasinoCalendarDailyDetails-MwTyCObT.js +605 -0
  5. package/components/CasinoCalendarDailyItem-B-h-76yh.js +220 -0
  6. package/components/CasinoCalendarDailyItem-Cahte_IM.cjs +1 -0
  7. package/components/{CasinoCategoriesSlider-BfuTLKom.cjs → CasinoCategoriesSlider-AAgG2_xb.cjs} +1 -1
  8. package/components/{CasinoCategoriesSlider-BQvWcqNm.js → CasinoCategoriesSlider-B3Aneyii.js} +2 -2
  9. package/components/CasinoCollectionsProviders-BvEenHqO.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-D-DgSMvu.js +659 -0
  11. package/components/CasinoFavoritesSection-CxQ69OwL.cjs +1 -0
  12. package/components/{CasinoFavoritesSection-BBWM7_dI.js → CasinoFavoritesSection-DE0M_xZ_.js} +8 -8
  13. package/components/CasinoFilter-BWEtfBml.js +628 -0
  14. package/components/CasinoFilter-Bdc0mE0X.cjs +1 -0
  15. package/components/{CasinoGamePage-BHxY5XUD.cjs → CasinoGamePage-C4x_GUg3.cjs} +5 -5
  16. package/components/CasinoGamePage-r1xLmvzf.js +4282 -0
  17. package/components/CasinoGameThumbnail-BG_6FsqW.cjs +38 -0
  18. package/components/CasinoGameThumbnail-wQFR0AuM.js +1822 -0
  19. package/components/CasinoGamesCategorySection-BGgw1sdg.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Cbto2aD4.js +3018 -0
  21. package/components/CasinoJackpotBanner-BftFjZpI.cjs +1 -0
  22. package/components/CasinoJackpotBanner-D1RCyJGt.js +615 -0
  23. package/components/{CasinoLastPlayedSection-Dkh43VxC.js → CasinoLastPlayedSection-CAirOYgJ.js} +31 -31
  24. package/components/CasinoLastPlayedSection-Dm6f8H02.cjs +1 -0
  25. package/components/{CasinoLobby-Djp4HDWL.js → CasinoLobby-Cq0Hm2md.js} +88 -92
  26. package/components/CasinoLobby-CvaYUpUV.cjs +1 -0
  27. package/components/CasinoModal-CZbdtmLm.js +372 -0
  28. package/components/CasinoModal-DqBbtAjA.cjs +1 -0
  29. package/components/CasinoMostPlayedSection-DTXKjmPl.cjs +1 -0
  30. package/components/{CasinoMostPlayedSection-BDP2HyE6.js → CasinoMostPlayedSection-k3_ln2SB.js} +58 -58
  31. package/components/CasinoMyGames-CVTzyBkk.cjs +1 -0
  32. package/components/{CasinoMyGames-CILl0Jt1.js → CasinoMyGames-DcJpzIEq.js} +385 -385
  33. package/components/{CasinoPage-CCcJd2fQ.js → CasinoPage-BbRpHGEc.js} +1171 -1171
  34. package/components/CasinoPage-srXwB6ik.cjs +1 -0
  35. package/components/CasinoRandomGame-BSD5DYtt.js +641 -0
  36. package/components/CasinoRandomGame-CNdoKY0C.cjs +2 -0
  37. package/components/CasinoSearch-BsgUvsbs.js +1062 -0
  38. package/components/CasinoSearch-CMn_5Aa4.cjs +1 -0
  39. package/components/CasinoSlider-D5B-CjPM.js +803 -0
  40. package/components/CasinoSlider-kzZxK81G.cjs +1 -0
  41. package/components/CasinoSort-9pQqbHyF.cjs +1 -0
  42. package/components/CasinoSort-T6UQhFka.js +425 -0
  43. package/components/CasinoWinners-CD5HS4Gb.cjs +1 -0
  44. package/components/CasinoWinners-auSd-4D9.js +884 -0
  45. package/components/GeneralAnimationLoading-CIYgtCsE.cjs +1 -0
  46. package/components/GeneralAnimationLoading-DRiG33XR.js +75 -0
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +2 -2
  50. package/components/CasinoCalendarDailyDetails-CfTziMCu.js +0 -605
  51. package/components/CasinoCalendarDailyDetails-KP4_YYmO.cjs +0 -1
  52. package/components/CasinoCalendarDailyItem-4bXAKAZj.cjs +0 -1
  53. package/components/CasinoCalendarDailyItem-CQ8syIIe.js +0 -220
  54. package/components/CasinoCollectionsProviders-C9_6w0OJ.cjs +0 -1
  55. package/components/CasinoCollectionsProviders-CwJY8Pmw.js +0 -659
  56. package/components/CasinoFavoritesSection-Da0-zSyn.cjs +0 -1
  57. package/components/CasinoFilter-BkpU5f2V.cjs +0 -1
  58. package/components/CasinoFilter-D3p7c7qu.js +0 -628
  59. package/components/CasinoGamePage-Bp4OKmdA.js +0 -4282
  60. package/components/CasinoGameThumbnail-BmmqFK_6.js +0 -1822
  61. package/components/CasinoGameThumbnail-DVMHCqZf.cjs +0 -38
  62. package/components/CasinoGamesCategorySection-6X3_pD0A.js +0 -3022
  63. package/components/CasinoGamesCategorySection-CasxxP7n.cjs +0 -1
  64. package/components/CasinoJackpotBanner-8_TAP4xY.cjs +0 -1
  65. package/components/CasinoJackpotBanner-wk2wOmJp.js +0 -619
  66. package/components/CasinoLastPlayedSection-DvORiff-.cjs +0 -1
  67. package/components/CasinoLobby-Jn45jhzr.cjs +0 -1
  68. package/components/CasinoModal-BebrYWjS.cjs +0 -1
  69. package/components/CasinoModal-CSwMAX-g.js +0 -372
  70. package/components/CasinoMostPlayedSection-CF5vlzLT.cjs +0 -1
  71. package/components/CasinoMyGames-shcqTml8.cjs +0 -1
  72. package/components/CasinoPage-DZmE3VFL.cjs +0 -1
  73. package/components/CasinoRandomGame-4mi3rRbq.js +0 -641
  74. package/components/CasinoRandomGame-G4VfFJ2L.cjs +0 -2
  75. package/components/CasinoSearch-CW-eesDy.cjs +0 -1
  76. package/components/CasinoSearch-DkEAmw-j.js +0 -1066
  77. package/components/CasinoSlider-CNWDP_I-.js +0 -803
  78. package/components/CasinoSlider-CjA8vWoz.cjs +0 -1
  79. package/components/CasinoSort-BVh0Ouwu.cjs +0 -1
  80. package/components/CasinoSort-CPcJqhWU.js +0 -425
  81. package/components/CasinoWinners-BTNdGlUD.cjs +0 -1
  82. package/components/CasinoWinners-DSsJp1KQ.js +0 -884
  83. package/components/GeneralAnimationLoading-BtIh_bSy.js +0 -75
  84. package/components/GeneralAnimationLoading-CEAKVCu9.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function de(l,t){e.addMessages(l,t)}function he(l){e.$locale.set(l)}const ue={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..."}};function ye(l){e.append_styles(l,"svelte-ac3ra7",':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}.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 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 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(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function ge(l,t,a){const i=l.slice();return i[48]=t[a],i[50]=a,i}function _e(l){let t,a,i,r,o,s,k,v,u,C,y,w,L,h,j;function g(c,x){return c[5]?ke:Ce}let f=g(l),d=f(l);return{c(){t=e.element("div"),a=e.element("div"),i=e.element("div"),r=e.element("div"),o=e.space(),s=e.element("div"),d.c(),k=e.space(),v=e.element("div"),u=e.element("img"),e.attr(r,"class","vendorLogo"),e.set_style(r,"background-image","url("+l[6]+")"),e.attr(s,"class","displayContainer"),e.src_url_equal(u.src,C=l[11])||e.attr(u,"src",C),e.attr(u,"alt",""),e.attr(v,"class","title"),e.attr(i,"class",y="mainWrapper "+l[0]+" "+(l[4]&&!l[5]?"mobile":l[5]?"tablet":"")),e.set_style(i,"background","url("+l[10]+")"),e.attr(a,"class","jackpotBanner"),e.attr(t,"class",w=l[12]?"DisplayNone":""),e.attr(t,"part",L=l[12]?"DisplayNone":"")},m(c,x){e.insert(c,t,x),e.append(t,a),e.append(a,i),e.append(i,r),e.append(i,o),e.append(i,s),d.m(s,null),e.append(i,k),e.append(i,v),e.append(v,u),h||(j=e.listen(a,"click",l[31]),h=!0)},p(c,x){x[0]&64&&e.set_style(r,"background-image","url("+c[6]+")"),f===(f=g(c))&&d?d.p(c,x):(d.d(1),d=f(c),d&&(d.c(),d.m(s,null))),x[0]&2048&&!e.src_url_equal(u.src,C=c[11])&&e.attr(u,"src",C),x[0]&49&&y!==(y="mainWrapper "+c[0]+" "+(c[4]&&!c[5]?"mobile":c[5]?"tablet":""))&&e.attr(i,"class",y),x[0]&1024&&e.set_style(i,"background","url("+c[10]+")"),x[0]&4096&&w!==(w=c[12]?"DisplayNone":"")&&e.attr(t,"class",w),x[0]&4096&&L!==(L=c[12]?"DisplayNone":"")&&e.attr(t,"part",L)},d(c){c&&e.detach(t),d.d(),h=!1,j()}}}function be(l){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner"),e.attr(t,"part","LoadingSpinner")},m(a,i){e.insert(a,t,i)},p:e.noop,d(a){a&&e.detach(t)}}}function ve(l){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(a,i){e.insert(a,t,i)},p:e.noop,d(a){a&&e.detach(t)}}}function ke(l){let t,a,i,r,o,s,k=l[8][0]+"",v,u,C,y=l[7][0]+"",w,L,h,j,g,f,d,c,x,J,N=l[8][1]+"",H,A,V,M=l[7][1]+"",P,Z,D,F,S,W,I,z,T,G,U,Y=l[8][2]+"",$,E,K,Q=l[7][2]+"",ee,ne,O,te,le,R,B,q,n,p,_=l[8][3]+"",ae,X,ie,re=l[7][3]+"",ce,pe,se,oe;return{c(){t=e.element("div"),a=e.element("div"),i=e.element("div"),r=e.element("img"),s=e.element("span"),v=e.text(k),u=e.element("span"),C=e.element("span"),w=e.text(y),L=e.space(),h=e.element("span"),j=e.text(l[1]),g=e.space(),f=e.element("div"),d=e.element("div"),c=e.element("img"),J=e.element("span"),H=e.text(N),A=e.element("span"),V=e.element("span"),P=e.text(M),Z=e.space(),D=e.element("span"),F=e.text(l[1]),S=e.space(),W=e.element("div"),I=e.element("div"),z=e.element("div"),T=e.element("img"),U=e.element("span"),$=e.text(Y),E=e.element("span"),K=e.element("span"),ee=e.text(Q),ne=e.space(),O=e.element("span"),te=e.text(l[1]),le=e.space(),R=e.element("div"),B=e.element("div"),q=e.element("img"),p=e.element("span"),ae=e.text(_),X=e.element("span"),ie=e.element("span"),ce=e.text(re),pe=e.space(),se=e.element("span"),oe=e.text(l[1]),e.attr(r,"class","displayCardIcon"),e.src_url_equal(r.src,o=l[9][0])||e.attr(r,"src",o),e.attr(r,"alt",""),e.attr(s,"class","cardLabel"),e.attr(i,"class","iconWrapper"),e.attr(C,"class","jackpotValue"),e.attr(h,"class","jackpot-currency"),e.attr(u,"class","cardTextWrapper"),e.attr(a,"class","displayCard"),e.attr(c,"class","displayCardIcon"),e.src_url_equal(c.src,x=l[9][1])||e.attr(c,"src",x),e.attr(c,"alt",""),e.attr(J,"class","cardLabel"),e.attr(d,"class","iconWrapper"),e.attr(V,"class","jackpotValue"),e.attr(D,"class","jackpot-currency"),e.attr(A,"class","cardTextWrapper"),e.attr(f,"class","displayCard"),e.attr(t,"class","pairWrapper"),e.attr(T,"class","displayCardIcon"),e.src_url_equal(T.src,G=l[9][2])||e.attr(T,"src",G),e.attr(T,"alt",""),e.attr(U,"class","cardLabel"),e.attr(z,"class","iconWrapper"),e.attr(K,"class","jackpotValue"),e.attr(O,"class","jackpot-currency"),e.attr(E,"class","cardTextWrapper"),e.attr(I,"class","displayCard"),e.attr(q,"class","displayCardIcon"),e.src_url_equal(q.src,n=l[9][3])||e.attr(q,"src",n),e.attr(q,"alt",""),e.attr(p,"class","cardLabel"),e.attr(B,"class","iconWrapper"),e.attr(ie,"class","jackpotValue"),e.attr(se,"class","jackpot-currency"),e.attr(X,"class","cardTextWrapper"),e.attr(R,"class","displayCard"),e.attr(W,"class","pairWrapper")},m(m,b){e.insert(m,t,b),e.append(t,a),e.append(a,i),e.append(i,r),e.append(i,s),e.append(s,v),e.append(a,u),e.append(u,C),e.append(C,w),e.append(u,L),e.append(u,h),e.append(h,j),e.append(t,g),e.append(t,f),e.append(f,d),e.append(d,c),e.append(d,J),e.append(J,H),e.append(f,A),e.append(A,V),e.append(V,P),e.append(A,Z),e.append(A,D),e.append(D,F),e.insert(m,S,b),e.insert(m,W,b),e.append(W,I),e.append(I,z),e.append(z,T),e.append(z,U),e.append(U,$),e.append(I,E),e.append(E,K),e.append(K,ee),e.append(E,ne),e.append(E,O),e.append(O,te),e.append(W,le),e.append(W,R),e.append(R,B),e.append(B,q),e.append(B,p),e.append(p,ae),e.append(R,X),e.append(X,ie),e.append(ie,ce),e.append(X,pe),e.append(X,se),e.append(se,oe)},p(m,b){b[0]&512&&!e.src_url_equal(r.src,o=m[9][0])&&e.attr(r,"src",o),b[0]&256&&k!==(k=m[8][0]+"")&&e.set_data(v,k),b[0]&128&&y!==(y=m[7][0]+"")&&e.set_data(w,y),b[0]&2&&e.set_data(j,m[1]),b[0]&512&&!e.src_url_equal(c.src,x=m[9][1])&&e.attr(c,"src",x),b[0]&256&&N!==(N=m[8][1]+"")&&e.set_data(H,N),b[0]&128&&M!==(M=m[7][1]+"")&&e.set_data(P,M),b[0]&2&&e.set_data(F,m[1]),b[0]&512&&!e.src_url_equal(T.src,G=m[9][2])&&e.attr(T,"src",G),b[0]&256&&Y!==(Y=m[8][2]+"")&&e.set_data($,Y),b[0]&128&&Q!==(Q=m[7][2]+"")&&e.set_data(ee,Q),b[0]&2&&e.set_data(te,m[1]),b[0]&512&&!e.src_url_equal(q.src,n=m[9][3])&&e.attr(q,"src",n),b[0]&256&&_!==(_=m[8][3]+"")&&e.set_data(ae,_),b[0]&128&&re!==(re=m[7][3]+"")&&e.set_data(ce,re),b[0]&2&&e.set_data(oe,m[1])},d(m){m&&(e.detach(t),e.detach(S),e.detach(W))}}}function Ce(l){let t,a=e.ensure_array_like(Array(4)),i=[];for(let r=0;r<a.length;r+=1)i[r]=fe(ge(l,a,r));return{c(){for(let r=0;r<i.length;r+=1)i[r].c();t=e.empty()},m(r,o){for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(r,o);e.insert(r,t,o)},p(r,o){if(o[0]&898){a=e.ensure_array_like(Array(4));let s;for(s=0;s<a.length;s+=1){const k=ge(r,a,s);i[s]?i[s].p(k,o):(i[s]=fe(k),i[s].c(),i[s].m(t.parentNode,t))}for(;s<i.length;s+=1)i[s].d(1);i.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(i,r)}}}function fe(l){var j;let t,a,i,r,o,s=l[8][l[50]]+"",k,v,u,C=((j=l[7][l[50]])!=null?j:"")+"",y,w,L,h;return{c(){t=e.element("div"),a=e.element("div"),i=e.element("img"),o=e.element("span"),k=e.text(s),v=e.element("span"),u=e.element("span"),y=e.text(C),w=e.space(),L=e.element("span"),h=e.text(l[1]),e.attr(i,"class","displayCardIcon"),e.src_url_equal(i.src,r=l[9][l[50]])||e.attr(i,"src",r),e.attr(i,"alt",""),e.attr(o,"class","cardLabel"),e.attr(a,"class","iconWrapper"),e.attr(u,"class","jackpotValue"),e.attr(L,"class","jackpot-currency"),e.attr(v,"class","cardTextWrapper"),e.attr(t,"class","displayCard")},m(g,f){e.insert(g,t,f),e.append(t,a),e.append(a,i),e.append(a,o),e.append(o,k),e.append(t,v),e.append(v,u),e.append(u,y),e.append(v,w),e.append(v,L),e.append(L,h)},p(g,f){var d;f[0]&512&&!e.src_url_equal(i.src,r=g[9][g[50]])&&e.attr(i,"src",r),f[0]&256&&s!==(s=g[8][g[50]]+"")&&e.set_data(k,s),f[0]&128&&C!==(C=((d=g[7][g[50]])!=null?d:"")+"")&&e.set_data(y,C),f[0]&2&&e.set_data(h,g[1])},d(g){g&&e.detach(t)}}}function xe(l){let t;function a(o,s){return o[13]?ve:o[3]?be:_e}let i=a(l),r=i(l);return{c(){t=e.element("div"),r.c()},m(o,s){e.insert(o,t,s),r.m(t,null),l[32](t)},p(o,s){i===(i=a(o))&&r?r.p(o,s):(r.d(1),r=i(o),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),r.d(),l[32](null)}}}function we(l,t,a){let{visualstructure:i=""}=t,{title:r=""}=t,{caticon0:o=""}=t,{caticon1:s=""}=t,{caticon2:k=""}=t,{caticon3:v=""}=t,{iconlabels:u=""}=t,{backgroundsrc:C=""}=t,{currency:y=""}=t,{backgroundsrcmobile:w=""}=t,{titlelogopath:L=""}=t,{lang:h="en"}=t,{clientstyling:j=""}=t,{clientstylingurl:g=""}=t,{translationurl:f=""}=t,{endpoint:d=""}=t,{gameid:c=""}=t,x=window.navigator.userAgent,J=!1,N=!1,H="",A=[],V=[],M=[],P=[],Z=[],D="",F="",S,W=!1,I=!0,z=!1,T;const G=()=>{fetch(f).then(p=>p.json()).then(p=>{Object.keys(p).forEach(_=>{de(_,p[_])})}).catch(p=>{console.log(p)})};Object.keys(ue).forEach(n=>{de(n,ue[n])});const U=["typeSpread","typeLeft"],Y=n=>{var _;const p=(_=n==null?void 0:n.items[0])==null?void 0:_.additionalData;p&&Object.values(p).forEach(ae=>A.push(+ae))},$=n=>{var p;a(6,H=((p=n==null?void 0:n.items[0])==null?void 0:p.vendorLogo)||"")},E=()=>{if(d&&h&&y){let n=new URL(`${d}/v1/casino/jackpots`);n.searchParams.append("filter",`id=${c}`),n.searchParams.append("language",h),n.searchParams.append("additionalDataCurrency",y),fetch(n.href).then(p=>p.json().then(_=>{a(3,I=!1),T=_,V.includes(c)&&(Y(T),$(T))}).catch(_=>{a(13,z=!0),a(3,I=!1),console.error(_)}))}},K=()=>{let n=new URL(`${d}/v1/casino/jackpots/config`);fetch(n.href).then(p=>p.json()).then(p=>{a(30,V=p.egtJackpotIds.map(_=>_))})},Q=()=>{a(4,J=e.isMobile(x)&&window.innerHeight/window.innerWidth>1),a(5,N=ne()),A.length!==0&&a(7,M=ee(A)),a(8,P=u?u.split(",").map(n=>n.trim().toUpperCase()):new Array(4).fill("")),U.includes(i.trim())?a(0,i=i.trim()):(console.warn(`Invalid Attribute Value: "${i}" is not a valid value for the "visualstructure" attribute. Defaulting to "${U[0]}"`),a(0,i=U[0])),a(10,D=w&&J&&!N?w:C),a(11,F=L),a(9,Z=[o,s,k,v])},ee=n=>n.map(p=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(p)),ne=()=>{const n=window.innerHeight/window.innerWidth;return .75<n&&n<1.6},O=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:c},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${c}`})},te=()=>{let n=document.createElement("style");n.innerHTML=j,S.appendChild(n)},le=()=>{a(12,W=!0);let n=new URL(g),p=document.createElement("style");fetch(n.href).then(_=>_.text()).then(_=>{p.innerHTML=_,setTimeout(()=>{S.appendChild(p)},1),setTimeout(()=>{a(12,W=!1)},500)})},R=()=>{he(h)},B=()=>O();function q(n){e.binding_callbacks[n?"unshift":"push"](()=>{S=n,a(2,S)})}return l.$$set=n=>{"visualstructure"in n&&a(0,i=n.visualstructure),"title"in n&&a(15,r=n.title),"caticon0"in n&&a(16,o=n.caticon0),"caticon1"in n&&a(17,s=n.caticon1),"caticon2"in n&&a(18,k=n.caticon2),"caticon3"in n&&a(19,v=n.caticon3),"iconlabels"in n&&a(20,u=n.iconlabels),"backgroundsrc"in n&&a(21,C=n.backgroundsrc),"currency"in n&&a(1,y=n.currency),"backgroundsrcmobile"in n&&a(22,w=n.backgroundsrcmobile),"titlelogopath"in n&&a(23,L=n.titlelogopath),"lang"in n&&a(24,h=n.lang),"clientstyling"in n&&a(25,j=n.clientstyling),"clientstylingurl"in n&&a(26,g=n.clientstylingurl),"translationurl"in n&&a(27,f=n.translationurl),"endpoint"in n&&a(28,d=n.endpoint),"gameid"in n&&a(29,c=n.gameid)},l.$$.update=()=>{l.$$.dirty[0]&268435456&&d&&K(),l.$$.dirty[0]&33554436&&S&&j&&te(),l.$$.dirty[0]&67108868&&S&&g&&le(),l.$$.dirty[0]&1358954498&&d&&h&&y&&V.length>0&&E(),l.$$.dirty[0]&16777226&&y&&h&&!I&&Q(),l.$$.dirty[0]&16777216&&h&&R(),l.$$.dirty[0]&134217728&&f&&G()},[i,y,S,I,J,N,H,M,P,Z,D,F,W,z,O,r,o,s,k,v,u,C,w,L,h,j,g,f,d,c,V,B,q]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,we,xe,e.safe_not_equal,{visualstructure:0,title:15,caticon0:16,caticon1:17,caticon2:18,caticon3:19,iconlabels:20,backgroundsrc:21,currency:1,backgroundsrcmobile:22,titlelogopath:23,lang:24,clientstyling:25,clientstylingurl:26,translationurl:27,endpoint:28,gameid:29},ye,[-1,-1])}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),e.flush()}get title(){return this.$$.ctx[15]}set title(t){this.$$set({title:t}),e.flush()}get caticon0(){return this.$$.ctx[16]}set caticon0(t){this.$$set({caticon0:t}),e.flush()}get caticon1(){return this.$$.ctx[17]}set caticon1(t){this.$$set({caticon1:t}),e.flush()}get caticon2(){return this.$$.ctx[18]}set caticon2(t){this.$$set({caticon2:t}),e.flush()}get caticon3(){return this.$$.ctx[19]}set caticon3(t){this.$$set({caticon3:t}),e.flush()}get iconlabels(){return this.$$.ctx[20]}set iconlabels(t){this.$$set({iconlabels:t}),e.flush()}get backgroundsrc(){return this.$$.ctx[21]}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[22]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),e.flush()}get titlelogopath(){return this.$$.ctx[23]}set titlelogopath(t){this.$$set({titlelogopath:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get endpoint(){return this.$$.ctx[28]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get gameid(){return this.$$.ctx[29]}set gameid(t){this.$$set({gameid:t}),e.flush()}}e.create_custom_element(me,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{}},[],[],!0);exports.default=me;
@@ -0,0 +1,615 @@
1
+ import { I as Te, $ as Se, S as We, i as Ae, f as j, c as Ie, s as Ve, b as Je, e as c, d as R, C as be, j as H, l as Ne, m as ze, q as B, u as i, G as ye, D as J, v as l, w as Ue, r as W, A, p as Ce, F as Ee, B as De } from "./CasinoCalendar-3HRZGpnG.js";
2
+ function we(n, e) {
3
+ Te(n, e);
4
+ }
5
+ function Be(n) {
6
+ Se.set(n);
7
+ }
8
+ const Le = {
9
+ en: {
10
+ loadingText: "Loading, please wait..."
11
+ },
12
+ "zh-hk": {
13
+ loadingText: "加载请稍候 ..."
14
+ },
15
+ fr: {
16
+ loadingText: "Chargement, veuillez patienter..."
17
+ },
18
+ ro: {
19
+ loadingText: "Se incarca, va rugam asteptati..."
20
+ },
21
+ es: {
22
+ loadingText: "Cargando"
23
+ },
24
+ pt: {
25
+ loadingText: "Carregando, por favor espere..."
26
+ },
27
+ de: {
28
+ loadingText: "Laden, bitte warten..."
29
+ },
30
+ hr: {
31
+ loadingText: "Učitavanje"
32
+ },
33
+ "pt-br": {
34
+ CarregandoText: "Carregando"
35
+ },
36
+ "es-mx": {
37
+ CargandoText: "Cargando, por favor espere…"
38
+ },
39
+ tr: {
40
+ loadingText: "Yükleniyor, lütfen bekleyin..."
41
+ }
42
+ };
43
+ function Me(n) {
44
+ Je(n, "svelte-ac3ra7", ':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}.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 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 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(--emfe-w-color-primary, #D0046C);border-color:var(--emfe-w-color-primary, #D0046C) transparent var(--emfe-w-color-primary, #D0046C) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
45
+ }
46
+ function xe(n, e, t) {
47
+ const s = n.slice();
48
+ return s[48] = e[t], s[50] = t, s;
49
+ }
50
+ function Re(n) {
51
+ let e, t, s, r, p, o, w, C, f, L, v, T, S, b, I;
52
+ function m(d, x) {
53
+ return (
54
+ /*tabletView*/
55
+ d[5] ? Fe : Pe
56
+ );
57
+ }
58
+ let h = m(n), g = h(n);
59
+ return {
60
+ c() {
61
+ e = c("div"), t = c("div"), s = c("div"), r = c("div"), p = B(), o = c("div"), g.c(), w = B(), C = c("div"), f = c("img"), i(r, "class", "vendorLogo"), ye(r, "background-image", "url(" + /*vendorIcon*/
62
+ n[6] + ")"), i(o, "class", "displayContainer"), J(f.src, L = /*titleLogoImg*/
63
+ n[11]) || i(f, "src", L), i(f, "alt", ""), i(C, "class", "title"), i(s, "class", v = "mainWrapper " + /*visualstructure*/
64
+ n[0] + " " + /*mobileView*/
65
+ (n[4] && !/*tabletView*/
66
+ n[5] ? "mobile" : (
67
+ /*tabletView*/
68
+ n[5] ? "tablet" : ""
69
+ ))), ye(s, "background", "url(" + /*backgroundImg*/
70
+ n[10] + ")"), i(t, "class", "jackpotBanner"), i(e, "class", T = /*displayNone*/
71
+ n[12] ? "DisplayNone" : ""), i(e, "part", S = /*displayNone*/
72
+ n[12] ? "DisplayNone" : "");
73
+ },
74
+ m(d, x) {
75
+ R(d, e, x), l(e, t), l(t, s), l(s, r), l(s, p), l(s, o), g.m(o, null), l(s, w), l(s, C), l(C, f), b || (I = Ue(
76
+ t,
77
+ "click",
78
+ /*click_handler*/
79
+ n[31]
80
+ ), b = !0);
81
+ },
82
+ p(d, x) {
83
+ x[0] & /*vendorIcon*/
84
+ 64 && ye(r, "background-image", "url(" + /*vendorIcon*/
85
+ d[6] + ")"), h === (h = m(d)) && g ? g.p(d, x) : (g.d(1), g = h(d), g && (g.c(), g.m(o, null))), x[0] & /*titleLogoImg*/
86
+ 2048 && !J(f.src, L = /*titleLogoImg*/
87
+ d[11]) && i(f, "src", L), x[0] & /*visualstructure, mobileView, tabletView*/
88
+ 49 && v !== (v = "mainWrapper " + /*visualstructure*/
89
+ d[0] + " " + /*mobileView*/
90
+ (d[4] && !/*tabletView*/
91
+ d[5] ? "mobile" : (
92
+ /*tabletView*/
93
+ d[5] ? "tablet" : ""
94
+ ))) && i(s, "class", v), x[0] & /*backgroundImg*/
95
+ 1024 && ye(s, "background", "url(" + /*backgroundImg*/
96
+ d[10] + ")"), x[0] & /*displayNone*/
97
+ 4096 && T !== (T = /*displayNone*/
98
+ d[12] ? "DisplayNone" : "") && i(e, "class", T), x[0] & /*displayNone*/
99
+ 4096 && S !== (S = /*displayNone*/
100
+ d[12] ? "DisplayNone" : "") && i(e, "part", S);
101
+ },
102
+ d(d) {
103
+ d && H(e), g.d(), b = !1, I();
104
+ }
105
+ };
106
+ }
107
+ function He(n) {
108
+ let e;
109
+ return {
110
+ c() {
111
+ e = c("div"), i(e, "class", "LoadingSpinner"), i(e, "part", "LoadingSpinner");
112
+ },
113
+ m(t, s) {
114
+ R(t, e, s);
115
+ },
116
+ p: be,
117
+ d(t) {
118
+ t && H(e);
119
+ }
120
+ };
121
+ }
122
+ function Oe(n) {
123
+ let e;
124
+ return {
125
+ c() {
126
+ e = c("p"), e.textContent = "500 Server error";
127
+ },
128
+ m(t, s) {
129
+ R(t, e, s);
130
+ },
131
+ p: be,
132
+ d(t) {
133
+ t && H(e);
134
+ }
135
+ };
136
+ }
137
+ function Fe(n) {
138
+ let e, t, s, r, p, o, w = (
139
+ /*formattedLabels*/
140
+ n[8][0] + ""
141
+ ), C, f, L, v = (
142
+ /*formattedJackpotValues*/
143
+ n[7][0] + ""
144
+ ), T, S, b, I, m, h, g, d, x, O, F = (
145
+ /*formattedLabels*/
146
+ n[8][1] + ""
147
+ ), $, U, M, Y = (
148
+ /*formattedJackpotValues*/
149
+ n[7][1] + ""
150
+ ), ee, re, K, te, N, z, E, P, V, ae, q, ie = (
151
+ /*formattedLabels*/
152
+ n[8][2] + ""
153
+ ), ce, G, ne, le = (
154
+ /*formattedJackpotValues*/
155
+ n[7][2] + ""
156
+ ), oe, ue, Q, de, ge, X, Z, D, a, u, _ = (
157
+ /*formattedLabels*/
158
+ n[8][3] + ""
159
+ ), pe, se, fe, me = (
160
+ /*formattedJackpotValues*/
161
+ n[7][3] + ""
162
+ ), ve, ke, he, _e;
163
+ return {
164
+ c() {
165
+ e = c("div"), t = c("div"), s = c("div"), r = c("img"), o = c("span"), C = W(w), f = c("span"), L = c("span"), T = W(v), S = B(), b = c("span"), I = W(
166
+ /*currency*/
167
+ n[1]
168
+ ), m = B(), h = c("div"), g = c("div"), d = c("img"), O = c("span"), $ = W(F), U = c("span"), M = c("span"), ee = W(Y), re = B(), K = c("span"), te = W(
169
+ /*currency*/
170
+ n[1]
171
+ ), N = B(), z = c("div"), E = c("div"), P = c("div"), V = c("img"), q = c("span"), ce = W(ie), G = c("span"), ne = c("span"), oe = W(le), ue = B(), Q = c("span"), de = W(
172
+ /*currency*/
173
+ n[1]
174
+ ), ge = B(), X = c("div"), Z = c("div"), D = c("img"), u = c("span"), pe = W(_), se = c("span"), fe = c("span"), ve = W(me), ke = B(), he = c("span"), _e = W(
175
+ /*currency*/
176
+ n[1]
177
+ ), i(r, "class", "displayCardIcon"), J(r.src, p = /*caticons*/
178
+ n[9][0]) || i(r, "src", p), i(r, "alt", ""), i(o, "class", "cardLabel"), i(s, "class", "iconWrapper"), i(L, "class", "jackpotValue"), i(b, "class", "jackpot-currency"), i(f, "class", "cardTextWrapper"), i(t, "class", "displayCard"), i(d, "class", "displayCardIcon"), J(d.src, x = /*caticons*/
179
+ n[9][1]) || i(d, "src", x), i(d, "alt", ""), i(O, "class", "cardLabel"), i(g, "class", "iconWrapper"), i(M, "class", "jackpotValue"), i(K, "class", "jackpot-currency"), i(U, "class", "cardTextWrapper"), i(h, "class", "displayCard"), i(e, "class", "pairWrapper"), i(V, "class", "displayCardIcon"), J(V.src, ae = /*caticons*/
180
+ n[9][2]) || i(V, "src", ae), i(V, "alt", ""), i(q, "class", "cardLabel"), i(P, "class", "iconWrapper"), i(ne, "class", "jackpotValue"), i(Q, "class", "jackpot-currency"), i(G, "class", "cardTextWrapper"), i(E, "class", "displayCard"), i(D, "class", "displayCardIcon"), J(D.src, a = /*caticons*/
181
+ n[9][3]) || i(D, "src", a), i(D, "alt", ""), i(u, "class", "cardLabel"), i(Z, "class", "iconWrapper"), i(fe, "class", "jackpotValue"), i(he, "class", "jackpot-currency"), i(se, "class", "cardTextWrapper"), i(X, "class", "displayCard"), i(z, "class", "pairWrapper");
182
+ },
183
+ m(y, k) {
184
+ R(y, e, k), l(e, t), l(t, s), l(s, r), l(s, o), l(o, C), l(t, f), l(f, L), l(L, T), l(f, S), l(f, b), l(b, I), l(e, m), l(e, h), l(h, g), l(g, d), l(g, O), l(O, $), l(h, U), l(U, M), l(M, ee), l(U, re), l(U, K), l(K, te), R(y, N, k), R(y, z, k), l(z, E), l(E, P), l(P, V), l(P, q), l(q, ce), l(E, G), l(G, ne), l(ne, oe), l(G, ue), l(G, Q), l(Q, de), l(z, ge), l(z, X), l(X, Z), l(Z, D), l(Z, u), l(u, pe), l(X, se), l(se, fe), l(fe, ve), l(se, ke), l(se, he), l(he, _e);
185
+ },
186
+ p(y, k) {
187
+ k[0] & /*caticons*/
188
+ 512 && !J(r.src, p = /*caticons*/
189
+ y[9][0]) && i(r, "src", p), k[0] & /*formattedLabels*/
190
+ 256 && w !== (w = /*formattedLabels*/
191
+ y[8][0] + "") && A(C, w), k[0] & /*formattedJackpotValues*/
192
+ 128 && v !== (v = /*formattedJackpotValues*/
193
+ y[7][0] + "") && A(T, v), k[0] & /*currency*/
194
+ 2 && A(
195
+ I,
196
+ /*currency*/
197
+ y[1]
198
+ ), k[0] & /*caticons*/
199
+ 512 && !J(d.src, x = /*caticons*/
200
+ y[9][1]) && i(d, "src", x), k[0] & /*formattedLabels*/
201
+ 256 && F !== (F = /*formattedLabels*/
202
+ y[8][1] + "") && A($, F), k[0] & /*formattedJackpotValues*/
203
+ 128 && Y !== (Y = /*formattedJackpotValues*/
204
+ y[7][1] + "") && A(ee, Y), k[0] & /*currency*/
205
+ 2 && A(
206
+ te,
207
+ /*currency*/
208
+ y[1]
209
+ ), k[0] & /*caticons*/
210
+ 512 && !J(V.src, ae = /*caticons*/
211
+ y[9][2]) && i(V, "src", ae), k[0] & /*formattedLabels*/
212
+ 256 && ie !== (ie = /*formattedLabels*/
213
+ y[8][2] + "") && A(ce, ie), k[0] & /*formattedJackpotValues*/
214
+ 128 && le !== (le = /*formattedJackpotValues*/
215
+ y[7][2] + "") && A(oe, le), k[0] & /*currency*/
216
+ 2 && A(
217
+ de,
218
+ /*currency*/
219
+ y[1]
220
+ ), k[0] & /*caticons*/
221
+ 512 && !J(D.src, a = /*caticons*/
222
+ y[9][3]) && i(D, "src", a), k[0] & /*formattedLabels*/
223
+ 256 && _ !== (_ = /*formattedLabels*/
224
+ y[8][3] + "") && A(pe, _), k[0] & /*formattedJackpotValues*/
225
+ 128 && me !== (me = /*formattedJackpotValues*/
226
+ y[7][3] + "") && A(ve, me), k[0] & /*currency*/
227
+ 2 && A(
228
+ _e,
229
+ /*currency*/
230
+ y[1]
231
+ );
232
+ },
233
+ d(y) {
234
+ y && (H(e), H(N), H(z));
235
+ }
236
+ };
237
+ }
238
+ function Pe(n) {
239
+ let e, t = Ce(Array(4)), s = [];
240
+ for (let r = 0; r < t.length; r += 1)
241
+ s[r] = je(xe(n, t, r));
242
+ return {
243
+ c() {
244
+ for (let r = 0; r < s.length; r += 1)
245
+ s[r].c();
246
+ e = Ee();
247
+ },
248
+ m(r, p) {
249
+ for (let o = 0; o < s.length; o += 1)
250
+ s[o] && s[o].m(r, p);
251
+ R(r, e, p);
252
+ },
253
+ p(r, p) {
254
+ if (p[0] & /*currency, formattedJackpotValues, formattedLabels, caticons*/
255
+ 898) {
256
+ t = Ce(Array(4));
257
+ let o;
258
+ for (o = 0; o < t.length; o += 1) {
259
+ const w = xe(r, t, o);
260
+ s[o] ? s[o].p(w, p) : (s[o] = je(w), s[o].c(), s[o].m(e.parentNode, e));
261
+ }
262
+ for (; o < s.length; o += 1)
263
+ s[o].d(1);
264
+ s.length = t.length;
265
+ }
266
+ },
267
+ d(r) {
268
+ r && H(e), De(s, r);
269
+ }
270
+ };
271
+ }
272
+ function je(n) {
273
+ var I;
274
+ let e, t, s, r, p, o = (
275
+ /*formattedLabels*/
276
+ n[8][
277
+ /*i*/
278
+ n[50]
279
+ ] + ""
280
+ ), w, C, f, L = (
281
+ /*formattedJackpotValues*/
282
+ ((I = n[7][
283
+ /*i*/
284
+ n[50]
285
+ ]) != null ? I : "") + ""
286
+ ), v, T, S, b;
287
+ return {
288
+ c() {
289
+ e = c("div"), t = c("div"), s = c("img"), p = c("span"), w = W(o), C = c("span"), f = c("span"), v = W(L), T = B(), S = c("span"), b = W(
290
+ /*currency*/
291
+ n[1]
292
+ ), i(s, "class", "displayCardIcon"), J(s.src, r = /*caticons*/
293
+ n[9][
294
+ /*i*/
295
+ n[50]
296
+ ]) || i(s, "src", r), i(s, "alt", ""), i(p, "class", "cardLabel"), i(t, "class", "iconWrapper"), i(f, "class", "jackpotValue"), i(S, "class", "jackpot-currency"), i(C, "class", "cardTextWrapper"), i(e, "class", "displayCard");
297
+ },
298
+ m(m, h) {
299
+ R(m, e, h), l(e, t), l(t, s), l(t, p), l(p, w), l(e, C), l(C, f), l(f, v), l(C, T), l(C, S), l(S, b);
300
+ },
301
+ p(m, h) {
302
+ var g;
303
+ h[0] & /*caticons*/
304
+ 512 && !J(s.src, r = /*caticons*/
305
+ m[9][
306
+ /*i*/
307
+ m[50]
308
+ ]) && i(s, "src", r), h[0] & /*formattedLabels*/
309
+ 256 && o !== (o = /*formattedLabels*/
310
+ m[8][
311
+ /*i*/
312
+ m[50]
313
+ ] + "") && A(w, o), h[0] & /*formattedJackpotValues*/
314
+ 128 && L !== (L = /*formattedJackpotValues*/
315
+ ((g = m[7][
316
+ /*i*/
317
+ m[50]
318
+ ]) != null ? g : "") + "") && A(v, L), h[0] & /*currency*/
319
+ 2 && A(
320
+ b,
321
+ /*currency*/
322
+ m[1]
323
+ );
324
+ },
325
+ d(m) {
326
+ m && H(e);
327
+ }
328
+ };
329
+ }
330
+ function qe(n) {
331
+ let e;
332
+ function t(p, o) {
333
+ return (
334
+ /*hasErrors*/
335
+ p[13] ? Oe : (
336
+ /*isLoading*/
337
+ p[3] ? He : Re
338
+ )
339
+ );
340
+ }
341
+ let s = t(n), r = s(n);
342
+ return {
343
+ c() {
344
+ e = c("div"), r.c();
345
+ },
346
+ m(p, o) {
347
+ R(p, e, o), r.m(e, null), n[32](e);
348
+ },
349
+ p(p, o) {
350
+ s === (s = t(p)) && r ? r.p(p, o) : (r.d(1), r = s(p), r && (r.c(), r.m(e, null)));
351
+ },
352
+ i: be,
353
+ o: be,
354
+ d(p) {
355
+ p && H(e), r.d(), n[32](null);
356
+ }
357
+ };
358
+ }
359
+ function Ge(n, e, t) {
360
+ let { visualstructure: s = "" } = e, { title: r = "" } = e, { caticon0: p = "" } = e, { caticon1: o = "" } = e, { caticon2: w = "" } = e, { caticon3: C = "" } = e, { iconlabels: f = "" } = e, { backgroundsrc: L = "" } = e, { currency: v = "" } = e, { backgroundsrcmobile: T = "" } = e, { titlelogopath: S = "" } = e, { lang: b = "en" } = e, { clientstyling: I = "" } = e, { clientstylingurl: m = "" } = e, { translationurl: h = "" } = e, { endpoint: g = "" } = e, { gameid: d = "" } = e, x = window.navigator.userAgent, O = !1, F = !1, $ = "", U = [], M = [], Y = [], ee = [], re = [], K = "", te = "", N, z = !1, E = !0, P = !1, V;
361
+ const ae = () => {
362
+ fetch(h).then((u) => u.json()).then((u) => {
363
+ Object.keys(u).forEach((_) => {
364
+ we(_, u[_]);
365
+ });
366
+ }).catch((u) => {
367
+ console.log(u);
368
+ });
369
+ };
370
+ Object.keys(Le).forEach((a) => {
371
+ we(a, Le[a]);
372
+ });
373
+ const q = ["typeSpread", "typeLeft"], ie = (a) => {
374
+ var _;
375
+ const u = (_ = a == null ? void 0 : a.items[0]) == null ? void 0 : _.additionalData;
376
+ u && Object.values(u).forEach((pe) => U.push(+pe));
377
+ }, ce = (a) => {
378
+ var u;
379
+ t(6, $ = ((u = a == null ? void 0 : a.items[0]) == null ? void 0 : u.vendorLogo) || "");
380
+ }, G = () => {
381
+ if (g && b && v) {
382
+ let a = new URL(`${g}/v1/casino/jackpots`);
383
+ a.searchParams.append("filter", `id=${d}`), a.searchParams.append("language", b), a.searchParams.append("additionalDataCurrency", v), fetch(a.href).then((u) => u.json().then((_) => {
384
+ t(3, E = !1), V = _, M.includes(d) && (ie(V), ce(V));
385
+ }).catch((_) => {
386
+ t(13, P = !0), t(3, E = !1), console.error(_);
387
+ }));
388
+ }
389
+ }, ne = () => {
390
+ let a = new URL(`${g}/v1/casino/jackpots/config`);
391
+ fetch(a.href).then((u) => u.json()).then((u) => {
392
+ t(30, M = u.egtJackpotIds.map((_) => _));
393
+ });
394
+ }, le = () => {
395
+ t(4, O = Ne(x) && window.innerHeight / window.innerWidth > 1), t(5, F = ue()), U.length !== 0 && t(7, Y = oe(U)), t(8, ee = f ? f.split(",").map((a) => a.trim().toUpperCase()) : new Array(4).fill("")), q.includes(s.trim()) ? t(0, s = s.trim()) : (console.warn(`Invalid Attribute Value: "${s}" is not a valid value for the "visualstructure" attribute. Defaulting to "${q[0]}"`), t(0, s = q[0])), t(10, K = T && O && !F ? T : L), t(11, te = S), t(9, re = [p, o, w, C]);
396
+ }, oe = (a) => a.map((u) => Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(u)), ue = () => {
397
+ const a = window.innerHeight / window.innerWidth;
398
+ return 0.75 < a && a < 1.6;
399
+ }, Q = () => {
400
+ window.postMessage({ type: "JackpotBannerClicked", gameid: d }, window.location.href), typeof gtag == "function" && gtag("event", "JackpotBannerClicked", {
401
+ context: "JackpotBanner",
402
+ gameId: `${d}`
403
+ });
404
+ }, de = () => {
405
+ let a = document.createElement("style");
406
+ a.innerHTML = I, N.appendChild(a);
407
+ }, ge = () => {
408
+ t(12, z = !0);
409
+ let a = new URL(m), u = document.createElement("style");
410
+ fetch(a.href).then((_) => _.text()).then((_) => {
411
+ u.innerHTML = _, setTimeout(
412
+ () => {
413
+ N.appendChild(u);
414
+ },
415
+ 1
416
+ ), setTimeout(
417
+ () => {
418
+ t(12, z = !1);
419
+ },
420
+ 500
421
+ );
422
+ });
423
+ }, X = () => {
424
+ Be(b);
425
+ }, Z = () => Q();
426
+ function D(a) {
427
+ ze[a ? "unshift" : "push"](() => {
428
+ N = a, t(2, N);
429
+ });
430
+ }
431
+ return n.$$set = (a) => {
432
+ "visualstructure" in a && t(0, s = a.visualstructure), "title" in a && t(15, r = a.title), "caticon0" in a && t(16, p = a.caticon0), "caticon1" in a && t(17, o = a.caticon1), "caticon2" in a && t(18, w = a.caticon2), "caticon3" in a && t(19, C = a.caticon3), "iconlabels" in a && t(20, f = a.iconlabels), "backgroundsrc" in a && t(21, L = a.backgroundsrc), "currency" in a && t(1, v = a.currency), "backgroundsrcmobile" in a && t(22, T = a.backgroundsrcmobile), "titlelogopath" in a && t(23, S = a.titlelogopath), "lang" in a && t(24, b = a.lang), "clientstyling" in a && t(25, I = a.clientstyling), "clientstylingurl" in a && t(26, m = a.clientstylingurl), "translationurl" in a && t(27, h = a.translationurl), "endpoint" in a && t(28, g = a.endpoint), "gameid" in a && t(29, d = a.gameid);
433
+ }, n.$$.update = () => {
434
+ n.$$.dirty[0] & /*endpoint*/
435
+ 268435456 && g && ne(), n.$$.dirty[0] & /*customStylingContainer, clientstyling*/
436
+ 33554436 && N && I && de(), n.$$.dirty[0] & /*customStylingContainer, clientstylingurl*/
437
+ 67108868 && N && m && ge(), n.$$.dirty[0] & /*endpoint, lang, currency, validGameIds*/
438
+ 1358954498 && g && b && v && M.length > 0 && G(), n.$$.dirty[0] & /*currency, lang, isLoading*/
439
+ 16777226 && v && b && !E && le(), n.$$.dirty[0] & /*lang*/
440
+ 16777216 && b && X(), n.$$.dirty[0] & /*translationurl*/
441
+ 134217728 && h && ae();
442
+ }, [
443
+ s,
444
+ v,
445
+ N,
446
+ E,
447
+ O,
448
+ F,
449
+ $,
450
+ Y,
451
+ ee,
452
+ re,
453
+ K,
454
+ te,
455
+ z,
456
+ P,
457
+ Q,
458
+ r,
459
+ p,
460
+ o,
461
+ w,
462
+ C,
463
+ f,
464
+ L,
465
+ T,
466
+ S,
467
+ b,
468
+ I,
469
+ m,
470
+ h,
471
+ g,
472
+ d,
473
+ M,
474
+ Z,
475
+ D
476
+ ];
477
+ }
478
+ class Ye extends We {
479
+ constructor(e) {
480
+ super(), Ae(
481
+ this,
482
+ e,
483
+ Ge,
484
+ qe,
485
+ Ve,
486
+ {
487
+ visualstructure: 0,
488
+ title: 15,
489
+ caticon0: 16,
490
+ caticon1: 17,
491
+ caticon2: 18,
492
+ caticon3: 19,
493
+ iconlabels: 20,
494
+ backgroundsrc: 21,
495
+ currency: 1,
496
+ backgroundsrcmobile: 22,
497
+ titlelogopath: 23,
498
+ lang: 24,
499
+ clientstyling: 25,
500
+ clientstylingurl: 26,
501
+ translationurl: 27,
502
+ endpoint: 28,
503
+ gameid: 29
504
+ },
505
+ Me,
506
+ [-1, -1]
507
+ );
508
+ }
509
+ get visualstructure() {
510
+ return this.$$.ctx[0];
511
+ }
512
+ set visualstructure(e) {
513
+ this.$$set({ visualstructure: e }), j();
514
+ }
515
+ get title() {
516
+ return this.$$.ctx[15];
517
+ }
518
+ set title(e) {
519
+ this.$$set({ title: e }), j();
520
+ }
521
+ get caticon0() {
522
+ return this.$$.ctx[16];
523
+ }
524
+ set caticon0(e) {
525
+ this.$$set({ caticon0: e }), j();
526
+ }
527
+ get caticon1() {
528
+ return this.$$.ctx[17];
529
+ }
530
+ set caticon1(e) {
531
+ this.$$set({ caticon1: e }), j();
532
+ }
533
+ get caticon2() {
534
+ return this.$$.ctx[18];
535
+ }
536
+ set caticon2(e) {
537
+ this.$$set({ caticon2: e }), j();
538
+ }
539
+ get caticon3() {
540
+ return this.$$.ctx[19];
541
+ }
542
+ set caticon3(e) {
543
+ this.$$set({ caticon3: e }), j();
544
+ }
545
+ get iconlabels() {
546
+ return this.$$.ctx[20];
547
+ }
548
+ set iconlabels(e) {
549
+ this.$$set({ iconlabels: e }), j();
550
+ }
551
+ get backgroundsrc() {
552
+ return this.$$.ctx[21];
553
+ }
554
+ set backgroundsrc(e) {
555
+ this.$$set({ backgroundsrc: e }), j();
556
+ }
557
+ get currency() {
558
+ return this.$$.ctx[1];
559
+ }
560
+ set currency(e) {
561
+ this.$$set({ currency: e }), j();
562
+ }
563
+ get backgroundsrcmobile() {
564
+ return this.$$.ctx[22];
565
+ }
566
+ set backgroundsrcmobile(e) {
567
+ this.$$set({ backgroundsrcmobile: e }), j();
568
+ }
569
+ get titlelogopath() {
570
+ return this.$$.ctx[23];
571
+ }
572
+ set titlelogopath(e) {
573
+ this.$$set({ titlelogopath: e }), j();
574
+ }
575
+ get lang() {
576
+ return this.$$.ctx[24];
577
+ }
578
+ set lang(e) {
579
+ this.$$set({ lang: e }), j();
580
+ }
581
+ get clientstyling() {
582
+ return this.$$.ctx[25];
583
+ }
584
+ set clientstyling(e) {
585
+ this.$$set({ clientstyling: e }), j();
586
+ }
587
+ get clientstylingurl() {
588
+ return this.$$.ctx[26];
589
+ }
590
+ set clientstylingurl(e) {
591
+ this.$$set({ clientstylingurl: e }), j();
592
+ }
593
+ get translationurl() {
594
+ return this.$$.ctx[27];
595
+ }
596
+ set translationurl(e) {
597
+ this.$$set({ translationurl: e }), j();
598
+ }
599
+ get endpoint() {
600
+ return this.$$.ctx[28];
601
+ }
602
+ set endpoint(e) {
603
+ this.$$set({ endpoint: e }), j();
604
+ }
605
+ get gameid() {
606
+ return this.$$.ctx[29];
607
+ }
608
+ set gameid(e) {
609
+ this.$$set({ gameid: e }), j();
610
+ }
611
+ }
612
+ Ie(Ye, { visualstructure: {}, title: {}, caticon0: {}, caticon1: {}, caticon2: {}, caticon3: {}, iconlabels: {}, backgroundsrc: {}, currency: {}, backgroundsrcmobile: {}, titlelogopath: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, endpoint: {}, gameid: {} }, [], [], !0);
613
+ export {
614
+ Ye as default
615
+ };