@everymatrix/casino-providers 0.0.365 → 0.0.367
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/README.md +30 -30
- package/dist/casino-providers.js +1 -1
- package/dist/casino-providers.js.map +1 -1
- package/index.html +101 -101
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +59 -59
- package/src/CasinoProviders.svelte +186 -186
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +122 -122
- package/stories/CasinoProviders.stories.js +13 -13
- package/tsconfig.json +6 -6
package/README.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# @everymatrix/casino-providers
|
|
2
|
-
---------
|
|
3
|
-
|
|
4
|
-
## First step
|
|
5
|
-
---------
|
|
6
|
-
```
|
|
7
|
-
lerna bootstrap
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Run Widget
|
|
11
|
-
---------
|
|
12
|
-
- starts server at port 5050
|
|
13
|
-
- has livereload
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
yarn run dev
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Build Widget
|
|
20
|
-
---------
|
|
21
|
-
```
|
|
22
|
-
yarn run build
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Publishing widget
|
|
26
|
-
---------
|
|
27
|
-
- Note add your user to the npm
|
|
28
|
-
```
|
|
29
|
-
lerna publish
|
|
30
|
-
```
|
|
1
|
+
# @everymatrix/casino-providers
|
|
2
|
+
---------
|
|
3
|
+
|
|
4
|
+
## First step
|
|
5
|
+
---------
|
|
6
|
+
```
|
|
7
|
+
lerna bootstrap
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Run Widget
|
|
11
|
+
---------
|
|
12
|
+
- starts server at port 5050
|
|
13
|
+
- has livereload
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
yarn run dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Build Widget
|
|
20
|
+
---------
|
|
21
|
+
```
|
|
22
|
+
yarn run build
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Publishing widget
|
|
26
|
+
---------
|
|
27
|
+
- Note add your user to the npm
|
|
28
|
+
```
|
|
29
|
+
lerna publish
|
|
30
|
+
```
|
package/dist/casino-providers.js
CHANGED
|
@@ -569,7 +569,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
|
|
|
569
569
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
570
570
|
PERFORMANCE OF THIS SOFTWARE.
|
|
571
571
|
***************************************************************************** */function Gt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}const Dt={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 $t(){return Dt}const Ft=$(!1);let kt;const xt=$(null);function jt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Vt(e,t=$t().fallbackLocale){const r=jt(e);return t?[...new Set([...r,...jt(t)])]:r}function Xt(){return null!=kt?kt:void 0}xt.subscribe((e=>{kt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Kt=Object.assign(Object.assign({},xt),{set:e=>{if(e&&function(e){if(null==e)return;const t=Vt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Nt(r))return r}}(e)&&Mt(e)){const{loadingDelay:t}=$t();let r;return"undefined"!=typeof window&&null!=Xt()&&t?r=window.setTimeout((()=>Ft.set(!0)),t):Ft.set(!0),Ut(e).then((()=>{xt.set(e)})).finally((()=>{clearTimeout(r),Ft.set(!1)}))}return xt.set(e)}}),Yt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},zt=(e,t)=>{const{formats:r}=$t();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Zt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=zt("number",r)),new Intl.NumberFormat(t,n)})),Wt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=zt("date",r):0===Object.keys(n).length&&(n=zt("date","short")),new Intl.DateTimeFormat(t,n)})),Qt=Yt((e=>{var{locale:t,format:r}=e,n=Gt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=zt("time",r):0===Object.keys(n).length&&(n=zt("time","short")),new Intl.DateTimeFormat(t,n)})),Jt=Yt(((e,t=Xt())=>new Pt(e,t,$t().formats,{ignoreTag:$t().ignoreTag}))),qt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:h=Xt(),default:l}=s;if(null==h)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let u=At(e,h);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=$t()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:h,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return u;let c=u;try{c=Jt(u,h).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return c},er=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Qt(Object.assign({locale:t},r))})(t).format(e),tr=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Wt(Object.assign({locale:t},r))})(t).format(e),rr=(e,t)=>((e={})=>{var{locale:t=Xt()}=e,r=Gt(e,["locale"]);return Zt(Object.assign({locale:t},r))})(t).format(e),nr=(e,t=Xt())=>At(e,t),ir=F([Kt,Lt],(()=>qt));
|
|
572
|
-
/* src
|
|
572
|
+
/* src\CasinoProviders.svelte generated by Svelte v3.48.0 */
|
|
573
573
|
function or(e,t,r){const n=e.slice();return n[20]=t[r],n}function sr(e,t,r){const n=e.slice();return n[20]=t[r],n}
|
|
574
574
|
// (71:4) {:else}
|
|
575
575
|
function ar(e){let t,r,n,i,o,s,a,h,l=/*$_*/e[4]("Translations.popularProviders")+"",b=/*$_*/e[4]("Translations.otherProviders")+"",v=/*topProviders*/e[0],T=[];for(let t=0;t<v.length;t+=1)T[t]=lr(sr(e,v,t));let H=/*otherProviders*/e[1],P=[];for(let t=0;t<H.length;t+=1)P[t]=ur(or(e,H,t));return{c(){t=m("h4"),r=g(l),n=d();for(let e=0;e<T.length;e+=1)T[e].c();i=d(),o=m("h4"),s=g(b),a=d();for(let e=0;e<P.length;e+=1)P[e].c();h=g(""),E(t,"class","ProviderTitle"),E(o,"class","ProviderTitle")},m(e,l){c(e,t,l),u(t,r),c(e,n,l);for(let t=0;t<T.length;t+=1)T[t].m(e,l);c(e,i,l),c(e,o,l),u(o,s),c(e,a,l);for(let t=0;t<P.length;t+=1)P[t].m(e,l);c(e,h,l)},p(e,t){if(/*$_*/16&t&&l!==(l=/*$_*/e[4]("Translations.popularProviders")+"")&&y(r,l),/*openGameProviderPage, topProviders, $_*/49&t){let r;for(v=/*topProviders*/e[0],r=0;r<v.length;r+=1){const n=sr(e,v,r);T[r]?T[r].p(n,t):(T[r]=lr(n),T[r].c(),T[r].m(i.parentNode,i))}for(;r<T.length;r+=1)T[r].d(1);T.length=v.length}if(/*$_*/16&t&&b!==(b=/*$_*/e[4]("Translations.otherProviders")+"")&&y(s,b),/*openGameProviderPage, otherProviders, $_*/50&t){let r;for(H=/*otherProviders*/e[1],r=0;r<H.length;r+=1){const n=or(e,H,r);P[r]?P[r].p(n,t):(P[r]=ur(n),P[r].c(),P[r].m(h.parentNode,h))}for(;r<P.length;r+=1)P[r].d(1);P.length=H.length}},d(e){e&&p(t),e&&p(n),f(T,e),e&&p(i),e&&p(o),e&&p(a),f(P,e),e&&p(h)}}}
|