@everymatrix/casino-tournaments-controller 1.47.1 → 1.47.3
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.
- package/components/{CasinoTournamentsController-COIiFc-x.cjs → CasinoTournamentsController-Cm5bXukc.cjs} +1 -1
- package/components/{CasinoTournamentsController-B3OvVS_7.js → CasinoTournamentsController-DWC8EvgA.js} +2 -2
- package/components/{CasinoTournamentsFilterController-Cj49p9F0.cjs → CasinoTournamentsFilterController-BU8aYSou.cjs} +1 -1
- package/components/{CasinoTournamentsFilterController-BWVXr8cb.js → CasinoTournamentsFilterController-C0lJIZQh.js} +1 -1
- package/components/{CasinoTournamentsListController-Zi6Nk1Td.cjs → CasinoTournamentsListController-BB29otuv.cjs} +2 -2
- package/components/{CasinoTournamentsListController-5AAbmc2X.js → CasinoTournamentsListController-DefylvAi.js} +2 -2
- package/components/{CasinoTournamentsThumbnail-kK8eTJVM.js → CasinoTournamentsThumbnail-BGDuccrG.js} +237 -229
- package/components/CasinoTournamentsThumbnail-exOgng0S.cjs +4 -0
- package/components/{CasinoTournamentsThumbnailController-DZ5V6qTv.js → CasinoTournamentsThumbnailController-BwlS7-yN.js} +279 -259
- package/components/CasinoTournamentsThumbnailController-DcWOm8xT.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailDuration-D6-gp03Q.js → CasinoTournamentsThumbnailDuration-BC_appnr.js} +99 -98
- package/components/CasinoTournamentsThumbnailDuration-BsKArW2w.cjs +1 -0
- package/components/{CasinoTournamentsThumbnailGamesSlider-CfyER909.cjs → CasinoTournamentsThumbnailGamesSlider-BAg71KGt.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BsX-aRFF.js → CasinoTournamentsThumbnailGamesSlider-yPHwZVto.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Dq7XD8vA.cjs → CasinoTournamentsThumbnailPrizes-BV8NI59t.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-D8MMxd0D.js → CasinoTournamentsThumbnailPrizes-CjD3RfeW.js} +1 -1
- package/es2015/casino-tournaments-controller.cjs +1 -1
- package/es2015/casino-tournaments-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-BgzPt-Bq.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-CO_JNQKh.cjs +0 -1
- package/components/CasinoTournamentsThumbnailDuration-DxX6hlRg.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-Cm5bXukc.cjs");function Ae({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"}};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-exOgng0S.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-BsKArW2w.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-BV8NI59t.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-BAg71KGt.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-e8vjpc",'*,*::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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-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(--emfe-w-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(--emfe-w-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(--emfe-w-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]&&pe(r);function g(m,f){if(!m[14])return Ne;if(m[23]!="Closed"&&m[23]!="Closing")return qe;if(m[3]=="true")return He}let k=g(r),b=k&&k(r),p=(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(),p&&p.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),p&&p.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=pe(m),c.c(),c.m(t,i)):c&&(c.d(1),c=null),k===(k=g(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]?p?p.p(m,f):(p=ye(m),p.c(),p.m(t,u)):p&&(p.d(1),p=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(),p&&p.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 pe(r){let t,n,s=r[24]&&ge(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=ge(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 ge(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 He(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 qe(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,g){e.insert(c,t,g),e.append(t,s),e.insert(c,i,g),e.insert(c,o,g),e.append(o,u),d||(h=[e.listen(t,"click",r[47]),e.listen(o,"click",r[48])],d=!0)},p(c,g){g[1]&2&&n!==(n=c[32]("login")+"")&&e.set_data(s,n),g[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(--emfe-w-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(g,k){e.insert(g,t,k),e.append(t,s),e.insert(g,i,k),e.insert(g,o,k),e.append(o,l),e.append(l,u),e.append(u,d),e.append(o,h),e.append(h,c)},p(g,k){k[1]&2&&n!==(n=g[32]("join")+"")&&e.set_data(s,n)},d(g){g&&(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:g=""}=t,{maxwidth:k=""}=t,{fullsize:b=""}=t,{lang:p=""}=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:O}=t,T,C=!1,L="",E=!0,Z=window.navigator.userAgent,x=!1,A=!1,Q="There was an error while trying to join the tournament",U=!1,Y,$,ee,S,v,te,H,ne,re,se=[],q=[],oe="#",N,I=!1;Ae({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),L=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"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),f&&(window.location=f)},ue=()=>{m&&(window.postMessage({type:m,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("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,A=!1),n(19,U=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:a},window.location.href),n(16,x=!0);let y=new URL(`${d}/v1/bonus/claim`),J=new Headers,z={};y.searchParams.append("language",p),y.searchParams.append("platform",e.getDevice(Z)),J.append("Content-Type","application/json"),J.append("X-SessionID",L),_&&_.length>=1&&(z={language:p,bonusCode:_[0].code,currency:R,type:"tournament"});let xe={method:"PUT",headers:J,body:JSON.stringify(z)};const ce=()=>{n(16,x=!1),n(26,H=!0)},K=F=>{n(16,x=!1),F&&n(18,Q=F),n(17,A=!0)},j=yield X(this,null,function*(){let F;try{F=yield fetch(y,xe),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,A=!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,H=a.playerEnrolled==="true"||a.playerEnrolled==!0||!1),n(27,ne=a.scoreCriteria),n(28,re=a.minBetCount),se=a.prizes,n(29,q=a.wallets||[]),n(30,oe=a.termsUrl||"#"))},ze=a=>{n(15,E=!0);let _=new URL(a),y=new Headers;_.searchParams.append("language",p),_.searchParams.append("platform",e.getDevice(Z)),C&&y.append("X-SessionID",L),fetch(_,{method:"GET",headers:y}).then(z=>z.json()).then(z=>{n(15,E=!1),G(z.item)})},Ce=()=>{i.length>0&&i!="false"?(L=i,n(14,C=!0)):n(14,C=!1)},Ee=()=>{if(O){G(O);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,q),Oe=()=>W(v);function Le(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,g=a.showenrolled),"maxwidth"in a&&n(6,k=a.maxwidth),"fullsize"in a&&n(7,b=a.fullsize),"lang"in a&&n(8,p=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,O=a.tournamentinfo)},r.$$.update=()=>{r.$$.dirty[0]&256&&p&&Ie(p),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&&p),r.$$.dirty[1]&32768&&N&&Ee()},[i,o,l,h,c,g,k,b,p,V,D,M,P,T,C,E,x,A,Q,U,Y,$,ee,S,v,te,H,ne,re,q,oe,I,s,le,ue,W,me,de,u,d,w,m,f,B,R,O,N,Be,De,Me,Pe,Oe,Le]}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;
|
|
@@ -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
|
|
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-DWC8EvgA.js";
|
|
2
2
|
function N(i, t) {
|
|
3
3
|
K(i, t);
|
|
4
4
|
}
|
|
@@ -88,7 +88,7 @@ function it(i) {
|
|
|
88
88
|
V(i, "svelte-n7yu38", "*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}");
|
|
89
89
|
}
|
|
90
90
|
function H(i) {
|
|
91
|
-
let t, e,
|
|
91
|
+
let t, e, s = (
|
|
92
92
|
/*formatDate*/
|
|
93
93
|
i[10](
|
|
94
94
|
/*startdate*/
|
|
@@ -100,80 +100,80 @@ function H(i) {
|
|
|
100
100
|
/*enddate*/
|
|
101
101
|
i[1]
|
|
102
102
|
) + ""
|
|
103
|
-
), g, S, p, m,
|
|
104
|
-
function I(
|
|
103
|
+
), g, S, p, m, D, F, j;
|
|
104
|
+
function I(r, b) {
|
|
105
105
|
return (
|
|
106
106
|
/*status*/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
r[2] == "Finished" || /*status*/
|
|
108
|
+
r[2] == "Closing" || /*status*/
|
|
109
|
+
r[2] == "Closed" ? at : (
|
|
110
110
|
/*tournamentUntilStartDays*/
|
|
111
|
-
|
|
111
|
+
r[5] > 0 ? rt : st
|
|
112
112
|
)
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
|
-
let
|
|
116
|
-
function R(
|
|
115
|
+
let z = I(i), y = z(i);
|
|
116
|
+
function R(r, b) {
|
|
117
117
|
if (
|
|
118
118
|
/*status*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
r[2] == "Finished" || /*status*/
|
|
120
|
+
r[2] == "Closing" || /*status*/
|
|
121
|
+
r[2] == "Closed"
|
|
122
122
|
) return ut;
|
|
123
123
|
if (
|
|
124
124
|
/*tournamentUntilStartDays*/
|
|
125
|
-
|
|
125
|
+
r[5] > 0
|
|
126
126
|
) return ot;
|
|
127
127
|
if (
|
|
128
128
|
/*tournamentLeftDays*/
|
|
129
|
-
|
|
129
|
+
r[4] > 0
|
|
130
130
|
) return lt;
|
|
131
131
|
}
|
|
132
132
|
let k = R(i), f = k && k(i);
|
|
133
133
|
return {
|
|
134
134
|
c() {
|
|
135
|
-
t =
|
|
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");
|
|
136
136
|
},
|
|
137
|
-
m(
|
|
138
|
-
T(
|
|
137
|
+
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(
|
|
139
139
|
/*getDuration*/
|
|
140
140
|
i[9].call(null, p)
|
|
141
141
|
), F = !0);
|
|
142
142
|
},
|
|
143
|
-
p(
|
|
144
|
-
|
|
145
|
-
1 &&
|
|
146
|
-
|
|
143
|
+
p(r, b) {
|
|
144
|
+
b & /*startdate*/
|
|
145
|
+
1 && s !== (s = /*formatDate*/
|
|
146
|
+
r[10](
|
|
147
147
|
/*startdate*/
|
|
148
|
-
|
|
149
|
-
) + "") &&
|
|
148
|
+
r[0]
|
|
149
|
+
) + "") && M(a, s), b & /*enddate*/
|
|
150
150
|
2 && d !== (d = /*formatDate*/
|
|
151
|
-
|
|
151
|
+
r[10](
|
|
152
152
|
/*enddate*/
|
|
153
|
-
|
|
154
|
-
) + "") &&
|
|
153
|
+
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)));
|
|
155
155
|
},
|
|
156
|
-
d(
|
|
157
|
-
|
|
156
|
+
d(r) {
|
|
157
|
+
r && (B(t), B(S), B(p)), y.d(), f && f.d(), F = !1, j();
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function st(i) {
|
|
162
162
|
let t;
|
|
163
163
|
return {
|
|
164
164
|
c() {
|
|
165
|
-
t =
|
|
165
|
+
t = v("div"), l(t, "class", "ProgressBarFill"), l(t, "part", "ProgressBarFill"), A(
|
|
166
166
|
t,
|
|
167
167
|
"width",
|
|
168
168
|
/*getProgress*/
|
|
169
169
|
i[7]() + "%"
|
|
170
170
|
);
|
|
171
171
|
},
|
|
172
|
-
m(e,
|
|
173
|
-
T(e, t,
|
|
172
|
+
m(e, s) {
|
|
173
|
+
T(e, t, s);
|
|
174
174
|
},
|
|
175
|
-
p(e,
|
|
176
|
-
|
|
175
|
+
p(e, s) {
|
|
176
|
+
s & /*getProgress*/
|
|
177
177
|
128 && A(
|
|
178
178
|
t,
|
|
179
179
|
"width",
|
|
@@ -182,22 +182,22 @@ function rt(i) {
|
|
|
182
182
|
);
|
|
183
183
|
},
|
|
184
184
|
d(e) {
|
|
185
|
-
e &&
|
|
185
|
+
e && B(t);
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function rt(i) {
|
|
190
190
|
let t;
|
|
191
191
|
return {
|
|
192
192
|
c() {
|
|
193
|
-
t =
|
|
193
|
+
t = v("div"), l(t, "class", "ProgressBarFillStarting"), l(t, "part", "ProgressBarFillStarting");
|
|
194
194
|
},
|
|
195
|
-
m(e,
|
|
196
|
-
T(e, t,
|
|
195
|
+
m(e, s) {
|
|
196
|
+
T(e, t, s);
|
|
197
197
|
},
|
|
198
198
|
p: U,
|
|
199
199
|
d(e) {
|
|
200
|
-
e &&
|
|
200
|
+
e && B(t);
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
203
|
}
|
|
@@ -205,52 +205,52 @@ function at(i) {
|
|
|
205
205
|
let t;
|
|
206
206
|
return {
|
|
207
207
|
c() {
|
|
208
|
-
t =
|
|
208
|
+
t = v("div"), l(t, "class", "ProgressBarFillEnd"), l(t, "part", "ProgressBarFillEnd");
|
|
209
209
|
},
|
|
210
|
-
m(e,
|
|
211
|
-
T(e, t,
|
|
210
|
+
m(e, s) {
|
|
211
|
+
T(e, t, s);
|
|
212
212
|
},
|
|
213
213
|
p: U,
|
|
214
214
|
d(e) {
|
|
215
|
-
e &&
|
|
215
|
+
e && B(t);
|
|
216
216
|
}
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function lt(i) {
|
|
220
|
-
let t, e,
|
|
220
|
+
let t, e, s, a = (
|
|
221
221
|
/*$_*/
|
|
222
|
-
i[8]("
|
|
222
|
+
i[8]("left") + ""
|
|
223
223
|
), u;
|
|
224
224
|
return {
|
|
225
225
|
c() {
|
|
226
|
-
t =
|
|
226
|
+
t = v("div"), e = E(
|
|
227
227
|
/*showRemain*/
|
|
228
228
|
i[6]
|
|
229
|
-
),
|
|
229
|
+
), s = L(), u = E(a), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
230
230
|
},
|
|
231
231
|
m(o, d) {
|
|
232
|
-
T(o, t, d), h(t, e), h(t,
|
|
232
|
+
T(o, t, d), h(t, e), h(t, s), h(t, u);
|
|
233
233
|
},
|
|
234
234
|
p(o, d) {
|
|
235
235
|
d & /*showRemain*/
|
|
236
|
-
64 &&
|
|
236
|
+
64 && M(
|
|
237
237
|
e,
|
|
238
238
|
/*showRemain*/
|
|
239
239
|
o[6]
|
|
240
240
|
), d & /*$_*/
|
|
241
241
|
256 && a !== (a = /*$_*/
|
|
242
|
-
o[8]("
|
|
242
|
+
o[8]("left") + "") && M(u, a);
|
|
243
243
|
},
|
|
244
244
|
d(o) {
|
|
245
|
-
o &&
|
|
245
|
+
o && B(t);
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
248
|
}
|
|
249
249
|
function ot(i) {
|
|
250
250
|
let t, e = (
|
|
251
251
|
/*$_*/
|
|
252
|
-
i[8]("
|
|
253
|
-
),
|
|
252
|
+
i[8]("starting") + ""
|
|
253
|
+
), s, a, u = (
|
|
254
254
|
/*getTextByDiff*/
|
|
255
255
|
i[11](
|
|
256
256
|
/*tournamentUntilStartDays*/
|
|
@@ -259,45 +259,45 @@ function ot(i) {
|
|
|
259
259
|
), o;
|
|
260
260
|
return {
|
|
261
261
|
c() {
|
|
262
|
-
t =
|
|
262
|
+
t = v("div"), s = E(e), a = L(), o = E(u), l(t, "class", "Remaining"), l(t, "part", "Remaining");
|
|
263
263
|
},
|
|
264
264
|
m(d, g) {
|
|
265
|
-
T(d, t, g), h(t,
|
|
265
|
+
T(d, t, g), h(t, s), h(t, a), h(t, o);
|
|
266
266
|
},
|
|
267
267
|
p(d, g) {
|
|
268
268
|
g & /*$_*/
|
|
269
269
|
256 && e !== (e = /*$_*/
|
|
270
|
-
d[8]("
|
|
270
|
+
d[8]("starting") + "") && M(s, e), g & /*tournamentUntilStartDays*/
|
|
271
271
|
32 && u !== (u = /*getTextByDiff*/
|
|
272
272
|
d[11](
|
|
273
273
|
/*tournamentUntilStartDays*/
|
|
274
274
|
d[5]
|
|
275
|
-
) + "") &&
|
|
275
|
+
) + "") && M(o, u);
|
|
276
276
|
},
|
|
277
277
|
d(d) {
|
|
278
|
-
d &&
|
|
278
|
+
d && B(t);
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
282
|
function ut(i) {
|
|
283
283
|
let t, e = (
|
|
284
284
|
/*$_*/
|
|
285
|
-
i[8]("
|
|
286
|
-
),
|
|
285
|
+
i[8]("finished") + ""
|
|
286
|
+
), s;
|
|
287
287
|
return {
|
|
288
288
|
c() {
|
|
289
|
-
t =
|
|
289
|
+
t = v("div"), s = E(e), l(t, "class", "Finished"), l(t, "part", "Finished");
|
|
290
290
|
},
|
|
291
291
|
m(a, u) {
|
|
292
|
-
T(a, t, u), h(t,
|
|
292
|
+
T(a, t, u), h(t, s);
|
|
293
293
|
},
|
|
294
294
|
p(a, u) {
|
|
295
295
|
u & /*$_*/
|
|
296
296
|
256 && e !== (e = /*$_*/
|
|
297
|
-
a[8]("
|
|
297
|
+
a[8]("finished") + "") && M(s, e);
|
|
298
298
|
},
|
|
299
299
|
d(a) {
|
|
300
|
-
a &&
|
|
300
|
+
a && B(t);
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
}
|
|
@@ -309,28 +309,28 @@ function dt(i) {
|
|
|
309
309
|
);
|
|
310
310
|
return {
|
|
311
311
|
c() {
|
|
312
|
-
t =
|
|
312
|
+
t = v("div"), e && e.c(), l(t, "class", "TournamentDuration"), l(t, "part", "TournamentDuration");
|
|
313
313
|
},
|
|
314
|
-
m(
|
|
315
|
-
T(
|
|
314
|
+
m(s, a) {
|
|
315
|
+
T(s, t, a), e && e.m(t, null), i[16](t);
|
|
316
316
|
},
|
|
317
|
-
p(
|
|
317
|
+
p(s, [a]) {
|
|
318
318
|
/*startdate*/
|
|
319
|
-
|
|
320
|
-
|
|
319
|
+
s[0] && /*enddate*/
|
|
320
|
+
s[1] ? e ? e.p(s, a) : (e = H(s), e.c(), e.m(t, null)) : e && (e.d(1), e = null);
|
|
321
321
|
},
|
|
322
322
|
i: U,
|
|
323
323
|
o: U,
|
|
324
|
-
d(
|
|
325
|
-
|
|
324
|
+
d(s) {
|
|
325
|
+
s && B(t), e && e.d(), i[16](null);
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
function ct(i, t, e) {
|
|
330
|
-
let
|
|
330
|
+
let s, a;
|
|
331
331
|
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,
|
|
333
|
-
const
|
|
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 = "";
|
|
333
|
+
const z = () => {
|
|
334
334
|
fetch(m).then((c) => c.json()).then((c) => {
|
|
335
335
|
Object.keys(c).forEach((_) => {
|
|
336
336
|
N(_, c[_]);
|
|
@@ -344,30 +344,30 @@ function ct(i, t, e) {
|
|
|
344
344
|
});
|
|
345
345
|
const y = (n) => new Date(n).getTime(), R = (n, c) => (y(c) - y(n)) / (1e3 * 60), k = () => {
|
|
346
346
|
const n = /* @__PURE__ */ new Date();
|
|
347
|
-
e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I =
|
|
347
|
+
e(4, F = R(n, o)), e(5, j = R(n, u)), e(6, I = r(F));
|
|
348
348
|
}, f = (n) => {
|
|
349
349
|
const c = { month: "long" };
|
|
350
350
|
let _ = new Date(n), P = new Intl.DateTimeFormat(g, c).format(_);
|
|
351
351
|
return `${_.getDate()} ${P}, ${_.toLocaleString("en-GB", { hour: "numeric", minute: "numeric" })}, ${_.getUTCFullYear()}`;
|
|
352
|
-
},
|
|
353
|
-
const c = (P,
|
|
354
|
-
const
|
|
355
|
-
return
|
|
352
|
+
}, r = (n) => {
|
|
353
|
+
const c = (P, w) => P + " " + a(w), _ = (P) => {
|
|
354
|
+
const w = Math.floor(P);
|
|
355
|
+
return w < 10 ? `0${w}` : `${w}`;
|
|
356
356
|
};
|
|
357
357
|
if (n < 1440) {
|
|
358
|
-
const P = n / 60,
|
|
359
|
-
return [P,
|
|
358
|
+
const P = n / 60, w = n % 60, W = (w - Math.floor(w)) * 60;
|
|
359
|
+
return [P, w, W].map((G) => _(G)).join(":");
|
|
360
360
|
}
|
|
361
|
-
return c(Math.ceil(n / (60 * 24)), "
|
|
362
|
-
},
|
|
361
|
+
return c(Math.ceil(n / (60 * 24)), "days");
|
|
362
|
+
}, b = () => {
|
|
363
363
|
let n = document.createElement("style");
|
|
364
|
-
n.innerHTML = S,
|
|
364
|
+
n.innerHTML = S, D.appendChild(n);
|
|
365
365
|
}, q = () => {
|
|
366
366
|
let n = new URL(p), c = document.createElement("style");
|
|
367
367
|
fetch(n.href).then((_) => _.text()).then((_) => {
|
|
368
368
|
c.innerHTML = _, setTimeout(
|
|
369
369
|
() => {
|
|
370
|
-
|
|
370
|
+
D.appendChild(c);
|
|
371
371
|
},
|
|
372
372
|
1
|
|
373
373
|
), setTimeout(
|
|
@@ -378,6 +378,7 @@ function ct(i, t, e) {
|
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
380
|
$(() => {
|
|
381
|
+
window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href);
|
|
381
382
|
const n = setInterval(
|
|
382
383
|
() => {
|
|
383
384
|
u && o && k();
|
|
@@ -388,37 +389,37 @@ function ct(i, t, e) {
|
|
|
388
389
|
});
|
|
389
390
|
function x(n) {
|
|
390
391
|
et[n ? "unshift" : "push"](() => {
|
|
391
|
-
|
|
392
|
+
D = n, e(3, D);
|
|
392
393
|
});
|
|
393
394
|
}
|
|
394
395
|
return i.$$set = (n) => {
|
|
395
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);
|
|
396
397
|
}, i.$$.update = () => {
|
|
397
398
|
i.$$.dirty & /*tournamentLeftDays, startdate, enddate*/
|
|
398
|
-
19 && e(7,
|
|
399
|
+
19 && e(7, s = () => {
|
|
399
400
|
if (F <= 0) return 100;
|
|
400
401
|
const n = R(u, o), c = 100 / n;
|
|
401
402
|
return Math.floor((n - F) * c);
|
|
402
403
|
}), i.$$.dirty & /*startdate, enddate, tournamentLeftDays*/
|
|
403
|
-
19 && u && o && k() &&
|
|
404
|
+
19 && u && o && k() && r(F), i.$$.dirty & /*lang*/
|
|
404
405
|
4096 && g && k(), i.$$.dirty & /*lang, tournamentLeftDays*/
|
|
405
|
-
4112 && g &&
|
|
406
|
-
32768 && m &&
|
|
407
|
-
8200 &&
|
|
408
|
-
16392 &&
|
|
406
|
+
4112 && g && r(F), i.$$.dirty & /*translationurl*/
|
|
407
|
+
32768 && m && z(), i.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
408
|
+
8200 && D && S && b(), i.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
409
|
+
16392 && D && p && q();
|
|
409
410
|
}, [
|
|
410
411
|
u,
|
|
411
412
|
o,
|
|
412
413
|
d,
|
|
413
|
-
|
|
414
|
+
D,
|
|
414
415
|
F,
|
|
415
416
|
j,
|
|
416
417
|
I,
|
|
417
|
-
|
|
418
|
+
s,
|
|
418
419
|
a,
|
|
419
420
|
k,
|
|
420
421
|
f,
|
|
421
|
-
|
|
422
|
+
r,
|
|
422
423
|
g,
|
|
423
424
|
S,
|
|
424
425
|
p,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsController-Cm5bXukc.cjs");function C(i,e){t.addMessages(i,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"}};function L(i){t.append_styles(i,"svelte-n7yu38","*,*::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(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}")}function E(i){let e,n,a=i[10](i[0])+"",l,u,o,d=i[10](i[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(i),m=w(i);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(i),f=D&&D(i);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(i[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(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",i[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(i){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(i){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(i){let e,n,a,l=i[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(i[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(i){let e,n=i[8]("starting")+"",a,l,u=i[11](i[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(i){let e,n=i[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(i){let e,n=i[0]&&i[1]&&E(i);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),i[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(),i[16](null)}}}function G(i,e,n){let a,l;t.component_subscribe(i,t.$format,r=>n(8,l=r));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(r=>{C(r,M[r])});const m=r=>new Date(r).getTime(),B=(r,c)=>(m(c)-m(r))/(1e3*60),D=()=>{const r=new Date;n(4,v=B(r,o)),n(5,S=B(r,u)),n(6,P=s(v))},f=r=>{const c={month:"long"};let p=new Date(r),k=new Intl.DateTimeFormat(g,c).format(p);return`${p.getDate()} ${k}, ${p.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${p.getUTCFullYear()}`},s=r=>{const c=(k,F)=>k+" "+l(F),p=k=>{const F=Math.floor(k);return F<10?`0${F}`:`${F}`};if(r<1440){const k=r/60,F=r%60,x=(F-Math.floor(F))*60;return[k,F,x].map(I=>p(I)).join(":")}return c(Math.ceil(r/(60*24)),"days")},_=()=>{let r=document.createElement("style");r.innerHTML=T,b.appendChild(r)},R=()=>{let r=new URL(y),c=document.createElement("style");fetch(r.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 r=setInterval(()=>{u&&o&&D()},1e3);return()=>clearInterval(r)});function j(r){t.binding_callbacks[r?"unshift":"push"](()=>{b=r,n(3,b)})}return i.$$set=r=>{"startdate"in r&&n(0,u=r.startdate),"enddate"in r&&n(1,o=r.enddate),"status"in r&&n(2,d=r.status),"lang"in r&&n(12,g=r.lang),"clientstyling"in r&&n(13,T=r.clientstyling),"clientstylingurl"in r&&n(14,y=r.clientstylingurl),"translationurl"in r&&n(15,h=r.translationurl)},i.$$.update=()=>{i.$$.dirty&19&&n(7,a=()=>{if(v<=0)return 100;const r=B(u,o),c=100/r;return Math.floor((r-v)*c)}),i.$$.dirty&19&&u&&o&&D()&&s(v),i.$$.dirty&4096&&g&&D(),i.$$.dirty&4112&&g&&s(v),i.$$.dirty&32768&&h&&w(),i.$$.dirty&8200&&b&&T&&_(),i.$$.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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsController-Cm5bXukc.cjs");function U(t,r){e.addMessages(t,r)}const q={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"}};function ie(t){e.append_styles(t,"svelte-1pdib0y","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function D(t,r,n){const i=t.slice();return i[50]=r[n],i[52]=n,i}function I(t){let r,n,i,d,m,p,_,s,y,w,f=e.ensure_array_like(t[1]),c=[];for(let a=0;a<f.length;a+=1)c[a]=W(D(t,f,a));return{c(){r=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),d=e.element("main"),m=e.element("div");for(let a=0;a<c.length;a+=1)c[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(m,"class","items"),e.attr(m,"part","items"),e.set_style(m,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[28].call(d)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(r,"class","TournamentsGamesSlider"),e.attr(r,"part","TournamentsGamesSlider")},m(a,b){e.insert(a,r,b),e.append(r,n),e.append(r,i),e.append(r,d),e.append(d,m);for(let o=0;o<c.length;o+=1)c[o]&&c[o].m(m,null);t[27](m),p=e.add_iframe_resize_listener(d,t[28].bind(d)),e.append(r,_),e.append(r,s),t[30](r),y||(w=[e.listen(n,"click",t[23]),e.listen(s,"click",t[29])],y=!0)},p(a,b){if(b[0]&256&&e.toggle_class(n,"disabled",a[8]),b[0]&23650){f=e.ensure_array_like(a[1]);let o;for(o=0;o<f.length;o+=1){const v=D(a,f,o);c[o]?c[o].p(v,b):(c[o]=W(v),c[o].c(),c[o].m(m,null))}for(;o<c.length;o+=1)c[o].d(1);c.length=f.length}b[0]&4&&e.set_style(m,"transform","translateX("+a[2]+"px)"),b[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(r),e.destroy_each(c,a),t[27](null),p(),t[30](null),y=!1,e.run_all(w)}}}function W(t){let r,n,i=t[10]("playNow")+"",d,m,p,_,s,y,w,f,c,a,b;function o(){return t[24](t[50])}function v(){return t[25](t[52])}return{c(){r=e.element("div"),n=e.element("span"),d=e.text(i),_=e.space(),s=e.element("img"),c=e.space(),e.attr(n,"class",m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":"")),e.src_url_equal(s.src,y=t[50].thumbnail)||e.attr(s,"src",y),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",w=t[50].name),e.attr(s,"title",f=t[50].name),e.attr(r,"class","item"),e.attr(r,"part","item")},m(u,h){e.insert(u,r,h),e.append(r,n),e.append(n,d),e.append(r,_),e.append(r,s),e.append(r,c),a||(b=[e.listen(r,"click",o),e.listen(r,"mouseenter",v),e.listen(r,"mouseleave",t[26])],a=!0)},p(u,h){t=u,h[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),h[0]&96&&m!==(m="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"class",m),h[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[52]?"itemHover":""))&&e.attr(n,"part",p),h[0]&2&&!e.src_url_equal(s.src,y=t[50].thumbnail)&&e.attr(s,"src",y),h[0]&2&&w!==(w=t[50].name)&&e.attr(s,"alt",w),h[0]&2&&f!==(f=t[50].name)&&e.attr(s,"title",f)},d(u){u&&e.detach(r),a=!1,e.run_all(b)}}}function oe(t){let r,n=t[1]&&t[1].length>0&&I(t);return{c(){r=e.element("div"),n&&n.c()},m(i,d){e.insert(i,r,d),n&&n.m(r,null),t[31](r)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=I(i),n.c(),n.m(r,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(r),n&&n.d(),t[31](null)}}}let ce=30;function ue(t,r,n){let i,d,m;e.component_subscribe(t,e.$format,l=>n(10,m=l));let{tournamenturl:p=""}=r,{scrollby:_="3"}=r,{pagfactor:s="175"}=r,{lang:y=""}=r,{translationurl:w=""}=r,{clientstyling:f=""}=r,{clientstylingurl:c=""}=r,a,b=window.navigator.userAgent,o,v=[],u=0,h,P=null,B=null,E=!1,L,T,M=0,N;const O=()=>{fetch(w).then(g=>g.json()).then(g=>{Object.keys(g).forEach(k=>{U(k,g[k])})}).catch(g=>{console.log(g)})};Object.keys(q).forEach(l=>{U(l,q[l])});const C=l=>{n(5,E=!0),n(6,L=l)},j=()=>{n(5,E=!1),n(6,L=-1)},R=l=>l.touches||l.originalEvent.touches,H=l=>{const g=R(l)[0];P=g.clientX,B=g.clientY},z=l=>{if(!P||!B)return;let g=l.touches[0].clientX,k=l.touches[0].clientY,S=P-g,se=B-k;Math.abs(S)>Math.abs(se)&&(S>0?F(1):F(-1)),P=null,B=null},F=l=>{l>0&&!d?(n(2,u-=o),n(2,u=u<M?M:u)):l<0&&!i&&(n(2,u+=o),n(2,u=u>0?0:u))},A=l=>{window.postMessage({type:"TournamentGameAction",gameId:l.id,name:l.name,launchUrl:l.launchUrl},window.location.href)},X=()=>{let l=new URL(p),g=new Headers;l.searchParams.append("expand","games"),l.searchParams.append("pagination",`games(limit=${ce},offset=${u})`),l.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),l.searchParams.append("language",y),l.searchParams.append("platform",e.getDevice(b)),fetch(l,{method:"GET",headers:g}).then(S=>S.json()).then(S=>{n(1,v=S.item.games.items),S.item.games.total})},J=()=>{h.addEventListener("touchstart",H,{passive:!0}),h.addEventListener("touchmove",z,{passive:!0})},Y=()=>{setTimeout(()=>{n(22,M=(T.scrollWidth-T.clientWidth)*-1),n(16,s=new String(T.scrollWidth/v.length)),o=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},x=()=>{let l=document.createElement("style");l.innerHTML=f,a.appendChild(l)},Z=()=>{let l=new URL(c),g=document.createElement("style");fetch(l.href).then(k=>k.text()).then(k=>{g.innerHTML=k,setTimeout(()=>{a.appendChild(g)},1),setTimeout(()=>{},500)})},K=()=>{N>0&&N<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(N/s).toString())};e.onMount(()=>(o=parseInt(_,10)*parseInt(s,10),()=>{h.removeEventListener("touchstart",H),h.removeEventListener("touchmove",z)}));const Q=()=>F(-1),V=l=>A(l),$=l=>C(l),ee=()=>j();function te(l){e.binding_callbacks[l?"unshift":"push"](()=>{T=l,n(7,T)})}function ne(){N=this.clientWidth,n(4,N)}const le=()=>F(1);function re(l){e.binding_callbacks[l?"unshift":"push"](()=>{h=l,n(3,h)})}function ae(l){e.binding_callbacks[l?"unshift":"push"](()=>{a=l,n(0,a)})}return t.$$set=l=>{"tournamenturl"in l&&n(17,p=l.tournamenturl),"scrollby"in l&&n(15,_=l.scrollby),"pagfactor"in l&&n(16,s=l.pagfactor),"lang"in l&&n(18,y=l.lang),"translationurl"in l&&n(19,w=l.translationurl),"clientstyling"in l&&n(20,f=l.clientstyling),"clientstylingurl"in l&&n(21,c=l.clientstylingurl)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=u===0),t.$$.dirty[0]&4194308&&n(9,d=u<=M),t.$$.dirty[0]&16&&N&&K(),t.$$.dirty[0]&131072&&p&&X(),t.$$.dirty[0]&8&&h&&J(),t.$$.dirty[0]&524288&&w&&O(),t.$$.dirty[0]&2&&v.length&&Y(),t.$$.dirty[0]&1048577&&f&&a&&x(),t.$$.dirty[0]&2097153&&c&&a&&Z()},n(2,u=0),[a,v,u,h,N,E,L,T,i,d,m,C,j,F,A,_,s,p,y,w,f,c,M,Q,V,$,ee,te,ne,le,re,ae]}class G extends e.SvelteComponent{constructor(r){super(),e.init(this,r,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(r){this.$$set({tournamenturl:r}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(r){this.$$set({scrollby:r}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(r){this.$$set({pagfactor:r}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(r){this.$$set({lang:r}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(r){this.$$set({translationurl:r}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(r){this.$$set({clientstyling:r}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(r){this.$$set({clientstylingurl:r}),e.flush()}}e.create_custom_element(G,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=G;
|
|
@@ -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-
|
|
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-DWC8EvgA.js";
|
|
2
2
|
function K(e, l) {
|
|
3
3
|
be(e, l);
|
|
4
4
|
}
|