@everymatrix/casino-lobby 1.49.2 → 1.50.1

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 (76) hide show
  1. package/components/{CasinoCalendar-CCQut7OA.js → CasinoCalendar-0AyYaYr6.js} +366 -360
  2. package/components/CasinoCalendar-aMUXtMPt.cjs +9 -0
  3. package/components/{CasinoCalendarDailyDetails-AzSENZXw.js → CasinoCalendarDailyDetails-Djpw089y.js} +61 -61
  4. package/components/CasinoCalendarDailyDetails-DvaXsJ6J.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-BNFG5z35.js +220 -0
  6. package/components/CasinoCalendarDailyItem-CMMlKWuC.cjs +1 -0
  7. package/components/{CasinoCategoriesSlider-Dd30AvK0.js → CasinoCategoriesSlider-BnLGhDj2.js} +38 -38
  8. package/components/CasinoCategoriesSlider-MGSqtuSH.cjs +1 -0
  9. package/components/CasinoCollectionsProviders-7MJNy6vH.cjs +1 -0
  10. package/components/{CasinoCollectionsProviders-Cc1u_orw.js → CasinoCollectionsProviders-O5eYWKqu.js} +2 -2
  11. package/components/CasinoFavoritesSection-CSDBLW4w.cjs +1 -0
  12. package/components/{CasinoFavoritesSection-j7VNOnAg.js → CasinoFavoritesSection-CumUm71T.js} +18 -18
  13. package/components/{CasinoFilter-BpyfHAnH.js → CasinoFilter-Ba4pyyzC.js} +39 -39
  14. package/components/CasinoFilter-DPFQTDnp.cjs +1 -0
  15. package/components/CasinoGamePage-CAEcKO2C.cjs +18 -0
  16. package/components/{CasinoGamePage-BLWJ4xsU.js → CasinoGamePage-D-0bV9s0.js} +1337 -1329
  17. package/components/{CasinoGameThumbnail-EBuJE9IZ.js → CasinoGameThumbnail-Br4gzW2I.js} +82 -82
  18. package/components/CasinoGameThumbnail-q80EbGZc.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-ChO8lRW6.cjs +1 -0
  20. package/components/{CasinoGamesCategorySection-DXn5u5SK.js → CasinoGamesCategorySection-IDIjeUsC.js} +534 -524
  21. package/components/{CasinoJackpotBanner-CJJFsnyb.js → CasinoJackpotBanner-D-0bynYa.js} +2 -2
  22. package/components/CasinoJackpotBanner-DBLcL6wU.cjs +1 -0
  23. package/components/{CasinoLastPlayedSection-bvzxolz1.js → CasinoLastPlayedSection-BHZA2U-l.js} +3 -3
  24. package/components/CasinoLastPlayedSection-Dn26Po-i.cjs +1 -0
  25. package/components/{CasinoLobby-BPSflitf.js → CasinoLobby-BSBqQiwz.js} +7 -7
  26. package/components/CasinoLobby-DQGjTjXn.cjs +1 -0
  27. package/components/CasinoModal-BYPHyNGp.cjs +1 -0
  28. package/components/{CasinoModal-lLGEeGcU.js → CasinoModal-CDlxjS83.js} +2 -2
  29. package/components/{CasinoMostPlayedSection-eQH77h-f.js → CasinoMostPlayedSection-B4cUve-8.js} +17 -17
  30. package/components/CasinoMostPlayedSection-DWj3eB25.cjs +1 -0
  31. package/components/{CasinoMyGames-BJX2ZAvW.js → CasinoMyGames-DG40cnqo.js} +44 -44
  32. package/components/CasinoMyGames-JPu4ITbh.cjs +1 -0
  33. package/components/CasinoPage-CUgnyFdX.cjs +1 -0
  34. package/components/{CasinoPage-Bq3eE915.js → CasinoPage-DZofqKdq.js} +189 -189
  35. package/components/{CasinoRandomGame-DiITGB_u.cjs → CasinoRandomGame-BopxEXk6.cjs} +2 -2
  36. package/components/{CasinoRandomGame-DGD52sa7.js → CasinoRandomGame-ClDKDIUi.js} +15 -15
  37. package/components/CasinoSearch-BHqi_Ojn.cjs +1 -0
  38. package/components/{CasinoSearch-DlG1jylC.js → CasinoSearch-nhPFLDr6.js} +90 -90
  39. package/components/{CasinoSlider-CyXzUPtq.js → CasinoSlider-DDJYl0_C.js} +56 -56
  40. package/components/CasinoSlider-DzlnKD97.cjs +1 -0
  41. package/components/{CasinoSort-D1UmVqPT.js → CasinoSort-COqebE70.js} +23 -23
  42. package/components/CasinoSort-DqAXg8IN.cjs +1 -0
  43. package/components/{CasinoWinners-DSCWZZgk.js → CasinoWinners-B-NBTMbI.js} +49 -49
  44. package/components/CasinoWinners-GJyWRA8u.cjs +1 -0
  45. package/components/{GeneralAnimationLoading-DE8HSm4C.js → GeneralAnimationLoading-C-B40oIV.js} +1 -1
  46. package/components/{GeneralAnimationLoading-DmhAiTlH.cjs → GeneralAnimationLoading-CtmRY9AI.cjs} +1 -1
  47. package/es2015/casino-lobby.cjs +1 -1
  48. package/es2015/casino-lobby.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/{casino-play-random-game-c-goQ4iU.js → casino-play-random-game-B5g4-G4Z.js} +1 -1
  51. package/stencil/{casino-play-random-game-DJ_HpP4O.cjs → casino-play-random-game-CQe5iDJ8.cjs} +1 -1
  52. package/stencil/index-eac6b960-BaE9i06M.cjs +1 -0
  53. package/stencil/{index-7666b794-KI7j9CY0.js → index-eac6b960-DXIu1GM6.js} +112 -104
  54. package/components/CasinoCalendar-B3jjGeXh.cjs +0 -9
  55. package/components/CasinoCalendarDailyDetails-D1jKEWfR.cjs +0 -1
  56. package/components/CasinoCalendarDailyItem-DD924Zcr.js +0 -220
  57. package/components/CasinoCalendarDailyItem-zl4-e9DC.cjs +0 -1
  58. package/components/CasinoCategoriesSlider-DI2g7-y8.cjs +0 -1
  59. package/components/CasinoCollectionsProviders-CHDbSVYn.cjs +0 -1
  60. package/components/CasinoFavoritesSection-Co24_74o.cjs +0 -1
  61. package/components/CasinoFilter-DXA7jKT_.cjs +0 -1
  62. package/components/CasinoGamePage-CCbldgKZ.cjs +0 -18
  63. package/components/CasinoGameThumbnail-DNpT4OO7.cjs +0 -38
  64. package/components/CasinoGamesCategorySection-B2JOakf0.cjs +0 -1
  65. package/components/CasinoJackpotBanner-AjhcDuUc.cjs +0 -1
  66. package/components/CasinoLastPlayedSection-Cey1ENpO.cjs +0 -1
  67. package/components/CasinoLobby-B0BMaElu.cjs +0 -1
  68. package/components/CasinoModal-B71hMJhL.cjs +0 -1
  69. package/components/CasinoMostPlayedSection-B6vs4hfK.cjs +0 -1
  70. package/components/CasinoMyGames-DirVyeaV.cjs +0 -1
  71. package/components/CasinoPage--saBxGwI.cjs +0 -1
  72. package/components/CasinoSearch-3NrItprI.cjs +0 -1
  73. package/components/CasinoSlider-Cyun8L26.cjs +0 -1
  74. package/components/CasinoSort-ersVtC7e.cjs +0 -1
  75. package/components/CasinoWinners-CflzKW0N.cjs +0 -1
  76. package/stencil/index-7666b794-CHdM2q8W.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function O({withLocale:a,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function W(a){e.$locale.set(a)}function G(a){e.append_styles(a,"svelte-uxbccb","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}#CollapseMoreInfoButton{-moz-transition:height 0.5s;-ms-transition:height 0.5s;-o-transition:height 0.5s;-webkit-transition:height 0.5s;transition:height 0.5s;height:0;overflow:hidden}.MoreInfoButton{appearance:none;padding:8px 6px;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}.IconDown{width:18px;height:18px;margin-left:10px;transform:rotate(0deg)}.IconUp{width:18px;height:18px;margin-left:10px;transform:rotate(180deg)}.CasinoCalendarDailyDetailsBackground{position:relative;display:flex;justify-content:flex-start;flex-direction:column;align-items:center;background:var(--emw--color-white, #FFFFFF);width:500px;max-height:85vh;padding:20px;text-align:center;overflow-y:scroll;overflow-x:unset}.CasinoCalendarDailyDetailsParent{display:flex;justify-content:flex-start;align-items:center;flex-direction:column;max-width:376px;overflow-y:scroll;scrollbar-width:none}.CasinoCalendarDailyDay{padding:10px 0 30px 0;font-size:22px;text-transform:uppercase;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarDailyTitle{padding:15px 0 20px 0;font-size:18px;text-transform:capitalize;width:100%;color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.CasinoCalendarImage{background:var(--emw--color-gray-100, #E6E6E6);border-radius:5px 5px 0 0}.CasinoCalendarImage img{max-width:376px;max-height:250px;border-radius:5px 5px 0 0}.CasinoCalendarDailyDescription{width:100%;padding:25px 15px;font-size:14px;font-weight:600;color:var(--emw--gray-300, #58586B);font-weight:400;border-radius:0;background:linear-gradient(180deg, var(--emw--color-white, #FFFFFF) 55%, var(--emw--color-gray-100, #E6E6E6));overflow-wrap:break-word}.HeaderDailyDetails{overflow:hidden;width:110%;border-bottom:1px solid var(--emw--casino-color-primary, #D0046C)}.ModalCloseBtn{position:absolute;top:14px;right:10px;display:flex;align-items:center;justify-content:center;padding:10px;border-radius:50%;color:var(--emw--color-white, #FFFFFF);background:var(--emw--casino-color-primary, #D0046C);cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:32px;height:32px}.ModalCloseBtn:hover{background:var(--emw--color-gray-300, #58586B)}.DetailsTabsTitles{display:flex;flex-direction:row}.DetailTabsDescription{margin-top:15px}.CasinoCalendarTabs{width:100%;font-size:14px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;align-content:stretch;padding-bottom:40px;flex-direction:column}.CasinoCalendarFitImage{border-radius:5px}.NotVisible{display:none}.Header{display:flex;justify-content:center;justify-items:center;margin-bottom:4px;padding:0 10px}.HeaderButton{min-height:48px;margin:0;border:none;cursor:pointer;background:var(--emw--color-white, #FFFFFF);color:var(--emw--color-gray-150, #828282)}.SelectedTab{box-shadow:none;border-bottom:2px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.Mobile{max-height:70vh;margin-bottom:0;width:100%;padding:20px 0}")}function H(a,t,l){const n=a.slice();return n[28]=t[l],n[29]=t,n[30]=l,n}function S(a,t,l){const n=a.slice();return n[31]=t[l],n[33]=l,n}const J=a=>({}),U=a=>({});function K(a){let t,l,n,c,s,r,o,u,d,h,b;const y=a[18].close,w=e.create_slot(y,a,a[17],U),_=w||Y();let g=e.ensure_array_like(a[3]),m=[];for(let f=0;f<g.length;f+=1)m[f]=q(H(a,g,f));return{c(){t=e.element("div"),l=e.element("div"),n=e.element("span"),_&&_.c(),c=e.space(),s=e.element("div"),r=e.text(a[1]),o=e.space();for(let f=0;f<m.length;f+=1)m[f].c();e.attr(n,"class","ModalCloseBtn"),e.attr(n,"role","button"),e.attr(s,"class","CasinoCalendarDailyDay"),e.attr(l,"class","HeaderDailyDetails"),e.attr(t,"class",u="CasinoCalendarDailyDetailsBackground "+(a[5]?"Mobile":""))},m(f,C){e.insert(f,t,C),e.append(t,l),e.append(l,n),_&&_.m(n,null),e.append(l,c),e.append(l,s),e.append(s,r),e.append(t,o);for(let p=0;p<m.length;p+=1)m[p]&&m[p].m(t,null);d=!0,h||(b=e.listen(n,"click",a[6]),h=!0)},p(f,C){if(w&&w.p&&(!d||C[0]&131072)&&e.update_slot_base(w,y,f,f[17],d?e.get_slot_changes(y,f[17],C,J):e.get_all_dirty_from_scope(f[17]),U),(!d||C[0]&2)&&e.set_data(r,f[1]),C[0]&393){g=e.ensure_array_like(f[3]);let p;for(p=0;p<g.length;p+=1){const M=H(f,g,p);m[p]?m[p].p(M,C):(m[p]=q(M),m[p].c(),m[p].m(t,null))}for(;p<m.length;p+=1)m[p].d(1);m.length=g.length}(!d||C[0]&32&&u!==(u="CasinoCalendarDailyDetailsBackground "+(f[5]?"Mobile":"")))&&e.attr(t,"class",u)},i(f){d||(e.transition_in(_,f),d=!0)},o(f){e.transition_out(_,f),d=!1},d(f){f&&e.detach(t),_&&_.d(f),e.destroy_each(m,f),h=!1,b()}}}function Q(a){let t;return{c(){t=e.element("p"),t.textContent="Loading ...",e.attr(t,"class","SearchLoading"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function X(a){let t;return{c(){t=e.element("p"),t.textContent="500 Error - Internal Server Error",e.attr(t,"class","SearchLoading"),e.attr(t,"part","SearchLoading")},m(l,n){e.insert(l,t,n)},p:e.noop,i:e.noop,o:e.noop,d(l){l&&e.detach(t)}}}function Y(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"stroke-width","2"),e.attr(l,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(n,c){e.insert(n,t,c),e.append(t,l)},p:e.noop,d(n){n&&e.detach(t)}}}function Z(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"),e.attr(t,"class","IconDown")},m(n,c){e.insert(n,t,c),e.append(t,l)},d(n){n&&e.detach(t)}}}function $(a){let t,l;return{c(){t=e.svg_element("svg"),l=e.svg_element("path"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(l,"d","M19.5 8.25l-7.5 7.5-7.5-7.5"),e.attr(t,"xmlns","http://www.w3.org/2000/svg"),e.attr(t,"fill","none"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"stroke-width","1.5"),e.attr(t,"stroke","var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))"),e.attr(t,"class","IconUp")},m(n,c){e.insert(n,t,c),e.append(t,l)},d(n){n&&e.detach(t)}}}function j(a){let t,l,n,c=e.ensure_array_like(a[28].details),s=[];for(let o=0;o<c.length;o+=1)s[o]=z(S(a,c,o));let r=a[28].detailsExpanded&&A(a);return{c(){t=e.element("div");for(let o=0;o<s.length;o+=1)s[o].c();l=e.space(),r&&r.c(),n=e.empty(),e.attr(t,"class","DetailsTabsTitles")},m(o,u){e.insert(o,t,u);for(let d=0;d<s.length;d+=1)s[d]&&s[d].m(t,null);e.insert(o,l,u),r&&r.m(o,u),e.insert(o,n,u)},p(o,u){if(u[0]&264){c=e.ensure_array_like(o[28].details);let d;for(d=0;d<c.length;d+=1){const h=S(o,c,d);s[d]?s[d].p(h,u):(s[d]=z(h),s[d].c(),s[d].m(t,null))}for(;d<s.length;d+=1)s[d].d(1);s.length=c.length}o[28].detailsExpanded?r?r.p(o,u):(r=A(o),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(o){o&&(e.detach(t),e.detach(l),e.detach(n)),e.destroy_each(s,o),r&&r.d(o)}}}function z(a){let t,l,n,c=a[31].title+"",s,r,o,u,d;function h(){return a[20](a[28],a[33],a[30])}return{c(){t=e.element("div"),l=e.element("div"),n=e.element("button"),r=e.space(),e.attr(n,"class",s="HeaderButton "+(a[33]===a[28].selectedTab?"Active":"")),e.attr(l,"class","Header"),e.attr(t,"class",o=a[33]===a[28].selectedTab?"SelectedTab":""),e.attr(t,"id","CollapseMoreInfoButton"),e.set_style(t,"height",a[28].expandedInfo?"100%":"")},m(b,y){e.insert(b,t,y),e.append(t,l),e.append(l,n),n.innerHTML=c,e.append(t,r),u||(d=e.listen(n,"click",h),u=!0)},p(b,y){a=b,y[0]&8&&c!==(c=a[31].title+"")&&(n.innerHTML=c),y[0]&8&&s!==(s="HeaderButton "+(a[33]===a[28].selectedTab?"Active":""))&&e.attr(n,"class",s),y[0]&8&&o!==(o=a[33]===a[28].selectedTab?"SelectedTab":"")&&e.attr(t,"class",o),y[0]&8&&e.set_style(t,"height",a[28].expandedInfo?"100%":"")},d(b){b&&e.detach(t),u=!1,d()}}}function A(a){let t,l=a[28].details[a[28].selectedTab].description+"",n;return{c(){t=e.element("div"),e.attr(t,"class",n="DetailTabsDescription "+(a[28].details[a[28].selectedTab].expandedTab?"":"NotVisible"))},m(c,s){e.insert(c,t,s),t.innerHTML=l},p(c,s){s[0]&8&&l!==(l=c[28].details[c[28].selectedTab].description+"")&&(t.innerHTML=l),s[0]&8&&n!==(n="DetailTabsDescription "+(c[28].details[c[28].selectedTab].expandedTab?"":"NotVisible"))&&e.attr(t,"class",n)},d(c){c&&e.detach(t)}}}function q(a){let t,l,n=a[28].title+"",c,s,r,o,u,d,h,b=a[28].description+"",y,w,_,g,m,f,C,p,M;function I(T,D){return T[28].expandedInfo==!0?$:Z}let L=I(a),F=L(a);function B(){return a[19](a[28],a[29],a[30])}let v=a[28].expandedInfo==!0&&j(a);return{c(){t=e.element("div"),l=e.element("div"),c=e.space(),s=e.element("div"),r=e.element("img"),d=e.space(),h=e.element("div"),y=e.space(),w=e.element("div"),_=e.element("button"),g=new e.HtmlTag(!1),m=e.space(),F.c(),f=e.space(),v&&v.c(),C=e.space(),e.attr(l,"class","CasinoCalendarDailyTitle"),e.attr(r,"class","CasinoCalendarFitImage"),e.src_url_equal(r.src,o=a[28].image)||e.attr(r,"src",o),e.attr(r,"alt",u=a[28].image),e.attr(s,"class","CasinoCalendarImage"),e.attr(h,"class","CasinoCalendarDailyDescription"),g.a=m,e.attr(_,"class","MoreInfoButton"),e.attr(w,"class","CasinoCalendarTabs"),e.attr(t,"class","CasinoCalendarDailyDetailsParent")},m(T,D){e.insert(T,t,D),e.append(t,l),l.innerHTML=n,e.append(t,c),e.append(t,s),e.append(s,r),e.append(t,d),e.append(t,h),h.innerHTML=b,e.append(t,y),e.append(t,w),e.append(w,_),g.m(a[0],_),e.append(_,m),F.m(_,null),e.append(w,f),v&&v.m(w,null),e.append(t,C),p||(M=e.listen(_,"click",B),p=!0)},p(T,D){a=T,D[0]&8&&n!==(n=a[28].title+"")&&(l.innerHTML=n),D[0]&8&&!e.src_url_equal(r.src,o=a[28].image)&&e.attr(r,"src",o),D[0]&8&&u!==(u=a[28].image)&&e.attr(r,"alt",u),D[0]&8&&b!==(b=a[28].description+"")&&(h.innerHTML=b),D[0]&1&&g.p(a[0]),L!==(L=I(a))&&(F.d(1),F=L(a),F&&(F.c(),F.m(_,null))),a[28].expandedInfo==!0?v?v.p(a,D):(v=j(a),v.c(),v.m(w,null)):v&&(v.d(1),v=null)},d(T){T&&e.detach(t),F.d(),v&&v.d(),p=!1,M()}}}function ee(a){let t,l,n,c;const s=[X,Q,K],r=[];function o(u,d){return u[4]?1:2}return l=o(a),n=r[l]=s[l](a),{c(){t=e.element("div"),n.c()},m(u,d){e.insert(u,t,d),r[l].m(t,null),a[21](t),c=!0},p(u,d){let h=l;l=o(u),l===h?r[l].p(u,d):(e.group_outros(),e.transition_out(r[h],1,1,()=>{r[h]=null}),e.check_outros(),n=r[l],n?n.p(u,d):(n=r[l]=s[l](u),n.c()),e.transition_in(n,1),n.m(t,null))},i(u){c||(e.transition_in(n),c=!0)},o(u){e.transition_out(n),c=!1},d(u){u&&e.detach(t),r[l].d(),a[21](null)}}}function te(a,t,l){let{$$slots:n={},$$scope:c}=t,{dailybackground:s=""}=t,{dailybuttontitle:r=""}=t,{dailyday:o=""}=t,{dailydescription:u="<p></p>"}=t,{dailyicon:d=""}=t,{dailytitle:h=""}=t,{lang:b="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationUrl:_=""}=t,g=[],m=!0,f=!1,C=window.navigator.userAgent,p;O({withLocale:"en",translations:{}});const M=i=>{i.data.type=="DailyEventsData"&&(l(4,m=!1),l(3,g=i.data.data),g.forEach(k=>{k.expandedInfo=!1,k.detailsExpanded=!1,k.selectedTab=0,k.details.forEach((x,E)=>{x.expandedTab=E==0})}))},I=()=>{window.postMessage({type:"ModalClosed"},window.location.href),g.forEach((i,k)=>{i.detailsExpanded=k==0,i.expandedInfo=k==0,i.selectedTab=0})},L=()=>{W(b)},F=i=>{l(3,g[i].detailsExpanded=!g[i].detailsExpanded,g),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetDetails"})},B=(i,k,x)=>{l(3,g[x].selectedTab=k,g),i.details.forEach((E,R)=>{g[x].selectedTab!=R?E.expandedTab=!1:E.expandedTab=!0})},v=()=>{let i=document.createElement("style");i.innerHTML=y,p.appendChild(i)},T=()=>{let i=new URL(w),k=document.createElement("style");fetch(i.href).then(x=>x.text()).then(x=>{k.innerHTML=x,setTimeout(()=>{p.appendChild(k)},1),setTimeout(()=>{},500)})};e.onMount(()=>(window.addEventListener("message",M,!1),e.isMobile(C)&&l(5,f=!0),()=>{window.removeEventListener("message",M)}));const D=(i,k,x)=>{l(3,k[x].expandedInfo=!i.expandedInfo,g),F(x)},V=(i,k,x)=>{B(i,k,x)};function P(i){e.binding_callbacks[i?"unshift":"push"](()=>{p=i,l(2,p)})}return a.$$set=i=>{"dailybackground"in i&&l(9,s=i.dailybackground),"dailybuttontitle"in i&&l(0,r=i.dailybuttontitle),"dailyday"in i&&l(1,o=i.dailyday),"dailydescription"in i&&l(10,u=i.dailydescription),"dailyicon"in i&&l(11,d=i.dailyicon),"dailytitle"in i&&l(12,h=i.dailytitle),"lang"in i&&l(13,b=i.lang),"clientstyling"in i&&l(14,y=i.clientstyling),"clientstylingurl"in i&&l(15,w=i.clientstylingurl),"translationUrl"in i&&l(16,_=i.translationUrl),"$$scope"in i&&l(17,c=i.$$scope)},a.$$.update=()=>{a.$$.dirty[0]&8192&&b&&L(),a.$$.dirty[0]&16388&&y&&p&&v(),a.$$.dirty[0]&32772&&w&&p&&T()},[r,o,p,g,m,f,I,F,B,s,u,d,h,b,y,w,_,c,n,D,V,P]}class N extends e.SvelteComponent{constructor(t){super(),e.init(this,t,te,ee,e.safe_not_equal,{dailybackground:9,dailybuttontitle:0,dailyday:1,dailydescription:10,dailyicon:11,dailytitle:12,lang:13,clientstyling:14,clientstylingurl:15,translationUrl:16},G,[-1,-1])}get dailybackground(){return this.$$.ctx[9]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[0]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get dailyday(){return this.$$.ctx[1]}set dailyday(t){this.$$set({dailyday:t}),e.flush()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),e.flush()}get dailyicon(){return this.$$.ctx[11]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailytitle(){return this.$$.ctx[12]}set dailytitle(t){this.$$set({dailytitle:t}),e.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationUrl(){return this.$$.ctx[16]}set translationUrl(t){this.$$set({translationUrl:t}),e.flush()}}e.create_custom_element(N,{dailybackground:{},dailybuttontitle:{},dailyday:{},dailydescription:{},dailyicon:{},dailytitle:{},lang:{},clientstyling:{},clientstylingurl:{},translationUrl:{}},["close"],[],!0);exports.default=N;
@@ -0,0 +1,220 @@
1
+ import { $ as R, a as P, S as q, i as A, f as b, c as O, s as U, b as G, e as c, q as L, r as T, u as l, D as E, G as v, d as V, v as o, w as W, A as j, C as S, j as J, o as K, l as N, m as H } from "./CasinoCalendar-0AyYaYr6.js";
2
+ function Q({ withLocale: i, translations: t }) {
3
+ R.subscribe((a) => {
4
+ a == null && (P.set(t), R.set(i));
5
+ });
6
+ }
7
+ function X(i) {
8
+ G(i, "svelte-1jtwzs1", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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}');
9
+ }
10
+ function Y(i) {
11
+ let t, a, y, u, f, k, n, h, d, x, m, p, g, I, F, D, C, w, B, _, z, M, e;
12
+ return {
13
+ c() {
14
+ t = c("div"), a = c("div"), y = c("div"), u = c("div"), f = c("div"), f.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', k = L(), n = c("div"), h = c("div"), d = c("img"), m = L(), p = c("div"), g = T(
15
+ /*dailyday*/
16
+ i[2]
17
+ ), I = L(), F = c("div"), D = L(), C = c("div"), w = c("button"), B = T(
18
+ /*dailybuttontitle*/
19
+ i[3]
20
+ ), l(f, "class", "CalendarBar"), E(d.src, x = /*dailyicon*/
21
+ i[1]) || l(d, "src", x), l(
22
+ d,
23
+ "alt",
24
+ /*dailyicon*/
25
+ i[1]
26
+ ), l(h, "class", "CasinoCalendarDailyIcon"), l(p, "class", "CasinoCalendarDailyTitle"), l(F, "class", "CasinoCalendarDailyItemDescription"), l(w, "class", "MoreInfoButton"), l(C, "class", "CasinoCalendarDailyItemButton"), l(n, "class", _ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
27
+ i[4] == "OpenCalendarModal" ? "Tear" : "")), v(n, "background-image", "url('" + /*dailybackground*/
28
+ i[0] + "')"), v(n, "background-size", "cover"), v(n, "background-position", "center"), v(n, "-webkit-background-size", "cover"), v(n, "-moz-background-size", "cover"), v(n, "-o-background-size", "cover"), l(u, "class", "CalendarCard"), l(y, "class", "CasinoCalendarItems"), l(a, "class", z = "Container " + /*mobileView*/
29
+ (i[7] ? "Mobile" : ""));
30
+ },
31
+ m(r, s) {
32
+ V(r, t, s), o(t, a), o(a, y), o(y, u), o(u, f), o(u, k), o(u, n), o(n, h), o(h, d), o(n, m), o(n, p), o(p, g), o(n, I), o(n, F), i[13](F), o(n, D), o(n, C), o(C, w), o(w, B), i[15](t), M || (e = W(
33
+ w,
34
+ "click",
35
+ /*click_handler*/
36
+ i[14]
37
+ ), M = !0);
38
+ },
39
+ p(r, [s]) {
40
+ s & /*dailyicon*/
41
+ 2 && !E(d.src, x = /*dailyicon*/
42
+ r[1]) && l(d, "src", x), s & /*dailyicon*/
43
+ 2 && l(
44
+ d,
45
+ "alt",
46
+ /*dailyicon*/
47
+ r[1]
48
+ ), s & /*dailyday*/
49
+ 4 && j(
50
+ g,
51
+ /*dailyday*/
52
+ r[2]
53
+ ), s & /*dailybuttontitle*/
54
+ 8 && j(
55
+ B,
56
+ /*dailybuttontitle*/
57
+ r[3]
58
+ ), s & /*index*/
59
+ 16 && _ !== (_ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
60
+ r[4] == "OpenCalendarModal" ? "Tear" : "")) && l(n, "class", _), s & /*dailybackground*/
61
+ 1 && v(n, "background-image", "url('" + /*dailybackground*/
62
+ r[0] + "')"), s & /*mobileView*/
63
+ 128 && z !== (z = "Container " + /*mobileView*/
64
+ (r[7] ? "Mobile" : "")) && l(a, "class", z);
65
+ },
66
+ i: S,
67
+ o: S,
68
+ d(r) {
69
+ r && J(t), i[13](null), i[15](null), M = !1, e();
70
+ }
71
+ };
72
+ }
73
+ function Z(i, t, a) {
74
+ let { lang: y = "" } = t, { dailybackground: u = "" } = t, { dailyicon: f = "" } = t, { dailyday: k = "" } = t, { dailydescription: n = "<p></p>" } = t, { dailybuttontitle: h = "" } = t, { index: d = "0" } = t, { clientstyling: x = "" } = t, { clientstylingurl: m = "" } = t;
75
+ Q({ withLocale: "en", translations: {} });
76
+ let p, g, I = !1, F = window.navigator.userAgent;
77
+ const D = () => {
78
+ let e = document.createElement("div");
79
+ e.innerHTML = n, p && p.append(e);
80
+ }, C = () => {
81
+ window.postMessage({ type: "OpenCalendar", index: d }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
82
+ }, w = () => {
83
+ let e = document.createElement("style");
84
+ e.innerHTML = x, g.appendChild(e);
85
+ }, B = () => {
86
+ let e = new URL(m), r = document.createElement("style");
87
+ fetch(e.href).then((s) => s.text()).then((s) => {
88
+ r.innerHTML = s, setTimeout(
89
+ () => {
90
+ g.appendChild(r);
91
+ },
92
+ 1
93
+ ), setTimeout(
94
+ () => {
95
+ },
96
+ 500
97
+ );
98
+ });
99
+ };
100
+ K(() => {
101
+ N(F) && a(7, I = !0);
102
+ });
103
+ function _(e) {
104
+ H[e ? "unshift" : "push"](() => {
105
+ p = e, a(6, p);
106
+ });
107
+ }
108
+ const z = () => C();
109
+ function M(e) {
110
+ H[e ? "unshift" : "push"](() => {
111
+ g = e, a(5, g);
112
+ });
113
+ }
114
+ return i.$$set = (e) => {
115
+ "lang" in e && a(9, y = e.lang), "dailybackground" in e && a(0, u = e.dailybackground), "dailyicon" in e && a(1, f = e.dailyicon), "dailyday" in e && a(2, k = e.dailyday), "dailydescription" in e && a(10, n = e.dailydescription), "dailybuttontitle" in e && a(3, h = e.dailybuttontitle), "index" in e && a(4, d = e.index), "clientstyling" in e && a(11, x = e.clientstyling), "clientstylingurl" in e && a(12, m = e.clientstylingurl);
116
+ }, i.$$.update = () => {
117
+ i.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
118
+ 1039 && f && k && n && h && u && D(), i.$$.dirty & /*clientstyling, customStylingContainer*/
119
+ 2080 && x && g && w(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
120
+ 4128 && m && g && B();
121
+ }, [
122
+ u,
123
+ f,
124
+ k,
125
+ h,
126
+ d,
127
+ g,
128
+ p,
129
+ I,
130
+ C,
131
+ y,
132
+ n,
133
+ x,
134
+ m,
135
+ _,
136
+ z,
137
+ M
138
+ ];
139
+ }
140
+ class $ extends q {
141
+ constructor(t) {
142
+ super(), A(
143
+ this,
144
+ t,
145
+ Z,
146
+ Y,
147
+ U,
148
+ {
149
+ lang: 9,
150
+ dailybackground: 0,
151
+ dailyicon: 1,
152
+ dailyday: 2,
153
+ dailydescription: 10,
154
+ dailybuttontitle: 3,
155
+ index: 4,
156
+ clientstyling: 11,
157
+ clientstylingurl: 12
158
+ },
159
+ X
160
+ );
161
+ }
162
+ get lang() {
163
+ return this.$$.ctx[9];
164
+ }
165
+ set lang(t) {
166
+ this.$$set({ lang: t }), b();
167
+ }
168
+ get dailybackground() {
169
+ return this.$$.ctx[0];
170
+ }
171
+ set dailybackground(t) {
172
+ this.$$set({ dailybackground: t }), b();
173
+ }
174
+ get dailyicon() {
175
+ return this.$$.ctx[1];
176
+ }
177
+ set dailyicon(t) {
178
+ this.$$set({ dailyicon: t }), b();
179
+ }
180
+ get dailyday() {
181
+ return this.$$.ctx[2];
182
+ }
183
+ set dailyday(t) {
184
+ this.$$set({ dailyday: t }), b();
185
+ }
186
+ get dailydescription() {
187
+ return this.$$.ctx[10];
188
+ }
189
+ set dailydescription(t) {
190
+ this.$$set({ dailydescription: t }), b();
191
+ }
192
+ get dailybuttontitle() {
193
+ return this.$$.ctx[3];
194
+ }
195
+ set dailybuttontitle(t) {
196
+ this.$$set({ dailybuttontitle: t }), b();
197
+ }
198
+ get index() {
199
+ return this.$$.ctx[4];
200
+ }
201
+ set index(t) {
202
+ this.$$set({ index: t }), b();
203
+ }
204
+ get clientstyling() {
205
+ return this.$$.ctx[11];
206
+ }
207
+ set clientstyling(t) {
208
+ this.$$set({ clientstyling: t }), b();
209
+ }
210
+ get clientstylingurl() {
211
+ return this.$$.ctx[12];
212
+ }
213
+ set clientstylingurl(t) {
214
+ this.$$set({ clientstylingurl: t }), b();
215
+ }
216
+ }
217
+ O($, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
218
+ export {
219
+ $ as default
220
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function B({withLocale:n,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function M(n){e.append_styles(n,"svelte-1jtwzs1",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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 t,l,h,c,g,m,a,f,d,p,b,u,s,k,C,z,x,y,F,w,v,_,i;return{c(){t=e.element("div"),l=e.element("div"),h=e.element("div"),c=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',m=e.space(),a=e.element("div"),f=e.element("div"),d=e.element("img"),b=e.space(),u=e.element("div"),s=e.text(n[2]),k=e.space(),C=e.element("div"),z=e.space(),x=e.element("div"),y=e.element("button"),F=e.text(n[3]),e.attr(g,"class","CalendarBar"),e.src_url_equal(d.src,p=n[1])||e.attr(d,"src",p),e.attr(d,"alt",n[1]),e.attr(f,"class","CasinoCalendarDailyIcon"),e.attr(u,"class","CasinoCalendarDailyTitle"),e.attr(C,"class","CasinoCalendarDailyItemDescription"),e.attr(y,"class","MoreInfoButton"),e.attr(x,"class","CasinoCalendarDailyItemButton"),e.attr(a,"class",w="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(a,"background-image","url('"+n[0]+"')"),e.set_style(a,"background-size","cover"),e.set_style(a,"background-position","center"),e.set_style(a,"-webkit-background-size","cover"),e.set_style(a,"-moz-background-size","cover"),e.set_style(a,"-o-background-size","cover"),e.attr(c,"class","CalendarCard"),e.attr(h,"class","CasinoCalendarItems"),e.attr(l,"class",v="Container "+(n[7]?"Mobile":""))},m(o,r){e.insert(o,t,r),e.append(t,l),e.append(l,h),e.append(h,c),e.append(c,g),e.append(c,m),e.append(c,a),e.append(a,f),e.append(f,d),e.append(a,b),e.append(a,u),e.append(u,s),e.append(a,k),e.append(a,C),n[13](C),e.append(a,z),e.append(a,x),e.append(x,y),e.append(y,F),n[15](t),_||(i=e.listen(y,"click",n[14]),_=!0)},p(o,[r]){r&2&&!e.src_url_equal(d.src,p=o[1])&&e.attr(d,"src",p),r&2&&e.attr(d,"alt",o[1]),r&4&&e.set_data(s,o[2]),r&8&&e.set_data(F,o[3]),r&16&&w!==(w="CasinoCalendarItemBackground CalendarPage "+(o[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(a,"class",w),r&1&&e.set_style(a,"background-image","url('"+o[0]+"')"),r&128&&v!==(v="Container "+(o[7]?"Mobile":""))&&e.attr(l,"class",v)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n[13](null),n[15](null),_=!1,i()}}}function L(n,t,l){let{lang:h=""}=t,{dailybackground:c=""}=t,{dailyicon:g=""}=t,{dailyday:m=""}=t,{dailydescription:a="<p></p>"}=t,{dailybuttontitle:f=""}=t,{index:d="0"}=t,{clientstyling:p=""}=t,{clientstylingurl:b=""}=t;B({withLocale:"en",translations:{}});let u,s,k=!1,C=window.navigator.userAgent;const z=()=>{let i=document.createElement("div");i.innerHTML=a,u&&u.append(i)},x=()=>{window.postMessage({type:"OpenCalendar",index:d},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})},y=()=>{let i=document.createElement("style");i.innerHTML=p,s.appendChild(i)},F=()=>{let i=new URL(b),o=document.createElement("style");fetch(i.href).then(r=>r.text()).then(r=>{o.innerHTML=r,setTimeout(()=>{s.appendChild(o)},1),setTimeout(()=>{},500)})};e.onMount(()=>{e.isMobile(C)&&l(7,k=!0)});function w(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,l(6,u)})}const v=()=>x();function _(i){e.binding_callbacks[i?"unshift":"push"](()=>{s=i,l(5,s)})}return n.$$set=i=>{"lang"in i&&l(9,h=i.lang),"dailybackground"in i&&l(0,c=i.dailybackground),"dailyicon"in i&&l(1,g=i.dailyicon),"dailyday"in i&&l(2,m=i.dailyday),"dailydescription"in i&&l(10,a=i.dailydescription),"dailybuttontitle"in i&&l(3,f=i.dailybuttontitle),"index"in i&&l(4,d=i.index),"clientstyling"in i&&l(11,p=i.clientstyling),"clientstylingurl"in i&&l(12,b=i.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&1039&&g&&m&&a&&f&&c&&z(),n.$$.dirty&2080&&p&&s&&y(),n.$$.dirty&4128&&b&&s&&F()},[c,g,m,f,d,s,u,k,x,h,a,p,b,w,v,_]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,L,D,e.safe_not_equal,{lang:9,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:10,dailybuttontitle:3,index:4,clientstyling:11,clientstylingurl:12},M)}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),e.flush()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=I;
@@ -1,4 +1,4 @@
1
- import { I as re, S as ce, i as me, f as c, c as ge, s as ue, b as ye, e as w, d as j, C as S, j as F, J as fe, o as de, K as he, L as be, m as we, M as o, u as E, v as Ne, N as Le, O as Ce } from "./CasinoCalendar-CCQut7OA.js";
1
+ import { I as re, S as ce, i as ge, f as c, c as me, s as ue, b as ye, e as w, d as j, C as S, j as F, J as fe, o as de, K as he, L as be, m as we, M as o, u as E, v as Ne, N as Le, O as Ce } from "./CasinoCalendar-0AyYaYr6.js";
2
2
  function W(i, e) {
3
3
  re(i, e);
4
4
  }
@@ -84,12 +84,12 @@ if (typeof window != "undefined") {
84
84
  }
85
85
  };
86
86
  };
87
- customElements.define = i(customElements.define), import("./CasinoSlider-CyXzUPtq.js").then(({ default: e }) => {
87
+ customElements.define = i(customElements.define), import("./CasinoSlider-DDJYl0_C.js").then(({ default: e }) => {
88
88
  !customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
89
89
  });
90
90
  }
91
91
  function Me(i) {
92
- ye(i, "svelte-1ydghqy", ".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}");
92
+ 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))}");
93
93
  }
94
94
  function _e(i) {
95
95
  let e, t, l, r;
@@ -110,7 +110,7 @@ function _e(i) {
110
110
  "endpoint",
111
111
  /*endpoint*/
112
112
  i[1]
113
- ), o(t, "identity", A), o(
113
+ ), o(t, "identity", D), o(
114
114
  t,
115
115
  "favoritesnumber",
116
116
  /*numberOfFavoredGames*/
@@ -160,7 +160,7 @@ function _e(i) {
160
160
  "mygamesiconimage",
161
161
  /*mygamesiconimage*/
162
162
  i[11]
163
- ), E(e, "class", "CasinoCategoriesContainer svelte-1ydghqy"), E(e, "part", "CasinoCategoriesContainer");
163
+ ), E(e, "class", "CasinoCategoriesContainer svelte-2g6deg"), E(e, "part", "CasinoCategoriesContainer");
164
164
  },
165
165
  m(a, n) {
166
166
  j(a, e, n), Ne(e, t), l || (r = Le(
@@ -258,7 +258,7 @@ function ve(i) {
258
258
  let e;
259
259
  return {
260
260
  c() {
261
- e = w("p"), e.textContent = "500 Error - Internal Server Error.", E(e, "class", "SearchLoading svelte-1ydghqy");
261
+ e = w("p"), e.textContent = "500 Error - Internal Server Error.", E(e, "class", "SearchLoading svelte-2g6deg");
262
262
  },
263
263
  m(t, l) {
264
264
  j(t, e, l);
@@ -273,7 +273,7 @@ function Ge(i) {
273
273
  let e;
274
274
  return {
275
275
  c() {
276
- e = w("div"), E(e, "class", "CasinoCategoriesLoading svelte-1ydghqy");
276
+ e = w("div"), E(e, "class", "CasinoCategoriesLoading svelte-2g6deg");
277
277
  },
278
278
  m(t, l) {
279
279
  j(t, e, l);
@@ -313,18 +313,18 @@ function ke(i) {
313
313
  }
314
314
  };
315
315
  }
316
- let A = "CasinoSliderData", Se = !1, Ee = !1;
316
+ let D = "CasinoSliderData", Se = !1, Ee = !1;
317
317
  function je(i, e, t) {
318
318
  let l;
319
319
  fe(i, Ce, (s) => t(32, l = s));
320
- let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: D = "" } = e, { session: N = "" } = e, { mostplayed: L = "" } = e, { lastplayed: C = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: O = "" } = e, { sessioncheck: R = "" } = e, { location: U = "secondaryMenu" } = e, { showsubgroups: I = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: k = "" } = e, { categoriesicon: H = "" } = e, { lobbyiconimage: B = "" } = e, { mygamesiconimage: Y = "" } = e, x, z, y = !0, h, b = [], f = !1, Z = window.navigator.userAgent, d, J, K = !1, T = !1;
320
+ let { endpoint: r = "" } = e, { datasource: a = "" } = e, { lang: n = "" } = e, { userid: O = "" } = e, { session: N = "" } = e, { mostplayed: L = "" } = e, { lastplayed: C = "false" } = e, { favorites: M = "" } = e, { clientstyling: _ = "" } = e, { clientstylingurl: v = "" } = e, { activecategory: u = "" } = e, { actionevent: R = "" } = e, { sessioncheck: U = "" } = e, { location: I = "secondaryMenu" } = e, { showsubgroups: H = "false" } = e, { filteredcategories: G = "" } = e, { translationurl: k = "" } = e, { categoriesicon: B = "" } = e, { lobbyiconimage: Y = "" } = e, { mygamesiconimage: q = "" } = e, x, z, y = !0, h, b = [], f = !1, Z = window.navigator.userAgent, d, J, K = !1, T = !1;
321
321
  const p = () => {
322
- fetch(k).then((m) => m.json()).then((m) => {
323
- Object.keys(m).forEach((g) => {
324
- W(g, m[g]);
322
+ fetch(k).then((g) => g.json()).then((g) => {
323
+ Object.keys(g).forEach((m) => {
324
+ W(m, g[m]);
325
325
  });
326
- }).catch((m) => {
327
- console.log(m);
326
+ }).catch((g) => {
327
+ console.log(g);
328
328
  });
329
329
  };
330
330
  Object.keys(X).forEach((s) => {
@@ -341,14 +341,14 @@ function je(i, e, t) {
341
341
  }, ee = () => (r || (h = "Endpoint is missing! Please provide a valid endpointURL.", t(14, f = !0), t(12, y = !1), console.error(h)), a || (h = "Datasource is missing! Please provide a valid datasource.", t(14, f = !0), t(12, y = !1), console.error(h)), (!n || n.length < 2) && (h = "Language is missing! Please provide a valid language (alpha2code)", t(14, f = !0), t(12, y = !1), console.error(h)), f), te = () => {
342
342
  if (x = l("myGamesName"), z = l("lobbyName"), !ee()) {
343
343
  let s = new URL(`${r}/v1/casino/groups/${a}`);
344
- s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform", be(Z)), fetch(s).then((m) => m.json()).then(
345
- (m) => {
346
- let g = G.split(","), oe = m.items.filter((V) => {
347
- let q = !1;
348
- if (V.games.total > 0 && (q = !0, G))
349
- for (let le of g)
350
- V.flags == le && (q = !1);
351
- return q;
344
+ s.searchParams.append("datasource", a), s.searchParams.append("language", n), s.searchParams.append("platform", be(Z)), fetch(s).then((g) => g.json()).then(
345
+ (g) => {
346
+ let m = G.split(","), oe = g.items.filter((V) => {
347
+ let A = !1;
348
+ if (V.games.total > 0 && (A = !0, G))
349
+ for (let le of m)
350
+ V.flags == le && (A = !1);
351
+ return A;
352
352
  });
353
353
  b = [], b = b.concat(oe), b.unshift({
354
354
  // @ts-ignore
@@ -358,11 +358,11 @@ function je(i, e, t) {
358
358
  games: []
359
359
  }), t(12, y = !1), window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
360
360
  },
361
- (m) => {
362
- t(14, f = !0), console.error("There was an error while fetching the categories", m);
361
+ (g) => {
362
+ t(14, f = !0), console.error("There was an error while fetching the categories", g);
363
363
  }
364
- ).catch((m) => {
365
- t(14, f = !0), console.error("There was an error while fetching the categories", m);
364
+ ).catch((g) => {
365
+ t(14, f = !0), console.error("There was an error while fetching the categories", g);
366
366
  });
367
367
  }
368
368
  }, se = () => {
@@ -372,9 +372,9 @@ function je(i, e, t) {
372
372
  let s = document.createElement("style");
373
373
  s.innerHTML = _, d.appendChild(s);
374
374
  }, ae = () => {
375
- let s = document.createElement("style"), m = new URL(v);
376
- fetch(m.href).then((g) => g.text()).then((g) => {
377
- s.innerHTML = g, setTimeout(
375
+ let s = document.createElement("style"), g = new URL(v);
376
+ fetch(g.href).then((m) => m.text()).then((m) => {
377
+ s.innerHTML = m, setTimeout(
378
378
  () => {
379
379
  d.appendChild(s);
380
380
  },
@@ -385,13 +385,13 @@ function je(i, e, t) {
385
385
  window.postMessage(
386
386
  {
387
387
  type: "SliderData",
388
- identity: A,
388
+ identity: D,
389
389
  data: b
390
390
  },
391
391
  window.location.href
392
392
  );
393
393
  }, Q = (s) => {
394
- s.data && s.data.type == "SliderLoaded" && A == s.data.identity && P();
394
+ s.data && s.data.type == "SliderLoaded" && D == s.data.identity && P();
395
395
  };
396
396
  de(() => (window.addEventListener("message", Q, !1), () => {
397
397
  window.removeEventListener("message", Q);
@@ -402,7 +402,7 @@ function je(i, e, t) {
402
402
  });
403
403
  }
404
404
  return i.$$set = (s) => {
405
- "endpoint" in s && t(1, r = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, n = s.lang), "userid" in s && t(17, D = s.userid), "session" in s && t(18, N = s.session), "mostplayed" in s && t(19, L = s.mostplayed), "lastplayed" in s && t(20, C = s.lastplayed), "favorites" in s && t(21, 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, O = s.actionevent), "sessioncheck" in s && t(22, R = s.sessioncheck), "location" in s && t(7, U = s.location), "showsubgroups" in s && t(8, I = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, k = s.translationurl), "categoriesicon" in s && t(9, H = s.categoriesicon), "lobbyiconimage" in s && t(10, B = s.lobbyiconimage), "mygamesiconimage" in s && t(11, Y = s.mygamesiconimage);
405
+ "endpoint" in s && t(1, r = s.endpoint), "datasource" in s && t(2, a = s.datasource), "lang" in s && t(3, n = s.lang), "userid" in s && t(17, O = s.userid), "session" in s && t(18, N = s.session), "mostplayed" in s && t(19, L = s.mostplayed), "lastplayed" in s && t(20, C = s.lastplayed), "favorites" in s && t(21, 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(22, U = s.sessioncheck), "location" in s && t(7, I = s.location), "showsubgroups" in s && t(8, H = s.showsubgroups), "filteredcategories" in s && t(23, G = s.filteredcategories), "translationurl" in s && t(24, k = s.translationurl), "categoriesicon" in s && t(9, B = s.categoriesicon), "lobbyiconimage" in s && t(10, Y = s.lobbyiconimage), "mygamesiconimage" in s && t(11, q = s.mygamesiconimage);
406
406
  }, i.$$.update = () => {
407
407
  i.$$.dirty[0] & /*endpoint, datasource, lang*/
408
408
  14 && r && a && n && te(), i.$$.dirty[0] & /*endpoint, session, mostplayed, lastplayed, favorites, isLoading*/
@@ -418,23 +418,23 @@ function je(i, e, t) {
418
418
  n,
419
419
  _,
420
420
  v,
421
- O,
422
- U,
421
+ R,
423
422
  I,
424
423
  H,
425
424
  B,
426
425
  Y,
426
+ q,
427
427
  y,
428
428
  d,
429
429
  f,
430
430
  J,
431
431
  P,
432
- D,
432
+ O,
433
433
  N,
434
434
  L,
435
435
  C,
436
436
  M,
437
- R,
437
+ U,
438
438
  G,
439
439
  k,
440
440
  T,
@@ -443,7 +443,7 @@ function je(i, e, t) {
443
443
  }
444
444
  class Fe extends ce {
445
445
  constructor(e) {
446
- super(), me(
446
+ super(), ge(
447
447
  this,
448
448
  e,
449
449
  je,
@@ -596,7 +596,7 @@ class Fe extends ce {
596
596
  this.$$set({ mygamesiconimage: e }), c();
597
597
  }
598
598
  }
599
- ge(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
599
+ me(Fe, { endpoint: {}, datasource: {}, lang: {}, userid: {}, session: {}, mostplayed: {}, lastplayed: {}, favorites: {}, clientstyling: {}, clientstylingurl: {}, activecategory: {}, actionevent: {}, sessioncheck: {}, location: {}, showsubgroups: {}, filteredcategories: {}, translationurl: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
600
600
  export {
601
601
  Fe as default
602
602
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-aMUXtMPt.cjs");function z(n,e){t.addMessages(n,e)}const x={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"}};if(typeof window!="undefined"){let n=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=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-DzlnKD97.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(n){t.append_styles(n,"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 ne(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",E),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ie(n){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(n){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(n){let e;function s(i,o){return i[12]||re||ce?oe:i[14]?ie:ne}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let E="CasinoSliderData",re=!1,ce=!1;function me(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:j=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:w="false"}=e,{favorites:N=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:P=""}=e,{sessioncheck:T=""}=e,{location:F="secondaryMenu"}=e,{showsubgroups:A="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:D=""}=e,{lobbyiconimage:O=""}=e,{mygamesiconimage:R=""}=e,U,q,g=!0,y,h=[],d=!1,K=window.navigator.userAgent,f,H,I=!1,G=!1;const Q=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{z(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(x).forEach(a=>{z(a,x[a])});const V=()=>{I==!1&&(N=="true"||_=="true"||w=="true")&&h.splice(1,0,{id:"MYGAMES",name:U,href:"",games:[]}),t.tick(),I=!0,s(25,G=!0),k()},W=()=>(r||(y="Endpoint is missing! Please provide a valid endpointURL.",s(14,d=!0),s(12,g=!1),console.error(y)),i||(y="Datasource is missing! Please provide a valid datasource.",s(14,d=!0),s(12,g=!1),console.error(y)),(!o||o.length<2)&&(y="Language is missing! Please provide a valid language (alpha2code)",s(14,d=!0),s(12,g=!1),console.error(y)),d),X=()=>{if(U=l("myGamesName"),q=l("lobbyName"),!W()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(K)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),te=c.items.filter(Y=>{let S=!1;if(Y.games.total>0&&(S=!0,M))for(let se of m)Y.flags==se&&(S=!1);return S});h=[],h=h.concat(te),h.unshift({id:"LOBBY",name:q,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,d=!0),console.error("There was an error while fetching the categories",c)})}},Z=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},p=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},$=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},k=()=>{window.postMessage({type:"SliderData",identity:E,data:h},window.location.href)},B=a=>{a.data&&a.data.type=="SliderLoaded"&&E==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,j=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,w=a.lastplayed),"favorites"in a&&s(21,N=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,P=a.actionevent),"sessioncheck"in a&&s(22,T=a.sessioncheck),"location"in a&&s(7,F=a.location),"showsubgroups"in a&&s(8,A=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,D=a.categoriesicon),"lobbyiconimage"in a&&s(10,O=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,R=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&X(),n.$$.dirty[0]&3936258&&r&&b&&(_||w||N)&&!g&&V(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&Z(),n.$$.dirty[0]&8208&&L&&f&&p(),n.$$.dirty[0]&16777216&&v&&Q(),n.$$.dirty[0]&8224&&C&&f&&$()},s(15,H=0),[u,r,i,o,L,C,P,F,A,D,O,R,g,f,d,H,k,j,b,_,w,N,T,M,v,G,ee]}class J extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},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[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}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[22]}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[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}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()}}t.create_custom_element(J,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=J;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-aMUXtMPt.cjs");function N(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const q={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."}};function de(i){e.append_styles(i,"svelte-1myc38z",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,f,k,u,c=i[8]>i[9]&&E(i),p=e.ensure_array_like(i[3]),m=[];for(let d=0;d<p.length;d+=1)m[d]=V(R(i,p,d));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),c&&c.c(),v=e.space(),f=e.element("div");for(let d=0;d<m.length;d+=1)m[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(f,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(f)),e.attr(t,"class",u="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,y){e.insert(d,t,y),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,f);for(let s=0;s<m.length;s+=1)m[s]&&m[s].m(f,null);i[26](f),k=e.add_iframe_resize_listener(f,i[27].bind(f))},p(d,y){if(y[0]&2049&&o!==(o=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,o),d[8]>d[9]?c?c.p(d,y):(c=E(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),y[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=R(d,p,s);m[s]?m[s].p(h,y):(m[s]=V(h),m[s].c(),m[s].m(f,null))}for(;s<m.length;s+=1)m[s].d(1);m.length=p.length}y[0]&1025&&u!==(u="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",u)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(m,d),i[26](null),k()}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function E(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(v,f){e.insert(v,t,f),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[22]),e.listen(o,"click",i[23])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function pe(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function I(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function W(i){let t,l,r,o,a,g,v,f;function k(){return i[24](i[44])}let u=i[2]=="true"&&I(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),u&&u.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),u&&u.m(t,null),e.append(t,g),v||(f=e.listen(l,"click",e.stop_propagation(k)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?u?u.p(i,p):(u=I(i),u.c(),u.m(t,g)):u&&(u.d(1),u=null)},d(c){c&&e.detach(t),u&&u.d(),v=!1,f()}}}function V(i){let t,l,r,o,a,g,v,f,k;function u(s,h){if(s[1]=="logo")return ue;if(s[1]=="title")return pe}let c=u(i),p=c&&c(i),m=e.ensure_array_like(i[41].games),d=[];for(let s=0;s<m.length;s+=1)d[s]=W(U(i,m,s));function y(){return i[25](i[41])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),o=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[41])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[41])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),f||(k=e.listen(l,"click",y),f=!0)},p(s,h){var _,P;if(i=s,c===(c=u(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const G=U(i,m,b);d[b]?d[b].p(G,h):(d[b]=W(G),d[b].c(),d[b].m(a,null))}for(;b<d.length;b+=1)d[b].d(1);d.length=m.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[41])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),f=!1,k()}}}function me(i){let t;function l(a,g){return a[7]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[28](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[28](null)}}}function fe(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(11,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:f=""}=t,{clientstyling:k=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,m=[],d=!0,y,s=0,h=0,_=0,P,b,G,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(C=>C.json()).then(C=>{Object.keys(C).forEach(w=>{N(w,C[w])})}).catch(C=>{console.log(C)})};Object.keys(q).forEach(n=>{N(n,q[n])});const J=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),fetch(n.href).then(C=>C.json()).then(C=>{l(7,d=!1);let w=C.items.filter(S=>S.flags==v);l(3,m=w.map(S=>{var O,B,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(B=(O=S.vendors)==null?void 0:O.items[0])==null?void 0:B.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}})),l(8,h=m.length)})},j=n=>{b=[...y.children],b.forEach((C,w)=>{C.style.transform=`translateX(${100*(n?w-n:w)}%)`}),P=b[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},T=()=>{j(s)},x=()=>{s===0?s=h-_:s-_<-1?s=0:s--,T()},F=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,T()},z=(n,C,w,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:w,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${w}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},Y=()=>{se(g)},Q=()=>{let n=document.createElement("style");n.innerHTML=k,G.appendChild(n)},$=()=>{let n=new URL(u),C=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{C.innerHTML=w,setTimeout(()=>{G.appendChild(C)},1)})};e.onMount(()=>{l(10,M=e.isMobile(K))});const ee=()=>x(),te=()=>F(),ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{y=n,l(4,y)})}function oe(){L=this.clientWidth,l(6,L)}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(16,o=n.endpoint),"datasource"in n&&l(17,a=n.datasource),"lang"in n&&l(18,g=n.lang),"type"in n&&l(0,v=n.type),"titletype"in n&&l(1,f=n.titletype),"clientstyling"in n&&l(19,k=n.clientstyling),"clientstylingurl"in n&&l(20,u=n.clientstylingurl),"translationurl"in n&&l(21,c=n.translationurl),"collectionprovidersgamenames"in n&&l(2,p=n.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&o&&a&&g&&J(),i.$$.dirty[0]&88&&L&&m&&y&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&k&&G&&Q(),i.$$.dirty[0]&1048608&&u&&G&&$(),i.$$.dirty[0]&2097152&&c&&Z()},[v,f,p,m,y,G,L,d,h,_,M,r,x,F,z,H,o,a,g,k,u,c,ee,te,ie,le,ne,oe,re]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,fe,me,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},de,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=D;
@@ -1,4 +1,4 @@
1
- import { I as we, $ as Se, S as ke, i as Ge, f as M, c as Pe, s as Le, b as Me, e as C, d as j, C as H, j as T, J as je, o as Te, l as xe, m as X, p as O, r as R, q as x, u as m, P as Fe, v as _, Q as ze, A as I, B as re, w as B, R as He, G as N, O as Oe, D as A, T as Be } from "./CasinoCalendar-CCQut7OA.js";
1
+ import { I as we, $ as Se, S as ke, i as Ge, f as M, c as Pe, s as Le, b as Me, e as C, d as j, C as H, j as T, J as je, o as Te, l as xe, m as X, p as O, r as R, q as x, u as m, P as Fe, v as _, Q as ze, A as I, B as re, w as B, R as He, G as N, O as Oe, D as A, T as Be } from "./CasinoCalendar-0AyYaYr6.js";
2
2
  function Y(t, e) {
3
3
  we(t, e);
4
4
  }
@@ -98,7 +98,7 @@ const $ = {
98
98
  }
99
99
  };
100
100
  function Ne(t) {
101
- Me(t, "svelte-67y1f9", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.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-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
101
+ Me(t, "svelte-1myc38z", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emw--casino-typography, var(--emw--color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
102
102
  }
103
103
  function ee(t, e, i) {
104
104
  const n = t.slice();
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-aMUXtMPt.cjs");if(typeof window!="undefined"){let i=function(e){return function(...s){try{return e.apply(this,s)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-ChO8lRW6.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function M({withLocale:i,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function O(i){t.append_styles(i,"svelte-1rh2qpg",".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function S(i){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",i[4]),t.set_custom_element_data(e,"userid",i[5]),t.set_custom_element_data(e,"endpoint",i[0]),t.set_custom_element_data(e,"datasource",i[1]),t.set_custom_element_data(e,"lang",i[3]),t.set_custom_element_data(e,"currency",i[2]),t.set_custom_element_data(e,"favorites",i[14]),t.set_custom_element_data(e,"fetchviaevent",i[16]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",i[11]),t.set_custom_element_data(e,"clientstyling",i[6]),t.set_custom_element_data(e,"clientstylingurl",i[7]),t.set_custom_element_data(e,"livecasino",i[8]),t.set_custom_element_data(e,"visiblegames",i[13]),t.set_custom_element_data(e,"gamepagemodalurl",i[12]),t.set_custom_element_data(e,"integratedgameframedesktop",i[10]),t.set_custom_element_data(e,"integratedgameframemobile",i[9]),t.set_custom_element_data(e,"casinomygames",i[15])},m(s,a){t.insert(s,e,a)},p(s,a){a&16&&t.set_custom_element_data(e,"session",s[4]),a&32&&t.set_custom_element_data(e,"userid",s[5]),a&1&&t.set_custom_element_data(e,"endpoint",s[0]),a&2&&t.set_custom_element_data(e,"datasource",s[1]),a&8&&t.set_custom_element_data(e,"lang",s[3]),a&4&&t.set_custom_element_data(e,"currency",s[2]),a&16384&&t.set_custom_element_data(e,"favorites",s[14]),a&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),a&2048&&t.set_custom_element_data(e,"showgamename",s[11]),a&64&&t.set_custom_element_data(e,"clientstyling",s[6]),a&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),a&256&&t.set_custom_element_data(e,"livecasino",s[8]),a&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),a&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),a&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),a&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),a&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function R(i){let e,s=i[4]&&S(i);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(a,m){t.insert(a,e,m),s&&s.m(e,null),i[18](e)},p(a,[m]){a[4]?s?s.p(a,m):(s=S(a),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(),i[18](null)}}}function A(i,e,s){let{endpoint:a=""}=e,{datasource:m=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:f=""}=e,{userid:_=""}=e,{clientstyling:o=""}=e,{clientstylingurl:c=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:v=""}=e,{gamepagemodalurl:b="false"}=e,{visiblegames:w=""}=e,{favorites:C=""}=e,{casinomygames:k="false"}=e,{fetchviaevent:F="true"}=e,l;M({withLocale:"en",translations:{}});const L=()=>{let n=document.createElement("style");n.innerHTML=o,l.appendChild(n)},T=()=>{let n=document.createElement("style");fetch(new URL(c)).then(u=>u.text()).then(u=>{n.innerHTML=u,setTimeout(()=>{l.appendChild(n)},1)})};function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{l=n,s(17,l)})}return i.$$set=n=>{"endpoint"in n&&s(0,a=n.endpoint),"datasource"in n&&s(1,m=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,f=n.session),"userid"in n&&s(5,_=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,c=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,v=n.showgamename),"gamepagemodalurl"in n&&s(12,b=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,C=n.favorites),"casinomygames"in n&&s(15,k=n.casinomygames),"fetchviaevent"in n&&s(16,F=n.fetchviaevent)},i.$$.update=()=>{i.$$.dirty&131136&&o&&l&&L(),i.$$.dirty&131200&&c&&l&&T()},[a,m,g,r,f,_,o,c,d,h,y,v,b,w,C,k,F,l,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,A,R,t.safe_not_equal,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16},O)}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),t.flush()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),t.flush()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),t.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),t.flush()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),t.flush()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),t.flush()}get showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),t.flush()}get visiblegames(){return this.$$.ctx[13]}set visiblegames(e){this.$$set({visiblegames:e}),t.flush()}get favorites(){return this.$$.ctx[14]}set favorites(e){this.$$set({favorites:e}),t.flush()}get casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{}},[],[],!0);exports.default=E;