@everymatrix/casino-tournament-banner 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 (23) hide show
  1. package/dist/casino-tournament-banner/casino-tournament-banner.esm.js +1 -1
  2. package/dist/casino-tournament-banner/{p-cf75bb37.entry.js → p-84129bcd.entry.js} +3 -3
  3. package/dist/casino-tournament-banner/p-91da2a22.js +2 -0
  4. package/dist/cjs/casino-tournament-banner.cjs.js +2 -2
  5. package/dist/cjs/casino-tournament-banner_2.cjs.entry.js +37 -38
  6. package/dist/cjs/{index-ceec4c54.js → index-0b07ce8b.js} +173 -70
  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-banner/casino-tournament-banner.js +82 -26
  10. package/dist/esm/casino-tournament-banner.js +3 -3
  11. package/dist/esm/casino-tournament-banner_2.entry.js +37 -38
  12. package/dist/esm/{index-4d03c228.js → index-35b94b68.js} +173 -70
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-banner/p-890a4a7f.js +0 -2
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.d.ts +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/packages/stencil/casino-tournament-banner/stencil.config.dev.d.ts +0 -2
  20. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/index.d.ts +0 -0
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-banner/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -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)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],v=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.o?$(w):f.raf(w))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},w=()=>{b(m),b(v),(p=m.length>0)&&f.raf(w)},$=t=>h().then(t),g=y(v,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(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:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=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?R(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=R(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},R=(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:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,T=t=>n(t).$hostElement$,D=(t,e,n)=>{const o=T(t);return{emit:t=>H(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},H=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},L=new WeakMap,U=t=>"sc-"+t.$,W=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=V(n);let s=V(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!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):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},F=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(F):[]),q="Capture",G=RegExp(q+"$"),_=(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 z(Object.keys(l)))t in s||W(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))W(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),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],v=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==v)v=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,v,l))X(d,v,l),d=e[--f],v=o[--p];else if(Q(h,v,l))X(h,v,l),Y(t,h.v,d.v.nextSibling),h=e[++r],v=o[--p];else if(Q(d,m,l))X(d,m,l),Y(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=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>f?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(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()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.j),g((()=>et(t,e)));t.o|=512},et=(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&&(t.o|=256,t.O&&(t.O.map((([t,e])=>ct(o,t,e,n))),t.O=void 0),l=ct(o,"componentWillLoad",void 0,n)),nt(l,(()=>lt(t,o,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=L.get(t=t.head||t);if(i||L.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.C)?n:j(a);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(d){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+=c),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);st(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||R(null,null),i=(t=>t&&t.m===A)(e)?e:P(null,null,e);if(C=o.tagName,l.P&&(i.u=i.u||{},l.P.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.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.j;ct(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,ut(e),t.R(e),n||rt()),t.S&&(t.S(),t.S=void 0),512&t.o&&$((()=>tt(t,!1))),t.o&=-517},rt=()=>{$((()=>H(u,"appload",{detail:{namespace:"casino-tournament-banner"}})))},ct=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ut=t=>t.classList.add("hydrated"),at=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.$}" 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,l.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(e,o),a)){if(l.T&&128&u){const t=l.T[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&tt(i,!1)}},ft=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N||e.T||t.watchers){t.watchers&&!e.T&&(e.T=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 at(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return at(this,t,s,e),void(1&o&&!i.t&&i.D.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),at(this,t,i.t[t],e)};i.t?n():i.D.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.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.T)?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.T)?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.P)||l.push([t,s])),s}))]))}}return t},ht=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let $,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],$:o[1],N:o[2],H:o[3]};4&c.o&&(S=!0),c.N=o[2],c.H=o[3],c.P=[],c.T=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.D=new Promise((t=>o.R=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(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,dt(this,t,c.H)),$&&(clearTimeout($),$=null),g?w.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)dt(t,e,o.H),(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(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.L){const l=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.L;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${e.U}" was not found`);o.isProxied||(n.T=o.watchers,ft(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(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=U(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.j,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const e=n(t);e.W&&(e.W.map((t=>t())),e.W=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.D)&&e.D.then((()=>{}))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),o=w.findIndex((t=>t===this));o>-1&&w.splice(o,1),(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).D}};c.L=t[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ft(a,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(l=f.C)?l:j(a);null!=t&&b.setAttribute("nonce",t),v.insertBefore(b,y?y.nextSibling:v.firstChild)}g=!1,w.length?w.map((t=>t.connectedCallback())):f.jmp((()=>$=setTimeout(rt,30)))},dt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=mt(t,n),i=pt(e,l),r=vt(n);f.ael(s,o,i,r),(e.W=e.W||[]).push((()=>f.rel(s,o,i,r)))}))},pt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.O=t.O||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},mt=(t,e)=>8&e?u:t,vt=t=>({passive:!!(1&t),capture:!!(2&t)}),yt=t=>f.C=t;export{ht as b,D as c,T as g,P as h,h as p,o as r,yt as s}
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ceec4c54.js');
5
+ const index = require('./index-0b07ce8b.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-banner.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ceec4c54.js');
5
+ const index = require('./index-0b07ce8b.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -6089,41 +6089,39 @@ const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
6089
6089
  const CasinoTournamentBanner = class {
6090
6090
  constructor(hostRef) {
6091
6091
  index.registerInstance(this, hostRef);
6092
- this.useEvent = undefined;
6093
- this.endpoint = undefined;
6094
- this.state = undefined;
6095
- this.enrolled = undefined;
6096
- this.startTime = undefined;
6097
- this.endTime = undefined;
6098
- this.thumbnail = undefined;
6099
- this.language = undefined;
6100
- this.showCalendar = undefined;
6101
- this.shortStart = undefined;
6092
+ /**
6093
+ * Short start time format
6094
+ */
6102
6095
  this.shortstartformat = 'DD MMM YYYY';
6096
+ /**
6097
+ * Show date on widget
6098
+ */
6103
6099
  this.showDate = true;
6100
+ /**
6101
+ * Show date on running state tournament tag
6102
+ */
6104
6103
  this.showRunningDate = false;
6104
+ /**
6105
+ * Show check icon on enrolled tag
6106
+ */
6105
6107
  this.showCheck = false;
6108
+ /**
6109
+ * Widget display as a card
6110
+ */
6106
6111
  this.cardMode = false;
6107
- this.nameOrTitle = undefined;
6108
- this.description = undefined;
6109
- this.tournamentId = undefined;
6110
- this.session = undefined;
6111
- this.loginEvent = undefined;
6112
- this.loginUrl = undefined;
6113
- this.registerEvent = undefined;
6114
- this.registerUrl = undefined;
6115
- this.currency = undefined;
6116
- this.bonusCode = undefined;
6112
+ /**
6113
+ * Show read more button
6114
+ */
6117
6115
  this.showReadMore = false;
6116
+ /**
6117
+ * Client custom styling via inline styles
6118
+ */
6118
6119
  this.clientStyling = '';
6120
+ /**
6121
+ * Client custom styling via url
6122
+ */
6119
6123
  this.clientStylingUrl = '';
6120
- this.translationData = undefined;
6121
- this.stateText = undefined;
6122
6124
  this.limitStylingAppends = false;
6123
- this.startdate = undefined;
6124
- this.tournamentLeftDays = undefined;
6125
- this.showRemain = undefined;
6126
- this.durationInterval = undefined;
6127
6125
  }
6128
6126
  watchLanguage(newValue, oldValue) {
6129
6127
  if (newValue && newValue != oldValue) {
@@ -6681,21 +6679,22 @@ const CasinoTournamentButtons = class {
6681
6679
  constructor(hostRef) {
6682
6680
  index.registerInstance(this, hostRef);
6683
6681
  this.userEnrolled = index.createEvent(this, "TournamentUserEnrolled", 7);
6684
- this.language = undefined;
6685
- this.tournamentId = undefined;
6686
- this.session = undefined;
6687
- this.loginEvent = undefined;
6688
- this.loginUrl = undefined;
6689
- this.registerEvent = undefined;
6690
- this.registerUrl = undefined;
6691
- this.endpoint = undefined;
6692
- this.currency = undefined;
6693
- this.bonusCode = undefined;
6682
+ /**
6683
+ * Player enrolled
6684
+ */
6694
6685
  this.enrolled = false;
6686
+ /**
6687
+ * Show read more button
6688
+ */
6695
6689
  this.showReadMore = false;
6690
+ /**
6691
+ * Client custom styling via inline styles
6692
+ */
6696
6693
  this.clientStyling = '';
6694
+ /**
6695
+ * Client custom styling via url
6696
+ */
6697
6697
  this.clientStylingUrl = '';
6698
- this.translationData = undefined;
6699
6698
  this.limitStylingAppends = false;
6700
6699
  this.joinButtonLoading = false;
6701
6700
  this.errorJoin = false;
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-tournament-banner';
24
- const BUILD = /* casino-tournament-banner */ { 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-tournament-banner */ { 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: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: true, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, 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/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -166,14 +181,6 @@ var flush = () => {
166
181
  };
167
182
  var nextTick = (cb) => promiseResolve().then(cb);
168
183
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
- var SVG_NS = "http://www.w3.org/2000/svg";
173
- var HTML_NS = "http://www.w3.org/1999/xhtml";
174
-
175
- // src/utils/helpers.ts
176
- var isDef = (v) => v != null;
177
184
  var isComplexType = (o) => {
178
185
  o = typeof o;
179
186
  return o === "object" || o === "function";
@@ -374,7 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
381
  }
375
382
  if (!appliedStyles.has(scopeId2)) {
376
383
  {
377
- styleElm = doc.createElement("style");
384
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
385
  styleElm.innerHTML = style;
379
386
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
380
387
  if (nonce != null) {
@@ -384,7 +391,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
391
  if (styleContainerNode.nodeName === "HEAD") {
385
392
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
386
393
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
387
- styleContainerNode.insertBefore(styleElm, referenceNode2);
394
+ styleContainerNode.insertBefore(
395
+ styleElm,
396
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
397
+ );
388
398
  } else if ("host" in styleContainerNode) {
389
399
  if (supportsConstructableStylesheets) {
390
400
  const stylesheet = new CSSStyleSheet();
@@ -402,7 +412,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
402
412
  styleContainerNode.append(styleElm);
403
413
  }
404
414
  }
405
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
415
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
406
416
  styleContainerNode.insertBefore(styleElm, null);
407
417
  }
408
418
  }
@@ -427,23 +437,25 @@ var attachStyles = (hostRef) => {
427
437
  const scopeId2 = addStyle(
428
438
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
429
439
  cmpMeta);
430
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
440
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
431
441
  elm["s-sc"] = scopeId2;
432
442
  elm.classList.add(scopeId2 + "-h");
433
443
  }
434
444
  endAttachStyles();
435
445
  };
436
446
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
437
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
438
448
  if (oldValue !== newValue) {
439
449
  let isProp = isMemberInElement(elm, memberName);
440
450
  let ln = memberName.toLowerCase();
441
451
  if (memberName === "class") {
442
452
  const classList = elm.classList;
443
453
  const oldClasses = parseClassList(oldValue);
444
- const newClasses = parseClassList(newValue);
445
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
446
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
+ let newClasses = parseClassList(newValue);
455
+ {
456
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
457
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
+ }
447
459
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
448
460
  if (memberName[2] === "-") {
449
461
  memberName = memberName.slice(3);
@@ -477,7 +489,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
477
489
  elm.setAttribute(memberName, n);
478
490
  }
479
491
  }
480
- } else {
492
+ } else if (elm[memberName] !== newValue) {
481
493
  elm[memberName] = newValue;
482
494
  }
483
495
  } catch (e) {
@@ -499,24 +511,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
499
511
  }
500
512
  };
501
513
  var parseClassListRegex = /\s/;
502
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
514
+ var parseClassList = (value) => {
515
+ if (typeof value === "object" && value && "baseVal" in value) {
516
+ value = value.baseVal;
517
+ }
518
+ if (!value || typeof value !== "string") {
519
+ return [];
520
+ }
521
+ return value.split(parseClassListRegex);
522
+ };
503
523
  var CAPTURE_EVENT_SUFFIX = "Capture";
504
524
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
505
525
 
506
526
  // src/runtime/vdom/update-element.ts
507
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
527
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
508
528
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
509
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
510
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
529
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
530
+ const newVnodeAttrs = newVnode.$attrs$ || {};
511
531
  {
512
532
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
513
533
  if (!(memberName in newVnodeAttrs)) {
514
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
534
+ setAccessor(
535
+ elm,
536
+ memberName,
537
+ oldVnodeAttrs[memberName],
538
+ void 0,
539
+ isSvgMode2,
540
+ newVnode.$flags$);
515
541
  }
516
542
  }
517
543
  }
518
544
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
519
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
545
+ setAccessor(
546
+ elm,
547
+ memberName,
548
+ oldVnodeAttrs[memberName],
549
+ newVnodeAttrs[memberName],
550
+ isSvgMode2,
551
+ newVnode.$flags$);
520
552
  }
521
553
  };
522
554
  function sortedAttrNames(attrNames) {
@@ -528,13 +560,10 @@ function sortedAttrNames(attrNames) {
528
560
  attrNames
529
561
  );
530
562
  }
531
-
532
- // src/runtime/vdom/vdom-render.ts
533
- var scopeId;
534
563
  var hostTagName;
535
564
  var useNativeShadowDom = false;
536
565
  var isSvgMode = false;
537
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
566
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
538
567
  const newVNode2 = newParentVNode.$children$[childIndex];
539
568
  let i2 = 0;
540
569
  let elm;
@@ -555,11 +584,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
555
584
  {
556
585
  updateElement(null, newVNode2, isSvgMode);
557
586
  }
558
- const rootNode = elm.getRootNode();
559
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
560
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
561
- elm.classList.add(elm["s-si"] = scopeId);
562
- }
563
587
  if (newVNode2.$children$) {
564
588
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
565
589
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -695,6 +719,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
695
719
  if (!isInitialRender) {
696
720
  return leftVNode.$key$ === rightVNode.$key$;
697
721
  }
722
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
723
+ leftVNode.$key$ = rightVNode.$key$;
724
+ }
698
725
  return true;
699
726
  }
700
727
  return false;
@@ -735,8 +762,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
735
762
  }
736
763
  };
737
764
  var insertBefore = (parent, newNode, reference) => {
738
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
739
- return inserted;
765
+ {
766
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
767
+ }
740
768
  };
741
769
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
742
770
  const hostElm = hostRef.$hostElement$;
@@ -761,17 +789,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
761
789
  rootVnode.$flags$ |= 4 /* isHost */;
762
790
  hostRef.$vnode$ = rootVnode;
763
791
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
764
- {
765
- scopeId = hostElm["s-sc"];
766
- }
767
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
792
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
768
793
  patch(oldVNode, rootVnode, isInitialLoad);
769
794
  };
770
795
 
771
796
  // src/runtime/update-component.ts
772
797
  var attachToAncestor = (hostRef, ancestorComponent) => {
773
798
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
774
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
799
+ const index = ancestorComponent["s-p"].push(
800
+ new Promise(
801
+ (r) => hostRef.$onRenderResolve$ = () => {
802
+ ancestorComponent["s-p"].splice(index - 1, 1);
803
+ r();
804
+ }
805
+ )
806
+ );
775
807
  }
776
808
  };
777
809
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -800,12 +832,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
800
832
  {
801
833
  hostRef.$flags$ |= 256 /* isListenReady */;
802
834
  if (hostRef.$queuedListeners$) {
803
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
835
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
804
836
  hostRef.$queuedListeners$ = void 0;
805
837
  }
806
838
  }
807
839
  {
808
- maybePromise = safeCall(instance, "componentWillLoad");
840
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
809
841
  }
810
842
  }
811
843
  endSchedule();
@@ -874,7 +906,7 @@ var postUpdateComponent = (hostRef) => {
874
906
  const instance = hostRef.$lazyInstance$ ;
875
907
  const ancestorComponent = hostRef.$ancestorComponent$;
876
908
  {
877
- safeCall(instance, "componentDidRender");
909
+ safeCall(instance, "componentDidRender", void 0, elm);
878
910
  }
879
911
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
880
912
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -903,17 +935,14 @@ var postUpdateComponent = (hostRef) => {
903
935
  }
904
936
  };
905
937
  var appDidLoad = (who) => {
906
- {
907
- addHydratedFlag(doc.documentElement);
908
- }
909
938
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
910
939
  };
911
- var safeCall = (instance, method, arg) => {
940
+ var safeCall = (instance, method, arg, elm) => {
912
941
  if (instance && instance[method]) {
913
942
  try {
914
943
  return instance[method](arg);
915
944
  } catch (e) {
916
- consoleError(e);
945
+ consoleError(e, elm);
917
946
  }
918
947
  }
919
948
  return void 0;
@@ -972,15 +1001,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
972
1001
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
973
1002
  members.map(([memberName, [memberFlags]]) => {
974
1003
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1004
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1005
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1006
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1007
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1008
+ Object.defineProperty(prototype, memberName, {
1009
+ get() {
1010
+ {
1011
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1012
+ return getValue(this, memberName);
1013
+ }
1014
+ const ref = getHostRef(this);
1015
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1016
+ if (!instance) return;
1017
+ return instance[memberName];
1018
+ }
1019
+ },
1020
+ configurable: true,
1021
+ enumerable: true
1022
+ });
1023
+ }
975
1024
  Object.defineProperty(prototype, memberName, {
976
- get() {
977
- return getValue(this, memberName);
978
- },
979
1025
  set(newValue) {
980
- setValue(this, memberName, newValue, cmpMeta);
981
- },
982
- configurable: true,
983
- enumerable: true
1026
+ const ref = getHostRef(this);
1027
+ if (origSetter) {
1028
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1029
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1030
+ newValue = ref.$instanceValues$.get(memberName);
1031
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1032
+ ref.$instanceValues$.set(memberName, currentValue);
1033
+ }
1034
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1035
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1036
+ setValue(this, memberName, newValue, cmpMeta);
1037
+ return;
1038
+ }
1039
+ {
1040
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1041
+ setValue(this, memberName, newValue, cmpMeta);
1042
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1043
+ ref.$onReadyPromise$.then(() => {
1044
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1045
+ ref.$lazyInstance$[memberName] = newValue;
1046
+ }
1047
+ });
1048
+ }
1049
+ return;
1050
+ }
1051
+ const setterSetVal = () => {
1052
+ const currentValue = ref.$lazyInstance$[memberName];
1053
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1054
+ ref.$instanceValues$.set(memberName, currentValue);
1055
+ }
1056
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1057
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1058
+ };
1059
+ if (ref.$lazyInstance$) {
1060
+ setterSetVal();
1061
+ } else {
1062
+ ref.$onReadyPromise$.then(() => setterSetVal());
1063
+ }
1064
+ }
1065
+ }
984
1066
  });
985
1067
  }
986
1068
  });
@@ -990,7 +1072,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
1072
  plt.jmp(() => {
991
1073
  var _a2;
992
1074
  const propName = attrNameToPropName.get(attrName);
993
- if (this.hasOwnProperty(propName)) {
1075
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
994
1076
  newValue = this[propName];
995
1077
  delete this[propName];
996
1078
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1010,7 +1092,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1010
1092
  }
1011
1093
  return;
1012
1094
  }
1013
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1095
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1096
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1097
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1098
+ this[propName] = newValue;
1099
+ }
1014
1100
  });
1015
1101
  };
1016
1102
  Cstr.observedAttributes = Array.from(
@@ -1039,7 +1125,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1039
1125
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1040
1126
  const bundleId = cmpMeta.$lazyBundleId$;
1041
1127
  if (bundleId) {
1042
- const CstrImport = loadModule(cmpMeta);
1128
+ const CstrImport = loadModule(cmpMeta, hostRef);
1043
1129
  if (CstrImport && "then" in CstrImport) {
1044
1130
  const endLoad = uniqueTime();
1045
1131
  Cstr = await CstrImport;
@@ -1064,7 +1150,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1064
1150
  try {
1065
1151
  new Cstr(hostRef);
1066
1152
  } catch (e) {
1067
- consoleError(e);
1153
+ consoleError(e, elm);
1068
1154
  }
1069
1155
  {
1070
1156
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1099,7 +1185,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
1185
  schedule();
1100
1186
  }
1101
1187
  };
1102
- var fireConnectedCallback = (instance) => {
1188
+ var fireConnectedCallback = (instance, elm) => {
1103
1189
  };
1104
1190
 
1105
1191
  // src/runtime/connected-callback.ts
@@ -1140,7 +1226,7 @@ var connectedCallback = (elm) => {
1140
1226
  endConnected();
1141
1227
  }
1142
1228
  };
1143
- var disconnectInstance = (instance) => {
1229
+ var disconnectInstance = (instance, elm) => {
1144
1230
  };
1145
1231
  var disconnectedCallback = async (elm) => {
1146
1232
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1155,6 +1241,12 @@ var disconnectedCallback = async (elm) => {
1155
1241
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1156
1242
  }
1157
1243
  }
1244
+ if (rootAppliedStyles.has(elm)) {
1245
+ rootAppliedStyles.delete(elm);
1246
+ }
1247
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1248
+ rootAppliedStyles.delete(elm.shadowRoot);
1249
+ }
1158
1250
  };
1159
1251
 
1160
1252
  // src/runtime/bootstrap-lazy.ts
@@ -1239,6 +1331,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1239
1331
  }
1240
1332
  disconnectedCallback() {
1241
1333
  plt.jmp(() => disconnectedCallback(this));
1334
+ plt.raf(() => {
1335
+ var _a3;
1336
+ const hostRef = getHostRef(this);
1337
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1338
+ if (i2 > -1) {
1339
+ deferredConnectedCallbacks.splice(i2, 1);
1340
+ }
1341
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1342
+ delete hostRef.$vnode$.$elm$;
1343
+ }
1344
+ });
1242
1345
  }
1243
1346
  componentOnReady() {
1244
1347
  return getHostRef(this).$onReadyPromise$;
@@ -1302,7 +1405,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1302
1405
  }
1303
1406
  }
1304
1407
  } catch (e) {
1305
- consoleError(e);
1408
+ consoleError(e, hostRef.$hostElement$);
1306
1409
  }
1307
1410
  };
1308
1411
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ceec4c54.js');
5
+ const index = require('./index-0b07ce8b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {