@everymatrix/casino-tournament-duration 1.55.0 → 1.56.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-201e69cb.entry.js +1 -0
  3. package/dist/casino-tournament-duration/p-bd114f3e.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-03d730d9.js} +167 -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-570a45b6.js} +167 -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
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-duration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/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-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-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))));
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s}from"./p-bd114f3e.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={},N=(t,e)=>null==t||S(t)?t:1&e?t+"":t,R=t=>n(t).$hostElement$,T=new WeakMap,D=t=>"sc-"+t.$,H=(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||H(o,t,l[t],void 0,n,e.o);for(const t of F(Object.keys(s)))H(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=D(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.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&&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||128&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=()=>{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=N(o,s.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(e,o),a)){if(s.R&&128&u){const t=s.R[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.N||e.R||t.watchers){t.watchers&&!e.R&&(e.R=t.watchers);const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[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,N(s,l)),void st(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return st(this,t,s,e),void(1&o&&!i.t&&i.T.then((()=>{4096&e.N[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]=N(s,l),st(this,t,i.t[t],e)};i.t?n():i.T.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.R)?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.R)?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],N:o[2],D:o[3]};4&c.o&&(j=!0),c.N=o[2],c.M=[],c.R=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.T=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.T)&&e.T.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.N&&Object.entries(o.N).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)){if(e.o|=32,n.H){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.H;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.R=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()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=D(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.T)&&e.T.then((()=>{}))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(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).T}};c.H=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,R 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-03d730d9.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-03d730d9.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.26.0 | 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.26.0 | 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();
@@ -366,7 +374,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
374
  styleContainerNode.append(styleElm);
367
375
  }
368
376
  }
369
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
377
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
370
378
  styleContainerNode.insertBefore(styleElm, null);
371
379
  }
372
380
  }
@@ -391,23 +399,25 @@ var attachStyles = (hostRef) => {
391
399
  const scopeId2 = addStyle(
392
400
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
393
401
  cmpMeta);
394
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
402
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
395
403
  elm["s-sc"] = scopeId2;
396
404
  elm.classList.add(scopeId2 + "-h");
397
405
  }
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,17 +731,21 @@ 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
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
734
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
712
735
  patch(oldVNode, rootVnode, isInitialLoad);
713
736
  };
714
737
 
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 */;
@@ -840,17 +870,14 @@ var postUpdateComponent = (hostRef) => {
840
870
  }
841
871
  };
842
872
  var appDidLoad = (who) => {
843
- {
844
- addHydratedFlag(doc.documentElement);
845
- }
846
873
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
847
874
  };
848
- var safeCall = (instance, method, arg) => {
875
+ var safeCall = (instance, method, arg, elm) => {
849
876
  if (instance && instance[method]) {
850
877
  try {
851
878
  return instance[method](arg);
852
879
  } catch (e) {
853
- consoleError(e);
880
+ consoleError(e, elm);
854
881
  }
855
882
  }
856
883
  return void 0;
@@ -909,15 +936,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
909
936
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
910
937
  members.map(([memberName, [memberFlags]]) => {
911
938
  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
+ }
912
959
  Object.defineProperty(prototype, memberName, {
913
- get() {
914
- return getValue(this, memberName);
915
- },
916
960
  set(newValue) {
917
- setValue(this, memberName, newValue, cmpMeta);
918
- },
919
- configurable: true,
920
- enumerable: true
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
+ }
921
1001
  });
922
1002
  }
923
1003
  });
@@ -927,7 +1007,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
927
1007
  plt.jmp(() => {
928
1008
  var _a2;
929
1009
  const propName = attrNameToPropName.get(attrName);
930
- if (this.hasOwnProperty(propName)) {
1010
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
931
1011
  newValue = this[propName];
932
1012
  delete this[propName];
933
1013
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -947,7 +1027,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
947
1027
  }
948
1028
  return;
949
1029
  }
950
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
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
+ }
951
1035
  });
952
1036
  };
953
1037
  Cstr.observedAttributes = Array.from(
@@ -976,7 +1060,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
976
1060
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
977
1061
  const bundleId = cmpMeta.$lazyBundleId$;
978
1062
  if (bundleId) {
979
- const CstrImport = loadModule(cmpMeta);
1063
+ const CstrImport = loadModule(cmpMeta, hostRef);
980
1064
  if (CstrImport && "then" in CstrImport) {
981
1065
  const endLoad = uniqueTime();
982
1066
  Cstr = await CstrImport;
@@ -1001,7 +1085,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1001
1085
  try {
1002
1086
  new Cstr(hostRef);
1003
1087
  } catch (e) {
1004
- consoleError(e);
1088
+ consoleError(e, elm);
1005
1089
  }
1006
1090
  {
1007
1091
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1036,7 +1120,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1036
1120
  schedule();
1037
1121
  }
1038
1122
  };
1039
- var fireConnectedCallback = (instance) => {
1123
+ var fireConnectedCallback = (instance, elm) => {
1040
1124
  };
1041
1125
 
1042
1126
  // src/runtime/connected-callback.ts
@@ -1076,7 +1160,7 @@ var connectedCallback = (elm) => {
1076
1160
  endConnected();
1077
1161
  }
1078
1162
  };
1079
- var disconnectInstance = (instance) => {
1163
+ var disconnectInstance = (instance, elm) => {
1080
1164
  };
1081
1165
  var disconnectedCallback = async (elm) => {
1082
1166
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1085,6 +1169,12 @@ var disconnectedCallback = async (elm) => {
1085
1169
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1086
1170
  }
1087
1171
  }
1172
+ if (rootAppliedStyles.has(elm)) {
1173
+ rootAppliedStyles.delete(elm);
1174
+ }
1175
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1176
+ rootAppliedStyles.delete(elm.shadowRoot);
1177
+ }
1088
1178
  };
1089
1179
 
1090
1180
  // src/runtime/bootstrap-lazy.ts
@@ -1165,6 +1255,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1165
1255
  }
1166
1256
  disconnectedCallback() {
1167
1257
  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
+ });
1168
1269
  }
1169
1270
  componentOnReady() {
1170
1271
  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-03d730d9.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.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],