@everymatrix/casino-filter 1.28.8 → 1.29.2
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/dist/casino-filter.js +1 -1
- package/dist/casino-filter.js.map +1 -1
- package/package.json +2 -2
- package/src/translations.js +12 -0
package/dist/casino-filter.js
CHANGED
|
@@ -641,7 +641,7 @@ this.formats=Br(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
641
641
|
// and Intl.DateTimeFormat instances.
|
|
642
642
|
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 Cr={},Fr=(e,t,r)=>r?(t in Cr||(Cr[t]={}),e in Cr[t]||(Cr[t][e]=r),r):r,Or=(e,t)=>{if(null==t)return;if(t in Cr&&e in Cr[t])return Cr[t][e];const r=rn(t);for(let n=0;n<r.length;n++){const i=Nr(r[n],e);if(i)return Fr(e,t,i)}};let Lr;const Ir=ze({});function xr(e){return e in Lr}function Nr(e,t){if(!xr(e))return null;const r=function(e){return Lr[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function Rr(e,...t){delete Cr[e],Ir.update((r=>(r[e]=rt.all([r[e]||{},...t]),r)))}Ke([Ir],(([e])=>Object.keys(e))),Ir.subscribe((e=>Lr=e));const Mr={};function Ur(e){return Mr[e]}function Dr(e){return null!=e&&rn(e).some((e=>{var t;return null==(t=Ur(e))?void 0:t.size}))}function kr(e,t){const r=Promise.all(t.map((t=>(function(e,t){Mr[e].delete(t),0===Mr[e].size&&delete Mr[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>Rr(e,...t)))}const Gr={};function $r(e){if(!Dr(e))return e in Gr?Gr[e]:Promise.resolve();const t=function(e){return rn(e).map((e=>{const t=Ur(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Gr[e]=Promise.all(t.map((([e,t])=>kr(e,t)))).then((()=>{if(Dr(e))return $r(e);delete Gr[e]})),Gr[e]}const jr={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 Vr(){return jr}const Xr=ze(!1);var zr=Object.defineProperty,Kr=Object.defineProperties,Wr=Object.getOwnPropertyDescriptors,Zr=Object.getOwnPropertySymbols,Yr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Jr=(e,t,r)=>t in e?zr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Qr;const en=ze(null);function tn(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function rn(e,t=Vr().fallbackLocale){const r=tn(e);return t?[...new Set([...r,...tn(t)])]:r}function nn(){return null!=Qr?Qr:void 0}en.subscribe((e=>{Qr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const on=(sn=((e,t)=>{for(var r in t||(t={}))Yr.call(t,r)&&Jr(e,r,t[r]);if(Zr)for(var r of Zr(t))qr.call(t,r)&&Jr(e,r,t[r]);return e})({},en),Kr(sn,Wr({set:e=>{if(e&&function(e){if(null==e)return;const t=rn(e);for(let e=0;e<t.length;e++){const r=t[e];if(xr(r))return r}}(e)&&Dr(e)){const{loadingDelay:t}=Vr();let r;return"undefined"!=typeof window&&null!=nn()&&t?r=window.setTimeout((()=>Xr.set(!0)),t):Xr.set(!0),$r(e).then((()=>{en.set(e)})).finally((()=>{clearTimeout(r),Xr.set(!1)}))}return en.set(e)}})));var sn;const an=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var ln=Object.defineProperty,cn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,fn=(e,t,r)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pn=(e,t)=>{for(var r in t||(t={}))un.call(t,r)&&fn(e,r,t[r]);if(cn)for(var r of cn(t))hn.call(t,r)&&fn(e,r,t[r]);return e},dn=(e,t)=>{var r={};for(var n in e)un.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&cn)for(var n of cn(e))t.indexOf(n)<0&&hn.call(e,n)&&(r[n]=e[n]);return r};const mn=(e,t)=>{const{formats:r}=Vr();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},yn=an((e=>{var t=e,{locale:r,format:n}=t,i=dn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=mn("number",n)),new Intl.NumberFormat(r,i)})),bn=an((e=>{var t=e,{locale:r,format:n}=t,i=dn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=mn("date",n):0===Object.keys(i).length&&(i=mn("date","short")),new Intl.DateTimeFormat(r,i)})),gn=an((e=>{var t=e,{locale:r,format:n}=t,i=dn(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=mn("time",n):0===Object.keys(i).length&&(i=mn("time","short")),new Intl.DateTimeFormat(r,i)})),vn=an((
|
|
643
643
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
644
|
-
(e,t=nn())=>new Pr(e,t,Vr().formats,{ignoreTag:Vr().ignoreTag}))),En=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=nn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Or(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==(n=(r=Vr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=vn(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},_n=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return gn(pn({locale:r},n))})(t).format(e),wn=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return bn(pn({locale:r},n))})(t).format(e),Tn=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return yn(pn({locale:r},n))})(t).format(e),An=(e,t=nn())=>Or(e,t),Sn=Ke([on,Ir],(()=>En));Ke([on],(()=>_n)),Ke([on],(()=>wn)),Ke([on],(()=>Tn)),Ke([on,Ir],(()=>An)),window.emWidgets={topic:(e,t=0)=>{if(-1==je.indexOf(e)){let r=new $e(t);Ve[e]=r,je.push(e)}return Ve[e]}};function Bn(e,t){Rr(e,t)}const Hn={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"}};
|
|
644
|
+
(e,t=nn())=>new Pr(e,t,Vr().formats,{ignoreTag:Vr().ignoreTag}))),En=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:l=nn(),default:c}=s;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=Or(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==(n=(r=Vr()).handleMissingMessage)?void 0:n.call(r,{locale:l,id:e,defaultValue:c}))?i:c)?o:e;if(!a)return u;let h=u;try{h=vn(u,l).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return h},_n=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return gn(pn({locale:r},n))})(t).format(e),wn=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return bn(pn({locale:r},n))})(t).format(e),Tn=(e,t)=>((e={})=>{var t=e,{locale:r=nn()}=t,n=dn(t,["locale"]);return yn(pn({locale:r},n))})(t).format(e),An=(e,t=nn())=>Or(e,t),Sn=Ke([on,Ir],(()=>En));Ke([on],(()=>_n)),Ke([on],(()=>wn)),Ke([on],(()=>Tn)),Ke([on,Ir],(()=>An)),window.emWidgets={topic:(e,t=0)=>{if(-1==je.indexOf(e)){let r=new $e(t);Ve[e]=r,je.push(e)}return Ve[e]}};function Bn(e,t){Rr(e,t)}const Hn={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"}};
|
|
645
645
|
/* src/CasinoFilter.svelte generated by Svelte v3.59.2 */function Pn(e,t,r){const n=e.slice();return n[36]=t[r],n[37]=t,n[38]=r,n}
|
|
646
646
|
// (178:4) {#if !isLoading}
|
|
647
647
|
function Cn(e){let t,r,i,o,s,a,l,c,E,_,w,T,A,S,B,H,P,C,F,O,L,I,x,N,R,M,U,D,k,G,$,j=/*$_*/e[11]("filterby")+"",V=/*$_*/e[11]("providers")+"",X=/*$_*/e[11]("clear")+"";function z(e,t){/*fullSelection*/
|