@everymatrix/casino-tournaments-controller 1.50.0 → 1.51.0

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 (25) hide show
  1. package/components/{CasinoTournamentsController-QfIsqCR4.js → CasinoTournamentsController-D4fqxCja.js} +282 -270
  2. package/components/CasinoTournamentsController-WRSyK2QY.cjs +14 -0
  3. package/components/CasinoTournamentsFilterController-D0T7rVhL.cjs +1 -0
  4. package/components/{CasinoTournamentsFilterController-DozpjER5.js → CasinoTournamentsFilterController-D9Tidq8w.js} +41 -34
  5. package/components/{CasinoTournamentsListController-CYFWot9V.js → CasinoTournamentsListController-Bj5LNl9h.js} +5 -2
  6. package/components/{CasinoTournamentsListController-CkJfbO_c.cjs → CasinoTournamentsListController-CWi9-FPc.cjs} +2 -2
  7. package/components/{CasinoTournamentsThumbnail-60ZqqaMP.cjs → CasinoTournamentsThumbnail-CXUAscGP.cjs} +2 -2
  8. package/components/{CasinoTournamentsThumbnail-C_7sF7H9.js → CasinoTournamentsThumbnail-Dq4yRdNG.js} +162 -131
  9. package/components/CasinoTournamentsThumbnailController-BHFgnbwb.cjs +1 -0
  10. package/components/{CasinoTournamentsThumbnailController-NZBU66N_.js → CasinoTournamentsThumbnailController-cb4JbcxA.js} +42 -34
  11. package/components/{CasinoTournamentsThumbnailDuration-DvLoy8sh.js → CasinoTournamentsThumbnailDuration-COqsPwJj.js} +21 -13
  12. package/components/CasinoTournamentsThumbnailDuration-CQkAFLBa.cjs +1 -0
  13. package/components/{CasinoTournamentsThumbnailGamesSlider-BsR4I6Rj.js → CasinoTournamentsThumbnailGamesSlider--YAPEoXl.js} +19 -16
  14. package/components/CasinoTournamentsThumbnailGamesSlider-LY1F0kxk.cjs +1 -0
  15. package/components/{CasinoTournamentsThumbnailPrizes-C8QsRpov.js → CasinoTournamentsThumbnailPrizes-BbCxQeLs.js} +33 -28
  16. package/components/CasinoTournamentsThumbnailPrizes-CY5bdmwv.cjs +1 -0
  17. package/es2015/casino-tournaments-controller.cjs +1 -1
  18. package/es2015/casino-tournaments-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/components/CasinoTournamentsController-Pj5DIgVu.cjs +0 -14
  21. package/components/CasinoTournamentsFilterController-B4zz_8wV.cjs +0 -1
  22. package/components/CasinoTournamentsThumbnailController-CO8UTz1l.cjs +0 -1
  23. package/components/CasinoTournamentsThumbnailDuration-DMvXBLR3.cjs +0 -1
  24. package/components/CasinoTournamentsThumbnailGamesSlider-CwLzYzqp.cjs +0 -1
  25. package/components/CasinoTournamentsThumbnailPrizes-DF5Noeha.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";var X=(r,t,n)=>new Promise((s,i)=>{var o=d=>{try{u(n.next(d))}catch(h){i(h)}},l=d=>{try{u(n.throw(d))}catch(h){i(h)}},u=d=>d.done?s(d.value):Promise.resolve(d.value).then(o,l);u((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-WRSyK2QY.cjs");function xe({withLocale:r,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function he(r,t){e.addMessages(r,t)}function Ie(r){e.$locale.set(r)}const _e={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CXUAscGP.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-CQkAFLBa.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CY5bdmwv.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-LY1F0kxk.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function Je(r){e.append_styles(r,"svelte-1kmemyq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function Re(r){let t,n,s,i,o,l,u,d,h,c=r[14]&&ge(r);function p(m,f){if(!m[14])return Ne;if(m[23]!="Closed"&&m[23]!="Closing")return He;if(m[3]=="true")return qe}let k=p(r),b=k&&k(r),g=(r[17]||r[19])&&ye(r),w=r[4]=="true"&&ke(r);return{c(){t=e.element("div"),n=e.element("casino-tournaments-thumbnail"),s=e.space(),c&&c.c(),i=e.space(),o=e.element("div"),b&&b.c(),l=e.space(),g&&g.c(),u=e.space(),w&&w.c(),e.set_custom_element_data(n,"session",r[0]),e.set_custom_element_data(n,"userid",r[1]),e.set_custom_element_data(n,"title",r[20]),e.set_custom_element_data(n,"status",r[23]),e.set_custom_element_data(n,"startdate",r[21]),e.set_custom_element_data(n,"tourid",r[24]),e.set_custom_element_data(n,"scorecriteria",r[27]),e.set_custom_element_data(n,"minbetcount",r[28]),e.set_custom_element_data(n,"thumbnail",r[25]),e.set_custom_element_data(n,"showenrolled",r[5]),e.set_custom_element_data(n,"gameurl",r[30]),e.set_custom_element_data(n,"userenrolled",r[26]),e.set_custom_element_data(n,"clientstyling",r[10]),e.set_custom_element_data(n,"clientstylingurl",r[11]),e.set_custom_element_data(n,"translationurl",r[12]),e.set_custom_element_data(n,"lang",r[8]),e.set_custom_element_data(n,"keepbrowsercontext",r[9]),e.set_custom_element_data(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),e.attr(o,"class","TournamentButtons"),e.attr(o,"part","TournamentButtons"),e.attr(t,"class",d="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),e.attr(t,"part",h="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(m,f){e.insert(m,t,f),e.append(t,n),e.append(t,s),c&&c.m(t,null),e.append(t,i),e.append(t,o),b&&b.m(o,null),e.append(t,l),g&&g.m(t,null),e.append(t,u),w&&w.m(t,null)},p(m,f){f[0]&1&&e.set_custom_element_data(n,"session",m[0]),f[0]&2&&e.set_custom_element_data(n,"userid",m[1]),f[0]&1048576&&e.set_custom_element_data(n,"title",m[20]),f[0]&8388608&&e.set_custom_element_data(n,"status",m[23]),f[0]&2097152&&e.set_custom_element_data(n,"startdate",m[21]),f[0]&16777216&&e.set_custom_element_data(n,"tourid",m[24]),f[0]&134217728&&e.set_custom_element_data(n,"scorecriteria",m[27]),f[0]&268435456&&e.set_custom_element_data(n,"minbetcount",m[28]),f[0]&33554432&&e.set_custom_element_data(n,"thumbnail",m[25]),f[0]&32&&e.set_custom_element_data(n,"showenrolled",m[5]),f[0]&1073741824&&e.set_custom_element_data(n,"gameurl",m[30]),f[0]&67108864&&e.set_custom_element_data(n,"userenrolled",m[26]),f[0]&1024&&e.set_custom_element_data(n,"clientstyling",m[10]),f[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",m[11]),f[0]&4096&&e.set_custom_element_data(n,"translationurl",m[12]),f[0]&256&&e.set_custom_element_data(n,"lang",m[8]),f[0]&512&&e.set_custom_element_data(n,"keepbrowsercontext",m[9]),m[14]?c?c.p(m,f):(c=ge(m),c.c(),c.m(t,i)):c&&(c.d(1),c=null),k===(k=p(m))&&b?b.p(m,f):(b&&b.d(1),b=k&&k(m),b&&(b.c(),b.m(o,null))),m[17]||m[19]?g?g.p(m,f):(g=ye(m),g.c(),g.m(t,u)):g&&(g.d(1),g=null),m[4]=="true"?w?w.p(m,f):(w=ke(m),w.c(),w.m(t,null)):w&&(w.d(1),w=null),f[0]&192|f[1]&1&&d!==(d="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"class",d),f[0]&192|f[1]&1&&h!==(h="TournamentCard "+(m[6]?"CardMaxWidth":"")+(m[7]?"CardFullSize":"")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn")+" "+(m[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"part",h)},d(m){m&&e.detach(t),c&&c.d(),b&&b.d(),g&&g.d(),w&&w.d()}}}function Ue(r){let t,n,s,i;return{c(){t=e.element("div"),n=e.element("div"),n.innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> <div class="ph-col-4" part="ph-col-4"></div> <div class="ph-col-8 empty" part="ph-col-8 empty"></div> <div class="ph-col-6" part="ph-col-6"></div> <div class="ph-col-6 empty" part="ph-col-6 empty"></div> <div class="ph-col-12" part="ph-col-12"></div></div></div>',e.attr(n,"class","ph-item"),e.attr(n,"part","ph-item"),e.attr(t,"class",s="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")),e.attr(t,"part",i="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn")+" "+(r[31]?"elementToFadeOut":"elementToFadeIn"))},m(o,l){e.insert(o,t,l),e.append(t,n)},p(o,l){l[0]&192|l[1]&1&&s!==(s="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"class",s),l[0]&192|l[1]&1&&i!==(i="TournamentCard "+(o[6]?"CardMaxWidth":"")+(o[7]?"CardFullSize":"")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn")+" "+(o[31]?"elementToFadeOut":"elementToFadeIn"))&&e.attr(t,"part",i)},d(o){o&&e.detach(t)}}}function ge(r){let t,n,s=r[24]&&pe(r);return{c(){s&&s.c(),t=e.space(),n=e.element("casino-tournaments-thumbnail-duration"),e.set_custom_element_data(n,"clientstyling",r[10]),e.set_custom_element_data(n,"clientstylingurl",r[11]),e.set_custom_element_data(n,"translationurl",r[12]),e.set_custom_element_data(n,"status",r[23]),e.set_custom_element_data(n,"startdate",r[21]),e.set_custom_element_data(n,"lang",r[8]),e.set_custom_element_data(n,"enddate",r[22]),e.set_custom_element_data(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(i,o){s&&s.m(i,o),e.insert(i,t,o),e.insert(i,n,o)},p(i,o){i[24]?s?s.p(i,o):(s=pe(i),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),o[0]&1024&&e.set_custom_element_data(n,"clientstyling",i[10]),o[0]&2048&&e.set_custom_element_data(n,"clientstylingurl",i[11]),o[0]&4096&&e.set_custom_element_data(n,"translationurl",i[12]),o[0]&8388608&&e.set_custom_element_data(n,"status",i[23]),o[0]&2097152&&e.set_custom_element_data(n,"startdate",i[21]),o[0]&256&&e.set_custom_element_data(n,"lang",i[8]),o[0]&4194304&&e.set_custom_element_data(n,"enddate",i[22])},d(i){i&&(e.detach(t),e.detach(n)),s&&s.d(i)}}}function pe(r){let t,n,s,i;return{c(){t=e.element("casino-tournaments-thumbnail-prizes"),e.set_custom_element_data(t,"tourid",r[24]),e.set_custom_element_data(t,"clientstyling",r[10]),e.set_custom_element_data(t,"clientstylingurl",r[11]),e.set_custom_element_data(t,"translationurl",r[12]),e.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(o,l){e.insert(o,t,l),s||(i=e.action_destroyer(n=r[37].call(null,t,r[24])),s=!0)},p(o,l){l[0]&16777216&&e.set_custom_element_data(t,"tourid",o[24]),l[0]&1024&&e.set_custom_element_data(t,"clientstyling",o[10]),l[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",o[11]),l[0]&4096&&e.set_custom_element_data(t,"translationurl",o[12]),n&&e.is_function(n.update)&&l[0]&16777216&&n.update.call(null,o[24])},d(o){o&&e.detach(t),s=!1,i()}}}function qe(r){let t,n=r[32]("details")+"",s,i,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","DetailsLargeButton"),e.attr(t,"part","DetailsLargeButton")},m(l,u){e.insert(l,t,u),e.append(t,s),i||(o=e.listen(t,"click",r[51]),i=!0)},p(l,u){u[1]&2&&n!==(n=l[32]("details")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t),i=!1,o()}}}function He(r){let t,n,s=r[3]=="true"&&we(r);function i(u,d){return u[26]?Ge:We}let o=i(r),l=o(r);return{c(){s&&s.c(),t=e.space(),l.c(),n=e.empty()},m(u,d){s&&s.m(u,d),e.insert(u,t,d),l.m(u,d),e.insert(u,n,d)},p(u,d){u[3]=="true"?s?s.p(u,d):(s=we(u),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),o===(o=i(u))&&l?l.p(u,d):(l.d(1),l=o(u),l&&(l.c(),l.m(n.parentNode,n)))},d(u){u&&(e.detach(t),e.detach(n)),s&&s.d(u),l.d(u)}}}function Ne(r){let t,n=r[32]("login")+"",s,i,o,l=r[32]("register")+"",u,d,h;return{c(){t=e.element("button"),s=e.text(n),i=e.space(),o=e.element("button"),u=e.text(l),e.attr(t,"class","LoginButton"),e.attr(t,"part","LoginButton"),e.attr(o,"class","RegisterButton"),e.attr(o,"part","RegisterButton")},m(c,p){e.insert(c,t,p),e.append(t,s),e.insert(c,i,p),e.insert(c,o,p),e.append(o,u),d||(h=[e.listen(t,"click",r[47]),e.listen(o,"click",r[48])],d=!0)},p(c,p){p[1]&2&&n!==(n=c[32]("login")+"")&&e.set_data(s,n),p[1]&2&&l!==(l=c[32]("register")+"")&&e.set_data(u,l)},d(c){c&&(e.detach(t),e.detach(i),e.detach(o)),d=!1,e.run_all(h)}}}function we(r){let t,n=r[32]("details")+"",s,i,o;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","DetailsButton"),e.attr(t,"part","DetailsButton")},m(l,u){e.insert(l,t,u),e.append(t,s),i||(o=e.listen(t,"click",r[49]),i=!0)},p(l,u){u[1]&2&&n!==(n=l[32]("details")+"")&&e.set_data(s,n)},d(l){l&&e.detach(t),i=!1,o()}}}function We(r){let t,n,s,i,o;function l(h,c){return h[16]==!0?Xe:Ke}let u=l(r),d=u(r);return{c(){t=e.element("button"),d.c(),e.attr(t,"class",n="JoinButton "+(r[7]?"JoinButtonFullSize":"")),e.attr(t,"part",s="JoinButton "+(r[7]?"JoinButtonFullSize":"")),t.disabled=r[17]},m(h,c){e.insert(h,t,c),d.m(t,null),i||(o=e.listen(t,"click",r[50]),i=!0)},p(h,c){u===(u=l(h))&&d?d.p(h,c):(d.d(1),d=u(h),d&&(d.c(),d.m(t,null))),c[0]&128&&n!==(n="JoinButton "+(h[7]?"JoinButtonFullSize":""))&&e.attr(t,"class",n),c[0]&128&&s!==(s="JoinButton "+(h[7]?"JoinButtonFullSize":""))&&e.attr(t,"part",s),c[0]&131072&&(t.disabled=h[17])},d(h){h&&e.detach(t),d.d(),i=!1,o()}}}function Ge(r){let t,n=r[3]=="true"&&be(r);return{c(){n&&n.c(),t=e.empty()},m(s,i){n&&n.m(s,i),e.insert(s,t,i)},p(s,i){s[3]=="true"?n?n.p(s,i):(n=be(s),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(s){s&&e.detach(t),n&&n.d(s)}}}function Ke(r){let t,n=r[32]("join")+"",s,i,o,l,u,d,h,c;return{c(){t=e.element("span"),s=e.text(n),i=e.space(),o=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),d=e.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),h=e.svg_element("g"),c=e.svg_element("path"),e.attr(t,"part","JoinButtonSpan"),e.attr(c,"class","a"),e.attr(c,"part","a JoinButtonSvgA"),e.attr(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),e.attr(c,"transform","translate(26 26) rotate(180)"),e.attr(h,"transform","translate(26 26) rotate(180)"),e.attr(o,"part","JoinButtonSvg"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","26"),e.attr(o,"height","26"),e.attr(o,"viewBox","0 0 26 26")},m(p,k){e.insert(p,t,k),e.append(t,s),e.insert(p,i,k),e.insert(p,o,k),e.append(o,l),e.append(l,u),e.append(u,d),e.append(o,h),e.append(h,c)},p(p,k){k[1]&2&&n!==(n=p[32]("join")+"")&&e.set_data(s,n)},d(p){p&&(e.detach(t),e.detach(i),e.detach(o))}}}function Xe(r){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("circle"),e.attr(n,"cx","20"),e.attr(n,"cy","20"),e.attr(n,"r","18"),e.attr(t,"class","spinner"),e.attr(t,"part","spinner")},m(s,i){e.insert(s,t,i),e.append(t,n)},p:e.noop,d(s){s&&e.detach(t)}}}function be(r){let t,n=r[32]("enrolled")+"",s;return{c(){t=e.element("button"),s=e.text(n),e.attr(t,"class","EnrolledButton"),e.attr(t,"part","EnrolledButton"),t.disabled=!0},m(i,o){e.insert(i,t,o),e.append(t,s)},p(i,o){o[1]&2&&n!==(n=i[32]("enrolled")+"")&&e.set_data(s,n)},d(i){i&&e.detach(t)}}}function ye(r){let t,n=r[32]("joinerror")+"",s,i,o;return{c(){t=e.element("span"),s=e.text(n),i=e.space(),o=e.text(r[18]),e.attr(t,"class","ErrorText"),e.attr(t,"part","ErrorText")},m(l,u){e.insert(l,t,u),e.append(t,s),e.append(t,i),e.append(t,o)},p(l,u){u[1]&2&&n!==(n=l[32]("joinerror")+"")&&e.set_data(s,n),u[0]&262144&&e.set_data(o,l[18])},d(l){l&&e.detach(t)}}}function ke(r){let t;return{c(){t=e.element("casino-tournaments-thumbnail-games-slider"),e.set_custom_element_data(t,"clientstyling",r[10]),e.set_custom_element_data(t,"clientstylingurl",r[11]),e.set_custom_element_data(t,"translationurl",r[12]),e.set_custom_element_data(t,"tournamenturl",r[2]),e.set_custom_element_data(t,"lang",r[8]),e.set_custom_element_data(t,"scrollby","2"),e.set_custom_element_data(t,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(n,s){e.insert(n,t,s)},p(n,s){s[0]&1024&&e.set_custom_element_data(t,"clientstyling",n[10]),s[0]&2048&&e.set_custom_element_data(t,"clientstylingurl",n[11]),s[0]&4096&&e.set_custom_element_data(t,"translationurl",n[12]),s[0]&4&&e.set_custom_element_data(t,"tournamenturl",n[2]),s[0]&256&&e.set_custom_element_data(t,"lang",n[8])},d(n){n&&e.detach(t)}}}function Ve(r){let t;function n(o,l){if(o[15])return Ue;if(o[20])return Re}let s=n(r),i=s&&s(r);return{c(){t=e.element("div"),i&&i.c()},m(o,l){e.insert(o,t,l),i&&i.m(t,null),r[52](t)},p(o,l){s===(s=n(o))&&i?i.p(o,l):(i&&i.d(1),i=s&&s(o),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(o){o&&e.detach(t),i&&i.d(),r[52](null)}}}function Ze(r,t,n){let s;e.component_subscribe(r,e.$format,a=>n(32,s=a));let{session:i=""}=t,{userid:o=""}=t,{tournamenturl:l=""}=t,{touridx:u}=t,{endpoint:d=""}=t,{showdetails:h=""}=t,{showslider:c=""}=t,{showenrolled:p=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:g=""}=t,{loginevent:w=""}=t,{registerevent:m=""}=t,{loginurl:f=""}=t,{registerurl:B=""}=t,{currency:R=""}=t,{keepbrowsercontext:V="false"}=t,{clientstyling:D=""}=t,{clientstylingurl:M=""}=t,{translationurl:P=""}=t,{tournamentinfo:L}=t,T,C=!1,O="",E=!0,Z=window.navigator.userAgent,A=!1,x=!1,Q="There was an error while trying to join the tournament",U=!1,Y,$,ee,S,v,te,q,ne,re,se=[],H=[],oe="#",N,I=!1;xe({withLocale:"en",translations:{}});const ve=()=>{fetch(P).then(_=>_.json()).then(_=>{Object.keys(_).forEach(y=>{he(y,_[y])})}).catch(_=>{console.log(_)})};Object.keys(_e).forEach(a=>{he(a,_e[a])});const ie=a=>{Te(a),G(a),de(this,v)},ae=a=>{if(a.data&&a.data.type=="UserSessionID"&&(n(14,C=!0),O=a.data.session),a.data.type=="UpdateTournamentView"){let _=a.data.tournamentData;if(v&&v!=_.id)return;ie(_)}if(a.data&&a.data.type==`UpdateSingleTournament_${u}`){let _=a.data.tournamentData,y=u<4?u*100:Math.random()*300+300;n(31,I=u==1),setTimeout(()=>{n(31,I=!0),n(24,v=_.id),ie(_)},y),setTimeout(()=>{n(31,I=!1)},y+200)}},Te=a=>{a.state!=S&&(n(23,S=a.state),window.postMessage({type:`TournamentStatus_${v}`,status:S},window.location.href))},le=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),f&&(window.location=f)},ue=()=>{m&&(window.postMessage({type:m,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},W=a=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:a,showLeaderboard:!0},window.location.href)},me=(a,_)=>X(this,null,function*(){var fe;n(17,x=!1),n(19,U=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:a},window.location.href),n(16,A=!0);let y=new URL(`${d}/v1/bonus/claim`),J=new Headers,z={};y.searchParams.append("language",g),y.searchParams.append("platform",e.getDevice(Z)),J.append("Content-Type","application/json"),J.append("X-SessionID",O),_&&_.length>=1&&(z={language:g,bonusCode:_[0].code,currency:R,type:"tournament"});let Ae={method:"PUT",headers:J,body:JSON.stringify(z)};const ce=()=>{n(16,A=!1),n(26,q=!0)},K=F=>{n(16,A=!1),F&&n(18,Q=F),n(17,x=!0)},j=yield X(this,null,function*(){let F;try{F=yield fetch(y,Ae),F=yield F.json()}catch(Ye){K()}return F});if(j)if(j.success==!0)ce();else if(j.errorMessage.match("VersionMismatchException")){let F;F=yield fetch(`${d}/tournaments/${v}`,{headers:{"X-SessionID":i}}),F=yield F.json(),(fe=F==null?void 0:F.item)!=null&&fe.playerEnrolled?ce():(K(j.errorMessage),n(19,U=!0),n(17,x=!1))}else K(j.errorMessage)}),de=(a,_)=>{window.postMessage({type:`TournamentPrizes_${_}`,prizes:se},window.location.href)},G=a=>{a&&(n(20,Y=a.nameOrTitle||""),n(21,$=a.startTime),n(22,ee=a.endTime),n(23,S=a.state),n(24,v=a.id),n(25,te=a.thumbnail),n(26,q=a.playerEnrolled==="true"||a.playerEnrolled==!0||!1),n(27,ne=a.scoreCriteria),n(28,re=a.minBetCount),se=a.prizes,n(29,H=a.wallets||[]),n(30,oe=a.termsUrl||"#"))},ze=a=>{n(15,E=!0);let _=new URL(a),y=new Headers;_.searchParams.append("language",g),_.searchParams.append("platform",e.getDevice(Z)),C&&y.append("X-SessionID",O),fetch(_,{method:"GET",headers:y}).then(z=>z.json()).then(z=>{n(15,E=!1),G(z.item)})},Ce=()=>{i.length>0&&i!="false"?(O=i,n(14,C=!0)):n(14,C=!1)},Ee=()=>{if(L){G(L);return}n(15,E=!0),ze(l)},Se=()=>{let a=document.createElement("style");a.innerHTML=D,T.appendChild(a)},je=()=>{let a=new URL(M),_=document.createElement("style");fetch(a.href).then(y=>y.text()).then(y=>{_.innerHTML=y,setTimeout(()=>{T.appendChild(_)},1),setTimeout(()=>{},500)})};e.onMount(()=>(n(15,E=!1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));const Be=()=>le(),De=()=>ue(),Me=()=>W(v),Pe=()=>me(v,H),Le=()=>W(v);function Oe(a){e.binding_callbacks[a?"unshift":"push"](()=>{T=a,n(13,T)})}return r.$$set=a=>{"session"in a&&n(0,i=a.session),"userid"in a&&n(1,o=a.userid),"tournamenturl"in a&&n(2,l=a.tournamenturl),"touridx"in a&&n(38,u=a.touridx),"endpoint"in a&&n(39,d=a.endpoint),"showdetails"in a&&n(3,h=a.showdetails),"showslider"in a&&n(4,c=a.showslider),"showenrolled"in a&&n(5,p=a.showenrolled),"maxwidth"in a&&n(6,k=a.maxwidth),"fullsize"in a&&n(7,b=a.fullsize),"lang"in a&&n(8,g=a.lang),"loginevent"in a&&n(40,w=a.loginevent),"registerevent"in a&&n(41,m=a.registerevent),"loginurl"in a&&n(42,f=a.loginurl),"registerurl"in a&&n(43,B=a.registerurl),"currency"in a&&n(44,R=a.currency),"keepbrowsercontext"in a&&n(9,V=a.keepbrowsercontext),"clientstyling"in a&&n(10,D=a.clientstyling),"clientstylingurl"in a&&n(11,M=a.clientstylingurl),"translationurl"in a&&n(12,P=a.translationurl),"tournamentinfo"in a&&n(45,L=a.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&256&&g&&Ie(g),r.$$.dirty[0]&9216&&T&&D&&Se(),r.$$.dirty[0]&10240&&T&&M&&je(),r.$$.dirty[0]&4096&&P&&ve(),r.$$.dirty[0]&1&&i&&Ce(),r.$$.dirty[0]&260&&n(46,N=l&&g),r.$$.dirty[1]&32768&&N&&Ee()},[i,o,l,h,c,p,k,b,g,V,D,M,P,T,C,E,A,x,Q,U,Y,$,ee,S,v,te,q,ne,re,H,oe,I,s,le,ue,W,me,de,u,d,w,m,f,B,R,L,N,Be,De,Me,Pe,Le,Oe]}class Fe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ze,Ve,e.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:38,endpoint:39,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:40,registerevent:41,loginurl:42,registerurl:43,currency:44,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:45},Je,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),e.flush()}get touridx(){return this.$$.ctx[38]}set touridx(t){this.$$set({touridx:t}),e.flush()}get endpoint(){return this.$$.ctx[39]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),e.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),e.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),e.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),e.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),e.flush()}get loginevent(){return this.$$.ctx[40]}set loginevent(t){this.$$set({loginevent:t}),e.flush()}get registerevent(){return this.$$.ctx[41]}set registerevent(t){this.$$set({registerevent:t}),e.flush()}get loginurl(){return this.$$.ctx[42]}set loginurl(t){this.$$set({loginurl:t}),e.flush()}get registerurl(){return this.$$.ctx[43]}set registerurl(t){this.$$set({registerurl:t}),e.flush()}get currency(){return this.$$.ctx[44]}set currency(t){this.$$set({currency:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get tournamentinfo(){return this.$$.ctx[45]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),e.flush()}}e.create_custom_element(Fe,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{}},[],[],!0);exports.default=Fe;
@@ -14,19 +14,19 @@ var oe = (n, e, t) => new Promise((r, o) => {
14
14
  }, u = (d) => d.done ? r(d.value) : Promise.resolve(d.value).then(i, l);
15
15
  u((t = t.apply(n, e)).next());
16
16
  });
17
- import { z as se, E as Qe, a as Ye, S as $e, i as et, f as k, c as tt, s as nt, b as rt, e as z, h as _, n as le, j as y, k as it, w as ot, F as Ee, u as st, m as j, y as a, d as c, o as b, A as lt, B as at, t as D, p as M, $ as ut, r as R, x as Pe, C as ft, v as L } from "./CasinoTournamentsController-QfIsqCR4.js";
17
+ import { z as se, E as Qe, a as Ye, S as $e, i as et, f as k, c as tt, s as nt, b as rt, e as z, h as _, n as le, j as y, k as it, w as ot, F as Ee, u as st, m as S, y as a, d as c, o as b, A as lt, B as at, t as D, p as M, $ as ut, r as R, x as Pe, C as ft, v as L } from "./CasinoTournamentsController-D4fqxCja.js";
18
18
  function dt({ withLocale: n, translations: e }) {
19
19
  se.subscribe((t) => {
20
20
  t == null && (Qe.set(e), se.set(n));
21
21
  });
22
22
  }
23
- function Be(n, e) {
23
+ function je(n, e) {
24
24
  Ye(n, e);
25
25
  }
26
26
  function ct(n) {
27
27
  se.set(n);
28
28
  }
29
- const Se = {
29
+ const Be = {
30
30
  en: {
31
31
  login: "Log in",
32
32
  register: "Register",
@@ -106,6 +106,14 @@ const Se = {
106
106
  enrolled: "Inscrito",
107
107
  join: "Junte-se",
108
108
  joinerror: "Ocorreu um erro ao entrar no torneio"
109
+ },
110
+ "en-us": {
111
+ login: "Log in",
112
+ register: "Register",
113
+ details: "Details",
114
+ enrolled: "Enrolled",
115
+ join: "Join",
116
+ joinerror: "An error occurred while registering in the tournament, please try again."
109
117
  }
110
118
  };
111
119
  if (typeof window != "undefined") {
@@ -120,7 +128,7 @@ if (typeof window != "undefined") {
120
128
  }
121
129
  };
122
130
  };
123
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-C_7sF7H9.js").then(({ default: e }) => {
131
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-Dq4yRdNG.js").then(({ default: e }) => {
124
132
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", e.element);
125
133
  });
126
134
  }
@@ -136,7 +144,7 @@ if (typeof window != "undefined") {
136
144
  }
137
145
  };
138
146
  };
139
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-DvLoy8sh.js").then(({ default: e }) => {
147
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-COqsPwJj.js").then(({ default: e }) => {
140
148
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
141
149
  "casino-tournaments-thumbnail-duration",
142
150
  e.element
@@ -155,7 +163,7 @@ if (typeof window != "undefined") {
155
163
  }
156
164
  };
