@everymatrix/casino-engagement-suite-progress-bar 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-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js +1 -1
  2. package/dist/casino-engagement-suite-progress-bar/p-77c6497a.js +2 -0
  3. package/dist/casino-engagement-suite-progress-bar/{p-bcd842b7.entry.js → p-813013c8.entry.js} +1 -1
  4. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +26 -8
  5. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +2 -2
  6. package/dist/cjs/{index-1ec735af.js → index-0119843f.js} +166 -65
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +37 -7
  10. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +26 -8
  11. package/dist/esm/casino-engagement-suite-progress-bar.js +3 -3
  12. package/dist/esm/{index-c7abcc9c.js → index-dee41a55.js} +166 -65
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-progress-bar/p-1e1b70ac.js +0 -2
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.d.ts +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/packages/stencil/casino-engagement-suite-progress-bar/stencil.config.dev.d.ts +0 -2
  20. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.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-engagement-suite-progress-bar/.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-engagement-suite-progress-bar/.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-engagement-suite-progress-bar/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-1e1b70ac.js";export{s as setNonce}from"./p-1e1b70ac.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-bcd842b7",[[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],e))));
1
+ import{p as e,b as t}from"./p-77c6497a.js";export{s as setNonce}from"./p-77c6497a.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-813013c8",[[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],e))));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?b($):a.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},$=()=>{v(p),v(m),(d=p.length>0)&&a.raf($)},b=e=>f().then(e),w=y(m,!0),g=e=>"object"==(e=typeof e)||"function"===e;function S(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function k(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return O(e.value);throw"should never get here"}var E,C=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?x(null,o):o),i=s)};if(c(n),t){t.key&&(l=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=x(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},x=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},N=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,R=e=>n(e).$hostElement$,T=new WeakMap,D=e=>"sc-"+e.$,F=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=U(n);let s=U(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},H=/\s/,U=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(H):[]),L=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of V(Object.keys(l)))e in s||F(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(s)))F(o,e,l[e],s[e],n,t.o)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var W=!1,q=!1,G=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.createTextNode(o.i);else if(l=o.v=u.createElement(o.m),L(null,o,q),o.h)for(i=0;i<o.h.length;++i)s=G(e,o,i),s&&l.appendChild(s);return l["s-hn"]=E,l},_=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=G(null,n,l),i&&(o[l].v=i,J(r,i,t)))},z=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),I=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.i;null===i?(("slot"!==t.m||W)&&L(e,t,q),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(B(h,m,l))I(h,m,l),h=t[++r],m=o[++c];else if(B(d,y,l))I(d,y,l),d=t[--f],y=o[--p];else if(B(h,y,l))I(h,y,l),J(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(B(d,m,l))I(d,m,l),J(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=G(t&&t[c],n,u):(I(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=G(t&&t[c],n,c),m=o[++c]),s&&J(h.v.parentNode,s,h.v)}r>f?_(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&z(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),_(o,null,t,s,0,s.length-1)):!n&&null!==l&&z(l,0,l.length-1)):e.i!==i&&(o.data=i)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Q=(e,t)=>{if(e.o|=16,!(4&e.o))return K(e,e.j),w((()=>X(e,t)));e.o|=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`);return Y(void 0,(()=>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 o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=D(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=T.get(e=e.head||e);if(i||T.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);te(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},te=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||x(null,null),i=(e=>e&&e.m===A)(t)?t:P(null,null,t);if(E=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,W=!(!(1&l.o)||128&l.o),I(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.j;le(e.t,"componentDidRender",void 0,t),64&e.o||(e.o|=64,se(t),e.P(t),n||oe()),e.S&&(e.S(),e.S=void 0),512&e.o&&b((()=>Q(e,!1))),e.o&=-517},oe=()=>{b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-engagement-suite-progress-bar"}});return e.dispatchEvent(t),t})(c)))},le=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},se=e=>e.classList.add("hydrated"),ie=(e,t,o,l)=>{const s=n(e);if(!s)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 i=s.A.get(t),r=s.o,c=s.t;o=N(o,l.N[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&r)&&Q(s,!1))},re=(e,t,o)=>{var l,s;const i=e.prototype;if(t.N){const r=Object.entries(null!=(l=t.N)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.N[e][0]|=2048),r&&(t.N[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.N[e][0]))return((e,t)=>n(this).A.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,N(s,l)),void ie(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.N[e][0]))return ie(this,e,s,t),void(1&o&&!i.t&&i.R.then((()=>{4096&t.N[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=N(s,l),ie(this,e,i.t[e],t)};i.t?n():i.R.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.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 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=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.M)||l.push([e,s])),s}))]))}}return e},ce=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),$=u.createElement("style"),b=[];let w,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],N:o[2],D:o[3]};4&r.o&&(j=!0),r.N=o[2],r.M=[];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,A:new Map};o.R=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! 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),w&&(clearTimeout(w),w=null),g?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.F){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.F;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(re(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,r()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=D(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>Q(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.R)&&t.R.then((()=>{}))}T.has(e)&&T.delete(e),e.shadowRoot&&T.has(e.shadowRoot)&&T.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).R}};r.F=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,re(u,r,1)))}))})),d.length>0&&(j&&($.textContent+=r),$.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(f=a.k)?f:S(u);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>w=setTimeout(oe,30)))},ue=e=>a.k=e;export{ce as b,R as g,P as h,f as p,o as r,ue as s}
@@ -1 +1 @@
1
- import{r as e,h as r,g as s}from"./p-1e1b70ac.js";const t=class{constructor(r){e(this,r),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),r=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{r.innerHTML=e,setTimeout((()=>{this.host.prepend(r)}),1)})).catch((e=>{console.log("Error ",e)}))},this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return r("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return r("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},r("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},r("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},r("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),r("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},r("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),r("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return s(this)}};t.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";export{t as casino_engagement_suite_progress_bar}
1
+ import{r as e,h as r,g as s}from"./p-77c6497a.js";const t=class{constructor(r){e(this,r),this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),r=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{r.innerHTML=e,setTimeout((()=>{this.host.prepend(r)}),1)})).catch((e=>{console.log("Error ",e)}))}}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return r("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return r("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},r("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},r("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},r("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),r("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},r("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),r("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return s(this)}};t.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";export{t as casino_engagement_suite_progress_bar}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1ec735af.js');
5
+ const index = require('./index-0119843f.js');
6
6
 
7
7
  const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
8
8
  const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
@@ -10,6 +10,31 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
10
10
  const CasinoEngagementSuiteProgressBar = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
+ /**
14
+ * Value for the widget
15
+ */
16
+ this.value = 0;
17
+ /**
18
+ * Shows disabled styles
19
+ */
20
+ this.disabled = false;
21
+ /**
22
+ * Hide percent value
23
+ */
24
+ this.hidePercent = false;
25
+ /**
26
+ * Constantly animates
27
+ */
28
+ this.indeterminate = false;
29
+ /**
30
+ * Client custom styling via string
31
+ */
32
+ this.clientStyling = '';
33
+ /**
34
+ * Client custom styling via url
35
+ */
36
+ this.clientStylingUrl = '';
37
+ this.limitStylingAppends = false;
13
38
  this.setClientStyling = () => {
14
39
  let sheet = document.createElement('style');
15
40
  sheet.innerHTML = this.clientStyling;
@@ -28,13 +53,6 @@ const CasinoEngagementSuiteProgressBar = class {
28
53
  console.log('Error ', err);
29
54
  });
30
55
  };
31
- this.value = 0;
32
- this.disabled = false;
33
- this.hidePercent = false;
34
- this.indeterminate = false;
35
- this.clientStyling = '';
36
- this.clientStylingUrl = '';
37
- this.limitStylingAppends = false;
38
56
  }
39
57
  componentDidRender() {
40
58
  if (!this.limitStylingAppends && this.host) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1ec735af.js');
5
+ const index = require('./index-0119843f.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-engagement-suite-progress-bar.cjs.js', document.baseURI).href));
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-progress-bar';
24
- const BUILD = /* casino-engagement-suite-progress-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, 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: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, 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: false };
24
+ const BUILD = /* casino-engagement-suite-progress-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, 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: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, 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: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
-
154
- // src/utils/constants.ts
155
- var EMPTY_OBJ = {};
156
-
157
- // src/utils/helpers.ts
158
- var isDef = (v) => v != null;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -344,7 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
344
349
  }
345
350
  if (!appliedStyles.has(scopeId2)) {
346
351
  {
347
- styleElm = doc.createElement("style");
352
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
348
353
  styleElm.innerHTML = style;
349
354
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
350
355
  if (nonce != null) {
@@ -354,7 +359,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
359
  if (styleContainerNode.nodeName === "HEAD") {
355
360
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
356
361
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
357
- styleContainerNode.insertBefore(styleElm, referenceNode2);
362
+ styleContainerNode.insertBefore(
363
+ styleElm,
364
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
365
+ );
358
366
  } else if ("host" in styleContainerNode) {
359
367
  if (supportsConstructableStylesheets) {
360
368
  const stylesheet = new CSSStyleSheet();
@@ -372,7 +380,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
372
380
  styleContainerNode.append(styleElm);
373
381
  }
374
382
  }
375
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
383
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
376
384
  styleContainerNode.insertBefore(styleElm, null);
377
385
  }
378
386
  }
@@ -397,23 +405,25 @@ var attachStyles = (hostRef) => {
397
405
  const scopeId2 = addStyle(
398
406
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
399
407
  cmpMeta);
400
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
408
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
401
409
  elm["s-sc"] = scopeId2;
402
410
  elm.classList.add(scopeId2 + "-h");
403
411
  }
404
412
  endAttachStyles();
405
413
  };
406
414
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
407
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
415
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
408
416
  if (oldValue !== newValue) {
409
417
  let isProp = isMemberInElement(elm, memberName);
410
418
  memberName.toLowerCase();
411
419
  if (memberName === "class") {
412
420
  const classList = elm.classList;
413
421
  const oldClasses = parseClassList(oldValue);
414
- const newClasses = parseClassList(newValue);
415
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
416
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
422
+ let newClasses = parseClassList(newValue);
423
+ {
424
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
426
+ }
417
427
  } else if (memberName === "style") {
418
428
  {
419
429
  for (const prop in oldValue) {
@@ -450,7 +460,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
450
460
  elm.setAttribute(memberName, n);
451
461
  }
452
462
  }
453
- } else {
463
+ } else if (elm[memberName] !== newValue) {
454
464
  elm[memberName] = newValue;
455
465
  }
456
466
  } catch (e) {
@@ -472,22 +482,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
472
482
  }
473
483
  };
474
484
  var parseClassListRegex = /\s/;
475
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
485
+ var parseClassList = (value) => {
486
+ if (typeof value === "object" && value && "baseVal" in value) {
487
+ value = value.baseVal;
488
+ }
489
+ if (!value || typeof value !== "string") {
490
+ return [];
491
+ }
492
+ return value.split(parseClassListRegex);
493
+ };
476
494
 
477
495
  // src/runtime/vdom/update-element.ts
478
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
496
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
479
497
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
480
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
481
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
498
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
499
+ const newVnodeAttrs = newVnode.$attrs$ || {};
482
500
  {
483
501
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
484
502
  if (!(memberName in newVnodeAttrs)) {
485
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
503
+ setAccessor(
504
+ elm,
505
+ memberName,
506
+ oldVnodeAttrs[memberName],
507
+ void 0,
508
+ isSvgMode2,
509
+ newVnode.$flags$);
486
510
  }
487
511
  }
488
512
  }
489
513
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
490
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
514
+ setAccessor(
515
+ elm,
516
+ memberName,
517
+ oldVnodeAttrs[memberName],
518
+ newVnodeAttrs[memberName],
519
+ isSvgMode2,
520
+ newVnode.$flags$);
491
521
  }
492
522
  };
493
523
  function sortedAttrNames(attrNames) {
@@ -499,13 +529,10 @@ function sortedAttrNames(attrNames) {
499
529
  attrNames
500
530
  );
501
531
  }
502
-
503
- // src/runtime/vdom/vdom-render.ts
504
- var scopeId;
505
532
  var hostTagName;
506
533
  var useNativeShadowDom = false;
507
534
  var isSvgMode = false;
508
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
535
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
509
536
  const newVNode2 = newParentVNode.$children$[childIndex];
510
537
  let i2 = 0;
511
538
  let elm;
@@ -519,11 +546,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
519
546
  {
520
547
  updateElement(null, newVNode2, isSvgMode);
521
548
  }
522
- const rootNode = elm.getRootNode();
523
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
524
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
525
- elm.classList.add(elm["s-si"] = scopeId);
526
- }
527
549
  if (newVNode2.$children$) {
528
550
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
529
551
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -652,6 +674,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
652
674
  if (!isInitialRender) {
653
675
  return leftVNode.$key$ === rightVNode.$key$;
654
676
  }
677
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
678
+ leftVNode.$key$ = rightVNode.$key$;
679
+ }
655
680
  return true;
656
681
  }
657
682
  return false;
@@ -686,8 +711,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
686
711
  }
687
712
  };
688
713
  var insertBefore = (parent, newNode, reference) => {
689
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
690
- return inserted;
714
+ {
715
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
+ }
691
717
  };
692
718
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
693
719
  const hostElm = hostRef.$hostElement$;
@@ -712,17 +738,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
712
738
  rootVnode.$flags$ |= 4 /* isHost */;
713
739
  hostRef.$vnode$ = rootVnode;
714
740
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
715
- {
716
- scopeId = hostElm["s-sc"];
717
- }
718
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
741
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
719
742
  patch(oldVNode, rootVnode, isInitialLoad);
720
743
  };
721
744
 
722
745
  // src/runtime/update-component.ts
723
746
  var attachToAncestor = (hostRef, ancestorComponent) => {
724
747
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
725
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
748
+ const index = ancestorComponent["s-p"].push(
749
+ new Promise(
750
+ (r) => hostRef.$onRenderResolve$ = () => {
751
+ ancestorComponent["s-p"].splice(index - 1, 1);
752
+ r();
753
+ }
754
+ )
755
+ );
726
756
  }
727
757
  };
728
758
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -813,7 +843,7 @@ var postUpdateComponent = (hostRef) => {
813
843
  const instance = hostRef.$lazyInstance$ ;
814
844
  const ancestorComponent = hostRef.$ancestorComponent$;
815
845
  {
816
- safeCall(instance, "componentDidRender");
846
+ safeCall(instance, "componentDidRender", void 0, elm);
817
847
  }
818
848
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
819
849
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -842,17 +872,14 @@ var postUpdateComponent = (hostRef) => {
842
872
  }
843
873
  };
844
874
  var appDidLoad = (who) => {
845
- {
846
- addHydratedFlag(doc.documentElement);
847
- }
848
875
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
849
876
  };
850
- var safeCall = (instance, method, arg) => {
877
+ var safeCall = (instance, method, arg, elm) => {
851
878
  if (instance && instance[method]) {
852
879
  try {
853
880
  return instance[method](arg);
854
881
  } catch (e) {
855
- consoleError(e);
882
+ consoleError(e, elm);
856
883
  }
857
884
  }
858
885
  return void 0;
@@ -895,15 +922,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
895
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
896
923
  members.map(([memberName, [memberFlags]]) => {
897
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
925
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
926
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
927
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
928
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
929
+ Object.defineProperty(prototype, memberName, {
930
+ get() {
931
+ {
932
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
933
+ return getValue(this, memberName);
934
+ }
935
+ const ref = getHostRef(this);
936
+ const instance = ref ? ref.$lazyInstance$ : prototype;
937
+ if (!instance) return;
938
+ return instance[memberName];
939
+ }
940
+ },
941
+ configurable: true,
942
+ enumerable: true
943
+ });
944
+ }
898
945
  Object.defineProperty(prototype, memberName, {
899
- get() {
900
- return getValue(this, memberName);
901
- },
902
946
  set(newValue) {
903
- setValue(this, memberName, newValue, cmpMeta);
904
- },
905
- configurable: true,
906
- enumerable: true
947
+ const ref = getHostRef(this);
948
+ if (origSetter) {
949
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
950
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
951
+ newValue = ref.$instanceValues$.get(memberName);
952
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
953
+ ref.$instanceValues$.set(memberName, currentValue);
954
+ }
955
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
956
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
957
+ setValue(this, memberName, newValue, cmpMeta);
958
+ return;
959
+ }
960
+ {
961
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
962
+ setValue(this, memberName, newValue, cmpMeta);
963
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
964
+ ref.$onReadyPromise$.then(() => {
965
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
966
+ ref.$lazyInstance$[memberName] = newValue;
967
+ }
968
+ });
969
+ }
970
+ return;
971
+ }
972
+ const setterSetVal = () => {
973
+ const currentValue = ref.$lazyInstance$[memberName];
974
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
+ ref.$instanceValues$.set(memberName, currentValue);
976
+ }
977
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
978
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
979
+ };
980
+ if (ref.$lazyInstance$) {
981
+ setterSetVal();
982
+ } else {
983
+ ref.$onReadyPromise$.then(() => setterSetVal());
984
+ }
985
+ }
986
+ }
907
987
  });
908
988
  }
909
989
  });
@@ -913,7 +993,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
913
993
  plt.jmp(() => {
914
994
  var _a2;
915
995
  const propName = attrNameToPropName.get(attrName);
916
- if (this.hasOwnProperty(propName)) {
996
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
917
997
  newValue = this[propName];
918
998
  delete this[propName];
919
999
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -933,7 +1013,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
933
1013
  }
934
1014
  return;
935
1015
  }
936
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1016
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1017
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1018
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1019
+ this[propName] = newValue;
1020
+ }
937
1021
  });
938
1022
  };
939
1023
  Cstr.observedAttributes = Array.from(
@@ -962,7 +1046,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
962
1046
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
963
1047
  const bundleId = cmpMeta.$lazyBundleId$;
964
1048
  if (bundleId) {
965
- const CstrImport = loadModule(cmpMeta);
1049
+ const CstrImport = loadModule(cmpMeta, hostRef);
966
1050
  if (CstrImport && "then" in CstrImport) {
967
1051
  const endLoad = uniqueTime();
968
1052
  Cstr = await CstrImport;
@@ -984,7 +1068,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
984
1068
  try {
985
1069
  new Cstr(hostRef);
986
1070
  } catch (e) {
987
- consoleError(e);
1071
+ consoleError(e, elm);
988
1072
  }
989
1073
  {
990
1074
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1016,7 +1100,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1016
1100
  schedule();
1017
1101
  }
1018
1102
  };
1019
- var fireConnectedCallback = (instance) => {
1103
+ var fireConnectedCallback = (instance, elm) => {
1020
1104
  };
1021
1105
 
1022
1106
  // src/runtime/connected-callback.ts
@@ -1056,7 +1140,7 @@ var connectedCallback = (elm) => {
1056
1140
  endConnected();
1057
1141
  }
1058
1142
  };
1059
- var disconnectInstance = (instance) => {
1143
+ var disconnectInstance = (instance, elm) => {
1060
1144
  };
1061
1145
  var disconnectedCallback = async (elm) => {
1062
1146
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1065,6 +1149,12 @@ var disconnectedCallback = async (elm) => {
1065
1149
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1066
1150
  }
1067
1151
  }
1152
+ if (rootAppliedStyles.has(elm)) {
1153
+ rootAppliedStyles.delete(elm);
1154
+ }
1155
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1156
+ rootAppliedStyles.delete(elm.shadowRoot);
1157
+ }
1068
1158
  };
1069
1159
 
1070
1160
  // src/runtime/bootstrap-lazy.ts
@@ -1141,6 +1231,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1141
1231
  }
1142
1232
  disconnectedCallback() {
1143
1233
  plt.jmp(() => disconnectedCallback(this));
1234
+ plt.raf(() => {
1235
+ var _a3;
1236
+ const hostRef = getHostRef(this);
1237
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1238
+ if (i2 > -1) {
1239
+ deferredConnectedCallbacks.splice(i2, 1);
1240
+ }
1241
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1242
+ delete hostRef.$vnode$.$elm$;
1243
+ }
1244
+ });
1144
1245
  }
1145
1246
  componentOnReady() {
1146
1247
  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-1ec735af.js');
5
+ const index = require('./index-0119843f.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],