@everymatrix/casino-lobby 1.59.0 → 1.59.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 (104) hide show
  1. package/components/{CasinoCalendar-CEPKCmvL.js → CasinoCalendar-6ncpIgng.js} +937 -912
  2. package/components/CasinoCalendar-CkNAiTx8.cjs +22 -0
  3. package/components/{CasinoCalendar-BWZKTjt3.js → CasinoCalendar-Km8tdNHN.js} +930 -905
  4. package/components/{CasinoCalendarDailyDetails-C4rdfT96.js → CasinoCalendarDailyDetails-CAbwFBvZ.js} +48 -48
  5. package/components/{CasinoCalendarDailyDetails-BZxw5rrd.js → CasinoCalendarDailyDetails-CGaAU2gc.js} +48 -48
  6. package/components/{CasinoCalendarDailyDetails-CneP-8H4.cjs → CasinoCalendarDailyDetails-CsEZhtVE.cjs} +1 -1
  7. package/components/{CasinoCalendarDailyItem-B3mEEjHA.js → CasinoCalendarDailyItem-5aqnKIMr.js} +41 -41
  8. package/components/{CasinoCalendarDailyItem-yxm1jout.cjs → CasinoCalendarDailyItem-DSlC0F3s.cjs} +1 -1
  9. package/components/{CasinoCalendarDailyItem-DAH0pKrw.js → CasinoCalendarDailyItem-D_MTrKed.js} +41 -41
  10. package/components/{CasinoCategoriesSlider-t9Ea10Xr.js → CasinoCategoriesSlider-CZHyRC-C.js} +67 -67
  11. package/components/CasinoCategoriesSlider-DMR3iCVW.cjs +1 -0
  12. package/components/{CasinoCategoriesSlider-Dd33-jys.js → CasinoCategoriesSlider-Dm2i_QTf.js} +66 -66
  13. package/components/{CasinoCollectionsProviders-CBiEhbus.cjs → CasinoCollectionsProviders-B6occ8TF.cjs} +1 -1
  14. package/components/{CasinoCollectionsProviders-bmfbt1iI.js → CasinoCollectionsProviders-B7d5LuGP.js} +145 -142
  15. package/components/{CasinoCollectionsProviders-DAgGlzwM.js → CasinoCollectionsProviders-pk8jpLQt.js} +142 -139
  16. package/components/{CasinoFavoritesSection-B9pa_5wC.js → CasinoFavoritesSection-C949lfcK.js} +26 -26
  17. package/components/{CasinoFavoritesSection-Dm0Ylorq.js → CasinoFavoritesSection-V5ybOUJC.js} +26 -26
  18. package/components/{CasinoFavoritesSection-n_i25VDL.cjs → CasinoFavoritesSection-hHKNAcoS.cjs} +1 -1
  19. package/components/{CasinoFilter-BTP1X8zp.js → CasinoFilter-BTof425X.js} +247 -246
  20. package/components/{CasinoFilter-BaCM2CFg.js → CasinoFilter-BWjq7W1e.js} +234 -235
  21. package/components/CasinoFilter-C2Q93qQz.cjs +1 -0
  22. package/components/{CasinoGamePage-DSk7OmI2.js → CasinoGamePage-Cp2CKRka.js} +742 -742
  23. package/components/{CasinoGamePage-CIvFWln2.cjs → CasinoGamePage-D2huRBJX.cjs} +6 -6
  24. package/components/{CasinoGamePage-jh3dkrf4.js → CasinoGamePage-ssKF-ZD1.js} +741 -741
  25. package/components/CasinoGameThumbnail-CVz7FpsB.js +1866 -0
  26. package/components/CasinoGameThumbnail-DK9cpR-G.cjs +38 -0
  27. package/components/CasinoGameThumbnail-NLieCJGe.js +1850 -0
  28. package/components/{CasinoGamesCategorySection-BBfNK7Mo.cjs → CasinoGamesCategorySection-BAcJus2G.cjs} +1 -1
  29. package/components/{CasinoGamesCategorySection-dyyrntic.js → CasinoGamesCategorySection-BP3bZsZg.js} +433 -428
  30. package/components/{CasinoGamesCategorySection-BU3JMFcx.js → CasinoGamesCategorySection-Bpy9vh6D.js} +520 -515
  31. package/components/{CasinoJackpotBanner-BvW5shKI.js → CasinoJackpotBanner-CuP8WP5Q.js} +219 -214
  32. package/components/{CasinoJackpotBanner-7unbFH4I.js → CasinoJackpotBanner-Dl2rX6vI.js} +191 -186
  33. package/components/CasinoJackpotBanner-DredUN6K.cjs +1 -0
  34. package/components/{CasinoLastPlayedSection-BtSsd68j.js → CasinoLastPlayedSection-B9I2fZm5.js} +43 -43
  35. package/components/{CasinoLastPlayedSection-YmqYIIYS.cjs → CasinoLastPlayedSection-COAM1aoc.cjs} +1 -1
  36. package/components/{CasinoLastPlayedSection--cJ8dS0F.js → CasinoLastPlayedSection-CVEuFsbi.js} +43 -43
  37. package/components/{CasinoLobby--nSc5THC.js → CasinoLobby-AoZlXLOV.js} +45 -45
  38. package/components/{CasinoLobby-DngFRvmY.js → CasinoLobby-BRiasSXJ.js} +47 -47
  39. package/components/{CasinoLobby-BUcjKu4u.cjs → CasinoLobby-CYqI5Bvp.cjs} +1 -1
  40. package/components/{CasinoModal-88yfZulM.js → CasinoModal-B9Gmdwc0.js} +41 -41
  41. package/components/{CasinoModal-D9_hs2c9.js → CasinoModal-DLgyWFbs.js} +41 -41
  42. package/components/{CasinoModal-Ce5Pthg0.cjs → CasinoModal-d1VUXUWj.cjs} +1 -1
  43. package/components/{CasinoMostPlayedSection-BldCqqK1.js → CasinoMostPlayedSection-9B6X9czZ.js} +50 -50
  44. package/components/{CasinoMostPlayedSection-DI5TANog.cjs → CasinoMostPlayedSection-BUwIld9p.cjs} +1 -1
  45. package/components/{CasinoMostPlayedSection-CvX-e31F.js → CasinoMostPlayedSection-DwZh0uxo.js} +50 -50
  46. package/components/{CasinoMyGames-CJm9ApZ8.js → CasinoMyGames-76IMIo9z.js} +50 -50
  47. package/components/{CasinoMyGames-CNSxKFTG.js → CasinoMyGames-DRCxYUHg.js} +53 -53
  48. package/components/{CasinoMyGames-DQEE59aC.cjs → CasinoMyGames-DTGaTHyO.cjs} +1 -1
  49. package/components/{CasinoPage-Renb8OYu.js → CasinoPage-BPxxsTeq.js} +1502 -1456
  50. package/components/CasinoPage-CikRIum6.js +3755 -0
  51. package/components/CasinoPage-DZ6Yhwli.cjs +1 -0
  52. package/components/{CasinoRandomGame-CjLDPmJh.cjs → CasinoRandomGame-CBcSHzZL.cjs} +1 -1
  53. package/components/{CasinoRandomGame-CaLII6na.js → CasinoRandomGame-CfOiAKHl.js} +63 -63
  54. package/components/{CasinoRandomGame-8kMXdgrA.js → CasinoRandomGame-CqripZYr.js} +64 -64
  55. package/components/{CasinoSearch-eN8ZAKdn.js → CasinoSearch-CCcjmB9U.js} +72 -72
  56. package/components/{CasinoSearch-Cf4ivtxM.cjs → CasinoSearch-CZSrkWFZ.cjs} +1 -1
  57. package/components/{CasinoSearch-ISBqoS_l.js → CasinoSearch-Cs8FRwGb.js} +72 -72
  58. package/components/{CasinoSlider-DLY4ZBJR.js → CasinoSlider-0rdHVHjG.js} +65 -65
  59. package/components/{CasinoSlider-BqOuFEE1.cjs → CasinoSlider-CMKmgXUK.cjs} +1 -1
  60. package/components/{CasinoSlider-DTLHID6G.js → CasinoSlider-CleETLFf.js} +74 -74
  61. package/components/{CasinoSort-DKL_qMEQ.js → CasinoSort-BRC8Jmi_.js} +103 -104
  62. package/components/{CasinoSort-BpUmCYRy.cjs → CasinoSort-C78a6veQ.cjs} +1 -1
  63. package/components/{CasinoSort-BNFUwAYT.js → CasinoSort-xZsxfLYC.js} +111 -110
  64. package/components/{CasinoWinners-Czg0Gq3N.js → CasinoWinners-BEOhs5WG.js} +181 -178
  65. package/components/{CasinoWinners-DRdsN9K_.cjs → CasinoWinners-Cp1yMlzb.cjs} +1 -1
  66. package/components/{CasinoWinners-BoSyqMDy.js → CasinoWinners-DD8ZyQkV.js} +187 -184
  67. package/components/{GeneralAnimationLoading-CVr2zyUi.cjs → GeneralAnimationLoading-Bl6_sP-d.cjs} +1 -1
  68. package/components/{GeneralAnimationLoading-DL8bFxE7.js → GeneralAnimationLoading-CURVDkRT.js} +16 -16
  69. package/components/{GeneralAnimationLoading-swHQRr7H.js → GeneralAnimationLoading-uswxvfCW.js} +16 -16
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +3 -2
  74. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  75. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  76. package/stencil/{casino-play-random-game-BOnTgUqC.js → casino-play-random-game-BW66Civ1.js} +20 -18
  77. package/stencil/{casino-play-random-game-NcJEjFWA.js → casino-play-random-game-Bk7toWLj.js} +19 -17
  78. package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
  79. package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
  80. package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
  81. package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
  82. package/stencil/index-ae04a8b1-BvZmaj3p.js +532 -0
  83. package/stencil/index-ae04a8b1-DoeYpoC5.js +516 -0
  84. package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +1 -0
  85. package/stencil/ui-skeleton-C02hm1pt.js +29 -0
  86. package/stencil/ui-skeleton-DET4YE0J.js +11 -0
  87. package/stencil/ui-skeleton-DlNNnOZy.cjs +1 -0
  88. package/stencil/ui-skeleton-a642cced-7C4Fyb2d.js +122 -0
  89. package/stencil/ui-skeleton-a642cced-BhVS1i2r.cjs +1 -0
  90. package/stencil/ui-skeleton-a642cced-Dn9GOtgo.js +122 -0
  91. package/components/CasinoCalendar-YzaZrGBf.cjs +0 -22
  92. package/components/CasinoCategoriesSlider-DozoHOzF.cjs +0 -1
  93. package/components/CasinoFilter-B7H_n_MD.cjs +0 -1
  94. package/components/CasinoGameThumbnail-BXCu7VY7.js +0 -1834
  95. package/components/CasinoGameThumbnail-Mnpd_s_M.js +0 -1850
  96. package/components/CasinoGameThumbnail-uCJn0tBq.cjs +0 -38
  97. package/components/CasinoJackpotBanner-RjyciaDJ.cjs +0 -1
  98. package/components/CasinoPage-DeZ_xrWS.js +0 -3709
  99. package/components/CasinoPage-_d_6nEdh.cjs +0 -1
  100. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  101. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  102. package/stencil/index-510a6ba4-1RrL4Z6e.js +0 -564
  103. package/stencil/index-510a6ba4-CNr-xCZE.js +0 -548
  104. package/stencil/index-510a6ba4-eEczisTR.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-YzaZrGBf.cjs");function z(n,a){e.addMessages(n,a)}function B(n){e.$locale.set(n)}const E={en:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},hr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"ponedjeljak",tuesday:"utorak",wednesday:"srijeda",thursday:"četvrtak",friday:"petak",saturday:"subota",sunday:"nedjelja"},"pt-br":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"es-mx":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},tr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"en-us":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"}};function j(n){e.append_styles(n,"svelte-15mlcfp",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}')}function D(n){let a,r,b,l,g,C,i,u,s,p,m,c,y=n[8](`${n[2]}`)+"",h,f,o,_,v,x,S,k,w,I,T;return{c(){a=e.element("div"),r=e.element("div"),b=e.element("div"),l=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',C=e.space(),i=e.element("div"),u=e.element("div"),s=e.element("img"),m=e.space(),c=e.element("div"),h=e.text(y),f=e.space(),o=e.element("div"),_=e.space(),v=e.element("div"),x=e.element("button"),S=e.text(n[3]),e.attr(g,"class","CalendarBar"),e.src_url_equal(s.src,p=n[1])||e.attr(s,"src",p),e.attr(s,"alt",n[1]),e.attr(u,"class","CasinoCalendarDailyIcon"),e.attr(c,"class","CasinoCalendarDailyTitle"),e.attr(o,"class","CasinoCalendarDailyItemDescription"),e.attr(x,"class","MoreInfoButton"),e.attr(v,"class","CasinoCalendarDailyItemButton"),e.attr(i,"class",k="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(i,"background-image","url('"+n[0]+"')"),e.set_style(i,"background-size","cover"),e.set_style(i,"background-position","center"),e.set_style(i,"-webkit-background-size","cover"),e.set_style(i,"-moz-background-size","cover"),e.set_style(i,"-o-background-size","cover"),e.attr(l,"class","CalendarCard"),e.attr(b,"class","CasinoCalendarItems"),e.attr(r,"class",w="Container "+(n[7]?"Mobile":""))},m(d,t){e.insert(d,a,t),e.append(a,r),e.append(r,b),e.append(b,l),e.append(l,g),e.append(l,C),e.append(l,i),e.append(i,u),e.append(u,s),e.append(i,m),e.append(i,c),e.append(c,h),e.append(i,f),e.append(i,o),n[16](o),e.append(i,_),e.append(i,v),e.append(v,x),e.append(x,S),n[18](a),I||(T=e.listen(x,"click",n[17]),I=!0)},p(d,[t]){t&2&&!e.src_url_equal(s.src,p=d[1])&&e.attr(s,"src",p),t&2&&e.attr(s,"alt",d[1]),t&260&&y!==(y=d[8](`${d[2]}`)+"")&&e.set_data(h,y),t&8&&e.set_data(S,d[3]),t&16&&k!==(k="CasinoCalendarItemBackground CalendarPage "+(d[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(i,"class",k),t&1&&e.set_style(i,"background-image","url('"+d[0]+"')"),t&128&&w!==(w="Container "+(d[7]?"Mobile":""))&&e.attr(r,"class",w)},i:e.noop,o:e.noop,d(d){d&&e.detach(a),n[16](null),n[18](null),I=!1,T()}}}function R(n,a,r){let b;e.component_subscribe(n,e.$format,t=>r(8,b=t));let{lang:l=""}=a,{dailybackground:g=""}=a,{dailyicon:C=""}=a,{dailyday:i=""}=a,{dailydescription:u="<p></p>"}=a,{dailybuttontitle:s=""}=a,{index:p="0"}=a,{mbsource:m}=a,{clientstyling:c=""}=a,{clientstylingurl:y=""}=a,{translationurl:h=""}=a,f,o,_=!1,v=window.navigator.userAgent;const x=()=>{B(l)};Object.keys(E).forEach(t=>{z(t,E[t])});const S=()=>{let t=h;if(t)return fetch(t).then(F=>F.json()).then(F=>{Object.keys(F).forEach(M=>{z(M,F[M])})}).catch(F=>{console.log(F)})},k=()=>{let t=document.createElement("div");t.innerHTML=u,f&&f.append(t)},w=()=>{window.postMessage({type:"OpenCalendar",index:p},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})};e.onMount(()=>(e.isMobile(v)&&r(7,_=!0),()=>{}));function I(t){e.binding_callbacks[t?"unshift":"push"](()=>{f=t,r(6,f)})}const T=()=>w();function d(t){e.binding_callbacks[t?"unshift":"push"](()=>{o=t,r(5,o)})}return n.$$set=t=>{"lang"in t&&r(10,l=t.lang),"dailybackground"in t&&r(0,g=t.dailybackground),"dailyicon"in t&&r(1,C=t.dailyicon),"dailyday"in t&&r(2,i=t.dailyday),"dailydescription"in t&&r(11,u=t.dailydescription),"dailybuttontitle"in t&&r(3,s=t.dailybuttontitle),"index"in t&&r(4,p=t.index),"mbsource"in t&&r(12,m=t.mbsource),"clientstyling"in t&&r(13,c=t.clientstyling),"clientstylingurl"in t&&r(14,y=t.clientstylingurl),"translationurl"in t&&r(15,h=t.translationurl)},n.$$.update=()=>{n.$$.dirty&1024&&l&&x(),n.$$.dirty&33792&&l&&h&&S(),n.$$.dirty&2063&&C&&i&&u&&s&&g&&k(),n.$$.dirty&8224&&c&&o&&e.setClientStyling(o,c),n.$$.dirty&16416&&y&&o&&e.setClientStylingURL(o,y),n.$$.dirty&4128&&m&&o&&e.setStreamStyling(o,`${m}.Style`)},[g,C,i,s,p,o,f,_,b,w,l,u,m,c,y,h,I,T,d]}class L extends e.SvelteComponent{constructor(a){super(),e.init(this,a,R,D,e.safe_not_equal,{lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,mbsource:12,clientstyling:13,clientstylingurl:14,translationurl:15},j)}get lang(){return this.$$.ctx[10]}set lang(a){this.$$set({lang:a}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(a){this.$$set({dailybackground:a}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(a){this.$$set({dailyicon:a}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(a){this.$$set({dailyday:a}),e.flush()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(a){this.$$set({dailydescription:a}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(a){this.$$set({dailybuttontitle:a}),e.flush()}get index(){return this.$$.ctx[4]}set index(a){this.$$set({index:a}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(a){this.$$set({mbsource:a}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}}e.create_custom_element(L,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-CkNAiTx8.cjs");function z(n,a){e.addMessages(n,a)}function B(n){e.$locale.set(n)}const E={en:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},hr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"ponedjeljak",tuesday:"utorak",wednesday:"srijeda",thursday:"četvrtak",friday:"petak",saturday:"subota",sunday:"nedjelja"},"pt-br":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"es-mx":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},tr:{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},"en-us":{error:"500 Error - Internal Server Error",loading:"Loading ...",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"}};function j(n){e.append_styles(n,"svelte-15mlcfp",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}')}function D(n){let a,r,b,l,g,C,i,u,s,p,m,c,y=n[8](`${n[2]}`)+"",h,f,o,_,v,x,S,k,w,I,T;return{c(){a=e.element("div"),r=e.element("div"),b=e.element("div"),l=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',C=e.space(),i=e.element("div"),u=e.element("div"),s=e.element("img"),m=e.space(),c=e.element("div"),h=e.text(y),f=e.space(),o=e.element("div"),_=e.space(),v=e.element("div"),x=e.element("button"),S=e.text(n[3]),e.attr(g,"class","CalendarBar"),e.src_url_equal(s.src,p=n[1])||e.attr(s,"src",p),e.attr(s,"alt",n[1]),e.attr(u,"class","CasinoCalendarDailyIcon"),e.attr(c,"class","CasinoCalendarDailyTitle"),e.attr(o,"class","CasinoCalendarDailyItemDescription"),e.attr(x,"class","MoreInfoButton"),e.attr(v,"class","CasinoCalendarDailyItemButton"),e.attr(i,"class",k="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(i,"background-image","url('"+n[0]+"')"),e.set_style(i,"background-size","cover"),e.set_style(i,"background-position","center"),e.set_style(i,"-webkit-background-size","cover"),e.set_style(i,"-moz-background-size","cover"),e.set_style(i,"-o-background-size","cover"),e.attr(l,"class","CalendarCard"),e.attr(b,"class","CasinoCalendarItems"),e.attr(r,"class",w="Container "+(n[7]?"Mobile":""))},m(d,t){e.insert(d,a,t),e.append(a,r),e.append(r,b),e.append(b,l),e.append(l,g),e.append(l,C),e.append(l,i),e.append(i,u),e.append(u,s),e.append(i,m),e.append(i,c),e.append(c,h),e.append(i,f),e.append(i,o),n[16](o),e.append(i,_),e.append(i,v),e.append(v,x),e.append(x,S),n[18](a),I||(T=e.listen(x,"click",n[17]),I=!0)},p(d,[t]){t&2&&!e.src_url_equal(s.src,p=d[1])&&e.attr(s,"src",p),t&2&&e.attr(s,"alt",d[1]),t&260&&y!==(y=d[8](`${d[2]}`)+"")&&e.set_data(h,y),t&8&&e.set_data(S,d[3]),t&16&&k!==(k="CasinoCalendarItemBackground CalendarPage "+(d[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(i,"class",k),t&1&&e.set_style(i,"background-image","url('"+d[0]+"')"),t&128&&w!==(w="Container "+(d[7]?"Mobile":""))&&e.attr(r,"class",w)},i:e.noop,o:e.noop,d(d){d&&e.detach(a),n[16](null),n[18](null),I=!1,T()}}}function R(n,a,r){let b;e.component_subscribe(n,e.$format,t=>r(8,b=t));let{lang:l=""}=a,{dailybackground:g=""}=a,{dailyicon:C=""}=a,{dailyday:i=""}=a,{dailydescription:u="<p></p>"}=a,{dailybuttontitle:s=""}=a,{index:p="0"}=a,{mbsource:m}=a,{clientstyling:c=""}=a,{clientstylingurl:y=""}=a,{translationurl:h=""}=a,f,o,_=!1,v=window.navigator.userAgent;const x=()=>{B(l)};Object.keys(E).forEach(t=>{z(t,E[t])});const S=()=>{let t=h;if(t)return fetch(t).then(F=>F.json()).then(F=>{Object.keys(F).forEach(M=>{z(M,F[M])})}).catch(F=>{console.log(F)})},k=()=>{let t=document.createElement("div");t.innerHTML=u,f&&f.append(t)},w=()=>{window.postMessage({type:"OpenCalendar",index:p},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})};e.onMount(()=>(e.isMobile(v)&&r(7,_=!0),()=>{}));function I(t){e.binding_callbacks[t?"unshift":"push"](()=>{f=t,r(6,f)})}const T=()=>w();function d(t){e.binding_callbacks[t?"unshift":"push"](()=>{o=t,r(5,o)})}return n.$$set=t=>{"lang"in t&&r(10,l=t.lang),"dailybackground"in t&&r(0,g=t.dailybackground),"dailyicon"in t&&r(1,C=t.dailyicon),"dailyday"in t&&r(2,i=t.dailyday),"dailydescription"in t&&r(11,u=t.dailydescription),"dailybuttontitle"in t&&r(3,s=t.dailybuttontitle),"index"in t&&r(4,p=t.index),"mbsource"in t&&r(12,m=t.mbsource),"clientstyling"in t&&r(13,c=t.clientstyling),"clientstylingurl"in t&&r(14,y=t.clientstylingurl),"translationurl"in t&&r(15,h=t.translationurl)},n.$$.update=()=>{n.$$.dirty&1024&&l&&x(),n.$$.dirty&33792&&l&&h&&S(),n.$$.dirty&2063&&C&&i&&u&&s&&g&&k(),n.$$.dirty&8224&&c&&o&&e.setClientStyling(o,c),n.$$.dirty&16416&&y&&o&&e.setClientStylingURL(o,y),n.$$.dirty&4128&&m&&o&&e.setStreamStyling(o,`${m}.Style`)},[g,C,i,s,p,o,f,_,b,w,l,u,m,c,y,h,I,T,d]}class L extends e.SvelteComponent{constructor(a){super(),e.init(this,a,R,D,e.safe_not_equal,{lang:10,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:11,dailybuttontitle:3,index:4,mbsource:12,clientstyling:13,clientstylingurl:14,translationurl:15},j)}get lang(){return this.$$.ctx[10]}set lang(a){this.$$set({lang:a}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(a){this.$$set({dailybackground:a}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(a){this.$$set({dailyicon:a}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(a){this.$$set({dailyday:a}),e.flush()}get dailydescription(){return this.$$.ctx[11]}set dailydescription(a){this.$$set({dailydescription:a}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(a){this.$$set({dailybuttontitle:a}),e.flush()}get index(){return this.$$.ctx[4]}set index(a){this.$$set({index:a}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(a){this.$$set({mbsource:a}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(a){this.$$set({clientstyling:a}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(a){this.$$set({clientstylingurl:a}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(a){this.$$set({translationurl:a}),e.flush()}}e.create_custom_element(L,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=L;
@@ -1,9 +1,9 @@
1
- import { a as N, $ as H, S as U, i as G, s as J, f as y, b as K, n as j, d as V, D as R, r as o, m as A, G as F, h as Q, p as r, A as X, j as c, B, q as O, k as Y, o as Z, l as $, C as W, I as ee, J as te, K as ae, L as ie, M as ne } from "./CasinoCalendar-BWZKTjt3.js";
1
+ import { a as H, $ as N, S as U, i as G, f as y, c as V, s as J, b as K, e as u, w as B, x as D, y as o, H as R, L as F, d as Q, z as r, A as X, E as A, G as O, j as Y, k as Z, o as $, l as ee, m as te, p as ae, q as W, r as ie, I as ne } from "./CasinoCalendar-6ncpIgng.js";
2
2
  function P(a, t) {
3
- N(a, t);
3
+ H(a, t);
4
4
  }
5
5
  function re(a) {
6
- H.set(a);
6
+ N.set(a);
7
7
  }
8
8
  const q = {
9
9
  en: {
@@ -77,19 +77,19 @@ function oe(a) {
77
77
  K(a, "svelte-15mlcfp", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emw--color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emw--color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emw--color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
78
78
  }
79
79
  function de(a) {
80
- let t, n, w, s, f, S, i, g, u, x, C, b, h = (
80
+ let t, n, w, s, h, S, i, g, c, x, C, b, f = (
81
81
  /*$_*/
82
82
  a[8](`${/*dailyday*/
83
83
  a[2]}`) + ""
84
- ), p, m, d, T, I, v, z, _, k, E, L;
84
+ ), p, m, d, T, I, v, E, _, k, M, L;
85
85
  return {
86
86
  c() {
87
- t = c("div"), n = c("div"), w = c("div"), s = c("div"), f = c("div"), f.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', S = B(), i = c("div"), g = c("div"), u = c("img"), C = B(), b = c("div"), p = O(h), m = B(), d = c("div"), T = B(), I = c("div"), v = c("button"), z = O(
87
+ t = u("div"), n = u("div"), w = u("div"), s = u("div"), h = u("div"), h.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', S = B(), i = u("div"), g = u("div"), c = u("img"), C = B(), b = u("div"), p = D(f), m = B(), d = u("div"), T = B(), I = u("div"), v = u("button"), E = D(
88
88
  /*dailybuttontitle*/
89
89
  a[3]
90
- ), o(f, "class", "CalendarBar"), R(u.src, x = /*dailyicon*/
91
- a[1]) || o(u, "src", x), o(
92
- u,
90
+ ), o(h, "class", "CalendarBar"), R(c.src, x = /*dailyicon*/
91
+ a[1]) || o(c, "src", x), o(
92
+ c,
93
93
  "alt",
94
94
  /*dailyicon*/
95
95
  a[1]
@@ -99,28 +99,28 @@ function de(a) {
99
99
  (a[7] ? "Mobile" : ""));
100
100
  },
101
101
  m(l, e) {
102
- Q(l, t, e), r(t, n), r(n, w), r(w, s), r(s, f), r(s, S), r(s, i), r(i, g), r(g, u), r(i, C), r(i, b), r(b, p), r(i, m), r(i, d), a[16](d), r(i, T), r(i, I), r(I, v), r(v, z), a[18](t), E || (L = X(
102
+ Q(l, t, e), r(t, n), r(n, w), r(w, s), r(s, h), r(s, S), r(s, i), r(i, g), r(g, c), r(i, C), r(i, b), r(b, p), r(i, m), r(i, d), a[16](d), r(i, T), r(i, I), r(I, v), r(v, E), a[18](t), M || (L = X(
103
103
  v,
104
104
  "click",
105
105
  /*click_handler*/
106
106
  a[17]
107
- ), E = !0);
107
+ ), M = !0);
108
108
  },
109
109
  p(l, [e]) {
110
110
  e & /*dailyicon*/
111
- 2 && !R(u.src, x = /*dailyicon*/
112
- l[1]) && o(u, "src", x), e & /*dailyicon*/
111
+ 2 && !R(c.src, x = /*dailyicon*/
112
+ l[1]) && o(c, "src", x), e & /*dailyicon*/
113
113
  2 && o(
114
- u,
114
+ c,
115
115
  "alt",
116
116
  /*dailyicon*/
117
117
  l[1]
118
118
  ), e & /*$_, dailyday*/
119
- 260 && h !== (h = /*$_*/
119
+ 260 && f !== (f = /*$_*/
120
120
  l[8](`${/*dailyday*/
121
- l[2]}`) + "") && A(p, h), e & /*dailybuttontitle*/
121
+ l[2]}`) + "") && A(p, f), e & /*dailybuttontitle*/
122
122
  8 && A(
123
- z,
123
+ E,
124
124
  /*dailybuttontitle*/
125
125
  l[3]
126
126
  ), e & /*index*/
@@ -131,32 +131,32 @@ function de(a) {
131
131
  128 && k !== (k = "Container " + /*mobileView*/
132
132
  (l[7] ? "Mobile" : "")) && o(n, "class", k);
133
133
  },
134
- i: j,
135
- o: j,
134
+ i: O,
135
+ o: O,
136
136
  d(l) {
137
- l && V(t), a[16](null), a[18](null), E = !1, L();
137
+ l && Y(t), a[16](null), a[18](null), M = !1, L();
138
138
  }
139
139
  };
140
140
  }
141
141
  function le(a, t, n) {
142
142
  let w;
143
- Y(a, ne, (e) => n(8, w = e));
144
- let { lang: s = "" } = t, { dailybackground: f = "" } = t, { dailyicon: S = "" } = t, { dailyday: i = "" } = t, { dailydescription: g = "<p></p>" } = t, { dailybuttontitle: u = "" } = t, { index: x = "0" } = t, { mbsource: C } = t, { clientstyling: b = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: p = "" } = t, m, d, T = !1, I = window.navigator.userAgent;
143
+ Z(a, ne, (e) => n(8, w = e));
144
+ let { lang: s = "" } = t, { dailybackground: h = "" } = t, { dailyicon: S = "" } = t, { dailyday: i = "" } = t, { dailydescription: g = "<p></p>" } = t, { dailybuttontitle: c = "" } = t, { index: x = "0" } = t, { mbsource: C } = t, { clientstyling: b = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: p = "" } = t, m, d, T = !1, I = window.navigator.userAgent;
145
145
  const v = () => {
146
146
  re(s);
147
147
  };
148
148
  Object.keys(q).forEach((e) => {
149
149
  P(e, q[e]);
150
150
  });
151
- const z = () => {
151
+ const E = () => {
152
152
  let e = p;
153
153
  if (e)
154
- return fetch(e).then((M) => M.json()).then((M) => {
155
- Object.keys(M).forEach((D) => {
156
- P(D, M[D]);
154
+ return fetch(e).then((z) => z.json()).then((z) => {
155
+ Object.keys(z).forEach((j) => {
156
+ P(j, z[j]);
157
157
  });
158
- }).catch((M) => {
159
- console.log(M);
158
+ }).catch((z) => {
159
+ console.log(z);
160
160
  });
161
161
  }, _ = () => {
162
162
  let e = document.createElement("div");
@@ -164,9 +164,9 @@ function le(a, t, n) {
164
164
  }, k = () => {
165
165
  window.postMessage({ type: "OpenCalendar", index: x }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
166
166
  };
167
- Z(() => ($(I) && n(7, T = !0), () => {
167
+ $(() => (ae(I) && n(7, T = !0), () => {
168
168
  }));
169
- function E(e) {
169
+ function M(e) {
170
170
  W[e ? "unshift" : "push"](() => {
171
171
  m = e, n(6, m);
172
172
  });
@@ -178,20 +178,20 @@ function le(a, t, n) {
178
178
  });
179
179
  }
180
180
  return a.$$set = (e) => {
181
- "lang" in e && n(10, s = e.lang), "dailybackground" in e && n(0, f = e.dailybackground), "dailyicon" in e && n(1, S = e.dailyicon), "dailyday" in e && n(2, i = e.dailyday), "dailydescription" in e && n(11, g = e.dailydescription), "dailybuttontitle" in e && n(3, u = e.dailybuttontitle), "index" in e && n(4, x = e.index), "mbsource" in e && n(12, C = e.mbsource), "clientstyling" in e && n(13, b = e.clientstyling), "clientstylingurl" in e && n(14, h = e.clientstylingurl), "translationurl" in e && n(15, p = e.translationurl);
181
+ "lang" in e && n(10, s = e.lang), "dailybackground" in e && n(0, h = e.dailybackground), "dailyicon" in e && n(1, S = e.dailyicon), "dailyday" in e && n(2, i = e.dailyday), "dailydescription" in e && n(11, g = e.dailydescription), "dailybuttontitle" in e && n(3, c = e.dailybuttontitle), "index" in e && n(4, x = e.index), "mbsource" in e && n(12, C = e.mbsource), "clientstyling" in e && n(13, b = e.clientstyling), "clientstylingurl" in e && n(14, f = e.clientstylingurl), "translationurl" in e && n(15, p = e.translationurl);
182
182
  }, a.$$.update = () => {
183
183
  a.$$.dirty & /*lang*/
184
184
  1024 && s && v(), a.$$.dirty & /*lang, translationurl*/
185
- 33792 && s && p && z(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
186
- 2063 && S && i && g && u && f && _(), a.$$.dirty & /*clientstyling, customStylingContainer*/
187
- 8224 && b && d && ee(d, b), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
188
- 16416 && h && d && te(d, h), a.$$.dirty & /*mbsource, customStylingContainer*/
189
- 4128 && C && d && ae(d, `${C}.Style`);
185
+ 33792 && s && p && E(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
186
+ 2063 && S && i && g && c && h && _(), a.$$.dirty & /*clientstyling, customStylingContainer*/
187
+ 8224 && b && d && ie(d, b), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
188
+ 16416 && f && d && ee(d, f), a.$$.dirty & /*mbsource, customStylingContainer*/
189
+ 4128 && C && d && te(d, `${C}.Style`);
190
190
  }, [
191
- f,
191
+ h,
192
192
  S,
193
193
  i,
194
- u,
194
+ c,
195
195
  x,
196
196
  d,
197
197
  m,
@@ -202,9 +202,9 @@ function le(a, t, n) {
202
202
  g,
203
203
  C,
204
204
  b,
205
- h,
205
+ f,
206
206
  p,
207
- E,
207
+ M,
208
208
  L,
209
209
  l
210
210
  ];
@@ -300,7 +300,7 @@ class se extends U {
300
300
  this.$$set({ translationurl: t }), y();
301
301
  }
302
302
  }
303
- ie(se, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
303
+ V(se, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
304
304
  export {
305
305
  se as default
306
306
  };
@@ -1,8 +1,8 @@
1
- import { a as re, S as le, i as ce, s as me, f as l, b as ge, n as S, d as E, h as j, j as h, k as ue, o as ye, N as fe, C as be, r as T, O as n, p as de, P as he, I as Ne, J as we, K as Le, L as Me, Q as _e, M as ve } from "./CasinoCalendar-CEPKCmvL.js";
2
- function Z(i, e) {
3
- re(i, e);
1
+ import { a as le, S as ce, i as me, f as l, c as ge, s as ue, b as ye, e as h, d as E, G as S, j, k as fe, o as be, l as de, N as he, O as Ne, q as we, r as Le, m as Me, P as n, y as T, z as _e, Q as ve, I as Ce } from "./CasinoCalendar-Km8tdNHN.js";
2
+ function x(i, e) {
3
+ le(i, e);
4
4
  }
5
- const x = {
5
+ const p = {
6
6
  en: {
7
7
  lobbyName: "Lobby",
8
8
  myGamesName: "My games"
@@ -76,7 +76,7 @@ const x = {
76
76
  myGamesName: "My games"
77
77
  }
78
78
  };
79
- if (typeof window != "undefined") {
79
+ if (typeof window < "u") {
80
80
  let i = function(e) {
81
81
  return function(...t) {
82
82
  try {
@@ -88,14 +88,14 @@ if (typeof window != "undefined") {
88
88
  }
89
89
  };
90
90
  };
91
- customElements.define = i(customElements.define), import("./CasinoSlider-DTLHID6G.js").then(({ default: e }) => {
91
+ customElements.define = i(customElements.define), import("./CasinoSlider-0rdHVHjG.js").then(({ default: e }) => {
92
92
  !customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
93
93
  });
94
94
  }
95
- function Ce(i) {
96
- ge(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
97
- }
98
95
  function Ge(i) {
96
+ ye(i, "svelte-2g6deg", ".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}");
97
+ }
98
+ function ke(i) {
99
99
  let e, t, r, c;
100
100
  return {
101
101
  c() {
@@ -172,7 +172,7 @@ function Ge(i) {
172
172
  ), T(e, "class", "CasinoCategoriesContainer svelte-2g6deg");
173
173
  },
174
174
  m(a, o) {
175
- j(a, e, o), de(e, t), r || (c = he(
175
+ E(a, e, o), _e(e, t), r || (c = ve(
176
176
  /*sendSliderData*/
177
177
  i[17].call(null, t)
178
178
  ), r = !0);
@@ -265,48 +265,48 @@ function Ge(i) {
265
265
  );
266
266
  },
267
267
  d(a) {
268
- a && E(e), r = !1, c();
268
+ a && j(e), r = !1, c();
269
269
  }
270
270
  };
271
271
  }
272
- function ke(i) {
272
+ function Se(i) {
273
273
  let e;
274
274
  return {
275
275
  c() {
276
276
  e = h("p"), e.textContent = "500 Error - Internal Server Error.", T(e, "class", "SearchLoading svelte-2g6deg");
277
277
  },
278
278
  m(t, r) {
279
- j(t, e, r);
279
+ E(t, e, r);
280
280
  },
281
281
  p: S,
282
282
  d(t) {
283
- t && E(e);
283
+ t && j(e);
284
284
  }
285
285
  };
286
286
  }
287
- function Se(i) {
287
+ function Ee(i) {
288
288
  let e;
289
289
  return {
290
290
  c() {
291
291
  e = h("div"), T(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
292
292
  },
293
293
  m(t, r) {
294
- j(t, e, r);
294
+ E(t, e, r);
295
295
  },
296
296
  p: S,
297
297
  d(t) {
298
- t && E(e);
298
+ t && j(e);
299
299
  }
300
300
  };
301
301
  }
302
- function Ee(i) {
302
+ function je(i) {
303
303
  let e;
304
304
  function t(a, o) {
305
305
  return (
306
306
  /*isLoading*/
307
- a[13] || je || Pe ? Se : (
307
+ a[13] || Pe || Fe ? Ee : (
308
308
  /*hasErrors*/
309
- a[15] ? ke : Ge
309
+ a[15] ? Se : ke
310
310
  )
311
311
  );
312
312
  }
@@ -316,7 +316,7 @@ function Ee(i) {
316
316
  e = h("div"), c.c();
317
317
  },
318
318
  m(a, o) {
319
- j(a, e, o), c.m(e, null), i[27](e);
319
+ E(a, e, o), c.m(e, null), i[27](e);
320
320
  },
321
321
  p(a, o) {
322
322
  r === (r = t(a)) && c ? c.p(a, o) : (c.d(1), c = r(a), c && (c.c(), c.m(e, null)));
@@ -324,48 +324,48 @@ function Ee(i) {
324
324
  i: S,
325
325
  o: S,
326
326
  d(a) {
327
- a && E(e), c.d(), i[27](null);
327
+ a && j(e), c.d(), i[27](null);
328
328
  }
329
329
  };
330
330
  }
331
- let O = "CasinoSliderData", je = !1, Pe = !1;
332
- function Fe(i, e, t) {
331
+ let O = "CasinoSliderData", Pe = !1, Fe = !1;
332
+ function Ae(i, e, t) {
333
333
  let r;
334
- ue(i, ve, (s) => t(33, r = s));
335
- let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: Y = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: q = "" } = e, { lobbyiconimage: z = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, J, K, y = !0, b, d = [], f = !1, p = window.navigator.userAgent, g, Q, V = !1, F = !1;
336
- const $ = () => {
334
+ fe(i, Ce, (s) => t(33, r = s));
335
+ let { endpoint: c = "" } = e, { datasource: a = "" } = e, { lang: o = "" } = e, { userid: I = "" } = e, { session: N = "" } = e, { mostplayed: w = "" } = e, { lastplayed: L = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: B = "secondaryMenu" } = e, { showsubgroups: q = "false" } = e, { filteredcategories: C = "" } = e, { translationurl: G = "" } = e, { categoriesicon: z = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: H = "" } = e, { mbsource: P } = e, Q, J, K, y = !0, b, d = [], f = !1, $ = window.navigator.userAgent, g, V, W = !1, F = !1;
336
+ const ee = () => {
337
337
  fetch(G).then((m) => m.json()).then((m) => {
338
338
  Object.keys(m).forEach((k) => {
339
- Z(k, m[k]);
339
+ x(k, m[k]);
340
340
  });
341
341
  }).catch((m) => {
342
342
  console.log(m);
343
343
  });
344
344
  };
345
- Object.keys(x).forEach((s) => {
346
- Z(s, x[s]);
345
+ Object.keys(p).forEach((s) => {
346
+ x(s, p[s]);
347
347
  });
348
- const ee = () => {
349
- V == !1 && (M == "true" || w == "true" || L == "true") && d.splice(1, 0, {
348
+ const te = () => {
349
+ W == !1 && (M == "true" || w == "true" || L == "true") && d.splice(1, 0, {
350
350
  // @ts-ignore
351
351
  id: "MYGAMES",
352
352
  name: J,
353
353
  href: "",
354
354
  games: []
355
- }), _e(), V = !0, t(26, F = !0), A();
356
- }, te = () => (c || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!o || o.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), se = () => {
357
- if (J = r("myGamesName"), K = r("lobbyName"), !te()) {
355
+ }), he(), W = !0, t(26, F = !0), A();
356
+ }, se = () => (c || (b = "Endpoint is missing! Please provide a valid endpointURL.", t(15, f = !0), t(13, y = !1), console.error(b)), a || (b = "Datasource is missing! Please provide a valid datasource.", t(15, f = !0), t(13, y = !1), console.error(b)), (!o || o.length < 2) && (b = "Language is missing! Please provide a valid language (alpha2code)", t(15, f = !0), t(13, y = !1), console.error(b)), f), ie = () => {
357
+ if (J = r("myGamesName"), K = r("lobbyName"), !se()) {
358
358
  let s = new URL(`${c}/v1/casino/groups/${a}`);
359
- s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", fe(p)), fetch(s).then((m) => m.json()).then(
359
+ s.searchParams.append("datasource", a), s.searchParams.append("language", o), s.searchParams.append("platform", Ne($)), fetch(s).then((m) => m.json()).then(
360
360
  (m) => {
361
- let k = C.split(","), ne = m.items.filter((X) => {
361
+ let k = C.split(","), oe = m.items.filter((Z) => {
362
362
  let D = !1;
363
- if (X.games.total > 0 && (D = !0, C))
364
- for (let oe of k)
365
- X.flags == oe && (D = !1);
363
+ if (Z.games.total > 0 && (D = !0, C))
364
+ for (let re of k)
365
+ Z.flags == re && (D = !1);
366
366
  return D;
367
367
  });
368
- d = [], d = d.concat(ne), d.unshift({
368
+ d = [], d = d.concat(oe), d.unshift({
369
369
  // @ts-ignore
370
370
  id: "LOBBY",
371
371
  name: K,
@@ -380,7 +380,7 @@ function Fe(i, e, t) {
380
380
  t(15, f = !0), console.error("There was an error while fetching the categories", m);
381
381
  });
382
382
  }
383
- }, ie = () => {
383
+ }, ae = () => {
384
384
  let s = u.split("$");
385
385
  t(0, u = s.length > 2 ? u.split("$").slice(0, 2).join("$") : u);
386
386
  }, A = () => {
@@ -392,29 +392,29 @@ function Fe(i, e, t) {
392
392
  },
393
393
  window.location.href
394
394
  );
395
- }, W = (s) => {
395
+ }, X = (s) => {
396
396
  s.data && s.data.type == "SliderLoaded" && O == s.data.identity && A();
397
397
  };
398
- ye(() => (window.addEventListener("message", W, !1), () => {
399
- window.removeEventListener("message", W);
398
+ be(() => (window.addEventListener("message", X, !1), () => {
399
+ window.emMessageBus && Q && Q.unsubscribe(), window.removeEventListener("message", X);
400
400
  }));
401
- function ae(s) {
402
- be[s ? "unshift" : "push"](() => {
401
+ function ne(s) {
402
+ we[s ? "unshift" : "push"](() => {
403
403
  g = s, t(14, g);
404
404
  });
405
405
  }
406
406
  return i.$$set = (s) => {
407
- "endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, Y = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, q = s.categoriesicon), "lobbyiconimage" in s && t(10, z = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
407
+ "endpoint" in s && t(1, c = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, o = s.lang), "userid" in s && t(18, I = s.userid), "session" in s && t(19, N = s.session), "mostplayed" in s && t(20, w = s.mostplayed), "lastplayed" in s && t(21, L = s.lastplayed), "favorites" in s && t(22, M = s.favorites), "clientstyling" in s && t(4, _ = s.clientstyling), "clientstylingurl" in s && t(5, v = s.clientstylingurl), "activecategory" in s && t(0, u = s.activecategory), "actionevent" in s && t(6, R = s.actionevent), "sessioncheck" in s && t(23, U = s.sessioncheck), "location" in s && t(7, B = s.location), "showsubgroups" in s && t(8, q = s.showsubgroups), "filteredcategories" in s && t(24, C = s.filteredcategories), "translationurl" in s && t(25, G = s.translationurl), "categoriesicon" in s && t(9, z = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, H = s.mygamesiconimage), "mbsource" in s && t(12, P = s.mbsource);
408
408
  }, i.$$.update = () => {
409
409
  i.$$.dirty[0] & /*endpoint, datasource, lang*/
410
- 14 && c && a && o && se(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
411
- 7872514 && c && N && (w || L || M) && !y && ee(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
412
- 67641345 && !y && u && (!N || F) && ie(), i.$$.dirty[0] & /*translationurl*/
413
- 33554432 && G && $(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
414
- 16400 && _ && g && Ne(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
415
- 16416 && v && g && we(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
416
- 20480 && g && Le(g, `${P}.Style`);
417
- }, t(16, Q = 0), [
410
+ 14 && c && a && o && ie(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
411
+ 7872514 && c && N && (w || L || M) && !y && te(), i.$$.dirty[0] & /*isLoading, activecategory, session, confirmCategoryParse*/
412
+ 67641345 && !y && u && (!N || F) && ae(), i.$$.dirty[0] & /*translationurl*/
413
+ 33554432 && G && ee(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
414
+ 16400 && _ && g && Le(g, _), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
415
+ 16416 && v && g && de(g, v), i.$$.dirty[0] & /*customStylingContainer, mbsource*/
416
+ 20480 && g && Me(g, `${P}.Style`);
417
+ }, t(16, V = 0), [
418
418
  u,
419
419
  c,
420
420
  a,
@@ -423,15 +423,15 @@ function Fe(i, e, t) {
423
423
  v,
424
424
  R,
425
425
  B,
426
- Y,
427
426
  q,
428
427
  z,
428
+ Y,
429
429
  H,
430
430
  P,
431
431
  y,
432
432
  g,
433
433
  f,
434
- Q,
434
+ V,
435
435
  A,
436
436
  I,
437
437
  N,
@@ -442,17 +442,17 @@ function Fe(i, e, t) {
442
442
  C,
443
443
  G,
444
444
  F,
445
- ae
445
+ ne
446
446
  ];
447
447
  }
448
- class Ae extends le {
448
+ class De extends ce {
449
449
  constructor(e) {
450
- super(), ce(
450
+ super(), me(
451
451
  this,
452
452
  e,
453
- Fe,
454
- Ee,
455
- me,
453
+ Ae,
454
+ je,
455
+ ue,
456
456
  {
457
457
  endpoint: 1,
458
458
  datasource: 2,
@@ -476,7 +476,7 @@ class Ae extends le {
476
476
  mygamesiconimage: 11,
477
477
  mbsource: 12
478
478
  },
479
- Ce,
479
+ Ge,
480
480
  [-1, -1]
481
481
  );
482
482
  }
@@ -607,7 +607,7 @@ class Ae extends le {
607
607
  this.$$set({ mbsource: e }), l();
608
608
  }
609
609
  }
610
- Me(Ae, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
610
+ ge(De, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {}, mbsource: {} }, [], [], !0);
611
611
  export {
612
- Ae as default
612
+ De as default
613
613
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-CkNAiTx8.cjs");function K(i,e){t.addMessages(i,e)}const Q={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CMKmgXUK.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ie(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ne(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function le(i){let e;function s(n,o){return n[13]||re||ce?oe:n[15]?ne:ie}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",re=!1,ce=!1;function me(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:w=""}=e,{clientstyling:N=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,B,I,g=!0,f,y=[],d=!1,W=window.navigator.userAgent,m,Y,z=!1,S=!1;const X=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(C=>{K(C,c[C])})}).catch(c=>{console.log(c)})};Object.keys(Q).forEach(a=>{K(a,Q[a])});const Z=()=>{z==!1&&(w=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:B,href:"",games:[]}),t.tick(),z=!0,s(26,S=!0),k()},x=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),p=()=>{if(B=l("myGamesName"),I=l("lobbyName"),!x()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(W)),fetch(a).then(c=>c.json()).then(c=>{let C=M.split(","),te=c.items.filter(J=>{let E=!1;if(J.games.total>0&&(E=!0,M))for(let se of C)J.flags==se&&(E=!1);return E});y=[],y=y.concat(te),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},$=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},H=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",H,!1),()=>{window.emMessageBus&&q&&q.unsubscribe(),window.removeEventListener("message",H)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,w=a.favorites),"clientstyling"in a&&s(4,N=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,v=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&p(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||w)&&!g&&Z(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&$(),i.$$.dirty[0]&33554432&&v&&X(),i.$$.dirty[0]&16400&&N&&m&&t.setClientStyling(m,N),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,Y=0),[u,r,n,o,N,L,F,D,O,T,R,U,G,g,m,d,Y,k,P,h,b,_,w,A,M,v,S,ee]}class V extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},ae,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[23]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(V,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=V;