@everymatrix/casino-tournament-duration 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/casino-tournament-duration/casino-tournament-duration.esm.js +1 -1
  2. package/dist/casino-tournament-duration/p-22c89147.js +2 -0
  3. package/dist/casino-tournament-duration/p-b217bc2d.entry.js +1 -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-b7716dd4.js} +66 -201
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  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-ab94677e.js} +66 -201
  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/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/casino-tournament-duration/p-201e69cb.entry.js +0 -1
  19. package/dist/casino-tournament-duration/p-bd114f3e.js +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.d.ts +0 -2
  21. 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
  22. /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
  23. /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
  24. /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
  25. /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-22c89147.js";export{s as setNonce}from"./p-22c89147.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-b217bc2d",[[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]},null,{language:["watchLanguage"]}]]]],t))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],p=[],y=(e,t)=>n=>{e.push(n),m||(m=!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=()=>{$(d),$(p),(m=d.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(p,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>P,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,C,P=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},R=(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?T(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=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},T=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),A={},L=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.v,W=(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=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else{const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},D=/\s/,F=e=>e?e.split(D):[],H=(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 q(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of q(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,V=(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),H(null,l,G),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=V(e,l,r),s&&o.appendChild(s);return o["s-hn"]=C,o},_=(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=V(null,n,o),r&&(l[o].$=r,J(i,r,t)))},z=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},B=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),I=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(H(e,t,G),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],m=t[f],d=l.length-1,p=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==m)m=t[--f];else if(null==p)p=l[++c];else if(null==y)y=l[--d];else if(B(h,p,o))I(h,p,o),h=t[++i],p=l[++c];else if(B(m,y,o))I(m,y,o),m=t[--f],y=l[--d];else if(B(h,y,o))I(h,y,o),J(e,h.$,m.$.nextSibling),h=t[++i],y=l[--d];else if(B(m,p,o))I(m,p,o),J(e,m.$,h.$),m=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=V(t&&t[c],n,u):(I(r,p,o),t[u]=void 0,s=r.$),p=l[++c]):(s=V(t&&t[c],n,c),p=l[++c]),s&&J(h.$.parentNode,s,h.$)}i>f?_(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&z(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),_(l,null,t,s,0,s.length-1)):null!==o&&z(o,0,o.length-1)):e.i!==r&&(l.data=r)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Q=(e,t)=>{if(e.l|=16,!(4&e.l))return K(e,e.j),b((()=>X(e,t)));e.l|=512},X=(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=oe(n,"componentWillLoad")),Y(l,(()=>ee(e,n,t)))},Y=(e,t)=>Z(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Z=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ee=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=U(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=a.O)?n:j(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);te(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},te=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||T(null,null),r=(e=>e&&e.p===A)(t)?t:R(null,null,t);if(C=l.tagName,o.C&&(r.u=r.u||{},o.C.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],I(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.j;oe(e.t,"componentDidRender"),64&e.l||(e.l|=64,se(t),e.P(t),n||le()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>Q(e,!1))),e.l&=-517},le=()=>{se(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-tournament-duration"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},se=e=>e.classList.add("hydrated"),re=(e,t,l)=>{var s,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(s=t.R)?s:{});if(c.map((([e,[s]])=>{(31&s||2&l&&32&s)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.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.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||g(e)?e:1&t?e+"":e)(l,s.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(s.T&&128&u){const e=s.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){o(e,i)}}))}2==(18&u)&&Q(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.T)?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.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.C)||o.push([e,s])),s}))]))}}return e},ie=(e,l={})=>{var f;const m=[],d=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],R:l[2],L:l[3]};4&c.l&&(g=!0),c.R=l[2],c.C=[],c.T=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,A:new Map};l.N=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.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}l.R&&Object.entries(l.R).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.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;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.W}" was not found`);l.isProxied||(n.T=l.watchers,re(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=U(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=()=>Q(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.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};c.U=e[0],d.includes(u)||p.get(u)||(m.push(u),p.define(u,re(f,c,1)))}))})),m.length>0&&(g&&(w.textContent+=i),w.textContent+=m.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(le,30)))},ce=e=>a.O=e;export{ie as b,L as g,R as h,f as p,l as r,ce as s}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,g as s}from"./p-22c89147.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}
@@ -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-b7716dd4.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-b7716dd4.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.19.2 | 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.19.2 | 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,40 +338,13 @@ 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) {
350
345
  styleElm.setAttribute("nonce", nonce);
351
346
  }
352
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
353
- if (styleContainerNode.nodeName === "HEAD") {
354
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
355
- 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
- );
360
- } else if ("host" in styleContainerNode) {
361
- if (supportsConstructableStylesheets) {
362
- const stylesheet = new CSSStyleSheet();
363
- stylesheet.replaceSync(style);
364
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
365
- } else {
366
- const existingStyleContainer = styleContainerNode.querySelector("style");
367
- if (existingStyleContainer) {
368
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
369
- } else {
370
- styleContainerNode.prepend(styleElm);
371
- }
372
- }
373
- } else {
374
- styleContainerNode.append(styleElm);
375
- }
376
- }
377
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
378
- styleContainerNode.insertBefore(styleElm, null);
379
- }
347
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
380
348
  }
381
349
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
382
350
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -399,25 +367,23 @@ var attachStyles = (hostRef) => {
399
367
  const scopeId2 = addStyle(
400
368
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
401
369
  cmpMeta);
402
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
370
+ if (flags & 10 /* needsScopedEncapsulation */) {
403
371
  elm["s-sc"] = scopeId2;
404
372
  elm.classList.add(scopeId2 + "-h");
405
373
  }
406
374
  endAttachStyles();
407
375
  };
408
376
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
409
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
377
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
378
  if (oldValue !== newValue) {
411
379
  let isProp = isMemberInElement(elm, memberName);
412
380
  memberName.toLowerCase();
413
381
  if (memberName === "class") {
414
382
  const classList = elm.classList;
415
383
  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
- }
384
+ const newClasses = parseClassList(newValue);
385
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
386
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
421
387
  } else if (memberName === "style") {
422
388
  {
423
389
  for (const prop in oldValue) {
@@ -448,13 +414,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
448
414
  if (memberName === "list") {
449
415
  isProp = false;
450
416
  } else if (oldValue == null || elm[memberName] != n) {
451
- if (typeof elm.__lookupSetter__(memberName) === "function") {
452
- elm[memberName] = n;
453
- } else {
454
- elm.setAttribute(memberName, n);
455
- }
417
+ elm[memberName] = n;
456
418
  }
457
- } else if (elm[memberName] !== newValue) {
419
+ } else {
458
420
  elm[memberName] = newValue;
459
421
  }
460
422
  } catch (e) {
@@ -476,42 +438,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
476
438
  }
477
439
  };
478
440
  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
- };
441
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
488
442
 
489
443
  // src/runtime/vdom/update-element.ts
490
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
444
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
491
445
  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$ || {};
446
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
447
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
494
448
  {
495
449
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
496
450
  if (!(memberName in newVnodeAttrs)) {
497
- setAccessor(
498
- elm,
499
- memberName,
500
- oldVnodeAttrs[memberName],
501
- void 0,
502
- isSvgMode2,
503
- newVnode.$flags$);
451
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
504
452
  }
505
453
  }
506
454
  }
507
455
  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$);
456
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
515
457
  }
516
458
  };
517
459
  function sortedAttrNames(attrNames) {
@@ -523,10 +465,13 @@ function sortedAttrNames(attrNames) {
523
465
  attrNames
524
466
  );
525
467
  }
468
+
469
+ // src/runtime/vdom/vdom-render.ts
470
+ var scopeId;
526
471
  var hostTagName;
527
472
  var useNativeShadowDom = false;
528
473
  var isSvgMode = false;
529
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
474
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
530
475
  const newVNode2 = newParentVNode.$children$[childIndex];
531
476
  let i2 = 0;
532
477
  let elm;
@@ -540,6 +485,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
540
485
  {
541
486
  updateElement(null, newVNode2, isSvgMode);
542
487
  }
488
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
489
+ elm.classList.add(elm["s-si"] = scopeId);
490
+ }
543
491
  if (newVNode2.$children$) {
544
492
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
545
493
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,9 +616,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
616
  if (!isInitialRender) {
669
617
  return leftVNode.$key$ === rightVNode.$key$;
670
618
  }
671
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
- leftVNode.$key$ = rightVNode.$key$;
673
- }
674
619
  return true;
675
620
  }
676
621
  return false;
@@ -693,10 +638,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
693
638
  elm.textContent = "";
694
639
  }
695
640
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
696
- } else if (
697
- // don't do this on initial render as it can cause non-hydrated content to be removed
698
- !isInitialRender && BUILD.updatable && oldChildren !== null
699
- ) {
641
+ } else if (oldChildren !== null) {
700
642
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
701
643
  }
702
644
  } else if (oldVNode.$text$ !== text) {
@@ -704,9 +646,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
704
646
  }
705
647
  };
706
648
  var insertBefore = (parent, newNode, reference) => {
707
- {
708
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
709
- }
649
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
650
+ return inserted;
710
651
  };
711
652
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
712
653
  const hostElm = hostRef.$hostElement$;
@@ -731,21 +672,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
731
672
  rootVnode.$flags$ |= 4 /* isHost */;
732
673
  hostRef.$vnode$ = rootVnode;
