@everymatrix/casino-tournament-duration 1.54.12 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/casino-tournament-duration/casino-tournament-duration.esm.js +1 -1
  2. package/dist/casino-tournament-duration/p-a0f351f6.entry.js +1 -0
  3. package/dist/casino-tournament-duration/p-dfd4b2cb.js +2 -0
  4. package/dist/cjs/casino-tournament-duration.cjs.entry.js +10 -7
  5. package/dist/cjs/casino-tournament-duration.cjs.js +2 -2
  6. package/dist/cjs/{index-03d730d9.js → index-00365530.js} +66 -167
  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 +9 -20
  10. package/dist/esm/casino-tournament-duration.entry.js +10 -7
  11. package/dist/esm/casino-tournament-duration.js +3 -3
  12. package/dist/esm/{index-570a45b6.js → index-bc0a3067.js} +66 -167
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/packages/stencil/casino-tournament-duration/stencil.config.d.ts +2 -0
  15. 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 +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-duration/p-201e69cb.entry.js +0 -1
  18. package/dist/casino-tournament-duration/p-bd114f3e.js +0 -2
  19. 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 +0 -2
  20. 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 +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-bd114f3e.js";export{s as setNonce}from"./p-bd114f3e.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-201e69cb",[[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-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))));
@@ -0,0 +1 @@
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}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],p=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.l?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(m),$(p),(d=m.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(p,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>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}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-03d730d9.js');
5
+ const index = require('./index-00365530.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -106,15 +106,18 @@ const CasinoTournamentDurationStyle0 = casinoTournamentDurationCss;
106
106
  const CasinoTournamentDuration = class {
107
107
  constructor(hostRef) {
108
108
  index.registerInstance(this, hostRef);
109
- /**
110
- * Client custom styling via inline styles
111
- */
109
+ this.startTime = undefined;
110
+ this.endTime = undefined;
111
+ this.status = undefined;
112
+ this.language = undefined;
112
113
  this.clientStyling = '';
113
- /**
114
- * Client custom styling via url
115
- */
116
114
  this.clientStylingUrl = '';
115
+ this.translationData = undefined;
116
+ this.tournamentUntilStartDays = undefined;
117
+ this.tournamentLeftDays = undefined;
118
+ this.showRemain = undefined;
117
119
  this.limitStylingAppends = false;
120
+ this.durationInterval = undefined;
118
121
  }
119
122
  watchLanguage(newValue, oldValue) {
120
123
  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-03d730d9.js');
5
+ const index = require('./index-00365530.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | 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,23 +21,19 @@ 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, 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 };
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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | 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
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  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;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -343,7 +338,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
343
338
  }
344
339
  if (!appliedStyles.has(scopeId2)) {
345
340
  {
346
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
+ styleElm = doc.createElement("style");
347
342
  styleElm.innerHTML = style;
348
343
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
349
344
  if (nonce != null) {
@@ -353,10 +348,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
353
348
  if (styleContainerNode.nodeName === "HEAD") {
354
349
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
355
350
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
356
- styleContainerNode.insertBefore(
357
- styleElm,
358
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
359
- );
351
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
360
352
  } else if ("host" in styleContainerNode) {
361
353
  if (supportsConstructableStylesheets) {
362
354
  const stylesheet = new CSSStyleSheet();
@@ -374,7 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
366
  styleContainerNode.append(styleElm);
375
367
  }
376
368
  }
377
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
369
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
378
370
  styleContainerNode.insertBefore(styleElm, null);
379
371
  }
380
372
  }
@@ -399,25 +391,23 @@ var attachStyles = (hostRef) => {
399
391
  const scopeId2 = addStyle(
400
392
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
401
393
  cmpMeta);
402
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
394
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
403
395
  elm["s-sc"] = scopeId2;
404
396
  elm.classList.add(scopeId2 + "-h");
405
397
  }
406
398
  endAttachStyles();
407
399
  };
408
400
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
409
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
401
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
402
  if (oldValue !== newValue) {
411
403
  let isProp = isMemberInElement(elm, memberName);
412
404
  memberName.toLowerCase();
413
405
  if (memberName === "class") {
414
406
  const classList = elm.classList;
415
407
  const oldClasses = parseClassList(oldValue);
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
- }
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)));
421
411
  } else if (memberName === "style") {
422
412
  {
423
413
  for (const prop in oldValue) {
@@ -454,7 +444,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
454
444
  elm.setAttribute(memberName, n);
455
445
  }
456
446
  }
457
- } else if (elm[memberName] !== newValue) {
447
+ } else {
458
448
  elm[memberName] = newValue;
459
449
  }
460
450
  } catch (e) {
@@ -476,42 +466,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
476
466
  }
477
467
  };
