@everymatrix/casino-tournaments-limited-controller 1.44.0 → 1.45.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.
@@ -0,0 +1 @@
1
+ "use strict";var E=Object.defineProperty,H=Object.defineProperties;var R=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var T=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var j=(t,e,l)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:l}):t[e]=l,_=(t,e)=>{for(var l in e||(e={}))T.call(e,l)&&j(t,l,e[l]);if(h)for(var l of h(e))k.call(e,l)&&j(t,l,e[l]);return t},y=(t,e)=>H(t,R(e));var C=(t,e)=>{var l={};for(var s in t)T.call(t,s)&&e.indexOf(s)<0&&(l[s]=t[s]);if(t!=null&&h)for(var s of h(t))e.indexOf(s)<0&&k.call(t,s)&&(l[s]=t[s]);return l};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CasinoTournamentsLimitedController-DZv4fAau.cjs"),U=t=>l=>{Object.keys(t).map(s=>{if(l.data&&l.data.type==s){const a=l.data,{type:i}=a,c=C(a,["type"]);t[s](c)}})},q=t=>{const e=U(t);n.onMount(()=>(window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}))};function O(t){n.append_styles(t,"svelte-1dj34fv",".svelte-1dj34fv.svelte-1dj34fv,.svelte-1dj34fv.svelte-1dj34fv::before,.svelte-1dj34fv.svelte-1dj34fv::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab.svelte-1dj34fv.svelte-1dj34fv{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab.svelte-1dj34fv ul.svelte-1dj34fv{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab.svelte-1dj34fv ul li.svelte-1dj34fv{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab.svelte-1dj34fv ul li.active.svelte-1dj34fv{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab.svelte-1dj34fv ul li span.svelte-1dj34fv{margin:auto 0}.casino-tournaments-tab.svelte-1dj34fv sup.svelte-1dj34fv{box-sizing:border-box;position:absolute;top:2.8125vw;right:0;transform:translate(0%, -50%);transform-origin:100% 0%;overflow:hidden;direction:ltr;z-index:auto;min-width:4.375vw;height:4.375vw;color:#fff;font-weight:400;font-size:4.375vw;line-height:4.375vw;white-space:nowrap;text-align:center;background:#FF8364;border-radius:3.125vw}.casino-tournaments-tab.svelte-1dj34fv sup span.svelte-1dj34fv{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(t,e,l){const s=t.slice();return s[14]=e[l],s}function L(t){let e,l,s=t[1][t[14]]+"",a;return{c(){e=n.element("sup"),l=n.element("span"),a=n.text(s),n.attr(l,"part","SupText"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"part","sup"),n.attr(e,"class","svelte-1dj34fv")},m(i,c){n.insert(i,e,c),n.append(e,l),n.append(l,a)},p(i,c){c&18&&s!==(s=i[1][i[14]]+"")&&n.set_data(a,s)},d(i){i&&n.detach(e)}}}function S(t){let e,l,s=t[2][t[14]]+"",a,i,c,r,u,f,p,d=t[1][t[14]]>=0&&L(t);function m(){return t[9](t[14])}return{c(){e=n.element("li"),l=n.element("span"),a=n.text(s),i=n.space(),d&&d.c(),c=n.space(),n.attr(l,"part","LiText"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"class",r=n.null_to_empty(t[3]===t[14]?"active":"")+" svelte-1dj34fv"),n.attr(e,"part",u=`${t[14]} li `+(t[3]===t[14]?"active":""))},m(g,v){n.insert(g,e,v),n.append(e,l),n.append(l,a),n.append(e,i),d&&d.m(e,null),n.append(e,c),f||(p=n.listen(e,"click",m),f=!0)},p(g,v){t=g,v&20&&s!==(s=t[2][t[14]]+"")&&n.set_data(a,s),t[1][t[14]]>=0?d?d.p(t,v):(d=L(t),d.c(),d.m(e,c)):d&&(d.d(1),d=null),v&24&&r!==(r=n.null_to_empty(t[3]===t[14]?"active":"")+" svelte-1dj34fv")&&n.attr(e,"class",r),v&24&&u!==(u=`${t[14]} li `+(t[3]===t[14]?"active":""))&&n.attr(e,"part",u)},d(g){g&&n.detach(e),d&&d.d(),f=!1,p()}}}function D(t){let e,l,s=n.ensure_array_like(t[4]),a=[];for(let i=0;i<s.length;i+=1)a[i]=S(F(t,s,i));return{c(){e=n.element("div"),l=n.element("ul");for(let i=0;i<a.length;i+=1)a[i].c();n.attr(l,"part","ul"),n.attr(l,"class","svelte-1dj34fv"),n.attr(e,"class","casino-tournaments-tab svelte-1dj34fv"),n.attr(e,"part","CustomStylingContainer")},m(i,c){n.insert(i,e,c),n.append(e,l);for(let r=0;r<a.length;r+=1)a[r]&&a[r].m(l,null);t[10](e)},p(i,[c]){if(c&30){s=n.ensure_array_like(i[4]);let r;for(r=0;r<s.length;r+=1){const u=F(i,s,r);a[r]?a[r].p(u,c):(a[r]=S(u),a[r].c(),a[r].m(l,null))}for(;r<a.length;r+=1)a[r].d(1);a.length=s.length}},i:n.noop,o:n.noop,d(i){i&&n.detach(e),n.destroy_each(a,i),t[10](null)}}}function P(t,e,l){let s,a,{tabs:i=""}=e,{tab:c=void 0}=e,{clientstyling:r=""}=e,{clientstylingurl:u=""}=e,f,p={},d={};const m=()=>{let o=document.createElement("style");o.innerHTML=r,f.appendChild(o)},g=()=>{let o=new URL(u),w=document.createElement("style");fetch(o.href).then(b=>b.text()).then(b=>{w.innerHTML=b,setTimeout(()=>{f.appendChild(w)},1),setTimeout(()=>{},500)})};q({TournamentsTabTotalUpdate:o=>{l(1,p=y(_({},p),{[o.state]:o.total}))},TournamentsTabLocaleTextUpdate:o=>{l(2,d=y(_({},d),{[o.state]:o.text}))}});const v=o=>{l(3,a=o),window.postMessage({type:"TournamentsTabSwitch",tab:o},window.location.href)};function z(o){n.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(0,f)})}return t.$$set=o=>{"tabs"in o&&l(5,i=o.tabs),"tab"in o&&l(6,c=o.tab),"clientstyling"in o&&l(7,r=o.clientstyling),"clientstylingurl"in o&&l(8,u=o.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&129&&f&&r&&m(),t.$$.dirty&257&&f&&u&&g(),t.$$.dirty&32&&l(4,s=i.split(",")),t.$$.dirty&64&&l(3,a=c)},[f,p,d,a,s,i,c,r,u,v,z]}class M extends n.SvelteComponent{constructor(e){super(),n.init(this,e,P,D,n.safe_not_equal,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},O)}get tabs(){return this.$$.ctx[5]}set tabs(e){this.$$set({tabs:e}),n.flush()}get tab(){return this.$$.ctx[6]}set tab(e){this.$$set({tab:e}),n.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(e){this.$$set({clientstyling:e}),n.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),n.flush()}}n.create_custom_element(M,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=M;
@@ -0,0 +1 @@
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsLimitedController-DZv4fAau.cjs")).then(e=>e.CasinoTournamentsLimitedController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-limited-controller")&&customElements.define("casino-tournaments-limited-controller",e.element)})}
@@ -0,0 +1,19 @@
1
+ if (typeof window != "undefined") {
2
+ let n = function(e) {
3
+ return function(...s) {
4
+ try {
5
+ return e.apply(this, s);
6
+ } catch (t) {
7
+ if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
8
+ return !1;
9
+ throw t;
10
+ }
11
+ };
12
+ };
13
+ customElements.define = n(customElements.define), import("../components/CasinoTournamentsLimitedController-Cv5rDdyV.js").then((e) => e.C).then(({ default: e }) => {
14
+ !customElements.get("casino-tournaments-limited-controller") && customElements.define(
15
+ "casino-tournaments-limited-controller",
16
+ e.element
17
+ );
18
+ });
19
+ }
package/package.json CHANGED
@@ -1,39 +1,24 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-limited-controller",
3
- "version": "1.44.0",
4
- "main": "dist/casino-tournaments-limited-controller.js",
5
- "svelte": "src/index.ts",
6
- "scripts": {
7
- "start": "sirv public",
8
- "build": "cross-env NODE_ENV=\"production\" && rollup -c",
9
- "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
- "validate": "svelte-check",
11
- "test": "echo"
12
- },
13
- "devDependencies": {
14
- "@rollup/plugin-babel": "^5.3.0",
15
- "@rollup/plugin-commonjs": "^16.0.0",
16
- "@rollup/plugin-node-resolve": "^10.0.0",
17
- "@rollup/plugin-typescript": "^6.0.0",
18
- "@tsconfig/svelte": "^1.0.0",
19
- "rollup": "^2.3.4",
20
- "rollup-plugin-dev-server": "^0.4.3",
21
- "rollup-plugin-livereload": "^2.0.0",
22
- "rollup-plugin-svelte": "^7.0.0",
23
- "rollup-plugin-terser": "^7.0.0",
24
- "rollup-plugin-uglify": "^6.0.4",
25
- "svelte-check": "^1.0.0",
26
- "svelte-preprocess": "^5.0.0",
27
- "tslib": "^2.0.0",
28
- "typescript": "^3.9.3"
29
- },
30
- "dependencies": {
31
- "cross-env": "^7.0.3",
32
- "sirv-cli": "^1.0.0",
33
- "svelte": "^3.0.0"
3
+ "version": "1.45.0",
4
+ "type": "module",
5
+ "main": "es2015/casino-tournaments-limited-controller.cjs",
6
+ "module": "es2015/casino-tournaments-limited-controller.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./es2015/casino-tournaments-limited-controller.js",
10
+ "require": "./es2015/casino-tournaments-limited-controller.cjs"
11
+ },
12
+ "./es2015/casino-tournaments-limited-controller.cjs": "./es2015/casino-tournaments-limited-controller.cjs"
34
13
  },
14
+ "files": [
15
+ "es2015/",
16
+ "components"
17
+ ],
35
18
  "publishConfig": {
36
19
  "access": "public"
37
20
  },
38
- "gitHead": "701410f2b76dfe1ee4038f799b1e8e340c85cdb5"
21
+ "dependencies": {
22
+ "@everymatrix/casino-tournaments-tab": "1.0.72"
23
+ }
39
24
  }
package/README.md DELETED
@@ -1,30 +0,0 @@
1
- # @everymatrix/casino-tournaments-limited-controller
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
- ```