@everymatrix/casino-play-random-game 1.53.0 → 1.53.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-play-random-game/casino-play-random-game.esm.js +1 -1
- package/dist/casino-play-random-game/p-8502679e.js +2 -0
- package/dist/casino-play-random-game/p-c4e9eaed.entry.js +1 -0
- package/dist/cjs/casino-play-random-game.cjs.entry.js +39 -18
- package/dist/cjs/casino-play-random-game.cjs.js +2 -2
- package/dist/cjs/{index-4316ff18.js → index-bfb0323a.js} +165 -70
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/casino-play-random-game/casino-play-random-game.js +58 -17
- package/dist/esm/casino-play-random-game.entry.js +39 -18
- package/dist/esm/casino-play-random-game.js +3 -3
- package/dist/esm/{index-eac6b960.js → index-47910d1c.js} +165 -70
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-play-random-game/p-a29126ee.entry.js +0 -1
- package/dist/casino-play-random-game/p-abcaead5.js +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.d.ts +0 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-play-random-game/.stencil/packages/stencil/casino-play-random-game/stencil.config.dev.d.ts +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as n,b as i}from"./p-8502679e.js";export{s as setNonce}from"./p-8502679e.js";import{g as a}from"./p-e1255160.js";(()=>{const i=import.meta.url,a={};return""!==i&&(a.resourcesUrl=new URL(".",i).href),n(a)})().then((async n=>(await a(),i([["p-c4e9eaed",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],limitStylingAppends:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"]}]]]],n))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>{t.set(n.t=e,n)},l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],v=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.o?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(m),$(y),(p=m.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=(e,t)=>null==e||g(e)?e:1&t?e+"":e,L=e=>n(e).$hostElement$,N=new WeakMap,R=e=>"sc-"+e.$,T=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=W(n);let s=W(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]!==o&&(e[t]=o);else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(u,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(F);t=t.replace(V,""),n&&f.rel(e,t,n,l),o&&f.ael(e,t,o,l)}}},U=/\s/,W=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(U):[]),F="Capture",V=RegExp(F+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||T(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))T(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else if(l=o.v=a.createElement(o.m),q(null,o,_),o.h)for(i=0;i<o.h.length;++i)s=z(e,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},B=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=z(null,n,l),i&&(o[l].v=i,X(r,i,t)))},I=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.i;null===i?(q(e,t,_),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(J(h,m,l))K(h,m,l),h=t[++r],m=o[++c];else if(J(d,y,l))K(d,y,l),d=t[--f],y=o[--p];else if(J(h,y,l))K(h,y,l),X(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(J(d,m,l))K(d,m,l),X(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=z(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=z(t&&t[c],n,c),m=o[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?B(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&I(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),B(o,null,t,s,0,s.length-1)):!n&&null!==l&&I(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},Z=(e,t)=>{if(e.o|=16,!(4&e.o))return Y(e,e.j),S((()=>ee(e,t)));e.o|=512},ee=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.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&&(l=re(o,"componentWillLoad",void 0,n)),te(l,(()=>oe(e,o,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,oe=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=R(t),l=r.get(o);if(e=11===e.nodeType?e:a,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.O)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);le(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},le=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,ce(t),re(n,"componentDidLoad",void 0,t),e.P(t),o||ie()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>Z(e,!1))),e.o&=-517},ie=()=>{ce(a.documentElement),w((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-play-random-game"}});return e.dispatchEvent(t),t})(u)))},re=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e,o)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.A.get(t),u=i.o,a=i.t;if(o=H(o,l.D[t][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(t,o),a)){if(l.H&&128&u){const e=l.H[t];e&&e.map((e=>{try{a[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&Z(i,!1)}},ae=(e,t,o)=>{var l,s;const i=e.prototype;if(t.D||t.H||e.watchers){e.watchers&&!t.H&&(t.H=e.watchers);const r=Object.entries(null!=(l=t.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(t.D[e][0]|=2048),r&&(t.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&t.D[e][0]))return((e,t)=>n(this).A.get(t))(0,e);const o=n(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=n(this);if(r){const n=32&l?this[e]:i.$hostElement$[e];return void 0===n&&i.A.get(e)?s=i.A.get(e):!i.A.get(e)&&n&&i.A.set(e,n),r.call(this,H(s,l)),void ue(this,e,s=32&l?this[e]:i.$hostElement$[e],t)}{if(!(1&o&&4096&t.D[e][0]))return ue(this,e,s,t),void(1&o&&!i.t&&i.L.then((()=>{4096&t.D[e][0]&&i.t[e]!==i.A.get(e)&&(i.t[e]=s)})));const n=()=>{const n=i.t[e];!i.A.get(e)&&n&&i.A.set(e,n),i.t[e]=H(s,l),ue(this,e,i.t[e],t)};i.t?n():i.L.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){f.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var l;const s=n[1]||e;return o.set(s,e),512&n[0]&&(null==(l=t.M)||l.push([e,s])),s}))]))}}return e},fe=(e,t)=>{re(e,"connectedCallback",void 0,t)},he=(e,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],$:o[1],D:o[2],N:o[3]};4&c.o&&(g=!0),c.D=o[2],c.M=[],c.H=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.L=new Promise((e=>o.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.o)){const t=n(e),o=t.k,l=()=>{};if(1&t.o)(null==t?void 0:t.t)?fe(t.t,e):(null==t?void 0:t.L)&&t.L.then((()=>fe(t.t,e)));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){t.o|=32;{const l=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.R;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((e=>(i.set(o,e),e[n])),(e=>{s(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(l&&"then"in l){const e=()=>{};o=await l,e()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${t.T}" was not found`);o.isProxied||(n.H=o.watchers,ae(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){s(t,e)}t.o&=-9,t.o|=128,r(),fe(t.t,e)}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=R(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.j,c=()=>Z(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async e=>{if(!(1&f.o)){const t=n(e);(null==t?void 0:t.t)||(null==t?void 0:t.L)&&t.L.then((()=>{}))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),f.raf((()=>{var e;const t=n(this);(null==(e=null==t?void 0:t.C)?void 0:e.v)instanceof Node&&!t.C.v.isConnected&&delete t.C.v}))}componentOnReady(){return n(this).L}};c.R=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(l=f.O)?l:j(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},de=e=>f.O=e;export{he as b,L as g,P as h,h as p,o as r,de as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as a,g as e}from"./p-8502679e.js";const t={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},i=n=>new Promise((a=>{fetch(n).then((n=>n.json())).then((n=>{Object.keys(n).forEach((a=>{t[a]||(t[a]={});for(let e in n[a])t[a][e]=n[a][e]})),a(!0)}))})),o=(n,a)=>t[void 0!==a&&a in t?a:"en"][n],r=class{constructor(a){n(this,a),this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.limitStylingAppends=!1,this.isLoading=!0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1,this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a,e=n.length;for(;0!==e;)a=Math.floor(Math.random()*e),e--,[n[e],n[a]]=[n[a],n[e]];return n},this.setClientStyling=()=>{let n=document.createElement("style");n.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(n)},this.setClientStylingURL=()=>{let n=new URL(this.clientStylingUrl),a=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{a.innerHTML=n,this.clientStyling=n,setTimeout((()=>{this.host.shadowRoot.prepend(a)}),1)}))}}watchEndpoint(n,a){n&&n!=a&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,i(this.translationUrl).then((()=>{this.isLoading=!1}))}handleIsIconVisible(){this.iconVisibility="true"===this.iconVisible}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&i(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",(()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise(((a,e)=>{this.isLoading=!0,fetch(n.href).then((n=>n.json())).then((n=>{this.gamesToShow=this.setUpGames(null==n?void 0:n.items),a(!0)})).catch((n=>{console.error(n),this.hasErrors=!0,e(n)})).finally((()=>{this.isLoading=!1}))}))}setUpGames(n){const a=this.shuffle(n).slice(0,40);return a.concat(a)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),"function"==typeof gtag&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),"function"==typeof gtag&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility="true"===this.iconVisibleOnAnim,this.animationStarted=!0,this.animationDone=!1,this.animation&&this.animation.cancel(),this.selectedGameEl&&(this.selectedGameEl.classList.remove("TheRandomGame"),this.selectedGame=null,this.selectedGameIndex=null),this.selectRandomGame();const n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),a=parseInt(n,10),e=this.selectedGameEl.offsetWidth;this.animation=this.gameContainer.animate([{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${(e+a)*this.selectedGameIndex+e/2-this.gameContainer.offsetWidth/2}px)`,scale:1}],{duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"}),this.animation.onfinish=()=>{this.animationDone=!0,this.selectedGameEl.classList.add("TheRandomGame"),this.selectedGame=this.gamesToShow[this.selectedGameIndex]}}playGame(){this.selectedGame&&(window.postMessage({type:"PlayRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),"function"==typeof gtag&>ag("event","OpenRandomGame",{context:"CasinoPlayRandomGame"}))}showGameInfo(){window.postMessage({type:"InfoRandomGame",gameId:this.selectedGame.id,launchUrl:this.selectedGame.launchUrl,gameName:this.selectedGame.name,subVendor:this.selectedGame.subVendor},window.location.href),"function"==typeof gtag&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return a("div",{class:"RandomButtonsWrapper"},a("div",{class:"RandomGameDetails"},a("span",{class:"RandomGameTitle"},this.selectedGame.name),a("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),a("div",{class:"RandomButtons"},a("button",{class:"RandomButton On",onClick:()=>this.respin()},o("spinRandomGame",this.language)),!this.launchByGameCard&&a("button",{class:"RandomButton On",onClick:()=>this.playGame()},o("playNowRandomGame",this.language))))}render(){return this.hasErrors?a("div",{class:"RandomGameError"},a("div",{class:"Title"},o("error",this.language))):this.isLoading?a("div",{class:"RandomGameLoading"},a("div",{class:"Title"},o("randomGameLoading",this.language))):this.isLoading?void 0:a("div",{class:"RandomGameWrapper"},a("div",{class:"GameContainerGradient"}),a("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map(((n,e)=>a("div",{class:"RandomGameCard",key:e,onClick:"true"===this.launchByGameCard?()=>this.playGame():null},a("div",{class:"RandomGameVendor"},n.vendor.name),a("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails())))),a("div",{class:"ButtonWrapper "+(this.animationDone?"HideAnimation":"")},a("div",{class:"ButtonContainer"},this.iconVisibility&&a("div",{class:"ButtonIcon "+(this.animationStarted?"Flip":"")},a("div",{class:"QustionMark"},"?"),a("div",{class:"HexagonMarkShadow"}),a("div",{class:"HexagonMark"})),!this.animationStarted&&a("div",{class:"RandomButton "+(this.animationStarted?"HideAnimation":""),onClick:()=>this.playRandomGame()},o("playRandomGame",this.language)))))}get host(){return e(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"]}}};r.style=":host {\n display: block;\n font-family: inherit;\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n:host * {\n -webkit-transform: translate3d(0, 0, 0);\n transform: translate3d(0, 0, 0);\n}\n\n.RandomGameWrapper {\n width: 100%;\n height: var(--emw--size-4x-medium, 700px);\n background: transparent;\n position: relative;\n overflow: hidden;\n}\n\n.GameContainerGradient {\n position: absolute;\n top: 10%;\n left: -5px;\n width: 100vw;\n height: 80%;\n background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.5) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.5) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);\n pointer-events: none;\n z-index: 1;\n filter: blur(10px);\n}\n\n.GamesContainer {\n display: flex;\n height: var(--emw--size-4x-medium, 600px);\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-items: center;\n align-content: flex-start;\n gap: var(--emw--spacing-large, 20px);\n}\n\n.RandomGameCard {\n position: relative;\n width: var(--emw--size-3x-medium, 300px);\n height: var(--emw--size-4x-medium, 420px);\n border-radius: var(--emw--border-radius-large, 20px);\n top: 8%;\n filter: blur(5px);\n}\n.RandomGameCard .RandomGameVendor {\n position: absolute;\n font-size: var(--emw--font-size-x-small, 12px);\n bottom: var(--emw--spacing-small-minus, 10px);\n left: var(--emw--spacing-small-minus, 10px);\n color: var(--emw--color-typography, #FFFFFF);\n}\n\n.TheRandomGame {\n animation-name: ZoomFadeIn;\n animation-duration: 0.5s;\n animation-fill-mode: forwards;\n -webkit-animation-name: ZoomFadeIn;\n -webkit-animation-duration: 0.5s;\n -webkit-animation-fill-mode: forwards;\n opacity: 1;\n cursor: pointer;\n filter: blur(0);\n}\n\n.RandomGameImage {\n width: inherit;\n height: inherit;\n object-fit: cover;\n border-radius: var(--emw--border-radius-large, 20px);\n}\n\n.RandomGameDetails {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n color: var(--emw--color-typography, #FFFFFF);\n font-size: var(--emw--font-size-small, 14px);\n width: 100%;\n}\n.RandomGameDetails .RandomGameTitle {\n line-height: 18px;\n}\n.RandomGameDetails .RandomGameInfo {\n border-radius: 50%;\n width: var(--emw--spacing-medium, 16px);\n height: var(--emw--spacing-medium, 16px);\n font-size: var(--emw--font-size-x-small, 12px);\n font-weight: var(--emw--font-weight-normal, 400);\n border: solid 1px var(--emw--color-typography, #FFFFFF);\n text-align: center;\n margin: var(--emw--spacing-2x-small, 4px) 0;\n line-height: 14px;\n cursor: pointer;\n}\n.RandomGameDetails .RandomGamePlay {\n background: var(--emw--color-primary, #4bd004);\n color: var(--emw--color-typography, #FFFFFF);\n border: none;\n border-radius: var(--emw--border-radius-medium, 5px);\n width: 200px;\n height: 40px;\n font-size: var(--emw--font-size-small, 14px);\n cursor: pointer;\n}\n\n.ButtonWrapper {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n z-index: 20;\n}\n\n.ButtonContainer {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 10px;\n width: 100%;\n position: relative;\n}\n\n.ButtonIcon {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: var(--emw--spacing-2x-small, 5px);\n}\n\n.QustionMark {\n position: absolute;\n font-family: sans-serif;\n font-size: 120px;\n font-weight: 900;\n color: color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 10%);\n text-shadow: 0px 12px 0px color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 50%);\n left: 50%;\n top: -20%;\n transform: translateX(-50%);\n z-index: 10;\n}\n\n.HexagonMarkShadow {\n width: 100px;\n height: 115px;\n display: flex;\n justify-content: center;\n align-items: center;\n background: color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 70%);\n clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);\n}\n\n.HexagonMark {\n position: absolute;\n width: var(--emw--size-medium, 90px);\n height: 105px;\n background: linear-gradient(to bottom, color-mix(in srgb, var(--emw--casino-color-secondary, var(--emw--color-secondary, #eeac4a)), black 20%) 0%, var(--emw--categories-color-secondary, var(--emw--color-secondary, #eeac4a)) 100%);\n clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0% 70%, 0% 30%);\n}\n\n.RandomButtons {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n gap: var(--emw--spacing-2x-small, 5px);\n width: 100%;\n position: relative;\n z-index: 10;\n}\n\n.RandomButton {\n font-size: var(--emw--font-size-large, 20px);\n text-transform: uppercase;\n width: max-content;\n border-radius: var(--emw--button-border-radius, 50px);\n padding: var(--emw--spacing-large, 20px) var(--emw--spacing-2x-large, 40px);\n border: solid 3px var(--emw--button-border-color, #063B17);\n color: var(--emw--button-text-color, #FFFFFF);\n opacity: 1;\n animation: ButtonEffect 3s linear infinite;\n background-image: linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E), black 30%), var(--emw--color-primary, #22B04E));\n background-size: 300% 100%;\n cursor: pointer;\n position: relative;\n z-index: 10;\n}\n.RandomButton:hover {\n opacity: 0.8;\n}\n\n.HideAnimation {\n filter: blur(5px);\n animation: AnimateButton 0.2s forwards;\n}\n\n.Flip {\n animation-name: Flip, Blur;\n animation-duration: 0.75s, 3s;\n animation-iteration-count: infinite, 1;\n -webkit-animation-name: Flip, Blur;\n -webkit-animation-duration: 0.75s, 3s;\n -webkit-animation-iteration-count: infinite, 1;\n}\n\n@keyframes ButtonEffect {\n 0% {\n background-position: 0% 50%;\n }\n 33% {\n background-position: 100% 50%;\n }\n 66% {\n background-position: 200% 50%;\n }\n 100% {\n background-position: 300% 50%;\n }\n}\n@keyframes ZoomFadeIn {\n 0% {\n transform: scale(0.2) translateY(0);\n filter: blur(5px);\n opacity: 0.3;\n }\n 50% {\n transform: scale(1.1) translateY(-30px);\n filter: blur(2px);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1) translateY(-30px);\n filter: blur(0px);\n opacity: 1;\n }\n}\n@keyframes AnimateButton {\n 0% {\n opacity: 0.7;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 0;\n display: none;\n }\n}\n@keyframes Flip {\n 0% {\n transform: rotateY(0deg);\n }\n 50% {\n transform: rotateY(180deg);\n }\n 100% {\n transform: rotateY(360deg);\n }\n}\n@keyframes Blur {\n 0% {\n filter: blur(0);\n }\n 50% {\n filter: blur(1px);\n }\n 100% {\n filter: blur(3px);\n }\n}\n@container (max-width: 475px) {\n .GamesContainer {\n height: inherit;\n gap: var(--emw--spacing-2x-small, 5px);\n }\n .RandomGameWrapper {\n width: 100%;\n height: 300px;\n overflow: hidden;\n background: transparent;\n position: relative;\n }\n .GameContainerGradient {\n position: absolute;\n top: 10%;\n left: -5px;\n width: 100vw;\n height: 80%;\n background: linear-gradient(90deg, var(--emw--color-background, rgba(0, 0, 0, 0.9)) 0%, rgba(14, 21, 17, 0.2) 25%, rgba(14, 21, 17, 0) 50%, rgba(14, 21, 16, 0.2) 75%, var(--emw--color-background, rgba(10, 0, 0, 0.9)) 100%);\n pointer-events: none;\n z-index: 1;\n filter: blur(5px);\n }\n .RandomGameCard {\n width: 100px;\n height: 150px;\n top: 0%;\n border-radius: var(--emw--border-radius-medium, 4px);\n filter: blur(5px);\n }\n .RandomGameImage {\n width: 102px;\n height: inherit;\n top: 0%;\n }\n .RandomGameDetails {\n font-size: 14px;\n width: 100%;\n }\n .RandomGameDetails .RandomGameTitle {\n line-height: 18px;\n width: 75%;\n }\n .RandomGameDetails .RandomGameInfo {\n border-radius: 50%;\n width: 16px;\n height: 16px;\n font-size: var(--emw--font-size-x-small, 12px);\n line-height: 14px;\n }\n .RandomGameDetails .RandomGamePlay {\n background: var(--emw--color-primary, #52d004);\n color: var(--emw--color-typography, #FFFFFF);\n border: none;\n border-radius: 5px;\n width: 200px;\n height: 40px;\n font-size: 14px;\n cursor: pointer;\n }\n .RandomGameCard .RandomGameVendor {\n font-size: var(--emw--font-size-x-small, 12px);\n bottom: 5px;\n right: 5px;\n }\n .RandomButtons {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n width: 100%;\n }\n .RandomButton {\n font-size: var(--emw--font-size-x-small, 12px);\n padding: 10px 15px;\n border: solid 1px var(--emw--button-border-color, #063B17);\n }\n .QustionMark {\n font-size: 100px;\n font-weight: 700;\n }\n .HexagonMarkShadow {\n width: 80px;\n height: 95px;\n }\n .HexagonMark {\n width: 70px;\n height: 85px;\n }\n}";export{r as casino_play_random_game}
|
|
@@ -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-bfb0323a.js');
|
|
6
6
|
|
|
7
7
|
const getDevice = () => {
|
|
8
8
|
let userAgent = window.navigator.userAgent;
|
|
@@ -91,6 +91,44 @@ const CasinoPlayRandomGameStyle0 = casinoPlayRandomGameCss;
|
|
|
91
91
|
const CasinoPlayRandomGame = class {
|
|
92
92
|
constructor(hostRef) {
|
|
93
93
|
index.registerInstance(this, hostRef);
|
|
94
|
+
/**
|
|
95
|
+
* Language of the widget
|
|
96
|
+
*/
|
|
97
|
+
this.language = 'en';
|
|
98
|
+
/**
|
|
99
|
+
* Configure a specific category for randomising the games.
|
|
100
|
+
*/
|
|
101
|
+
this.specificCategory = '';
|
|
102
|
+
/**
|
|
103
|
+
* Icon visible initially
|
|
104
|
+
*/
|
|
105
|
+
this.iconVisible = '';
|
|
106
|
+
/**
|
|
107
|
+
* Icon visible while rolling
|
|
108
|
+
*/
|
|
109
|
+
this.iconVisibleOnAnim = '';
|
|
110
|
+
/**
|
|
111
|
+
* Open event on the game card.
|
|
112
|
+
*/
|
|
113
|
+
this.launchByGameCard = '';
|
|
114
|
+
/**
|
|
115
|
+
* Client custom styling via string
|
|
116
|
+
*/
|
|
117
|
+
this.clientStyling = '';
|
|
118
|
+
/**
|
|
119
|
+
* Client custom styling via url
|
|
120
|
+
*/
|
|
121
|
+
this.clientStylingUrl = '';
|
|
122
|
+
/**
|
|
123
|
+
* Translations via URL
|
|
124
|
+
*/
|
|
125
|
+
this.translationUrl = '';
|
|
126
|
+
this.hasErrors = false;
|
|
127
|
+
this.limitStylingAppends = false;
|
|
128
|
+
this.isLoading = true;
|
|
129
|
+
this.selectedGame = null;
|
|
130
|
+
this.animationDone = false;
|
|
131
|
+
this.animationStarted = false;
|
|
94
132
|
this.animation = null;
|
|
95
133
|
this.selectedGameIndex = null;
|
|
96
134
|
this.selectedGameEl = null;
|
|
@@ -121,23 +159,6 @@ const CasinoPlayRandomGame = class {
|
|
|
121
159
|
setTimeout(() => { this.host.shadowRoot.prepend(cssFile); }, 1);
|
|
122
160
|
});
|
|
123
161
|
};
|
|
124
|
-
this.endpoint = undefined;
|
|
125
|
-
this.datasource = undefined;
|
|
126
|
-
this.language = 'en';
|
|
127
|
-
this.specificCategory = '';
|
|
128
|
-
this.iconVisible = '';
|
|
129
|
-
this.iconVisibleOnAnim = '';
|
|
130
|
-
this.launchByGameCard = '';
|
|
131
|
-
this.clientStyling = '';
|
|
132
|
-
this.clientStylingUrl = '';
|
|
133
|
-
this.translationUrl = '';
|
|
134
|
-
this.hasErrors = false;
|
|
135
|
-
this.limitStylingAppends = false;
|
|
136
|
-
this.isLoading = true;
|
|
137
|
-
this.gamesToShow = undefined;
|
|
138
|
-
this.selectedGame = null;
|
|
139
|
-
this.animationDone = false;
|
|
140
|
-
this.animationStarted = false;
|
|
141
162
|
}
|
|
142
163
|
watchEndpoint(newValue, oldValue) {
|
|
143
164
|
if (newValue && newValue != oldValue && this.endpoint) {
|
|
@@ -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-bfb0323a.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-play-random-game.cjs.js', document.baseURI).href));
|
|
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-play-random-game';
|
|
24
|
-
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
24
|
+
const BUILD = /* casino-play-random-game */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, 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: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
31
31
|
for (var name in all)
|
|
32
32
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
33
33
|
};
|
|
34
|
+
|
|
35
|
+
// src/client/client-host-ref.ts
|
|
34
36
|
var hostRefs = /* @__PURE__ */ new WeakMap();
|
|
35
37
|
var getHostRef = (ref) => hostRefs.get(ref);
|
|
36
|
-
var registerInstance = (lazyInstance, hostRef) =>
|
|
38
|
+
var registerInstance = (lazyInstance, hostRef) => {
|
|
39
|
+
hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
|
|
40
|
+
};
|
|
37
41
|
var registerHost = (hostElement, cmpMeta) => {
|
|
38
42
|
const hostRef = {
|
|
39
43
|
$flags$: 0,
|
|
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
46
50
|
hostElement["s-p"] = [];
|
|
47
51
|
hostElement["s-rc"] = [];
|
|
48
52
|
}
|
|
49
|
-
|
|
53
|
+
const ref = hostRefs.set(hostElement, hostRef);
|
|
54
|
+
return ref;
|
|
50
55
|
};
|
|
51
56
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
52
57
|
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
83
88
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
84
89
|
/* webpackMode: "lazy" */
|
|
85
90
|
`./${bundleId}.entry.js${""}`
|
|
86
|
-
)); }).then(
|
|
87
|
-
{
|
|
88
|
-
|
|
91
|
+
)); }).then(
|
|
92
|
+
(importedModule) => {
|
|
93
|
+
{
|
|
94
|
+
cmpModules.set(bundleId, importedModule);
|
|
95
|
+
}
|
|
96
|
+
return importedModule[exportName];
|
|
97
|
+
},
|
|
98
|
+
(e) => {
|
|
99
|
+
consoleError(e, hostRef.$hostElement$);
|
|
89
100
|
}
|
|
90
|
-
|
|
91
|
-
}, consoleError);
|
|
101
|
+
);
|
|
92
102
|
};
|
|
93
103
|
|
|
94
104
|
// src/client/client-style.ts
|
|
95
105
|
var styles = /* @__PURE__ */ new Map();
|
|
106
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
96
107
|
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
97
108
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
98
109
|
var win = typeof window !== "undefined" ? window : {};
|
|
@@ -150,12 +161,6 @@ var flush = () => {
|
|
|
150
161
|
};
|
|
151
162
|
var nextTick = (cb) => promiseResolve().then(cb);
|
|
152
163
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
153
|
-
|
|
154
|
-
// src/utils/constants.ts
|
|
155
|
-
var EMPTY_OBJ = {};
|
|
156
|
-
|
|
157
|
-
// src/utils/helpers.ts
|
|
158
|
-
var isDef = (v) => v != null;
|
|
159
164
|
var isComplexType = (o) => {
|
|
160
165
|
o = typeof o;
|
|
161
166
|
return o === "object" || o === "function";
|
|
@@ -338,7 +343,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
338
343
|
}
|
|
339
344
|
if (!appliedStyles.has(scopeId2)) {
|
|
340
345
|
{
|
|
341
|
-
styleElm = doc.createElement("style");
|
|
346
|
+
styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
|
|
342
347
|
styleElm.innerHTML = style;
|
|
343
348
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
344
349
|
if (nonce != null) {
|
|
@@ -348,7 +353,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
348
353
|
if (styleContainerNode.nodeName === "HEAD") {
|
|
349
354
|
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
350
355
|
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
351
|
-
styleContainerNode.insertBefore(
|
|
356
|
+
styleContainerNode.insertBefore(
|
|
357
|
+
styleElm,
|
|
358
|
+
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
359
|
+
);
|
|
352
360
|
} else if ("host" in styleContainerNode) {
|
|
353
361
|
if (supportsConstructableStylesheets) {
|
|
354
362
|
const stylesheet = new CSSStyleSheet();
|
|
@@ -398,16 +406,18 @@ var attachStyles = (hostRef) => {
|
|
|
398
406
|
endAttachStyles();
|
|
399
407
|
};
|
|
400
408
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
401
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
409
|
+
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
402
410
|
if (oldValue !== newValue) {
|
|
403
411
|
let isProp = isMemberInElement(elm, memberName);
|
|
404
412
|
let ln = memberName.toLowerCase();
|
|
405
413
|
if (memberName === "class") {
|
|
406
414
|
const classList = elm.classList;
|
|
407
415
|
const oldClasses = parseClassList(oldValue);
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
416
|
+
let newClasses = parseClassList(newValue);
|
|
417
|
+
{
|
|
418
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
419
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
420
|
+
}
|
|
411
421
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
412
422
|
if (newValue) {
|
|
413
423
|
newValue(elm);
|
|
@@ -445,7 +455,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
445
455
|
elm.setAttribute(memberName, n);
|
|
446
456
|
}
|
|
447
457
|
}
|
|
448
|
-
} else {
|
|
458
|
+
} else if (elm[memberName] !== newValue) {
|
|
449
459
|
elm[memberName] = newValue;
|
|
450
460
|
}
|
|
451
461
|
} catch (e) {
|
|
@@ -467,24 +477,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
467
477
|
}
|
|
468
478
|
};
|
|
469
479
|
var parseClassListRegex = /\s/;
|
|
470
|
-
var parseClassList = (value) =>
|
|
480
|
+
var parseClassList = (value) => {
|
|
481
|
+
if (typeof value === "object" && value && "baseVal" in value) {
|
|
482
|
+
value = value.baseVal;
|
|
483
|
+
}
|
|
484
|
+
if (!value || typeof value !== "string") {
|
|
485
|
+
return [];
|
|
486
|
+
}
|
|
487
|
+
return value.split(parseClassListRegex);
|
|
488
|
+
};
|
|
471
489
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
472
490
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
473
491
|
|
|
474
492
|
// src/runtime/vdom/update-element.ts
|
|
475
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2) => {
|
|
493
|
+
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
476
494
|
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
477
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ ||
|
|
478
|
-
const newVnodeAttrs = newVnode.$attrs$ ||
|
|
495
|
+
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
496
|
+
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
479
497
|
{
|
|
480
498
|
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
481
499
|
if (!(memberName in newVnodeAttrs)) {
|
|
482
|
-
setAccessor(
|
|
500
|
+
setAccessor(
|
|
501
|
+
elm,
|
|
502
|
+
memberName,
|
|
503
|
+
oldVnodeAttrs[memberName],
|
|
504
|
+
void 0,
|
|
505
|
+
isSvgMode2,
|
|
506
|
+
newVnode.$flags$);
|
|
483
507
|
}
|
|
484
508
|
}
|
|
485
509
|
}
|
|
486
510
|
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
487
|
-
setAccessor(
|
|
511
|
+
setAccessor(
|
|
512
|
+
elm,
|
|
513
|
+
memberName,
|
|
514
|
+
oldVnodeAttrs[memberName],
|
|
515
|
+
newVnodeAttrs[memberName],
|
|
516
|
+
isSvgMode2,
|
|
517
|
+
newVnode.$flags$);
|
|
488
518
|
}
|
|
489
519
|
};
|
|
490
520
|
function sortedAttrNames(attrNames) {
|
|
@@ -496,13 +526,10 @@ function sortedAttrNames(attrNames) {
|
|
|
496
526
|
attrNames
|
|
497
527
|
);
|
|
498
528
|
}
|
|
499
|
-
|
|
500
|
-
// src/runtime/vdom/vdom-render.ts
|
|
501
|
-
var scopeId;
|
|
502
529
|
var hostTagName;
|
|
503
530
|
var useNativeShadowDom = false;
|
|
504
531
|
var isSvgMode = false;
|
|
505
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex
|
|
532
|
+
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
506
533
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
507
534
|
let i2 = 0;
|
|
508
535
|
let elm;
|
|
@@ -516,11 +543,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
516
543
|
{
|
|
517
544
|
updateElement(null, newVNode2, isSvgMode);
|
|
518
545
|
}
|
|
519
|
-
const rootNode = elm.getRootNode();
|
|
520
|
-
const isElementWithinShadowRoot = !rootNode.querySelector("body");
|
|
521
|
-
if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
|
|
522
|
-
elm.classList.add(elm["s-si"] = scopeId);
|
|
523
|
-
}
|
|
524
546
|
if (newVNode2.$children$) {
|
|
525
547
|
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
526
548
|
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
@@ -650,6 +672,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
650
672
|
if (!isInitialRender) {
|
|
651
673
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
652
674
|
}
|
|
675
|
+
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
676
|
+
leftVNode.$key$ = rightVNode.$key$;
|
|
677
|
+
}
|
|
653
678
|
return true;
|
|
654
679
|
}
|
|
655
680
|
return false;
|
|
@@ -689,8 +714,9 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
689
714
|
}
|
|
690
715
|
};
|
|
691
716
|
var insertBefore = (parent, newNode, reference) => {
|
|
692
|
-
|
|
693
|
-
|
|
717
|
+
{
|
|
718
|
+
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
719
|
+
}
|
|
694
720
|
};
|
|
695
721
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
696
722
|
const hostElm = hostRef.$hostElement$;
|
|
@@ -715,9 +741,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
715
741
|
rootVnode.$flags$ |= 4 /* isHost */;
|
|
716
742
|
hostRef.$vnode$ = rootVnode;
|
|
717
743
|
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
718
|
-
{
|
|
719
|
-
scopeId = hostElm["s-sc"];
|
|
720
|
-
}
|
|
721
744
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
722
745
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
723
746
|
};
|
|
@@ -725,7 +748,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
725
748
|
// src/runtime/update-component.ts
|
|
726
749
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
727
750
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
728
|
-
ancestorComponent["s-p"].push(
|
|
751
|
+
const index = ancestorComponent["s-p"].push(
|
|
752
|
+
new Promise(
|
|
753
|
+
(r) => hostRef.$onRenderResolve$ = () => {
|
|
754
|
+
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
755
|
+
r();
|
|
756
|
+
}
|
|
757
|
+
)
|
|
758
|
+
);
|
|
729
759
|
}
|
|
730
760
|
};
|
|
731
761
|
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
@@ -752,7 +782,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
752
782
|
let maybePromise;
|
|
753
783
|
if (isInitialLoad) {
|
|
754
784
|
{
|
|
755
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
785
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
756
786
|
}
|
|
757
787
|
}
|
|
758
788
|
endSchedule();
|
|
@@ -826,7 +856,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
826
856
|
addHydratedFlag(elm);
|
|
827
857
|
}
|
|
828
858
|
{
|
|
829
|
-
safeCall(instance, "componentDidLoad");
|
|
859
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
830
860
|
}
|
|
831
861
|
endPostUpdate();
|
|
832
862
|
{
|
|
@@ -855,12 +885,12 @@ var appDidLoad = (who) => {
|
|
|
855
885
|
}
|
|
856
886
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
857
887
|
};
|
|
858
|
-
var safeCall = (instance, method, arg) => {
|
|
888
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
859
889
|
if (instance && instance[method]) {
|
|
860
890
|
try {
|
|
861
891
|
return instance[method](arg);
|
|
862
892
|
} catch (e) {
|
|
863
|
-
consoleError(e);
|
|
893
|
+
consoleError(e, elm);
|
|
864
894
|
}
|
|
865
895
|
}
|
|
866
896
|
return void 0;
|
|
@@ -919,15 +949,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
919
949
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
920
950
|
members.map(([memberName, [memberFlags]]) => {
|
|
921
951
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
952
|
+
const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
|
|
953
|
+
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
954
|
+
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
955
|
+
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
956
|
+
Object.defineProperty(prototype, memberName, {
|
|
957
|
+
get() {
|
|
958
|
+
{
|
|
959
|
+
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
960
|
+
return getValue(this, memberName);
|
|
961
|
+
}
|
|
962
|
+
const ref = getHostRef(this);
|
|
963
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
964
|
+
if (!instance) return;
|
|
965
|
+
return instance[memberName];
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
configurable: true,
|
|
969
|
+
enumerable: true
|
|
970
|
+
});
|
|
971
|
+
}
|
|
922
972
|
Object.defineProperty(prototype, memberName, {
|
|
923
|
-
get() {
|
|
924
|
-
return getValue(this, memberName);
|
|
925
|
-
},
|
|
926
973
|
set(newValue) {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
974
|
+
const ref = getHostRef(this);
|
|
975
|
+
if (origSetter) {
|
|
976
|
+
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
977
|
+
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
978
|
+
newValue = ref.$instanceValues$.get(memberName);
|
|
979
|
+
} else if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
980
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
981
|
+
}
|
|
982
|
+
origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
|
|
983
|
+
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
984
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
985
|
+
return;
|
|
986
|
+
}
|
|
987
|
+
{
|
|
988
|
+
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
989
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
990
|
+
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
991
|
+
ref.$onReadyPromise$.then(() => {
|
|
992
|
+
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
993
|
+
ref.$lazyInstance$[memberName] = newValue;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
return;
|
|
998
|
+
}
|
|
999
|
+
const setterSetVal = () => {
|
|
1000
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
1001
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
1002
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
1003
|
+
}
|
|
1004
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
|
|
1005
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
1006
|
+
};
|
|
1007
|
+
if (ref.$lazyInstance$) {
|
|
1008
|
+
setterSetVal();
|
|
1009
|
+
} else {
|
|
1010
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
931
1014
|
});
|
|
932
1015
|
}
|
|
933
1016
|
});
|
|
@@ -937,7 +1020,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
937
1020
|
plt.jmp(() => {
|
|
938
1021
|
var _a2;
|
|
939
1022
|
const propName = attrNameToPropName.get(attrName);
|
|
940
|
-
if (this.hasOwnProperty(propName)) {
|
|
1023
|
+
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
941
1024
|
newValue = this[propName];
|
|
942
1025
|
delete this[propName];
|
|
943
1026
|
} else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
@@ -957,7 +1040,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
957
1040
|
}
|
|
958
1041
|
return;
|
|
959
1042
|
}
|
|
960
|
-
|
|
1043
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1044
|
+
newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
1045
|
+
if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1046
|
+
this[propName] = newValue;
|
|
1047
|
+
}
|
|
961
1048
|
});
|
|
962
1049
|
};
|
|
963
1050
|
Cstr.observedAttributes = Array.from(
|
|
@@ -984,9 +1071,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
984
1071
|
let Cstr;
|
|
985
1072
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
986
1073
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
const CstrImport = loadModule(cmpMeta);
|
|
1074
|
+
{
|
|
1075
|
+
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
990
1076
|
if (CstrImport && "then" in CstrImport) {
|
|
991
1077
|
const endLoad = uniqueTime();
|
|
992
1078
|
Cstr = await CstrImport;
|
|
@@ -1011,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1011
1097
|
try {
|
|
1012
1098
|
new Cstr(hostRef);
|
|
1013
1099
|
} catch (e) {
|
|
1014
|
-
consoleError(e);
|
|
1100
|
+
consoleError(e, elm);
|
|
1015
1101
|
}
|
|
1016
1102
|
{
|
|
1017
1103
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -1020,11 +1106,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1020
1106
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1021
1107
|
}
|
|
1022
1108
|
endNewInstance();
|
|
1023
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1024
|
-
} else {
|
|
1025
|
-
Cstr = elm.constructor;
|
|
1026
|
-
const cmpTag = elm.localName;
|
|
1027
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1109
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1028
1110
|
}
|
|
1029
1111
|
if (Cstr && Cstr.style) {
|
|
1030
1112
|
let style;
|
|
@@ -1047,9 +1129,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1047
1129
|
schedule();
|
|
1048
1130
|
}
|
|
1049
1131
|
};
|
|
1050
|
-
var fireConnectedCallback = (instance) => {
|
|
1132
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
1051
1133
|
{
|
|
1052
|
-
safeCall(instance, "connectedCallback");
|
|
1134
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1053
1135
|
}
|
|
1054
1136
|
};
|
|
1055
1137
|
|
|
@@ -1084,15 +1166,15 @@ var connectedCallback = (elm) => {
|
|
|
1084
1166
|
}
|
|
1085
1167
|
} else {
|
|
1086
1168
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1087
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
1169
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1088
1170
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1089
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
1171
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1090
1172
|
}
|
|
1091
1173
|
}
|
|
1092
1174
|
endConnected();
|
|
1093
1175
|
}
|
|
1094
1176
|
};
|
|
1095
|
-
var disconnectInstance = (instance) => {
|
|
1177
|
+
var disconnectInstance = (instance, elm) => {
|
|
1096
1178
|
};
|
|
1097
1179
|
var disconnectedCallback = async (elm) => {
|
|
1098
1180
|
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
@@ -1101,6 +1183,12 @@ var disconnectedCallback = async (elm) => {
|
|
|
1101
1183
|
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1102
1184
|
}
|
|
1103
1185
|
}
|
|
1186
|
+
if (rootAppliedStyles.has(elm)) {
|
|
1187
|
+
rootAppliedStyles.delete(elm);
|
|
1188
|
+
}
|
|
1189
|
+
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1190
|
+
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1191
|
+
}
|
|
1104
1192
|
};
|
|
1105
1193
|
|
|
1106
1194
|
// src/runtime/bootstrap-lazy.ts
|
|
@@ -1181,6 +1269,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1181
1269
|
}
|
|
1182
1270
|
disconnectedCallback() {
|
|
1183
1271
|
plt.jmp(() => disconnectedCallback(this));
|
|
1272
|
+
plt.raf(() => {
|
|
1273
|
+
var _a3;
|
|
1274
|
+
const hostRef = getHostRef(this);
|
|
1275
|
+
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1276
|
+
delete hostRef.$vnode$.$elm$;
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1184
1279
|
}
|
|
1185
1280
|
componentOnReady() {
|
|
1186
1281
|
return getHostRef(this).$onReadyPromise$;
|