@everymatrix/casino-tournaments-limited-controller 1.44.0 → 1.45.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.
@@ -0,0 +1 @@
1
+ "use strict";var H=Object.defineProperty,R=Object.defineProperties;var U=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var T=(t,e,i)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,_=(t,e)=>{for(var i in e||(e={}))k.call(e,i)&&T(t,i,e[i]);if(b)for(var i of b(e))C.call(e,i)&&T(t,i,e[i]);return t},y=(t,e)=>R(t,U(e));var L=(t,e)=>{var i={};for(var l in t)k.call(t,l)&&e.indexOf(l)<0&&(i[l]=t[l]);if(t!=null&&b)for(var l of b(t))e.indexOf(l)<0&&C.call(t,l)&&(i[l]=t[l]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./CasinoTournamentsLimitedController-D259Oc13.cjs"),j=t=>i=>{Object.keys(t).map(l=>{if(i.data&&i.data.type==l){const s=i.data,{type:a}=s,u=L(s,["type"]);t[l](u)}})},q=t=>{const e=j(t);n.onMount(()=>(window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e)}))};function O(t){n.append_styles(t,"svelte-1eq8iwl","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-tournaments-tab{color:#F7F7F7;font:inherit;margin:3.125vw 0 1.25vw 0}.casino-tournaments-tab ul{display:flex;justify-content:space-between;width:100%;font-weight:600;font-size:3.75vw;border-bottom:0.3125vw #424242 solid}.casino-tournaments-tab ul li{position:relative;text-align:center;padding:2.5vw 3.125vw;word-break:break-word;flex:auto;display:block}.casino-tournaments-tab ul li.active{color:#FF8364;border-bottom:0.625vw #FF8364 solid}.casino-tournaments-tab ul li span{margin:auto 0}.casino-tournaments-tab sup{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 sup span{font-size:3.125vw;font-weight:600;padding-right:0.15625vw;display:inline-block;vertical-align:super}")}function F(t,e,i){const l=t.slice();return l[14]=e[i],l}function M(t){let e,i,l=t[1][t[14]]+"",s;return{c(){e=n.element("sup"),i=n.element("span"),s=n.text(l),n.attr(i,"part","SupText"),n.attr(e,"part","sup")},m(a,u){n.insert(a,e,u),n.append(e,i),n.append(i,s)},p(a,u){u&18&&l!==(l=a[1][a[14]]+"")&&n.set_data(s,l)},d(a){a&&n.detach(e)}}}function S(t){let e,i,l=t[2][t[14]]+"",s,a,u,o,d,f,h,c=t[1][t[14]]>=0&&M(t);function m(){return t[9](t[14])}return{c(){e=n.element("li"),i=n.element("span"),s=n.text(l),a=n.space(),c&&c.c(),u=n.space(),n.attr(i,"part","LiText"),n.attr(e,"class",o=t[3]===t[14]?"active":""),n.attr(e,"part",d=`${t[14]} li `+(t[3]===t[14]?"active":""))},m(p,g){n.insert(p,e,g),n.append(e,i),n.append(i,s),n.append(e,a),c&&c.m(e,null),n.append(e,u),f||(h=n.listen(e,"click",m),f=!0)},p(p,g){t=p,g&20&&l!==(l=t[2][t[14]]+"")&&n.set_data(s,l),t[1][t[14]]>=0?c?c.p(t,g):(c=M(t),c.c(),c.m(e,u)):c&&(c.d(1),c=null),g&24&&o!==(o=t[3]===t[14]?"active":"")&&n.attr(e,"class",o),g&24&&d!==(d=`${t[14]} li `+(t[3]===t[14]?"active":""))&&n.attr(e,"part",d)},d(p){p&&n.detach(e),c&&c.d(),f=!1,h()}}}function D(t){let e,i,l=n.ensure_array_like(t[4]),s=[];for(let a=0;a<l.length;a+=1)s[a]=S(F(t,l,a));return{c(){e=n.element("div"),i=n.element("ul");for(let a=0;a<s.length;a+=1)s[a].c();n.attr(i,"part","ul"),n.attr(e,"class","casino-tournaments-tab"),n.attr(e,"part","CustomStylingContainer")},m(a,u){n.insert(a,e,u),n.append(e,i);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(i,null);t[10](e)},p(a,[u]){if(u&30){l=n.ensure_array_like(a[4]);let o;for(o=0;o<l.length;o+=1){const d=F(a,l,o);s[o]?s[o].p(d,u):(s[o]=S(d),s[o].c(),s[o].m(i,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=l.length}},i:n.noop,o:n.noop,d(a){a&&n.detach(e),n.destroy_each(s,a),t[10](null)}}}function P(t,e,i){let l,s,{tabs:a=""}=e,{tab:u=void 0}=e,{clientstyling:o=""}=e,{clientstylingurl:d=""}=e,f,h={},c={};const m=()=>{let r=document.createElement("style");r.innerHTML=o,f.appendChild(r)},p=()=>{let r=new URL(d),v=document.createElement("style");fetch(r.href).then(w=>w.text()).then(w=>{v.innerHTML=w,setTimeout(()=>{f.appendChild(v)},1),setTimeout(()=>{},500)})};q({TournamentsTabTotalUpdate:r=>{i(1,h=y(_({},h),{[r.state]:r.total}))},TournamentsTabLocaleTextUpdate:r=>{i(2,c=y(_({},c),{[r.state]:r.text}))}}),n.onMount(()=>{window.postMessage({type:"TournamentsTabListenerLoaded"},window.location.href)});const g=r=>{i(3,s=r),window.postMessage({type:"TournamentsTabSwitch",tab:r},window.location.href)};function E(r){n.binding_callbacks[r?"unshift":"push"](()=>{f=r,i(0,f)})}return t.$$set=r=>{"tabs"in r&&i(5,a=r.tabs),"tab"in r&&i(6,u=r.tab),"clientstyling"in r&&i(7,o=r.clientstyling),"clientstylingurl"in r&&i(8,d=r.clientstylingurl)},t.$$.update=()=>{t.$$.dirty&129&&f&&o&&m(),t.$$.dirty&257&&f&&d&&p(),t.$$.dirty&32&&i(4,l=a.split(",")),t.$$.dirty&64&&i(3,s=u)},[f,h,c,s,l,a,u,o,d,g,E]}class z 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(z,{tabs:{},tab:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=z;
@@ -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-D259Oc13.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-CtMjsDyf.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.2",
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
- ```