@everymatrix/casino-tournaments-thumbnail-controller 1.74.7 → 1.74.8
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/{CasinoTournamentsThumbnail-BV_HKHsa.js → CasinoTournamentsThumbnail-CNPgQvV0.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-Box_x7vn.cjs → CasinoTournamentsThumbnail-CfBqkPCn.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-C07yb69l.js → CasinoTournamentsThumbnail-CnCLHIv_.js} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CJK-bZBz.cjs → CasinoTournamentsThumbnailController-CQtJyHC1.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-DhNzVbbl.js → CasinoTournamentsThumbnailController-CZVPhqBH.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-DrjNDxwm.js → CasinoTournamentsThumbnailController-Ct-VHs0N.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-C-O3qIx1.js → CasinoTournamentsThumbnailDuration-CS8jmM5s.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-kqQ3mWxN.cjs → CasinoTournamentsThumbnailDuration-Kwk-wnvw.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DkchneKK.js → CasinoTournamentsThumbnailDuration-OpBrRPKX.js} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-o4g4AiX-.cjs → CasinoTournamentsThumbnailGamesSlider-BASDzqjf.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-BaQQv4XQ.js → CasinoTournamentsThumbnailGamesSlider-BzUkX78G.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-CAUPsmYD.js → CasinoTournamentsThumbnailGamesSlider-CDvugALy.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-iLhyCZA8.js → CasinoTournamentsThumbnailPrizes-2LDrpS8P.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-CnBdAH4l.cjs → CasinoTournamentsThumbnailPrizes-CDP05-CJ.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DFhiQb9E.js → CasinoTournamentsThumbnailPrizes-StP6a3CF.js} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
|
@@ -16,4 +16,4 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
16
16
|
`,se.MISSING_INTL_API,a);var I=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0));_=h.options[I]||h.options.other}if(!_)throw new Et(h.value,c,Object.keys(h.options),a);o.push.apply(o,Se(_.value,t,r,n,i,c-(h.offset||0)));continue}}return ui(o)}function hi(e,t){return t?S(S(S({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=S(S({},e[n]),t[n]||{}),r},{})):e}function ci(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=hi(e[n],t[n]),r},S({},e)):e}function je(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function fi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Ee([void 0],r,!1)))},{cache:je(e.number),strategy:Ge.variadic}),getDateTimeFormat:Fe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Ee([void 0],r,!1)))},{cache:je(e.dateTime),strategy:Ge.variadic}),getPluralRules:Fe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Ee([void 0],r,!1)))},{cache:je(e.pluralRules),strategy:Ge.variadic})}}var mi=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=s.formatToParts(l);if(u.length===1)return u[0].value;var h=u.reduce(function(f,c){return!f.length||c.type!==D.literal||typeof f[f.length-1]!="string"?f.push(c.value):f[f.length-1]+=c.value,f},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return Se(s.ast,s.locales,s.formatters,s.formats,l,void 0,s.message)},this.resolvedOptions=function(){var l;return{locale:((l=s.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=nn(a,["formatters"]);this.ast=e.__parse(t,S(S({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ci(e.formats,n),this.formatters=i&&i.formatters||fi(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=si,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function di(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const z={},bi=(e,t,r)=>r&&(t in z||(z[t]={}),e in z[t]||(z[t][e]=r),r),lr=(e,t)=>{if(t==null)return;if(t in z&&e in z[t])return z[t][e];const r=Me(t);for(let n=0;n<r.length;n++){const i=r[n],s=pi(i,e);if(s)return bi(e,t,s)}};let it;const Z=Ie({});function gi(e){return it[e]||null}function hr(e){return e in it}function pi(e,t){if(!hr(e))return null;const r=gi(e);return di(r,t)}function yi(e){if(e==null)return;const t=Me(e);for(let r=0;r<t.length;r++){const n=t[r];if(hr(n))return n}}function st(e,...t){delete z[e],Z.update(r=>(r[e]=Sn.all([r[e]||{},...t]),r))}le([Z],([e])=>Object.keys(e));Z.subscribe(e=>it=e);const Te={};function _i(e,t){Te[e].delete(t),Te[e].size===0&&delete Te[e]}function cr(e){return Te[e]}function vi(e){return Me(e).map(t=>{const r=cr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ke(e){return e==null?!1:Me(e).some(t=>{var r;return(r=cr(t))==null?void 0:r.size})}function xi(e,t){return Promise.all(t.map(n=>(_i(e,n),n().then(i=>i.default||i)))).then(n=>st(e,...n))}const fe={};function fr(e){if(!Ke(e))return e in fe?fe[e]:Promise.resolve();const t=vi(e);return fe[e]=Promise.all(t.map(([r,n])=>xi(r,n))).then(()=>{if(Ke(e))return fr(e);delete fe[e]}),fe[e]}const Ei={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Si={fallbackLocale:null,loadingDelay:200,formats:Ei,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Ti=Si;function ae(){return Ti}const Ve=Ie(!1);var Ai=Object.defineProperty,Hi=Object.defineProperties,Ci=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Bi=Object.prototype.propertyIsEnumerable,Tt=(e,t,r)=>t in e?Ai(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ii=(e,t)=>{for(var r in t||(t={}))wi.call(t,r)&&Tt(e,r,t[r]);if(St)for(var r of St(t))Bi.call(t,r)&&Tt(e,r,t[r]);return e},Ni=(e,t)=>Hi(e,Ci(t));let et;const we=Ie(null);function At(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Me(e,t=ae().fallbackLocale){const r=At(e);return t?[...new Set([...r,...At(t)])]:r}function q(){return et!=null?et:void 0}we.subscribe(e=>{et=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Mi=e=>{if(e&&yi(e)&&Ke(e)){const{loadingDelay:t}=ae();let r;return typeof window!="undefined"&&q()!=null&&t?r=window.setTimeout(()=>Ve.set(!0),t):Ve.set(!0),fr(e).then(()=>{we.set(e)}).finally(()=>{clearTimeout(r),Ve.set(!1)})}return we.set(e)},j=Ni(Ii({},we),{set:Mi}),Oe=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Oi=Object.defineProperty,Be=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,Ht=(e,t,r)=>t in e?Oi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,at=(e,t)=>{for(var r in t||(t={}))mr.call(t,r)&&Ht(e,r,t[r]);if(Be)for(var r of Be(t))dr.call(t,r)&&Ht(e,r,t[r]);return e},he=(e,t)=>{var r={};for(var n in e)mr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Be)for(var n of Be(e))t.indexOf(n)<0&&dr.call(e,n)&&(r[n]=e[n]);return r};const ge=(e,t)=>{const{formats:r}=ae();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Pi=Oe(e=>{var t=e,{locale:r,format:n}=t,i=he(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=ge("number",n)),new Intl.NumberFormat(r,i)}),Li=Oe(e=>{var t=e,{locale:r,format:n}=t,i=he(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=ge("date",n):Object.keys(i).length===0&&(i=ge("date","short")),new Intl.DateTimeFormat(r,i)}),Ri=Oe(e=>{var t=e,{locale:r,format:n}=t,i=he(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=ge("time",n):Object.keys(i).length===0&&(i=ge("time","short")),new Intl.DateTimeFormat(r,i)}),Di=(e={})=>{var t=e,{locale:r=q()}=t,n=he(t,["locale"]);return Pi(at({locale:r},n))},ki=(e={})=>{var t=e,{locale:r=q()}=t,n=he(t,["locale"]);return Li(at({locale:r},n))},Ui=(e={})=>{var t=e,{locale:r=q()}=t,n=he(t,["locale"]);return Ri(at({locale:r},n))},Fi=Oe((e,t=q())=>new mi(e,t,ae().formats,{ignoreTag:ae().ignoreTag})),Gi=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=q(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=lr(e,l);if(!h)h=(s=(i=(n=(r=ae()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?i:u)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let f=h;try{f=Fi(h,l).format(o)}catch(c){c instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,c.message)}return f},$i=(e,t)=>Ui(t).format(e),ji=(e,t)=>ki(t).format(e),Vi=(e,t)=>Di(t).format(e),zi=(e,t=q())=>lr(e,t),br=le([j,Z],()=>Gi);le([j],()=>$i);le([j],()=>ji);le([j],()=>Vi);le([j,Z],()=>zi);function gr(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function pr(e,t){const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const i=document.createElement("style");i.innerHTML=n,e&&e.appendChild(i)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function yr(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Ji({withLocale:e,translations:t}){j.subscribe(r=>{r==null&&(Z.set(t),j.set(e))})}function Ct(e,t){st(e,t)}function Wi(e){j.set(e)}const wt={en:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function Xi(e){Ut(e,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function Bt(e){let t,r,n;return{c(){t=w("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',r=$(),n=w("div"),n.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',b(t,"class","Skeleton CardImg"),b(n,"class","Details"),b(n,"part","Details")},m(i,s){M(i,t,s),M(i,r,s),M(i,n,s)},d(i){i&&(B(t),B(r),B(n))}}}function It(e){let t,r,n,i,s,a,o,l,u,h,f=e[0]&&Nt(e),c=e[6]=="true"&&Mt(e);function E(d,_){return d[3]?qi:Zi}let x=E(e),g=x(e),y=e[2]&&Pt(e),T=e[11]&&Lt(e);return{c(){f&&f.c(),t=$(),c&&c.c(),r=$(),g.c(),n=$(),i=w("div"),s=w("div"),a=R(e[1]),o=$(),y&&y.c(),l=$(),T&&T.c(),b(s,"class","Title"),b(s,"part","Title"),b(i,"class","Details"),b(i,"part","Details")},m(d,_){f&&f.m(d,_),M(d,t,_),c&&c.m(d,_),M(d,r,_),g.m(d,_),M(d,n,_),M(d,i,_),A(i,s),A(s,a),A(i,o),y&&y.m(i,null),A(i,l),T&&T.m(i,null),u||(h=X(s,"click",e[20]),u=!0)},p(d,_){d[0]?f?f.p(d,_):(f=Nt(d),f.c(),f.m(t.parentNode,t)):f&&(f.d(1),f=null),d[6]=="true"?c?c.p(d,_):(c=Mt(d),c.c(),c.m(r.parentNode,r)):c&&(c.d(1),c=null),x===(x=E(d))&&g?g.p(d,_):(g.d(1),g=x(d),g&&(g.c(),g.m(n.parentNode,n))),_[0]&2&&G(a,d[1]),d[2]?y?y.p(d,_):(y=Pt(d),y.c(),y.m(i,l)):y&&(y.d(1),y=null),d[11]?T?T.p(d,_):(T=Lt(d),T.c(),T.m(i,null)):T&&(T.d(1),T=null)},d(d){d&&(B(t),B(r),B(n),B(i)),f&&f.d(d),c&&c.d(d),g.d(d),y&&y.d(),T&&T.d(),u=!1,h()}}}function Nt(e){let t,r,n,i,s,a;return{c(){t=w("div"),r=R(e[12]),b(t,"class",n="Status "+e[14]),b(t,"part",i="Status "+e[14])},m(o,l){M(o,t,l),A(t,r),s||(a=ue(e[17].call(null,t)),s=!0)},p(o,l){l[0]&4096&&G(r,o[12]),l[0]&16384&&n!==(n="Status "+o[14])&&b(t,"class",n),l[0]&16384&&i!==(i="Status "+o[14])&&b(t,"part",i)},d(o){o&&B(t),s=!1,a()}}}function Mt(e){let t,r=e[4]&&Ot(e);return{c(){r&&r.c(),t=Ft()},m(n,i){r&&r.m(n,i),M(n,t,i)},p(n,i){n[4]?r?r.p(n,i):(r=Ot(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&B(t),r&&r.d(n)}}}function Ot(e){let t,r=e[15]("enrolled")+"",n;return{c(){t=w("div"),n=R(r),b(t,"class","Enrolled"),b(t,"part","Enrolled")},m(i,s){M(i,t,s),A(t,n)},p(i,s){s[0]&32768&&r!==(r=i[15]("enrolled")+"")&&G(n,r)},d(i){i&&B(t)}}}function Zi(e){let t,r,n,i,s,a,o;return{c(){t=w("div"),r=w("ui-image"),Ae(r.src,n="https://i.stack.imgur.com/y9DpT.jpg")||W(r,"src",n),W(r,"alt","icon"),b(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),b(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){M(l,t,u),A(t,r),a||(o=[ue(e[17].call(null,t)),X(t,"click",e[20])],a=!0)},p(l,u){u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&b(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&b(t,"part",s)},d(l){l&&B(t),a=!1,V(o)}}}function qi(e){let t,r,n,i,s,a,o;return{c(){t=w("div"),r=w("ui-image"),W(r,"class","UIImage"),Ae(r.src,n=e[3])||W(r,"src",n),W(r,"alt","icon"),b(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),b(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){M(l,t,u),A(t,r),a||(o=[ue(e[17].call(null,t)),X(t,"click",e[20])],a=!0)},p(l,u){u[0]&8&&!Ae(r.src,n=l[3])&&W(r,"src",n),u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&b(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&b(t,"part",s)},d(l){l&&B(t),a=!1,V(o)}}}function Pt(e){let t,r,n,i,s;return{c(){t=w("div"),r=R(e[10]),b(t,"class","Date"),b(t,"part","Date")},m(a,o){M(a,t,o),A(t,r),i||(s=ue(n=e[16].call(null,t,e[2])),i=!0)},p(a,o){o[0]&1024&&G(r,a[10]),n&&oe(n.update)&&o[0]&4&&n.update.call(null,a[2])},d(a){a&&B(t),i=!1,s()}}}function Lt(e){let t,r,n=e[15]("scoreCriteria")+"",i,s,a,o,l,u=e[15]("minbet")+"",h,f,c,E,x,g,y,T=e[15]("seegames")+"",d,_,I,P=e[15]("here")+"",k,L,Q,J;return{c(){t=w("div"),r=w("p"),i=R(n),s=R(`:
|
|
17
17
|
|
|
18
18
|
`),a=w("span"),o=R(e[13]),l=R(`
|
|
19
|
-
(`),h=R(u),f=$(),c=R(e[5]),E=R(")"),x=$(),g=w("div"),y=w("p"),d=R(T),_=$(),I=w("a"),k=R(P),b(a,"part","ScoreCriteriaSpan"),b(r,"part","ScoreCriteriaP"),b(t,"class","ScoreCriteria"),b(t,"part","ScoreCriteria"),b(I,"part","GamesAnchor"),b(I,"href",e[7]),b(I,"target",L=e[8]==="true"?"_self":"_blank"),b(y,"part","GamesP"),b(g,"class","Games"),b(g,"part","Games")},m(N,O){M(N,t,O),A(t,r),A(r,i),A(r,s),A(r,a),A(a,o),A(r,l),A(r,h),A(r,f),A(r,c),A(r,E),M(N,x,O),M(N,g,O),A(g,y),A(y,d),A(y,_),A(y,I),A(I,k),Q||(J=[ue(e[18].call(null,a)),X(I,"click",e[19])],Q=!0)},p(N,O){O[0]&32768&&n!==(n=N[15]("scoreCriteria")+"")&&G(i,n),O[0]&8192&&G(o,N[13]),O[0]&32768&&u!==(u=N[15]("minbet")+"")&&G(h,u),O[0]&32&&G(c,N[5]),O[0]&32768&&T!==(T=N[15]("seegames")+"")&&G(d,T),O[0]&32768&&P!==(P=N[15]("here")+"")&&G(k,P),O[0]&128&&b(I,"href",N[7]),O[0]&256&&L!==(L=N[8]==="true"?"_self":"_blank")&&b(I,"target",L)},d(N){N&&(B(t),B(x),B(g)),Q=!1,V(J)}}}function Qi(e){let t,r,n,i=e[1]==="undefined"&&Bt(),s=e[1]!=="undefined"&&It(e);return{c(){t=w("div"),i&&i.c(),r=$(),s&&s.c(),b(t,"class",n=`Thumbnail ${e[1]==="undefined"?"Loading":""}`),b(t,"part","Thumbnail")},m(a,o){M(a,t,o),i&&i.m(t,null),A(t,r),s&&s.m(t,null),e[31](t)},p(a,o){a[1]==="undefined"?i||(i=Bt(),i.c(),i.m(t,r)):i&&(i.d(1),i=null),a[1]!=="undefined"?s?s.p(a,o):(s=It(a),s.c(),s.m(t,null)):s&&(s.d(1),s=null),o[0]&2&&n!==(n=`Thumbnail ${a[1]==="undefined"?"Loading":""}`)&&b(t,"class",n)},i:U,o:U,d(a){a&&B(t),i&&i.d(),s&&s.d(),e[31](null)}}}function Yi(e,t,r){let n;kt(e,br,m=>r(15,n=m));let{session:i=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:o=""}=t,{status:l=""}=t,{tourid:u=""}=t,{thumbnail:h=""}=t,{userenrolled:f=""}=t,{scorecriteria:c=""}=t,{minbetcount:E=""}=t,{showenrolled:x="false"}=t,{detailsevent:g=""}=t,{gameurl:y=""}=t,{lang:T="en"}=t,{keepbrowsercontext:d="false"}=t,{clientstyling:_=""}=t,{clientstylingurl:I=""}=t,{translationurl:P=""}=t,{mbsource:k}=t,L,Q="",J=!1,N="",O="",ce="";Ji({withLocale:"en",translations:{}});const vr=()=>{fetch(P).then(m=>m.json()).then(m=>{Object.keys(m).forEach(Y=>{Ct(Y,m[Y])}),o&&De()}).catch(m=>{console.log(m)})};Object.keys(wt).forEach(m=>{Ct(m,wt[m])});const ot=m=>{m.data&&(m.data&&m.data.type=="SessionID"&&r(11,J=!0),m.data.type==`TournamentStatus_${u}`&&r(0,l=m.data.status))},Pe=()=>{const m={month:"long"};let Y=new Date(o),Ar=new Intl.DateTimeFormat("en",m).format(Y),Hr=Y.getDate(),Cr=Y.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const wr=()=>n(l==="Running"?"startedAt":"startingAt");r(10,Q=`${Hr} `+n(`${Ar}`)+", "+wr()+` ${Cr}`)},Le=()=>{l=="Unstarted"&&(r(12,N=n("scheduled")),r(14,ce="StatusUnstarted")),l=="Running"&&(r(12,N=n("ongoing")),r(14,ce="StatusRunning")),(l=="Closed"||l=="Closing")&&r(12,N=n("finished")),l=="Closed"&&r(14,ce="StatusClosed"),l=="Closing"&&r(14,ce="StatusClosing")},Re=()=>{c=="BetCount"&&r(13,O=n("betCount")),c=="MaxWinStakeRatio"&&r(13,O=n("maxWinStakeRatio")),c=="WinStakeRatio"&&r(13,O=n("winStakeRatio")),c=="Stake"&&r(13,O=n("stake"))},xr=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:u},window.location.href)},Er=()=>{g&&window.postMessage({type:g,
|
|
19
|
+
(`),h=R(u),f=$(),c=R(e[5]),E=R(")"),x=$(),g=w("div"),y=w("p"),d=R(T),_=$(),I=w("a"),k=R(P),b(a,"part","ScoreCriteriaSpan"),b(r,"part","ScoreCriteriaP"),b(t,"class","ScoreCriteria"),b(t,"part","ScoreCriteria"),b(I,"part","GamesAnchor"),b(I,"href",e[7]),b(I,"target",L=e[8]==="true"?"_self":"_blank"),b(y,"part","GamesP"),b(g,"class","Games"),b(g,"part","Games")},m(N,O){M(N,t,O),A(t,r),A(r,i),A(r,s),A(r,a),A(a,o),A(r,l),A(r,h),A(r,f),A(r,c),A(r,E),M(N,x,O),M(N,g,O),A(g,y),A(y,d),A(y,_),A(y,I),A(I,k),Q||(J=[ue(e[18].call(null,a)),X(I,"click",e[19])],Q=!0)},p(N,O){O[0]&32768&&n!==(n=N[15]("scoreCriteria")+"")&&G(i,n),O[0]&8192&&G(o,N[13]),O[0]&32768&&u!==(u=N[15]("minbet")+"")&&G(h,u),O[0]&32&&G(c,N[5]),O[0]&32768&&T!==(T=N[15]("seegames")+"")&&G(d,T),O[0]&32768&&P!==(P=N[15]("here")+"")&&G(k,P),O[0]&128&&b(I,"href",N[7]),O[0]&256&&L!==(L=N[8]==="true"?"_self":"_blank")&&b(I,"target",L)},d(N){N&&(B(t),B(x),B(g)),Q=!1,V(J)}}}function Qi(e){let t,r,n,i=e[1]==="undefined"&&Bt(),s=e[1]!=="undefined"&&It(e);return{c(){t=w("div"),i&&i.c(),r=$(),s&&s.c(),b(t,"class",n=`Thumbnail ${e[1]==="undefined"?"Loading":""}`),b(t,"part","Thumbnail")},m(a,o){M(a,t,o),i&&i.m(t,null),A(t,r),s&&s.m(t,null),e[31](t)},p(a,o){a[1]==="undefined"?i||(i=Bt(),i.c(),i.m(t,r)):i&&(i.d(1),i=null),a[1]!=="undefined"?s?s.p(a,o):(s=It(a),s.c(),s.m(t,null)):s&&(s.d(1),s=null),o[0]&2&&n!==(n=`Thumbnail ${a[1]==="undefined"?"Loading":""}`)&&b(t,"class",n)},i:U,o:U,d(a){a&&B(t),i&&i.d(),s&&s.d(),e[31](null)}}}function Yi(e,t,r){let n;kt(e,br,m=>r(15,n=m));let{session:i=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:o=""}=t,{status:l=""}=t,{tourid:u=""}=t,{thumbnail:h=""}=t,{userenrolled:f=""}=t,{scorecriteria:c=""}=t,{minbetcount:E=""}=t,{showenrolled:x="false"}=t,{detailsevent:g=""}=t,{gameurl:y=""}=t,{lang:T="en"}=t,{keepbrowsercontext:d="false"}=t,{clientstyling:_=""}=t,{clientstylingurl:I=""}=t,{translationurl:P=""}=t,{mbsource:k}=t,L,Q="",J=!1,N="",O="",ce="";Ji({withLocale:"en",translations:{}});const vr=()=>{fetch(P).then(m=>m.json()).then(m=>{Object.keys(m).forEach(Y=>{Ct(Y,m[Y])}),o&&De()}).catch(m=>{console.log(m)})};Object.keys(wt).forEach(m=>{Ct(m,wt[m])});const ot=m=>{m.data&&(m.data&&m.data.type=="SessionID"&&r(11,J=!0),m.data.type==`TournamentStatus_${u}`&&r(0,l=m.data.status))},Pe=()=>{const m={month:"long"};let Y=new Date(o),Ar=new Intl.DateTimeFormat("en",m).format(Y),Hr=Y.getDate(),Cr=Y.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const wr=()=>n(l==="Running"?"startedAt":"startingAt");r(10,Q=`${Hr} `+n(`${Ar}`)+", "+wr()+` ${Cr}`)},Le=()=>{l=="Unstarted"&&(r(12,N=n("scheduled")),r(14,ce="StatusUnstarted")),l=="Running"&&(r(12,N=n("ongoing")),r(14,ce="StatusRunning")),(l=="Closed"||l=="Closing")&&r(12,N=n("finished")),l=="Closed"&&r(14,ce="StatusClosed"),l=="Closing"&&r(14,ce="StatusClosing")},Re=()=>{c=="BetCount"&&r(13,O=n("betCount")),c=="MaxWinStakeRatio"&&r(13,O=n("maxWinStakeRatio")),c=="WinStakeRatio"&&r(13,O=n("winStakeRatio")),c=="Stake"&&r(13,O=n("stake"))},xr=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:u},window.location.href)},Er=()=>{g&&window.postMessage({type:g,tournamentId:u,showLeaderboard:!0},window.location.href)},Sr=()=>{i.length>0&&i!="false"?r(11,J=!0):r(11,J=!1)};Gt(()=>(setTimeout(()=>De(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ot,!1),()=>{window.removeEventListener("message",ot)}));const De=()=>{Wi(T),Re(),Le(),o&&Pe()};function Tr(m){He[m?"unshift":"push"](()=>{L=m,r(9,L)})}return e.$$set=m=>{"session"in m&&r(21,i=m.session),"userid"in m&&r(22,s=m.userid),"title"in m&&r(1,a=m.title),"startdate"in m&&r(2,o=m.startdate),"status"in m&&r(0,l=m.status),"tourid"in m&&r(23,u=m.tourid),"thumbnail"in m&&r(3,h=m.thumbnail),"userenrolled"in m&&r(4,f=m.userenrolled),"scorecriteria"in m&&r(24,c=m.scorecriteria),"minbetcount"in m&&r(5,E=m.minbetcount),"showenrolled"in m&&r(6,x=m.showenrolled),"detailsevent"in m&&r(25,g=m.detailsevent),"gameurl"in m&&r(7,y=m.gameurl),"lang"in m&&r(26,T=m.lang),"keepbrowsercontext"in m&&r(8,d=m.keepbrowsercontext),"clientstyling"in m&&r(27,_=m.clientstyling),"clientstylingurl"in m&&r(28,I=m.clientstylingurl),"translationurl"in m&&r(29,P=m.translationurl),"mbsource"in m&&r(30,k=m.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&134218240&&_&&L&&gr(L,_),e.$$.dirty[0]&268435968&&I&&L&&pr(L,I),e.$$.dirty[0]&1073742336&&k&&L&&yr(L,`${k}.Style`),e.$$.dirty[0]&536870912&&P&&vr(),e.$$.dirty[0]&2097152&&i&&Sr(),e.$$.dirty[0]&1&&l&&Le(),e.$$.dirty[0]&67108866&&a&&T&&De(),e.$$.dirty[0]&4&&o&&Pe(),e.$$.dirty[0]&16777216&&c&&Re()},[l,a,o,h,f,E,x,y,d,L,Q,J,N,O,ce,n,Pe,Le,Re,xr,Er,i,s,u,c,g,T,_,I,P,k,Tr]}class _r extends zt{constructor(t){super(),$t(this,t,Yi,Qi,tt,{session:21,userid:22,title:1,startdate:2,status:0,tourid:23,thumbnail:3,userenrolled:4,scorecriteria:24,minbetcount:5,showenrolled:6,detailsevent:25,gameurl:7,lang:26,keepbrowsercontext:8,clientstyling:27,clientstylingurl:28,translationurl:29,mbsource:30},Xi,[-1,-1])}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),C()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),C()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),C()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),C()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),C()}get tourid(){return this.$$.ctx[23]}set tourid(t){this.$$set({tourid:t}),C()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),C()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),C()}get scorecriteria(){return this.$$.ctx[24]}set scorecriteria(t){this.$$set({scorecriteria:t}),C()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),C()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),C()}get detailsevent(){return this.$$.ctx[25]}set detailsevent(t){this.$$set({detailsevent:t}),C()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),C()}get lang(){return this.$$.ctx[26]}set lang(t){this.$$set({lang:t}),C()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),C()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),C()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),C()}get translationurl(){return this.$$.ctx[29]}set translationurl(t){this.$$set({translationurl:t}),C()}get mbsource(){return this.$$.ctx[30]}set mbsource(t){this.$$set({mbsource:t}),C()}}Vt(_r,{session:{},userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const Ki=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Z;exports.$format=br;exports.$locale=j;exports.CasinoTournamentsThumbnail_ce=Ki;exports.SvelteComponent=zt;exports.__extends=pe;exports.__read=an;exports.__spreadArray=Ee;exports.__values=sn;exports.action_destroyer=ue;exports.addMessages=st;exports.add_iframe_resize_listener=$r;exports.add_render_callback=Ce;exports.append=A;exports.append_styles=Ut;exports.attr=b;exports.binding_callbacks=He;exports.component_subscribe=kt;exports.create_custom_element=Vt;exports.destroy_each=Dr;exports.detach=B;exports.element=w;exports.empty=Ft;exports.ensure_array_like=Yr;exports.flush=C;exports.init=$t;exports.insert=M;exports.is_function=oe;exports.listen=X;exports.noop=U;exports.onMount=Gt;exports.run_all=V;exports.safe_not_equal=tt;exports.setClientStyling=gr;exports.setClientStylingURL=pr;exports.setStreamStyling=yr;exports.set_custom_element_data=W;exports.set_data=G;exports.set_style=Fr;exports.space=$;exports.src_url_equal=Ae;exports.svg_element=kr;exports.text=R;exports.toggle_class=jr;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var Q=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{l(e.next(c))}catch(p){o(p)}},a=c=>{try{l(e.throw(c))}catch(p){o(p)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);l((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";var Q=(i,t,e)=>new Promise((r,o)=>{var s=c=>{try{l(e.next(c))}catch(p){o(p)}},a=c=>{try{l(e.throw(c))}catch(p){o(p)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,a);l((e=e.apply(i,t)).next())});const n=require("./CasinoTournamentsThumbnail-CfBqkPCn.cjs");function T(i){return typeof i=="function"}function Le(i){var t=function(r){Error.call(r),r.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var $=Le(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(r,o){return o+1+") "+r.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var q=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=n.__values(a),c=l.next();!c.done;c=l.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(T(h))try{h()}catch(_){s=_ instanceof $?_.errors:[_]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=n.__values(d),g=f.next();!g.done;g=f.next()){var m=g.value;try{ve(m)}catch(_){s=s!=null?s:[],_ instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(_.errors)):s.push(_)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(s)throw new $(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ie=q.EMPTY;function Me(i){return i instanceof q||i&&"closed"in i&&T(i.remove)&&T(i.add)&&T(i.unsubscribe)}function ve(i){T(i)?i():i.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,n.__spreadArray([i,t],n.__read(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function nt(i){tt.setTimeout(function(){throw i})}function ke(){}function W(i){i()}var Ue=function(i){n.__extends(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Me(e)&&e.add(r)):r.destination=st,r}return t.create=function(e,r,o){return new ne(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(q),rt=Function.prototype.bind;function ee(i,t){return rt.call(i,t)}var it=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){H(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){H(r)}else H(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},i}(),ne=function(i){n.__extends(t,i);function t(e,r,o){var s=i.call(this)||this,a;if(T(e)||!e)a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var l;s&&Re.useDeprecatedNextContext?(l=Object.create(e),l.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,l),error:e.error&&ee(e.error,l),complete:e.complete&&ee(e.complete,l)}):a=e}return s.destination=new it(a),s}return t}(Ue);function H(i){nt(i)}function ot(i){throw i}var st={closed:!0,next:ke,error:ot,complete:ke},at=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function lt(i){return i}function ut(i){return i.length===0?lt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Te=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=dt(t)?t:new ne(t,e,r);return W(function(){var a=o,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Se(e),new e(function(o,s){var a=new ne({next:function(l){try{t(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[at]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ut(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Se(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Se(i){var t;return(t=i!=null?i:Re.Promise)!==null&&t!==void 0?t:Promise}function ct(i){return i&&T(i.next)&&T(i.error)&&T(i.complete)}function dt(i){return i&&i instanceof Ue||ct(i)&&Me(i)}var ft=Le(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Je=function(i){n.__extends(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Fe(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ft},t.prototype.next=function(e){var r=this;W(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=n.__values(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(e)}}catch(p){o={error:p}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;W(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Ie:(this.currentObservers=null,l.push(e),new q(function(){r.currentObservers=null,te(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Te;return e.source=this,e},t.create=function(e,r){return new Fe(e,r)},t}(Te),Fe=function(i){n.__extends(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ie},t}(Je),He={now:function(){return(He.delegate||Date).now()},delegate:void 0},mt=function(i){n.__extends(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=He);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,l=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(l.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),c=0;c<l.length&&!e.closed;c+=s?1:2)e.next(l[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,l=(a?1:2)*r;if(r<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Je);const Ee=[],je={},ht=(i,t=0)=>{if(Ee.indexOf(i)==-1){const e=new mt(t);je[i]=e,Ee.push(i)}return je[i]};window.emWidgets={topic:ht};const re=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function ze(i,t){n.addMessages(i,t)}function _t(i){n.$locale.set(i)}const Pe={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 i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-Box_x7vn.cjs")).then(t=>t.CasinoTournamentsThumbnail_ce).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-kqQ3mWxN.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CnBdAH4l.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-o4g4AiX-.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function gt(i){n.append_styles(i,"svelte-chi6uq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.Skeleton{width:100%}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 bt(i){let t,e,r,o,s,a,l,c=i[26]&&Ce(i);function p(m,_){if(!m[16])return kt;if(m[25]!="Closed"&&m[25]!="Closing")return vt;if(m[3]=="true")return yt}let h=p(i),d=h&&h(i),f=(i[19]||i[21])&&De(i),g=i[4]=="true"&&Ae(i);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),r=n.space(),o=n.element("div"),d&&d.c(),s=n.space(),f&&f.c(),a=n.space(),g&&g.c(),l=n.empty(),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"status",i[25]),n.set_custom_element_data(e,"startdate",i[23]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"enddate",i[24]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,r,_),n.insert(m,o,_),d&&d.m(o,null),n.insert(m,s,_),f&&f.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,l,_)},p(m,_){m[26]?c?c.p(m,_):(c=Ce(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&2048&&n.set_custom_element_data(e,"clientstyling",m[11]),_[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",m[12]),_[0]&8192&&n.set_custom_element_data(e,"translationurl",m[13]),_[0]&33554432&&n.set_custom_element_data(e,"status",m[25]),_[0]&8388608&&n.set_custom_element_data(e,"startdate",m[23]),_[0]&256&&n.set_custom_element_data(e,"lang",m[8]),_[0]&16384&&n.set_custom_element_data(e,"mbsource",m[14]),_[0]&16777216&&n.set_custom_element_data(e,"enddate",m[24]),h===(h=p(m))&&d?d.p(m,_):(d&&d.d(1),d=h&&h(m),d&&(d.c(),d.m(o,null))),m[19]||m[21]?f?f.p(m,_):(f=De(m),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null),m[4]=="true"?g?g.p(m,_):(g=Ae(m),g.c(),g.m(l.parentNode,l)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(r),n.detach(o),n.detach(s),n.detach(a),n.detach(l)),c&&c.d(m),d&&d.d(),f&&f.d(m),g&&g.d(m)}}}function wt(i){let t,e,r;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),r=n.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(r,"class","TournamentButtons"),n.attr(r,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,r,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(r))}}}function Ce(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[26]),n.set_custom_element_data(t,"clientstyling",i[11]),n.set_custom_element_data(t,"clientstylingurl",i[12]),n.set_custom_element_data(t,"mbsource",i[14]),n.set_custom_element_data(t,"translationurl",i[13]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[39].call(null,t,i[26])),r=!0)},p(s,a){a[0]&67108864&&n.set_custom_element_data(t,"tourid",s[26]),a[0]&2048&&n.set_custom_element_data(t,"clientstyling",s[11]),a[0]&4096&&n.set_custom_element_data(t,"clientstylingurl",s[12]),a[0]&16384&&n.set_custom_element_data(t,"mbsource",s[14]),a[0]&8192&&n.set_custom_element_data(t,"translationurl",s[13]),e&&n.is_function(e.update)&&a[0]&67108864&&e.update.call(null,s[26])},d(s){s&&n.detach(t),r=!1,o()}}}function yt(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,l){i=a,l[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function vt(i){let t,e,r=i[3]=="true"&&Be(i);function o(l,c){return l[28]?St:Tt}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(l,c){r&&r.m(l,c),n.insert(l,t,c),a.m(l,c),n.insert(l,e,c)},p(l,c){l[3]=="true"?r?r.p(l,c):(r=Be(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&(n.detach(t),n.detach(e)),r&&r.d(l),a.d(l)}}}function kt(i){let t,e=i[34]("login")+"",r,o,s,a=i[34]("register")+"",l,c,p;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),l=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,d){n.insert(h,t,d),n.append(t,r),n.insert(h,o,d),n.insert(h,s,d),n.append(s,l),c||(p=[n.listen(t,"click",i[35]),n.listen(s,"click",i[36])],c=!0)},p(h,d){d[1]&8&&e!==(e=h[34]("login")+"")&&n.set_data(r,e),d[1]&8&&a!==(a=h[34]("register")+"")&&n.set_data(l,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Be(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,l){i=a,l[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Tt(i){let t,e,r,o,s;function a(p,h){return p[18]==!0?Et:Ft}let l=a(i),c=l(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[19]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",i[48]),o=!0)},p(p,h){l===(l=a(p))&&c?c.p(p,h):(c.d(1),c=l(p),c&&(c.c(),c.m(t,null))),h[0]&128&&e!==(e="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&128&&r!==(r="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),h[0]&524288&&(t.disabled=p[19])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function St(i){let t,e=i[3]=="true"&&xe(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=xe(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Ft(i){let t,e=i[34]("join")+"",r,o,s,a,l,c,p,h;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(d,f){n.insert(d,t,f),n.append(t,r),n.insert(d,o,f),n.insert(d,s,f),n.append(s,a),n.append(a,l),n.append(l,c),n.append(s,p),n.append(p,h)},p(d,f){f[1]&8&&e!==(e=d[34]("join")+"")&&n.set_data(r,e)},d(d){d&&(n.detach(t),n.detach(o),n.detach(s))}}}function Et(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function xe(i){let t,e=i[34]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&8&&e!==(e=o[34]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function De(i){let t,e=i[34]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[20]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,l){n.insert(a,t,l),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,l){l[1]&8&&e!==(e=a[34]("joinerror")+"")&&n.set_data(r,e),l[0]&1048576&&n.set_data(s,a[20])},d(a){a&&n.detach(t)}}}function Ae(i){let t,e,r=i[17]&&Oe();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[17]?r||(r=Oe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&2048&&n.set_custom_element_data(e,"clientstyling",o[11]),s[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",o[12]),s[0]&8192&&n.set_custom_element_data(e,"translationurl",o[13]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&16384&&n.set_custom_element_data(e,"mbsource",o[14]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Oe(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function jt(i){let t,e,r,o,s,a,l;function c(d,f){return d[17]?wt:bt}let p=c(i),h=p(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"detailsevent",i[9]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[22]),n.set_custom_element_data(r,"status",i[25]),n.set_custom_element_data(r,"startdate",i[23]),n.set_custom_element_data(r,"tourid",i[26]),n.set_custom_element_data(r,"scorecriteria",i[29]),n.set_custom_element_data(r,"minbetcount",i[30]),n.set_custom_element_data(r,"thumbnail",i[27]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[32]),n.set_custom_element_data(r,"mbsource",i[14]),n.set_custom_element_data(r,"userenrolled",i[28]),n.set_custom_element_data(r,"clientstyling",i[11]),n.set_custom_element_data(r,"clientstylingurl",i[12]),n.set_custom_element_data(r,"translationurl",i[13]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[10]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",l=`${i[17]?"Loading":""}`)},m(d,f){n.insert(d,t,f),n.append(t,e),n.append(e,r),n.append(e,o),h.m(e,null),i[49](t)},p(d,f){f[0]&1&&n.set_custom_element_data(r,"session",d[0]),f[0]&512&&n.set_custom_element_data(r,"detailsevent",d[9]),f[0]&2&&n.set_custom_element_data(r,"userid",d[1]),f[0]&4194304&&n.set_custom_element_data(r,"title",d[22]),f[0]&33554432&&n.set_custom_element_data(r,"status",d[25]),f[0]&8388608&&n.set_custom_element_data(r,"startdate",d[23]),f[0]&67108864&&n.set_custom_element_data(r,"tourid",d[26]),f[0]&536870912&&n.set_custom_element_data(r,"scorecriteria",d[29]),f[0]&1073741824&&n.set_custom_element_data(r,"minbetcount",d[30]),f[0]&134217728&&n.set_custom_element_data(r,"thumbnail",d[27]),f[0]&32&&n.set_custom_element_data(r,"showenrolled",d[5]),f[1]&2&&n.set_custom_element_data(r,"gameurl",d[32]),f[0]&16384&&n.set_custom_element_data(r,"mbsource",d[14]),f[0]&268435456&&n.set_custom_element_data(r,"userenrolled",d[28]),f[0]&2048&&n.set_custom_element_data(r,"clientstyling",d[11]),f[0]&4096&&n.set_custom_element_data(r,"clientstylingurl",d[12]),f[0]&8192&&n.set_custom_element_data(r,"translationurl",d[13]),f[0]&256&&n.set_custom_element_data(r,"lang",d[8]),f[0]&1024&&n.set_custom_element_data(r,"keepbrowsercontext",d[10]),p===(p=c(d))&&h?h.p(d,f):(h.d(1),h=p(d),h&&(h.c(),h.m(e,null))),f[0]&192|f[1]&4&&s!==(s="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),f[0]&192|f[1]&4&&a!==(a="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),f[0]&131072&&l!==(l=`${d[17]?"Loading":""}`)&&n.attr(t,"class",l)},i:n.noop,o:n.noop,d(d){d&&n.detach(t),h.d(),i[49](null)}}}function zt(i,t,e){let r;n.component_subscribe(i,n.$format,u=>e(34,r=u));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:l}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:d=""}=t,{maxwidth:f=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:P=""}=t,{detailsevent:ie=""}=t,{loginurl:C=""}=t,{registerurl:B=""}=t,{currency:G=""}=t,{keepbrowsercontext:oe="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:D=""}=t,{translationurl:A=""}=t,{tournamentinfo:O}=t,{mbsource:L}=t,v,F=!1,I="",E=!0,se=window.navigator.userAgent,M=!1,R=!1,ae="There was an error while trying to join the tournament",N=!1,Y,le,ue,j,k,ce,K,de,fe,me=[],V=[],he="#",U=!1;pt({withLocale:"en",translations:{}});const qe=()=>{fetch(A).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{ze(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(Pe).forEach(u=>{ze(u,Pe[u])});const pe=u=>{Ge(u),X(u),be(this,k)},_e=u=>{if(u.data&&u.data.type=="UserSessionID"&&(e(16,F=!0),I=u.data.session),u.data.type=="UpdateTournamentView"){let b=u.data.tournamentData;if(k&&k!=b.id)return;pe(b)}if(u.data&&u.data.type==`UpdateSingleTournament_${l}`){let b=u.data.tournamentData,y=l<4?l*100:Math.random()*300+300;e(33,U=l==1),setTimeout(()=>{e(33,U=!0),e(26,k=b.id),pe(b)},y),setTimeout(()=>{e(33,U=!1)},y+200)}},Ge=u=>{u.state!=j&&(e(25,j=u.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},Ne=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),C&&(window.location=C)},Ye=()=>{P&&(window.postMessage({type:P,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},Ke=u=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:u,showLeaderboard:!0},window.location.href)},ge=(u,b)=>Q(this,null,function*(){var ye;e(19,R=!1),e(21,N=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:u},window.location.href),e(18,M=!0);let y=new URL(`${c}/v1/bonus/claim`),J=new Headers,S={};y.searchParams.append("language",m),y.searchParams.append("platform",re(se)),J.append("Content-Type","application/json"),J.append("X-SessionID",I),b&&b.length>=1&&(S={language:m,bonusCode:b[0].code,currency:G,type:"tournament"});let et={method:"PUT",headers:J,body:JSON.stringify(S)};const we=()=>{e(18,M=!1),e(28,K=!0)},Z=w=>{e(18,M=!1),w&&e(20,ae=w),e(19,R=!0)},z=yield Q(this,null,function*(){let w;try{w=yield fetch(y,et),w=yield w.json()}catch(Bt){Z()}return w});if(z)if(z.success==!0)we();else if(z.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(ye=w==null?void 0:w.item)!=null&&ye.playerEnrolled?we():(Z(z.errorMessage),e(21,N=!0),e(19,R=!1))}else Z(z.errorMessage)}),be=(u,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:me},window.location.href)},X=u=>{u&&(e(22,Y=u.nameOrTitle||""),e(23,le=u.startTime),e(24,ue=u.endTime),e(25,j=u.state),e(26,k=u.id),e(27,ce=u.thumbnail),e(28,K=u.playerEnrolled==="true"||u.playerEnrolled==!0||!1),e(29,de=u.scoreCriteria),e(30,fe=u.minBetCount),me=u.prizes,e(31,V=u.wallets||[]),e(32,he=u.termsUrl||"#"))},Ve=u=>{e(17,E=!0);let b=new URL(u),y=new Headers;b.searchParams.append("language",m),b.searchParams.append("platform",re(se)),F&&y.append("X-SessionID",I),fetch(b,{method:"GET",headers:y}).then(S=>S.json()).then(S=>{X(S.item)}).finally(()=>{e(17,E=!1)})},Xe=()=>{e(16,F=(o==null?void 0:o.length)>10),F&&(I=o)},Ze=()=>{if(O){X(O);return}e(17,E=!0),Ve(a)};n.onMount(()=>(e(17,E=!Y),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const Qe=()=>ge(k,V);function $e(u){n.binding_callbacks[u?"unshift":"push"](()=>{v=u,e(15,v)})}return i.$$set=u=>{"session"in u&&e(0,o=u.session),"userid"in u&&e(1,s=u.userid),"tournamenturl"in u&&e(2,a=u.tournamenturl),"touridx"in u&&e(40,l=u.touridx),"endpoint"in u&&e(41,c=u.endpoint),"showdetails"in u&&e(3,p=u.showdetails),"showslider"in u&&e(4,h=u.showslider),"showenrolled"in u&&e(5,d=u.showenrolled),"maxwidth"in u&&e(6,f=u.maxwidth),"fullsize"in u&&e(7,g=u.fullsize),"lang"in u&&e(8,m=u.lang),"loginevent"in u&&e(42,_=u.loginevent),"registerevent"in u&&e(43,P=u.registerevent),"detailsevent"in u&&e(9,ie=u.detailsevent),"loginurl"in u&&e(44,C=u.loginurl),"registerurl"in u&&e(45,B=u.registerurl),"currency"in u&&e(46,G=u.currency),"keepbrowsercontext"in u&&e(10,oe=u.keepbrowsercontext),"clientstyling"in u&&e(11,x=u.clientstyling),"clientstylingurl"in u&&e(12,D=u.clientstylingurl),"translationurl"in u&&e(13,A=u.translationurl),"tournamentinfo"in u&&e(47,O=u.tournamentinfo),"mbsource"in u&&e(14,L=u.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&256&&m&&_t(m),i.$$.dirty[0]&8192&&A&&qe(),i.$$.dirty[0]&1&&o&&Xe(),i.$$.dirty[0]&260&&a&&m&&Ze(),i.$$.dirty[0]&34816&&x&&v&&n.setClientStyling(v,x),i.$$.dirty[0]&36864&&D&&v&&n.setClientStylingURL(v,D),i.$$.dirty[0]&49152&&L&&v&&n.setStreamStyling(v,`${L}.Style`)},[o,s,a,p,h,d,f,g,m,ie,oe,x,D,A,L,v,F,E,M,R,ae,N,Y,le,ue,j,k,ce,K,de,fe,V,he,U,r,Ne,Ye,Ke,ge,be,l,c,_,P,C,B,G,O,Qe,$e]}class We extends n.SvelteComponent{constructor(t){super(),n.init(this,t,zt,jt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:40,endpoint:41,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:42,registerevent:43,detailsevent:9,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:47,mbsource:14},gt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(We,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{}},[],[],!0);const Pt=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Pt;exports.getDevice=re;
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function te(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var q=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,r,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var l=n.__values(a),c=l.next();!c.done;c=l.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(T(h))try{h()}catch(_){s=_ instanceof $?_.errors:[_]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=n.__values(d),g=f.next();!g.done;g=f.next()){var m=g.value;try{ve(m)}catch(_){s=s!=null?s:[],_ instanceof $?s=n.__spreadArray(n.__spreadArray([],n.__read(s)),n.__read(_.errors)):s.push(_)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(s)throw new $(s)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ve(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&te(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&te(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),Ie=q.EMPTY;function Me(i){return i instanceof q||i&&"closed"in i&&T(i.remove)&&T(i.add)&&T(i.unsubscribe)}function ve(i){T(i)?i():i.unsubscribe()}var Re={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tt={setTimeout:function(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,n.__spreadArray([i,t],n.__read(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function nt(i){tt.setTimeout(function(){throw i})}function ke(){}function W(i){i()}var Ue=function(i){n.__extends(t,i);function t(e){var r=i.call(this)||this;return r.isStopped=!1,e?(r.destination=e,Me(e)&&e.add(r)):r.destination=st,r}return t.create=function(e,r,o){return new ne(e,r,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(q),rt=Function.prototype.bind;function ee(i,t){return rt.call(i,t)}var it=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(r){H(r)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(r){H(r)}else H(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},i}(),ne=function(i){n.__extends(t,i);function t(e,r,o){var s=i.call(this)||this,a;if(T(e)||!e)a={next:e!=null?e:void 0,error:r!=null?r:void 0,complete:o!=null?o:void 0};else{var l;s&&Re.useDeprecatedNextContext?(l=Object.create(e),l.unsubscribe=function(){return s.unsubscribe()},a={next:e.next&&ee(e.next,l),error:e.error&&ee(e.error,l),complete:e.complete&&ee(e.complete,l)}):a=e}return s.destination=new it(a),s}return t}(Ue);function H(i){nt(i)}function ot(i){throw i}var st={closed:!0,next:ke,error:ot,complete:ke},at=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function lt(i){return i}function ut(i){return i.length===0?lt:i.length===1?i[0]:function(e){return i.reduce(function(r,o){return o(r)},e)}}var Te=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var o=this,s=dt(t)?t:new ne(t,e,r);return W(function(){var a=o,l=a.operator,c=a.source;s.add(l?l.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var r=this;return e=Se(e),new e(function(o,s){var a=new ne({next:function(l){try{t(l)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});r.subscribe(a)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[at]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ut(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=Se(t),new t(function(r,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return r(s)})})},i.create=function(t){return new i(t)},i}();function Se(i){var t;return(t=i!=null?i:Re.Promise)!==null&&t!==void 0?t:Promise}function ct(i){return i&&T(i.next)&&T(i.error)&&T(i.complete)}function dt(i){return i&&i instanceof Ue||ct(i)&&Me(i)}var ft=Le(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Je=function(i){n.__extends(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var r=new Fe(this,this);return r.operator=e,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new ft},t.prototype.next=function(e){var r=this;W(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var a=n.__values(r.currentObservers),l=a.next();!l.done;l=a.next()){var c=l.value;c.next(e)}}catch(p){o={error:p}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var r=this;W(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var o=r.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;W(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var r=e.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var r=this,o=this,s=o.hasError,a=o.isStopped,l=o.observers;return s||a?Ie:(this.currentObservers=null,l.push(e),new q(function(){r.currentObservers=null,te(l,e)}))},t.prototype._checkFinalizedStatuses=function(e){var r=this,o=r.hasError,s=r.thrownError,a=r.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Te;return e.source=this,e},t.create=function(e,r){return new Fe(e,r)},t}(Te),Fe=function(i){n.__extends(t,i);function t(e,r){var o=i.call(this)||this;return o.destination=e,o.source=r,o}return t.prototype.next=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,e)},t.prototype.error=function(e){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,e)},t.prototype.complete=function(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)},t.prototype._subscribe=function(e){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&o!==void 0?o:Ie},t}(Je),He={now:function(){return(He.delegate||Date).now()},delegate:void 0},mt=function(i){n.__extends(t,i);function t(e,r,o){e===void 0&&(e=1/0),r===void 0&&(r=1/0),o===void 0&&(o=He);var s=i.call(this)||this;return s._bufferSize=e,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,r),s}return t.prototype.next=function(e){var r=this,o=r.isStopped,s=r._buffer,a=r._infiniteTimeWindow,l=r._timestampProvider,c=r._windowTime;o||(s.push(e),!a&&s.push(l.now()+c)),this._trimBuffer(),i.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,l=a.slice(),c=0;c<l.length&&!e.closed;c+=s?1:2)e.next(l[c]);return this._checkFinalizedStatuses(e),r},t.prototype._trimBuffer=function(){var e=this,r=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,l=(a?1:2)*r;if(r<1/0&&l<s.length&&s.splice(0,s.length-l),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Je);const Ee=[],je={},ht=(i,t=0)=>{if(Ee.indexOf(i)==-1){const e=new mt(t);je[i]=e,Ee.push(i)}return je[i]};window.emWidgets={topic:ht};const re=i=>i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function pt({withLocale:i,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(i))})}function ze(i,t){n.addMessages(i,t)}function _t(i){n.$locale.set(i)}const Pe={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 i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-CfBqkPCn.cjs")).then(t=>t.CasinoTournamentsThumbnail_ce).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-Kwk-wnvw.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CDP05-CJ.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let i=function(t){return function(...e){try{return t.apply(this,e)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-BASDzqjf.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function gt(i){n.append_styles(i,"svelte-chi6uq",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .Rectangle.Skeleton,.Loading .TournamentPrizes .Rectangle.Skeleton,.Loading .TournamentsGamesSlider .Rectangle.Skeleton{width:100%}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 bt(i){let t,e,r,o,s,a,l,c=i[26]&&Ce(i);function p(m,_){if(!m[16])return kt;if(m[25]!="Closed"&&m[25]!="Closing")return vt;if(m[3]=="true")return yt}let h=p(i),d=h&&h(i),f=(i[19]||i[21])&&De(i),g=i[4]=="true"&&Ae(i);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),r=n.space(),o=n.element("div"),d&&d.c(),s=n.space(),f&&f.c(),a=n.space(),g&&g.c(),l=n.empty(),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"status",i[25]),n.set_custom_element_data(e,"startdate",i[23]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"enddate",i[24]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,r,_),n.insert(m,o,_),d&&d.m(o,null),n.insert(m,s,_),f&&f.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,l,_)},p(m,_){m[26]?c?c.p(m,_):(c=Ce(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&2048&&n.set_custom_element_data(e,"clientstyling",m[11]),_[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",m[12]),_[0]&8192&&n.set_custom_element_data(e,"translationurl",m[13]),_[0]&33554432&&n.set_custom_element_data(e,"status",m[25]),_[0]&8388608&&n.set_custom_element_data(e,"startdate",m[23]),_[0]&256&&n.set_custom_element_data(e,"lang",m[8]),_[0]&16384&&n.set_custom_element_data(e,"mbsource",m[14]),_[0]&16777216&&n.set_custom_element_data(e,"enddate",m[24]),h===(h=p(m))&&d?d.p(m,_):(d&&d.d(1),d=h&&h(m),d&&(d.c(),d.m(o,null))),m[19]||m[21]?f?f.p(m,_):(f=De(m),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null),m[4]=="true"?g?g.p(m,_):(g=Ae(m),g.c(),g.m(l.parentNode,l)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(r),n.detach(o),n.detach(s),n.detach(a),n.detach(l)),c&&c.d(m),d&&d.d(),f&&f.d(m),g&&g.d(m)}}}function wt(i){let t,e,r;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),r=n.element("div"),r.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(r,"class","TournamentButtons"),n.attr(r,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,r,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(r))}}}function Ce(i){let t,e,r,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",i[26]),n.set_custom_element_data(t,"clientstyling",i[11]),n.set_custom_element_data(t,"clientstylingurl",i[12]),n.set_custom_element_data(t,"mbsource",i[14]),n.set_custom_element_data(t,"translationurl",i[13]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),r||(o=n.action_destroyer(e=i[39].call(null,t,i[26])),r=!0)},p(s,a){a[0]&67108864&&n.set_custom_element_data(t,"tourid",s[26]),a[0]&2048&&n.set_custom_element_data(t,"clientstyling",s[11]),a[0]&4096&&n.set_custom_element_data(t,"clientstylingurl",s[12]),a[0]&16384&&n.set_custom_element_data(t,"mbsource",s[14]),a[0]&8192&&n.set_custom_element_data(t,"translationurl",s[13]),e&&n.is_function(e.update)&&a[0]&67108864&&e.update.call(null,s[26])},d(s){s&&n.detach(t),r=!1,o()}}}function yt(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,l){i=a,l[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function vt(i){let t,e,r=i[3]=="true"&&Be(i);function o(l,c){return l[28]?St:Tt}let s=o(i),a=s(i);return{c(){r&&r.c(),t=n.space(),a.c(),e=n.empty()},m(l,c){r&&r.m(l,c),n.insert(l,t,c),a.m(l,c),n.insert(l,e,c)},p(l,c){l[3]=="true"?r?r.p(l,c):(r=Be(l),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s===(s=o(l))&&a?a.p(l,c):(a.d(1),a=s(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&(n.detach(t),n.detach(e)),r&&r.d(l),a.d(l)}}}function kt(i){let t,e=i[34]("login")+"",r,o,s,a=i[34]("register")+"",l,c,p;return{c(){t=n.element("button"),r=n.text(e),o=n.space(),s=n.element("button"),l=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,d){n.insert(h,t,d),n.append(t,r),n.insert(h,o,d),n.insert(h,s,d),n.append(s,l),c||(p=[n.listen(t,"click",i[35]),n.listen(s,"click",i[36])],c=!0)},p(h,d){d[1]&8&&e!==(e=h[34]("login")+"")&&n.set_data(r,e),d[1]&8&&a!==(a=h[34]("register")+"")&&n.set_data(l,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Be(i){let t,e=i[34]("details")+"",r,o,s;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,l){n.insert(a,t,l),n.append(t,r),o||(s=n.listen(t,"click",function(){n.is_function(i[37].bind(this,i[26]))&&i[37].bind(this,i[26]).apply(this,arguments)}),o=!0)},p(a,l){i=a,l[1]&8&&e!==(e=i[34]("details")+"")&&n.set_data(r,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Tt(i){let t,e,r,o,s;function a(p,h){return p[18]==!0?Et:Ft}let l=a(i),c=l(i);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(i[7]?"JoinButtonFullSize":"")),n.attr(t,"part",r="JoinButton "+(i[7]?"JoinButtonFullSize":"")),t.disabled=i[19]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",i[48]),o=!0)},p(p,h){l===(l=a(p))&&c?c.p(p,h):(c.d(1),c=l(p),c&&(c.c(),c.m(t,null))),h[0]&128&&e!==(e="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&128&&r!==(r="JoinButton "+(p[7]?"JoinButtonFullSize":""))&&n.attr(t,"part",r),h[0]&524288&&(t.disabled=p[19])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function St(i){let t,e=i[3]=="true"&&xe(i);return{c(){e&&e.c(),t=n.empty()},m(r,o){e&&e.m(r,o),n.insert(r,t,o)},p(r,o){r[3]=="true"?e?e.p(r,o):(e=xe(r),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(r){r&&n.detach(t),e&&e.d(r)}}}function Ft(i){let t,e=i[34]("join")+"",r,o,s,a,l,c,p,h;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),l=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(d,f){n.insert(d,t,f),n.append(t,r),n.insert(d,o,f),n.insert(d,s,f),n.append(s,a),n.append(a,l),n.append(l,c),n.append(s,p),n.append(p,h)},p(d,f){f[1]&8&&e!==(e=d[34]("join")+"")&&n.set_data(r,e)},d(d){d&&(n.detach(t),n.detach(o),n.detach(s))}}}function Et(i){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(r,o){n.insert(r,t,o),n.append(t,e)},p:n.noop,d(r){r&&n.detach(t)}}}function xe(i){let t,e=i[34]("enrolled")+"",r;return{c(){t=n.element("button"),r=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,r)},p(o,s){s[1]&8&&e!==(e=o[34]("enrolled")+"")&&n.set_data(r,e)},d(o){o&&n.detach(t)}}}function De(i){let t,e=i[34]("joinerror")+"",r,o,s;return{c(){t=n.element("span"),r=n.text(e),o=n.space(),s=n.text(i[20]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,l){n.insert(a,t,l),n.append(t,r),n.append(t,o),n.append(t,s)},p(a,l){l[1]&8&&e!==(e=a[34]("joinerror")+"")&&n.set_data(r,e),l[0]&1048576&&n.set_data(s,a[20])},d(a){a&&n.detach(t)}}}function Ae(i){let t,e,r=i[17]&&Oe();return{c(){r&&r.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",i[11]),n.set_custom_element_data(e,"clientstylingurl",i[12]),n.set_custom_element_data(e,"translationurl",i[13]),n.set_custom_element_data(e,"tournamenturl",i[2]),n.set_custom_element_data(e,"mbsource",i[14]),n.set_custom_element_data(e,"lang",i[8]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){r&&r.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[17]?r||(r=Oe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),s[0]&2048&&n.set_custom_element_data(e,"clientstyling",o[11]),s[0]&4096&&n.set_custom_element_data(e,"clientstylingurl",o[12]),s[0]&8192&&n.set_custom_element_data(e,"translationurl",o[13]),s[0]&4&&n.set_custom_element_data(e,"tournamenturl",o[2]),s[0]&16384&&n.set_custom_element_data(e,"mbsource",o[14]),s[0]&256&&n.set_custom_element_data(e,"lang",o[8])},d(o){o&&(n.detach(t),n.detach(e)),r&&r.d(o)}}}function Oe(i){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,r){n.insert(e,t,r)},d(e){e&&n.detach(t)}}}function jt(i){let t,e,r,o,s,a,l;function c(d,f){return d[17]?wt:bt}let p=c(i),h=p(i);return{c(){t=n.element("div"),e=n.element("div"),r=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(r,"session",i[0]),n.set_custom_element_data(r,"detailsevent",i[9]),n.set_custom_element_data(r,"userid",i[1]),n.set_custom_element_data(r,"title",i[22]),n.set_custom_element_data(r,"status",i[25]),n.set_custom_element_data(r,"startdate",i[23]),n.set_custom_element_data(r,"tourid",i[26]),n.set_custom_element_data(r,"scorecriteria",i[29]),n.set_custom_element_data(r,"minbetcount",i[30]),n.set_custom_element_data(r,"thumbnail",i[27]),n.set_custom_element_data(r,"showenrolled",i[5]),n.set_custom_element_data(r,"gameurl",i[32]),n.set_custom_element_data(r,"mbsource",i[14]),n.set_custom_element_data(r,"userenrolled",i[28]),n.set_custom_element_data(r,"clientstyling",i[11]),n.set_custom_element_data(r,"clientstylingurl",i[12]),n.set_custom_element_data(r,"translationurl",i[13]),n.set_custom_element_data(r,"lang",i[8]),n.set_custom_element_data(r,"keepbrowsercontext",i[10]),n.set_custom_element_data(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(i[6]?"CardMaxWidth":"")+(i[7]?"CardFullSize":"")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")+" "+(i[33]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",l=`${i[17]?"Loading":""}`)},m(d,f){n.insert(d,t,f),n.append(t,e),n.append(e,r),n.append(e,o),h.m(e,null),i[49](t)},p(d,f){f[0]&1&&n.set_custom_element_data(r,"session",d[0]),f[0]&512&&n.set_custom_element_data(r,"detailsevent",d[9]),f[0]&2&&n.set_custom_element_data(r,"userid",d[1]),f[0]&4194304&&n.set_custom_element_data(r,"title",d[22]),f[0]&33554432&&n.set_custom_element_data(r,"status",d[25]),f[0]&8388608&&n.set_custom_element_data(r,"startdate",d[23]),f[0]&67108864&&n.set_custom_element_data(r,"tourid",d[26]),f[0]&536870912&&n.set_custom_element_data(r,"scorecriteria",d[29]),f[0]&1073741824&&n.set_custom_element_data(r,"minbetcount",d[30]),f[0]&134217728&&n.set_custom_element_data(r,"thumbnail",d[27]),f[0]&32&&n.set_custom_element_data(r,"showenrolled",d[5]),f[1]&2&&n.set_custom_element_data(r,"gameurl",d[32]),f[0]&16384&&n.set_custom_element_data(r,"mbsource",d[14]),f[0]&268435456&&n.set_custom_element_data(r,"userenrolled",d[28]),f[0]&2048&&n.set_custom_element_data(r,"clientstyling",d[11]),f[0]&4096&&n.set_custom_element_data(r,"clientstylingurl",d[12]),f[0]&8192&&n.set_custom_element_data(r,"translationurl",d[13]),f[0]&256&&n.set_custom_element_data(r,"lang",d[8]),f[0]&1024&&n.set_custom_element_data(r,"keepbrowsercontext",d[10]),p===(p=c(d))&&h?h.p(d,f):(h.d(1),h=p(d),h&&(h.c(),h.m(e,null))),f[0]&192|f[1]&4&&s!==(s="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),f[0]&192|f[1]&4&&a!==(a="TournamentCard "+(d[6]?"CardMaxWidth":"")+(d[7]?"CardFullSize":"")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn")+" "+(d[33]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),f[0]&131072&&l!==(l=`${d[17]?"Loading":""}`)&&n.attr(t,"class",l)},i:n.noop,o:n.noop,d(d){d&&n.detach(t),h.d(),i[49](null)}}}function zt(i,t,e){let r;n.component_subscribe(i,n.$format,u=>e(34,r=u));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:l}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:d=""}=t,{maxwidth:f=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:P=""}=t,{detailsevent:ie=""}=t,{loginurl:C=""}=t,{registerurl:B=""}=t,{currency:G=""}=t,{keepbrowsercontext:oe="false"}=t,{clientstyling:x=""}=t,{clientstylingurl:D=""}=t,{translationurl:A=""}=t,{tournamentinfo:O}=t,{mbsource:L}=t,v,F=!1,I="",E=!0,se=window.navigator.userAgent,M=!1,R=!1,ae="There was an error while trying to join the tournament",N=!1,Y,le,ue,j,k,ce,K,de,fe,me=[],V=[],he="#",U=!1;pt({withLocale:"en",translations:{}});const qe=()=>{fetch(A).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{ze(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(Pe).forEach(u=>{ze(u,Pe[u])});const pe=u=>{Ge(u),X(u),be(this,k)},_e=u=>{if(u.data&&u.data.type=="UserSessionID"&&(e(16,F=!0),I=u.data.session),u.data.type=="UpdateTournamentView"){let b=u.data.tournamentData;if(k&&k!=b.id)return;pe(b)}if(u.data&&u.data.type==`UpdateSingleTournament_${l}`){let b=u.data.tournamentData,y=l<4?l*100:Math.random()*300+300;e(33,U=l==1),setTimeout(()=>{e(33,U=!0),e(26,k=b.id),pe(b)},y),setTimeout(()=>{e(33,U=!1)},y+200)}},Ge=u=>{u.state!=j&&(e(25,j=u.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},Ne=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),C&&(window.location=C)},Ye=()=>{P&&(window.postMessage({type:P,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),B&&(window.location=B)},Ke=u=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:u,showLeaderboard:!0},window.location.href)},ge=(u,b)=>Q(this,null,function*(){var ye;e(19,R=!1),e(21,N=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:u},window.location.href),e(18,M=!0);let y=new URL(`${c}/v1/bonus/claim`),J=new Headers,S={};y.searchParams.append("language",m),y.searchParams.append("platform",re(se)),J.append("Content-Type","application/json"),J.append("X-SessionID",I),b&&b.length>=1&&(S={language:m,bonusCode:b[0].code,currency:G,type:"tournament"});let et={method:"PUT",headers:J,body:JSON.stringify(S)};const we=()=>{e(18,M=!1),e(28,K=!0)},Z=w=>{e(18,M=!1),w&&e(20,ae=w),e(19,R=!0)},z=yield Q(this,null,function*(){let w;try{w=yield fetch(y,et),w=yield w.json()}catch(Bt){Z()}return w});if(z)if(z.success==!0)we();else if(z.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(ye=w==null?void 0:w.item)!=null&&ye.playerEnrolled?we():(Z(z.errorMessage),e(21,N=!0),e(19,R=!1))}else Z(z.errorMessage)}),be=(u,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:me},window.location.href)},X=u=>{u&&(e(22,Y=u.nameOrTitle||""),e(23,le=u.startTime),e(24,ue=u.endTime),e(25,j=u.state),e(26,k=u.id),e(27,ce=u.thumbnail),e(28,K=u.playerEnrolled==="true"||u.playerEnrolled==!0||!1),e(29,de=u.scoreCriteria),e(30,fe=u.minBetCount),me=u.prizes,e(31,V=u.wallets||[]),e(32,he=u.termsUrl||"#"))},Ve=u=>{e(17,E=!0);let b=new URL(u),y=new Headers;b.searchParams.append("language",m),b.searchParams.append("platform",re(se)),F&&y.append("X-SessionID",I),fetch(b,{method:"GET",headers:y}).then(S=>S.json()).then(S=>{X(S.item)}).finally(()=>{e(17,E=!1)})},Xe=()=>{e(16,F=(o==null?void 0:o.length)>10),F&&(I=o)},Ze=()=>{if(O){X(O);return}e(17,E=!0),Ve(a)};n.onMount(()=>(e(17,E=!Y),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e)}));const Qe=()=>ge(k,V);function $e(u){n.binding_callbacks[u?"unshift":"push"](()=>{v=u,e(15,v)})}return i.$$set=u=>{"session"in u&&e(0,o=u.session),"userid"in u&&e(1,s=u.userid),"tournamenturl"in u&&e(2,a=u.tournamenturl),"touridx"in u&&e(40,l=u.touridx),"endpoint"in u&&e(41,c=u.endpoint),"showdetails"in u&&e(3,p=u.showdetails),"showslider"in u&&e(4,h=u.showslider),"showenrolled"in u&&e(5,d=u.showenrolled),"maxwidth"in u&&e(6,f=u.maxwidth),"fullsize"in u&&e(7,g=u.fullsize),"lang"in u&&e(8,m=u.lang),"loginevent"in u&&e(42,_=u.loginevent),"registerevent"in u&&e(43,P=u.registerevent),"detailsevent"in u&&e(9,ie=u.detailsevent),"loginurl"in u&&e(44,C=u.loginurl),"registerurl"in u&&e(45,B=u.registerurl),"currency"in u&&e(46,G=u.currency),"keepbrowsercontext"in u&&e(10,oe=u.keepbrowsercontext),"clientstyling"in u&&e(11,x=u.clientstyling),"clientstylingurl"in u&&e(12,D=u.clientstylingurl),"translationurl"in u&&e(13,A=u.translationurl),"tournamentinfo"in u&&e(47,O=u.tournamentinfo),"mbsource"in u&&e(14,L=u.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&256&&m&&_t(m),i.$$.dirty[0]&8192&&A&&qe(),i.$$.dirty[0]&1&&o&&Xe(),i.$$.dirty[0]&260&&a&&m&&Ze(),i.$$.dirty[0]&34816&&x&&v&&n.setClientStyling(v,x),i.$$.dirty[0]&36864&&D&&v&&n.setClientStylingURL(v,D),i.$$.dirty[0]&49152&&L&&v&&n.setStreamStyling(v,`${L}.Style`)},[o,s,a,p,h,d,f,g,m,ie,oe,x,D,A,L,v,F,E,M,R,ae,N,Y,le,ue,j,k,ce,K,de,fe,V,he,U,r,Ne,Ye,Ke,ge,be,l,c,_,P,C,B,G,O,Qe,$e]}class We extends n.SvelteComponent{constructor(t){super(),n.init(this,t,zt,jt,n.safe_not_equal,{session:0,userid:1,tournamenturl:2,touridx:40,endpoint:41,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:42,registerevent:43,detailsevent:9,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:10,clientstyling:11,clientstylingurl:12,translationurl:13,tournamentinfo:47,mbsource:14},gt,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[9]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[10]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}}n.create_custom_element(We,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{}},[],[],!0);const Pt=Object.freeze(Object.defineProperty({__proto__:null,default:We},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Pt;exports.getDevice=re;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as me, a as he, b as pe, c as U, $ as ge, d as bt, e as wt, f as yt, S as vt, i as _t, s as kt, g as _, h as St, j as T, k as j, l as u, m as p, n as w, o as S, p as ne, q as y, r as Tt, t as Ft, u as Et, v as jt, w as zt, x as Ct, y as ye, z as Bt, A as ve, B as P, C as D, D as Pt, E as R, F as Dt, G as A } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { _ as me, a as he, b as pe, c as U, $ as ge, d as bt, e as wt, f as yt, S as vt, i as _t, s as kt, g as _, h as St, j as T, k as j, l as u, m as p, n as w, o as S, p as ne, q as y, r as Tt, t as Ft, u as Et, v as jt, w as zt, x as Ct, y as ye, z as Bt, A as ve, B as P, C as D, D as Pt, E as R, F as Dt, G as A } from "./CasinoTournamentsThumbnail-CNPgQvV0.js";
|
|
2
2
|
function B(r) {
|
|
3
3
|
return typeof r == "function";
|
|
4
4
|
}
|
|
@@ -585,7 +585,7 @@ if (typeof window < "u") {
|
|
|
585
585
|
}
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
588
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-CNPgQvV0.js").then((t) => t.O).then(({ default: t }) => {
|
|
589
589
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
590
590
|
});
|
|
591
591
|
}
|
|
@@ -601,7 +601,7 @@ if (typeof window < "u") {
|
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
603
|
};
|
|
604
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
604
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-OpBrRPKX.js").then(({ default: t }) => {
|
|
605
605
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
606
606
|
"casino-tournaments-thumbnail-duration",
|
|
607
607
|
t.element
|
|
@@ -620,7 +620,7 @@ if (typeof window < "u") {
|
|
|
620
620
|
}
|
|
621
621
|
};
|
|
622
622
|
};
|
|
623
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
623
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-StP6a3CF.js").then(({ default: t }) => {
|
|
624
624
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
625
625
|
});
|
|
626
626
|
}
|
|
@@ -636,7 +636,7 @@ if (typeof window < "u") {
|
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
};
|
|
639
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
639
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-CDvugALy.js").then(
|
|
640
640
|
({ default: t }) => {
|
|
641
641
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
642
642
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -14,7 +14,7 @@ var ce = (r, t, e) => new Promise((n, i) => {
|
|
|
14
14
|
}, a = (f) => f.done ? n(f.value) : Promise.resolve(f.value).then(o, s);
|
|
15
15
|
a((e = e.apply(r, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { _ as he, a as pe, b as ge, c as U, $ as be, d as vt, e as _t, S as kt, i as St, f as _, g as Tt, s as Ft, h as Et, j as T, k as j, l as u, m as p, n as w, o as S, p as ne, q as y, r as jt, t as zt, u as Ct, v as Pt, w as Bt, x as Dt, y as ve, z as Ot, A as _e, B, C as D, D as At, E as R, F as Lt, G as O } from "./CasinoTournamentsThumbnail-
|
|
17
|
+
import { _ as he, a as pe, b as ge, c as U, $ as be, d as vt, e as _t, S as kt, i as St, f as _, g as Tt, s as Ft, h as Et, j as T, k as j, l as u, m as p, n as w, o as S, p as ne, q as y, r as jt, t as zt, u as Ct, v as Pt, w as Bt, x as Dt, y as ve, z as Ot, A as _e, B, C as D, D as At, E as R, F as Lt, G as O } from "./CasinoTournamentsThumbnail-CnCLHIv_.js";
|
|
18
18
|
function P(r) {
|
|
19
19
|
return typeof r == "function";
|
|
20
20
|
}
|
|
@@ -601,7 +601,7 @@ if (typeof window != "undefined") {
|
|
|
601
601
|
}
|
|
602
602
|
};
|
|
603
603
|
};
|
|
604
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
604
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnail-CnCLHIv_.js").then((t) => t.O).then(({ default: t }) => {
|
|
605
605
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
606
606
|
});
|
|
607
607
|
}
|
|
@@ -617,7 +617,7 @@ if (typeof window != "undefined") {
|
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
619
|
};
|
|
620
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
620
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailDuration-CS8jmM5s.js").then(({ default: t }) => {
|
|
621
621
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
622
622
|
"casino-tournaments-thumbnail-duration",
|
|
623
623
|
t.element
|
|
@@ -636,7 +636,7 @@ if (typeof window != "undefined") {
|
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
};
|
|
639
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
639
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailPrizes-2LDrpS8P.js").then(({ default: t }) => {
|
|
640
640
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
641
641
|
});
|
|
642
642
|
}
|
|
@@ -652,7 +652,7 @@ if (typeof window != "undefined") {
|
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
654
|
};
|
|
655
|
-
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
655
|
+
customElements.define = r(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-BzUkX78G.js").then(
|
|
656
656
|
({ default: t }) => {
|
|
657
657
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
658
658
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as G, S as K, i as Y, f as C, g as Z, s as J, h as Q, j as v, m as l, n as w, p as N, q as B, r as V, t as X, u as $, v as tt, B as M, k as L, o as y, z as et, C as j, w as nt, x as it, H as O, D as st } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { e as G, S as K, i as Y, f as C, g as Z, s as J, h as Q, j as v, m as l, n as w, p as N, q as B, r as V, t as X, u as $, v as tt, B as M, k as L, o as y, z as et, C as j, w as nt, x as it, H as O, D as st } from "./CasinoTournamentsThumbnail-CnCLHIv_.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
G(n, t);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-CfBqkPCn.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 I(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 z(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",g,k,y,m,w,p,b;function S(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?L:O}let T=S(r),_=T(r);function P(s,f){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return A;if(s[5]>0)return q;if(s[4]>0)return U}let v=P(r),c=v&&v(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),k=t.space(),y=t.element("div"),m=t.element("div"),_.c(),w=t.space(),c&&c.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(m,"class","ProgressBar"),t.attr(m,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,f){t.insert(s,e,f),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,g),t.insert(s,k,f),t.insert(s,y,f),t.append(y,m),_.m(m,null),t.append(m,w),c&&c.m(m,null),p||(b=t.action_destroyer(r[9].call(null,y)),p=!0)},p(s,f){f&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),f&2&&d!==(d=s[10](s[1])+"")&&t.set_data(g,d),T===(T=S(s))&&_?_.p(s,f):(_.d(1),_=T(s),_&&(_.c(),_.m(m,w))),v===(v=P(s))&&c?c.p(s,f):(c&&c.d(1),c=v&&v(s),c&&(c.c(),c.m(m,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),_.d(),c&&c.d(),p=!1,b()}}}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 L(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 U(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 q(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 A(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]&&z(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[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=z(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[17](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:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:m=""}=e,{mbsource:w}=e,p,b="",S="",T="";const _=()=>{fetch(m).then(h=>h.json()).then(h=>{Object.keys(h).forEach(F=>{C(F,h[F])})}).catch(h=>{console.log(h)})};Object.keys(M).forEach(i=>{C(i,M[i])});const P=i=>new Date(i).getTime(),v=(i,h)=>(P(h)-P(i))/(1e3*60),c=()=>{const i=new Date;n(4,b=v(i,o)),n(5,S=v(i,u)),n(6,T=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),B=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${B}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(B,D)=>B+" "+l(D),F=B=>{const D=Math.floor(B);return D<10?`0${D}`:`${D}`};if(i<1440){const B=i/60,D=i%60,R=(D-Math.floor(D))*60;return[B,D,R].map(x=>F(x)).join(":")}return h(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&c()},1e3);return()=>{clearInterval(i)}});function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{p=i,n(3,p)})}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,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,m=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=v(u,o),h=100/i;return Math.floor((i-b)*h)}),r.$$.dirty&19&&u&&o&&c()&&f(b),r.$$.dirty&4096&&g&&c(),r.$$.dirty&4112&&g&&f(b),r.$$.dirty&32768&&m&&_(),r.$$.dirty&8200&&k&&p&&t.setClientStyling(p,k),r.$$.dirty&16392&&y&&p&&t.setClientStylingURL(p,y),r.$$.dirty&65544&&w&&p&&t.setStreamStyling(p,`${w}.Style`)},[u,o,d,p,b,S,T,a,l,c,s,f,g,k,y,m,w,j]}class E 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,mbsource:16},I)}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()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=E;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as G, S as K, i as Y, g as C, f as Z, s as J, h as Q, j as v, m as l, n as w, p as N, q as B, r as V, t as X, u as $, v as tt, B as M, k as L, o as y, z as et, C as j, w as nt, x as it, H as O, D as st } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { e as G, S as K, i as Y, g as C, f as Z, s as J, h as Q, j as v, m as l, n as w, p as N, q as B, r as V, t as X, u as $, v as tt, B as M, k as L, o as y, z as et, C as j, w as nt, x as it, H as O, D as st } from "./CasinoTournamentsThumbnail-CNPgQvV0.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
G(n, t);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-CfBqkPCn.cjs"),se=require("./CasinoTournamentsThumbnailController-CQtJyHC1.cjs");function U(t,l){e.addMessages(t,l)}const D={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"},"en-us":{playNow:"Play now"}};function ie(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--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(--emw--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(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--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 I(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function W(t){let l,n,i,d,h,p,y,a,_,w,g=e.ensure_array_like(t[1]),o=[];for(let s=0;s<g.length;s+=1)o[s]=G(I(t,g,s));return{c(){l=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"),h=e.element("div");for(let s=0;s<o.length;s+=1)o[s].c();y=e.space(),a=e.element("div"),a.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(h,"class","items"),e.attr(h,"part","items"),e.set_style(h,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(d)),e.attr(a,"class","SliderNavButton"),e.attr(a,"part","SliderNavButton"),e.toggle_class(a,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(s,m){e.insert(s,l,m),e.append(l,n),e.append(l,i),e.append(l,d),e.append(d,h);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(h,null);t[28](h),p=e.add_iframe_resize_listener(d,t[29].bind(d)),e.append(l,y),e.append(l,a),t[31](l),_||(w=[e.listen(n,"click",t[24]),e.listen(a,"click",t[30])],_=!0)},p(s,m){if(m[0]&256&&e.toggle_class(n,"disabled",s[8]),m[0]&23650){g=e.ensure_array_like(s[1]);let u;for(u=0;u<g.length;u+=1){const v=I(s,g,u);o[u]?o[u].p(v,m):(o[u]=G(v),o[u].c(),o[u].m(h,null))}for(;u<o.length;u+=1)o[u].d(1);o.length=g.length}m[0]&4&&e.set_style(h,"transform","translateX("+s[2]+"px)"),m[0]&512&&e.toggle_class(a,"disabled",s[9])},d(s){s&&e.detach(l),e.destroy_each(o,s),t[28](null),p(),t[31](null),_=!1,e.run_all(w)}}}function G(t){let l,n,i=t[10]("playNow")+"",d,h,p,y,a,_,w,g,o,s,m;function u(){return t[25](t[49])}function v(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),d=e.text(i),y=e.space(),a=e.element("img"),o=e.space(),e.attr(n,"class",h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(a.src,_=t[49].thumbnail)||e.attr(a,"src",_),e.attr(a,"width","132px"),e.attr(a,"height","100px"),e.attr(a,"alt",w=t[49].name),e.attr(a,"title",g=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(b,c){e.insert(b,l,c),e.append(l,n),e.append(n,d),e.append(l,y),e.append(l,a),e.append(l,o),s||(m=[e.listen(l,"click",u),e.listen(l,"mouseenter",v),e.listen(l,"mouseleave",t[27])],s=!0)},p(b,c){t=b,c[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(d,i),c[0]&96&&h!==(h="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",h),c[0]&96&&p!==(p="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",p),c[0]&2&&!e.src_url_equal(a.src,_=t[49].thumbnail)&&e.attr(a,"src",_),c[0]&2&&w!==(w=t[49].name)&&e.attr(a,"alt",w),c[0]&2&&g!==(g=t[49].name)&&e.attr(a,"title",g)},d(b){b&&e.detach(l),s=!1,e.run_all(m)}}}function oe(t){let l,n=t[1]&&t[1].length>0&&W(t);return{c(){l=e.element("div"),n&&n.c()},m(i,d){e.insert(i,l,d),n&&n.m(l,null),t[32](l)},p(i,d){i[1]&&i[1].length>0?n?n.p(i,d):(n=W(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ce=30;function ue(t,l,n){let i,d,h;e.component_subscribe(t,e.$format,r=>n(10,h=r));let{tournamenturl:p=""}=l,{scrollby:y="3"}=l,{pagfactor:a="175"}=l,{lang:_=""}=l,{translationurl:w=""}=l,{clientstyling:g=""}=l,{clientstylingurl:o=""}=l,{mbsource:s}=l,m,u=window.navigator.userAgent,v,b=[],c=0,k,B=null,E=null,j=!1,C,T,P=0,N;const X=()=>{fetch(w).then(f=>f.json()).then(f=>{Object.keys(f).forEach(M=>{U(M,f[M])})}).catch(f=>{console.log(f)})};Object.keys(D).forEach(r=>{U(r,D[r])});const L=r=>{n(5,j=!0),n(6,C=r)},z=()=>{n(5,j=!1),n(6,C=-1)},J=r=>r.touches||r.originalEvent.touches,A=r=>{const f=J(r)[0];B=f.clientX,E=f.clientY},H=r=>{if(!B||!E)return;let f=r.touches[0].clientX,M=r.touches[0].clientY,S=B-f,ae=E-M;Math.abs(S)>Math.abs(ae)&&(S>0?F(1):F(-1)),B=null,E=null},F=r=>{r>0&&!d?(n(2,c-=v),n(2,c=c<P?P:c)):r<0&&!i&&(n(2,c+=v),n(2,c=c>0?0:c))},q=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},R=()=>{let r=new URL(p),f=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ce},offset=${c})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",_),r.searchParams.append("platform",se.getDevice(u)),fetch(r,{method:"GET",headers:f}).then(S=>S.json()).then(S=>{n(1,b=S.item.games.items),S.item.games.total})},x=()=>{k.addEventListener("touchstart",A,{passive:!0}),k.addEventListener("touchmove",H,{passive:!0})},Y=()=>{setTimeout(()=>{n(23,P=(T.scrollWidth-T.clientWidth)*-1),n(16,a=new String(T.scrollWidth/b.length)),v=parseInt(y,10)*parseFloat(a,2).toFixed(2)},1e3)},Z=()=>{N>0&&N<Math.floor((parseInt(y)+1)*a)&&n(15,y=Math.ceil(N/a).toString())};e.onMount(()=>(v=parseInt(y,10)*parseInt(a,10),()=>{k.removeEventListener("touchstart",A),k.removeEventListener("touchmove",H)}));const K=()=>F(-1),Q=r=>q(r),V=r=>L(r),$=()=>z();function ee(r){e.binding_callbacks[r?"unshift":"push"](()=>{T=r,n(7,T)})}function te(){N=this.clientWidth,n(4,N)}const ne=()=>F(1);function le(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{m=r,n(0,m)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,p=r.tournamenturl),"scrollby"in r&&n(15,y=r.scrollby),"pagfactor"in r&&n(16,a=r.pagfactor),"lang"in r&&n(18,_=r.lang),"translationurl"in r&&n(19,w=r.translationurl),"clientstyling"in r&&n(20,g=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,s=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=c===0),t.$$.dirty[0]&8388612&&n(9,d=c<=P),t.$$.dirty[0]&16&&N&&Z(),t.$$.dirty[0]&131072&&p&&R(),t.$$.dirty[0]&8&&k&&x(),t.$$.dirty[0]&524288&&w&&X(),t.$$.dirty[0]&2&&b.length&&Y(),t.$$.dirty[0]&1048577&&g&&m&&e.setClientStyling(m,g),t.$$.dirty[0]&2097153&&o&&m&&e.setClientStylingURL(m,o),t.$$.dirty[0]&4194305&&s&&m&&e.setStreamStyling(m,`${s}.Style`)},n(2,c=0),[m,b,c,k,N,j,C,T,i,d,h,L,z,F,q,y,a,p,_,w,g,o,s,P,K,Q,V,$,ee,te,ne,le,re]}class O extends e.SvelteComponent{constructor(l){super(),e.init(this,l,ue,oe,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},ie,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(O,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as _e, S as be, i as ve, f as T, g as ke, s as Ne, h as Se, j as N, n as W, p as R, q, r as Te, t as Fe, u as Be, v as Me, I as Y, k as C, m as c, J as A, H as K, K as Pe, o as b, L as Ee, E as L, M as je, F as ne, B as Le, N as Z, C as He, w as U, x as ze, D as Ae } from "./CasinoTournamentsThumbnail-
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { e as _e, S as be, i as ve, f as T, g as ke, s as Ne, h as Se, j as N, n as W, p as R, q, r as Te, t as Fe, u as Be, v as Me, I as Y, k as C, m as c, J as A, H as K, K as Pe, o as b, L as Ee, E as L, M as je, F as ne, B as Le, N as Z, C as He, w as U, x as ze, D as Ae } from "./CasinoTournamentsThumbnail-CnCLHIv_.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-Ct-VHs0N.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as _e, S as be, i as ve, g as T, f as ke, s as Ne, h as Se, j as N, n as W, p as R, q, r as Te, t as Fe, u as Be, v as Me, I as Y, k as C, m as c, J as A, H as K, K as Pe, o as b, L as Ee, E as L, M as je, F as ne, B as Le, N as Z, C as He, w as U, x as ze, D as Ae } from "./CasinoTournamentsThumbnail-
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { e as _e, S as be, i as ve, g as T, f as ke, s as Ne, h as Se, j as N, n as W, p as R, q, r as Te, t as Fe, u as Be, v as Me, I as Y, k as C, m as c, J as A, H as K, K as Pe, o as b, L as Ee, E as L, M as je, F as ne, B as Le, N as Z, C as He, w as U, x as ze, D as Ae } from "./CasinoTournamentsThumbnail-CNPgQvV0.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-CZVPhqBH.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as C, S as L, i as I, f as _, g as Z, s as j, h as B, j as g, k as v, B as y, m as p, n as w, o as d, C as b, p as F, q as T, r as R, t as O, u as q, v as D, I as S, M as U, w as V, x as W, D as G } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { e as C, S as L, i as I, f as _, g as Z, s as j, h as B, j as g, k as v, B as y, m as p, n as w, o as d, C as b, p as F, q as T, r as R, t as O, u as q, v as D, I as S, M as U, w as V, x as W, D as G } from "./CasinoTournamentsThumbnail-CnCLHIv_.js";
|
|
2
2
|
function M(r, e) {
|
|
3
3
|
C(r, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-CfBqkPCn.cjs");function _(l,t){e.addMessages(l,t)}const y={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function k(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function P(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function b(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=T(P(l,n,r));let a=null;return n.length||(a=v(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=P(r,n,s);i[s]?i[s].p(d,c):(i[s]=T(d),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(r,c):n.length?a&&(a.d(1),a=null):(a=v(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function v(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,p,u=l[12].name+"",f,g;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),p=e.text(": "),f=e.text(u),g=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,o){e.insert(m,t,o),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,p),e.append(n,f),e.append(t,g)},p(m,o){o&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),o&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),o&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function S(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,p=l[1]&&b(l);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),r=e.element("p"),s=e.text(c),d=e.space(),p&&p.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),p&&p.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?p?p.p(u,f):(p=b(u),p.c(),p.m(t,null)):p&&(p.d(1),p=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),p&&p.d(),l[8](null)}}}function F(l,t,n){let i;e.component_subscribe(l,e.$format,o=>n(2,i=o));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,p,u;const f=()=>{fetch(s).then(h=>h.json()).then(h=>{Object.keys(h).forEach(z=>{_(z,h[z])})}).catch(h=>{console.log(h)})};Object.keys(y).forEach(o=>{_(o,y[o])});const g=o=>{o.data&&o.data.type==`TournamentPrizes_${a}`&&n(1,u=o.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function m(o){e.binding_callbacks[o?"unshift":"push"](()=>{p=o,n(0,p)})}return l.$$set=o=>{"tourid"in o&&n(3,a=o.tourid),"clientstyling"in o&&n(4,r=o.clientstyling),"clientstylingurl"in o&&n(5,c=o.clientstylingurl),"translationurl"in o&&n(6,s=o.translationurl),"mbsource"in o&&n(7,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&p&&e.setClientStyling(p,r),l.$$.dirty&33&&c&&p&&e.setClientStylingURL(p,c),l.$$.dirty&129&&d&&p&&e.setStreamStyling(p,`${d}.Style`),l.$$.dirty&64&&s&&f()},[p,u,i,a,r,c,s,d,m]}class w extends e.SvelteComponent{constructor(t){super(),e.init(this,t,F,S,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},k)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(w,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=w;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as C, S as L, i as I, g as _, f as Z, s as j, h as B, j as g, k as v, B as y, m as p, n as w, o as d, C as b, p as F, q as T, r as R, t as O, u as q, v as D, I as S, M as U, w as V, x as W, D as G } from "./CasinoTournamentsThumbnail-
|
|
1
|
+
import { e as C, S as L, i as I, g as _, f as Z, s as j, h as B, j as g, k as v, B as y, m as p, n as w, o as d, C as b, p as F, q as T, r as R, t as O, u as q, v as D, I as S, M as U, w as V, x as W, D as G } from "./CasinoTournamentsThumbnail-CNPgQvV0.js";
|
|
2
2
|
function M(r, e) {
|
|
3
3
|
C(r, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsThumbnailController-CQtJyHC1.cjs")).then(e=>e.CasinoTournamentsThumbnailController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-Ct-VHs0N.js").then((e) => e.C).then(
|
|
14
14
|
({ default: e }) => {
|
|
15
15
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
16
16
|
"casino-tournaments-thumbnail-controller",
|
package/package.json
CHANGED