@everymatrix/casino-tournament-duration 1.43.4 → 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.
Files changed (48) hide show
  1. package/dist/casino-tournament-duration/casino-tournament-duration.esm.js +1 -1
  2. package/dist/casino-tournament-duration/p-57ef1124.js +2 -0
  3. package/dist/casino-tournament-duration/p-b0ea5595.entry.js +1 -0
  4. package/dist/casino-tournament-duration/p-e1255160.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/casino-tournament-duration.cjs.entry.js +205 -201
  7. package/dist/cjs/casino-tournament-duration.cjs.js +17 -11
  8. package/dist/cjs/index-5302010b.js +1201 -0
  9. package/dist/cjs/loader.cjs.js +7 -13
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/casino-tournament-duration/casino-tournament-duration.js +263 -268
  12. package/dist/collection/components/casino-tournament-duration/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +88 -88
  14. package/dist/collection/utils/utils.js +1 -1
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/casino-tournament-duration.entry.js +205 -201
  17. package/dist/esm/casino-tournament-duration.js +14 -11
  18. package/dist/esm/index-2af9ace7.js +1174 -0
  19. package/dist/esm/loader.js +7 -13
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/casino-tournament-duration/casino-tournament-duration.d.ts +45 -45
  25. package/dist/types/components/casino-tournament-duration/index.d.ts +1 -0
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +8 -1
  34. package/dist/casino-tournament-duration/p-183a9160.entry.js +0 -1
  35. package/dist/casino-tournament-duration/p-5f4837aa.js +0 -1
  36. package/dist/cjs/index-764d2bff.js +0 -1170
  37. package/dist/components/casino-tournament-duration.d.ts +0 -11
  38. package/dist/components/casino-tournament-duration.js +0 -257
  39. package/dist/components/index.d.ts +0 -26
  40. package/dist/components/index.js +0 -1
  41. package/dist/esm/index-4075dde6.js +0 -1144
  42. package/dist/esm/polyfills/core-js.js +0 -11
  43. package/dist/esm/polyfills/css-shim.js +0 -1
  44. package/dist/esm/polyfills/dom.js +0 -79
  45. package/dist/esm/polyfills/es5-html-element.js +0 -1
  46. package/dist/esm/polyfills/index.js +0 -34
  47. package/dist/esm/polyfills/system.js +0 -6
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-tournament-duration/.stencil/packages/casino-tournament-duration/stencil.config.d.ts +0 -2
@@ -1 +1 @@
1
- import{p as t,b as n}from"./p-5f4837aa.js";(()=>{const n=import.meta.url,a={};return""!==n&&(a.resourcesUrl=new URL(".",n).href),t(a)})().then((t=>n([["p-183a9160",[[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}]]]],t)));
1
+ import{p as t,b as a}from"./p-57ef1124.js";export{s as setNonce}from"./p-57ef1124.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),t(n)})().then((async t=>(await n(),a([["p-b0ea5595",[[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]},null,{language:["watchLanguage"]}]]]],t))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],p=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.l?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(m),$(p),(d=m.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(p,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>C,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,C=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},A=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),R={},T=e=>n(e).$hostElement$,D=new WeakMap,H=e=>"sc-"+e.v,L=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else{const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},N=/\s/,U=e=>e?e.split(N):[],W=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of F(Object.keys(o)))e in s||L(l,e,o[e],void 0,n,t.l);for(const e of F(Object.keys(s)))L(l,e,o[e],s[e],n,t.l)};function F(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.p),W(null,l,q),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=G(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},V=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=G(null,n,o),r&&(l[o].$=r,I(i,r,t)))},_=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},z=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),B=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(W(e,t,q),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],m=l.length-1,p=l[0],y=l[m];for(;i<=f&&c<=m;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--m];else if(z(h,p,o))B(h,p,o),h=t[++i],p=l[++c];else if(z(d,y,o))B(d,y,o),d=t[--f],y=l[--m];else if(z(h,y,o))B(h,y,o),I(e,h.$,d.$.nextSibling),h=t[++i],y=l[--m];else if(z(d,p,o))B(d,p,o),I(e,d.$,h.$),d=t[--f],p=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===p.m){u=a;break}u>=0?(r=t[u],r.p!==p.p?s=G(t&&t[c],n,u):(B(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=G(t&&t[c],n,c),p=l[++c]),s&&I(h.$.parentNode,s,h.$)}i>f?V(e,null==l[m+1]?null:l[m+1].$,n,l,c,m):c>m&&_(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),V(l,null,t,s,0,s.length-1)):!n&&null!==o&&_(o,0,o.length-1)):e.i!==r&&(l.data=r)},I=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.l|=16,!(4&e.l))return J(e,e.j),b((()=>Q(e,t)));e.l|=512},Q=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=le(n,"componentWillLoad")),X(l,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=H(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=D.get(e=e.head||e);if(r||D.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.O)?n:j(u);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ee(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ee=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||A(null,null),r=(e=>e&&e.p===R)(t)?t:x(null,null,t);if(M=l.tagName,o.C&&(r.u=r.u||{},o.C.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,B(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.j;le(e.t,"componentDidRender"),64&e.l||(e.l|=64,oe(t),e.P(t),n||ne()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>K(e,!1))),e.l&=-517},ne=()=>{oe(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-tournament-duration"}});return e.dispatchEvent(t),t})(c)))},le=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},oe=e=>e.classList.add("hydrated"),se=(e,t,l)=>{var s,r;const i=e.prototype;if(t.A||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(s=t.A)?s:{});if(c.map((([e,[s]])=>{(31&s||2&l&&32&s)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,s)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${s.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||g(e)?e:1&t?e+"":e)(l,s.A[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(s.R&&128&u){const e=s.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){o(e,i)}}))}2==(18&u)&&K(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.R)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.R)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.C)||o.push([e,s])),s}))]))}}return e},re=(e,l={})=>{var f;const d=[],m=l.exclude||[],p=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),w=u.createElement("style"),v=[];let b,S=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{var i;const c={l:l[0],v:l[1],A:l[2],D:l[3]};4&c.l&&(g=!0),c.A=l[2],c.C=[],c.R=null!=(i=l[4])?i:{};const u=c.v,f=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.H=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),S?v.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.k,i=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(t,t.j=n);break}}l.A&&Object.entries(l.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.L){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.L;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.N}" was not found`);l.isProxied||(n.R=l.watchers,se(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,t.l|=128,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=H(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>K(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};c.L=e[0],m.includes(u)||p.get(u)||(d.push(u),p.define(u,se(f,c,1)))}))})),d.length>0&&(g&&(w.textContent+=i),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(f=a.O)?f:j(u);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(ne,30)))},ie=e=>a.O=e;export{re as b,T as g,x as h,f as p,l as r,ie as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s}from"./p-57ef1124.js";const e={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},a=(t,i)=>{var s,a;return(null===(s=e[i])||void 0===s?void 0:s[t])||(null===(a=e.en)||void 0===a?void 0:a[t])},r=class{constructor(i){t(this,i),this.startTime=void 0,this.endTime=void 0,this.status=void 0,this.language=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.tournamentUntilStartDays=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.limitStylingAppends=!1,this.durationInterval=void 0}watchLanguage(t,i){t&&t!=i&&this.getDuration()}getDateTimeDiff(t,i){return(new Date(i).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let i=new Date(t),s=new Intl.DateTimeFormat(this.language,{month:"long"}).format(i);return`${i.getDate()} ${s}, ${i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${i.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const i=t%60;return[t/60,i,60*(i-Math.floor(i))].map((t=>(t=>{const i=Math.floor(t);return i<10?`0${i}`:`${i}`})(t))).join(":")}return(t=>t+" "+a("days",this.language))(Math.ceil(t/1440))}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((i=>{for(let s in t[i])e[i][s]=t[i][s]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const i=new CSSStyleSheet;i.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}))}render(){if(this.startTime&&this.endTime)return i("div",{key:"d0051545a243161e89e126fd26b9ea9d2e09f8ab",class:"TournamentDurationWrap"},i("div",{key:"b585f0137268f0185dfd15e563a0075bfe617d5b",class:"TournamentDuration"},i("div",{key:"9cc3670780d9f8c40b77ac978cdadb0e0afdcacb",class:"TournamentDates"},i("div",{key:"85e4f3b1de4f36efd8d13b090f8f9013976d8685",class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),i("div",{key:"688a84ce16a4d26359637b80837a9c5f50fc24c3",class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),i("div",{key:"149c0431ac2d8f9b5058a2a269b50e01d23ed26f",class:"ProgressBarWrapper"},i("div",{key:"85523f37f511f9184260f8575ec08e914f535858",class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?i("div",null,i("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),i("div",{class:"Finished",part:"Finished"},a("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},a("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):i("div",null,i("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&i("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",a("left",this.language)))))))}get host(){return s(this)}static get watchers(){return{language:["watchLanguage"]}}};r.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";export{r as casino_tournament_duration}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;
@@ -2,229 +2,233 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-764d2bff.js');
5
+ const index = require('./index-5302010b.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
9
- en: {
10
- finished: 'Finished',
11
- starting: 'Starting in ',
12
- left: 'left',
13
- minutes: 'minutes',
14
- hours: 'hours',
15
- days: 'days',
16
- },
17
- hr: {
18
- finished: 'Gotovo',
19
- starting: 'Počinje u ',
20
- left: 'lijevo',
21
- minutes: 'minute',
22
- hours: 'sati',
23
- days: 'dani',
24
- },
25
- 'zh-hk': {
26
- finished: '完成的',
27
- starting: '開始於',
28
- left: '剩下',
29
- minutes: '分鐘',
30
- hours: '小時',
31
- days: '天',
32
- },
33
- fr: {
34
- finished: 'Fini',
35
- starting: 'Début dans ',
36
- left: 'restant',
37
- minutes: 'minutes',
38
- hours: 'heures',
39
- days: 'jours',
40
- },
41
- ro: {
42
- finished: 'Finalizat',
43
- starting: 'Începe în',
44
- left: 'rămase',
45
- minutes: 'minute',
46
- hours: 'ore',
47
- days: 'zile',
48
- },
49
- tr: {
50
- finished: 'Sona ermiş',
51
- starting: 'Başlamasına ',
52
- left: 'kaldı',
53
- minutes: 'dakika',
54
- hours: 'saat',
55
- days: 'gün',
56
- },
57
- el: {
58
- finished: 'Ολοκληρωμένα',
59
- starting: 'Αρχίζει σε ',
60
- left: 'απομένουν',
61
- minutes: 'λεπτά',
62
- hours: 'ώρες',
63
- days: 'ημέρες',
64
- },
65
- es: {
66
- finished: 'Finalizado',
67
- starting: 'Iniciando en ',
68
- left: 'izquierda',
69
- minutes: 'minutos',
70
- hours: 'horas',
71
- days: 'días',
72
- },
73
- hu: {
74
- finished: 'Befejezve',
75
- starting: 'Kezdésig',
76
- left: 'bal',
77
- minutes: 'perc',
78
- hours: 'óra',
79
- days: 'nap',
80
- },
81
- pt: {
82
- finished: 'Finalizado',
83
- starting: 'Começando em',
84
- left: 'Abandonou',
85
- minutes: 'Minutos',
86
- hours: 'Horas',
87
- days: 'Dias',
88
- }
9
+ en: {
10
+ finished: 'Finished',
11
+ starting: 'Starting in ',
12
+ left: 'left',
13
+ minutes: 'minutes',
14
+ hours: 'hours',
15
+ days: 'days',
16
+ },
17
+ hr: {
18
+ finished: 'Gotovo',
19
+ starting: 'Počinje u ',
20
+ left: 'lijevo',
21
+ minutes: 'minute',
22
+ hours: 'sati',
23
+ days: 'dani',
24
+ },
25
+ 'zh-hk': {
26
+ finished: '完成的',
27
+ starting: '開始於',
28
+ left: '剩下',
29
+ minutes: '分鐘',
30
+ hours: '小時',
31
+ days: '天',
32
+ },
33
+ fr: {
34
+ finished: 'Fini',
35
+ starting: 'Début dans ',
36
+ left: 'restant',
37
+ minutes: 'minutes',
38
+ hours: 'heures',
39
+ days: 'jours',
40
+ },
41
+ ro: {
42
+ finished: 'Finalizat',
43
+ starting: 'Începe în',
44
+ left: 'rămase',
45
+ minutes: 'minute',
46
+ hours: 'ore',
47
+ days: 'zile',
48
+ },
49
+ tr: {
50
+ finished: 'Sona ermiş',
51
+ starting: 'Başlamasına ',
52
+ left: 'kaldı',
53
+ minutes: 'dakika',
54
+ hours: 'saat',
55
+ days: 'gün',
56
+ },
57
+ el: {
58
+ finished: 'Ολοκληρωμένα',
59
+ starting: 'Αρχίζει σε ',
60
+ left: 'απομένουν',
61
+ minutes: 'λεπτά',
62
+ hours: 'ώρες',
63
+ days: 'ημέρες',
64
+ },
65
+ es: {
66
+ finished: 'Finalizado',
67
+ starting: 'Iniciando en ',
68
+ left: 'izquierda',
69
+ minutes: 'minutos',
70
+ hours: 'horas',
71
+ days: 'días',
72
+ },
73
+ hu: {
74
+ finished: 'Befejezve',
75
+ starting: 'Kezdésig',
76
+ left: 'bal',
77
+ minutes: 'perc',
78
+ hours: 'óra',
79
+ days: 'nap',
80
+ },
81
+ pt: {
82
+ finished: 'Finalizado',
83
+ starting: 'Começando em',
84
+ left: 'Abandonou',
85
+ minutes: 'Minutos',
86
+ hours: 'Horas',
87
+ days: 'Dias',
88
+ }
89
89
  };
90
90
  const translate = (key, customLang) => {
91
- var _a, _b;
92
- const lang = customLang;
93
- return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
91
+ var _a, _b;
92
+ const lang = customLang;
93
+ return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
94
94
  };
95
95
  const getTranslations = (data) => {
96
- Object.keys(data).forEach((item) => {
97
- for (let key in data[item]) {
98
- TRANSLATIONS[item][key] = data[item][key];
99
- }
100
- });
96
+ Object.keys(data).forEach((item) => {
97
+ for (let key in data[item]) {
98
+ TRANSLATIONS[item][key] = data[item][key];
99
+ }
100
+ });
101
101
  };
102
102
 
103
103
  const casinoTournamentDurationCss = ":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";
104
+ const CasinoTournamentDurationStyle0 = casinoTournamentDurationCss;
104
105
 
105
106
  const CasinoTournamentDuration = class {
106
- constructor(hostRef) {
107
- index.registerInstance(this, hostRef);
108
- /**
109
- * Client custom styling via inline styles
110
- */
111
- this.clientStyling = '';
112
- /**
113
- * Client custom styling via url
114
- */
115
- this.clientStylingUrl = '';
116
- this.limitStylingAppends = false;
117
- }
118
- watchLanguage(newValue, oldValue) {
119
- if (newValue && newValue != oldValue) {
120
- this.getDuration();
107
+ constructor(hostRef) {
108
+ index.registerInstance(this, hostRef);
109
+ this.startTime = undefined;
110
+ this.endTime = undefined;
111
+ this.status = undefined;
112
+ this.language = undefined;
113
+ this.clientStyling = '';
114
+ this.clientStylingUrl = '';
115
+ this.translationData = undefined;
116
+ this.tournamentUntilStartDays = undefined;
117
+ this.tournamentLeftDays = undefined;
118
+ this.showRemain = undefined;
119
+ this.limitStylingAppends = false;
120
+ this.durationInterval = undefined;
121
121
  }
122
- }
123
- getDateTimeDiff(dateString1, dateString2) {
124
- return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
125
- }
126
- getDuration() {
127
- const dateNow = new Date();
128
- this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
129
- this.tournamentUntilStartDays = this.getDateTimeDiff(dateNow, this.startTime);
130
- this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
131
- }
132
- formatDate(date) {
133
- const dateOptions = { month: 'long' };
134
- let currentDate = new Date(date);
135
- let currentMonth = new Intl.DateTimeFormat(this.language, dateOptions).format(currentDate);
136
- let currentDay = currentDate.getDate();
137
- return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
138
- }
139
- getTextByDiff(diff) {
140
- const renderText = (amount, type) => amount + ' ' + translate(type, this.language);
141
- const renderTimeColumn = (column) => {
142
- const columnInt = Math.floor(column);
143
- if (columnInt < 10) {
144
- return `0${columnInt}`;
145
- }
146
- else {
147
- return `${columnInt}`;
148
- }
149
- };
150
- if (diff < 1440) {
151
- const hours = diff / 60;
152
- const minutes = diff % 60;
153
- const seconds = (minutes - Math.floor(minutes)) * 60;
154
- return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
122
+ watchLanguage(newValue, oldValue) {
123
+ if (newValue && newValue != oldValue) {
124
+ this.getDuration();
125
+ }
155
126
  }
156
- return renderText(Math.ceil(diff / (60 * 24)), 'days');
157
- }
158
- getProgress() {
159
- if (this.tournamentLeftDays <= 0)
160
- return 100;
161
- const tournamentDuration = this.getDateTimeDiff(this.startTime, this.endTime);
162
- const step = 100 / tournamentDuration;
163
- const width = Math.floor((tournamentDuration - this.tournamentLeftDays) * step);
164
- return width;
165
- }
166
- componentWillLoad() {
167
- if (this.translationData) {
168
- getTranslations(JSON.parse(this.translationData));
127
+ getDateTimeDiff(dateString1, dateString2) {
128
+ return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
129
+ }
130
+ getDuration() {
131
+ const dateNow = new Date();
132
+ this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
133
+ this.tournamentUntilStartDays = this.getDateTimeDiff(dateNow, this.startTime);
134
+ this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
135
+ }
136
+ formatDate(date) {
137
+ const dateOptions = { month: 'long' };
138
+ let currentDate = new Date(date);
139
+ let currentMonth = new Intl.DateTimeFormat(this.language, dateOptions).format(currentDate);
140
+ let currentDay = currentDate.getDate();
141
+ return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
142
+ }
143
+ getTextByDiff(diff) {
144
+ const renderText = (amount, type) => amount + ' ' + translate(type, this.language);
145
+ const renderTimeColumn = (column) => {
146
+ const columnInt = Math.floor(column);
147
+ if (columnInt < 10) {
148
+ return `0${columnInt}`;
149
+ }
150
+ else {
151
+ return `${columnInt}`;
152
+ }
153
+ };
154
+ if (diff < 1440) {
155
+ const hours = diff / 60;
156
+ const minutes = diff % 60;
157
+ const seconds = (minutes - Math.floor(minutes)) * 60;
158
+ return [hours, minutes, seconds].map(c => renderTimeColumn(c)).join(':');
159
+ }
160
+ return renderText(Math.ceil(diff / (60 * 24)), 'days');
169
161
  }
170
- if (this.startTime && this.endTime) {
171
- this.getDuration();
172
- this.getTextByDiff(this.tournamentLeftDays);
162
+ getProgress() {
163
+ if (this.tournamentLeftDays <= 0)
164
+ return 100;
165
+ const tournamentDuration = this.getDateTimeDiff(this.startTime, this.endTime);
166
+ const step = 100 / tournamentDuration;
167
+ const width = Math.floor((tournamentDuration - this.tournamentLeftDays) * step);
168
+ return width;
173
169
  }
174
- if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
175
- this.durationInterval = window.setInterval(() => {
170
+ componentWillLoad() {
171
+ if (this.translationData) {
172
+ getTranslations(JSON.parse(this.translationData));
173
+ }
176
174
  if (this.startTime && this.endTime) {
177
- this.getDuration();
175
+ this.getDuration();
176
+ this.getTextByDiff(this.tournamentLeftDays);
177
+ }
178
+ if (this.tournamentLeftDays < 1440 && this.tournamentLeftDays > 0) {
179
+ this.durationInterval = window.setInterval(() => {
180
+ if (this.startTime && this.endTime) {
181
+ this.getDuration();
182
+ }
183
+ }, 1000);
184
+ }
185
+ else {
186
+ clearInterval(this.durationInterval);
187
+ }
188
+ }
189
+ componentDidRender() {
190
+ if (!this.limitStylingAppends && this.host) {
191
+ if (this.clientStyling)
192
+ this.setClientStyling();
193
+ if (this.clientStylingUrl)
194
+ this.setClientStylingURL();
195
+ this.limitStylingAppends = true;
178
196
  }
179
- }, 1000);
180
197
  }
181
- else {
182
- clearInterval(this.durationInterval);
198
+ setClientStyling() {
199
+ const sheet = new CSSStyleSheet();
200
+ // @ts-ignore
201
+ sheet.replace(this.clientStyling);
202
+ // @ts-ignore
203
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
183
204
  }
184
- }
185
- componentDidRender() {
186
- if (!this.limitStylingAppends && this.host) {
187
- if (this.clientStyling)
188
- this.setClientStyling();
189
- if (this.clientStylingUrl)
190
- this.setClientStylingURL();
191
- this.limitStylingAppends = true;
205
+ setClientStylingURL() {
206
+ let url = new URL(this.clientStylingUrl);
207
+ fetch(url.href)
208
+ .then((res) => res.text())
209
+ .then((data) => {
210
+ const sheet = new CSSStyleSheet();
211
+ // @ts-ignore
212
+ sheet.replace(data);
213
+ // @ts-ignore
214
+ this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
215
+ });
192
216
  }
193
- }
194
- setClientStyling() {
195
- const sheet = new CSSStyleSheet();
196
- // @ts-ignore
197
- sheet.replace(this.clientStyling);
198
- // @ts-ignore
199
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
200
- }
201
- setClientStylingURL() {
202
- let url = new URL(this.clientStylingUrl);
203
- fetch(url.href)
204
- .then((res) => res.text())
205
- .then((data) => {
206
- const sheet = new CSSStyleSheet();
207
- // @ts-ignore
208
- sheet.replace(data);
209
- // @ts-ignore
210
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
211
- });
212
- }
213
- render() {
214
- if (this.startTime && this.endTime) {
215
- return index.h("div", { class: "TournamentDurationWrap" }, index.h("div", { class: "TournamentDuration" }, index.h("div", { class: "TournamentDates" }, index.h("div", { class: "StartDate", part: "StartDate" }, this.formatDate(this.startTime)), index.h("div", { class: "EndDate", part: "EndDate" }, this.formatDate(this.endTime))), index.h("div", { class: "ProgressBarWrapper" }, index.h("div", { class: "ProgressBar", part: "ProgressBar" }, this.status == 'Finished' || this.status == 'Closing' || this.status == 'Closed' ?
216
- index.h("div", null, index.h("div", { class: "ProgressBarFillEnd", part: "ProgressBarFillEnd" }), index.h("div", { class: "Finished", part: "Finished" }, translate('finished', this.language))) :
217
- this.tournamentUntilStartDays > 0 ?
218
- index.h("div", null, index.h("div", { class: "ProgressBarFillStarting", part: "ProgressBarFillStarting" }), index.h("div", { class: "Remaining", part: "Remaining" }, translate('starting', this.language), " ", this.getTextByDiff(this.tournamentUntilStartDays))) :
219
- index.h("div", null, index.h("div", { class: "ProgressBarFill", part: "ProgressBarFill", style: { width: `${this.getProgress()}%` } }), this.tournamentLeftDays > 0 &&
220
- index.h("div", { class: "Remaining", part: "Remaining" }, this.showRemain, " ", translate('left', this.language)))))));
217
+ render() {
218
+ if (this.startTime && this.endTime) {
219
+ return index.h("div", { key: 'd0051545a243161e89e126fd26b9ea9d2e09f8ab', class: "TournamentDurationWrap" }, index.h("div", { key: 'b585f0137268f0185dfd15e563a0075bfe617d5b', class: "TournamentDuration" }, index.h("div", { key: '9cc3670780d9f8c40b77ac978cdadb0e0afdcacb', class: "TournamentDates" }, index.h("div", { key: '85e4f3b1de4f36efd8d13b090f8f9013976d8685', class: "StartDate", part: "StartDate" }, this.formatDate(this.startTime)), index.h("div", { key: '688a84ce16a4d26359637b80837a9c5f50fc24c3', class: "EndDate", part: "EndDate" }, this.formatDate(this.endTime))), index.h("div", { key: '149c0431ac2d8f9b5058a2a269b50e01d23ed26f', class: "ProgressBarWrapper" }, index.h("div", { key: '85523f37f511f9184260f8575ec08e914f535858', class: "ProgressBar", part: "ProgressBar" }, this.status == 'Finished' || this.status == 'Closing' || this.status == 'Closed' ?
220
+ index.h("div", null, index.h("div", { class: "ProgressBarFillEnd", part: "ProgressBarFillEnd" }), index.h("div", { class: "Finished", part: "Finished" }, translate('finished', this.language))) :
221
+ this.tournamentUntilStartDays > 0 ?
222
+ index.h("div", null, index.h("div", { class: "ProgressBarFillStarting", part: "ProgressBarFillStarting" }), index.h("div", { class: "Remaining", part: "Remaining" }, translate('starting', this.language), " ", this.getTextByDiff(this.tournamentUntilStartDays))) :
223
+ index.h("div", null, index.h("div", { class: "ProgressBarFill", part: "ProgressBarFill", style: { width: `${this.getProgress()}%` } }), this.tournamentLeftDays > 0 &&
224
+ index.h("div", { class: "Remaining", part: "Remaining" }, this.showRemain, " ", translate('left', this.language)))))));
225
+ }
221
226
  }
222
- }
223
- get host() { return index.getElement(this); }
224
- static get watchers() { return {
225
- "language": ["watchLanguage"]
226
- }; }
227
+ get host() { return index.getElement(this); }
228
+ static get watchers() { return {
229
+ "language": ["watchLanguage"]
230
+ }; }
227
231
  };
228
- CasinoTournamentDuration.style = casinoTournamentDurationCss;
232
+ CasinoTournamentDuration.style = CasinoTournamentDurationStyle0;
229
233
 
230
234
  exports.casino_tournament_duration = CasinoTournamentDuration;
@@ -1,19 +1,25 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-764d2bff.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5302010b.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
4
7
 
5
8
  /*
6
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
7
10
  */
8
- const patchBrowser = () => {
9
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-tournament-duration.cjs.js', document.baseURI).href));
10
- const opts = {};
11
- if (importMeta !== '') {
12
- opts.resourcesUrl = new URL('.', importMeta).href;
13
- }
14
- return index.promiseResolve(opts);
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-tournament-duration.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
15
18
  };
16
19
 
17
- patchBrowser().then(options => {
18
- return index.bootstrapLazy([["casino-tournament-duration.cjs",[[1,"casino-tournament-duration",{"startTime":[1,"start-time"],"endTime":[1,"end-time"],"status":[1],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationData":[520,"translation-data"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]}]]]], options);
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["casino-tournament-duration.cjs",[[1,"casino-tournament-duration",{"startTime":[1,"start-time"],"endTime":[1,"end-time"],"status":[1],"language":[1],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationData":[520,"translation-data"],"tournamentUntilStartDays":[32],"tournamentLeftDays":[32],"showRemain":[32],"limitStylingAppends":[32],"durationInterval":[32]},null,{"language":["watchLanguage"]}]]]], options);
19
23
  });
24
+
25
+ exports.setNonce = index.setNonce;