@everymatrix/casino-tournaments-tab 1.4.1 → 1.5.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.
@@ -62,5 +62,5 @@ function M(t){let e,n,o,i=/*totalReceiver*/t[1][/*_tab*/t[14]]+"";return{c(){e=c
62
62
  function H(t){let e,n,o,i,s,h,g,m,b,$=/*textReceiver*/t[2][/*_tab*/t[14]]+"",y=/*totalReceiver*/t[1][/*_tab*/t[14]]>=0&&M(t);function w(){/*click_handler*/
63
63
  return t[9](/*_tab*/t[14])}return{c(){e=c("li"),n=c("span"),o=u($),i=d(),y&&y.c(),s=d(),f(n,"part","LiText"),f(e,"class",h=/*__tab*/t[3]===/*_tab*/t[14]?"active":""),f(e,"part",g=`${/*_tab*/t[14]} li `+(/*__tab*/t[3]===/*_tab*/t[14]?"active":""))},m(t,l){var c,u,d,f;a(t,e,l),r(e,n),r(n,o),r(e,i),y&&y.m(e,null),r(e,s),m||(u="click",d=w,(c=e).addEventListener(u,d,f),b=()=>c.removeEventListener(u,d,f),m=!0)},p(n,i){t=n,/*textReceiver, __tabs*/20&i&&$!==($=/*textReceiver*/t[2][/*_tab*/t[14]]+"")&&p(o,$),/*totalReceiver*/t[1][/*_tab*/t[14]]>=0?y?y.p(t,i):(y=M(t),y.c(),y.m(e,s)):y&&(y.d(1),y=null),/*__tab, __tabs*/24&i&&h!==(h=/*__tab*/t[3]===/*_tab*/t[14]?"active":"")&&f(e,"class",h),/*__tabs, __tab*/24&i&&g!==(g=`${/*_tab*/t[14]} li `+(/*__tab*/t[3]===/*_tab*/t[14]?"active":""))&&f(e,"part",g)},d(t){t&&l(e),y&&y.d(),m=!1,b()}}}function U(e){let n,o,i=/*__tabs*/e[4],s=[];for(let t=0;t<i.length;t+=1)s[t]=H(A(e,i,t));return{c(){n=c("div"),o=c("ul");for(let t=0;t<s.length;t+=1)s[t].c();this.c=t,f(o,"part","ul"),f(n,"class","casino-tournaments-tab"),f(n,"part","CustomStylingContainer")},m(t,i){a(t,n,i),r(n,o);for(let t=0;t<s.length;t+=1)s[t].m(o,null);
64
64
  /*div_binding*/e[10](n)},p(t,[e]){if(/*__tab, __tabs, window, totalReceiver, textReceiver*/30&e){let n;for(i=/*__tabs*/t[4],n=0;n<i.length;n+=1){const r=A(t,i,n);s[n]?s[n].p(r,e):(s[n]=H(r),s[n].c(),s[n].m(o,null))}for(;n<s.length;n+=1)s[n].d(1);s.length=i.length}},i:t,o:t,d(t){t&&l(n),function(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}(s,t),
65
- /*div_binding*/e[10](null)}}}function R(t,e,n){let o,i,s,{tabs:r=""}=e,{tab:a}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,u={},d={};z({TournamentsTabTotalUpdate:t=>{n(1,u=Object.assign(Object.assign({},u),{[t.state]:t.total}))},TournamentsTabLocaleTextUpdate:t=>{n(2,d=Object.assign(Object.assign({},d),{[t.state]:t.text}))}});return t.$$set=t=>{"tabs"in t&&n(5,r=t.tabs),"tab"in t&&n(6,a=t.tab),"clientstyling"in t&&n(7,l=t.clientstyling),"clientstylingurl"in t&&n(8,c=t.clientstylingurl)},t.$$.update=()=>{/*customStylingContainer, clientstyling*/129&t.$$.dirty&&s&&l&&(()=>{let t=document.createElement("style");t.innerHTML=l,s.appendChild(t)})(),/*customStylingContainer, clientstylingurl*/257&t.$$.dirty&&s&&c&&(()=>{let t=new URL(c),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1),setTimeout((()=>{}),500)}))})(),/*tabs*/32&t.$$.dirty&&n(4,o=r.split(",")),/*tab*/64&t.$$.dirty&&n(3,i=a)},[s,u,d,i,o,r,a,l,c,t=>{n(3,i=t),window.postMessage({type:"TournamentsTabSwitch",tab:t})},function(t){y[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}class N extends S{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::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}</style>",O(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},R,U,s,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),j()))}static get observedAttributes(){return["tabs","tab","clientstyling","clientstylingurl"]}get tabs(){return this.$$.ctx[5]}set tabs(t){this.$$set({tabs:t}),j()}get tab(){return this.$$.ctx[6]}set tab(t){this.$$set({tab:t}),j()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),j()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),j()}}return!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",N),N}));
65
+ /*div_binding*/e[10](null)}}}function R(t,e,n){let o,i,s,{tabs:r=""}=e,{tab:a}=e,{clientstyling:l=""}=e,{clientstylingurl:c=""}=e,u={},d={};z({TournamentsTabTotalUpdate:t=>{n(1,u=Object.assign(Object.assign({},u),{[t.state]:t.total}))},TournamentsTabLocaleTextUpdate:t=>{n(2,d=Object.assign(Object.assign({},d),{[t.state]:t.text}))}});return t.$$set=t=>{"tabs"in t&&n(5,r=t.tabs),"tab"in t&&n(6,a=t.tab),"clientstyling"in t&&n(7,l=t.clientstyling),"clientstylingurl"in t&&n(8,c=t.clientstylingurl)},t.$$.update=()=>{/*customStylingContainer, clientstyling*/129&t.$$.dirty&&s&&l&&(()=>{let t=document.createElement("style");t.innerHTML=l,s.appendChild(t)})(),/*customStylingContainer, clientstylingurl*/257&t.$$.dirty&&s&&c&&(()=>{let t=new URL(c),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{s.appendChild(e)}),1),setTimeout((()=>{}),500)}))})(),/*tabs*/32&t.$$.dirty&&n(4,o=r.split(",")),/*tab*/64&t.$$.dirty&&n(3,i=a)},[s,u,d,i,o,r,a,l,c,t=>{n(3,i=t),window.postMessage({type:"TournamentsTabSwitch",tab:t})},function(t){y[t?"unshift":"push"]((()=>{s=t,n(0,s)}))}]}class N extends S{constructor(t){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::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}</style>',O(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},R,U,s,{tabs:5,tab:6,clientstyling:7,clientstylingurl:8},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),j()))}static get observedAttributes(){return["tabs","tab","clientstyling","clientstylingurl"]}get tabs(){return this.$$.ctx[5]}set tabs(t){this.$$set({tabs:t}),j()}get tab(){return this.$$.ctx[6]}set tab(t){this.$$set({tab:t}),j()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),j()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),j()}}return!customElements.get("casino-tournaments-tab")&&customElements.define("casino-tournaments-tab",N),N}));
66
66
  //# sourceMappingURL=casino-tournaments-tab.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-tab",
3
- "version": "1.4.1",
3
+ "version": "1.5.2",
4
4
  "main": "dist/casino-tournaments-tab.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "1d59a96e434455c55cc56d4e7655e9fbd4de8141"
39
+ "gitHead": "c0184ad3edaaa8f9ce54289cf544bb0589ef1fbe"
40
40
  }