@everymatrix/casino-engagement-suite-progress-bar 1.54.11 → 1.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-progress-bar/casino-engagement-suite-progress-bar.esm.js +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-1e1b70ac.js +2 -0
- package/dist/casino-engagement-suite-progress-bar/{p-813013c8.entry.js → p-bcd842b7.entry.js} +1 -1
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +8 -26
- package/dist/cjs/casino-engagement-suite-progress-bar.cjs.js +2 -2
- package/dist/cjs/{index-0119843f.js → index-1ec735af.js} +65 -166
- 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 +7 -37
- package/dist/esm/casino-engagement-suite-progress-bar.entry.js +8 -26
- package/dist/esm/casino-engagement-suite-progress-bar.js +3 -3
- package/dist/esm/{index-dee41a55.js → index-c7abcc9c.js} +65 -166
- package/dist/esm/loader.js +2 -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 +2 -0
- 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
- package/package.json +1 -1
- package/dist/casino-engagement-suite-progress-bar/p-77c6497a.js +0 -2
- package/dist/types/builds/emfe-widgets/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/builds/emfe-widgets/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/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-progress-bar/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
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-1e1b70ac.js";export{s as setNonce}from"./p-1e1b70ac.js";import{g as i}from"./p-e1255160.js";(()=>{const t=import.meta.url,i={};return""!==t&&(i.resourcesUrl=new URL(".",t).href),e(i)})().then((async e=>(await i(),t([["p-bcd842b7",[[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],e))));
|
|
@@ -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})(),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}
|
package/dist/casino-engagement-suite-progress-bar/{p-813013c8.entry.js → p-bcd842b7.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-1e1b70ac.js";const t=class{constructor(r){e(this,r),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),r=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{r.innerHTML=e,setTimeout((()=>{this.host.prepend(r)}),1)})).catch((e=>{console.log("Error ",e)}))},this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return r("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return r("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},r("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},r("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},r("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),r("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},r("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),r("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return s(this)}};t.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";export{t as casino_engagement_suite_progress_bar}
|
|
@@ -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-1ec735af.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-
|
|
5
|
+
const index = require('./index-1ec735af.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.22.3 | 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,
|
|
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.
|
|
27
|
+
Stencil Client Platform v4.22.3 | 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
|
-
|
|
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
|
-
|
|
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,7 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
349
344
|
}
|
|
350
345
|
if (!appliedStyles.has(scopeId2)) {
|
|
351
346
|
{
|
|
352
|
-
styleElm =
|
|
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) {
|
|
@@ -359,10 +354,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
359
354
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
360
355
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
361
356
|
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
|
-
);
|
|
357
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
366
358
|
} else if ("host" in styleContainerNode) {
|
|
367
359
|
if (supportsConstructableStylesheets) {
|
|
368
360
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -380,7 +372,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
380
372
|
styleContainerNode.append(styleElm);
|
|
381
373
|
}
|
|
382
374
|
}
|
|
383
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
375
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
384
376
|
styleContainerNode.insertBefore(styleElm, null);
|
|
385
377
|
}
|
|
386
378
|
}
|
|
@@ -405,25 +397,23 @@ var attachStyles = (hostRef) => {
|
|
|
405
397
|
const scopeId2 = addStyle(
|
|
406
398
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
407
399
|
cmpMeta);
|
|
408
|
-
if (
|
|
400
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
409
401
|
elm["s-sc"] = scopeId2;
|
|
410
402
|
elm.classList.add(scopeId2 + "-h");
|
|
411
403
|
}
|
|
412
404
|
endAttachStyles();
|
|
413
405
|
};
|
|
414
406
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
415
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
407
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
416
408
|
if (oldValue !== newValue) {
|
|
417
409
|
let isProp = isMemberInElement(elm, memberName);
|
|
418
410
|
memberName.toLowerCase();
|
|
419
411
|
if (memberName === "class") {
|
|
420
412
|
const classList = elm.classList;
|
|
421
413
|
const oldClasses = parseClassList(oldValue);
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
426
|
-
}
|
|
414
|
+
const newClasses = parseClassList(newValue);
|
|
415
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
416
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
427
417
|
} else if (memberName === "style") {
|
|
428
418
|
{
|
|
429
419
|
for (const prop in oldValue) {
|
|
@@ -460,7 +450,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
460
450
|
elm.setAttribute(memberName, n);
|
|
461
451
|
}
|
|
462
452
|
}
|
|
463
|
-
} else
|
|
453
|
+
} else {
|
|
464
454
|
elm[memberName] = newValue;
|
|
465
455
|
}
|
|
466
456
|
} catch (e) {
|
|
@@ -482,42 +472,22 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
482
472
|
}
|
|
483
473
|
};
|
|
484
474
|
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
|
-
};
|
|
475
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
494
476
|
|
|
495
477
|
// src/runtime/vdom/update-element.ts
|
|
496
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
478
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
497
479
|
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$ ||
|
|
480
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
481
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
500
482
|
{
|
|
501
483
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
502
484
|
if (!(memberName in newVnodeAttrs)) {
|
|
503
|
-
setAccessor(
|
|
504
|
-
elm,
|
|
505
|
-
memberName,
|
|
506
|
-
oldVnodeAttrs[memberName],
|
|
507
|
-
void 0,
|
|
508
|
-
isSvgMode2,
|
|
509
|
-
newVnode.$flags$);
|
|
485
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
510
486
|
}
|
|
511
487
|
}
|
|
512
488
|
}
|
|
513
489
|
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$);
|
|
490
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
521
491
|
}
|
|
522
492
|
};
|
|
523
493
|
function sortedAttrNames(attrNames) {
|
|
@@ -529,10 +499,13 @@ function sortedAttrNames(attrNames) {
|
|
|
529
499
|
attrNames
|
|
530
500
|
);
|
|
531
501
|
}
|
|
502
|
+
|
|
503
|
+
// src/runtime/vdom/vdom-render.ts
|
|
504
|
+
var scopeId;
|
|
532
505
|
var hostTagName;
|
|
533
506
|
var useNativeShadowDom = false;
|
|
534
507
|
var isSvgMode = false;
|
|
535
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
508
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
536
509
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
537
510
|
let i2 = 0;
|
|
538
511
|
let elm;
|
|
@@ -546,6 +519,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
546
519
|
{
|
|
547
520
|
updateElement(null, newVNode2, isSvgMode);
|
|
548
521
|
}
|
|
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
|
+
}
|
|
549
527
|
if (newVNode2.$children$) {
|
|
550
528
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
551
529
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -674,9 +652,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
674
652
|
if (!isInitialRender) {
|
|
675
653
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
676
654
|
}
|
|
677
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
678
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
679
|
-
}
|
|
680
655
|
return true;
|
|
681
656
|
}
|
|
682
657
|
return false;
|
|
@@ -711,9 +686,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
711
686
|
}
|
|
712
687
|
};
|
|
713
688
|
var insertBefore = (parent, newNode, reference) => {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
689
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
690
|
+
return inserted;
|
|
717
691
|
};
|
|
718
692
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
719
693
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -738,21 +712,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
738
712
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
739
713
|
hostRef.$vnode$ = rootVnode;
|
|
740
714
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
741
|
-
|
|
715
|
+
{
|
|
716
|
+
scopeId = hostElm["s-sc"];
|
|
717
|
+
}
|
|
718
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
742
719
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
743
720
|
};
|
|
744
721
|
|
|
745
722
|
// src/runtime/update-component.ts
|
|
746
723
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
747
724
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
748
|
-
|
|
749
|
-
new Promise(
|
|
750
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
751
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
752
|
-
r();
|
|
753
|
-
}
|
|
754
|
-
)
|
|
755
|
-
);
|
|
725
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
756
726
|
}
|
|
757
727
|
};
|
|
758
728
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -843,7 +813,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
843
813
|
const instance = hostRef.$lazyInstance$ ;
|
|
844
814
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
845
815
|
{
|
|
846
|
-
safeCall(instance, "componentDidRender"
|
|
816
|
+
safeCall(instance, "componentDidRender");
|
|
847
817
|
}
|
|
848
818
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
849
819
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -872,14 +842,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
872
842
|
}
|
|
873
843
|
};
|
|
874
844
|
var appDidLoad = (who) => {
|
|
845
|
+
{
|
|
846
|
+
addHydratedFlag(doc.documentElement);
|
|
847
|
+
}
|
|
875
848
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
876
849
|
};
|
|
877
|
-
var safeCall = (instance, method, arg
|
|
850
|
+
var safeCall = (instance, method, arg) => {
|
|
878
851
|
if (instance && instance[method]) {
|
|
879
852
|
try {
|
|
880
853
|
return instance[method](arg);
|
|
881
854
|
} catch (e) {
|
|
882
|
-
consoleError(e
|
|
855
|
+
consoleError(e);
|
|
883
856
|
}
|
|
884
857
|
}
|
|
885
858
|
return void 0;
|
|
@@ -922,68 +895,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
922
895
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
923
896
|
members.map(([memberName, [memberFlags]]) => {
|
|
924
897
|
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
898
|
Object.defineProperty(prototype, memberName, {
|
|
899
|
+
get() {
|
|
900
|
+
return getValue(this, memberName);
|
|
901
|
+
},
|
|
946
902
|
set(newValue) {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
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
|
-
}
|
|
903
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
904
|
+
},
|
|
905
|
+
configurable: true,
|
|
906
|
+
enumerable: true
|
|
987
907
|
});
|
|
988
908
|
}
|
|
989
909
|
});
|
|
@@ -993,7 +913,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
993
913
|
plt.jmp(() => {
|
|
994
914
|
var _a2;
|
|
995
915
|
const propName = attrNameToPropName.get(attrName);
|
|
996
|
-
if (this.hasOwnProperty(propName)
|
|
916
|
+
if (this.hasOwnProperty(propName)) {
|
|
997
917
|
newValue = this[propName];
|
|
998
918
|
delete this[propName];
|
|
999
919
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -1013,11 +933,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1013
933
|
}
|
|
1014
934
|
return;
|
|
1015
935
|
}
|
|
1016
|
-
|
|
1017
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1018
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1019
|
-
this[propName] = newValue;
|
|
1020
|
-
}
|
|
936
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1021
937
|
});
|
|
1022
938
|
};
|
|
1023
939
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1046,7 +962,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1046
962
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1047
963
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1048
964
|
if (bundleId) {
|
|
1049
|
-
const CstrImport = loadModule(cmpMeta
|
|
965
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1050
966
|
if (CstrImport && "then" in CstrImport) {
|
|
1051
967
|
const endLoad = uniqueTime();
|
|
1052
968
|
Cstr = await CstrImport;
|
|
@@ -1068,7 +984,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1068
984
|
try {
|
|
1069
985
|
new Cstr(hostRef);
|
|
1070
986
|
} catch (e) {
|
|
1071
|
-
consoleError(e
|
|
987
|
+
consoleError(e);
|
|
1072
988
|
}
|
|
1073
989
|
{
|
|
1074
990
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1100,7 +1016,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1100
1016
|
schedule();
|
|
1101
1017
|
}
|
|
1102
1018
|
};
|
|
1103
|
-
var fireConnectedCallback = (instance
|
|
1019
|
+
var fireConnectedCallback = (instance) => {
|
|
1104
1020
|
};
|
|
1105
1021
|
|
|
1106
1022
|
// src/runtime/connected-callback.ts
|
|
@@ -1140,7 +1056,7 @@ var connectedCallback = (elm) => {
|
|
|
1140
1056
|
endConnected();
|
|
1141
1057
|
}
|
|
1142
1058
|
};
|
|
1143
|
-
var disconnectInstance = (instance
|
|
1059
|
+
var disconnectInstance = (instance) => {
|
|
1144
1060
|
};
|
|
1145
1061
|
var disconnectedCallback = async (elm) => {
|
|
1146
1062
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1149,12 +1065,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1149
1065
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1150
1066
|
}
|
|
1151
1067
|
}
|
|
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
1068
|
};
|
|
1159
1069
|
|
|
1160
1070
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1231,17 +1141,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1231
1141
|
}
|
|
1232
1142
|
disconnectedCallback() {
|
|
1233
1143
|
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
1144
|
}
|
|
1246
1145
|
componentOnReady() {
|
|
1247
1146
|
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-1ec735af.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|