@everymatrix/casino-tournaments-list-controller 1.74.6 → 1.74.7
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/{CasinoTournamentsListController-B91Lyqax.js → CasinoTournamentsListController-B38usHsn.js} +31 -30
- package/components/{CasinoTournamentsListController-CNr53zQh.js → CasinoTournamentsListController-Cfa4YooN.js} +128 -127
- package/components/{CasinoTournamentsListController-Xh8cK8m7.cjs → CasinoTournamentsListController-Cpa3dETB.cjs} +6 -6
- package/components/{CasinoTournamentsThumbnail-DJR17vOA.js → CasinoTournamentsThumbnail-BvwAFRRh.js} +314 -275
- package/components/{CasinoTournamentsThumbnail-dZ1sm6ym.js → CasinoTournamentsThumbnail-Df3_TYL6.js} +314 -275
- package/components/CasinoTournamentsThumbnail-DvP2l4dh.cjs +4 -0
- package/components/{CasinoTournamentsThumbnailController-By0nIi_-.js → CasinoTournamentsThumbnailController-BFjZuRRn.js} +608 -615
- package/components/CasinoTournamentsThumbnailController-BKfTOve3.cjs +3 -0
- package/components/{CasinoTournamentsThumbnailController-DClFnhM2.js → CasinoTournamentsThumbnailController-C6Crss2A.js} +630 -603
- package/components/{CasinoTournamentsThumbnailDuration-DNm3kZA6.js → CasinoTournamentsThumbnailDuration-5YdgXfyk.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-Dknze1IO.js → CasinoTournamentsThumbnailDuration-9ctJFiUg.js} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-DY7DHyLw.cjs → CasinoTournamentsThumbnailDuration-CcH8hK-K.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-D_kUDgO5.cjs → CasinoTournamentsThumbnailGamesSlider-BbjB4ErE.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-D45WQ2Dp.js → CasinoTournamentsThumbnailGamesSlider-Cdf_RO7e.js} +11 -11
- package/components/{CasinoTournamentsThumbnailGamesSlider-Cawyju7x.js → CasinoTournamentsThumbnailGamesSlider-GW-k6bIN.js} +11 -11
- package/components/{CasinoTournamentsThumbnailPrizes-2H2CQrq-.cjs → CasinoTournamentsThumbnailPrizes-BV-y0P89.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-7u2QNaQE.js → CasinoTournamentsThumbnailPrizes-BVkxo1mB.js} +57 -57
- package/components/{CasinoTournamentsThumbnailPrizes-BcFwjh1i.js → CasinoTournamentsThumbnailPrizes-CXbIMPTh.js} +57 -57
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
- package/components/CasinoTournamentsThumbnail-siUGtR0g.cjs +0 -4
- package/components/CasinoTournamentsThumbnailController-D0OPXphy.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as H, S as K, i as Y, f as z, c as Z, s as J, d as Q, e as v, h as l, j as w, n as L, l as B, m as V, o as X, p as $, q as tt, t as M, g as A, k as y,
|
|
1
|
+
import { b as H, S as K, i as Y, f as z, c as Z, s as J, d as Q, e as v, h as l, j as w, n as L, l as B, m as V, o as X, p as $, q as tt, t as M, g as A, k as y, v as et, u as j, z as nt, A as it, I as N, D as st } from "./CasinoTournamentsListController-Cfa4YooN.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, f as z, c as Z, s as J, d as Q, e as v, h as l, j as w, n as L, l as B, m as V, o as X, p as $, q as tt, t as M, g as A, k as y,
|
|
1
|
+
import { b as H, S as K, i as Y, f as z, c as Z, s as J, d as Q, e as v, h as l, j as w, n as L, l as B, m as V, o as X, p as $, q as tt, t as M, g as A, k as y, v as et, u as j, z as nt, A as it, I as N, D as st } from "./CasinoTournamentsListController-B38usHsn.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("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-Cpa3dETB.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 T(s,f){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?N:s[5]>0?O:L}let B=T(r),_=B(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),B===(B=T(s))&&_?_.p(s,f):(_.d(1),_=B(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 L(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 O(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="",T="",B="";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,T=v(i,u)),n(6,B=f(b))},s=i=>{const h={month:"long"};let F=new Date(i),S=new Intl.DateTimeFormat(g,h).format(F);return`${F.getDate()} ${S}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},f=i=>{const h=(S,D)=>S+" "+l(D),F=S=>{const D=Math.floor(S);return D<10?`0${D}`:`${D}`};if(i<1440){const S=i/60,D=i%60,R=(D-Math.floor(D))*60;return[S,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,T,B,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("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-Cpa3dETB.cjs"),se=require("./CasinoTournamentsThumbnailController-BKfTOve3.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,C=null,E=!1,j,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,E=!0),n(6,j=r)},z=()=>{n(5,E=!1),n(6,j=-1)},J=r=>r.touches||r.originalEvent.touches,A=r=>{const f=J(r)[0];B=f.clientX,C=f.clientY},H=r=>{if(!B||!C)return;let f=r.touches[0].clientX,M=r.touches[0].clientY,S=B-f,ae=C-M;Math.abs(S)>Math.abs(ae)&&(S>0?F(1):F(-1)),B=null,C=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,E,j,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, f as T, c as ke, s as Ne, d as Se, e as N, j as W, n as R, l as q, m as Te, o as Be, p as Fe, q as Me, J as Y, g as C, h as c, K as H, I as K, L as Pe, k as b, M as Ee,
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, f as T, c as ke, s as Ne, d as Se, e as N, j as W, n as R, l as q, m as Te, o as Be, p as Fe, q as Me, J as Y, g as C, h as c, K as H, I as K, L as Pe, k as b, M as Ee, r as L, N as je, y as ne, t as Le, B as Z, u as ze, z as U, A as Ae, D as He } from "./CasinoTournamentsListController-B38usHsn.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-BFjZuRRn.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -246,19 +246,19 @@ function We(e, n, t) {
|
|
|
246
246
|
});
|
|
247
247
|
const G = (l) => {
|
|
248
248
|
t(5, D = !0), t(6, I = l);
|
|
249
|
-
},
|
|
249
|
+
}, J = () => {
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
|
-
}, se = (l) => l.touches || l.originalEvent.touches,
|
|
251
|
+
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
253
|
z = f.clientX, A = f.clientY;
|
|
254
|
-
},
|
|
254
|
+
}, X = (l) => {
|
|
255
255
|
if (!z || !A)
|
|
256
256
|
return;
|
|
257
257
|
let f = l.touches[0].clientX, j = l.touches[0].clientY, F = z - f, we = A - j;
|
|
258
258
|
Math.abs(F) > Math.abs(we) && (F > 0 ? E(1) : E(-1)), z = null, A = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
260
|
l > 0 && !d ? (t(2, o -= k), t(2, o = o < P ? P : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
|
-
},
|
|
261
|
+
}, x = (l) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -274,7 +274,7 @@ function We(e, n, t) {
|
|
|
274
274
|
t(1, v = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
277
|
-
S.addEventListener("touchstart",
|
|
277
|
+
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
278
|
}, ie = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
@@ -286,9 +286,9 @@ function We(e, n, t) {
|
|
|
286
286
|
B > 0 && B < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(B / s).toString());
|
|
287
287
|
};
|
|
288
288
|
Be(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
|
-
S.removeEventListener("touchstart",
|
|
289
|
+
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
290
|
}));
|
|
291
|
-
const ce = () => E(-1), ue = (l) =>
|
|
291
|
+
const ce = () => E(-1), ue = (l) => x(l), me = (l) => G(l), de = () => J();
|
|
292
292
|
function he(l) {
|
|
293
293
|
U[l ? "unshift" : "push"](() => {
|
|
294
294
|
M = l, t(7, M);
|
|
@@ -335,9 +335,9 @@ function We(e, n, t) {
|
|
|
335
335
|
d,
|
|
336
336
|
h,
|
|
337
337
|
G,
|
|
338
|
-
|
|
338
|
+
J,
|
|
339
339
|
E,
|
|
340
|
-
|
|
340
|
+
x,
|
|
341
341
|
y,
|
|
342
342
|
s,
|
|
343
343
|
p,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as _e, S as be, i as ve, f as T, c as ke, s as Ne, d as Se, e as N, j as W, n as R, l as q, m as Te, o as Be, p as Fe, q as Me, J as Y, g as C, h as c, K as H, I as K, L as Pe, k as b, M as Ee,
|
|
2
|
-
import { g as Ce } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as _e, S as be, i as ve, f as T, c as ke, s as Ne, d as Se, e as N, j as W, n as R, l as q, m as Te, o as Be, p as Fe, q as Me, J as Y, g as C, h as c, K as H, I as K, L as Pe, k as b, M as Ee, r as L, N as je, y as ne, t as Le, B as Z, u as ze, z as U, A as Ae, D as He } from "./CasinoTournamentsListController-Cfa4YooN.js";
|
|
2
|
+
import { g as Ce } from "./CasinoTournamentsThumbnailController-C6Crss2A.js";
|
|
3
3
|
function Q(e, n) {
|
|
4
4
|
_e(e, n);
|
|
5
5
|
}
|
|
@@ -246,19 +246,19 @@ function We(e, n, t) {
|
|
|
246
246
|
});
|
|
247
247
|
const G = (l) => {
|
|
248
248
|
t(5, D = !0), t(6, I = l);
|
|
249
|
-
},
|
|
249
|
+
}, J = () => {
|
|
250
250
|
t(5, D = !1), t(6, I = -1);
|
|
251
|
-
}, se = (l) => l.touches || l.originalEvent.touches,
|
|
251
|
+
}, se = (l) => l.touches || l.originalEvent.touches, O = (l) => {
|
|
252
252
|
const f = se(l)[0];
|
|
253
253
|
z = f.clientX, A = f.clientY;
|
|
254
|
-
},
|
|
254
|
+
}, X = (l) => {
|
|
255
255
|
if (!z || !A)
|
|
256
256
|
return;
|
|
257
257
|
let f = l.touches[0].clientX, j = l.touches[0].clientY, F = z - f, we = A - j;
|
|
258
258
|
Math.abs(F) > Math.abs(we) && (F > 0 ? E(1) : E(-1)), z = null, A = null;
|
|
259
259
|
}, E = (l) => {
|
|
260
260
|
l > 0 && !d ? (t(2, o -= k), t(2, o = o < P ? P : o)) : l < 0 && !a && (t(2, o += k), t(2, o = o > 0 ? 0 : o));
|
|
261
|
-
},
|
|
261
|
+
}, x = (l) => {
|
|
262
262
|
window.postMessage(
|
|
263
263
|
{
|
|
264
264
|
type: "TournamentGameAction",
|
|
@@ -274,7 +274,7 @@ function We(e, n, t) {
|
|
|
274
274
|
t(1, v = F.item.games.items), F.item.games.total;
|
|
275
275
|
});
|
|
276
276
|
}, ae = () => {
|
|
277
|
-
S.addEventListener("touchstart",
|
|
277
|
+
S.addEventListener("touchstart", O, { passive: !0 }), S.addEventListener("touchmove", X, { passive: !0 });
|
|
278
278
|
}, ie = () => {
|
|
279
279
|
setTimeout(
|
|
280
280
|
() => {
|
|
@@ -286,9 +286,9 @@ function We(e, n, t) {
|
|
|
286
286
|
B > 0 && B < Math.floor((parseInt(y) + 1) * s) && t(15, y = Math.ceil(B / s).toString());
|
|
287
287
|
};
|
|
288
288
|
Be(() => (k = parseInt(y, 10) * parseInt(s, 10), () => {
|
|
289
|
-
S.removeEventListener("touchstart",
|
|
289
|
+
S.removeEventListener("touchstart", O), S.removeEventListener("touchmove", X);
|
|
290
290
|
}));
|
|
291
|
-
const ce = () => E(-1), ue = (l) =>
|
|
291
|
+
const ce = () => E(-1), ue = (l) => x(l), me = (l) => G(l), de = () => J();
|
|
292
292
|
function he(l) {
|
|
293
293
|
U[l ? "unshift" : "push"](() => {
|
|
294
294
|
M = l, t(7, M);
|
|
@@ -335,9 +335,9 @@ function We(e, n, t) {
|
|
|
335
335
|
d,
|
|
336
336
|
h,
|
|
337
337
|
G,
|
|
338
|
-
|
|
338
|
+
J,
|
|
339
339
|
E,
|
|
340
|
-
|
|
340
|
+
x,
|
|
341
341
|
y,
|
|
342
342
|
s,
|
|
343
343
|
p,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-Cpa3dETB.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]=w(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]=w(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 w(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 T 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(T,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=T;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as L, S as C, i as Z, f as _, c as j, s as I, d as B, e as g, g as v, t as y, h as p, j as w, k as d,
|
|
2
|
-
function N(
|
|
3
|
-
L(
|
|
1
|
+
import { b as L, S as C, i as Z, f as _, c as j, s as I, d as B, e as g, g as v, t as y, h as p, j as w, k as d, u as b, n as F, l as T, m as R, o as O, p as q, q as D, J as S, N as U, z as V, A as W, D as J } from "./CasinoTournamentsListController-B38usHsn.js";
|
|
2
|
+
function N(l, e) {
|
|
3
|
+
L(l, e);
|
|
4
4
|
}
|
|
5
5
|
const M = {
|
|
6
6
|
en: {
|
|
@@ -59,33 +59,33 @@ const M = {
|
|
|
59
59
|
place: "place"
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
function G(
|
|
63
|
-
B(
|
|
62
|
+
function G(l) {
|
|
63
|
+
B(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)}");
|
|
64
64
|
}
|
|
65
|
-
function H(
|
|
66
|
-
const i =
|
|
65
|
+
function H(l, e, t) {
|
|
66
|
+
const i = l.slice();
|
|
67
67
|
return i[12] = e[t], i[14] = t, i;
|
|
68
68
|
}
|
|
69
|
-
function A(
|
|
69
|
+
function A(l) {
|
|
70
70
|
let e, t = S(
|
|
71
71
|
/*prizes*/
|
|
72
|
-
|
|
72
|
+
l[1]
|
|
73
73
|
), i = [];
|
|
74
74
|
for (let n = 0; n < t.length; n += 1)
|
|
75
|
-
i[n] = x(H(
|
|
76
|
-
let
|
|
77
|
-
return t.length || (
|
|
75
|
+
i[n] = x(H(l, t, n));
|
|
76
|
+
let r = null;
|
|
77
|
+
return t.length || (r = E(l)), {
|
|
78
78
|
c() {
|
|
79
79
|
e = g("div");
|
|
80
80
|
for (let n = 0; n < i.length; n += 1)
|
|
81
81
|
i[n].c();
|
|
82
|
-
|
|
82
|
+
r && r.c(), p(e, "class", "Prizes"), p(e, "part", "Prizes");
|
|
83
83
|
},
|
|
84
84
|
m(n, c) {
|
|
85
85
|
w(n, e, c);
|
|
86
86
|
for (let s = 0; s < i.length; s += 1)
|
|
87
87
|
i[s] && i[s].m(e, null);
|
|
88
|
-
|
|
88
|
+
r && r.m(e, null);
|
|
89
89
|
},
|
|
90
90
|
p(n, c) {
|
|
91
91
|
if (c & /*prizes, $_*/
|
|
@@ -101,72 +101,72 @@ function A(r) {
|
|
|
101
101
|
}
|
|
102
102
|
for (; s < i.length; s += 1)
|
|
103
103
|
i[s].d(1);
|
|
104
|
-
i.length = t.length, !t.length &&
|
|
104
|
+
i.length = t.length, !t.length && r ? r.p(n, c) : t.length ? r && (r.d(1), r = null) : (r = E(n), r.c(), r.m(e, null));
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
d(n) {
|
|
108
|
-
n && T(e), U(i, n),
|
|
108
|
+
n && T(e), U(i, n), r && r.d();
|
|
109
109
|
}
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function E(
|
|
112
|
+
function E(l) {
|
|
113
113
|
let e, t = (
|
|
114
114
|
/*$_*/
|
|
115
|
-
|
|
115
|
+
l[2]("noprizes") + ""
|
|
116
116
|
), i;
|
|
117
117
|
return {
|
|
118
118
|
c() {
|
|
119
119
|
e = g("p"), i = y(t);
|
|
120
120
|
},
|
|
121
|
-
m(
|
|
122
|
-
w(
|
|
121
|
+
m(r, n) {
|
|
122
|
+
w(r, e, n), d(e, i);
|
|
123
123
|
},
|
|
124
|
-
p(
|
|
124
|
+
p(r, n) {
|
|
125
125
|
n & /*$_*/
|
|
126
126
|
4 && t !== (t = /*$_*/
|
|
127
|
-
|
|
127
|
+
r[2]("noprizes") + "") && b(i, t);
|
|
128
128
|
},
|
|
129
|
-
d(
|
|
130
|
-
|
|
129
|
+
d(r) {
|
|
130
|
+
r && T(e);
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function x(
|
|
135
|
-
let e, t, i,
|
|
134
|
+
function x(l) {
|
|
135
|
+
let e, t, i, r = (
|
|
136
136
|
/*prize*/
|
|
137
|
-
(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
(l[12].count > 1 ? `${/*prize*/
|
|
138
|
+
l[12].rank}~${/*prize*/
|
|
139
|
+
l[12].rank + /*prize*/
|
|
140
|
+
l[12].count - 1}` : (
|
|
141
141
|
/*prize*/
|
|
142
|
-
|
|
142
|
+
l[12].rank
|
|
143
143
|
)) + ""
|
|
144
144
|
), n, c, s = (
|
|
145
145
|
/*$_*/
|
|
146
|
-
|
|
146
|
+
l[2]("place") + ""
|
|
147
147
|
), f, o, u = (
|
|
148
148
|
/*prize*/
|
|
149
|
-
|
|
149
|
+
l[12].name + ""
|
|
150
150
|
), m, P;
|
|
151
151
|
return {
|
|
152
152
|
c() {
|
|
153
|
-
e = g("div"), t = g("p"), i = g("span"), n = y(
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
e = g("div"), t = g("p"), i = g("span"), n = y(r), c = v(), f = y(s), o = y(": "), m = y(u), P = v(), p(i, "class", "PrizeRank"), p(i, "part", "PrizeRank"), p(t, "class", "PrizeText"), p(t, "part", "PrizeText"), p(e, "class", "Prize Prize" + /*index*/
|
|
154
|
+
l[14]), p(e, "part", "Prize Prize" + /*index*/
|
|
155
|
+
l[14]);
|
|
156
156
|
},
|
|
157
157
|
m(z, a) {
|
|
158
158
|
w(z, e, a), d(e, t), d(t, i), d(i, n), d(t, c), d(t, f), d(t, o), d(t, m), d(e, P);
|
|
159
159
|
},
|
|
160
160
|
p(z, a) {
|
|
161
161
|
a & /*prizes*/
|
|
162
|
-
2 &&
|
|
162
|
+
2 && r !== (r = /*prize*/
|
|
163
163
|
(z[12].count > 1 ? `${/*prize*/
|
|
164
164
|
z[12].rank}~${/*prize*/
|
|
165
165
|
z[12].rank + /*prize*/
|
|
166
166
|
z[12].count - 1}` : (
|
|
167
167
|
/*prize*/
|
|
168
168
|
z[12].rank
|
|
169
|
-
)) + "") && b(n,
|
|
169
|
+
)) + "") && b(n, r), a & /*$_*/
|
|
170
170
|
4 && s !== (s = /*$_*/
|
|
171
171
|
z[2]("place") + "") && b(f, s), a & /*prizes*/
|
|
172
172
|
2 && u !== (u = /*prize*/
|
|
@@ -177,20 +177,20 @@ function x(r) {
|
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function K(
|
|
181
|
-
let e, t, i,
|
|
180
|
+
function K(l) {
|
|
181
|
+
let e, t, i, r, n, c = (
|
|
182
182
|
/*$_*/
|
|
183
|
-
|
|
183
|
+
l[2]("prizes") + ""
|
|
184
184
|
), s, f, o = (
|
|
185
185
|
/*prizes*/
|
|
186
|
-
|
|
186
|
+
l[1] && A(l)
|
|
187
187
|
);
|
|
188
188
|
return {
|
|
189
189
|
c() {
|
|
190
|
-
e = g("div"), t = g("div"), i = g("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>',
|
|
190
|
+
e = g("div"), t = g("div"), i = g("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>', r = v(), n = g("p"), s = y(c), f = v(), o && o.c(), p(i, "class", "TournamentPrizesIconWrapper"), p(i, "part", "TournamentPrizesIconWrapper"), p(n, "class", "PrizesTitle"), p(n, "part", "PrizesTitle"), p(t, "class", "TournamentPrizesIconSection"), p(t, "part", "TournamentPrizesIconSection"), p(e, "class", "TournamentPrizes"), p(e, "part", "TournamentPrizes");
|
|
191
191
|
},
|
|
192
192
|
m(u, m) {
|
|
193
|
-
w(u, e, m), d(e, t), d(t, i), d(t,
|
|
193
|
+
w(u, e, m), d(e, t), d(t, i), d(t, r), d(t, n), d(n, s), d(e, f), o && o.m(e, null), l[8](e);
|
|
194
194
|
},
|
|
195
195
|
p(u, [m]) {
|
|
196
196
|
m & /*$_*/
|
|
@@ -201,14 +201,14 @@ function K(r) {
|
|
|
201
201
|
i: F,
|
|
202
202
|
o: F,
|
|
203
203
|
d(u) {
|
|
204
|
-
u && T(e), o && o.d(),
|
|
204
|
+
u && T(e), o && o.d(), l[8](null);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
function Q(
|
|
208
|
+
function Q(l, e, t) {
|
|
209
209
|
let i;
|
|
210
|
-
R(
|
|
211
|
-
let { tourid:
|
|
210
|
+
R(l, J, (a) => t(2, i = a));
|
|
211
|
+
let { tourid: r = "" } = e, { clientstyling: n = "" } = e, { clientstylingurl: c = "" } = e, { translationurl: s = "" } = e, { mbsource: f } = e, o, u;
|
|
212
212
|
const m = () => {
|
|
213
213
|
fetch(s).then((h) => h.json()).then((h) => {
|
|
214
214
|
Object.keys(h).forEach((k) => {
|
|
@@ -222,7 +222,7 @@ function Q(r, e, t) {
|
|
|
222
222
|
N(a, M[a]);
|
|
223
223
|
});
|
|
224
224
|
const P = (a) => {
|
|
225
|
-
a.data && a.data.type == `TournamentPrizes_${
|
|
225
|
+
a.data && a.data.type == `TournamentPrizes_${r}` && t(1, u = a.data.prizes);
|
|
226
226
|
};
|
|
227
227
|
O(() => (window.postMessage({ type: "TournamentThumbnailMounted" }, window.location.href), window.addEventListener("message", P, !1), () => {
|
|
228
228
|
window.removeEventListener("message", P);
|
|
@@ -232,19 +232,19 @@ function Q(r, e, t) {
|
|
|
232
232
|
o = a, t(0, o);
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
return
|
|
236
|
-
"tourid" in a && t(3,
|
|
237
|
-
},
|
|
238
|
-
|
|
239
|
-
17 && n && o && W(o, n),
|
|
240
|
-
33 && c && o && q(o, c),
|
|
241
|
-
129 && f && o && D(o, `${f}.Style`),
|
|
235
|
+
return l.$$set = (a) => {
|
|
236
|
+
"tourid" in a && t(3, r = a.tourid), "clientstyling" in a && t(4, n = a.clientstyling), "clientstylingurl" in a && t(5, c = a.clientstylingurl), "translationurl" in a && t(6, s = a.translationurl), "mbsource" in a && t(7, f = a.mbsource);
|
|
237
|
+
}, l.$$.update = () => {
|
|
238
|
+
l.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
239
|
+
17 && n && o && W(o, n), l.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
240
|
+
33 && c && o && q(o, c), l.$$.dirty & /*mbsource, customStylingContainer*/
|
|
241
|
+
129 && f && o && D(o, `${f}.Style`), l.$$.dirty & /*translationurl*/
|
|
242
242
|
64 && s && m();
|
|
243
243
|
}, [
|
|
244
244
|
o,
|
|
245
245
|
u,
|
|
246
246
|
i,
|
|
247
|
-
|
|
247
|
+
r,
|
|
248
248
|
n,
|
|
249
249
|
c,
|
|
250
250
|
s,
|