@everymatrix/casino-engagement-suite-progress-bar 1.56.0 → 1.56.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) 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-1bb8222a.js +2 -0
  3. package/dist/casino-engagement-suite-progress-bar/{p-813013c8.entry.js → p-26692d77.entry.js} +1 -1
  4. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +8 -26
  5. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +2 -2
  6. package/dist/cjs/{index-0119843f.js → index-e570df24.js} +65 -200
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +7 -37
  10. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +8 -26
  11. package/dist/esm/casino-engagement-suite-progress-bar.js +3 -3
  12. package/dist/esm/{index-dee41a55.js → index-3cd3ba02.js} +65 -200
  13. package/dist/esm/loader.js +2 -2
  14. 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 +2 -0
  15. 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 +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/casino-engagement-suite-progress-bar/p-77c6497a.js +0 -2
  19. 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 +0 -2
  20. 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 +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-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-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))));
1
+ import{p as e,b as t}from"./p-1bb8222a.js";export{s as setNonce}from"./p-1bb8222a.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-26692d77",[[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),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,p=[],d=[],y=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&a.l?v(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(p),$(d),(m=p.length>0)&&a.raf(w)},v=e=>f().then(e),b=y(d,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>P,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,C,P=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!S(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.m=o,u},T=(e,t)=>({l:0,p:e,i:t,$:null,h:null,u:null,m:null}),A={},F=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.v,D=(e,t,n,l,o,s)=>{if(n!==l){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,o=L(n),s=L(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else{const i=S(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},H=/\s/,L=e=>e?e.split(H):[],W=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of q(Object.keys(o)))e in s||D(l,e,o[e],void 0,n,t.l);for(const e of q(Object.keys(s)))D(l,e,o[e],s[e],n,t.l)};function q(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var G=!1,V=!1,_=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.p),W(null,l,V),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=_(e,l,r),s&&o.appendChild(s);return o["s-hn"]=C,o},z=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=_(null,n,o),r&&(l[o].$=r,K(i,r,t)))},B=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},I=(e,t,n=!1)=>e.p===t.p&&(!!n||e.m===t.m),J=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.p||G)&&W(e,t,V),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],m=t[f],p=l.length-1,d=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==m)m=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--p];else if(I(h,d,o))J(h,d,o),h=t[++i],d=l[++c];else if(I(m,y,o))J(m,y,o),m=t[--f],y=l[--p];else if(I(h,y,o))J(h,y,o),K(e,h.$,m.$.nextSibling),h=t[++i],y=l[--p];else if(I(m,d,o))J(m,d,o),K(e,m.$,h.$),m=t[--f],d=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].m&&t[a].m===d.m){u=a;break}u>=0?(r=t[u],r.p!==d.p?s=_(t&&t[c],n,u):(J(r,d,o),t[u]=void 0,s=r.$),d=l[++c]):(s=_(t&&t[c],n,c),d=l[++c]),s&&K(h.$.parentNode,s,h.$)}i>f?z(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&B(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),z(l,null,t,s,0,s.length-1)):null!==o&&B(o,0,o.length-1)):e.i!==r&&(l.data=r)},K=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Q=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},X=(e,t)=>{if(e.l|=16,!(4&e.l))return Q(e,e.j),b((()=>Y(e,t)));e.l|=512},Y=(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 Z(void 0,(()=>te(e,n,t)))},Z=(e,t)=>ee(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ee=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,te=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=a.O)?n:j(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=i),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ne(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>le(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ne=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||T(null,null),r=(e=>e&&e.p===A)(t)?t:R(null,null,t);if(C=l.tagName,o.C&&(r.u=r.u||{},o.C.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.p=null,r.l|=4,e.M=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],G=!!(1&o.l),J(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},le=e=>{const t=e.$hostElement$,n=e.j;se(e.t,"componentDidRender"),64&e.l||(e.l|=64,re(t),e.P(t),n||oe()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>X(e,!1))),e.l&=-517},oe=()=>{re(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-engagement-suite-progress-bar"}});return e.dispatchEvent(t),t})(c)))},se=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},re=e=>e.classList.add("hydrated"),ie=(e,t,l)=>{var o,s;const r=e.prototype;if(t.R){const i=Object.entries(null!=(o=t.R)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&X(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){a.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.A)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.A)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.C)||o.push([e,s])),s}))]))}}return e},ce=(e,l={})=>{var f;const m=[],p=l.exclude||[],d=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),w=u.createElement("style"),v=[];let b,g=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const i={l:l[0],v:l[1],R:l[2],F:l[3]};4&i.l&&(S=!0),i.R=l[2],i.C=[];const c=i.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,i),1&i.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.l)){const t=n(e),l=t.k,i=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Q(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.U;if(!n)return;const l=s.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),o)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.D}" was not found`);l.isProxied||(ie(l,n,2),l.isProxied=!0);const r=()=>{};t.l|=8;try{new l(t)}catch(e){o(e)}t.l&=-9,r()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>X(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};i.U=e[0],p.includes(c)||d.get(c)||(m.push(c),d.define(c,ie(u,i,1)))}))})),m.length>0&&(S&&(w.textContent+=i),w.textContent+=m.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(f=a.O)?f:j(u);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(oe,30)))},ue=e=>a.O=e;export{ce as b,F as g,R as h,f as p,l as r,ue as s}
@@ -1 +1 @@
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}
1
+ import{r as e,h as r,g as s}from"./p-1bb8222a.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}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0119843f.js');
5
+ const index = require('./index-e570df24.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,31 +10,6 @@ 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;
38
13
  this.setClientStyling = () => {
39
14
  let sheet = document.createElement('style');
40
15
  sheet.innerHTML = this.clientStyling;
@@ -53,6 +28,13 @@ const CasinoEngagementSuiteProgressBar = class {
53
28
  console.log('Error ', err);
54
29
  });
55
30
  };
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;
56
38
  }
57
39
  componentDidRender() {
58
40
  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-0119843f.js');
5
+ const index = require('./index-e570df24.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-engagement-suite-progress-bar.cjs.js', document.baseURI).href));
@@ -21,23 +21,19 @@ 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, 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 };
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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -349,40 +344,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
349
344
  }
350
345
  if (!appliedStyles.has(scopeId2)) {
351
346
  {
352
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
347
+ styleElm = doc.createElement("style");
353
348
  styleElm.innerHTML = style;
354
349
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
355
350
  if (nonce != null) {
356
351
  styleElm.setAttribute("nonce", nonce);
357
352
  }
358
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
359
- if (styleContainerNode.nodeName === "HEAD") {
360
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
361
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
362
- styleContainerNode.insertBefore(
363
- styleElm,
364
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
365
- );
366
- } else if ("host" in styleContainerNode) {
367
- if (supportsConstructableStylesheets) {
368
- const stylesheet = new CSSStyleSheet();
369
- stylesheet.replaceSync(style);
370
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
371
- } else {
372
- const existingStyleContainer = styleContainerNode.querySelector("style");
373
- if (existingStyleContainer) {
374
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
375
- } else {
376
- styleContainerNode.prepend(styleElm);
377
- }
378
- }
379
- } else {
380
- styleContainerNode.append(styleElm);
381
- }
382
- }
383
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
384
- styleContainerNode.insertBefore(styleElm, null);
385
- }
353
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
386
354
  }
387
355
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
388
356
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -405,25 +373,23 @@ var attachStyles = (hostRef) => {
405
373
  const scopeId2 = addStyle(
406
374
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
407
375
  cmpMeta);
408
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
376
+ if (flags & 10 /* needsScopedEncapsulation */) {
409
377
  elm["s-sc"] = scopeId2;
410
378
  elm.classList.add(scopeId2 + "-h");
411
379
  }
412
380
  endAttachStyles();
413
381
  };
414
382
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
415
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
383
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
416
384
  if (oldValue !== newValue) {
417
385
  let isProp = isMemberInElement(elm, memberName);
418
386
  memberName.toLowerCase();
419
387
  if (memberName === "class") {
420
388
  const classList = elm.classList;
421
389
  const oldClasses = parseClassList(oldValue);
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
- }
390
+ const newClasses = parseClassList(newValue);
391
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
392
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
427
393
  } else if (memberName === "style") {
428
394
  {
429
395
  for (const prop in oldValue) {
@@ -454,13 +420,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
454
420
  if (memberName === "list") {
455
421
  isProp = false;
456
422
  } else if (oldValue == null || elm[memberName] != n) {
457
- if (typeof elm.__lookupSetter__(memberName) === "function") {
458
- elm[memberName] = n;
459
- } else {
460
- elm.setAttribute(memberName, n);
461
- }
423
+ elm[memberName] = n;
462
424
  }
463
- } else if (elm[memberName] !== newValue) {
425
+ } else {
464
426
  elm[memberName] = newValue;
465
427
  }
466
428
  } catch (e) {
@@ -482,42 +444,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
482
444
  }
483
445
  };
484
446
  var parseClassListRegex = /\s/;
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
- };
447
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
494
448
 
495
449
  // src/runtime/vdom/update-element.ts
496
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
450
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
497
451
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
498
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
499
- const newVnodeAttrs = newVnode.$attrs$ || {};
452
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
453
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
500
454
  {
501
455
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
502
456
  if (!(memberName in newVnodeAttrs)) {
503
- setAccessor(
504
- elm,
505
- memberName,
506
- oldVnodeAttrs[memberName],
507
- void 0,
508
- isSvgMode2,
509
- newVnode.$flags$);
457
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
510
458
  }
511
459
  }
512
460
  }
513
461
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
514
- setAccessor(
515
- elm,
516
- memberName,
517
- oldVnodeAttrs[memberName],
518
- newVnodeAttrs[memberName],
519
- isSvgMode2,
520
- newVnode.$flags$);
462
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
521
463
  }
522
464
  };
523
465
  function sortedAttrNames(attrNames) {
@@ -529,10 +471,13 @@ function sortedAttrNames(attrNames) {
529
471
  attrNames
530
472
  );
531
473
  }
474
+
475
+ // src/runtime/vdom/vdom-render.ts
476
+ var scopeId;
532
477
  var hostTagName;
533
478
  var useNativeShadowDom = false;
534
479
  var isSvgMode = false;
535
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
480
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
536
481
  const newVNode2 = newParentVNode.$children$[childIndex];
537
482
  let i2 = 0;
538
483
  let elm;
@@ -546,6 +491,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
546
491
  {
547
492
  updateElement(null, newVNode2, isSvgMode);
548
493
  }
494
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
495
+ elm.classList.add(elm["s-si"] = scopeId);
496
+ }
549
497
  if (newVNode2.$children$) {
550
498
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
551
499
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -674,9 +622,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
674
622
  if (!isInitialRender) {
675
623
  return leftVNode.$key$ === rightVNode.$key$;
676
624
  }
677
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
678
- leftVNode.$key$ = rightVNode.$key$;
679
- }
680
625
  return true;
681
626
  }
682
627
  return false;
@@ -700,10 +645,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
700
645
  elm.textContent = "";
701
646
  }
702
647
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
703
- } else if (
704
- // don't do this on initial render as it can cause non-hydrated content to be removed
705
- !isInitialRender && BUILD.updatable && oldChildren !== null
706
- ) {
648
+ } else if (oldChildren !== null) {
707
649
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
708
650
  }
709
651
  } else if (oldVNode.$text$ !== text) {
@@ -711,9 +653,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
711
653
  }
712
654
  };
713
655
  var insertBefore = (parent, newNode, reference) => {
714
- {
715
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
- }
656
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
657
+ return inserted;
717
658
  };
718
659
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
719
660
  const hostElm = hostRef.$hostElement$;
@@ -738,21 +679,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
738
679
  rootVnode.$flags$ |= 4 /* isHost */;
739
680
  hostRef.$vnode$ = rootVnode;
740
681
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
741
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
682
+ {
683
+ scopeId = hostElm["s-sc"];
684
+ }
685
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
742
686
  patch(oldVNode, rootVnode, isInitialLoad);
743
687
  };
744
688
 
745
689
  // src/runtime/update-component.ts
746
690
  var attachToAncestor = (hostRef, ancestorComponent) => {
747
691
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
692
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
756
693
  }
757
694
  };
758
695
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -843,7 +780,7 @@ var postUpdateComponent = (hostRef) => {
843
780
  const instance = hostRef.$lazyInstance$ ;
844
781
  const ancestorComponent = hostRef.$ancestorComponent$;
845
782
  {
846
- safeCall(instance, "componentDidRender", void 0, elm);
783
+ safeCall(instance, "componentDidRender");
847
784
  }
848
785
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
849
786
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -872,14 +809,17 @@ var postUpdateComponent = (hostRef) => {
872
809
  }
873
810
  };
874
811
  var appDidLoad = (who) => {
812
+ {
813
+ addHydratedFlag(doc.documentElement);
814
+ }
875
815
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
876
816
  };
877
- var safeCall = (instance, method, arg, elm) => {
817
+ var safeCall = (instance, method, arg) => {
878
818
  if (instance && instance[method]) {
879
819
  try {
880
820
  return instance[method](arg);
881
821
  } catch (e) {
882
- consoleError(e, elm);
822
+ consoleError(e);
883
823
  }
884
824
  }
885
825
  return void 0;
@@ -922,68 +862,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
922
862
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
923
863
  members.map(([memberName, [memberFlags]]) => {
924
864
  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
- }
945
865
  Object.defineProperty(prototype, memberName, {
866
+ get() {
867
+ return getValue(this, memberName);
868
+ },
946
869
  set(newValue) {
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
- }
870
+ setValue(this, memberName, newValue, cmpMeta);
871
+ },
872
+ configurable: true,
873
+ enumerable: true
987
874
  });
988
875
  }
989
876
  });
@@ -993,11 +880,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
993
880
  plt.jmp(() => {
994
881
  var _a2;
995
882
  const propName = attrNameToPropName.get(attrName);
996
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
883
+ if (this.hasOwnProperty(propName)) {
997
884
  newValue = this[propName];
998
885
  delete this[propName];
999
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1000
- this[propName] == newValue) {
886
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1001
887
  return;
1002
888
  } else if (propName == null) {
1003
889
  const hostRef = getHostRef(this);
@@ -1013,11 +899,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1013
899
  }
1014
900
  return;
1015
901
  }
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
- }
902
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1021
903
  });
1022
904
  };
1023
905
  Cstr.observedAttributes = Array.from(
@@ -1046,7 +928,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1046
928
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1047
929
  const bundleId = cmpMeta.$lazyBundleId$;
1048
930
  if (bundleId) {
1049
- const CstrImport = loadModule(cmpMeta, hostRef);
931
+ const CstrImport = loadModule(cmpMeta);
1050
932
  if (CstrImport && "then" in CstrImport) {
1051
933
  const endLoad = uniqueTime();
1052
934
  Cstr = await CstrImport;
@@ -1068,7 +950,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1068
950
  try {
1069
951
  new Cstr(hostRef);
1070
952
  } catch (e) {
1071
- consoleError(e, elm);
953
+ consoleError(e);
1072
954
  }
1073
955
  {
1074
956
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1100,7 +982,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1100
982
  schedule();
1101
983
  }
1102
984
  };
1103
- var fireConnectedCallback = (instance, elm) => {
985
+ var fireConnectedCallback = (instance) => {
1104
986
  };
1105
987
 
1106
988
  // src/runtime/connected-callback.ts
@@ -1140,7 +1022,7 @@ var connectedCallback = (elm) => {
1140
1022
  endConnected();
1141
1023
  }
1142
1024
  };
1143
- var disconnectInstance = (instance, elm) => {
1025
+ var disconnectInstance = (instance) => {
1144
1026
  };
1145
1027
  var disconnectedCallback = async (elm) => {
1146
1028
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1149,12 +1031,6 @@ var disconnectedCallback = async (elm) => {
1149
1031
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1150
1032
  }
1151
1033
  }
1152
- if (rootAppliedStyles.has(elm)) {
1153
- rootAppliedStyles.delete(elm);
1154
- }
1155
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1156
- rootAppliedStyles.delete(elm.shadowRoot);
1157
- }
1158
1034
  };
1159
1035
 
1160
1036
  // src/runtime/bootstrap-lazy.ts
@@ -1231,17 +1107,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1231
1107
  }
1232
1108
  disconnectedCallback() {
1233
1109
  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
- });
1245
1110
  }
1246
1111
  componentOnReady() {
1247
1112
  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-0119843f.js');
5
+ const index = require('./index-e570df24.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []