@everymatrix/casino-tournaments-thumbnail-controller 1.86.20 → 1.86.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/components/{CasinoTournamentsThumbnail-DgXXegVa.cjs → CasinoTournamentsThumbnail-BAYzooHN.cjs} +1 -1
  2. package/components/{CasinoTournamentsThumbnail-J7Of-3j4.js → CasinoTournamentsThumbnail-BnrB69DF.js} +1 -1
  3. package/components/{CasinoTournamentsThumbnail-Cm8ygS_j.js → CasinoTournamentsThumbnail-D47Qv9lY.js} +1 -1
  4. package/components/{CasinoTournamentsThumbnailController-C9HfK_wl.js → CasinoTournamentsThumbnailController-C3TVniDS.js} +5 -5
  5. package/components/{CasinoTournamentsThumbnailController-BKKPM9HU.cjs → CasinoTournamentsThumbnailController-CFdG2yXJ.cjs} +2 -2
  6. package/components/{CasinoTournamentsThumbnailController-D-_PX24h.js → CasinoTournamentsThumbnailController-D9T04QTV.js} +5 -5
  7. package/components/{CasinoTournamentsThumbnailDuration-DMSfakAi.js → CasinoTournamentsThumbnailDuration-CbNPC39T.js} +1 -1
  8. package/components/{CasinoTournamentsThumbnailDuration-ShCMXlPG.js → CasinoTournamentsThumbnailDuration-CoEDUPxg.js} +1 -1
  9. package/components/{CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs → CasinoTournamentsThumbnailDuration-mlFNoFP9.cjs} +1 -1
  10. package/components/{CasinoTournamentsThumbnailGamesSlider-ibJs3W4L.cjs → CasinoTournamentsThumbnailGamesSlider-CdnE3qgy.cjs} +1 -1
  11. package/components/{CasinoTournamentsThumbnailGamesSlider-DG5ZjCyH.js → CasinoTournamentsThumbnailGamesSlider-D9B0UieN.js} +2 -2
  12. package/components/{CasinoTournamentsThumbnailGamesSlider-CgSb6Nuy.js → CasinoTournamentsThumbnailGamesSlider-DJdrH_zq.js} +2 -2
  13. package/components/{CasinoTournamentsThumbnailPrizes-CEvbFf9m.js → CasinoTournamentsThumbnailPrizes-BpKWo9dv.js} +1 -1
  14. package/components/{CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js → CasinoTournamentsThumbnailPrizes-Cl2foZul.js} +1 -1
  15. package/components/{CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs → CasinoTournamentsThumbnailPrizes-CnYr15oP.cjs} +1 -1
  16. package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
  17. package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
  18. package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
  19. package/package.json +1 -1