478
468
  var parseClassListRegex = /\s/;
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
- };
469
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
488
470
 
489
471
  // src/runtime/vdom/update-element.ts
490
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
472
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
491
473
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
492
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
493
- const newVnodeAttrs = newVnode.$attrs$ || {};
474
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
475
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
494
476
  {
495
477
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
496
478
  if (!(memberName in newVnodeAttrs)) {
497
- setAccessor(
498
- elm,
499
- memberName,
500
- oldVnodeAttrs[memberName],
501
- void 0,
502
- isSvgMode2,
503
- newVnode.$flags$);
479
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
504
480
  }
505
481
  }
506
482
  }
507
483
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
508
- setAccessor(
509
- elm,
510
- memberName,
511
- oldVnodeAttrs[memberName],
512
- newVnodeAttrs[memberName],
513
- isSvgMode2,
514
- newVnode.$flags$);
484
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
515
485
  }
516
486
  };
517
487
  function sortedAttrNames(attrNames) {
@@ -523,10 +493,13 @@ function sortedAttrNames(attrNames) {
523
493
  attrNames
524
494
  );
525
495
  }
496
+
497
+ // src/runtime/vdom/vdom-render.ts
498
+ var scopeId;
526
499
  var hostTagName;
527
500
  var useNativeShadowDom = false;
528
501
  var isSvgMode = false;
529
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
502
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
530
503
  const newVNode2 = newParentVNode.$children$[childIndex];
531
504
  let i2 = 0;
532
505
  let elm;
@@ -540,6 +513,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
540
513
  {
541
514
  updateElement(null, newVNode2, isSvgMode);
542
515
  }
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
+ }
543
521
  if (newVNode2.$children$) {
544
522
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
545
523
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,9 +646,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
646
  if (!isInitialRender) {
669
647
  return leftVNode.$key$ === rightVNode.$key$;
670
648
  }
671
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
- leftVNode.$key$ = rightVNode.$key$;
673
- }
674
649
  return true;
675
650
  }
676
651
  return false;
@@ -704,9 +679,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
704
679
  }
705
680
  };
706
681
  var insertBefore = (parent, newNode, reference) => {
707
- {
708
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
709
- }
682
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
683
+ return inserted;
710
684
  };
711
685
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
712
686
  const hostElm = hostRef.$hostElement$;
@@ -731,21 +705,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
731
705
  rootVnode.$flags$ |= 4 /* isHost */;
732
706
  hostRef.$vnode$ = rootVnode;
733
707
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
734
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
708
+ {
709
+ scopeId = hostElm["s-sc"];
710
+ }
711
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
735
712
  patch(oldVNode, rootVnode, isInitialLoad);
736
713
  };
737
714
 
738
715
  // src/runtime/update-component.ts
739
716
  var attachToAncestor = (hostRef, ancestorComponent) => {
740
717
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
718
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
749
719
  }
750
720
  };
751
721
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -772,7 +742,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
772
742
  let maybePromise;
773
743
  if (isInitialLoad) {
774
744
  {
775
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
745
+ maybePromise = safeCall(instance, "componentWillLoad");
776
746
  }
777
747
  }
778
748
  endSchedule();
@@ -841,7 +811,7 @@ var postUpdateComponent = (hostRef) => {
841
811
  const instance = hostRef.$lazyInstance$ ;
842
812
  const ancestorComponent = hostRef.$ancestorComponent$;
843
813
  {
844
- safeCall(instance, "componentDidRender", void 0, elm);
814
+ safeCall(instance, "componentDidRender");
845
815
  }
846
816
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
847
817
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -870,14 +840,17 @@ var postUpdateComponent = (hostRef) => {
870
840
  }
871
841
  };
872
842
  var appDidLoad = (who) => {
843
+ {
844
+ addHydratedFlag(doc.documentElement);
845
+ }
873
846
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
874
847
  };
