@everymatrix/casino-tournaments-thumbnail-controller 1.86.12 → 1.86.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoTournamentsThumbnail-DgXXegVa.cjs → CasinoTournamentsThumbnail-BAYzooHN.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-J7Of-3j4.js → CasinoTournamentsThumbnail-BnrB69DF.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-Cm8ygS_j.js → CasinoTournamentsThumbnail-D47Qv9lY.js} +1 -1
- package/components/{CasinoTournamentsThumbnailController-yXv_8aa_.js → CasinoTournamentsThumbnailController-C3TVniDS.js} +296 -309
- package/components/{CasinoTournamentsThumbnailController-DD3a1bpc.cjs → CasinoTournamentsThumbnailController-CFdG2yXJ.cjs} +3 -3
- package/components/{CasinoTournamentsThumbnailController-DGTv-6Vg.js → CasinoTournamentsThumbnailController-D9T04QTV.js} +548 -519
- package/components/{CasinoTournamentsThumbnailDuration-DMSfakAi.js → CasinoTournamentsThumbnailDuration-CbNPC39T.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-ShCMXlPG.js → CasinoTournamentsThumbnailDuration-CoEDUPxg.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-IvKEkgj7.cjs → CasinoTournamentsThumbnailDuration-mlFNoFP9.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-HEUEl0MK.cjs → CasinoTournamentsThumbnailGamesSlider-CdnE3qgy.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-l7mPDvzQ.js → CasinoTournamentsThumbnailGamesSlider-D9B0UieN.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-C9n0GZT3.js → CasinoTournamentsThumbnailGamesSlider-DJdrH_zq.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-CEvbFf9m.js → CasinoTournamentsThumbnailPrizes-BpKWo9dv.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-Ctx2j7e2.js → CasinoTournamentsThumbnailPrizes-Cl2foZul.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BRbgsA4Y.cjs → CasinoTournamentsThumbnailPrizes-CnYr15oP.cjs} +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.cjs +1 -1
- package/es2015/casino-tournaments-thumbnail-controller.js +1 -1
- package/esnext/casino-tournaments-thumbnail-controller.js +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/components/{CasinoTournamentsThumbnail-J7Of-3j4.js → CasinoTournamentsThumbnail-BnrB69DF.js}
RENAMED
|
@@ -4505,7 +4505,7 @@ function Ii(e, t, r) {
|
|
|
4505
4505
|
minute: "numeric",
|
|
4506
4506
|
hour12: !1
|
|
4507
4507
|
});
|
|
4508
|
-
const E = () => n(a === "
|
|
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");
|
package/components/{CasinoTournamentsThumbnail-Cm8ygS_j.js → CasinoTournamentsThumbnail-D47Qv9lY.js}
RENAMED
|
@@ -4542,7 +4542,7 @@ function Gi(e, t, r) {
|
|
|
4542
4542
|
minute: "numeric",
|
|
4543
4543
|
hour12: !1
|
|
4544
4544
|
});
|
|
4545
|
-
const E = () => n(o === "
|
|
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");
|