733
674
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
734
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
675
+ {
676
+ scopeId = hostElm["s-sc"];
677
+ }
678
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
735
679
  patch(oldVNode, rootVnode, isInitialLoad);
736
680
  };
737
681
 
738
682
  // src/runtime/update-component.ts
739
683
  var attachToAncestor = (hostRef, ancestorComponent) => {
740
684
  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
- );
685
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
749
686
  }
750
687
  };
751
688
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -772,7 +709,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
772
709
  let maybePromise;
773
710
  if (isInitialLoad) {
774
711
  {
775
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
712
+ maybePromise = safeCall(instance, "componentWillLoad");
776
713
  }
777
714
  }
778
715
  endSchedule();
@@ -841,7 +778,7 @@ var postUpdateComponent = (hostRef) => {
841
778
  const instance = hostRef.$lazyInstance$ ;
842
779
  const ancestorComponent = hostRef.$ancestorComponent$;
843
780
  {
844
- safeCall(instance, "componentDidRender", void 0, elm);
781
+ safeCall(instance, "componentDidRender");
845
782
  }
846
783
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
847
784
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -870,14 +807,17 @@ var postUpdateComponent = (hostRef) => {
870
807
  }
871
808
  };
872
809
  var appDidLoad = (who) => {
810
+ {
811
+ addHydratedFlag(doc.documentElement);
812
+ }
873
813
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
874
814
  };
875
- var safeCall = (instance, method, arg, elm) => {
815
+ var safeCall = (instance, method, arg) => {
876
816
  if (instance && instance[method]) {
877
817
  try {
878
818
  return instance[method](arg);
879
819
  } catch (e) {
880
- consoleError(e, elm);
820
+ consoleError(e);
881
821
  }
882
822
  }
883
823
  return void 0;
@@ -936,68 +876,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
936
876
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
937
877
  members.map(([memberName, [memberFlags]]) => {
938
878
  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
879
  Object.defineProperty(prototype, memberName, {
880
+ get() {
881
+ return getValue(this, memberName);
882
+ },
960
883
  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
- }
884
+ setValue(this, memberName, newValue, cmpMeta);
885
+ },
886
+ configurable: true,
887
+ enumerable: true
1001
888
  });
1002
889
  }
1003
890
  });
@@ -1007,11 +894,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1007
894
  plt.jmp(() => {
1008
895
  var _a2;
1009
896
  const propName = attrNameToPropName.get(attrName);
1010
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
897
+ if (this.hasOwnProperty(propName)) {
1011
898
  newValue = this[propName];
1012
899
  delete this[propName];
1013
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1014
- this[propName] == newValue) {
900
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1015
901
  return;
1016
902
  } else if (propName == null) {
1017
903
  const hostRef = getHostRef(this);
@@ -1027,11 +913,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1027
913
  }
1028
914
  return;
1029
915
  }
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
- }
916
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
917
  });
1036
918
  };
1037
919
  Cstr.observedAttributes = Array.from(
@@ -1060,7 +942,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1060
942
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1061
943
  const bundleId = cmpMeta.$lazyBundleId$;
1062
944
  if (bundleId) {
1063
- const CstrImport = loadModule(cmpMeta, hostRef);
945
+ const CstrImport = loadModule(cmpMeta);
1064
946
  if (CstrImport && "then" in CstrImport) {
1065
947
  const endLoad = uniqueTime();
1066
948
  Cstr = await CstrImport;
@@ -1085,7 +967,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1085
967
  try {
1086
968
  new Cstr(hostRef);
1087
969
  } catch (e) {
1088
- consoleError(e, elm);
970
+ consoleError(e);
1089
971
  }
1090
972
  {
1091
973
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1120,7 +1002,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1120
1002
  schedule();
1121
1003
  }
1122
1004
  };
1123
- var fireConnectedCallback = (instance, elm) => {
1005
+ var fireConnectedCallback = (instance) => {
1124
1006
  };
1125
1007
 
1126
1008
  // src/runtime/connected-callback.ts
@@ -1160,7 +1042,7 @@ var connectedCallback = (elm) => {
1160
1042
  endConnected();
1161
1043
  }
1162
1044
  };
1163
- var disconnectInstance = (instance, elm) => {
1045
+ var disconnectInstance = (instance) => {
1164
1046
  };
1165
1047
  var disconnectedCallback = async (elm) => {
1166
1048
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1169,12 +1051,6 @@ var disconnectedCallback = async (elm) => {
1169
1051
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1170
1052
  }
1171
1053
  }
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
1054
  };
1179
1055
 
1180
1056
  // src/runtime/bootstrap-lazy.ts
@@ -1255,17 +1131,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1255
1131
  }
1256
1132
  disconnectedCallback() {
1257
1133
  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
1134
  }
1270
1135
  componentOnReady() {
1271
1136
  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-b7716dd4.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []