@everymatrix/casino-tournament-desc 1.56.0 → 1.56.3
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-tournament-desc/casino-tournament-desc.esm.js +1 -1
- package/dist/casino-tournament-desc/p-32d65a3a.entry.js +1 -0
- package/dist/casino-tournament-desc/p-a92f48b3.js +2 -0
- package/dist/cjs/casino-tournament-desc.cjs.entry.js +4 -10
- package/dist/cjs/casino-tournament-desc.cjs.js +2 -2
- package/dist/cjs/{index-58c4c03b.js → index-d20eebc4.js} +70 -207
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-tournament-desc/casino-tournament-desc.js +3 -19
- package/dist/esm/casino-tournament-desc.entry.js +4 -10
- package/dist/esm/casino-tournament-desc.js +3 -3
- package/dist/esm/{index-169a4179.js → index-ff8a1835.js} +70 -207
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/casino-tournament-desc/p-26564c10.entry.js +0 -1
- package/dist/casino-tournament-desc/p-61a8944b.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/packages/stencil/casino-tournament-desc/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-tournament-desc/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as t}from"./p-
|
|
1
|
+
import{p as e,b as t}from"./p-a92f48b3.js";export{s as setNonce}from"./p-a92f48b3.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-32d65a3a",[[1,"casino-tournament-desc",{desc:[1],descTitle:[1,"desc-title"],useEvent:[4,"use-event"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],stylingContainer:[32],collapsed:[32],tournamentDescriptions:[32]},[[8,"getTournamentDescriptionCompleted","descCompletedHandler"]]]]]],e))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,g as i}from"./p-a92f48b3.js";const e=class{constructor(s){t(this,s),this.desc=void 0,this.descTitle=void 0,this.useEvent=!0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.stylingContainer=void 0,this.collapsed=[],this.tournamentDescriptions=[]}descCompletedHandler(t){t.detail&&this.useEvent&&(this.tournamentDescriptions=t.detail)}collapseText(t){this.collapsed[t]=!this.collapsed[t],this.collapsed=[...this.collapsed]}componentWillLoad(){0==this.useEvent&&this.desc&&this.descTitle&&this.tournamentDescriptions.push({title:this.descTitle,text:this.desc})}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const s=new CSSStyleSheet;s.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,s]}))}render(){return s("div",{key:"58eb843db2f73c1549d703040cb13b4a0ce6ed5c",class:"TournamentDescription"},this.tournamentDescriptions&&this.tournamentDescriptions.map(((t,i)=>s("div",{class:"DetailsCard"},t.title&&s("div",{class:"DetailsTitle"},s("p",{class:"Title"},t.title),s("div",{class:"CollapseButtonDetails",onClick:()=>this.collapseText(i)},s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},s("path",this.collapsed[i]?{d:"M18 15l-6-6-6 6"}:{d:"M6 9l6 6 6-6"})))),t.text&&!this.collapsed[i]&&s("div",{class:"DetailsContent sc",innerHTML:t.text})))))}get host(){return i(this)}};e.style=":host{display:block}.DetailsCard{color:var(--emw--color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:10px}";export{e as casino_tournament_desc}
|
|
@@ -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)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={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)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],w=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b($):f.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(w),(d=m.length>0)&&f.raf($)},b=e=>h().then(e),g=y(w,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(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:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>R});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(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 M,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},T=(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&&!j(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,v:null,h:null,u:null,p:null}),L={},N=e=>n(e).$hostElement$,U=new WeakMap,W=e=>"sc-"+e.$,D=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n),s=H(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},F=/\s/,H=e=>e?e.split(F):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of _(Object.keys(o)))e in s||D(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))D(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(z||(z="svg"===l.m),o=l.v=a.createElementNS(z?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),z&&"foreignObject"===l.m&&(z=!1),V(null,l,z),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=B(e,l,r),s&&o.appendChild(s);"svg"===l.m?z=!1:"foreignObject"===o.tagName&&(z=!0)}return o["s-hn"]=x,o},I=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=B(null,n,o),r&&(l[o].v=r,X(i,r,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Q=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(V(e,t,z="svg"===r||"foreignObject"!==r&&z),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],w=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==w)w=l[--d];else if(K(h,m,o))Q(h,m,o),h=t[++i],m=l[++c];else if(K(p,w,o))Q(p,w,o),p=t[--f],w=l[--d];else if(K(h,w,o))Q(h,w,o),X(e,h.v,p.v.nextSibling),h=t[++i],w=l[--d];else if(K(p,m,o))Q(p,m,o),X(e,p.v,h.v),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=B(t&&t[c],n,u):(Q(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=B(t&&t[c],n,c),m=l[++c]),s&&X(h.v.parentNode,s,h.v)}i>f?I(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&J(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):null!==o&&J(o,0,o.length-1),z&&"svg"===r&&(z=!1)):e.i!==i&&(l.data=i)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),g((()=>ee(e,t)));e.l|=512},ee=(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`);let l;return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>ie(n,e,t))),e.O=void 0),l=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=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=W(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=U.get(e=e.head||e);if(r||U.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.C)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.M||A(null,null),r=(e=>e&&e.m===L)(t)?t:T(null,null,t);if(x=l.tagName,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.M=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],Q(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.j;ie(e.t,"componentDidRender"),64&e.l||(e.l|=64,ce(t),e.P(t),n||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-tournament-desc"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,s;const r=e.prototype;if(t.R){const i=Object.entries(null!=(o=t.R)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&Z(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.A)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.A)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return l.set(n,e),n}))]))}}return e},ae=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,w=a.head,y=w.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],$:l[1],R:l[2],L:l[3]};4&o.l&&(S=!0),o.R=l[2],o.L=l[3];const c=o.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.N=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,fe(this,e,o.L)),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)fe(e,t,l.L),(null==t?void 0:t.t)||(null==t?void 0:t.N)&&t.N.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.U){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.U;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
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.$}#${t.W}" was not found`);l.isProxied||(ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}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=W(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.D&&(e.D.map((e=>e())),e.D=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}))}})()))}componentOnReady(){return n(this).N}};o.U=e[0],d.includes(c)||m.get(c)||(h.push(c),m.define(c,ue(u,o,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:O(a);null!=e&&v.setAttribute("nonce",e),w.insertBefore(v,y?y.nextSibling:w.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(re,30)))},fe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=pe(e,n),r=he(t,o),i=de(n);f.ael(s,l,r,i),(t.D=t.D||[]).push((()=>f.rel(s,l,r,i)))}))},he=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},pe=(e,t)=>8&t?u:e,de=e=>({passive:!!(1&e),capture:!!(2&e)}),me=e=>f.C=e;export{ae as b,N as g,T as h,h as p,l as r,me 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-d20eebc4.js');
|
|
6
6
|
|
|
7
7
|
const casinoTournamentDescCss = ":host{display:block}.DetailsCard{color:var(--emw--color-white, #FFFFFF);width:100%;margin:0 0 25px 0}.DetailsTitle{padding:0 8px;height:36px;display:flex;align-items:center;justify-content:space-between;background:var(--emw--tournament-color-bg, #153a5c)}.DetailsContent{overflow:auto;height:150px;font-size:14px;padding:10px 10px 10px 20px;margin:10px 20px 10px 0}.CollapseButtonDetails svg{width:24px;height:24px}.sc::-webkit-scrollbar{width:5px;height:5px}.sc::-webkit-scrollbar-track{background-color:rgba(255, 255, 255, 0.1);border-radius:10px}.sc::-webkit-scrollbar-thumb{background-color:var(--emw--color-white, #FFFFFF);border-radius:10px}";
|
|
8
8
|
const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
|
|
@@ -10,19 +10,13 @@ const CasinoTournamentDescStyle0 = casinoTournamentDescCss;
|
|
|
10
10
|
const CasinoTournamentDesc = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
13
|
+
this.desc = undefined;
|
|
14
|
+
this.descTitle = undefined;
|
|
16
15
|
this.useEvent = true;
|
|
17
|
-
/**
|
|
18
|
-
* Client custom styling via inline styles
|
|
19
|
-
*/
|
|
20
16
|
this.clientStyling = '';
|
|
21
|
-
/**
|
|
22
|
-
* Client custom styling via url
|
|
23
|
-
*/
|
|
24
17
|
this.clientStylingUrl = '';
|
|
25
18
|
this.limitStylingAppends = false;
|
|
19
|
+
this.stylingContainer = undefined;
|
|
26
20
|
this.collapsed = [];
|
|
27
21
|
this.tournamentDescriptions = [];
|
|
28
22
|
}
|
|
@@ -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-d20eebc4.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.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-tournament-desc.cjs.js', document.baseURI).href));
|
|
@@ -21,27 +21,19 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-tournament-desc';
|
|
24
|
-
const BUILD = /* casino-tournament-desc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false,
|
|
24
|
+
const BUILD = /* casino-tournament-desc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
// src/utils/constants.ts
|
|
36
|
-
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
37
|
-
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
|
-
|
|
39
|
-
// src/client/client-host-ref.ts
|
|
40
34
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
41
35
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
42
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
43
|
-
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
44
|
-
};
|
|
36
|
+
var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
45
37
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
38
|
const hostRef = {
|
|
47
39
|
$flags$: 0,
|
|
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
46
|
hostElement["s-p"] = [];
|
|
55
47
|
hostElement["s-rc"] = [];
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
return ref;
|
|
49
|
+
return hostRefs.set(hostElement, hostRef);
|
|
59
50
|
};
|
|
60
51
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
61
52
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
92
83
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
93
84
|
/* webpackMode: "lazy" */
|
|
94
85
|
`./${bundleId}.entry.js${""}`
|
|
95
|
-
)); }).then(
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
cmpModules.set(bundleId, importedModule);
|
|
99
|
-
}
|
|
100
|
-
return importedModule[exportName];
|
|
101
|
-
},
|
|
102
|
-
(e) => {
|
|
103
|
-
consoleError(e, hostRef.$hostElement$);
|
|
86
|
+
)); }).then((importedModule) => {
|
|
87
|
+
{
|
|
88
|
+
cmpModules.set(bundleId, importedModule);
|
|
104
89
|
}
|
|
105
|
-
|
|
90
|
+
return importedModule[exportName];
|
|
91
|
+
}, consoleError);
|
|
106
92
|
};
|
|
107
93
|
|
|
108
94
|
// src/client/client-style.ts
|
|
109
95
|
var styles = /* @__PURE__ */ new Map();
|
|
110
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
111
96
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
112
97
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
113
98
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -181,6 +166,14 @@ var flush = () => {
|
|
|
181
166
|
};
|
|
182
167
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
183
168
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
169
|
+
|
|
170
|
+
// src/utils/constants.ts
|
|
171
|
+
var EMPTY_OBJ = {};
|
|
172
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
173
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
174
|
+
|
|
175
|
+
// src/utils/helpers.ts
|
|
176
|
+
var isDef = (v) => v != null;
|
|
184
177
|
var isComplexType = (o) => {
|
|
185
178
|
o = typeof o;
|
|
186
179
|
return o === "object" || o === "function";
|
|
@@ -366,40 +359,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
366
359
|
}
|
|
367
360
|
if (!appliedStyles.has(scopeId2)) {
|
|
368
361
|
{
|
|
369
|
-
styleElm =
|
|
362
|
+
styleElm = doc.createElement("style");
|
|
370
363
|
styleElm.innerHTML = style;
|
|
371
364
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
372
365
|
if (nonce != null) {
|
|
373
366
|
styleElm.setAttribute("nonce", nonce);
|
|
374
367
|
}
|
|
375
|
-
|
|
376
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
377
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
378
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
379
|
-
styleContainerNode.insertBefore(
|
|
380
|
-
styleElm,
|
|
381
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
382
|
-
);
|
|
383
|
-
} else if ("host" in styleContainerNode) {
|
|
384
|
-
if (supportsConstructableStylesheets) {
|
|
385
|
-
const stylesheet = new CSSStyleSheet();
|
|
386
|
-
stylesheet.replaceSync(style);
|
|
387
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
388
|
-
} else {
|
|
389
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
390
|
-
if (existingStyleContainer) {
|
|
391
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
392
|
-
} else {
|
|
393
|
-
styleContainerNode.prepend(styleElm);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
} else {
|
|
397
|
-
styleContainerNode.append(styleElm);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
401
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
402
|
-
}
|
|
368
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
403
369
|
}
|
|
404
370
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
405
371
|
styleElm.innerHTML += SLOT_FB_CSS;
|
|
@@ -422,25 +388,23 @@ var attachStyles = (hostRef) => {
|
|
|
422
388
|
const scopeId2 = addStyle(
|
|
423
389
|
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
424
390
|
cmpMeta);
|
|
425
|
-
if (
|
|
391
|
+
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
426
392
|
elm["s-sc"] = scopeId2;
|
|
427
393
|
elm.classList.add(scopeId2 + "-h");
|
|
428
394
|
}
|
|
429
395
|
endAttachStyles();
|
|
430
396
|
};
|
|
431
397
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
432
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags
|
|
398
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
433
399
|
if (oldValue !== newValue) {
|
|
434
400
|
let isProp = isMemberInElement(elm, memberName);
|
|
435
401
|
let ln = memberName.toLowerCase();
|
|
436
402
|
if (memberName === "class") {
|
|
437
403
|
const classList = elm.classList;
|
|
438
404
|
const oldClasses = parseClassList(oldValue);
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
443
|
-
}
|
|
405
|
+
const newClasses = parseClassList(newValue);
|
|
406
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
407
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
444
408
|
} else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
445
409
|
if (memberName[2] === "-") {
|
|
446
410
|
memberName = memberName.slice(3);
|
|
@@ -468,13 +432,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
468
432
|
if (memberName === "list") {
|
|
469
433
|
isProp = false;
|
|
470
434
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
471
|
-
|
|
472
|
-
elm[memberName] = n;
|
|
473
|
-
} else {
|
|
474
|
-
elm.setAttribute(memberName, n);
|
|
475
|
-
}
|
|
435
|
+
elm[memberName] = n;
|
|
476
436
|
}
|
|
477
|
-
} else
|
|
437
|
+
} else {
|
|
478
438
|
elm[memberName] = newValue;
|
|
479
439
|
}
|
|
480
440
|
} catch (e) {
|
|
@@ -496,44 +456,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
496
456
|
}
|
|
497
457
|
};
|
|
498
458
|
var parseClassListRegex = /\s/;
|
|
499
|
-
var parseClassList = (value) =>
|
|
500
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
501
|
-
value = value.baseVal;
|
|
502
|
-
}
|
|
503
|
-
if (!value || typeof value !== "string") {
|
|
504
|
-
return [];
|
|
505
|
-
}
|
|
506
|
-
return value.split(parseClassListRegex);
|
|
507
|
-
};
|
|
459
|
+
var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
|
|
508
460
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
509
461
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
510
462
|
|
|
511
463
|
// src/runtime/vdom/update-element.ts
|
|
512
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2
|
|
464
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
513
465
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
514
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
515
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
466
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
|
|
467
|
+
const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
|
|
516
468
|
{
|
|
517
469
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
518
470
|
if (!(memberName in newVnodeAttrs)) {
|
|
519
|
-
setAccessor(
|
|
520
|
-
elm,
|
|
521
|
-
memberName,
|
|
522
|
-
oldVnodeAttrs[memberName],
|
|
523
|
-
void 0,
|
|
524
|
-
isSvgMode2,
|
|
525
|
-
newVnode.$flags$);
|
|
471
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
|
|
526
472
|
}
|
|
527
473
|
}
|
|
528
474
|
}
|
|
529
475
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
530
|
-
setAccessor(
|
|
531
|
-
elm,
|
|
532
|
-
memberName,
|
|
533
|
-
oldVnodeAttrs[memberName],
|
|
534
|
-
newVnodeAttrs[memberName],
|
|
535
|
-
isSvgMode2,
|
|
536
|
-
newVnode.$flags$);
|
|
476
|
+
setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
|
|
537
477
|
}
|
|
538
478
|
};
|
|
539
479
|
function sortedAttrNames(attrNames) {
|
|
@@ -545,10 +485,13 @@ function sortedAttrNames(attrNames) {
|
|
|
545
485
|
attrNames
|
|
546
486
|
);
|
|
547
487
|
}
|
|
488
|
+
|
|
489
|
+
// src/runtime/vdom/vdom-render.ts
|
|
490
|
+
var scopeId;
|
|
548
491
|
var hostTagName;
|
|
549
492
|
var useNativeShadowDom = false;
|
|
550
493
|
var isSvgMode = false;
|
|
551
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
494
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
552
495
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
553
496
|
let i2 = 0;
|
|
554
497
|
let elm;
|
|
@@ -569,6 +512,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
569
512
|
{
|
|
570
513
|
updateElement(null, newVNode2, isSvgMode);
|
|
571
514
|
}
|
|
515
|
+
if (isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
516
|
+
elm.classList.add(elm["s-si"] = scopeId);
|
|
517
|
+
}
|
|
572
518
|
if (newVNode2.$children$) {
|
|
573
519
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
574
520
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -704,9 +650,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
704
650
|
if (!isInitialRender) {
|
|
705
651
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
706
652
|
}
|
|
707
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
708
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
709
|
-
}
|
|
710
653
|
return true;
|
|
711
654
|
}
|
|
712
655
|
return false;
|
|
@@ -733,10 +676,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
733
676
|
elm.textContent = "";
|
|
734
677
|
}
|
|
735
678
|
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
736
|
-
} else if (
|
|
737
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
738
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
739
|
-
) {
|
|
679
|
+
} else if (oldChildren !== null) {
|
|
740
680
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
741
681
|
}
|
|
742
682
|
if (isSvgMode && tag === "svg") {
|
|
@@ -747,9 +687,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
747
687
|
}
|
|
748
688
|
};
|
|
749
689
|
var insertBefore = (parent, newNode, reference) => {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
}
|
|
690
|
+
const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
691
|
+
return inserted;
|
|
753
692
|
};
|
|
754
693
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
755
694
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -768,21 +707,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
768
707
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
769
708
|
hostRef.$vnode$ = rootVnode;
|
|
770
709
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
771
|
-
|
|
710
|
+
{
|
|
711
|
+
scopeId = hostElm["s-sc"];
|
|
712
|
+
}
|
|
713
|
+
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
772
714
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
773
715
|
};
|
|
774
716
|
|
|
775
717
|
// src/runtime/update-component.ts
|
|
776
718
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
777
719
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
778
|
-
|
|
779
|
-
new Promise(
|
|
780
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
781
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
782
|
-
r();
|
|
783
|
-
}
|
|
784
|
-
)
|
|
785
|
-
);
|
|
720
|
+
ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
|
|
786
721
|
}
|
|
787
722
|
};
|
|
788
723
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -811,12 +746,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
811
746
|
{
|
|
812
747
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
813
748
|
if (hostRef.$queuedListeners$) {
|
|
814
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event
|
|
749
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
815
750
|
hostRef.$queuedListeners$ = void 0;
|
|
816
751
|
}
|
|
817
752
|
}
|
|
818
753
|
{
|
|
819
|
-
maybePromise = safeCall(instance, "componentWillLoad"
|
|
754
|
+
maybePromise = safeCall(instance, "componentWillLoad");
|
|
820
755
|
}
|
|
821
756
|
}
|
|
822
757
|
endSchedule();
|
|
@@ -885,7 +820,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
885
820
|
const instance = hostRef.$lazyInstance$ ;
|
|
886
821
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
887
822
|
{
|
|
888
|
-
safeCall(instance, "componentDidRender"
|
|
823
|
+
safeCall(instance, "componentDidRender");
|
|
889
824
|
}
|
|
890
825
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
891
826
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
@@ -914,14 +849,17 @@ var postUpdateComponent = (hostRef) => {
|
|
|
914
849
|
}
|
|
915
850
|
};
|
|
916
851
|
var appDidLoad = (who) => {
|
|
852
|
+
{
|
|
853
|
+
addHydratedFlag(doc.documentElement);
|
|
854
|
+
}
|
|
917
855
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
918
856
|
};
|
|
919
|
-
var safeCall = (instance, method, arg
|
|
857
|
+
var safeCall = (instance, method, arg) => {
|
|
920
858
|
if (instance && instance[method]) {
|
|
921
859
|
try {
|
|
922
860
|
return instance[method](arg);
|
|
923
861
|
} catch (e) {
|
|
924
|
-
consoleError(e
|
|
862
|
+
consoleError(e);
|
|
925
863
|
}
|
|
926
864
|
}
|
|
927
865
|
return void 0;
|
|
@@ -964,68 +902,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
964
902
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
965
903
|
members.map(([memberName, [memberFlags]]) => {
|
|
966
904
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
967
|
-
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
968
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
969
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
970
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
971
|
-
Object.defineProperty(prototype, memberName, {
|
|
972
|
-
get() {
|
|
973
|
-
{
|
|
974
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
975
|
-
return getValue(this, memberName);
|
|
976
|
-
}
|
|
977
|
-
const ref = getHostRef(this);
|
|
978
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
979
|
-
if (!instance) return;
|
|
980
|
-
return instance[memberName];
|
|
981
|
-
}
|
|
982
|
-
},
|
|
983
|
-
configurable: true,
|
|
984
|
-
enumerable: true
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
905
|
Object.defineProperty(prototype, memberName, {
|
|
906
|
+
get() {
|
|
907
|
+
return getValue(this, memberName);
|
|
908
|
+
},
|
|
988
909
|
set(newValue) {
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
994
|
-
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
995
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
996
|
-
}
|
|
997
|
-
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
998
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
999
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1000
|
-
return;
|
|
1001
|
-
}
|
|
1002
|
-
{
|
|
1003
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
1004
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
1005
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
1006
|
-
ref.$onReadyPromise$.then(() => {
|
|
1007
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
1008
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
1009
|
-
}
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
return;
|
|
1013
|
-
}
|
|
1014
|
-
const setterSetVal = () => {
|
|
1015
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
1016
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1017
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
1018
|
-
}
|
|
1019
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1020
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1021
|
-
};
|
|
1022
|
-
if (ref.$lazyInstance$) {
|
|
1023
|
-
setterSetVal();
|
|
1024
|
-
} else {
|
|
1025
|
-
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
910
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
911
|
+
},
|
|
912
|
+
configurable: true,
|
|
913
|
+
enumerable: true
|
|
1029
914
|
});
|
|
1030
915
|
}
|
|
1031
916
|
});
|
|
@@ -1035,11 +920,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1035
920
|
plt.jmp(() => {
|
|
1036
921
|
var _a2;
|
|
1037
922
|
const propName = attrNameToPropName.get(attrName);
|
|
1038
|
-
if (this.hasOwnProperty(propName)
|
|
923
|
+
if (this.hasOwnProperty(propName)) {
|
|
1039
924
|
newValue = this[propName];
|
|
1040
925
|
delete this[propName];
|
|
1041
|
-
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" &&
|
|
1042
|
-
this[propName] == newValue) {
|
|
926
|
+
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
|
|
1043
927
|
return;
|
|
1044
928
|
} else if (propName == null) {
|
|
1045
929
|
const hostRef = getHostRef(this);
|
|
@@ -1055,11 +939,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1055
939
|
}
|
|
1056
940
|
return;
|
|
1057
941
|
}
|
|
1058
|
-
|
|
1059
|
-
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1060
|
-
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1061
|
-
this[propName] = newValue;
|
|
1062
|
-
}
|
|
942
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1063
943
|
});
|
|
1064
944
|
};
|
|
1065
945
|
Cstr.observedAttributes = Array.from(
|
|
@@ -1084,7 +964,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1084
964
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1085
965
|
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1086
966
|
if (bundleId) {
|
|
1087
|
-
const CstrImport = loadModule(cmpMeta
|
|
967
|
+
const CstrImport = loadModule(cmpMeta);
|
|
1088
968
|
if (CstrImport && "then" in CstrImport) {
|
|
1089
969
|
const endLoad = uniqueTime();
|
|
1090
970
|
Cstr = await CstrImport;
|
|
@@ -1106,7 +986,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1106
986
|
try {
|
|
1107
987
|
new Cstr(hostRef);
|
|
1108
988
|
} catch (e) {
|
|
1109
|
-
consoleError(e
|
|
989
|
+
consoleError(e);
|
|
1110
990
|
}
|
|
1111
991
|
{
|
|
1112
992
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1138,7 +1018,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1138
1018
|
schedule();
|
|
1139
1019
|
}
|
|
1140
1020
|
};
|
|
1141
|
-
var fireConnectedCallback = (instance
|
|
1021
|
+
var fireConnectedCallback = (instance) => {
|
|
1142
1022
|
};
|
|
1143
1023
|
|
|
1144
1024
|
// src/runtime/connected-callback.ts
|
|
@@ -1179,7 +1059,7 @@ var connectedCallback = (elm) => {
|
|
|
1179
1059
|
endConnected();
|
|
1180
1060
|
}
|
|
1181
1061
|
};
|
|
1182
|
-
var disconnectInstance = (instance
|
|
1062
|
+
var disconnectInstance = (instance) => {
|
|
1183
1063
|
};
|
|
1184
1064
|
var disconnectedCallback = async (elm) => {
|
|
1185
1065
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1194,12 +1074,6 @@ var disconnectedCallback = async (elm) => {
|
|
|
1194
1074
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1195
1075
|
}
|
|
1196
1076
|
}
|
|
1197
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1198
|
-
rootAppliedStyles.delete(elm);
|
|
1199
|
-
}
|
|
1200
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1201
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1202
|
-
}
|
|
1203
1077
|
};
|
|
1204
1078
|
|
|
1205
1079
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1277,17 +1151,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1277
1151
|
}
|
|
1278
1152
|
disconnectedCallback() {
|
|
1279
1153
|
plt.jmp(() => disconnectedCallback(this));
|
|
1280
|
-
plt.raf(() => {
|
|
1281
|
-
var _a3;
|
|
1282
|
-
const hostRef = getHostRef(this);
|
|
1283
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1284
|
-
if (i2 > -1) {
|
|
1285
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1286
|
-
}
|
|
1287
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1288
|
-
delete hostRef.$vnode$.$elm$;
|
|
1289
|
-
}
|
|
1290
|
-
});
|
|
1291
1154
|
}
|
|
1292
1155
|
componentOnReady() {
|
|
1293
1156
|
return getHostRef(this).$onReadyPromise$;
|
|
@@ -1351,7 +1214,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
1351
1214
|
}
|
|
1352
1215
|
}
|
|
1353
1216
|
} catch (e) {
|
|
1354
|
-
consoleError(e
|
|
1217
|
+
consoleError(e);
|
|
1355
1218
|
}
|
|
1356
1219
|
};
|
|
1357
1220
|
var getHostListenerTarget = (elm, flags) => {
|
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-d20eebc4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|