@everymatrix/casino-tournament-duration 1.53.0 → 1.53.10

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 (20) hide show
  1. package/dist/casino-tournament-duration/casino-tournament-duration.esm.js +1 -1
  2. package/dist/casino-tournament-duration/p-6d59eb72.entry.js +1 -0
  3. package/dist/casino-tournament-duration/p-d099feb2.js +2 -0
  4. package/dist/cjs/casino-tournament-duration.cjs.entry.js +7 -10
  5. package/dist/cjs/casino-tournament-duration.cjs.js +2 -2
  6. package/dist/cjs/{index-00365530.js → index-370c5504.js} +161 -66
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-tournament-duration/casino-tournament-duration.js +20 -9
  10. package/dist/esm/casino-tournament-duration.entry.js +7 -10
  11. package/dist/esm/casino-tournament-duration.js +3 -3
  12. package/dist/esm/{index-bc0a3067.js → index-3383953d.js} +161 -66
  13. package/dist/esm/loader.js +2 -2
  14. 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
  15. 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
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-duration/p-a0f351f6.entry.js +0 -1
  18. package/dist/casino-tournament-duration/p-dfd4b2cb.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.dev.d.ts +0 -2
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-dfd4b2cb.js";export{s as setNonce}from"./p-dfd4b2cb.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-a0f351f6",[[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))));
1
+ import{p as t,b as a}from"./p-d099feb2.js";export{s as setNonce}from"./p-d099feb2.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-6d59eb72",[[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 @@
1
+ import{r as t,h as i,g as s}from"./p-d099feb2.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.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}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(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--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(--emw--color-green, #48952a)}";export{r as casino_tournament_duration}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,p=[],m=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b($):a.raf($))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},$=()=>{v(p),v(m),(d=p.length>0)&&a.raf($)},b=t=>f().then(t),w=y(m,!0),S=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return O(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},x=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},D=(t,e)=>null==t||S(t)?t:1&e?t+"":t,H=t=>n(t).$hostElement$,N=new WeakMap,R=t=>"sc-"+t.$,T=(t,e,n,o,l,s)=>{if(n!==o){let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=U(n);let s=U(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else{const r=S(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&t.setAttribute(e,o=!0===o?"":o)}}},L=/\s/,U=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),W=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of F(Object.keys(l)))t in s||T(o,t,l[t],void 0,n,e.o);for(const t of F(Object.keys(s)))T(o,t,l[t],s[t],n,e.o)};function F(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,q=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else if(l=o.v=u.createElement(o.m),W(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=q(t,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},G=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=q(null,n,l),i&&(o[l].v=i,I(r,i,e)))},_=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},z=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),B=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.i;null===i?(W(t,e,V),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(z(h,m,l))B(h,m,l),h=e[++r],m=o[++c];else if(z(d,y,l))B(d,y,l),d=e[--f],y=o[--p];else if(z(h,y,l))B(h,y,l),I(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(z(d,m,l))B(d,m,l),I(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=q(e&&e[c],n,u):(B(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=q(e&&e[c],n,c),m=o[++c]),s&&I(h.v.parentNode,s,h.v)}r>f?G(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&_(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),G(o,null,e,s,0,s.length-1)):!n&&null!==l&&_(l,0,l.length-1)):t.i!==i&&(o.data=i)},I=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),J=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},K=(t,e)=>{if(t.o|=16,!(4&t.o))return J(t,t.j),w((()=>Q(t,e)));t.o|=512},Q=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 e&&(l=ot(o,"componentWillLoad",void 0,n)),X(l,(()=>Z(t,o,e)))},X=(t,e)=>Y(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Y=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Z=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=R(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=N.get(t=t.head||t);if(i||N.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:g(u);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);tt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>et(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},tt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||x(null,null),i=(t=>t&&t.m===A)(e)?e:P(null,null,e);if(E=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([t,e])=>i.u[e]=o[t]))),n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=s.v=o.shadowRoot||o,B(s,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},et=t=>{const e=t.$hostElement$,n=t.j;ot(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,lt(e),t.P(e),n||nt()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>K(t,!1))),t.o&=-517},nt=()=>{lt(u.documentElement),b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"casino-tournament-duration"}});return t.dispatchEvent(e),e})(c)))},ot=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},lt=t=>t.classList.add("hydrated"),st=(t,e,o,s)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${s.$}" 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 r=i.$hostElement$,c=i.A.get(e),u=i.o,a=i.t;if(o=D(o,s.D[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(e,o),a)){if(s.H&&128&u){const t=s.H[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){l(t,r)}}))}2==(18&u)&&K(i,!1)}},it=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D||e.H||t.watchers){t.watchers&&!e.H&&(e.H=t.watchers);const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,D(s,l)),void st(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return st(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=D(s,l),st(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);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 o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.M)||l.push([t,s])),s}))]))}}return t},rt=(t,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,S=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{var r;const c={o:o[0],$:o[1],D:o[2],R:o[3]};4&c.o&&(j=!0),c.D=o[2],c.M=[],c.H=null!=(r=o[4])?r:{};const u=c.$,f=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,A:new Map};o.N=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(e,e.j=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.T;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.L}" was not found`);o.isProxied||(n.H=o.watchers,it(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=R(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>K(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}N.has(t)&&N.delete(t),t.shadowRoot&&N.has(t.shadowRoot)&&N.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).N}};c.T=t[0],p.includes(u)||m.get(u)||(d.push(u),m.define(u,it(f,c,1)))}))})),d.length>0&&(j&&($.textContent+=r),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const t=null!=(f=a.k)?f:g(u);null!=t&&$.setAttribute("nonce",t),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>w=setTimeout(nt,30)))},ct=t=>a.k=t;export{rt as b,H as g,P as h,f as p,o as r,ct as s}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-00365530.js');
5
+ const index = require('./index-370c5504.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -106,18 +106,15 @@ const CasinoTournamentDurationStyle0 = casinoTournamentDurationCss;
106
106
  const CasinoTournamentDuration = class {
107
107
  constructor(hostRef) {
108
108
  index.registerInstance(this, hostRef);
109
- this.startTime = undefined;
110
- this.endTime = undefined;
111
- this.status = undefined;
112
- this.language = undefined;
109
+ /**
110
+ * Client custom styling via inline styles
111
+ */
113
112
  this.clientStyling = '';
113
+ /**
114
+ * Client custom styling via url
115
+ */
114
116
  this.clientStylingUrl = '';
115
- this.translationData = undefined;
116
- this.tournamentUntilStartDays = undefined;
117
- this.tournamentLeftDays = undefined;
118
- this.showRemain = undefined;
119
117
  this.limitStylingAppends = false;
120
- this.durationInterval = undefined;
121
118
  }
122
119
  watchLanguage(newValue, oldValue) {
123
120
  if (newValue && newValue != oldValue) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-00365530.js');
5
+ const index = require('./index-370c5504.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
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));
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-tournament-duration';
24
- const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -338,7 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
338
343
  }
339
344
  if (!appliedStyles.has(scopeId2)) {
340
345
  {
341
- styleElm = doc.createElement("style");
346
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
342
347
  styleElm.innerHTML = style;
343
348
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
344
349
  if (nonce != null) {
@@ -348,7 +353,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
348
353
  if (styleContainerNode.nodeName === "HEAD") {
349
354
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
350
355
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
351
- styleContainerNode.insertBefore(styleElm, referenceNode2);
356
+ styleContainerNode.insertBefore(
357
+ styleElm,
358
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
+ );
352
360
  } else if ("host" in styleContainerNode) {
353
361
  if (supportsConstructableStylesheets) {
354
362
  const stylesheet = new CSSStyleSheet();
@@ -398,16 +406,18 @@ var attachStyles = (hostRef) => {
398
406
  endAttachStyles();
399
407
  };
400
408
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
401
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
409
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
402
410
  if (oldValue !== newValue) {
403
411
  let isProp = isMemberInElement(elm, memberName);
404
412
  memberName.toLowerCase();
405
413
  if (memberName === "class") {
406
414
  const classList = elm.classList;
407
415
  const oldClasses = parseClassList(oldValue);
408
- const newClasses = parseClassList(newValue);
409
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
410
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
416
+ let newClasses = parseClassList(newValue);
417
+ {
418
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
419
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
420
+ }
411
421
  } else if (memberName === "style") {
412
422
  {
413
423
  for (const prop in oldValue) {
@@ -444,7 +454,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
454
  elm.setAttribute(memberName, n);
445
455
  }
446
456
  }
447
- } else {
457
+ } else if (elm[memberName] !== newValue) {
448
458
  elm[memberName] = newValue;
449
459
  }
450
460
  } catch (e) {
@@ -466,22 +476,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
466
476
  }
467
477
  };
468
478
  var parseClassListRegex = /\s/;
469
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
479
+ var parseClassList = (value) => {
480
+ if (typeof value === "object" && value && "baseVal" in value) {
481
+ value = value.baseVal;
482
+ }
483
+ if (!value || typeof value !== "string") {
484
+ return [];
485
+ }
486
+ return value.split(parseClassListRegex);
487
+ };
470
488
 
471
489
  // src/runtime/vdom/update-element.ts
472
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
490
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
473
491
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
474
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
475
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
492
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
493
+ const newVnodeAttrs = newVnode.$attrs$ || {};
476
494
  {
477
495
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
478
496
  if (!(memberName in newVnodeAttrs)) {
479
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
497
+ setAccessor(
498
+ elm,
499
+ memberName,
500
+ oldVnodeAttrs[memberName],
501
+ void 0,
502
+ isSvgMode2,
503
+ newVnode.$flags$);
480
504
  }
481
505
  }
482
506
  }
483
507
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
484
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
508
+ setAccessor(
509
+ elm,
510
+ memberName,
511
+ oldVnodeAttrs[memberName],
512
+ newVnodeAttrs[memberName],
513
+ isSvgMode2,
514
+ newVnode.$flags$);
485
515
  }
486
516
  };
487
517
  function sortedAttrNames(attrNames) {
@@ -493,13 +523,10 @@ function sortedAttrNames(attrNames) {
493
523
  attrNames
494
524
  );
495
525
  }
496
-
497
- // src/runtime/vdom/vdom-render.ts
498
- var scopeId;
499
526
  var hostTagName;
500
527
  var useNativeShadowDom = false;
501
528
  var isSvgMode = false;
502
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
503
530
  const newVNode2 = newParentVNode.$children$[childIndex];
504
531
  let i2 = 0;
505
532
  let elm;
@@ -513,11 +540,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
513
540
  {
514
541
  updateElement(null, newVNode2, isSvgMode);
515
542
  }
516
- const rootNode = elm.getRootNode();
517
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
518
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
519
- elm.classList.add(elm["s-si"] = scopeId);
520
- }
521
543
  if (newVNode2.$children$) {
522
544
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
523
545
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -646,6 +668,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
646
668
  if (!isInitialRender) {
647
669
  return leftVNode.$key$ === rightVNode.$key$;
648
670
  }
671
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
+ leftVNode.$key$ = rightVNode.$key$;
673
+ }
649
674
  return true;
650
675
  }
651
676
  return false;
@@ -679,8 +704,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
679
704
  }
680
705
  };
681
706
  var insertBefore = (parent, newNode, reference) => {
682
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
683
- return inserted;
707
+ {
708
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
709
+ }
684
710
  };
685
711
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
686
712
  const hostElm = hostRef.$hostElement$;
@@ -705,9 +731,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
705
731
  rootVnode.$flags$ |= 4 /* isHost */;
706
732
  hostRef.$vnode$ = rootVnode;
707
733
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
708
- {
709
- scopeId = hostElm["s-sc"];
710
- }
711
734
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
712
735
  patch(oldVNode, rootVnode, isInitialLoad);
713
736
  };
@@ -715,7 +738,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
715
738
  // src/runtime/update-component.ts
716
739
  var attachToAncestor = (hostRef, ancestorComponent) => {
717
740
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
718
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
741
+ const index = ancestorComponent["s-p"].push(
742
+ new Promise(
743
+ (r) => hostRef.$onRenderResolve$ = () => {
744
+ ancestorComponent["s-p"].splice(index - 1, 1);
745
+ r();
746
+ }
747
+ )
748
+ );
719
749
  }
720
750
  };
721
751
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -742,7 +772,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
742
772
  let maybePromise;
743
773
  if (isInitialLoad) {
744
774
  {
745
- maybePromise = safeCall(instance, "componentWillLoad");
775
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
746
776
  }
747
777
  }
748
778
  endSchedule();
@@ -811,7 +841,7 @@ var postUpdateComponent = (hostRef) => {
811
841
  const instance = hostRef.$lazyInstance$ ;
812
842
  const ancestorComponent = hostRef.$ancestorComponent$;
813
843
  {
814
- safeCall(instance, "componentDidRender");
844
+ safeCall(instance, "componentDidRender", void 0, elm);
815
845
  }
816
846
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
817
847
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -845,12 +875,12 @@ var appDidLoad = (who) => {
845
875
  }
846
876
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
847
877
  };
848
- var safeCall = (instance, method, arg) => {
878
+ var safeCall = (instance, method, arg, elm) => {
849
879
  if (instance && instance[method]) {
850
880
  try {
851
881
  return instance[method](arg);
852
882
  } catch (e) {
853
- consoleError(e);
883
+ consoleError(e, elm);
854
884
  }
855
885
  }
856
886
  return void 0;
@@ -909,15 +939,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
909
939
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
910
940
  members.map(([memberName, [memberFlags]]) => {
911
941
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
942
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
943
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
944
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
945
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
946
+ Object.defineProperty(prototype, memberName, {
947
+ get() {
948
+ {
949
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
950
+ return getValue(this, memberName);
951
+ }
952
+ const ref = getHostRef(this);
953
+ const instance = ref ? ref.$lazyInstance$ : prototype;
954
+ if (!instance) return;
955
+ return instance[memberName];
956
+ }
957
+ },
958
+ configurable: true,
959
+ enumerable: true
960
+ });
961
+ }
912
962
  Object.defineProperty(prototype, memberName, {
913
- get() {
914
- return getValue(this, memberName);
915
- },
916
963
  set(newValue) {
917
- setValue(this, memberName, newValue, cmpMeta);
918
- },
919
- configurable: true,
920
- enumerable: true
964
+ const ref = getHostRef(this);
965
+ if (origSetter) {
966
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
967
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
968
+ newValue = ref.$instanceValues$.get(memberName);
969
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
970
+ ref.$instanceValues$.set(memberName, currentValue);
971
+ }
972
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
973
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
974
+ setValue(this, memberName, newValue, cmpMeta);
975
+ return;
976
+ }
977
+ {
978
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
979
+ setValue(this, memberName, newValue, cmpMeta);
980
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
981
+ ref.$onReadyPromise$.then(() => {
982
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
983
+ ref.$lazyInstance$[memberName] = newValue;
984
+ }
985
+ });
986
+ }
987
+ return;
988
+ }
989
+ const setterSetVal = () => {
990
+ const currentValue = ref.$lazyInstance$[memberName];
991
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
992
+ ref.$instanceValues$.set(memberName, currentValue);
993
+ }
994
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
995
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
996
+ };
997
+ if (ref.$lazyInstance$) {
998
+ setterSetVal();
999
+ } else {
1000
+ ref.$onReadyPromise$.then(() => setterSetVal());
1001
+ }
1002
+ }
1003
+ }
921
1004
  });
922
1005
  }
923
1006
  });
@@ -927,7 +1010,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
927
1010
  plt.jmp(() => {
928
1011
  var _a2;
929
1012
  const propName = attrNameToPropName.get(attrName);
930
- if (this.hasOwnProperty(propName)) {
1013
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
931
1014
  newValue = this[propName];
932
1015
  delete this[propName];
933
1016
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -947,7 +1030,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
947
1030
  }
948
1031
  return;
949
1032
  }
950
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1033
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1034
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1036
+ this[propName] = newValue;
1037
+ }
951
1038
  });
952
1039
  };
953
1040
  Cstr.observedAttributes = Array.from(
@@ -974,9 +1061,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
974
1061
  let Cstr;
975
1062
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
976
1063
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
977
- const bundleId = cmpMeta.$lazyBundleId$;
978
- if (bundleId) {
979
- const CstrImport = loadModule(cmpMeta);
1064
+ {
1065
+ const CstrImport = loadModule(cmpMeta, hostRef);
980
1066
  if (CstrImport && "then" in CstrImport) {
981
1067
  const endLoad = uniqueTime();
982
1068
  Cstr = await CstrImport;
@@ -1001,7 +1087,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1001
1087
  try {
1002
1088
  new Cstr(hostRef);
1003
1089
  } catch (e) {
1004
- consoleError(e);
1090
+ consoleError(e, elm);
1005
1091
  }
1006
1092
  {
1007
1093
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1010,10 +1096,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1010
1096
  hostRef.$flags$ |= 128 /* isWatchReady */;
1011
1097
  }
1012
1098
  endNewInstance();
1013
- } else {
1014
- Cstr = elm.constructor;
1015
- const cmpTag = elm.localName;
1016
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1017
1099
  }
1018
1100
  if (Cstr && Cstr.style) {
1019
1101
  let style;
@@ -1036,7 +1118,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1036
1118
  schedule();
1037
1119
  }
1038
1120
  };
1039
- var fireConnectedCallback = (instance) => {
1121
+ var fireConnectedCallback = (instance, elm) => {
1040
1122
  };
1041
1123
 
1042
1124
  // src/runtime/connected-callback.ts
@@ -1076,7 +1158,7 @@ var connectedCallback = (elm) => {
1076
1158
  endConnected();
1077
1159
  }
1078
1160
  };
1079
- var disconnectInstance = (instance) => {
1161
+ var disconnectInstance = (instance, elm) => {
1080
1162
  };
1081
1163
  var disconnectedCallback = async (elm) => {
1082
1164
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1085,6 +1167,12 @@ var disconnectedCallback = async (elm) => {
1085
1167
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1086
1168
  }
1087
1169
  }
1170
+ if (rootAppliedStyles.has(elm)) {
1171
+ rootAppliedStyles.delete(elm);
1172
+ }
1173
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1174
+ rootAppliedStyles.delete(elm.shadowRoot);
1175
+ }
1088
1176
  };
1089
1177
 
1090
1178
  // src/runtime/bootstrap-lazy.ts
@@ -1165,6 +1253,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1165
1253
  }
1166
1254
  disconnectedCallback() {
1167
1255
  plt.jmp(() => disconnectedCallback(this));
1256
+ plt.raf(() => {
1257
+ var _a3;
1258
+ const hostRef = getHostRef(this);
1259
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1260
+ delete hostRef.$vnode$.$elm$;
1261
+ }
1262
+ });
1168
1263
  }
1169
1264
  componentOnReady() {
1170
1265
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-00365530.js');
5
+ const index = require('./index-370c5504.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -2,18 +2,15 @@ import { h } from "@stencil/core";
2
2
  import { translate, getTranslations } from "../../utils/locale.utils";
3
3
  export class CasinoTournamentDuration {
4
4
  constructor() {
5
- this.startTime = undefined;
6
- this.endTime = undefined;
7
- this.status = undefined;
8
- this.language = undefined;
5
+ /**
6
+ * Client custom styling via inline styles
7
+ */
9
8
  this.clientStyling = '';
9
+ /**
10
+ * Client custom styling via url
11
+ */
10
12
  this.clientStylingUrl = '';
11
- this.translationData = undefined;
12
- this.tournamentUntilStartDays = undefined;
13
- this.tournamentLeftDays = undefined;
14
- this.showRemain = undefined;
15
13
  this.limitStylingAppends = false;
16
- this.durationInterval = undefined;
17
14
  }
18
15
  watchLanguage(newValue, oldValue) {
19
16
  if (newValue && newValue != oldValue) {
@@ -148,6 +145,8 @@ export class CasinoTournamentDuration {
148
145
  "tags": [],
149
146
  "text": "Tournament start time"
150
147
  },
148
+ "getter": false,
149
+ "setter": false,
151
150
  "attribute": "start-time",
152
151
  "reflect": false
153
152
  },
@@ -165,6 +164,8 @@ export class CasinoTournamentDuration {
165
164
  "tags": [],
166
165
  "text": "Tournament end time"
167
166
  },
167
+ "getter": false,
168
+ "setter": false,
168
169
  "attribute": "end-time",
169
170
  "reflect": false
170
171
  },
@@ -182,6 +183,8 @@ export class CasinoTournamentDuration {
182
183
  "tags": [],
183
184
  "text": "Tournament status"
184
185
  },
186
+ "getter": false,
187
+ "setter": false,
185
188
  "attribute": "status",
186
189
  "reflect": false
187
190
  },
@@ -199,6 +202,8 @@ export class CasinoTournamentDuration {
199
202
  "tags": [],
200
203
  "text": "Widget language to show"
201
204
  },
205
+ "getter": false,
206
+ "setter": false,
202
207
  "attribute": "language",
203
208
  "reflect": false
204
209
  },
@@ -216,6 +221,8 @@ export class CasinoTournamentDuration {
216
221
  "tags": [],
217
222
  "text": "Client custom styling via inline styles"
218
223
  },
224
+ "getter": false,
225
+ "setter": false,
219
226
  "attribute": "client-styling",
220
227
  "reflect": false,
221
228
  "defaultValue": "''"
@@ -234,6 +241,8 @@ export class CasinoTournamentDuration {
234
241
  "tags": [],
235
242
  "text": "Client custom styling via url"
236
243
  },
244
+ "getter": false,
245
+ "setter": false,
237
246
  "attribute": "client-styling-url",
238
247
  "reflect": false,
239
248
  "defaultValue": "''"
@@ -252,6 +261,8 @@ export class CasinoTournamentDuration {
252
261
  "tags": [],
253
262
  "text": "Translations via parent component"
254
263
  },
264
+ "getter": false,
265
+ "setter": false,
255
266
  "attribute": "translation-data",
256
267
  "reflect": true
257
268
  }
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-bc0a3067.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-3383953d.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const TRANSLATIONS = {
@@ -102,18 +102,15 @@ const CasinoTournamentDurationStyle0 = casinoTournamentDurationCss;
102
102
  const CasinoTournamentDuration = class {
103
103
  constructor(hostRef) {
104
104
  registerInstance(this, hostRef);
105
- this.startTime = undefined;
106
- this.endTime = undefined;
107
- this.status = undefined;
108
- this.language = undefined;
105
+ /**
106
+ * Client custom styling via inline styles
107
+ */
109
108
  this.clientStyling = '';
109
+ /**
110
+ * Client custom styling via url
111
+ */
110
112
  this.clientStylingUrl = '';
111
- this.translationData = undefined;
112
- this.tournamentUntilStartDays = undefined;
113
- this.tournamentLeftDays = undefined;
114
- this.showRemain = undefined;
115
113
  this.limitStylingAppends = false;
116
- this.durationInterval = undefined;
117
114
  }
118
115
  watchLanguage(newValue, oldValue) {
119
116
  if (newValue && newValue != oldValue) {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-bc0a3067.js';
2
- export { s as setNonce } from './index-bc0a3067.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-3383953d.js';
2
+ export { s as setNonce } from './index-3383953d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'casino-tournament-duration';
2
- const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* casino-tournament-duration */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -316,7 +321,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
316
321
  }
317
322
  if (!appliedStyles.has(scopeId2)) {
318
323
  {
319
- styleElm = doc.createElement("style");
324
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
320
325
  styleElm.innerHTML = style;
321
326
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
322
327
  if (nonce != null) {
@@ -326,7 +331,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
326
331
  if (styleContainerNode.nodeName === "HEAD") {
327
332
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
328
333
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
329
- styleContainerNode.insertBefore(styleElm, referenceNode2);
334
+ styleContainerNode.insertBefore(
335
+ styleElm,
336
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
337
+ );
330
338
  } else if ("host" in styleContainerNode) {
331
339
  if (supportsConstructableStylesheets) {
332
340
  const stylesheet = new CSSStyleSheet();
@@ -376,16 +384,18 @@ var attachStyles = (hostRef) => {
376
384
  endAttachStyles();
377
385
  };
378
386
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
379
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
387
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
380
388
  if (oldValue !== newValue) {
381
389
  let isProp = isMemberInElement(elm, memberName);
382
390
  memberName.toLowerCase();
383
391
  if (memberName === "class") {
384
392
  const classList = elm.classList;
385
393
  const oldClasses = parseClassList(oldValue);
386
- const newClasses = parseClassList(newValue);
387
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
388
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
394
+ let newClasses = parseClassList(newValue);
395
+ {
396
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
397
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
398
+ }
389
399
  } else if (memberName === "style") {
390
400
  {
391
401
  for (const prop in oldValue) {
@@ -422,7 +432,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
422
432
  elm.setAttribute(memberName, n);
423
433
  }
424
434
  }
425
- } else {
435
+ } else if (elm[memberName] !== newValue) {
426
436
  elm[memberName] = newValue;
427
437
  }
428
438
  } catch (e) {
@@ -444,22 +454,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
454
  }
445
455
  };
446
456
  var parseClassListRegex = /\s/;
447
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
457
+ var parseClassList = (value) => {
458
+ if (typeof value === "object" && value && "baseVal" in value) {
459
+ value = value.baseVal;
460
+ }
461
+ if (!value || typeof value !== "string") {
462
+ return [];
463
+ }
464
+ return value.split(parseClassListRegex);
465
+ };
448
466
 
449
467
  // src/runtime/vdom/update-element.ts
450
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
468
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
451
469
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
452
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
453
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
470
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
471
+ const newVnodeAttrs = newVnode.$attrs$ || {};
454
472
  {
455
473
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
456
474
  if (!(memberName in newVnodeAttrs)) {
457
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
475
+ setAccessor(
476
+ elm,
477
+ memberName,
478
+ oldVnodeAttrs[memberName],
479
+ void 0,
480
+ isSvgMode2,
481
+ newVnode.$flags$);
458
482
  }
459
483
  }
460
484
  }
461
485
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
462
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
486
+ setAccessor(
487
+ elm,
488
+ memberName,
489
+ oldVnodeAttrs[memberName],
490
+ newVnodeAttrs[memberName],
491
+ isSvgMode2,
492
+ newVnode.$flags$);
463
493
  }
464
494
  };
465
495
  function sortedAttrNames(attrNames) {
@@ -471,13 +501,10 @@ function sortedAttrNames(attrNames) {
471
501
  attrNames
472
502
  );
473
503
  }
474
-
475
- // src/runtime/vdom/vdom-render.ts
476
- var scopeId;
477
504
  var hostTagName;
478
505
  var useNativeShadowDom = false;
479
506
  var isSvgMode = false;
480
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
507
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
481
508
  const newVNode2 = newParentVNode.$children$[childIndex];
482
509
  let i2 = 0;
483
510
  let elm;
@@ -491,11 +518,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
491
518
  {
492
519
  updateElement(null, newVNode2, isSvgMode);
493
520
  }
494
- const rootNode = elm.getRootNode();
495
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
496
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
497
- elm.classList.add(elm["s-si"] = scopeId);
498
- }
499
521
  if (newVNode2.$children$) {
500
522
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
501
523
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -624,6 +646,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
624
646
  if (!isInitialRender) {
625
647
  return leftVNode.$key$ === rightVNode.$key$;
626
648
  }
649
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
650
+ leftVNode.$key$ = rightVNode.$key$;
651
+ }
627
652
  return true;
628
653
  }
629
654
  return false;
@@ -657,8 +682,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
657
682
  }
658
683
  };
659
684
  var insertBefore = (parent, newNode, reference) => {
660
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
661
- return inserted;
685
+ {
686
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
687
+ }
662
688
  };
663
689
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
664
690
  const hostElm = hostRef.$hostElement$;
@@ -683,9 +709,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
683
709
  rootVnode.$flags$ |= 4 /* isHost */;
684
710
  hostRef.$vnode$ = rootVnode;
685
711
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
686
- {
687
- scopeId = hostElm["s-sc"];
688
- }
689
712
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
690
713
  patch(oldVNode, rootVnode, isInitialLoad);
691
714
  };
@@ -693,7 +716,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
693
716
  // src/runtime/update-component.ts
694
717
  var attachToAncestor = (hostRef, ancestorComponent) => {
695
718
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
696
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
719
+ const index = ancestorComponent["s-p"].push(
720
+ new Promise(
721
+ (r) => hostRef.$onRenderResolve$ = () => {
722
+ ancestorComponent["s-p"].splice(index - 1, 1);
723
+ r();
724
+ }
725
+ )
726
+ );
697
727
  }
698
728
  };
699
729
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -720,7 +750,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
720
750
  let maybePromise;
721
751
  if (isInitialLoad) {
722
752
  {
723
- maybePromise = safeCall(instance, "componentWillLoad");
753
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
724
754
  }
725
755
  }
726
756
  endSchedule();
@@ -789,7 +819,7 @@ var postUpdateComponent = (hostRef) => {
789
819
  const instance = hostRef.$lazyInstance$ ;
790
820
  const ancestorComponent = hostRef.$ancestorComponent$;
791
821
  {
792
- safeCall(instance, "componentDidRender");
822
+ safeCall(instance, "componentDidRender", void 0, elm);
793
823
  }
794
824
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
795
825
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -823,12 +853,12 @@ var appDidLoad = (who) => {
823
853
  }
824
854
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
825
855
  };
826
- var safeCall = (instance, method, arg) => {
856
+ var safeCall = (instance, method, arg, elm) => {
827
857
  if (instance && instance[method]) {
828
858
  try {
829
859
  return instance[method](arg);
830
860
  } catch (e) {
831
- consoleError(e);
861
+ consoleError(e, elm);
832
862
  }
833
863
  }
834
864
  return void 0;
@@ -887,15 +917,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
887
917
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
888
918
  members.map(([memberName, [memberFlags]]) => {
889
919
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
920
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
921
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
922
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
923
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
924
+ Object.defineProperty(prototype, memberName, {
925
+ get() {
926
+ {
927
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
928
+ return getValue(this, memberName);
929
+ }
930
+ const ref = getHostRef(this);
931
+ const instance = ref ? ref.$lazyInstance$ : prototype;
932
+ if (!instance) return;
933
+ return instance[memberName];
934
+ }
935
+ },
936
+ configurable: true,
937
+ enumerable: true
938
+ });
939
+ }
890
940
  Object.defineProperty(prototype, memberName, {
891
- get() {
892
- return getValue(this, memberName);
893
- },
894
941
  set(newValue) {
895
- setValue(this, memberName, newValue, cmpMeta);
896
- },
897
- configurable: true,
898
- enumerable: true
942
+ const ref = getHostRef(this);
943
+ if (origSetter) {
944
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
945
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
946
+ newValue = ref.$instanceValues$.get(memberName);
947
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
948
+ ref.$instanceValues$.set(memberName, currentValue);
949
+ }
950
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
951
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
952
+ setValue(this, memberName, newValue, cmpMeta);
953
+ return;
954
+ }
955
+ {
956
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
957
+ setValue(this, memberName, newValue, cmpMeta);
958
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
959
+ ref.$onReadyPromise$.then(() => {
960
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
961
+ ref.$lazyInstance$[memberName] = newValue;
962
+ }
963
+ });
964
+ }
965
+ return;
966
+ }
967
+ const setterSetVal = () => {
968
+ const currentValue = ref.$lazyInstance$[memberName];
969
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
970
+ ref.$instanceValues$.set(memberName, currentValue);
971
+ }
972
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
973
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
974
+ };
975
+ if (ref.$lazyInstance$) {
976
+ setterSetVal();
977
+ } else {
978
+ ref.$onReadyPromise$.then(() => setterSetVal());
979
+ }
980
+ }
981
+ }
899
982
  });
900
983
  }
901
984
  });
@@ -905,7 +988,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
905
988
  plt.jmp(() => {
906
989
  var _a2;
907
990
  const propName = attrNameToPropName.get(attrName);
908
- if (this.hasOwnProperty(propName)) {
991
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
909
992
  newValue = this[propName];
910
993
  delete this[propName];
911
994
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -925,7 +1008,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
925
1008
  }
926
1009
  return;
927
1010
  }
928
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1011
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1012
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1013
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1014
+ this[propName] = newValue;
1015
+ }
929
1016
  });
930
1017
  };
931
1018
  Cstr.observedAttributes = Array.from(
@@ -952,9 +1039,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
952
1039
  let Cstr;
953
1040
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
954
1041
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
955
- const bundleId = cmpMeta.$lazyBundleId$;
956
- if (bundleId) {
957
- const CstrImport = loadModule(cmpMeta);
1042
+ {
1043
+ const CstrImport = loadModule(cmpMeta, hostRef);
958
1044
  if (CstrImport && "then" in CstrImport) {
959
1045
  const endLoad = uniqueTime();
960
1046
  Cstr = await CstrImport;
@@ -979,7 +1065,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
979
1065
  try {
980
1066
  new Cstr(hostRef);
981
1067
  } catch (e) {
982
- consoleError(e);
1068
+ consoleError(e, elm);
983
1069
  }
984
1070
  {
985
1071
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -988,10 +1074,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
988
1074
  hostRef.$flags$ |= 128 /* isWatchReady */;
989
1075
  }
990
1076
  endNewInstance();
991
- } else {
992
- Cstr = elm.constructor;
993
- const cmpTag = elm.localName;
994
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
995
1077
  }
996
1078
  if (Cstr && Cstr.style) {
997
1079
  let style;
@@ -1014,7 +1096,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1014
1096
  schedule();
1015
1097
  }
1016
1098
  };
1017
- var fireConnectedCallback = (instance) => {
1099
+ var fireConnectedCallback = (instance, elm) => {
1018
1100
  };
1019
1101
 
1020
1102
  // src/runtime/connected-callback.ts
@@ -1054,7 +1136,7 @@ var connectedCallback = (elm) => {
1054
1136
  endConnected();
1055
1137
  }
1056
1138
  };
1057
- var disconnectInstance = (instance) => {
1139
+ var disconnectInstance = (instance, elm) => {
1058
1140
  };
1059
1141
  var disconnectedCallback = async (elm) => {
1060
1142
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1063,6 +1145,12 @@ var disconnectedCallback = async (elm) => {
1063
1145
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1064
1146
  }
1065
1147
  }
1148
+ if (rootAppliedStyles.has(elm)) {
1149
+ rootAppliedStyles.delete(elm);
1150
+ }
1151
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1152
+ rootAppliedStyles.delete(elm.shadowRoot);
1153
+ }
1066
1154
  };
1067
1155
 
1068
1156
  // src/runtime/bootstrap-lazy.ts
@@ -1143,6 +1231,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1143
1231
  }
1144
1232
  disconnectedCallback() {
1145
1233
  plt.jmp(() => disconnectedCallback(this));
1234
+ plt.raf(() => {
1235
+ var _a3;
1236
+ const hostRef = getHostRef(this);
1237
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1238
+ delete hostRef.$vnode$.$elm$;
1239
+ }
1240
+ });
1146
1241
  }
1147
1242
  componentOnReady() {
1148
1243
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-bc0a3067.js';
2
- export { s as setNonce } from './index-bc0a3067.js';
1
+ import { b as bootstrapLazy } from './index-3383953d.js';
2
+ export { s as setNonce } from './index-3383953d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-duration",
3
- "version": "1.53.0",
3
+ "version": "1.53.10",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as s}from"./p-dfd4b2cb.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(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--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(--emw--color-green, #48952a)}";export{r as casino_tournament_duration}
@@ -1,2 +0,0 @@
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:()=>E,map:()=>O,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function O(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 E(e.value);throw"should never get here"}var C,M=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}),D={},H=e=>n(e).$hostElement$,R=new WeakMap,T=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||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(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"]=C,o},V=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(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=T(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=R.get(e=e.head||e);if(r||R.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.O)?n:j(u);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}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.C||A(null,null),r=(e=>e&&e.p===D)(t)?t:x(null,null,t);if(C=l.tagName,o.M&&(r.u=r.u||{},o.M.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.C=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.D||e.watchers){e.watchers&&!t.D&&(t.D=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).H.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.H.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.H.set(t,l),a)){if(s.D&&128&u){const e=s.D[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.D)?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.D)?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.M)||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],R:l[3]};4&c.l&&(g=!0),c.A=l[2],c.M=[],c.D=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,H:new Map};l.T=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.T)&&t.T.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.D=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=T(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.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};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,H as g,x as h,f as p,l as r,ie as s}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;