157
165
  };
158
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-C8QsRpov.js").then(({ default: e }) => {
166
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BbCxQeLs.js").then(({ default: e }) => {
159
167
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", e.element);
160
168
  });
161
169
  }
@@ -171,7 +179,7 @@ if (typeof window != "undefined") {
171
179
  }
172
180
  };
173
181
  };
174
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BsR4I6Rj.js").then(
182
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider--YAPEoXl.js").then(
175
183
  ({ default: e }) => {
176
184
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
177
185
  "casino-tournaments-thumbnail-games-slider",
@@ -186,7 +194,7 @@ function mt(n) {
186
194
  function gt(n) {
187
195
  let e, t, r, o, i, l, u, d, h, m = (
188
196
  /*isLoggedIn*/
189
- n[14] && je(n)
197
+ n[14] && Se(n)
190
198
  );
191
199
  function F(f, g) {
192
200
  if (!/*isLoggedIn*/
@@ -211,7 +219,7 @@ function gt(n) {
211
219
  );
212
220
  return {
213
221
  c() {
214
- e = z("div"), t = z("casino-tournaments-thumbnail"), r = j(), m && m.c(), o = j(), i = z("div"), v && v.c(), l = j(), w && w.c(), u = j(), T && T.c(), a(
222
+ e = z("div"), t = z("casino-tournaments-thumbnail"), r = S(), m && m.c(), o = S(), i = z("div"), v && v.c(), l = S(), w && w.c(), u = S(), T && T.c(), a(
215
223
  t,
216
224
  "session",
217
225
  /*session*/
@@ -412,7 +420,7 @@ function gt(n) {
412
420
  /*keepbrowsercontext*/
413
421
  f[9]
414
422
  ), /*isLoggedIn*/
415
- f[14] ? m ? m.p(f, g) : (m = je(f), m.c(), m.m(e, o)) : m && (m.d(1), m = null), E === (E = F(f)) && v ? v.p(f, g) : (v && v.d(1), v = E && E(f), v && (v.c(), v.m(i, null))), /*errorJoin*/
423
+ f[14] ? m ? m.p(f, g) : (m = Se(f), m.c(), m.m(e, o)) : m && (m.d(1), m = null), E === (E = F(f)) && v ? v.p(f, g) : (v && v.d(1), v = E && E(f), v && (v.c(), v.m(i, null))), /*errorJoin*/
416
424
  f[17] || /*errorJoinConcurrently*/
417
425
  f[19] ? w ? w.p(f, g) : (w = Le(f), w.c(), w.m(e, u)) : w && (w.d(1), w = null), /*showslider*/
418
426
  f[4] == "true" ? T ? T.p(f, g) : (T = Oe(f), T.c(), T.m(e, null)) : T && (T.d(1), T = null), g[0] & /*maxwidth, fullsize*/
@@ -468,14 +476,14 @@ function ht(n) {
468
476
  }
469
477
  };
470
478
  }
471
- function je(n) {
479
+ function Se(n) {
472
480
  let e, t, r = (
473
481
  /*tourid*/
474
482
  n[24] && De(n)
475
483
  );
476
484
  return {
477
485
  c() {
478
- r && r.c(), e = j(), t = z("casino-tournaments-thumbnail-duration"), a(
486
+ r && r.c(), e = S(), t = z("casino-tournaments-thumbnail-duration"), a(
479
487
  t,
480
488
  "clientstyling",
481
489
  /*clientstyling*/
@@ -679,7 +687,7 @@ function wt(n) {
679
687
  let i = o(n), l = i(n);
680
688
  return {
681
689
  c() {
682
- r && r.c(), e = j(), l.c(), t = Pe();
690
+ r && r.c(), e = S(), l.c(), t = Pe();
683
691
  },
684
692
  m(u, d) {
685
693
  r && r.m(u, d), _(u, e, d), l.m(u, d), _(u, t, d);
@@ -703,7 +711,7 @@ function bt(n) {
703
711
  ), u, d, h;
704
712
  return {
705
713
  c() {
706
- e = z("button"), r = D(t), o = j(), i = z("button"), u = D(l), c(e, "class", "LoginButton"), c(e, "part", "LoginButton"), c(i, "class", "RegisterButton"), c(i, "part", "RegisterButton");
714
+ e = z("button"), r = D(t), o = S(), i = z("button"), u = D(l), c(e, "class", "LoginButton"), c(e, "part", "LoginButton"), c(i, "class", "RegisterButton"), c(i, "part", "RegisterButton");
707
715
  },
708
716
  m(m, F) {
709
717
  _(m, e, F), b(e, r), _(m, o, F), _(m, i, F), b(i, u), d || (h = [
@@ -826,7 +834,7 @@ function kt(n) {
826
834
  ), r, o, i, l, u, d, h, m;
827
835
  return {
828
836
  c() {
829
- e = z("span"), r = D(t), o = j(), i = L("svg"), l = L("defs"), u = L("style"), d = D(".a{fill:var(--emw--color-white, #FFFFFF);}"), h = L("g"), m = L("path"), c(e, "part", "JoinButtonSpan"), c(m, "class", "a"), c(m, "part", "a JoinButtonSvgA"), c(m, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"), c(m, "transform", "translate(26 26) rotate(180)"), c(h, "transform", "translate(26 26) rotate(180)"), c(i, "part", "JoinButtonSvg"), c(i, "xmlns", "http://www.w3.org/2000/svg"), c(i, "width", "26"), c(i, "height", "26"), c(i, "viewBox", "0 0 26 26");
837
+ e = z("span"), r = D(t), o = S(), i = L("svg"), l = L("defs"), u = L("style"), d = D(".a{fill:var(--emw--color-white, #FFFFFF);}"), h = L("g"), m = L("path"), c(e, "part", "JoinButtonSpan"), c(m, "class", "a"), c(m, "part", "a JoinButtonSvgA"), c(m, "d", "M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"), c(m, "transform", "translate(26 26) rotate(180)"), c(h, "transform", "translate(26 26) rotate(180)"), c(i, "part", "JoinButtonSvg"), c(i, "xmlns", "http://www.w3.org/2000/svg"), c(i, "width", "26"), c(i, "height", "26"), c(i, "viewBox", "0 0 26 26");
830
838
  },
831
839
  m(F, E) {
832
840
  _(F, e, E), b(e, r), _(F, o, E), _(F, i, E), b(i, l), b(l, u), b(u, d), b(i, h), b(h, m);
@@ -885,7 +893,7 @@ function Le(n) {
885
893
  ), r, o, i;
886
894
  return {
887
895
  c() {
888
- e = z("span"), r = D(t), o = j(), i = D(
896
+ e = z("span"), r = D(t), o = S(), i = D(
889
897
  /*errorJoinText*/
890
898
  n[18]
891
899
  ), c(e, "class", "ErrorText"), c(e, "part", "ErrorText");
@@ -1013,26 +1021,26 @@ function Tt(n) {
1013
1021
  function vt(n, e, t) {
1014
1022
  let r;
1015
1023
  it(n, ut, (s) => t(32, r = s));
1016
- let { session: o = "" } = e, { userid: i = "" } = e, { tournamenturl: l = "" } = e, { touridx: u } = e, { endpoint: d = "" } = e, { showdetails: h = "" } = e, { showslider: m = "" } = e, { showenrolled: F = "" } = e, { maxwidth: E = "" } = e, { fullsize: v = "" } = e, { lang: w = "" } = e, { loginevent: T = "" } = e, { registerevent: f = "" } = e, { loginurl: g = "" } = e, { registerurl: U = "" } = e, { currency: Q = "" } = e, { keepbrowsercontext: ae = "false" } = e, { clientstyling: H = "" } = e, { clientstylingurl: N = "" } = e, { translationurl: W = "" } = e, { tournamentinfo: q } = e, A, P = !1, G = "", I = !0, ue = window.navigator.userAgent, K = !1, X = !1, fe = "There was an error while trying to join the tournament", Y = !1, de, ce, me, x, S, ge, $, he, pe, we = [], ee = [], be = "#", te, V = !1;
1024
+ let { session: o = "" } = e, { userid: i = "" } = e, { tournamenturl: l = "" } = e, { touridx: u } = e, { endpoint: d = "" } = e, { showdetails: h = "" } = e, { showslider: m = "" } = e, { showenrolled: F = "" } = e, { maxwidth: E = "" } = e, { fullsize: v = "" } = e, { lang: w = "" } = e, { loginevent: T = "" } = e, { registerevent: f = "" } = e, { loginurl: g = "" } = e, { registerurl: U = "" } = e, { currency: Q = "" } = e, { keepbrowsercontext: ae = "false" } = e, { clientstyling: H = "" } = e, { clientstylingurl: N = "" } = e, { translationurl: W = "" } = e, { tournamentinfo: q } = e, A, P = !1, G = "", I = !0, ue = window.navigator.userAgent, K = !1, X = !1, fe = "There was an error while trying to join the tournament", Y = !1, de, ce, me, x, B, ge, $, he, pe, we = [], ee = [], be = "#", te, V = !1;
1017
1025
  dt({ withLocale: "en", translations: {} });
1018
1026
  const Ie = () => {
1019
1027
  fetch(W).then((p) => p.json()).then((p) => {
1020
1028
  Object.keys(p).forEach((C) => {
1021
- Be(C, p[C]);
1029
+ je(C, p[C]);
1022
1030
  });
1023
1031
  }).catch((p) => {
1024
1032
  console.log(p);
1025
1033
  });
1026
1034
  };
1027
- Object.keys(Se).forEach((s) => {
1028
- Be(s, Se[s]);
1035
+ Object.keys(Be).forEach((s) => {
1036
+ je(s, Be[s]);
1029
1037
  });
1030
1038
  const _e = (s) => {
1031
- xe(s), re(s), ve(this, S);
1039
+ xe(s), re(s), ve(this, B);
1032
1040
  }, ye = (s) => {
1033
1041
  if (s.data && s.data.type == "UserSessionID" && (t(14, P = !0), G = s.data.session), s.data.type == "UpdateTournamentView") {
1034
1042
  let p = s.data.tournamentData;
1035
- if (S && S != p.id)
1043
+ if (B && B != p.id)
1036
1044
  return;
1037
1045
  _e(p);
1038
1046
  }
@@ -1040,7 +1048,7 @@ function vt(n, e, t) {
1040
1048
  let p = s.data.tournamentData, C = u < 4 ? u * 100 : Math.random() * 300 + 300;
1041
1049
  t(31, V = u == 1), setTimeout(
1042
1050
  () => {
1043
- t(31, V = !0), t(24, S = p.id), _e(p);
1051
+ t(31, V = !0), t(24, B = p.id), _e(p);
1044
1052
  },
1045
1053
  C
1046
1054
  ), setTimeout(
@@ -1053,7 +1061,7 @@ function vt(n, e, t) {
1053
1061
  }, xe = (s) => {
1054
1062
  s.state != x && (t(23, x = s.state), window.postMessage(
1055
1063
  {
1056
- type: `TournamentStatus_${S}`,
1064
+ type: `TournamentStatus_${B}`,
1057
1065
  status: x
1058
1066
  },
1059
1067
  window.location.href
@@ -1104,23 +1112,23 @@ function vt(n, e, t) {
1104
1112
  };
1105
1113
  const ze = () => {
1106
1114
  t(16, K = !1), t(26, $ = !0);
1107
- }, ie = (B) => {
1108
- t(16, K = !1), B && t(18, fe = B), t(17, X = !0);
1115
+ }, ie = (j) => {
1116
+ t(16, K = !1), j && t(18, fe = j), t(17, X = !0);
1109
1117
  }, J = yield oe(this, null, function* () {
1110
- let B;
1118
+ let j;
1111
1119
  try {
1112
- B = yield fetch(C, Ze), B = yield B.json();
1120
+ j = yield fetch(C, Ze), j = yield j.json();
1113
1121
  } catch (Et) {
1114
1122
  ie();
1115
1123
  }
1116
- return B;
1124
+ return j;
1117
1125
  });
1118
1126
  if (J)
1119
1127
  if (J.success == !0)
1120
1128
  ze();
1121
1129
  else if (J.errorMessage.match("VersionMismatchException")) {
1122
- let B;
1123
- B = yield fetch(`${d}/tournaments/${S}`, { headers: { "X-SessionID": o } }), B = yield B.json(), (Ce = B == null ? void 0 : B.item) != null && Ce.playerEnrolled ? ze() : (ie(J.errorMessage), t(19, Y = !0), t(17, X = !1));
1130
+ let j;
1131
+ j = yield fetch(`${d}/tournaments/${B}`, { headers: { "X-SessionID": o } }), j = yield j.json(), (Ce = j == null ? void 0 : j.item) != null && Ce.playerEnrolled ? ze() : (ie(J.errorMessage), t(19, Y = !0), t(17, X = !1));
1124
1132
  } else
1125
1133
  ie(J.errorMessage);
1126
1134
  }), ve = (s, p) => {
@@ -1132,7 +1140,7 @@ function vt(n, e, t) {
1132
1140
  window.location.href
1133
1141
  );
1134
1142
  }, re = (s) => {
1135
- s && (t(20, de = s.nameOrTitle || ""), t(21, ce = s.startTime), t(22, me = s.endTime), t(23, x = s.state), t(24, S = s.id), t(25, ge = s.thumbnail), t(26, $ = s.playerEnrolled === "true" || s.playerEnrolled == !0 || !1), t(27, he = s.scoreCriteria), t(28, pe = s.minBetCount), we = s.prizes, t(29, ee = s.wallets || []), t(30, be = s.termsUrl || "#"));
1143
+ s && (t(20, de = s.nameOrTitle || ""), t(21, ce = s.startTime), t(22, me = s.endTime), t(23, x = s.state), t(24, B = s.id), t(25, ge = s.thumbnail), t(26, $ = s.playerEnrolled === "true" || s.playerEnrolled == !0 || !1), t(27, he = s.scoreCriteria), t(28, pe = s.minBetCount), we = s.prizes, t(29, ee = s.wallets || []), t(30, be = s.termsUrl || "#"));
1136
1144
  }, Je = (s) => {
1137
1145
  t(15, I = !0);
1138
1146
  let p = new URL(s), C = new Headers();
@@ -1168,7 +1176,7 @@ function vt(n, e, t) {
1168
1176
  ot(() => (t(15, I = !1), window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", ye, !1), () => {
1169
1177
  window.removeEventListener("message", ye);
1170
1178
  }));
1171
- const We = () => ke(), qe = () => Fe(), Ge = () => ne(S), Ke = () => Te(S, ee), Xe = () => ne(S);
1179
+ const We = () => ke(), qe = () => Fe(), Ge = () => ne(B), Ke = () => Te(B, ee), Xe = () => ne(B);
1172
1180
  function Ve(s) {
1173
1181
  st[s ? "unshift" : "push"](() => {
1174
1182
  A = s, t(13, A);
@@ -1210,7 +1218,7 @@ function vt(n, e, t) {
1210
1218
  ce,
1211
1219
  me,
1212
1220
  x,
1213
- S,
1221
+ B,
1214
1222
  ge,
1215
1223
  $,
1216
1224
  he,
@@ -1,4 +1,4 @@
1
- import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as h, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-QfIsqCR4.js";
1
+ import { a as K, S as Y, i as Z, f as C, c as J, s as Q, b as V, e as v, d as l, h as T, n as U, j as B, k as X, w as $, t as E, m as L, o as m, A as tt, p as M, u as et, D as A, $ as nt } from "./CasinoTournamentsController-D4fqxCja.js";
2
2
  function N(i, t) {
3
3
  K(i, t);
4
4
  }
@@ -82,6 +82,14 @@ const O = {
82
82
  minutes: "Minutos",
83
83
  hours: "Horas",
84
84
  days: "Dias"
85
+ },
86
+ "en-us": {
87
+ finished: "Finished",
88
+ starting: "Starting in ",
89
+ left: "left",
90
+ minutes: "minutes",
91
+ hours: "hours",
92
+ days: "days"
85
93
  }
86
94
  };
87
95
  function it(i) {
@@ -100,7 +108,7 @@ function H(i) {
100
108
  /*enddate*/
101
109
  i[1]
102
110
  ) + ""
103
- ), g, S, p, m, D, F, j;
111
+ ), g, S, p, h, D, F, j;
104
112
  function I(r, b) {
105
113
  return (
106
114
  /*status*/
@@ -132,10 +140,10 @@ function H(i) {
132
140
  let k = R(i), f = k && k(i);
133
141
  return {
134
142
  c() {
135
- t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), m = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(m, "class", "ProgressBar"), l(m, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
143
+ t = v("div"), e = v("div"), a = E(s), u = L(), o = v("div"), g = E(d), S = L(), p = v("div"), h = v("div"), y.c(), D = L(), f && f.c(), l(e, "class", "StartDate"), l(e, "part", "StartDate"), l(o, "class", "EndDate"), l(o, "part", "EndDate"), l(t, "class", "TournamentDates"), l(t, "part", "TournamentDates"), l(h, "class", "ProgressBar"), l(h, "part", "ProgressBar"), l(p, "class", "ProgressBarWrapper"), l(p, "part", "ProgressBarWrapper");
136
144
  },
137
145
  m(r, b) {
138
- T(r, t, b), h(t, e), h(e, a), h(t, u), h(t, o), h(o, g), T(r, S, b), T(r, p, b), h(p, m), y.m(m, null), h(m, D), f && f.m(m, null), F || (j = tt(
146
+ T(r, t, b), m(t, e), m(e, a), m(t, u), m(t, o), m(o, g), T(r, S, b), T(r, p, b), m(p, h), y.m(h, null), m(h, D), f && f.m(h, null), F || (j = tt(
139
147
  /*getDuration*/
140
148
  i[9].call(null, p)
141
149
  ), F = !0);
@@ -151,7 +159,7 @@ function H(i) {
151
159
  r[10](
152
160
  /*enddate*/
153
161
  r[1]
154
- ) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(m, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(m, null)));
162
+ ) + "") && M(g, d), z === (z = I(r)) && y ? y.p(r, b) : (y.d(1), y = z(r), y && (y.c(), y.m(h, D))), k === (k = R(r)) && f ? f.p(r, b) : (f && f.d(1), f = k && k(r), f && (f.c(), f.m(h, null)));
155
163
  },
156
164
  d(r) {
157
165
  r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
@@ -229,7 +237,7 @@ function lt(i) {
229
237
  ), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
230
238
  },
231
239
  m(o, d) {
232
- T(o, t, d), h(t, e), h(t, s), h(t, u);
240
+ T(o, t, d), m(t, e), m(t, s), m(t, u);
233
241
  },
234
242
  p(o, d) {
235
243
  d & /*showRemain*/
@@ -262,7 +270,7 @@ function ot(i) {
262
270
  t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
263
271
  },
264
272
  m(d, g) {
265
- T(d, t, g), h(t, s), h(t, a), h(t, o);
273
+ T(d, t, g), m(t, s), m(t, a), m(t, o);
266
274
  },
267
275
  p(d, g) {
268
276
  g & /*$_*/
@@ -289,7 +297,7 @@ function ut(i) {
289
297
  t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
290
298
  },
291
299
  m(a, u) {
292
- T(a, t, u), h(t, s);
300
+ T(a, t, u), m(t, s);
293
301
  },
294
302
  p(a, u) {
295
303
  u & /*$_*/
@@ -329,9 +337,9 @@ function dt(i) {
329
337
  function ct(i, t, e) {
330
338
  let s, a;
331
339
  X(i, nt, (n) => e(8, a = n));
332
- let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: m = "" } = t, D, F = "", j = "", I = "";
340
+ let { startdate: u = "" } = t, { enddate: o = "" } = t, { status: d = "" } = t, { lang: g = "en" } = t, { clientstyling: S = "" } = t, { clientstylingurl: p = "" } = t, { translationurl: h = "" } = t, D, F = "", j = "", I = "";
333
341
  const z = () => {
334
- fetch(m).then((c) => c.json()).then((c) => {
342
+ fetch(h).then((c) => c.json()).then((c) => {
335
343
  Object.keys(c).forEach((_) => {
336
344
  N(_, c[_]);
337
345
  });
@@ -393,7 +401,7 @@ function ct(i, t, e) {
393
401
  });
394
402
  }
395
403
  return i.$$set = (n) => {
396
- "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, m = n.translationurl);
404
+ "startdate" in n && e(0, u = n.startdate), "enddate" in n && e(1, o = n.enddate), "status" in n && e(2, d = n.status), "lang" in n && e(12, g = n.lang), "clientstyling" in n && e(13, S = n.clientstyling), "clientstylingurl" in n && e(14, p = n.clientstylingurl), "translationurl" in n && e(15, h = n.translationurl);
397
405
  }, i.$$.update = () => {
398
406
  i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
399
407
  19 && e(7, s = () => {
@@ -404,7 +412,7 @@ function ct(i, t, e) {
404
412
  19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
405
413
  4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
406
414
  4112 && g && r(F), i.$$.dirty & /*translationurl*/
407
- 32768 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
415
+ 32768 && h && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
408
416
  8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
409
417
  16392 && D && p && q();
410
418
  }, [
@@ -423,7 +431,7 @@ function ct(i, t, e) {
423
431
  g,
424
432
  S,
425
433
  p,
426
- m,
434
+ h,
427
435
  x
428
436
  ];
429
437
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-WRSyK2QY.cjs");function C(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,T,y,h,b,v,S;function P(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?U:O}let w=P(r),m=w(r);function B(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return H;if(s[5]>0)return A;if(s[4]>0)return q}let D=B(r),f=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),g=t.text(d),T=t.space(),y=t.element("div"),h=t.element("div"),m.c(),b=t.space(),f&&f.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(h,"class","ProgressBar"),t.attr(h,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,T,_),t.insert(s,y,_),t.append(y,h),m.m(h,null),t.append(h,b),f&&f.m(h,null),v||(S=t.action_destroyer(r[9].call(null,y)),v=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),w===(w=P(s))&&m?m.p(s,_):(m.d(1),m=w(s),m&&(m.c(),m.m(h,b))),D===(D=B(s))&&f?f.p(s,_):(f&&f.d(1),f=D&&D(s),f&&(f.c(),f.m(h,null)))},d(s){s&&(t.detach(e),t.detach(T),t.detach(y)),m.d(),f&&f.d(),v=!1,S()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,g){t.insert(d,e,g),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,g){g&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),g&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function H(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function W(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[16](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[16](null)}}}function G(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:g="en"}=e,{clientstyling:T=""}=e,{clientstylingurl:y=""}=e,{translationurl:h=""}=e,b,v="",S="",P="";const w=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(p=>{C(p,c[p])})}).catch(c=>{console.log(c)})};Object.keys(M).forEach(i=>{C(i,M[i])});const m=i=>new Date(i).getTime(),B=(i,c)=>(m(c)-m(i))/(1e3*60),D=()=>{const i=new Date;n(4,v=B(i,o)),n(5,S=B(i,u)),n(6,P=s(v))},f=i=>{const c={month:"long"};let p=new Date(i),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=i=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(i<1440){const k=i/60,F=i%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(i/(60*24)),"days")},_=()=>{let i=document.createElement("style");i.innerHTML=T,b.appendChild(i)},R=()=>{let i=new URL(y),c=document.createElement("style");fetch(i.href).then(p=>p.text()).then(p=>{c.innerHTML=p,setTimeout(()=>{b.appendChild(c)},1),setTimeout(()=>{},500)})};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(i)});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{b=i,n(3,b)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,g=i.lang),"clientstyling"in i&&n(13,T=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,h=i.translationurl)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const i=B(u,o),c=100/i;return Math.floor((i-v)*c)}),r.$$.dirty&19&&u&&o&&D()&&s(v),r.$$.dirty&4096&&g&&D(),r.$$.dirty&4112&&g&&s(v),r.$$.dirty&32768&&h&&w(),r.$$.dirty&8200&&b&&T&&_(),r.$$.dirty&16392&&b&&y&&R()},[u,o,d,b,v,S,P,a,l,D,f,s,g,T,y,h,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,G,W,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=z;
@@ -1,4 +1,4 @@
1
- import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Be, o as v, I as Ee, r as L, q as Pe, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-QfIsqCR4.js";
1
+ import { a as be, S as ve, i as ke, f as M, c as Ne, s as Se, b as Te, e as S, h as I, n as X, j as G, k as Fe, w as Me, l as x, m as z, d as c, G as C, D as Y, H as Pe, o as v, I as Be, r as L, q as Ee, C as te, t as Le, J as Z, p as He, F as je, u as D, $ as Ce } from "./CasinoTournamentsController-D4fqxCja.js";
2
2
  function K(e, l) {
3
3
  be(e, l);
4
4
  }
@@ -29,6 +29,9 @@ const Q = {
29
29
  },
30
30
  pt: {
31
31
  playNow: "Jogue agora"
32
+ },
33
+ "en-us": {
34
+ playNow: "Play now"
32
35
  }
33
36
  };
34
37
  function ze(e) {
@@ -56,7 +59,7 @@ function $(e) {
56
59
  /*atStart*/
57
60
  e[8]
58
61
  ), c(h, "class", "items"), c(h, "part", "items"), Y(h, "transform", "translateX(" + /*offset*/
59
- e[2] + "px)"), Be(() => (
62
+ e[2] + "px)"), Pe(() => (
60
63
  /*main_elementresize_handler*/
61
64
  e[28].call(d)
62
65
  )), c(r, "class", "SliderNavButton"), c(r, "part", "SliderNavButton"), C(
@@ -70,7 +73,7 @@ function $(e) {
70
73
  I(s, l, b), v(l, t), v(l, a), v(l, d), v(d, h);
71
74
  for (let i = 0; i < o.length; i += 1)
72
75
  o[i] && o[i].m(h, null);
73
- e[27](h), p = Ee(
76
+ e[27](h), p = Be(
74
77
  d,
75
78
  /*main_elementresize_handler*/
76
79
  e[28].bind(d)
@@ -122,7 +125,7 @@ function $(e) {
122
125
  );
123
126
  },
124
127
  d(s) {
125
- s && G(l), Pe(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
128
+ s && G(l), Ee(o, s), e[27](null), p(), e[30](null), w = !1, te(_);
126
129
  }
127
130
  };
128
131
  }
@@ -227,7 +230,7 @@ let Ue = 30;
227
230
  function De(e, l, t) {
228
231
  let a, d, h;
229
232
  Fe(e, Ce, (n) => t(10, h = n));
230
- let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, j = null, A = !1, U, B, E = 0, T;
233
+ let { tournamenturl: p = "" } = l, { scrollby: y = "3" } = l, { pagfactor: r = "175" } = l, { lang: w = "" } = l, { translationurl: _ = "" } = l, { clientstyling: f = "" } = l, { clientstylingurl: o = "" } = l, s, b = window.navigator.userAgent, i, k = [], u = 0, m, H = null, j = null, A = !1, U, P, B = 0, T;
231
234
  const ne = () => {
232
235
  fetch(_).then((g) => g.json()).then((g) => {
233
236
  Object.keys(g).forEach((N) => {
@@ -250,9 +253,9 @@ function De(e, l, t) {
250
253
  }, O = (n) => {
251
254
  if (!H || !j) return;
252
255
  let g = n.touches[0].clientX, N = n.touches[0].clientY, F = H - g, _e = j - N;
253
- Math.abs(F) > Math.abs(_e) && (F > 0 ? P(1) : P(-1)), H = null, j = null;
254
- }, P = (n) => {
255
- n > 0 && !d ? (t(2, u -= i), t(2, u = u < E ? E : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
256
+ Math.abs(F) > Math.abs(_e) && (F > 0 ? E(1) : E(-1)), H = null, j = null;
257
+ }, E = (n) => {
258
+ n > 0 && !d ? (t(2, u -= i), t(2, u = u < B ? B : u)) : n < 0 && !a && (t(2, u += i), t(2, u = u > 0 ? 0 : u));
256
259
  }, R = (n) => {
257
260
  window.postMessage(
258
261
  {
@@ -273,7 +276,7 @@ function De(e, l, t) {
273
276
  }, ae = () => {
274
277
  setTimeout(
275
278
  () => {
276
- t(22, E = (B.scrollWidth - B.clientWidth) * -1), t(16, r = new String(B.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
279
+ t(22, B = (P.scrollWidth - P.clientWidth) * -1), t(16, r = new String(P.scrollWidth / k.length)), i = parseInt(y, 10) * parseFloat(r, 2).toFixed(2);
277
280
  },
278
281
  1e3
279
282
  );
@@ -300,16 +303,16 @@ function De(e, l, t) {
300
303
  Me(() => (i = parseInt(y, 10) * parseInt(r, 10), () => {
301
304
  m.removeEventListener("touchstart", J), m.removeEventListener("touchmove", O);
302
305
  }));
303
- const ue = () => P(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
306
+ const ue = () => E(-1), de = (n) => R(n), he = (n) => W(n), me = () => q();
304
307
  function fe(n) {
305
308
  D[n ? "unshift" : "push"](() => {
306
- B = n, t(7, B);
309
+ P = n, t(7, P);
307
310
  });
308
311
  }
309
312
  function ge() {
310
313
  T = this.clientWidth, t(4, T);
311
314
  }
312
- const pe = () => P(1);
315
+ const pe = () => E(1);
313
316
  function ye(n) {
314
317
  D[n ? "unshift" : "push"](() => {
315
318
  m = n, t(3, m);
@@ -325,7 +328,7 @@ function De(e, l, t) {
325
328
  }, e.$$.update = () => {
326
329
  e.$$.dirty[0] & /*offset*/
327
330
  4 && t(8, a = u === 0), e.$$.dirty[0] & /*offset, gamesElementWidth*/
328
- 4194308 && t(9, d = u <= E), e.$$.dirty[0] & /*sliderMainWidth*/
331
+ 4194308 && t(9, d = u <= B), e.$$.dirty[0] & /*sliderMainWidth*/
329
332
  16 && T && ce(), e.$$.dirty[0] & /*tournamenturl*/
330
333
  131072 && p && se(), e.$$.dirty[0] & /*slider*/
331
334
  8 && m && re(), e.$$.dirty[0] & /*translationurl*/
@@ -341,13 +344,13 @@ function De(e, l, t) {
341
344
  T,
342
345
  A,
343
346
  U,
344
- B,
347
+ P,
345
348
  a,
346
349
  d,
347
350
  h,
348
351
  W,
349
352
  q,
350
- P,
353
+ E,
351
354
  R,
352
355
  y,
353
356
  r,
@@ -356,7 +359,7 @@ function De(e, l, t) {
356
359
  _,
357
360
  f,
358
361
  o,
359
- E,
362
+ B,
360
363
  ue,
361
364
  de,
362
365
  he,