@@ -2,4 +2,4 @@
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,be.MISSING_INTL_API,a);var U=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));C=h.options[U]||h.options.other}if(!C)throw new wt(h.value,m,Object.keys(h.options),a);o.push.apply(o,Me(C.value,t,r,n,i,m-(h.offset||0)));continue}}return ni(o)}function si(e,t){return t?Q(Q(Q({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=Q(Q({},e[n]),t[n]||{}),r},{})):e}function ai(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=si(e[n],t[n]),r},Q({},e)):e}function Ye(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function oi(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Xe([void 0],r,!1)))},{cache:Ye(e.number),strategy:qe.variadic}),getDateTimeFormat:Ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Xe([void 0],r,!1)))},{cache:Ye(e.dateTime),strategy:qe.variadic}),getPluralRules:Ze(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Xe([void 0],r,!1)))},{cache:Ye(e.pluralRules),strategy:qe.variadic})}}var ui=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(c,m){return!c.length||m.type!==k.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(l){return Me(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=pn(a,["formatters"]);this.ast=e.__parse(t,Q(Q({},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=ai(e.formats,n),this.formatters=i&&i.formatters||oi(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=ei,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 li(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 ne={},hi=(e,t,r)=>r&&(t in ne||(ne[t]={}),e in ne[t]||(ne[t][e]=r),r),dr=(e,t)=>{if(t==null)return;if(t in ne&&e in ne[t])return ne[t][e];const r=Ve(t);for(let n=0;n<r.length;n++){const i=r[n],s=fi(i,e);if(s)return hi(e,t,s)}};let ct;const oe=Ge({});function ci(e){return ct[e]||null}function br(e){return e in ct}function fi(e,t){if(!br(e))return null;const r=ci(e);return li(r,t)}function mi(e){if(e==null)return;const t=Ve(e);for(let r=0;r<t.length;r++){const n=t[r];if(br(n))return n}}function ft(e,...t){delete ne[e],oe.update(r=>(r[e]=gn.all([r[e]||{},...t]),r))}_e([oe],([e])=>Object.keys(e));oe.subscribe(e=>ct=e);const Pe={};function di(e,t){Pe[e].delete(t),Pe[e].size===0&&delete Pe[e]}function gr(e){return Pe[e]}function bi(e){return Ve(e).map(t=>{const r=gr(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function ut(e){return e==null?!1:Ve(e).some(t=>{var r;return(r=gr(t))==null?void 0:r.size})}function gi(e,t){return Promise.all(t.map(n=>(di(e,n),n().then(i=>i.default||i)))).then(n=>ft(e,...n))}const xe={};function pr(e){if(!ut(e))return e in xe?xe[e]:Promise.resolve();const t=bi(e);return xe[e]=Promise.all(t.map(([r,n])=>gi(r,n))).then(()=>{if(ut(e))return pr(e);delete xe[e]}),xe[e]}const pi={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"}}},yi={fallbackLocale:null,loadingDelay:200,formats:pi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},_i=yi;function ge(){return _i}const Ke=Ge(!1);var vi=Object.defineProperty,Ei=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,It=(e,t,r)=>t in e?vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ai=(e,t)=>{for(var r in t||(t={}))Si.call(t,r)&&It(e,r,t[r]);if(Bt)for(var r of Bt(t))Ti.call(t,r)&&It(e,r,t[r]);return e},Hi=(e,t)=>Ei(e,xi(t));let lt;const Ue=Ge(null);function Ot(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ve(e,t=ge().fallbackLocale){const r=Ot(e);return t?[...new Set([...r,...Ot(t)])]:r}function ue(){return lt!=null?lt:void 0}Ue.subscribe(e=>{lt=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ci=e=>{if(e&&mi(e)&&ut(e)){const{loadingDelay:t}=ge();let r;return typeof window!="undefined"&&ue()!=null&&t?r=window.setTimeout(()=>Ke.set(!0),t):Ke.set(!0),pr(e).then(()=>{Ue.set(e)}).finally(()=>{clearTimeout(r),Ke.set(!1)})}return Ue.set(e)},K=Hi(Ai({},Ue),{set:Ci}),ze=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var wi=Object.defineProperty,Fe=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Nt=(e,t,r)=>t in e?wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mt=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&Nt(e,r,t[r]);if(Fe)for(var r of Fe(t))_r.call(t,r)&&Nt(e,r,t[r]);return e},ve=(e,t)=>{var r={};for(var n in e)yr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Fe)for(var n of Fe(e))t.indexOf(n)<0&&_r.call(e,n)&&(r[n]=e[n]);return r};const He=(e,t)=>{const{formats:r}=ge();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Bi=ze(e=>{var t=e,{locale:r,format:n}=t,i=ve(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=He("number",n)),new Intl.NumberFormat(r,i)}),Ii=ze(e=>{var t=e,{locale:r,format:n}=t,i=ve(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=He("date",n):Object.keys(i).length===0&&(i=He("date","short")),new Intl.DateTimeFormat(r,i)}),Oi=ze(e=>{var t=e,{locale:r,format:n}=t,i=ve(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=He("time",n):Object.keys(i).length===0&&(i=He("time","short")),new Intl.DateTimeFormat(r,i)}),Ni=(e={})=>{var t=e,{locale:r=ue()}=t,n=ve(t,["locale"]);return Bi(mt({locale:r},n))},Mi=(e={})=>{var t=e,{locale:r=ue()}=t,n=ve(t,["locale"]);return Ii(mt({locale:r},n))},Pi=(e={})=>{var t=e,{locale:r=ue()}=t,n=ve(t,["locale"]);return Oi(mt({locale:r},n))},Li=ze((e,t=ue())=>new ui(e,t,ge().formats,{ignoreTag:ge().ignoreTag})),Ri=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=ue(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=dr(e,l);if(!h)h=(s=(i=(n=(r=ge()).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 c=h;try{c=Li(h,l).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},Di=(e,t)=>Pi(t).format(e),ki=(e,t)=>Mi(t).format(e),Ui=(e,t)=>Ni(t).format(e),Fi=(e,t=ue())=>dr(e,t),vr=_e([K,oe],()=>Ri);_e([K],()=>Di);_e([K],()=>ki);_e([K],()=>Ui);_e([K,oe],()=>Fi);function Er(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function xr(e,t){if(!e||!t)return;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 Sr(e,t,r){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(t,i=>{n.innerHTML=i,e&&e.appendChild(n)})}}function Gi({withLocale:e,translations:t}){K.subscribe(r=>{r==null&&(oe.set(t),K.set(e))})}function Mt(e,t){ft(e,t)}function $i(e){K.set(e)}const Pt={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 ji(e){Vt(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 Lt(e){let t,r,n;return{c(){t=T("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',r=X(),n=T("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>',d(t,"class","Skeleton CardImg"),d(n,"class","Details"),d(n,"part","Details")},m(i,s){L(i,t,s),L(i,r,s),L(i,n,s)},d(i){i&&(B(t),B(r),B(n))}}}function Rt(e){let t,r,n,i,s,a,o,l,u,h,c=e[14]("scoreCriteria")+"",m,v,y,A,I,F=e[14]("minbet")+"",R,C,U,D,O,z,J,q=e[14]("seegames")+"",Y,Ce,$,te=e[14]("here")+"",ie,re,Ee,we,w=e[0]&&Dt(e),N=e[6]=="true"&&kt(e);function f(b,E){return b[3]?zi:Vi}let W=f(e),j=W(e),M=e[2]&&Ft(e);return{c(){w&&w.c(),t=X(),N&&N.c(),r=X(),j.c(),n=X(),i=T("div"),s=T("div"),a=P(e[1]),o=X(),M&&M.c(),l=X(),u=T("div"),h=T("p"),m=P(c),v=P(`:
4
4
  `),y=T("span"),A=P(e[12]),I=P(`
5
- (`),R=P(F),C=X(),U=P(e[5]),D=P(")"),O=X(),z=T("div"),J=T("p"),Y=P(q),Ce=X(),$=T("a"),ie=P(te),d(s,"class","Title"),d(s,"part","Title"),d(y,"part","ScoreCriteriaSpan"),d(h,"part","ScoreCriteriaP"),d(u,"class","ScoreCriteria"),d(u,"part","ScoreCriteria"),d($,"part","GamesAnchor"),d($,"href",e[7]),d($,"target",re=e[8]==="true"?"_self":"_blank"),d(J,"part","GamesP"),d(z,"class","Games"),d(z,"part","Games"),d(i,"class","Details"),d(i,"part","Details")},m(b,E){w&&w.m(b,E),L(b,t,E),N&&N.m(b,E),L(b,r,E),j.m(b,E),L(b,n,E),L(b,i,E),_(i,s),_(s,a),_(i,o),M&&M.m(i,null),_(i,l),_(i,u),_(u,h),_(h,m),_(h,v),_(h,y),_(y,A),_(h,I),_(h,R),_(h,C),_(h,U),_(h,D),_(i,O),_(i,z),_(z,J),_(J,Y),_(J,Ce),_(J,$),_($,ie),Ee||(we=[ae(s,"click",e[19]),ye(e[17].call(null,y)),ae($,"click",e[18])],Ee=!0)},p(b,E){b[0]?w?w.p(b,E):(w=Dt(b),w.c(),w.m(t.parentNode,t)):w&&(w.d(1),w=null),b[6]=="true"?N?N.p(b,E):(N=kt(b),N.c(),N.m(r.parentNode,r)):N&&(N.d(1),N=null),W===(W=f(b))&&j?j.p(b,E):(j.d(1),j=W(b),j&&(j.c(),j.m(n.parentNode,n))),E[0]&2&&Z(a,b[1]),b[2]?M?M.p(b,E):(M=Ft(b),M.c(),M.m(i,l)):M&&(M.d(1),M=null),E[0]&16384&&c!==(c=b[14]("scoreCriteria")+"")&&Z(m,c),E[0]&4096&&Z(A,b[12]),E[0]&16384&&F!==(F=b[14]("minbet")+"")&&Z(R,F),E[0]&32&&Z(U,b[5]),E[0]&16384&&q!==(q=b[14]("seegames")+"")&&Z(Y,q),E[0]&16384&&te!==(te=b[14]("here")+"")&&Z(ie,te),E[0]&128&&d($,"href",b[7]),E[0]&256&&re!==(re=b[8]==="true"?"_self":"_blank")&&d($,"target",re)},d(b){b&&(B(t),B(r),B(n),B(i)),w&&w.d(b),N&&N.d(b),j.d(b),M&&M.d(),Ee=!1,ee(we)}}}function Dt(e){let t,r,n,i,s,a;return{c(){t=T("div"),r=P(e[11]),d(t,"class",n="Status "+e[13]),d(t,"part",i="Status "+e[13])},m(o,l){L(o,t,l),_(t,r),s||(a=ye(e[16].call(null,t)),s=!0)},p(o,l){l[0]&2048&&Z(r,o[11]),l[0]&8192&&n!==(n="Status "+o[13])&&d(t,"class",n),l[0]&8192&&i!==(i="Status "+o[13])&&d(t,"part",i)},d(o){o&&B(t),s=!1,a()}}}function kt(e){let t,r=e[4]&&Ut(e);return{c(){r&&r.c(),t=zt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[4]?r?r.p(n,i):(r=Ut(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&B(t),r&&r.d(n)}}}function Ut(e){let t,r=e[14]("enrolled")+"",n;return{c(){t=T("div"),n=P(r),d(t,"class","Enrolled"),d(t,"part","Enrolled")},m(i,s){L(i,t,s),_(t,n)},p(i,s){s[0]&16384&&r!==(r=i[14]("enrolled")+"")&&Z(n,r)},d(i){i&&B(t)}}}function Vi(e){let t,r,n,i,s,a,o;return{c(){t=T("div"),r=T("ui-image"),Le(r.src,n="https://i.stack.imgur.com/y9DpT.jpg")||se(r,"src",n),se(r,"alt","icon"),d(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),d(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){L(l,t,u),_(t,r),a||(o=[ye(e[16].call(null,t)),ae(t,"click",e[19])],a=!0)},p(l,u){u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"part",s)},d(l){l&&B(t),a=!1,ee(o)}}}function zi(e){let t,r,n,i,s,a,o;return{c(){t=T("div"),r=T("ui-image"),se(r,"class","UIImage"),Le(r.src,n=e[3])||se(r,"src",n),se(r,"alt","icon"),d(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),d(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){L(l,t,u),_(t,r),a||(o=[ye(e[16].call(null,t)),ae(t,"click",e[19])],a=!0)},p(l,u){u[0]&8&&!Le(r.src,n=l[3])&&se(r,"src",n),u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"part",s)},d(l){l&&B(t),a=!1,ee(o)}}}function Ft(e){let t,r,n,i,s;return{c(){t=T("div"),r=P(e[10]),d(t,"class","Date"),d(t,"part","Date")},m(a,o){L(a,t,o),_(t,r),i||(s=ye(n=e[15].call(null,t,e[2])),i=!0)},p(a,o){o[0]&1024&&Z(r,a[10]),n&&pe(n.update)&&o[0]&4&&n.update.call(null,a[2])},d(a){a&&B(t),i=!1,s()}}}function Ji(e){let t,r,n,i=e[1]==="undefined"&&Lt(),s=e[1]!=="undefined"&&Rt(e);return{c(){t=T("div"),i&&i.c(),r=X(),s&&s.c(),d(t,"class",n=`Thumbnail ${e[1]==="undefined"?"Loading":""}`),d(t,"part","Thumbnail")},m(a,o){L(a,t,o),i&&i.m(t,null),_(t,r),s&&s.m(t,null),e[29](t)},p(a,o){a[1]==="undefined"?i||(i=Lt(),i.c(),i.m(t,r)):i&&(i.d(1),i=null),a[1]!=="undefined"?s?s.p(a,o):(s=Rt(a),s.c(),s.m(t,null)):s&&(s.d(1),s=null),o[0]&2&&n!==(n=`Thumbnail ${a[1]==="undefined"?"Loading":""}`)&&d(t,"class",n)},i:G,o:G,d(a){a&&B(t),i&&i.d(),s&&s.d(),e[29](null)}}}function Wi(e,t,r){let n;jt(e,vr,f=>r(14,n=f));let{userid:i=""}=t,{title:s=""}=t,{startdate:a=""}=t,{status:o=""}=t,{tourid:l=""}=t,{thumbnail:u=""}=t,{userenrolled:h=""}=t,{scorecriteria:c=""}=t,{minbetcount:m=""}=t,{showenrolled:v="false"}=t,{detailsevent:y=""}=t,{gameurl:A=""}=t,{lang:I="en"}=t,{keepbrowsercontext:F="false"}=t,{clientstyling:R=""}=t,{clientstylingurl:C=""}=t,{translationurl:U=""}=t,{mbsource:D}=t,O,z="",J="",q="",Y="";Gi({withLocale:"en",translations:{}});const Ce=()=>{fetch(U).then(f=>f.json()).then(f=>{Object.keys(f).forEach(W=>{Mt(W,f[W])}),a&&w()}).catch(f=>{console.log(f)})};Object.keys(Pt).forEach(f=>{Mt(f,Pt[f])});const $=f=>{f.data&&f.data.type==`TournamentStatus_${l}`&&r(0,o=f.data.status)},te=()=>{const f={month:"long"};let W=new Date(a),j=new Intl.DateTimeFormat("en",f).format(W),M=W.getDate(),b=W.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const E=()=>n(o==="Running"?"startedAt":"startingAt");r(10,z=`${M} `+n(`${j}`)+", "+E()+` ${b}`)},ie=()=>{o=="Unstarted"&&(r(11,J=n("scheduled")),r(13,Y="StatusUnstarted")),o=="Running"&&(r(11,J=n("ongoing")),r(13,Y="StatusRunning")),(o=="Closed"||o=="Closing")&&r(11,J=n("finished")),o=="Closed"&&r(13,Y="StatusClosed"),o=="Closing"&&r(13,Y="StatusClosing")},re=()=>{c=="BetCount"&&r(12,q=n("betCount")),c=="MaxWinStakeRatio"&&r(12,q=n("maxWinStakeRatio")),c=="WinStakeRatio"&&r(12,q=n("winStakeRatio")),c=="Stake"&&r(12,q=n("stake"))},Ee=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:l},window.location.href)},we=()=>{y&&window.postMessage({type:y,tournamentId:l,showLeaderboard:!0},window.location.href)};Jt(()=>(setTimeout(()=>w(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$)}));const w=()=>{$i(I),re(),ie(),a&&te()};function N(f){Re[f?"unshift":"push"](()=>{O=f,r(9,O)})}return e.$$set=f=>{"userid"in f&&r(20,i=f.userid),"title"in f&&r(1,s=f.title),"startdate"in f&&r(2,a=f.startdate),"status"in f&&r(0,o=f.status),"tourid"in f&&r(21,l=f.tourid),"thumbnail"in f&&r(3,u=f.thumbnail),"userenrolled"in f&&r(4,h=f.userenrolled),"scorecriteria"in f&&r(22,c=f.scorecriteria),"minbetcount"in f&&r(5,m=f.minbetcount),"showenrolled"in f&&r(6,v=f.showenrolled),"detailsevent"in f&&r(23,y=f.detailsevent),"gameurl"in f&&r(7,A=f.gameurl),"lang"in f&&r(24,I=f.lang),"keepbrowsercontext"in f&&r(8,F=f.keepbrowsercontext),"clientstyling"in f&&r(25,R=f.clientstyling),"clientstylingurl"in f&&r(26,C=f.clientstylingurl),"translationurl"in f&&r(27,U=f.translationurl),"mbsource"in f&&r(28,D=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&33554944&&R&&O&&Er(O,R),e.$$.dirty[0]&67109376&&C&&O&&xr(O,C),e.$$.dirty[0]&268435968&&D&&O&&Sr(O,`${D}.Style`),e.$$.dirty[0]&134217728&&U&&Ce(),e.$$.dirty[0]&1&&o&&ie(),e.$$.dirty[0]&16777218&&s&&I&&w(),e.$$.dirty[0]&4&&a&&te(),e.$$.dirty[0]&4194304&&c&&re()},[o,s,a,u,h,m,v,A,F,O,z,J,q,Y,n,te,ie,re,Ee,we,i,l,c,y,I,R,C,U,D,N]}class Tr extends qt{constructor(t){super(),Wt(this,t,Wi,Ji,ht,{userid:20,title:1,startdate:2,status:0,tourid:21,thumbnail:3,userenrolled:4,scorecriteria:22,minbetcount:5,showenrolled:6,detailsevent:23,gameurl:7,lang:24,keepbrowsercontext:8,clientstyling:25,clientstylingurl:26,translationurl:27,mbsource:28},ji,[-1,-1])}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),H()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),H()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),H()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),H()}get tourid(){return this.$$.ctx[21]}set tourid(t){this.$$set({tourid:t}),H()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),H()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),H()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(t){this.$$set({scorecriteria:t}),H()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),H()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),H()}get detailsevent(){return this.$$.ctx[23]}set detailsevent(t){this.$$set({detailsevent:t}),H()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),H()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),H()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),H()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),H()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),H()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),H()}get mbsource(){return this.$$.ctx[28]}set mbsource(t){this.$$set({mbsource:t}),H()}}Zt(Tr,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const Xi=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=oe;exports.$format=vr;exports.$locale=K;exports.CasinoTournamentsThumbnail_ce=Xi;exports.SvelteComponent=qt;exports.action_destroyer=ye;exports.addMessages=ft;exports.add_iframe_resize_listener=kr;exports.add_render_callback=De;exports.append=_;exports.append_styles=Vt;exports.attr=d;exports.binding_callbacks=Re;exports.component_subscribe=jt;exports.create_custom_element=Zt;exports.destroy_each=Mr;exports.detach=B;exports.element=T;exports.empty=zt;exports.ensure_array_like=Xr;exports.flush=H;exports.init=Wt;exports.insert=L;exports.is_function=pe;exports.listen=ae;exports.noop=G;exports.onMount=Jt;exports.run_all=ee;exports.safe_not_equal=ht;exports.setClientStyling=Er;exports.setClientStylingURL=xr;exports.setStreamStyling=Sr;exports.set_custom_element_data=se;exports.set_data=Z;exports.set_style=Rr;exports.space=X;exports.src_url_equal=Le;exports.svg_element=Pr;exports.text=P;exports.toggle_class=Ur;
5
+ (`),R=P(F),C=X(),U=P(e[5]),D=P(")"),O=X(),z=T("div"),J=T("p"),Y=P(q),Ce=X(),$=T("a"),ie=P(te),d(s,"class","Title"),d(s,"part","Title"),d(y,"part","ScoreCriteriaSpan"),d(h,"part","ScoreCriteriaP"),d(u,"class","ScoreCriteria"),d(u,"part","ScoreCriteria"),d($,"part","GamesAnchor"),d($,"href",e[7]),d($,"target",re=e[8]==="true"?"_self":"_blank"),d(J,"part","GamesP"),d(z,"class","Games"),d(z,"part","Games"),d(i,"class","Details"),d(i,"part","Details")},m(b,E){w&&w.m(b,E),L(b,t,E),N&&N.m(b,E),L(b,r,E),j.m(b,E),L(b,n,E),L(b,i,E),_(i,s),_(s,a),_(i,o),M&&M.m(i,null),_(i,l),_(i,u),_(u,h),_(h,m),_(h,v),_(h,y),_(y,A),_(h,I),_(h,R),_(h,C),_(h,U),_(h,D),_(i,O),_(i,z),_(z,J),_(J,Y),_(J,Ce),_(J,$),_($,ie),Ee||(we=[ae(s,"click",e[19]),ye(e[17].call(null,y)),ae($,"click",e[18])],Ee=!0)},p(b,E){b[0]?w?w.p(b,E):(w=Dt(b),w.c(),w.m(t.parentNode,t)):w&&(w.d(1),w=null),b[6]=="true"?N?N.p(b,E):(N=kt(b),N.c(),N.m(r.parentNode,r)):N&&(N.d(1),N=null),W===(W=f(b))&&j?j.p(b,E):(j.d(1),j=W(b),j&&(j.c(),j.m(n.parentNode,n))),E[0]&2&&Z(a,b[1]),b[2]?M?M.p(b,E):(M=Ft(b),M.c(),M.m(i,l)):M&&(M.d(1),M=null),E[0]&16384&&c!==(c=b[14]("scoreCriteria")+"")&&Z(m,c),E[0]&4096&&Z(A,b[12]),E[0]&16384&&F!==(F=b[14]("minbet")+"")&&Z(R,F),E[0]&32&&Z(U,b[5]),E[0]&16384&&q!==(q=b[14]("seegames")+"")&&Z(Y,q),E[0]&16384&&te!==(te=b[14]("here")+"")&&Z(ie,te),E[0]&128&&d($,"href",b[7]),E[0]&256&&re!==(re=b[8]==="true"?"_self":"_blank")&&d($,"target",re)},d(b){b&&(B(t),B(r),B(n),B(i)),w&&w.d(b),N&&N.d(b),j.d(b),M&&M.d(),Ee=!1,ee(we)}}}function Dt(e){let t,r,n,i,s,a;return{c(){t=T("div"),r=P(e[11]),d(t,"class",n="Status "+e[13]),d(t,"part",i="Status "+e[13])},m(o,l){L(o,t,l),_(t,r),s||(a=ye(e[16].call(null,t)),s=!0)},p(o,l){l[0]&2048&&Z(r,o[11]),l[0]&8192&&n!==(n="Status "+o[13])&&d(t,"class",n),l[0]&8192&&i!==(i="Status "+o[13])&&d(t,"part",i)},d(o){o&&B(t),s=!1,a()}}}function kt(e){let t,r=e[4]&&Ut(e);return{c(){r&&r.c(),t=zt()},m(n,i){r&&r.m(n,i),L(n,t,i)},p(n,i){n[4]?r?r.p(n,i):(r=Ut(n),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(n){n&&B(t),r&&r.d(n)}}}function Ut(e){let t,r=e[14]("enrolled")+"",n;return{c(){t=T("div"),n=P(r),d(t,"class","Enrolled"),d(t,"part","Enrolled")},m(i,s){L(i,t,s),_(t,n)},p(i,s){s[0]&16384&&r!==(r=i[14]("enrolled")+"")&&Z(n,r)},d(i){i&&B(t)}}}function Vi(e){let t,r,n,i,s,a,o;return{c(){t=T("div"),r=T("ui-image"),Le(r.src,n="https://i.stack.imgur.com/y9DpT.jpg")||se(r,"src",n),se(r,"alt","icon"),d(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),d(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){L(l,t,u),_(t,r),a||(o=[ye(e[16].call(null,t)),ae(t,"click",e[19])],a=!0)},p(l,u){u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"part",s)},d(l){l&&B(t),a=!1,ee(o)}}}function zi(e){let t,r,n,i,s,a,o;return{c(){t=T("div"),r=T("ui-image"),se(r,"class","UIImage"),Le(r.src,n=e[3])||se(r,"src",n),se(r,"alt","icon"),d(t,"class",i="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":"")),d(t,"part",s="CardImg "+(e[0]=="Closing"||e[0]=="Closed"?"CardImgFinished":""))},m(l,u){L(l,t,u),_(t,r),a||(o=[ye(e[16].call(null,t)),ae(t,"click",e[19])],a=!0)},p(l,u){u[0]&8&&!Le(r.src,n=l[3])&&se(r,"src",n),u[0]&1&&i!==(i="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"class",i),u[0]&1&&s!==(s="CardImg "+(l[0]=="Closing"||l[0]=="Closed"?"CardImgFinished":""))&&d(t,"part",s)},d(l){l&&B(t),a=!1,ee(o)}}}function Ft(e){let t,r,n,i,s;return{c(){t=T("div"),r=P(e[10]),d(t,"class","Date"),d(t,"part","Date")},m(a,o){L(a,t,o),_(t,r),i||(s=ye(n=e[15].call(null,t,e[2])),i=!0)},p(a,o){o[0]&1024&&Z(r,a[10]),n&&pe(n.update)&&o[0]&4&&n.update.call(null,a[2])},d(a){a&&B(t),i=!1,s()}}}function Ji(e){let t,r,n,i=e[1]==="undefined"&&Lt(),s=e[1]!=="undefined"&&Rt(e);return{c(){t=T("div"),i&&i.c(),r=X(),s&&s.c(),d(t,"class",n=`Thumbnail ${e[1]==="undefined"?"Loading":""}`),d(t,"part","Thumbnail")},m(a,o){L(a,t,o),i&&i.m(t,null),_(t,r),s&&s.m(t,null),e[29](t)},p(a,o){a[1]==="undefined"?i||(i=Lt(),i.c(),i.m(t,r)):i&&(i.d(1),i=null),a[1]!=="undefined"?s?s.p(a,o):(s=Rt(a),s.c(),s.m(t,null)):s&&(s.d(1),s=null),o[0]&2&&n!==(n=`Thumbnail ${a[1]==="undefined"?"Loading":""}`)&&d(t,"class",n)},i:G,o:G,d(a){a&&B(t),i&&i.d(),s&&s.d(),e[29](null)}}}function Wi(e,t,r){let n;jt(e,vr,f=>r(14,n=f));let{userid:i=""}=t,{title:s=""}=t,{startdate:a=""}=t,{status:o=""}=t,{tourid:l=""}=t,{thumbnail:u=""}=t,{userenrolled:h=""}=t,{scorecriteria:c=""}=t,{minbetcount:m=""}=t,{showenrolled:v="false"}=t,{detailsevent:y=""}=t,{gameurl:A=""}=t,{lang:I="en"}=t,{keepbrowsercontext:F="false"}=t,{clientstyling:R=""}=t,{clientstylingurl:C=""}=t,{translationurl:U=""}=t,{mbsource:D}=t,O,z="",J="",q="",Y="";Gi({withLocale:"en",translations:{}});const Ce=()=>{fetch(U).then(f=>f.json()).then(f=>{Object.keys(f).forEach(W=>{Mt(W,f[W])}),a&&w()}).catch(f=>{console.log(f)})};Object.keys(Pt).forEach(f=>{Mt(f,Pt[f])});const $=f=>{f.data&&f.data.type==`TournamentStatus_${l}`&&r(0,o=f.data.status)},te=()=>{const f={month:"long"};let W=new Date(a),j=new Intl.DateTimeFormat("en",f).format(W),M=W.getDate(),b=W.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const E=()=>n(o==="Unstarted"?"startingAt":"startedAt");r(10,z=`${M} `+n(`${j}`)+", "+E()+` ${b}`)},ie=()=>{o=="Unstarted"&&(r(11,J=n("scheduled")),r(13,Y="StatusUnstarted")),o=="Running"&&(r(11,J=n("ongoing")),r(13,Y="StatusRunning")),(o=="Closed"||o=="Closing")&&r(11,J=n("finished")),o=="Closed"&&r(13,Y="StatusClosed"),o=="Closing"&&r(13,Y="StatusClosing")},re=()=>{c=="BetCount"&&r(12,q=n("betCount")),c=="MaxWinStakeRatio"&&r(12,q=n("maxWinStakeRatio")),c=="WinStakeRatio"&&r(12,q=n("winStakeRatio")),c=="Stake"&&r(12,q=n("stake"))},Ee=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:l},window.location.href)},we=()=>{y&&window.postMessage({type:y,tournamentId:l,showLeaderboard:!0},window.location.href)};Jt(()=>(setTimeout(()=>w(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$)}));const w=()=>{$i(I),re(),ie(),a&&te()};function N(f){Re[f?"unshift":"push"](()=>{O=f,r(9,O)})}return e.$$set=f=>{"userid"in f&&r(20,i=f.userid),"title"in f&&r(1,s=f.title),"startdate"in f&&r(2,a=f.startdate),"status"in f&&r(0,o=f.status),"tourid"in f&&r(21,l=f.tourid),"thumbnail"in f&&r(3,u=f.thumbnail),"userenrolled"in f&&r(4,h=f.userenrolled),"scorecriteria"in f&&r(22,c=f.scorecriteria),"minbetcount"in f&&r(5,m=f.minbetcount),"showenrolled"in f&&r(6,v=f.showenrolled),"detailsevent"in f&&r(23,y=f.detailsevent),"gameurl"in f&&r(7,A=f.gameurl),"lang"in f&&r(24,I=f.lang),"keepbrowsercontext"in f&&r(8,F=f.keepbrowsercontext),"clientstyling"in f&&r(25,R=f.clientstyling),"clientstylingurl"in f&&r(26,C=f.clientstylingurl),"translationurl"in f&&r(27,U=f.translationurl),"mbsource"in f&&r(28,D=f.mbsource)},e.$$.update=()=>{e.$$.dirty[0]&33554944&&R&&O&&Er(O,R),e.$$.dirty[0]&67109376&&C&&O&&xr(O,C),e.$$.dirty[0]&268435968&&D&&O&&Sr(O,`${D}.Style`),e.$$.dirty[0]&134217728&&U&&Ce(),e.$$.dirty[0]&1&&o&&ie(),e.$$.dirty[0]&16777218&&s&&I&&w(),e.$$.dirty[0]&4&&a&&te(),e.$$.dirty[0]&4194304&&c&&re()},[o,s,a,u,h,m,v,A,F,O,z,J,q,Y,n,te,ie,re,Ee,we,i,l,c,y,I,R,C,U,D,N]}class Tr extends qt{constructor(t){super(),Wt(this,t,Wi,Ji,ht,{userid:20,title:1,startdate:2,status:0,tourid:21,thumbnail:3,userenrolled:4,scorecriteria:22,minbetcount:5,showenrolled:6,detailsevent:23,gameurl:7,lang:24,keepbrowsercontext:8,clientstyling:25,clientstylingurl:26,translationurl:27,mbsource:28},ji,[-1,-1])}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),H()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),H()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),H()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),H()}get tourid(){return this.$$.ctx[21]}set tourid(t){this.$$set({tourid:t}),H()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),H()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),H()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(t){this.$$set({scorecriteria:t}),H()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),H()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),H()}get detailsevent(){return this.$$.ctx[23]}set detailsevent(t){this.$$set({detailsevent:t}),H()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),H()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),H()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),H()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),H()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),H()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),H()}get mbsource(){return this.$$.ctx[28]}set mbsource(t){this.$$set({mbsource:t}),H()}}Zt(Tr,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const Xi=Object.freeze(Object.defineProperty({__proto__:null,default:Tr},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=oe;exports.$format=vr;exports.$locale=K;exports.CasinoTournamentsThumbnail_ce=Xi;exports.SvelteComponent=qt;exports.action_destroyer=ye;exports.addMessages=ft;exports.add_iframe_resize_listener=kr;exports.add_render_callback=De;exports.append=_;exports.append_styles=Vt;exports.attr=d;exports.binding_callbacks=Re;exports.component_subscribe=jt;exports.create_custom_element=Zt;exports.destroy_each=Mr;exports.detach=B;exports.element=T;exports.empty=zt;exports.ensure_array_like=Xr;exports.flush=H;exports.init=Wt;exports.insert=L;exports.is_function=pe;exports.listen=ae;exports.noop=G;exports.onMount=Jt;exports.run_all=ee;exports.safe_not_equal=ht;exports.setClientStyling=Er;exports.setClientStylingURL=xr;exports.setStreamStyling=Sr;exports.set_custom_element_data=se;exports.set_data=Z;exports.set_style=Rr;exports.space=X;exports.src_url_equal=Le;exports.svg_element=Pr;exports.text=P;exports.toggle_class=Ur;
@@ -4505,7 +4505,7 @@ function Ii(e, t, r) {
4505
4505
  minute: "numeric",
4506
4506
  hour12: !1
4507
4507
  });
4508
- const E = () => n(a === "Running" ? "startedAt" : "startingAt");
4508
+ const E = () => n(a === "Unstarted" ? "startingAt" : "startedAt");
4509
4509
  r(10, V = `${P} ` + n(`${$}`) + ", " + E() + ` ${b}`);
4510
4510
  }, ne = () => {
4511
4511
  a == "Unstarted" && (r(11, z = n("scheduled")), r(13, Q = "StatusUnstarted")), a == "Running" && (r(11, z = n("ongoing")), r(13, Q = "StatusRunning")), (a == "Closed" || a == "Closing") && r(11, z = n("finished")), a == "Closed" && r(13, Q = "StatusClosed"), a == "Closing" && r(13, Q = "StatusClosing");
@@ -4542,7 +4542,7 @@ function Gi(e, t, r) {
4542
4542
  minute: "numeric",
4543
4543
  hour12: !1
4544
4544
  });
4545
- const E = () => n(o === "Running" ? "startedAt" : "startingAt");
4545
+ const E = () => n(o === "Unstarted" ? "startingAt" : "startedAt");
4546
4546
  r(10, z = `${P} ` + n(`${$}`) + ", " + E() + ` ${b}`);
4547
4547
  }, ie = () => {
4548
4548
  o == "Unstarted" && (r(11, J = n("scheduled")), r(13, Y = "StatusUnstarted")), o == "Running" && (r(11, J = n("ongoing")), r(13, Y = "StatusRunning")), (o == "Closed" || o == "Closing") && r(11, J = n("finished")), o == "Closed" && r(13, Y = "StatusClosed"), o == "Closing" && r(13, Y = "StatusClosing");
@@ -1,4 +1,4 @@
1
- import { $ as he, a as bt, b as wt, c as yt, S as vt, i as _t, s as kt, f as v, d as St, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Tt, p as Ft, q as Et, r as _e, t as jt, u as O, v as C, w as zt, x as U, y as ke, z as x, A as Pt, B as Bt, C as Ct, D as Ot } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
1
+ import { $ as he, a as bt, b as wt, c as yt, S as vt, i as _t, s as kt, f as v, d as St, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Tt, p as Ft, q as Et, r as _e, t as jt, u as O, v as C, w as zt, x as U, y as ke, z as x, A as Pt, B as Bt, C as Ct, D as Ot } from "./CasinoTournamentsThumbnail-BnrB69DF.js";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -635,7 +635,7 @@ if (typeof window < "u") {
635
635
  }
636
636
  };
637
637
  };
638
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-J7Of-3j4.js").then((t) => t.L).then(({ default: t }) => {
638
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-BnrB69DF.js").then((t) => t.L).then(({ default: t }) => {
639
639
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
640
640
  });
641
641
  }
@@ -651,7 +651,7 @@ if (typeof window < "u") {
651
651
  }
652
652
  };
653
653
  };
654
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-ShCMXlPG.js").then(({ default: t }) => {
654
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-CoEDUPxg.js").then(({ default: t }) => {
655
655
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
656
656
  "casino-tournaments-thumbnail-duration",
657
657
  t.element
@@ -670,7 +670,7 @@ if (typeof window < "u") {
670
670
  }
671
671
  };
672
672
  };
673
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-CEvbFf9m.js").then(({ default: t }) => {
673
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-Cl2foZul.js").then(({ default: t }) => {
674
674
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
675
675
  });
676
676
  }
@@ -686,7 +686,7 @@ if (typeof window < "u") {
686
686
  }
687
687
  };
688
688
  };
689
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-CgSb6Nuy.js").then(
689
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-D9B0UieN.js").then(
690
690
  ({ default: t }) => {
691
691
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
692
692
  "casino-tournaments-thumbnail-games-slider",
@@ -1,4 +1,4 @@
1
- "use strict";var te=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs");/*! *****************************************************************************
1
+ "use strict";var te=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsThumbnail-BAYzooHN.cjs");/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -13,4 +13,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */var re=function(r,t){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])},re(r,t)};function C(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");re(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ie(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}function se(r,t,e){if(arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||t)}function S(r){return typeof r=="function"}function We(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ne=We(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
15
15
  `+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=e}});function ae(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var G=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=ie(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof ne?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=ie(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{je(m)}catch(_){s=s!=null?s:[],_ instanceof ne?s=se(se([],oe(s)),oe(_.errors)):s.push(_)}}}catch(_){i={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}if(s)throw new ne(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)je(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ae(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&ae(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),He=G.EMPTY;function qe(r){return r instanceof G||r&&"closed"in r&&S(r.remove)&&S(r.add)&&S(r.unsubscribe)}function je(r){S(r)?r():r.unsubscribe()}var ot={Promise:void 0},st={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,se([r,t],oe(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function at(r){st.setTimeout(function(){throw r})}function ze(){}function q(r){r()}var Ge=function(r){C(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,qe(e)&&e.add(i)):i.destination=ct,i}return t.create=function(e,i,o){return new le(e,i,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,r.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}(G),lt=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){H(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){H(i)}else H(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},r}(),le=function(r){C(t,r);function t(e,i,o){var s=r.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new lt(a),s}return t}(Ge);function H(r){at(r)}function ut(r){throw r}var ct={closed:!0,next:ze,error:ut,complete:ze},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(r){return r}function mt(r){return r.length===0?dt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Pe=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=pt(t)?t:new le(t,e,i);return q(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Ce(e),new e(function(o,s){var a=new le({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ft]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return mt(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ce(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Ce(r){var t;return(t=r!=null?r:ot.Promise)!==null&&t!==void 0?t:Promise}function ht(r){return r&&S(r.next)&&S(r.error)&&S(r.complete)}function pt(r){return r&&r instanceof Ge||ht(r)&&qe(r)}var _t=We(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ne=function(r){C(t,r);function t(){var e=r.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 i=new Be(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new _t},t.prototype.next=function(e){var i=this;q(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=ie(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;q(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.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(),r.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 i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?He:(this.currentObservers=null,u.push(e),new G(function(){i.currentObservers=null,ae(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Pe;return e.source=this,e},t.create=function(e,i){return new Be(e,i)},t}(Pe),Be=function(r){C(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:He},t}(Ne),Xe={now:function(){return(Xe.delegate||Date).now()},delegate:void 0},gt=function(r){C(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Xe);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!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}(Ne);const xe=[],Oe={},bt=(r,t=0)=>{if(xe.indexOf(r)==-1){const e=new gt(t);Oe[r]=e,xe.push(r)}return Oe[r]};window.emWidgets={topic:bt};const ue=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function wt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function Ae(r,t){n.addMessages(r,t)}function yt(r){n.$locale.set(r)}const De={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-DgXXegVa.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 r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-ibJs3W4L.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function vt(r){n.append_styles(r,"svelte-1oqyfnf",'*,*::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 .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.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 kt(r){let t,e,i,o,s,a,u,c=r[25]&&Le(r);function p(m,_){if(!m[15])return Et;if(m[24]!="Closed"&&m[24]!="Closing")return Ft;if(m[2]=="true")return Tt}let h=p(r),f=h&&h(r),d=(r[18]||r[20])&&Re(r),g=r[3]=="true"&&Ue(r);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),i=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[24]),n.set_custom_element_data(e,"startdate",r[22]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"enddate",r[23]),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,i,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[25]?c?c.p(m,_):(c=Le(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&1024&&n.set_custom_element_data(e,"clientstyling",m[10]),_[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",m[11]),_[0]&4096&&n.set_custom_element_data(e,"translationurl",m[12]),_[0]&16777216&&n.set_custom_element_data(e,"status",m[24]),_[0]&4194304&&n.set_custom_element_data(e,"startdate",m[22]),_[0]&128&&n.set_custom_element_data(e,"lang",m[7]),_[0]&8192&&n.set_custom_element_data(e,"mbsource",m[13]),_[0]&8388608&&n.set_custom_element_data(e,"enddate",m[23]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[18]||m[20]?d?d.p(m,_):(d=Re(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[3]=="true"?g?g.p(m,_):(g=Ue(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(i),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function St(r){let t,e,i;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(),i=n.element("div"),i.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(i,"class","TournamentButtons"),n.attr(i,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,i,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(i))}}}function Le(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[25]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"mbsource",r[13]),n.set_custom_element_data(t,"translationurl",r[12]),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),i||(o=n.action_destroyer(e=r[38].call(null,t,r[25])),i=!0)},p(s,a){a[0]&33554432&&n.set_custom_element_data(t,"tourid",s[25]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&8192&&n.set_custom_element_data(t,"mbsource",s[13]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&33554432&&e.update.call(null,s[25])},d(s){s&&n.detach(t),i=!1,o()}}}function Tt(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ft(r){let t,e,i=r[2]=="true"&&Ie(r);function o(u,c){return u[27]?zt:jt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[2]=="true"?i?i.p(u,c):(i=Ie(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function Et(r){let t,e=r[33]("login")+"",i,o,s,a=r[33]("register")+"",u,c,p;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=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,f){n.insert(h,t,f),n.append(t,i),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",r[34]),n.listen(s,"click",r[35])],c=!0)},p(h,f){f[1]&4&&e!==(e=h[33]("login")+"")&&n.set_data(i,e),f[1]&4&&a!==(a=h[33]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Ie(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(r){let t,e,i,o,s;function a(p,h){return p[17]==!0?Ct:Pt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[6]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[6]?"JoinButtonFullSize":"")),t.disabled=r[18]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&64&&e!==(e="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&64&&i!==(i="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),h[0]&262144&&(t.disabled=p[18])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function zt(r){let t,e=r[2]=="true"&&Me(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[2]=="true"?e?e.p(i,o):(e=Me(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Pt(r){let t,e=r[33]("join")+"",i,o,s,a,u,c,p,h;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=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(f,d){n.insert(f,t,d),n.append(t,i),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&4&&e!==(e=f[33]("join")+"")&&n.set_data(i,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function Ct(r){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(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Me(r){let t,e=r[33]("enrolled")+"",i;return{c(){t=n.element("button"),i=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,i)},p(o,s){s[1]&4&&e!==(e=o[33]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Re(r){let t,e=r[33]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[19]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&4&&e!==(e=a[33]("joinerror")+"")&&n.set_data(i,e),u[0]&524288&&n.set_data(s,a[19])},d(a){a&&n.detach(t)}}}function Ue(r){let t,e,i=r[16]&&Je();return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"tournamenturl",r[1]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"lang",r[7]),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){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[16]?i||(i=Je(),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&2&&n.set_custom_element_data(e,"tournamenturl",o[1]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&128&&n.set_custom_element_data(e,"lang",o[7])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function Je(r){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,i){n.insert(e,t,i)},d(e){e&&n.detach(t)}}}function Bt(r){let t,e,i,o,s,a,u;function c(f,d){return f[16]?St:kt}let p=c(r),h=p(r);return{c(){t=n.element("div"),e=n.element("div"),i=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(i,"detailsevent",r[8]),n.set_custom_element_data(i,"userid",r[0]),n.set_custom_element_data(i,"title",r[21]),n.set_custom_element_data(i,"status",r[24]),n.set_custom_element_data(i,"startdate",r[22]),n.set_custom_element_data(i,"tourid",r[25]),n.set_custom_element_data(i,"scorecriteria",r[28]),n.set_custom_element_data(i,"minbetcount",r[29]),n.set_custom_element_data(i,"thumbnail",r[26]),n.set_custom_element_data(i,"showenrolled",r[4]),n.set_custom_element_data(i,"gameurl",r[31]),n.set_custom_element_data(i,"mbsource",r[13]),n.set_custom_element_data(i,"userenrolled",r[27]),n.set_custom_element_data(i,"clientstyling",r[10]),n.set_custom_element_data(i,"clientstylingurl",r[11]),n.set_custom_element_data(i,"translationurl",r[12]),n.set_custom_element_data(i,"lang",r[7]),n.set_custom_element_data(i,"keepbrowsercontext",r[9]),n.set_custom_element_data(i,"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 "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${r[16]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,i),n.append(e,o),h.m(e,null),r[50](t)},p(f,d){d[0]&256&&n.set_custom_element_data(i,"detailsevent",f[8]),d[0]&1&&n.set_custom_element_data(i,"userid",f[0]),d[0]&2097152&&n.set_custom_element_data(i,"title",f[21]),d[0]&16777216&&n.set_custom_element_data(i,"status",f[24]),d[0]&4194304&&n.set_custom_element_data(i,"startdate",f[22]),d[0]&33554432&&n.set_custom_element_data(i,"tourid",f[25]),d[0]&268435456&&n.set_custom_element_data(i,"scorecriteria",f[28]),d[0]&536870912&&n.set_custom_element_data(i,"minbetcount",f[29]),d[0]&67108864&&n.set_custom_element_data(i,"thumbnail",f[26]),d[0]&16&&n.set_custom_element_data(i,"showenrolled",f[4]),d[1]&1&&n.set_custom_element_data(i,"gameurl",f[31]),d[0]&8192&&n.set_custom_element_data(i,"mbsource",f[13]),d[0]&134217728&&n.set_custom_element_data(i,"userenrolled",f[27]),d[0]&1024&&n.set_custom_element_data(i,"clientstyling",f[10]),d[0]&2048&&n.set_custom_element_data(i,"clientstylingurl",f[11]),d[0]&4096&&n.set_custom_element_data(i,"translationurl",f[12]),d[0]&128&&n.set_custom_element_data(i,"lang",f[7]),d[0]&512&&n.set_custom_element_data(i,"keepbrowsercontext",f[9]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&96|d[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&96|d[1]&2&&a!==(a="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&65536&&u!==(u=`${f[16]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),r[50](null)}}}function xt(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(33,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:ce=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:N=""}=t,{keepbrowsercontext:fe="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:X}=t,v,F=!1,R="",E=!0,de=window.navigator.userAgent,U=!1,J=!1,me="There was an error while trying to join the tournament",Y=!1,K,he,pe,j,k,_e,V,ge,be,we=[],Z=[],ye="#",W=!1;wt({withLocale:"en",translations:{}});const Ke=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{Ae(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(De).forEach(l=>{Ae(l,De[l])});const ve=l=>{Ve(l),Q(l),Te(this,k)},ke=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(15,F=!0),R=l.data.session),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ve(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(32,W=u==1),setTimeout(()=>{e(32,W=!0),e(25,k=b.id),ve(b)},y),setTimeout(()=>{e(32,W=!1)},y+200)}},Ve=l=>{l.state!=j&&(e(24,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},Ze=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},Qe=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},$e=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Se=(l,b)=>te(this,null,function*(){var Ee;e(18,J=!1),e(20,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(17,U=!0);let y=new URL(`${c}/v1/bonus/claim`),T=new Headers,$={};y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),T.append("Content-Type","application/json"),T.append("X-SessionID",R),b&&b.length>=1&&($={language:m,bonusCode:b[0].code,currency:N,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify($)};const Fe=()=>{e(17,U=!1),e(27,V=!0)},ee=w=>{e(17,U=!1),w&&e(19,me=w),e(18,J=!0)},P=yield te(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(Dt){ee()}return w});if(P)if(P.success==!0)Fe();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(Ee=w==null?void 0:w.item)!=null&&Ee.playerEnrolled?Fe():(ee(P.errorMessage),e(20,Y=!0),e(18,J=!1))}else ee(P.errorMessage)}),Te=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},Q=l=>{l&&(e(21,K=l.nameOrTitle||""),e(22,he=l.startTime),e(23,pe=l.endTime),e(24,j=l.state),e(25,k=l.id),e(26,_e=l.thumbnail),e(27,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(28,ge=l.scoreCriteria),e(29,be=l.minBetCount),we=l.prizes,e(30,Z=l.wallets||[]),e(31,ye=l.termsUrl||"#"))},et=l=>{e(16,E=!0);const b=l?`${l}/v1/tournaments/${X}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),F&&T.append("X-SessionID",R),fetch(y,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{Q(z.item)}).finally(()=>{e(16,E=!1)})},tt=()=>{e(15,F=(o==null?void 0:o.length)>10),F&&(R=o)},nt=()=>{if(I){Q(I);return}e(16,E=!0),et(c)};n.onMount(()=>(e(16,E=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ke,!1),()=>{window.removeEventListener("message",ke)}));const rt=()=>Se(k,Z);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(14,v)})}return r.$$set=l=>{"session"in l&&e(39,o=l.session),"userid"in l&&e(0,s=l.userid),"tournamenturl"in l&&e(1,a=l.tournamenturl),"touridx"in l&&e(40,u=l.touridx),"endpoint"in l&&e(41,c=l.endpoint),"showdetails"in l&&e(2,p=l.showdetails),"showslider"in l&&e(3,h=l.showslider),"showenrolled"in l&&e(4,f=l.showenrolled),"maxwidth"in l&&e(5,d=l.maxwidth),"fullsize"in l&&e(6,g=l.fullsize),"lang"in l&&e(7,m=l.lang),"loginevent"in l&&e(42,_=l.loginevent),"registerevent"in l&&e(43,B=l.registerevent),"detailsevent"in l&&e(8,ce=l.detailsevent),"loginurl"in l&&e(44,x=l.loginurl),"registerurl"in l&&e(45,O=l.registerurl),"currency"in l&&e(46,N=l.currency),"keepbrowsercontext"in l&&e(9,fe=l.keepbrowsercontext),"clientstyling"in l&&e(10,A=l.clientstyling),"clientstylingurl"in l&&e(11,D=l.clientstylingurl),"translationurl"in l&&e(12,L=l.translationurl),"tournamentinfo"in l&&e(47,I=l.tournamentinfo),"mbsource"in l&&e(13,M=l.mbsource),"tournamentid"in l&&e(48,X=l.tournamentid)},r.$$.update=()=>{r.$$.dirty[0]&128&&m&&yt(m),r.$$.dirty[0]&4096&&L&&Ke(),r.$$.dirty[1]&256&&o&&tt(),r.$$.dirty[0]&130&&a&&m&&nt(),r.$$.dirty[0]&17408&&A&&v&&n.setClientStyling(v,A),r.$$.dirty[0]&18432&&D&&v&&n.setClientStylingURL(v,D),r.$$.dirty[0]&24576&&M&&v&&n.setStreamStyling(v,`${M}.Style`)},[s,a,p,h,f,d,g,m,ce,fe,A,D,L,M,v,F,E,U,J,me,Y,K,he,pe,j,k,_e,V,ge,be,Z,ye,W,i,Ze,Qe,$e,Se,Te,o,u,c,_,B,x,O,N,I,X,rt,it]}class Ye extends n.SvelteComponent{constructor(t){super(),n.init(this,t,xt,Bt,n.safe_not_equal,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},vt,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[1]}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[2]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[7]}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[8]}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[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}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[13]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}}n.create_custom_element(Ye,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Ot;exports.getDevice=ue;
16
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function ae(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var G=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=ie(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof ne?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=ie(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{je(m)}catch(_){s=s!=null?s:[],_ instanceof ne?s=se(se([],oe(s)),oe(_.errors)):s.push(_)}}}catch(_){i={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}if(s)throw new ne(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)je(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ae(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&ae(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),He=G.EMPTY;function qe(r){return r instanceof G||r&&"closed"in r&&S(r.remove)&&S(r.add)&&S(r.unsubscribe)}function je(r){S(r)?r():r.unsubscribe()}var ot={Promise:void 0},st={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,se([r,t],oe(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function at(r){st.setTimeout(function(){throw r})}function ze(){}function q(r){r()}var Ge=function(r){C(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,qe(e)&&e.add(i)):i.destination=ct,i}return t.create=function(e,i,o){return new le(e,i,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,r.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}(G),lt=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){H(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){H(i)}else H(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},r}(),le=function(r){C(t,r);function t(e,i,o){var s=r.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new lt(a),s}return t}(Ge);function H(r){at(r)}function ut(r){throw r}var ct={closed:!0,next:ze,error:ut,complete:ze},ft=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function dt(r){return r}function mt(r){return r.length===0?dt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Pe=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=pt(t)?t:new le(t,e,i);return q(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Ce(e),new e(function(o,s){var a=new le({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[ft]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return mt(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Ce(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Ce(r){var t;return(t=r!=null?r:ot.Promise)!==null&&t!==void 0?t:Promise}function ht(r){return r&&S(r.next)&&S(r.error)&&S(r.complete)}function pt(r){return r&&r instanceof Ge||ht(r)&&qe(r)}var _t=We(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ne=function(r){C(t,r);function t(){var e=r.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 i=new Be(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new _t},t.prototype.next=function(e){var i=this;q(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=ie(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;q(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.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(),r.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 i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?He:(this.currentObservers=null,u.push(e),new G(function(){i.currentObservers=null,ae(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Pe;return e.source=this,e},t.create=function(e,i){return new Be(e,i)},t}(Pe),Be=function(r){C(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:He},t}(Ne),Xe={now:function(){return(Xe.delegate||Date).now()},delegate:void 0},gt=function(r){C(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Xe);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!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}(Ne);const xe=[],Oe={},bt=(r,t=0)=>{if(xe.indexOf(r)==-1){const e=new gt(t);Oe[r]=e,xe.push(r)}return Oe[r]};window.emWidgets={topic:bt};const ue=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function wt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function Ae(r,t){n.addMessages(r,t)}function yt(r){n.$locale.set(r)}const De={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-BAYzooHN.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 r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-mlFNoFP9.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-CnYr15oP.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CdnE3qgy.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function vt(r){n.append_styles(r,"svelte-1oqyfnf",'*,*::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 .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.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 kt(r){let t,e,i,o,s,a,u,c=r[25]&&Le(r);function p(m,_){if(!m[15])return Et;if(m[24]!="Closed"&&m[24]!="Closing")return Ft;if(m[2]=="true")return Tt}let h=p(r),f=h&&h(r),d=(r[18]||r[20])&&Re(r),g=r[3]=="true"&&Ue(r);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),i=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[24]),n.set_custom_element_data(e,"startdate",r[22]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"enddate",r[23]),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,i,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[25]?c?c.p(m,_):(c=Le(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&1024&&n.set_custom_element_data(e,"clientstyling",m[10]),_[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",m[11]),_[0]&4096&&n.set_custom_element_data(e,"translationurl",m[12]),_[0]&16777216&&n.set_custom_element_data(e,"status",m[24]),_[0]&4194304&&n.set_custom_element_data(e,"startdate",m[22]),_[0]&128&&n.set_custom_element_data(e,"lang",m[7]),_[0]&8192&&n.set_custom_element_data(e,"mbsource",m[13]),_[0]&8388608&&n.set_custom_element_data(e,"enddate",m[23]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[18]||m[20]?d?d.p(m,_):(d=Re(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[3]=="true"?g?g.p(m,_):(g=Ue(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(i),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function St(r){let t,e,i;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(),i=n.element("div"),i.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(i,"class","TournamentButtons"),n.attr(i,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,i,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(i))}}}function Le(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[25]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"mbsource",r[13]),n.set_custom_element_data(t,"translationurl",r[12]),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),i||(o=n.action_destroyer(e=r[38].call(null,t,r[25])),i=!0)},p(s,a){a[0]&33554432&&n.set_custom_element_data(t,"tourid",s[25]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&8192&&n.set_custom_element_data(t,"mbsource",s[13]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&33554432&&e.update.call(null,s[25])},d(s){s&&n.detach(t),i=!1,o()}}}function Tt(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Ft(r){let t,e,i=r[2]=="true"&&Ie(r);function o(u,c){return u[27]?zt:jt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[2]=="true"?i?i.p(u,c):(i=Ie(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function Et(r){let t,e=r[33]("login")+"",i,o,s,a=r[33]("register")+"",u,c,p;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=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,f){n.insert(h,t,f),n.append(t,i),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",r[34]),n.listen(s,"click",r[35])],c=!0)},p(h,f){f[1]&4&&e!==(e=h[33]("login")+"")&&n.set_data(i,e),f[1]&4&&a!==(a=h[33]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Ie(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function jt(r){let t,e,i,o,s;function a(p,h){return p[17]==!0?Ct:Pt}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[6]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[6]?"JoinButtonFullSize":"")),t.disabled=r[18]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&64&&e!==(e="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&64&&i!==(i="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),h[0]&262144&&(t.disabled=p[18])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function zt(r){let t,e=r[2]=="true"&&Me(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[2]=="true"?e?e.p(i,o):(e=Me(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Pt(r){let t,e=r[33]("join")+"",i,o,s,a,u,c,p,h;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=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(f,d){n.insert(f,t,d),n.append(t,i),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&4&&e!==(e=f[33]("join")+"")&&n.set_data(i,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function Ct(r){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(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Me(r){let t,e=r[33]("enrolled")+"",i;return{c(){t=n.element("button"),i=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,i)},p(o,s){s[1]&4&&e!==(e=o[33]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Re(r){let t,e=r[33]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[19]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&4&&e!==(e=a[33]("joinerror")+"")&&n.set_data(i,e),u[0]&524288&&n.set_data(s,a[19])},d(a){a&&n.detach(t)}}}function Ue(r){let t,e,i=r[16]&&Je();return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"tournamenturl",r[1]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"lang",r[7]),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){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[16]?i||(i=Je(),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&2&&n.set_custom_element_data(e,"tournamenturl",o[1]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&128&&n.set_custom_element_data(e,"lang",o[7])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function Je(r){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,i){n.insert(e,t,i)},d(e){e&&n.detach(t)}}}function Bt(r){let t,e,i,o,s,a,u;function c(f,d){return f[16]?St:kt}let p=c(r),h=p(r);return{c(){t=n.element("div"),e=n.element("div"),i=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(i,"detailsevent",r[8]),n.set_custom_element_data(i,"userid",r[0]),n.set_custom_element_data(i,"title",r[21]),n.set_custom_element_data(i,"status",r[24]),n.set_custom_element_data(i,"startdate",r[22]),n.set_custom_element_data(i,"tourid",r[25]),n.set_custom_element_data(i,"scorecriteria",r[28]),n.set_custom_element_data(i,"minbetcount",r[29]),n.set_custom_element_data(i,"thumbnail",r[26]),n.set_custom_element_data(i,"showenrolled",r[4]),n.set_custom_element_data(i,"gameurl",r[31]),n.set_custom_element_data(i,"mbsource",r[13]),n.set_custom_element_data(i,"userenrolled",r[27]),n.set_custom_element_data(i,"clientstyling",r[10]),n.set_custom_element_data(i,"clientstylingurl",r[11]),n.set_custom_element_data(i,"translationurl",r[12]),n.set_custom_element_data(i,"lang",r[7]),n.set_custom_element_data(i,"keepbrowsercontext",r[9]),n.set_custom_element_data(i,"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 "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${r[16]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,i),n.append(e,o),h.m(e,null),r[50](t)},p(f,d){d[0]&256&&n.set_custom_element_data(i,"detailsevent",f[8]),d[0]&1&&n.set_custom_element_data(i,"userid",f[0]),d[0]&2097152&&n.set_custom_element_data(i,"title",f[21]),d[0]&16777216&&n.set_custom_element_data(i,"status",f[24]),d[0]&4194304&&n.set_custom_element_data(i,"startdate",f[22]),d[0]&33554432&&n.set_custom_element_data(i,"tourid",f[25]),d[0]&268435456&&n.set_custom_element_data(i,"scorecriteria",f[28]),d[0]&536870912&&n.set_custom_element_data(i,"minbetcount",f[29]),d[0]&67108864&&n.set_custom_element_data(i,"thumbnail",f[26]),d[0]&16&&n.set_custom_element_data(i,"showenrolled",f[4]),d[1]&1&&n.set_custom_element_data(i,"gameurl",f[31]),d[0]&8192&&n.set_custom_element_data(i,"mbsource",f[13]),d[0]&134217728&&n.set_custom_element_data(i,"userenrolled",f[27]),d[0]&1024&&n.set_custom_element_data(i,"clientstyling",f[10]),d[0]&2048&&n.set_custom_element_data(i,"clientstylingurl",f[11]),d[0]&4096&&n.set_custom_element_data(i,"translationurl",f[12]),d[0]&128&&n.set_custom_element_data(i,"lang",f[7]),d[0]&512&&n.set_custom_element_data(i,"keepbrowsercontext",f[9]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&96|d[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&96|d[1]&2&&a!==(a="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&65536&&u!==(u=`${f[16]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),r[50](null)}}}function xt(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(33,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:ce=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:N=""}=t,{keepbrowsercontext:fe="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:X}=t,v,F=!1,R="",E=!0,de=window.navigator.userAgent,U=!1,J=!1,me="There was an error while trying to join the tournament",Y=!1,K,he,pe,j,k,_e,V,ge,be,we=[],Z=[],ye="#",W=!1;wt({withLocale:"en",translations:{}});const Ke=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{Ae(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(De).forEach(l=>{Ae(l,De[l])});const ve=l=>{Ve(l),Q(l),Te(this,k)},ke=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(15,F=!0),R=l.data.session),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ve(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(32,W=u==1),setTimeout(()=>{e(32,W=!0),e(25,k=b.id),ve(b)},y),setTimeout(()=>{e(32,W=!1)},y+200)}},Ve=l=>{l.state!=j&&(e(24,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},Ze=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},Qe=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},$e=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Se=(l,b)=>te(this,null,function*(){var Ee;e(18,J=!1),e(20,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(17,U=!0);let y=new URL(`${c}/v1/bonus/claim`),T=new Headers,$={};y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),T.append("Content-Type","application/json"),T.append("X-SessionID",R),b&&b.length>=1&&($={language:m,bonusCode:b[0].code,currency:N,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify($)};const Fe=()=>{e(17,U=!1),e(27,V=!0)},ee=w=>{e(17,U=!1),w&&e(19,me=w),e(18,J=!0)},P=yield te(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(Dt){ee()}return w});if(P)if(P.success==!0)Fe();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(Ee=w==null?void 0:w.item)!=null&&Ee.playerEnrolled?Fe():(ee(P.errorMessage),e(20,Y=!0),e(18,J=!1))}else ee(P.errorMessage)}),Te=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},Q=l=>{l&&(e(21,K=l.nameOrTitle||""),e(22,he=l.startTime),e(23,pe=l.endTime),e(24,j=l.state),e(25,k=l.id),e(26,_e=l.thumbnail),e(27,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(28,ge=l.scoreCriteria),e(29,be=l.minBetCount),we=l.prizes,e(30,Z=l.wallets||[]),e(31,ye=l.termsUrl||"#"))},et=l=>{e(16,E=!0);const b=l?`${l}/v1/tournaments/${X}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),F&&T.append("X-SessionID",R),fetch(y,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{Q(z.item)}).finally(()=>{e(16,E=!1)})},tt=()=>{e(15,F=(o==null?void 0:o.length)>10),F&&(R=o)},nt=()=>{if(I){Q(I);return}e(16,E=!0),et(c)};n.onMount(()=>(e(16,E=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ke,!1),()=>{window.removeEventListener("message",ke)}));const rt=()=>Se(k,Z);function it(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(14,v)})}return r.$$set=l=>{"session"in l&&e(39,o=l.session),"userid"in l&&e(0,s=l.userid),"tournamenturl"in l&&e(1,a=l.tournamenturl),"touridx"in l&&e(40,u=l.touridx),"endpoint"in l&&e(41,c=l.endpoint),"showdetails"in l&&e(2,p=l.showdetails),"showslider"in l&&e(3,h=l.showslider),"showenrolled"in l&&e(4,f=l.showenrolled),"maxwidth"in l&&e(5,d=l.maxwidth),"fullsize"in l&&e(6,g=l.fullsize),"lang"in l&&e(7,m=l.lang),"loginevent"in l&&e(42,_=l.loginevent),"registerevent"in l&&e(43,B=l.registerevent),"detailsevent"in l&&e(8,ce=l.detailsevent),"loginurl"in l&&e(44,x=l.loginurl),"registerurl"in l&&e(45,O=l.registerurl),"currency"in l&&e(46,N=l.currency),"keepbrowsercontext"in l&&e(9,fe=l.keepbrowsercontext),"clientstyling"in l&&e(10,A=l.clientstyling),"clientstylingurl"in l&&e(11,D=l.clientstylingurl),"translationurl"in l&&e(12,L=l.translationurl),"tournamentinfo"in l&&e(47,I=l.tournamentinfo),"mbsource"in l&&e(13,M=l.mbsource),"tournamentid"in l&&e(48,X=l.tournamentid)},r.$$.update=()=>{r.$$.dirty[0]&128&&m&&yt(m),r.$$.dirty[0]&4096&&L&&Ke(),r.$$.dirty[1]&256&&o&&tt(),r.$$.dirty[0]&130&&a&&m&&nt(),r.$$.dirty[0]&17408&&A&&v&&n.setClientStyling(v,A),r.$$.dirty[0]&18432&&D&&v&&n.setClientStylingURL(v,D),r.$$.dirty[0]&24576&&M&&v&&n.setStreamStyling(v,`${M}.Style`)},[s,a,p,h,f,d,g,m,ce,fe,A,D,L,M,v,F,E,U,J,me,Y,K,he,pe,j,k,_e,V,ge,be,Z,ye,W,i,Ze,Qe,$e,Se,Te,o,u,c,_,B,x,O,N,I,X,rt,it]}class Ye extends n.SvelteComponent{constructor(t){super(),n.init(this,t,xt,Bt,n.safe_not_equal,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},vt,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[1]}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[2]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[7]}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[8]}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[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}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[13]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}}n.create_custom_element(Ye,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Ye},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=Ot;exports.getDevice=ue;
@@ -14,7 +14,7 @@ var me = (n, t, e) => new Promise((r, i) => {
14
14
  }, l = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, s);
15
15
  l((e = e.apply(n, t)).next());
16
16
  });
17
- import { $ as pe, a as vt, b as _t, S as kt, i as St, f as v, s as Tt, c as Ft, d as Et, n as ne, e as w, g as f, h as p, j as y, k as S, l as T, m as j, o as jt, p as zt, q as Pt, r as ke, t as Bt, u as O, v as C, w as Ct, x as U, y as Se, z as x, A as Ot, B as xt, C as At, D as Dt } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
17
+ import { $ as pe, a as vt, b as _t, S as kt, i as St, f as v, s as Tt, c as Ft, d as Et, n as ne, e as w, g as f, h as p, j as y, k as S, l as T, m as j, o as jt, p as zt, q as Pt, r as ke, t as Bt, u as O, v as C, w as Ct, x as U, y as Se, z as x, A as Ot, B as xt, C as At, D as Dt } from "./CasinoTournamentsThumbnail-D47Qv9lY.js";
18
18
  /*! *****************************************************************************
19
19
  Copyright (c) Microsoft Corporation.
20
20
 
@@ -651,7 +651,7 @@ if (typeof window != "undefined") {
651
651
  }
652
652
  };
653
653
  };
654
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-Cm8ygS_j.js").then((t) => t.L).then(({ default: t }) => {
654
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-D47Qv9lY.js").then((t) => t.L).then(({ default: t }) => {
655
655
  !customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
656
656
  });
657
657
  }
@@ -667,7 +667,7 @@ if (typeof window != "undefined") {
667
667
  }
668
668
  };
669
669
  };
670
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-DMSfakAi.js").then(({ default: t }) => {
670
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-CbNPC39T.js").then(({ default: t }) => {
671
671
  !customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
672
672
  "casino-tournaments-thumbnail-duration",
673
673
  t.element
@@ -686,7 +686,7 @@ if (typeof window != "undefined") {
686
686
  }
687
687
  };
688
688
  };
689
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js").then(({ default: t }) => {
689
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BpKWo9dv.js").then(({ default: t }) => {
690
690
  !customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
691
691
  });
692
692
  }
@@ -702,7 +702,7 @@ if (typeof window != "undefined") {
702
702
  }
703
703
  };
704
704
  };
705
- customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-DG5ZjCyH.js").then(
705
+ customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-DJdrH_zq.js").then(
706
706
  ({ default: t }) => {
707
707
  !customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
708
708
  "casino-tournaments-thumbnail-games-slider",
@@ -1,4 +1,4 @@
1
- import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
1
+ import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-D47Qv9lY.js";
2
2
  function O(n, t) {
3
3
  H(n, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
1
+ import { b as H, S as K, i as Y, s as Z, f as C, d as J, n as L, e as w, j as B, l as v, h as l, o as Q, p as V, u as M, k as y, t as X, v as j, m as A, q as $, E as N, B as tt, C as et, D as nt, c as it, A as st } from "./CasinoTournamentsThumbnail-BnrB69DF.js";
2
2
  function O(n, t) {
3
3
  H(n, t);
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-DgXXegVa.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsThumbnail-BAYzooHN.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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-DgXXegVa.cjs"),se=require("./CasinoTournamentsThumbnailController-BKKPM9HU.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-BAYzooHN.cjs"),se=require("./CasinoTournamentsThumbnailController-CFdG2yXJ.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 { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
2
- import { g as Ce } from "./CasinoTournamentsThumbnailController-D-_PX24h.js";
1
+ import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-BnrB69DF.js";
2
+ import { g as Ce } from "./CasinoTournamentsThumbnailController-C3TVniDS.js";
3
3
  function Q(e, n) {
4
4
  _e(e, n);
5
5
  }
@@ -1,5 +1,5 @@
1
- import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
2
- import { g as Ce } from "./CasinoTournamentsThumbnailController-C9HfK_wl.js";
1
+ import { b as _e, S as be, i as ve, s as ke, f as T, d as Ne, n as R, e as G, j as W, l as N, o as Se, p as Te, F as Y, G as Fe, w as ne, H as z, E as K, k as b, I as Be, x as A, m as C, h as c, J as Pe, q as U, u as Me, K as Z, v as Ee, B as je, C as Ae, D as He, c as Le, A as ze } from "./CasinoTournamentsThumbnail-D47Qv9lY.js";
2
+ import { g as Ce } from "./CasinoTournamentsThumbnailController-D9T04QTV.js";
3
3
  function Q(e, n) {
4
4
  _e(e, n);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-J7Of-3j4.js";
1
+ import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-D47Qv9lY.js";
2
2
  function N(l, e) {
3
3
  C(l, e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-Cm8ygS_j.js";
1
+ import { b as C, S as L, i as Z, s as j, f as _, d as B, n as F, e as w, u as b, j as T, k as d, l as g, m as v, v as y, h as p, o as I, p as R, F as S, G as O, q, B as D, C as U, D as V, c as W, A as G } from "./CasinoTournamentsThumbnail-BnrB69DF.js";
2
2
  function N(l, e) {
3
3
  C(l, e);
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-DgXXegVa.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsThumbnail-BAYzooHN.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 +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-BKKPM9HU.cjs")).then(e=>e.CasinoTournamentsThumbnailController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",e.element)})}
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-CFdG2yXJ.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-D-_PX24h.js").then((e) => e.C).then(
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsThumbnailController-D9T04QTV.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",
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoTournamentsThumbnailController-C9HfK_wl.js";
1
+ import { C as s } from "../components/CasinoTournamentsThumbnailController-C3TVniDS.js";
2
2
  function o(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-thumbnail-controller",
3
- "version": "1.86.20",
3
+ "version": "1.86.22",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-tournaments-thumbnail-controller.cjs",
6
6
  "module": "esnext/casino-tournaments-thumbnail-controller.js",