@everymatrix/casino-tournaments-slider-controller 1.43.3 → 1.44.0

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.
@@ -665,7 +665,7 @@ this.formats=Yn(e.formats,r),this.formatters=i&&i.formatters||(void 0===(o=this.
665
665
  // and Intl.DateTimeFormat instances.
666
666
  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}();const $n={},er=(e,t,n)=>n?(t in $n||($n[t]={}),e in $n[t]||($n[t][e]=n),n):n,tr=(e,t)=>{if(null==t)return;if(t in $n&&e in $n[t])return $n[t][e];const n=Cr(t);for(let r=0;r<n.length;r++){const i=or(n[r],e);if(i)return er(e,t,i)}};let nr;const rr=gt({});function ir(e){return e in nr}function or(e,t){if(!ir(e))return null;const n=function(e){return nr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const n=t.split(".");let r=e;for(let e=0;e<n.length;e++)if("object"==typeof r){if(e>0){const t=n.slice(e,n.length).join(".");if(t in r){r=r[t];break}}r=r[n[e]]}else r=void 0;return r}(n,t)}function sr(e,...t){delete $n[e],rr.update((n=>(n[e]=It.all([n[e]||{},...t]),n)))}mt([rr],(([e])=>Object.keys(e))),rr.subscribe((e=>nr=e));const ar={};function lr(e){return ar[e]}function cr(e){return null!=e&&Cr(e).some((e=>{var t;return null==(t=lr(e))?void 0:t.size}))}function ur(e,t){const n=Promise.all(t.map((t=>(function(e,t){ar[e].delete(t),0===ar[e].size&&delete ar[e]}(e,t),t().then((e=>e.default||e))))));return n.then((t=>sr(e,...t)))}const hr={};function fr(e){if(!cr(e))return e in hr?hr[e]:Promise.resolve();const t=function(e){return Cr(e).map((e=>{const t=lr(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return hr[e]=Promise.all(t.map((([e,t])=>ur(e,t)))).then((()=>{if(cr(e))return fr(e);delete hr[e]})),hr[e]}const pr={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function dr(){return pr}const gr=gt(!1);var mr=Object.defineProperty,yr=Object.defineProperties,Ar=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,wr=(e,t,n)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Br;const Tr=gt(null);function Ir(e){return e.split("-").map(((e,t,n)=>n.slice(0,t+1).join("-"))).reverse()}function Cr(e,t=dr().fallbackLocale){const n=Ir(e);return t?[...new Set([...n,...Ir(t)])]:n}function Rr(){return null!=Br?Br:void 0}Tr.subscribe((e=>{Br=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Hr=(Sr=((e,t)=>{for(var n in t||(t={}))br.call(t,n)&&wr(e,n,t[n]);if(vr)for(var n of vr(t))Er.call(t,n)&&wr(e,n,t[n]);return e})({},Tr),yr(Sr,Ar({set:e=>{if(e&&function(e){if(null==e)return;const t=Cr(e);for(let e=0;e<t.length;e++){const n=t[e];if(ir(n))return n}}(e)&&cr(e)){const{loadingDelay:t}=dr();let n;return"undefined"!=typeof window&&null!=Rr()&&t?n=window.setTimeout((()=>gr.set(!0)),t):gr.set(!0),fr(e).then((()=>{Tr.set(e)})).finally((()=>{clearTimeout(n),gr.set(!1)}))}return Tr.set(e)}})));var Sr;const Or=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}};var Lr=Object.defineProperty,kr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Nr=(e,t,n)=>t in e?Lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dr=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&Nr(e,n,t[n]);if(kr)for(var n of kr(t))Pr.call(t,n)&&Nr(e,n,t[n]);return e},Ur=(e,t)=>{var n={};for(var r in e)xr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&kr)for(var r of kr(e))t.indexOf(r)<0&&Pr.call(e,r)&&(n[r]=e[r]);return n};const Mr=(e,t)=>{const{formats:n}=dr();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},_r=Or((e=>{var t=e,{locale:n,format:r}=t,i=Ur(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(i=Mr("number",r)),new Intl.NumberFormat(n,i)})),Gr=Or((e=>{var t=e,{locale:n,format:r}=t,i=Ur(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?i=Mr("date",r):0===Object.keys(i).length&&(i=Mr("date","short")),new Intl.DateTimeFormat(n,i)})),jr=Or((e=>{var t=e,{locale:n,format:r}=t,i=Ur(t,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?i=Mr("time",r):0===Object.keys(i).length&&(i=Mr("time","short")),new Intl.DateTimeFormat(n,i)})),Qr=Or((
667
667
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
668
- (e,t=Rr())=>new Wn(e,t,dr().formats,{ignoreTag:dr().ignoreTag}))),Fr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Rr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=tr(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=dr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=Qr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},zr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return jr(Dr({locale:n},r))})(t).format(e),Jr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return Gr(Dr({locale:n},r))})(t).format(e),Xr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return _r(Dr({locale:n},r))})(t).format(e),Kr=(e,t=Rr())=>tr(e,t),Zr=mt([Hr,rr],(()=>Fr));function Vr(e,t){sr(e,t)}mt([Hr],(()=>zr)),mt([Hr],(()=>Jr)),mt([Hr],(()=>Xr)),mt([Hr,rr],(()=>Kr)),window.emWidgets={topic:(e,t=0)=>{if(-1==ft.indexOf(e)){let n=new ht(t);pt[e]=n,ft.push(e)}return pt[e]}};const Yr={en:{tournamentsSlider:{loading:"Loading"}},hr:{tournamentsSlider:{loading:"Učitavanje"}},ro:{tournamentsSlider:{loading:"Se încarcă"}},tr:{tournamentsSlider:{loading:"Yükleniyor"}},el:{tournamentsSlider:{loading:"Φο’ρτωση"}},es:{tournamentsSlider:{loading:"Cargando"}},hu:{tournamentsSlider:{loading:"Betöltés"}}};var qr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){
668
+ (e,t=Rr())=>new Wn(e,t,dr().formats,{ignoreTag:dr().ignoreTag}))),Fr=(e,t={})=>{var n,r,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=Rr(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=tr(e,l);if(u){if("string"!=typeof u)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),u}else u=null!=(o=null!=(i=null==(r=(n=dr()).handleMissingMessage)?void 0:r.call(n,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=Qr(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},zr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return jr(Dr({locale:n},r))})(t).format(e),Jr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return Gr(Dr({locale:n},r))})(t).format(e),Xr=(e,t)=>((e={})=>{var t=e,{locale:n=Rr()}=t,r=Ur(t,["locale"]);return _r(Dr({locale:n},r))})(t).format(e),Kr=(e,t=Rr())=>tr(e,t),Zr=mt([Hr,rr],(()=>Fr));function Vr(e,t){sr(e,t)}mt([Hr],(()=>zr)),mt([Hr],(()=>Jr)),mt([Hr],(()=>Xr)),mt([Hr,rr],(()=>Kr)),window.emWidgets={topic:(e,t=0)=>{if(-1==ft.indexOf(e)){let n=new ht(t);pt[e]=n,ft.push(e)}return pt[e]}};const Yr={en:{loading:"Loading"},hr:{loading:"Učitavanje"},ro:{loading:"Se încarcă"},tr:{loading:"Yükleniyor"},el:{loading:"Φο’ρτωση"},es:{loading:"Cargando"},hu:{loading:"Betöltés"}};var qr=function(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}((function(e,t){
669
669
  /** @license
670
670
  * eventsource.js
671
671
  * Available under MIT License (MIT)
@@ -762,7 +762,7 @@ a=setTimeout((()=>{s=(new Date).getTime(),(s-o)/1e3>4&&n(7,A=!1),l=i}),5e3),t(e)
762
762
  /* src/CasinoTournamentsSliderController.svelte generated by Svelte v3.59.2 */
763
763
  function ii(e,t,n){const r=e.slice();return r[64]=t[n],r[66]=n,r}
764
764
  // (347:4) {#if (!tournamentList )}
765
- function oi(e){let t,n,r,i,o,s,a,l,c,u=/*$_*/e[13]("tournamentsSlider.loading")+"";return{c(){var h,f,p,d;t=b("div"),n=b("div"),r=b("span"),i=w(u),o=B(),s=b("div"),a=b("casino-tournaments-rank"),l=B(),c=b("div"),I(r,"part","TournamentInfo_Name_link"),I(n,"part","TournamentInfo_Name"),I(n,"class","name"),C(a,"displayin","col"),C(a,"showicon","false"),C(a,"userrank","-"),C(a,"prize","-"),C(a,"overallrank","-"),C(a,"tournamentid",""),C(a,"clientstyling",/*clientstyling*/e[1]),C(a,"clientstylingurl",/*clientstylingurl*/e[2]),I(s,"part","TournamentInfo_Rank"),I(s,"class","rank"),I(c,"part","TournamentInfo_Points"),I(c,"class","circle"),I(t,"part","TournamentLoading"),I(t,"class","TournamentInfo SearchLoading"),h=t,f="height",null==(p="200px")?h.style.removeProperty(f):h.style.setProperty(f,p,d?"important":"")},m(e,u){A(e,t,u),g(t,n),g(n,r),g(r,i),g(t,o),g(t,s),g(s,a),g(t,l),g(t,c)},p(e,t){/*$_*/8192&t[0]&&u!==(u=/*$_*/e[13]("tournamentsSlider.loading")+"")&&H(i,u),/*clientstyling*/2&t[0]&&C(a,"clientstyling",/*clientstyling*/e[1]),/*clientstylingurl*/4&t[0]&&C(a,"clientstylingurl",/*clientstylingurl*/e[2])},d(e){e&&v(t)}}}
765
+ function oi(e){let t,n,r,i,o,s,a,l,c,u=/*$_*/e[13]("loading")+"";return{c(){var h,f,p,d;t=b("div"),n=b("div"),r=b("span"),i=w(u),o=B(),s=b("div"),a=b("casino-tournaments-rank"),l=B(),c=b("div"),I(r,"part","TournamentInfo_Name_link"),I(n,"part","TournamentInfo_Name"),I(n,"class","name"),C(a,"displayin","col"),C(a,"showicon","false"),C(a,"userrank","-"),C(a,"prize","-"),C(a,"overallrank","-"),C(a,"tournamentid",""),C(a,"clientstyling",/*clientstyling*/e[1]),C(a,"clientstylingurl",/*clientstylingurl*/e[2]),I(s,"part","TournamentInfo_Rank"),I(s,"class","rank"),I(c,"part","TournamentInfo_Points"),I(c,"class","circle"),I(t,"part","TournamentLoading"),I(t,"class","TournamentInfo SearchLoading"),h=t,f="height",null==(p="200px")?h.style.removeProperty(f):h.style.setProperty(f,p,d?"important":"")},m(e,u){A(e,t,u),g(t,n),g(n,r),g(r,i),g(t,o),g(t,s),g(s,a),g(t,l),g(t,c)},p(e,t){/*$_*/8192&t[0]&&u!==(u=/*$_*/e[13]("loading")+"")&&H(i,u),/*clientstyling*/2&t[0]&&C(a,"clientstyling",/*clientstyling*/e[1]),/*clientstylingurl*/4&t[0]&&C(a,"clientstylingurl",/*clientstylingurl*/e[2])},d(e){e&&v(t)}}}
766
766
  // (357:4) {#if (tournamentList && tournamentList.length > 0) }
767
767
  function si(e){let t,n,r,i,o,s,a,l,c,u,h,f,p,d,m,y,E,R,S=/*currentTournament*/e[7].name+"",O=/*tournamentList*/e[4],L=[];for(let t=0;t<O.length;t+=1)L[t]=ai(ii(e,O,t));return{c(){t=b("div"),n=b("div"),r=b("span"),i=w(S),s=B(),a=b("div"),l=b("casino-tournaments-rank"),p=B(),d=b("div");for(let e=0;e<L.length;e+=1)L[e].c();I(r,"part","TournamentInfo_Name_link"),I(r,"class","TournamentNameLink"),I(r,"title",o=/*currentTournament*/e[7].name),I(n,"part","TournamentInfo_Name"),I(n,"class","name"),C(l,"displayin","col"),C(l,"showicon","false"),C(l,"userrank",c=/*currentTournament*/e[7].rank),C(l,"prize",u=/*currentTournament*/e[7].prize),C(l,"overallrank",h=/*currentTournament*/e[7].overallRank),C(l,"tournamentid",f=/*currentTournament*/e[7].id),C(l,"clientstyling",/*clientstyling*/e[1]),C(l,"clientstylingurl",/*clientstylingurl*/e[2]),I(a,"part","TournamentInfo_Rank"),I(a,"class","rank"),I(d,"part","TournamentInfo_Points"),I(d,"class","circle"),I(t,"part","TournamentInfo"),I(t,"class","TournamentInfo")},m(o,c){A(o,t,c),g(t,n),g(n,r),g(r,i),g(t,s),g(t,a),g(a,l),g(t,p),g(t,d);for(let e=0;e<L.length;e+=1)L[e]&&L[e].m(d,null);
768
768
  /*div3_binding*/e[27](t),y=!0,E||(R=T(r,"click",/*click_handler_1*/e[26]),E=!0)},p(e,t){if((!y||/*currentTournament*/128&t[0])&&S!==(S=/*currentTournament*/e[7].name+"")&&H(i,S),(!y||/*currentTournament*/128&t[0]&&o!==(o=/*currentTournament*/e[7].name))&&I(r,"title",o),(!y||/*currentTournament*/128&t[0]&&c!==(c=/*currentTournament*/e[7].rank))&&C(l,"userrank",c),(!y||/*currentTournament*/128&t[0]&&u!==(u=/*currentTournament*/e[7].prize))&&C(l,"prize",u),(!y||/*currentTournament*/128&t[0]&&h!==(h=/*currentTournament*/e[7].overallRank))&&C(l,"overallrank",h),(!y||/*currentTournament*/128&t[0]&&f!==(f=/*currentTournament*/e[7].id))&&C(l,"tournamentid",f),(!y||/*clientstyling*/2&t[0])&&C(l,"clientstyling",/*clientstyling*/e[1]),(!y||/*clientstylingurl*/4&t[0])&&C(l,"clientstylingurl",/*clientstylingurl*/e[2]),/*currentTournamentIdx, tournamentList*/48&t[0]){let n;for(O=/*tournamentList*/e[4],n=0;n<O.length;n+=1){const r=ii(e,O,n);L[n]?L[n].p(r,t):(L[n]=ai(r),L[n].c(),L[n].m(d,null))}for(;n<L.length;n+=1)L[n].d(1);L.length=O.length}},i(e){y||(F((()=>{y&&(m||(m=te(t,se,{delay:250,duration:300},!0)),m.run(1))})),y=!0)},o(e){m||(m=te(t,se,{delay:250,duration:300},!1)),m.run(0),y=!1},d(n){n&&v(t),function(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}(L,n),