@everymatrix/casino-engagement-suite-progress-bar 1.53.0 → 1.53.11
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.
- package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js +1 -1
- package/dist/casino-engagement-suite-progress-bar/{p-bcd842b7.entry.js → p-3a5b9dee.entry.js} +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-cf23829b.js +2 -0
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +26 -8
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +2 -2
- package/dist/cjs/{index-1ec735af.js → index-c4165083.js} +160 -65
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.js +37 -7
- package/dist/esm/casino-engagement-suite-progress-bar.entry.js +26 -8
- package/dist/esm/casino-engagement-suite-progress-bar.js +3 -3
- package/dist/esm/{index-c7abcc9c.js → index-41556dd4.js} +160 -65
- package/dist/esm/loader.js +2 -2
- 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
- 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
- package/package.json +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-1e1b70ac.js +0 -2
- 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
- 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
package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-cf23829b.js";export{s as setNonce}from"./p-cf23829b.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-3a5b9dee",[[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))));
|
package/dist/casino-engagement-suite-progress-bar/{p-bcd842b7.entry.js → p-3a5b9dee.entry.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as r,g as s}from"./p-
|
|
1
|
+
import{r as e,h as r,g as s}from"./p-cf23829b.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}
|
|
@@ -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={},D=(e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,H=e=>n(e).$hostElement$,N=new WeakMap,R=e=>"sc-"+e.$,T=(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)}}},F=/\s/,U=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(F):[]),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||T(o,e,l[e],void 0,n,t.o);for(const e of V(Object.keys(s)))T(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=R(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.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&&"HEAD"!==e.nodeName&&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&&(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),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=()=>{se(u.documentElement),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=D(o,l.D[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.D){const r=Object.entries(null!=(l=t.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.D[e][0]|=2048),r&&(t.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.D[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,D(s,l)),void ie(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.D[e][0]))return ie(this,e,s,t),void(1&o&&!i.t&&i.H.then((()=>{4096&t.D[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]=D(s,l),ie(this,e,i.t[e],t)};i.t?n():i.H.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.N)?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.N)?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],D:o[2],R:o[3]};4&r.o&&(j=!0),r.D=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.H=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.H)&&t.H.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.D&&Object.entries(o.D).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)){t.o|=32;{const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.T;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.F}" 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()}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=R(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.H)&&t.H.then((()=>{}))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const t=n(this);(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).H}};r.T=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,H as g,P as h,f as p,o as r,ue as s}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c4165083.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-
|
|
5
|
+
const index = require('./index-c4165083.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.25.1 | 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.
|
|
27
|
+
Stencil Client Platform v4.25.1 | 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) =>
|
|
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
|
-
|
|
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(
|
|
87
|
-
{
|
|
88
|
-
|
|
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
|
-
|
|
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(
|
|
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();
|
|
@@ -404,16 +412,18 @@ var attachStyles = (hostRef) => {
|
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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) =>
|
|
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$ ||
|
|
481
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
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(
|
|
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(
|
|
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
|
|
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
|
-
|
|
690
|
-
|
|
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,9 +738,6 @@ 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
741
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
719
742
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
720
743
|
};
|
|
@@ -722,7 +745,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
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(
|
|
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 */;
|
|
@@ -847,12 +877,12 @@ var appDidLoad = (who) => {
|
|
|
847
877
|
}
|
|
848
878
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
849
879
|
};
|
|
850
|
-
var safeCall = (instance, method, arg) => {
|
|
880
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
851
881
|
if (instance && instance[method]) {
|
|
852
882
|
try {
|
|
853
883
|
return instance[method](arg);
|
|
854
884
|
} catch (e) {
|
|
855
|
-
consoleError(e);
|
|
885
|
+
consoleError(e, elm);
|
|
856
886
|
}
|
|
857
887
|
}
|
|
858
888
|
return void 0;
|
|
@@ -895,15 +925,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
895
925
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
896
926
|
members.map(([memberName, [memberFlags]]) => {
|
|
897
927
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
928
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
929
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
930
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
931
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
932
|
+
Object.defineProperty(prototype, memberName, {
|
|
933
|
+
get() {
|
|
934
|
+
{
|
|
935
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
936
|
+
return getValue(this, memberName);
|
|
937
|
+
}
|
|
938
|
+
const ref = getHostRef(this);
|
|
939
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
940
|
+
if (!instance) return;
|
|
941
|
+
return instance[memberName];
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
configurable: true,
|
|
945
|
+
enumerable: true
|
|
946
|
+
});
|
|
947
|
+
}
|
|
898
948
|
Object.defineProperty(prototype, memberName, {
|
|
899
|
-
get() {
|
|
900
|
-
return getValue(this, memberName);
|
|
901
|
-
},
|
|
902
949
|
set(newValue) {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
950
|
+
const ref = getHostRef(this);
|
|
951
|
+
if (origSetter) {
|
|
952
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
953
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
954
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
955
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
956
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
957
|
+
}
|
|
958
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
959
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
960
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
961
|
+
return;
|
|
962
|
+
}
|
|
963
|
+
{
|
|
964
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
965
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
966
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
967
|
+
ref.$onReadyPromise$.then(() => {
|
|
968
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
969
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
const setterSetVal = () => {
|
|
976
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
977
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
978
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
979
|
+
}
|
|
980
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
981
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
982
|
+
};
|
|
983
|
+
if (ref.$lazyInstance$) {
|
|
984
|
+
setterSetVal();
|
|
985
|
+
} else {
|
|
986
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
907
990
|
});
|
|
908
991
|
}
|
|
909
992
|
});
|
|
@@ -913,7 +996,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
913
996
|
plt.jmp(() => {
|
|
914
997
|
var _a2;
|
|
915
998
|
const propName = attrNameToPropName.get(attrName);
|
|
916
|
-
if (this.hasOwnProperty(propName)) {
|
|
999
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
917
1000
|
newValue = this[propName];
|
|
918
1001
|
delete this[propName];
|
|
919
1002
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -933,7 +1016,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
933
1016
|
}
|
|
934
1017
|
return;
|
|
935
1018
|
}
|
|
936
|
-
|
|
1019
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1020
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1021
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1022
|
+
this[propName] = newValue;
|
|
1023
|
+
}
|
|
937
1024
|
});
|
|
938
1025
|
};
|
|
939
1026
|
Cstr.observedAttributes = Array.from(
|
|
@@ -960,9 +1047,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
960
1047
|
let Cstr;
|
|
961
1048
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
962
1049
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1050
|
+
{
|
|
1051
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
966
1052
|
if (CstrImport && "then" in CstrImport) {
|
|
967
1053
|
const endLoad = uniqueTime();
|
|
968
1054
|
Cstr = await CstrImport;
|
|
@@ -984,16 +1070,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
984
1070
|
try {
|
|
985
1071
|
new Cstr(hostRef);
|
|
986
1072
|
} catch (e) {
|
|
987
|
-
consoleError(e);
|
|
1073
|
+
consoleError(e, elm);
|
|
988
1074
|
}
|
|
989
1075
|
{
|
|
990
1076
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
991
1077
|
}
|
|
992
1078
|
endNewInstance();
|
|
993
|
-
} else {
|
|
994
|
-
Cstr = elm.constructor;
|
|
995
|
-
const cmpTag = elm.localName;
|
|
996
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
997
1079
|
}
|
|
998
1080
|
if (Cstr && Cstr.style) {
|
|
999
1081
|
let style;
|
|
@@ -1016,7 +1098,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1016
1098
|
schedule();
|
|
1017
1099
|
}
|
|
1018
1100
|
};
|
|
1019
|
-
var fireConnectedCallback = (instance) => {
|
|
1101
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1020
1102
|
};
|
|
1021
1103
|
|
|
1022
1104
|
// src/runtime/connected-callback.ts
|
|
@@ -1056,7 +1138,7 @@ var connectedCallback = (elm) => {
|
|
|
1056
1138
|
endConnected();
|
|
1057
1139
|
}
|
|
1058
1140
|
};
|
|
1059
|
-
var disconnectInstance = (instance) => {
|
|
1141
|
+
var disconnectInstance = (instance, elm) => {
|
|
1060
1142
|
};
|
|
1061
1143
|
var disconnectedCallback = async (elm) => {
|
|
1062
1144
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1065,6 +1147,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1065
1147
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1066
1148
|
}
|
|
1067
1149
|
}
|
|
1150
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1151
|
+
rootAppliedStyles.delete(elm);
|
|
1152
|
+
}
|
|
1153
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1154
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1155
|
+
}
|
|
1068
1156
|
};
|
|
1069
1157
|
|
|
1070
1158
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1141,6 +1229,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1141
1229
|
}
|
|
1142
1230
|
disconnectedCallback() {
|
|
1143
1231
|
plt.jmp(() => disconnectedCallback(this));
|
|
1232
|
+
plt.raf(() => {
|
|
1233
|
+
var _a3;
|
|
1234
|
+
const hostRef = getHostRef(this);
|
|
1235
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1236
|
+
delete hostRef.$vnode$.$elm$;
|
|
1237
|
+
}
|
|
1238
|
+
});
|
|
1144
1239
|
}
|
|
1145
1240
|
componentOnReady() {
|
|
1146
1241
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-c4165083.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,6 +1,31 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class CasinoEngagementSuiteProgressBar {
|
|
3
3
|
constructor() {
|
|
4
|
+
/**
|
|
5
|
+
* Value for the widget
|
|
6
|
+
*/
|
|
7
|
+
this.value = 0;
|
|
8
|
+
/**
|
|
9
|
+
* Shows disabled styles
|
|
10
|
+
*/
|
|
11
|
+
this.disabled = false;
|
|
12
|
+
/**
|
|
13
|
+
* Hide percent value
|
|
14
|
+
*/
|
|
15
|
+
this.hidePercent = false;
|
|
16
|
+
/**
|
|
17
|
+
* Constantly animates
|
|
18
|
+
*/
|
|
19
|
+
this.indeterminate = false;
|
|
20
|
+
/**
|
|
21
|
+
* Client custom styling via string
|
|
22
|
+
*/
|
|
23
|
+
this.clientStyling = '';
|
|
24
|
+
/**
|
|
25
|
+
* Client custom styling via url
|
|
26
|
+
*/
|
|
27
|
+
this.clientStylingUrl = '';
|
|
28
|
+
this.limitStylingAppends = false;
|
|
4
29
|
this.setClientStyling = () => {
|
|
5
30
|
let sheet = document.createElement('style');
|
|
6
31
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -19,13 +44,6 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
19
44
|
console.log('Error ', err);
|
|
20
45
|
});
|
|
21
46
|
};
|
|
22
|
-
this.value = 0;
|
|
23
|
-
this.disabled = false;
|
|
24
|
-
this.hidePercent = false;
|
|
25
|
-
this.indeterminate = false;
|
|
26
|
-
this.clientStyling = '';
|
|
27
|
-
this.clientStylingUrl = '';
|
|
28
|
-
this.limitStylingAppends = false;
|
|
29
47
|
}
|
|
30
48
|
componentDidRender() {
|
|
31
49
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -83,6 +101,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
83
101
|
"tags": [],
|
|
84
102
|
"text": "Value for the widget"
|
|
85
103
|
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
86
106
|
"attribute": "value",
|
|
87
107
|
"reflect": false,
|
|
88
108
|
"defaultValue": "0"
|
|
@@ -101,6 +121,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
101
121
|
"tags": [],
|
|
102
122
|
"text": "Shows disabled styles"
|
|
103
123
|
},
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
104
126
|
"attribute": "disabled",
|
|
105
127
|
"reflect": false,
|
|
106
128
|
"defaultValue": "false"
|
|
@@ -119,6 +141,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
119
141
|
"tags": [],
|
|
120
142
|
"text": "Hide percent value"
|
|
121
143
|
},
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
122
146
|
"attribute": "hide-percent",
|
|
123
147
|
"reflect": false,
|
|
124
148
|
"defaultValue": "false"
|
|
@@ -137,6 +161,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
137
161
|
"tags": [],
|
|
138
162
|
"text": "Constantly animates"
|
|
139
163
|
},
|
|
164
|
+
"getter": false,
|
|
165
|
+
"setter": false,
|
|
140
166
|
"attribute": "indeterminate",
|
|
141
167
|
"reflect": false,
|
|
142
168
|
"defaultValue": "false"
|
|
@@ -155,6 +181,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
155
181
|
"tags": [],
|
|
156
182
|
"text": "Client custom styling via string"
|
|
157
183
|
},
|
|
184
|
+
"getter": false,
|
|
185
|
+
"setter": false,
|
|
158
186
|
"attribute": "client-styling",
|
|
159
187
|
"reflect": true,
|
|
160
188
|
"defaultValue": "''"
|
|
@@ -173,6 +201,8 @@ export class CasinoEngagementSuiteProgressBar {
|
|
|
173
201
|
"tags": [],
|
|
174
202
|
"text": "Client custom styling via url"
|
|
175
203
|
},
|
|
204
|
+
"getter": false,
|
|
205
|
+
"setter": false,
|
|
176
206
|
"attribute": "client-styling-url",
|
|
177
207
|
"reflect": true,
|
|
178
208
|
"defaultValue": "''"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-41556dd4.js';
|
|
2
2
|
|
|
3
3
|
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)}";
|
|
4
4
|
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
|
@@ -6,6 +6,31 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
|
|
|
6
6
|
const CasinoEngagementSuiteProgressBar = class {
|
|
7
7
|
constructor(hostRef) {
|
|
8
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/**
|
|
10
|
+
* Value for the widget
|
|
11
|
+
*/
|
|
12
|
+
this.value = 0;
|
|
13
|
+
/**
|
|
14
|
+
* Shows disabled styles
|
|
15
|
+
*/
|
|
16
|
+
this.disabled = false;
|
|
17
|
+
/**
|
|
18
|
+
* Hide percent value
|
|
19
|
+
*/
|
|
20
|
+
this.hidePercent = false;
|
|
21
|
+
/**
|
|
22
|
+
* Constantly animates
|
|
23
|
+
*/
|
|
24
|
+
this.indeterminate = false;
|
|
25
|
+
/**
|
|
26
|
+
* Client custom styling via string
|
|
27
|
+
*/
|
|
28
|
+
this.clientStyling = '';
|
|
29
|
+
/**
|
|
30
|
+
* Client custom styling via url
|
|
31
|
+
*/
|
|
32
|
+
this.clientStylingUrl = '';
|
|
33
|
+
this.limitStylingAppends = false;
|
|
9
34
|
this.setClientStyling = () => {
|
|
10
35
|
let sheet = document.createElement('style');
|
|
11
36
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -24,13 +49,6 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
24
49
|
console.log('Error ', err);
|
|
25
50
|
});
|
|
26
51
|
};
|
|
27
|
-
this.value = 0;
|
|
28
|
-
this.disabled = false;
|
|
29
|
-
this.hidePercent = false;
|
|
30
|
-
this.indeterminate = false;
|
|
31
|
-
this.clientStyling = '';
|
|
32
|
-
this.clientStylingUrl = '';
|
|
33
|
-
this.limitStylingAppends = false;
|
|
34
52
|
}
|
|
35
53
|
componentDidRender() {
|
|
36
54
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-41556dd4.js';
|
|
2
|
+
export { s as setNonce } from './index-41556dd4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
const NAMESPACE = 'casino-engagement-suite-progress-bar';
|
|
2
|
-
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 };
|
|
2
|
+
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 };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
9
9
|
for (var name in all)
|
|
10
10
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
11
|
};
|
|
12
|
+
|
|
13
|
+
// src/client/client-host-ref.ts
|
|
12
14
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
13
15
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
14
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
16
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
17
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
18
|
+
};
|
|
15
19
|
var registerHost = (hostElement, cmpMeta) => {
|
|
16
20
|
const hostRef = {
|
|
17
21
|
$flags$: 0,
|
|
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
24
28
|
hostElement["s-p"] = [];
|
|
25
29
|
hostElement["s-rc"] = [];
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
32
|
+
return ref;
|
|
28
33
|
};
|
|
29
34
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
30
35
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
66
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
62
67
|
/* webpackMode: "lazy" */
|
|
63
68
|
`./${bundleId}.entry.js${""}`
|
|
64
|
-
).then(
|
|
65
|
-
{
|
|
66
|
-
|
|
69
|
+
).then(
|
|
70
|
+
(importedModule) => {
|
|
71
|
+
{
|
|
72
|
+
cmpModules.set(bundleId, importedModule);
|
|
73
|
+
}
|
|
74
|
+
return importedModule[exportName];
|
|
75
|
+
},
|
|
76
|
+
(e) => {
|
|
77
|
+
consoleError(e, hostRef.$hostElement$);
|
|
67
78
|
}
|
|
68
|
-
|
|
69
|
-
}, consoleError);
|
|
79
|
+
);
|
|
70
80
|
};
|
|
71
81
|
|
|
72
82
|
// src/client/client-style.ts
|
|
73
83
|
var styles = /* @__PURE__ */ new Map();
|
|
84
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
74
85
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
75
86
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
76
87
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -128,12 +139,6 @@ var flush = () => {
|
|
|
128
139
|
};
|
|
129
140
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
130
141
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
131
|
-
|
|
132
|
-
// src/utils/constants.ts
|
|
133
|
-
var EMPTY_OBJ = {};
|
|
134
|
-
|
|
135
|
-
// src/utils/helpers.ts
|
|
136
|
-
var isDef = (v) => v != null;
|
|
137
142
|
var isComplexType = (o) => {
|
|
138
143
|
o = typeof o;
|
|
139
144
|
return o === "object" || o === "function";
|
|
@@ -322,7 +327,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
322
327
|
}
|
|
323
328
|
if (!appliedStyles.has(scopeId2)) {
|
|
324
329
|
{
|
|
325
|
-
styleElm = doc.createElement("style");
|
|
330
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
326
331
|
styleElm.innerHTML = style;
|
|
327
332
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
328
333
|
if (nonce != null) {
|
|
@@ -332,7 +337,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
332
337
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
333
338
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
334
339
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
335
|
-
styleContainerNode.insertBefore(
|
|
340
|
+
styleContainerNode.insertBefore(
|
|
341
|
+
styleElm,
|
|
342
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
343
|
+
);
|
|
336
344
|
} else if ("host" in styleContainerNode) {
|
|
337
345
|
if (supportsConstructableStylesheets) {
|
|
338
346
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -382,16 +390,18 @@ var attachStyles = (hostRef) => {
|
|
|
382
390
|
endAttachStyles();
|
|
383
391
|
};
|
|
384
392
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
385
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
393
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
386
394
|
if (oldValue !== newValue) {
|
|
387
395
|
let isProp = isMemberInElement(elm, memberName);
|
|
388
396
|
memberName.toLowerCase();
|
|
389
397
|
if (memberName === "class") {
|
|
390
398
|
const classList = elm.classList;
|
|
391
399
|
const oldClasses = parseClassList(oldValue);
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
400
|
+
let newClasses = parseClassList(newValue);
|
|
401
|
+
{
|
|
402
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
403
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
404
|
+
}
|
|
395
405
|
} else if (memberName === "style") {
|
|
396
406
|
{
|
|
397
407
|
for (const prop in oldValue) {
|
|
@@ -428,7 +438,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
428
438
|
elm.setAttribute(memberName, n);
|
|
429
439
|
}
|
|
430
440
|
}
|
|
431
|
-
} else {
|
|
441
|
+
} else if (elm[memberName] !== newValue) {
|
|
432
442
|
elm[memberName] = newValue;
|
|
433
443
|
}
|
|
434
444
|
} catch (e) {
|
|
@@ -450,22 +460,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
450
460
|
}
|
|
451
461
|
};
|
|
452
462
|
var parseClassListRegex = /\s/;
|
|
453
|
-
var parseClassList = (value) =>
|
|
463
|
+
var parseClassList = (value) => {
|
|
464
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
465
|
+
value = value.baseVal;
|
|
466
|
+
}
|
|
467
|
+
if (!value || typeof value !== "string") {
|
|
468
|
+
return [];
|
|
469
|
+
}
|
|
470
|
+
return value.split(parseClassListRegex);
|
|
471
|
+
};
|
|
454
472
|
|
|
455
473
|
// src/runtime/vdom/update-element.ts
|
|
456
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
474
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
457
475
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
458
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
459
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
476
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
477
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
460
478
|
{
|
|
461
479
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
462
480
|
if (!(memberName in newVnodeAttrs)) {
|
|
463
|
-
setAccessor(
|
|
481
|
+
setAccessor(
|
|
482
|
+
elm,
|
|
483
|
+
memberName,
|
|
484
|
+
oldVnodeAttrs[memberName],
|
|
485
|
+
void 0,
|
|
486
|
+
isSvgMode2,
|
|
487
|
+
newVnode.$flags$);
|
|
464
488
|
}
|
|
465
489
|
}
|
|
466
490
|
}
|
|
467
491
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
468
|
-
setAccessor(
|
|
492
|
+
setAccessor(
|
|
493
|
+
elm,
|
|
494
|
+
memberName,
|
|
495
|
+
oldVnodeAttrs[memberName],
|
|
496
|
+
newVnodeAttrs[memberName],
|
|
497
|
+
isSvgMode2,
|
|
498
|
+
newVnode.$flags$);
|
|
469
499
|
}
|
|
470
500
|
};
|
|
471
501
|
function sortedAttrNames(attrNames) {
|
|
@@ -477,13 +507,10 @@ function sortedAttrNames(attrNames) {
|
|
|
477
507
|
attrNames
|
|
478
508
|
);
|
|
479
509
|
}
|
|
480
|
-
|
|
481
|
-
// src/runtime/vdom/vdom-render.ts
|
|
482
|
-
var scopeId;
|
|
483
510
|
var hostTagName;
|
|
484
511
|
var useNativeShadowDom = false;
|
|
485
512
|
var isSvgMode = false;
|
|
486
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
513
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
487
514
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
488
515
|
let i2 = 0;
|
|
489
516
|
let elm;
|
|
@@ -497,11 +524,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
497
524
|
{
|
|
498
525
|
updateElement(null, newVNode2, isSvgMode);
|
|
499
526
|
}
|
|
500
|
-
const rootNode = elm.getRootNode();
|
|
501
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
502
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
503
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
504
|
-
}
|
|
505
527
|
if (newVNode2.$children$) {
|
|
506
528
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
507
529
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -630,6 +652,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
630
652
|
if (!isInitialRender) {
|
|
631
653
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
632
654
|
}
|
|
655
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
656
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
657
|
+
}
|
|
633
658
|
return true;
|
|
634
659
|
}
|
|
635
660
|
return false;
|
|
@@ -664,8 +689,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
664
689
|
}
|
|
665
690
|
};
|
|
666
691
|
var insertBefore = (parent, newNode, reference) => {
|
|
667
|
-
|
|
668
|
-
|
|
692
|
+
{
|
|
693
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
694
|
+
}
|
|
669
695
|
};
|
|
670
696
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
671
697
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -690,9 +716,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
690
716
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
691
717
|
hostRef.$vnode$ = rootVnode;
|
|
692
718
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
693
|
-
{
|
|
694
|
-
scopeId = hostElm["s-sc"];
|
|
695
|
-
}
|
|
696
719
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
697
720
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
698
721
|
};
|
|
@@ -700,7 +723,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
700
723
|
// src/runtime/update-component.ts
|
|
701
724
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
702
725
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
703
|
-
ancestorComponent["s-p"].push(
|
|
726
|
+
const index = ancestorComponent["s-p"].push(
|
|
727
|
+
new Promise(
|
|
728
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
729
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
730
|
+
r();
|
|
731
|
+
}
|
|
732
|
+
)
|
|
733
|
+
);
|
|
704
734
|
}
|
|
705
735
|
};
|
|
706
736
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -791,7 +821,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
791
821
|
const instance = hostRef.$lazyInstance$ ;
|
|
792
822
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
793
823
|
{
|
|
794
|
-
safeCall(instance, "componentDidRender");
|
|
824
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
795
825
|
}
|
|
796
826
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
797
827
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -825,12 +855,12 @@ var appDidLoad = (who) => {
|
|
|
825
855
|
}
|
|
826
856
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
827
857
|
};
|
|
828
|
-
var safeCall = (instance, method, arg) => {
|
|
858
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
829
859
|
if (instance && instance[method]) {
|
|
830
860
|
try {
|
|
831
861
|
return instance[method](arg);
|
|
832
862
|
} catch (e) {
|
|
833
|
-
consoleError(e);
|
|
863
|
+
consoleError(e, elm);
|
|
834
864
|
}
|
|
835
865
|
}
|
|
836
866
|
return void 0;
|
|
@@ -873,15 +903,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
873
903
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
874
904
|
members.map(([memberName, [memberFlags]]) => {
|
|
875
905
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
906
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
907
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
908
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
909
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
910
|
+
Object.defineProperty(prototype, memberName, {
|
|
911
|
+
get() {
|
|
912
|
+
{
|
|
913
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
914
|
+
return getValue(this, memberName);
|
|
915
|
+
}
|
|
916
|
+
const ref = getHostRef(this);
|
|
917
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
918
|
+
if (!instance) return;
|
|
919
|
+
return instance[memberName];
|
|
920
|
+
}
|
|
921
|
+
},
|
|
922
|
+
configurable: true,
|
|
923
|
+
enumerable: true
|
|
924
|
+
});
|
|
925
|
+
}
|
|
876
926
|
Object.defineProperty(prototype, memberName, {
|
|
877
|
-
get() {
|
|
878
|
-
return getValue(this, memberName);
|
|
879
|
-
},
|
|
880
927
|
set(newValue) {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
928
|
+
const ref = getHostRef(this);
|
|
929
|
+
if (origSetter) {
|
|
930
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
931
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
932
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
933
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
934
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
935
|
+
}
|
|
936
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
937
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
938
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
{
|
|
942
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
943
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
944
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
945
|
+
ref.$onReadyPromise$.then(() => {
|
|
946
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
947
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
const setterSetVal = () => {
|
|
954
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
955
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
956
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
957
|
+
}
|
|
958
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
959
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
960
|
+
};
|
|
961
|
+
if (ref.$lazyInstance$) {
|
|
962
|
+
setterSetVal();
|
|
963
|
+
} else {
|
|
964
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
885
968
|
});
|
|
886
969
|
}
|
|
887
970
|
});
|
|
@@ -891,7 +974,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
891
974
|
plt.jmp(() => {
|
|
892
975
|
var _a2;
|
|
893
976
|
const propName = attrNameToPropName.get(attrName);
|
|
894
|
-
if (this.hasOwnProperty(propName)) {
|
|
977
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
895
978
|
newValue = this[propName];
|
|
896
979
|
delete this[propName];
|
|
897
980
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -911,7 +994,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
911
994
|
}
|
|
912
995
|
return;
|
|
913
996
|
}
|
|
914
|
-
|
|
997
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
998
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
999
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1000
|
+
this[propName] = newValue;
|
|
1001
|
+
}
|
|
915
1002
|
});
|
|
916
1003
|
};
|
|
917
1004
|
Cstr.observedAttributes = Array.from(
|
|
@@ -938,9 +1025,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
938
1025
|
let Cstr;
|
|
939
1026
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
940
1027
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1028
|
+
{
|
|
1029
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
944
1030
|
if (CstrImport && "then" in CstrImport) {
|
|
945
1031
|
const endLoad = uniqueTime();
|
|
946
1032
|
Cstr = await CstrImport;
|
|
@@ -962,16 +1048,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
962
1048
|
try {
|
|
963
1049
|
new Cstr(hostRef);
|
|
964
1050
|
} catch (e) {
|
|
965
|
-
consoleError(e);
|
|
1051
|
+
consoleError(e, elm);
|
|
966
1052
|
}
|
|
967
1053
|
{
|
|
968
1054
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
969
1055
|
}
|
|
970
1056
|
endNewInstance();
|
|
971
|
-
} else {
|
|
972
|
-
Cstr = elm.constructor;
|
|
973
|
-
const cmpTag = elm.localName;
|
|
974
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
975
1057
|
}
|
|
976
1058
|
if (Cstr && Cstr.style) {
|
|
977
1059
|
let style;
|
|
@@ -994,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
994
1076
|
schedule();
|
|
995
1077
|
}
|
|
996
1078
|
};
|
|
997
|
-
var fireConnectedCallback = (instance) => {
|
|
1079
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
998
1080
|
};
|
|
999
1081
|
|
|
1000
1082
|
// src/runtime/connected-callback.ts
|
|
@@ -1034,7 +1116,7 @@ var connectedCallback = (elm) => {
|
|
|
1034
1116
|
endConnected();
|
|
1035
1117
|
}
|
|
1036
1118
|
};
|
|
1037
|
-
var disconnectInstance = (instance) => {
|
|
1119
|
+
var disconnectInstance = (instance, elm) => {
|
|
1038
1120
|
};
|
|
1039
1121
|
var disconnectedCallback = async (elm) => {
|
|
1040
1122
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1043,6 +1125,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1043
1125
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1044
1126
|
}
|
|
1045
1127
|
}
|
|
1128
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1129
|
+
rootAppliedStyles.delete(elm);
|
|
1130
|
+
}
|
|
1131
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1132
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1133
|
+
}
|
|
1046
1134
|
};
|
|
1047
1135
|
|
|
1048
1136
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1119,6 +1207,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1119
1207
|
}
|
|
1120
1208
|
disconnectedCallback() {
|
|
1121
1209
|
plt.jmp(() => disconnectedCallback(this));
|
|
1210
|
+
plt.raf(() => {
|
|
1211
|
+
var _a3;
|
|
1212
|
+
const hostRef = getHostRef(this);
|
|
1213
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1214
|
+
delete hostRef.$vnode$.$elm$;
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1122
1217
|
}
|
|
1123
1218
|
componentOnReady() {
|
|
1124
1219
|
return getHostRef(this).$onReadyPromise$;
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-41556dd4.js';
|
|
2
|
+
export { s as setNonce } from './index-41556dd4.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
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})(),p=!1,d=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.l?b(w):a.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){o(e)}e.length=0},w=()=>{$(d),$(m),(p=d.length>0)&&a.raf(w)},b=e=>f().then(e),v=y(m,!0),S={},g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>O,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function O(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 E(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},x=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!g(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(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=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=e=>n(e).$hostElement$,R=new WeakMap,T=e=>"sc-"+e.v,F=(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=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else{const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(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)}}},N=/\s/,U=e=>e?e.split(N):[],L=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of W(Object.keys(o)))e in s||F(l,e,o[e],void 0,n,t.l);for(const e of W(Object.keys(s)))F(l,e,o[e],s[e],n,t.l)};function W(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var q=!1,G=!1,V=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.m),L(null,l,G),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=V(e,l,r),s&&o.appendChild(s);return o["s-hn"]=C,o},_=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=V(null,n,o),r&&(l[o].$=r,J(i,r,t)))},z=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;e&&e.remove()}}},B=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),I=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(("slot"!==t.m||q)&&L(e,t,G),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(B(h,m,o))I(h,m,o),h=t[++i],m=l[++c];else if(B(p,y,o))I(p,y,o),p=t[--f],y=l[--d];else if(B(h,y,o))I(h,y,o),J(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(B(p,m,o))I(p,m,o),J(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=V(t&&t[c],n,u):(I(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=V(t&&t[c],n,c),m=l[++c]),s&&J(h.$.parentNode,s,h.$)}i>f?_(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&z(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),_(l,null,t,s,0,s.length-1)):!n&&null!==o&&z(o,0,o.length-1)):e.i!==r&&(l.data=r)},J=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),K=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Q=(e,t)=>{if(e.l|=16,!(4&e.l))return K(e,e.j),v((()=>X(e,t)));e.l|=512},X=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);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 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=T(t),o=r.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=R.get(e=e.head||e);if(r||R.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=a.O)?n:j(u);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))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,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}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&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);te(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ne(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},te=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||A(null,null),r=(e=>e&&e.m===D)(t)?t:x(null,null,t);if(C=l.tagName,o.M&&(r.u=r.u||{},o.M.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.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,q=!!(1&o.l),I(s,r,n)})(e,t,l)}catch(t){o(t,e.$hostElement$)}return null},ne=e=>{const t=e.$hostElement$,n=e.j;oe(e.t,"componentDidRender"),64&e.l||(e.l|=64,se(t),e.P(t),n||le()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Q(e,!1))),e.l&=-517},le=()=>{se(u.documentElement),b((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"casino-engagement-suite-progress-bar"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){o(e)}},se=e=>e.classList.add("hydrated"),re=(e,t,l)=>{var o,s;const r=e.prototype;if(t.A){const i=Object.entries(null!=(o=t.A)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).D.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.D.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.A[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.D.set(t,l),c&&2==(18&i)&&Q(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.H)?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.H)?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.M)||o.push([e,s])),s}))]))}}return e},ie=(e,l={})=>{var f;const p=[],d=l.exclude||[],m=c.customElements,y=u.head,$=y.querySelector("meta[charset]"),w=u.createElement("style"),b=[];let v,S=!0;Object.assign(a,l),a.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const i={l:l[0],v:l[1],A:l[2],R:l[3]};4&i.l&&(g=!0),i.A=l[2],i.M=[];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,D:new Map};l.T=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),v&&(clearTimeout(v),v=null),S?b.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.T)&&t.T.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){K(t,t.j=n);break}}l.A&&Object.entries(l.A).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.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;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.N}" was not found`);l.isProxied||(re(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=T(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);h&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const i=t.j,c=()=>Q(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,l)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return n(this).T}};i.F=e[0],d.includes(c)||m.get(c)||(p.push(c),m.define(c,re(u,i,1)))}))})),p.length>0&&(g&&(w.textContent+=i),w.textContent+=p.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(f=a.O)?f:j(u);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,$?$.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(le,30)))},ce=e=>a.O=e;export{ie as b,H as g,x as h,f as p,l as r,ce as s}
|