875
- var safeCall = (instance, method, arg, elm) => {
848
+ var safeCall = (instance, method, arg) => {
876
849
  if (instance && instance[method]) {
877
850
  try {
878
851
  return instance[method](arg);
879
852
  } catch (e) {
880
- consoleError(e, elm);
853
+ consoleError(e);
881
854
  }
882
855
  }
883
856
  return void 0;
@@ -936,68 +909,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
936
909
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
937
910
  members.map(([memberName, [memberFlags]]) => {
938
911
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
939
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
940
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
941
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
942
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
943
- Object.defineProperty(prototype, memberName, {
944
- get() {
945
- {
946
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
947
- return getValue(this, memberName);
948
- }
949
- const ref = getHostRef(this);
950
- const instance = ref ? ref.$lazyInstance$ : prototype;
951
- if (!instance) return;
952
- return instance[memberName];
953
- }
954
- },
955
- configurable: true,
956
- enumerable: true
957
- });
958
- }
959
912
  Object.defineProperty(prototype, memberName, {
913
+ get() {
914
+ return getValue(this, memberName);
915
+ },
960
916
  set(newValue) {
961
- const ref = getHostRef(this);
962
- if (origSetter) {
963
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
964
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
965
- newValue = ref.$instanceValues$.get(memberName);
966
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
967
- ref.$instanceValues$.set(memberName, currentValue);
968
- }
969
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
970
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
971
- setValue(this, memberName, newValue, cmpMeta);
972
- return;
973
- }
974
- {
975
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
976
- setValue(this, memberName, newValue, cmpMeta);
977
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
978
- ref.$onReadyPromise$.then(() => {
979
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
980
- ref.$lazyInstance$[memberName] = newValue;
981
- }
982
- });
983
- }
984
- return;
985
- }
986
- const setterSetVal = () => {
987
- const currentValue = ref.$lazyInstance$[memberName];
988
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
989
- ref.$instanceValues$.set(memberName, currentValue);
990
- }
991
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
992
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
993
- };
994
- if (ref.$lazyInstance$) {
995
- setterSetVal();
996
- } else {
997
- ref.$onReadyPromise$.then(() => setterSetVal());
998
- }
999
- }
1000
- }
917
+ setValue(this, memberName, newValue, cmpMeta);
918
+ },
919
+ configurable: true,
920
+ enumerable: true
1001
921
  });
1002
922
  }
1003
923
  });
@@ -1007,7 +927,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1007
927
  plt.jmp(() => {
1008
928
  var _a2;
1009
929
  const propName = attrNameToPropName.get(attrName);
1010
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
930
+ if (this.hasOwnProperty(propName)) {
1011
931
  newValue = this[propName];
1012
932
  delete this[propName];
1013
933
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1027,11 +947,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
947
  }
1028
948
  return;
1029
949
  }
1030
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1031
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1032
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1033
- this[propName] = newValue;
1034
- }
950
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
951
  });
1036
952
  };
1037
953
  Cstr.observedAttributes = Array.from(
@@ -1060,7 +976,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1060
976
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1061
977
  const bundleId = cmpMeta.$lazyBundleId$;
1062
978
  if (bundleId) {
1063
- const CstrImport = loadModule(cmpMeta, hostRef);
979
+ const CstrImport = loadModule(cmpMeta);
1064
980
  if (CstrImport && "then" in CstrImport) {
1065
981
  const endLoad = uniqueTime();
1066
982
  Cstr = await CstrImport;
@@ -1085,7 +1001,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1085
1001
  try {
1086
1002
  new Cstr(hostRef);
1087
1003
  } catch (e) {
1088
- consoleError(e, elm);
1004
+ consoleError(e);
1089
1005
  }
1090
1006
  {
1091
1007
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1120,7 +1036,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1120
1036
  schedule();
1121
1037
  }
1122
1038
  };
1123
- var fireConnectedCallback = (instance, elm) => {
1039
+ var fireConnectedCallback = (instance) => {
1124
1040
  };
1125
1041
 
1126
1042
  // src/runtime/connected-callback.ts
@@ -1160,7 +1076,7 @@ var connectedCallback = (elm) => {
1160
1076
  endConnected();
1161
1077
  }
1162
1078
  };
1163
- var disconnectInstance = (instance, elm) => {
1079
+ var disconnectInstance = (instance) => {
1164
1080
  };
1165
1081
  var disconnectedCallback = async (elm) => {
1166
1082
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1169,12 +1085,6 @@ var disconnectedCallback = async (elm) => {
1169
1085
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1170
1086
  }
1171
1087
  }
1172
- if (rootAppliedStyles.has(elm)) {
1173
- rootAppliedStyles.delete(elm);
1174
- }
1175
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1176
- rootAppliedStyles.delete(elm.shadowRoot);
1177
- }
1178
1088
  };
1179
1089
 
1180
1090
  // src/runtime/bootstrap-lazy.ts
@@ -1255,17 +1165,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1255
1165
  }
1256
1166
  disconnectedCallback() {
1257
1167
  plt.jmp(() => disconnectedCallback(this));
1258
- plt.raf(() => {
1259
- var _a3;
1260
- const hostRef = getHostRef(this);
1261
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1262
- if (i2 > -1) {
1263
- deferredConnectedCallbacks.splice(i2, 1);
1264
- }
1265
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1266
- delete hostRef.$vnode$.$elm$;
1267
- }
1268
- });
1269
1168
  }
1270
1169
  componentOnReady() {
1271
1170
  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-03d730d9.js');
5
+ const index = require('./index-00365530.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.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],