@everymatrix/casino-page 1.87.26 → 1.87.27
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/components/CasinoCalendar-Bk2VWsYP.js +572 -0
- package/components/CasinoCalendar-CuMdPVUL.js +574 -0
- package/components/CasinoCalendar-NysJ_MQc.cjs +2 -0
- package/components/{CasinoCalendarDailyDetails-C9QkDeeW.js → CasinoCalendarDailyDetails-BMRyShgB.js} +84 -84
- package/components/CasinoCalendarDailyDetails-Ctd7GG23.cjs +1 -0
- package/components/{CasinoCalendarDailyDetails-DG8jTkOb.js → CasinoCalendarDailyDetails-DpRL4rZD.js} +84 -84
- package/components/CasinoCalendarDailyItem-Bwv-TV7n.cjs +1 -0
- package/components/{CasinoCalendarDailyItem-H9bFOk6V.js → CasinoCalendarDailyItem-O-m4LUQU.js} +118 -118
- package/components/{CasinoCalendarDailyItem-77QxCgOg.js → CasinoCalendarDailyItem-kbMnL8LX.js} +118 -118
- package/components/CasinoCollectionsProviders-DxCAKrxO.cjs +1 -0
- package/components/{CasinoCollectionsProviders-BRaAIVvV.js → CasinoCollectionsProviders-I8uaw4CX.js} +65 -65
- package/components/{CasinoCollectionsProviders-DOGIidgs.js → CasinoCollectionsProviders-bBtLlyhP.js} +93 -93
- package/components/CasinoFavoritesSection-BKpylL-E.cjs +1 -0
- package/components/{CasinoFavoritesSection-C-WTpxpq.js → CasinoFavoritesSection-D1NR_VbM.js} +47 -63
- package/components/{CasinoFavoritesSection-CZ-q50oD.js → CasinoFavoritesSection-DVEeqd8t.js} +44 -60
- package/components/CasinoFilter-BuCRML3F.cjs +1 -0
- package/components/{CasinoFilter-Dd_ByQUb.js → CasinoFilter-C-8LktQ9.js} +223 -224
- package/components/{CasinoFilter-BqfBTs3X.js → CasinoFilter-JysfGnIT.js} +251 -250
- package/components/CasinoGameThumbnail-CTIJhcZN.js +1847 -0
- package/components/CasinoGameThumbnail-MpCIIvr2.cjs +38 -0
- package/components/CasinoGameThumbnail-vCdzZgSQ.js +1831 -0
- package/components/CasinoGamesCategorySection-CQTfYAer.cjs +10 -0
- package/components/CasinoGamesCategorySection-C_uyd_r_.js +5729 -0
- package/components/CasinoGamesCategorySection-Cavp2XcF.js +5697 -0
- package/components/{CasinoJackpotBanner-BuCeq-FN.js → CasinoJackpotBanner-C6568dXk.js} +176 -176
- package/components/{CasinoJackpotBanner-Ba0HSy7J.js → CasinoJackpotBanner-CLADRgxD.js} +154 -154
- package/components/CasinoJackpotBanner-C_Gf1vLe.cjs +1 -0
- package/components/{CasinoLastPlayedSection-DJ9HO253.js → CasinoLastPlayedSection-Daix__De.js} +71 -72
- package/components/{CasinoLastPlayedSection-C5vsXbz8.js → CasinoLastPlayedSection-fA_Nko5c.js} +68 -69
- package/components/CasinoLastPlayedSection-i9eM46ud.cjs +1 -0
- package/components/CasinoMostPlayedSection-7F-BgAlY.cjs +1 -0
- package/components/{CasinoMostPlayedSection-_rcZwydD.js → CasinoMostPlayedSection-BG98a19d.js} +64 -65
- package/components/{CasinoMostPlayedSection-Cj9P1O_g.js → CasinoMostPlayedSection-DjDWyNmN.js} +66 -67
- package/components/{CasinoMyGames-BCWaO0Ph.js → CasinoMyGames-DbWMDQDz.js} +46 -46
- package/components/CasinoMyGames-FxQZFPn1.cjs +1 -0
- package/components/{CasinoMyGames-DA-mPnwJ.js → CasinoMyGames-fh1A5kRZ.js} +46 -46
- package/components/CasinoPage-CEwUBRwz.js +8914 -0
- package/components/CasinoPage-D1gCtQ9f.cjs +18 -0
- package/components/CasinoPage-DuLO92lO.js +8959 -0
- package/components/CasinoRandomGame-B6nMcOFW.cjs +2 -0
- package/components/{CasinoRandomGame-Dicpdv5N.js → CasinoRandomGame-BXeDL44i.js} +118 -118
- package/components/{CasinoRandomGame-Mzhi_geU.js → CasinoRandomGame-fp8-6pxV.js} +116 -116
- package/components/{CasinoSearch-BkcRkT-Z.js → CasinoSearch-CT_Q7Eg2.js} +75 -75
- package/components/{CasinoSearch-CFh1KpPL.js → CasinoSearch-D25EUsHS.js} +75 -75
- package/components/CasinoSearch-DSNlggOc.cjs +1 -0
- package/components/CasinoSort-5sOVz1es.cjs +1 -0
- package/components/{CasinoSort-DuvD0KkH.js → CasinoSort-CoBXSITn.js} +102 -102
- package/components/{CasinoSort-DHqu-YG-.js → CasinoSort-l3IilL10.js} +116 -116
- package/components/{CasinoWinners-C0aKkeDL.js → CasinoWinners-BeLObVW8.js} +105 -105
- package/components/{CasinoWinners-DdSjlEaj.js → CasinoWinners-mCHa7x4u.js} +108 -108
- package/components/CasinoWinners-pE3a77v3.cjs +1 -0
- package/components/GeneralAnimationLoading-BJ87LnuC.cjs +1 -0
- package/components/{GeneralAnimationLoading-DhrziAD2.js → GeneralAnimationLoading-BaLCQhkc.js} +23 -23
- package/components/{GeneralAnimationLoading-B00sPlMG.js → GeneralAnimationLoading-SLNmfkn9.js} +22 -22
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +7 -7
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{app-globals-0f993ce5-4b17CI_n.cjs → app-globals-0f993ce5-3HCMFTIi.cjs} +1 -1
- package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-DYjuqKIH.js} +2 -2
- package/stencil/{casino-play-random-game-rhXCh2EW.js → casino-play-random-game-BnjM-0qi.js} +2 -2
- package/stencil/{casino-play-random-game-CSy8nXT0.js → casino-play-random-game-DRQxeH3W.js} +2 -2
- package/stencil/{casino-play-random-game-PuRF3mXV.cjs → casino-play-random-game-dt2t2wAq.cjs} +1 -1
- package/stencil/{casino-play-random-game_2-CZQxP9GA.js → casino-play-random-game_2-BvZbjHRJ.js} +92 -64
- package/stencil/{casino-play-random-game_2-CBAgufN5.cjs → casino-play-random-game_2-ZYQBmsCp.cjs} +3 -3
- package/stencil/{casino-play-random-game_2-BBgMV3ws.js → casino-play-random-game_2-aWmRrJVX.js} +91 -64
- package/stencil/{index-328e660d-BLQrzwBv.cjs → index-328e660d-BN7c7sEP.cjs} +1 -1
- package/stencil/{index-328e660d-Belout2l.js → index-328e660d-CJOt0Yr_.js} +1 -1
- package/stencil/{index-328e660d-BqUO7ccV.js → index-328e660d-CZwFIIV5.js} +1 -1
- package/stencil/{index-b2193545-DuCTLpV-.cjs → index-b2193545-BYDm8FOU.cjs} +1 -1
- package/stencil/{index-b2193545-DG7pnr-7.js → index-b2193545-CVvOSay7.js} +1 -1
- package/stencil/{index-b2193545-BZAG_Jnw.js → index-b2193545-DkSkdO8p.js} +1 -1
- package/stencil/{ui-image-BmLAbwvr.cjs → ui-image-BNLichPz.cjs} +1 -1
- package/stencil/{ui-image-DDulMZDF.js → ui-image-D8_P6p7o.js} +1 -1
- package/stencil/{ui-image-DwWgscwP.js → ui-image-KAOdlRk_.js} +1 -1
- package/stencil/{ui-skeleton-DgZQnowa.js → ui-skeleton-CbcQXFpx.js} +3 -3
- package/stencil/{ui-skeleton-D_tu1FGi.js → ui-skeleton-DgkQtSrH.js} +3 -3
- package/stencil/{ui-skeleton-BWEKzqTN.cjs → ui-skeleton-TOJItxHv.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-D2rWx_KU.js → ui-skeleton-ed169f8f-BD9hI4Jz.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Ti6Ksz7V.cjs → ui-skeleton-ed169f8f-CGu6WFdq.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-Bs1q2JQr.js → ui-skeleton-ed169f8f-CaxkPCnR.js} +1 -1
- package/components/CasinoCalendar-4k288rHh.cjs +0 -19
- package/components/CasinoCalendar-BNbVJJdG.js +0 -5140
- package/components/CasinoCalendar-DAKxxPPx.js +0 -5101
- package/components/CasinoCalendarDailyDetails-CerVlpW4.cjs +0 -1
- package/components/CasinoCalendarDailyItem-B7YANGR4.cjs +0 -1
- package/components/CasinoCollectionsProviders-OZw09qnR.cjs +0 -1
- package/components/CasinoFavoritesSection-DYzKNVZJ.cjs +0 -1
- package/components/CasinoFilter-BP97bmoQ.cjs +0 -1
- package/components/CasinoGameThumbnail-CySg8Qzs.js +0 -4359
- package/components/CasinoGameThumbnail-W0nETKCH.cjs +0 -47
- package/components/CasinoGameThumbnail-ge_yVb-v.js +0 -4375
- package/components/CasinoGamesCategorySection-B2CXUJ-V.js +0 -3217
- package/components/CasinoGamesCategorySection-B8IjpDwj.js +0 -3185
- package/components/CasinoGamesCategorySection-DCjn0aiz.cjs +0 -1
- package/components/CasinoJackpotBanner-DRtiH_Mn.cjs +0 -1
- package/components/CasinoLastPlayedSection-CP4YzhAu.cjs +0 -1
- package/components/CasinoMostPlayedSection-DPG3YsM6.cjs +0 -1
- package/components/CasinoMyGames-Bqyyy2Me.cjs +0 -1
- package/components/CasinoPage-BNU69s1m.js +0 -4353
- package/components/CasinoPage-BRSRsp5F.js +0 -4334
- package/components/CasinoPage-D-FENg4m.cjs +0 -1
- package/components/CasinoRandomGame-DRGWOXO6.cjs +0 -2
- package/components/CasinoSearch-D14Ak2E9.cjs +0 -1
- package/components/CasinoSort-BVyHskml.cjs +0 -1
- package/components/CasinoWinners-5S4Rqt23.cjs +0 -1
- package/components/GeneralAnimationLoading-wnzFPEVd.cjs +0 -1
package/stencil/{casino-play-random-game_2-CBAgufN5.cjs → casino-play-random-game_2-ZYQBmsCp.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-328e660d-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-328e660d-BN7c7sEP.cjs"),y=()=>{let e=window.navigator.userAgent;return e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},b="en",d={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:"Rastgele Bir Oyun Oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},c=e=>new Promise(n=>{fetch(e).then(a=>a.json()).then(a=>{p(a),n(!0)})}),h=(e,n)=>{const a=n;return d[a!==void 0&&a in d?a:b][e]},p=e=>{Object.keys(e).forEach(n=>{d[n]||(d[n]={});for(let a in e[n])d[n][a]=e[n][a]})},m="__WIDGET_GLOBAL_STYLE_CACHE__";function g(e,n){if(e){const a=document.createElement("style");a.innerHTML=n,e.appendChild(a)}}function u(e,n){if(!e||!n)return;const a=new URL(n);fetch(a.href).then(i=>i.text()).then(i=>{const o=document.createElement("style");o.innerHTML=i,e&&e.appendChild(o)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function x(e,n,a,i=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!i)return a=k(e,n),a;window[m]||(window[m]={}),a=G(e,n);const r=a.unsubscribe.bind(a),s=()=>{if(window[m][n]){const l=window[m][n];l.refCount>1?l.refCount=l.refCount-1:delete window[m][n]}r()};return a.unsubscribe=s,a}function k(e,n){const a=document.createElement("style");return window.emMessageBus.subscribe(n,i=>{e&&(a.innerHTML=i,e.appendChild(a))})}function G(e,n){return window.emMessageBus.subscribe(n,a=>{var l;if(!e)return;const i=e.getRootNode(),o=window[m];let r=(l=o[n])==null?void 0:l.sheet;r?o[n].refCount=o[n].refCount+1:(r=new CSSStyleSheet,r.replaceSync(a),o[n]={sheet:r,refCount:1});const s=i.adoptedStyleSheets||[];s.includes(r)||(i.adoptedStyleSheets=[...s,r])})}function v(e,n,a){return window.emMessageBus&&(n=window.emMessageBus.subscribe(e,a)),n}const S=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
width: 70px;
|
|
376
376
|
height: 85px;
|
|
377
377
|
}
|
|
378
|
-
}`,k=x,c=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,l(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&m(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&l(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&b(`${this.mbSource}.Translation`,this.translationSubscription,h),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&m(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&d(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",w()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((n,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",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 e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+n)*this.selectedGameIndex+a/2-i/2,u=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],p={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(u,p),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),typeof gtag=="function"&>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),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"a1e3f626fea9bcd6a351f1769675e11b21ac8fbd",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},s("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};c.style=k;const G=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",v=G,g=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
378
|
+
}`,R=S,w=class{constructor(e){t.registerInstance(this,e),this.dataLoaded=t.createEvent(this,"data-loaded"),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=n=>{let a=n.length,i;for(;a!==0;)i=Math.floor(Math.random()*a),a--,[n[a],n[i]]=[n[i],n[a]];return n},this.endpoint=void 0,this.datasource=void 0,this.language="en",this.specificCategory="",this.iconVisible="",this.iconVisibleOnAnim="",this.launchByGameCard="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.hasErrors=!1,this.isLoading=!0,this.gamesToShow=void 0,this.selectedGame=null,this.animationDone=!1,this.animationStarted=!1}watchEndpoint(e,n){e&&e!=n&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,c(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(e,n){e!=n&&g(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,n){e!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&c(this.translationUrl),!this.translationUrl&&this.mbSource&&window.emMessageBus!=null&&v(`${this.mbSource}.Translation`,this.translationSubscription,p),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?x(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&g(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.translationSubscription&&this.translationSubscription.unsubscribe()}fetchGameList(){let e=new URL(`${this.endpoint}/v1/casino/games`);return e.searchParams.append("platform",y()),e.searchParams.append("datasource",this.datasource),e.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),e.searchParams.append("expand","vendor"),e.searchParams.append("pagination","offset=0,limit=423"),e.searchParams.append("language",this.language),this.specificCategory&&e.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((n,a)=>{this.isLoading=!0,fetch(e.href).then(i=>i.json()).then(i=>{this.gamesToShow=this.setUpGames(i==null?void 0:i.items),n(!0)}).catch(i=>{console.error(i),this.hasErrors=!0,a(i)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(e){const n=this.shuffle(e).slice(0,40);return n.concat(n)}selectRandomGame(){const e=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(e-3)),this.selectedGameIndex+=e,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),typeof gtag=="function"&>ag("event","PlayRandomGame",{context:"CasinoPlayRandomGame"})}respin(){this.animateGames(),typeof gtag=="function"&>ag("event","RespinRandomGame",{context:"CasinoPlayRandomGame"})}animateGames(){this.iconVisibility=this.iconVisibleOnAnim==="true",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 e=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),n=parseInt(e,10),a=this.selectedGameEl.offsetWidth,i=this.gameContainer.offsetWidth,o=(a+n)*this.selectedGameIndex+a/2-i/2,r=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],s={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(r,s),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),typeof gtag=="function"&>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),typeof gtag=="function"&>ag("event","OpenRandomGameInfo",{context:"CasinoPlayRandomGame"})}renderGameDetails(){return t.h("div",{class:"RandomButtonsWrapper"},t.h("div",{class:"RandomGameDetails"},t.h("span",{class:"RandomGameTitle"},this.selectedGame.name),t.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),t.h("div",{class:"RandomButtons"},t.h("button",{class:"RandomButton On",onClick:()=>this.respin()},h("spinRandomGame",this.language)),!this.launchByGameCard&&t.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},h("playNowRandomGame",this.language))))}renderSkeleton(){const e=Array.from({length:5},(n,a)=>t.h("div",{class:"RandomGameCard",key:a},t.h("ui-skeleton",{structure:"rectangle",width:"300px",height:"420px",borderRadius:"10px",animation:!0})));return t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer"},e))}render(){return t.h("div",{key:"a1e3f626fea9bcd6a351f1769675e11b21ac8fbd",ref:e=>this.stylingContainer=e},this.hasErrors?t.h("div",{class:"RandomGameError"},t.h("div",{class:"Title"},h("error",this.language))):this.isLoading?this.renderSkeleton():t.h("div",{class:"RandomGameWrapper"},t.h("div",{class:"GameContainerGradient"}),t.h("div",{class:"GamesContainer",ref:e=>this.gameContainer=e},this.gamesToShow&&this.gamesToShow.map((e,n)=>t.h("div",{class:"RandomGameCard",key:n,onClick:this.launchByGameCard==="true"?()=>this.playGame():void 0},t.h("div",{class:"RandomGameVendor"},e.vendor.name),t.h("img",{class:"RandomGameImage",src:e.thumbnail,alt:e.name,title:e.name}),this.selectedGame&&this.selectedGameIndex===n&&this.renderGameDetails()))),t.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},t.h("div",{class:"ButtonContainer"},this.iconVisibility&&t.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},t.h("div",{class:"QustionMark"},"?"),t.h("div",{class:"HexagonMarkShadow"}),t.h("div",{class:"HexagonMark"})),!this.animationStarted&&t.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},h("playRandomGame",this.language))))))}get host(){return t.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};w.style=R;const C=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",L=C,f=class{constructor(e){t.registerInstance(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,n){n!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return e===0?0:`${e}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset";default:return"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t.h("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return t.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((e,n)=>t.h("div",{key:n,class:"SkeletonText "+(this.animation?"Skeleton":"")})))}renderRectangle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t.h("div",{class:"SkeletonContainer"},t.h("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`
|
|
379
379
|
:host {
|
|
380
380
|
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
381
381
|
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
@@ -429,4 +429,4 @@
|
|
|
429
429
|
:host {
|
|
430
430
|
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
431
431
|
}
|
|
432
|
-
`;break;default:e=""}return t.h(t.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};
|
|
432
|
+
`;break;default:e=""}return t.h(t.Host,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t.h("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};f.style=L;exports.casino_play_random_game=w;exports.ui_skeleton=f;
|
package/stencil/{casino-play-random-game_2-BBgMV3ws.js → casino-play-random-game_2-aWmRrJVX.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
const
|
|
1
|
+
import { r as p, c as f, h as a, g as y, H as b } from "./index-328e660d-CJOt0Yr_.js";
|
|
2
|
+
const x = () => {
|
|
3
3
|
let e = window.navigator.userAgent;
|
|
4
4
|
return e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
5
|
-
},
|
|
5
|
+
}, k = "en", m = {
|
|
6
6
|
en: {
|
|
7
7
|
error: "Error",
|
|
8
8
|
randomGameLoading: "Loading ...",
|
|
@@ -45,49 +45,76 @@ const y = () => {
|
|
|
45
45
|
playNowRandomGame: "Şimdi Oyna",
|
|
46
46
|
spinRandomGame: "DEĞİŞTİR"
|
|
47
47
|
}
|
|
48
|
-
},
|
|
49
|
-
fetch(e).then((
|
|
50
|
-
|
|
48
|
+
}, c = (e) => new Promise((n) => {
|
|
49
|
+
fetch(e).then((t) => t.json()).then((t) => {
|
|
50
|
+
w(t), n(!0);
|
|
51
51
|
});
|
|
52
|
-
}),
|
|
53
|
-
const
|
|
54
|
-
return
|
|
55
|
-
},
|
|
52
|
+
}), d = (e, n) => {
|
|
53
|
+
const t = n;
|
|
54
|
+
return m[t !== void 0 && t in m ? t : k][e];
|
|
55
|
+
}, w = (e) => {
|
|
56
56
|
Object.keys(e).forEach((n) => {
|
|
57
|
-
|
|
58
|
-
for (let
|
|
59
|
-
|
|
57
|
+
m[n] || (m[n] = {});
|
|
58
|
+
for (let t in e[n])
|
|
59
|
+
m[n][t] = e[n][t];
|
|
60
60
|
});
|
|
61
|
-
};
|
|
62
|
-
function
|
|
61
|
+
}, l = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
62
|
+
function g(e, n) {
|
|
63
63
|
if (e) {
|
|
64
|
-
const
|
|
65
|
-
|
|
64
|
+
const t = document.createElement("style");
|
|
65
|
+
t.innerHTML = n, e.appendChild(t);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function u(e, n) {
|
|
69
69
|
if (!e || !n)
|
|
70
70
|
return;
|
|
71
|
-
const
|
|
72
|
-
fetch(
|
|
71
|
+
const t = new URL(n);
|
|
72
|
+
fetch(t.href).then((i) => i.text()).then((i) => {
|
|
73
73
|
const o = document.createElement("style");
|
|
74
74
|
o.innerHTML = i, e && e.appendChild(o);
|
|
75
75
|
}).catch((i) => {
|
|
76
76
|
console.error("There was an error while trying to load client styling from URL", i);
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
if (window.emMessageBus)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
79
|
+
function G(e, n, t, i = !1) {
|
|
80
|
+
if (!window.emMessageBus)
|
|
81
|
+
return;
|
|
82
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !i)
|
|
83
|
+
return t = v(e, n), t;
|
|
84
|
+
window[l] || (window[l] = {}), t = R(e, n);
|
|
85
|
+
const r = t.unsubscribe.bind(t), s = () => {
|
|
86
|
+
if (window[l][n]) {
|
|
87
|
+
const h = window[l][n];
|
|
88
|
+
h.refCount > 1 ? h.refCount = h.refCount - 1 : delete window[l][n];
|
|
89
|
+
}
|
|
90
|
+
r();
|
|
91
|
+
};
|
|
92
|
+
return t.unsubscribe = s, t;
|
|
93
|
+
}
|
|
94
|
+
function v(e, n) {
|
|
95
|
+
const t = document.createElement("style");
|
|
96
|
+
return window.emMessageBus.subscribe(n, (i) => {
|
|
97
|
+
e && (t.innerHTML = i, e.appendChild(t));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function R(e, n) {
|
|
101
|
+
return window.emMessageBus.subscribe(n, (t) => {
|
|
102
|
+
if (!e)
|
|
103
|
+
return;
|
|
104
|
+
const i = e.getRootNode(), o = window[l];
|
|
105
|
+
let r = o[n]?.sheet;
|
|
106
|
+
r ? o[n].refCount = o[n].refCount + 1 : (r = new CSSStyleSheet(), r.replaceSync(t), o[n] = {
|
|
107
|
+
sheet: r,
|
|
108
|
+
refCount: 1
|
|
84
109
|
});
|
|
85
|
-
|
|
110
|
+
const s = i.adoptedStyleSheets || [];
|
|
111
|
+
s.includes(r) || (i.adoptedStyleSheets = [...s, r]);
|
|
112
|
+
});
|
|
86
113
|
}
|
|
87
|
-
function
|
|
88
|
-
return window.emMessageBus && (n = window.emMessageBus.subscribe(e,
|
|
114
|
+
function S(e, n, t) {
|
|
115
|
+
return window.emMessageBus && (n = window.emMessageBus.subscribe(e, t)), n;
|
|
89
116
|
}
|
|
90
|
-
const
|
|
117
|
+
const C = `:host {
|
|
91
118
|
display: block;
|
|
92
119
|
font-family: inherit;
|
|
93
120
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -464,12 +491,12 @@ const G = `:host {
|
|
|
464
491
|
width: 70px;
|
|
465
492
|
height: 85px;
|
|
466
493
|
}
|
|
467
|
-
}`,
|
|
494
|
+
}`, L = C, V = class {
|
|
468
495
|
constructor(e) {
|
|
469
|
-
|
|
470
|
-
let
|
|
471
|
-
for (;
|
|
472
|
-
i = Math.floor(Math.random() *
|
|
496
|
+
p(this, e), this.dataLoaded = f(this, "data-loaded"), this.animation = null, this.selectedGameIndex = null, this.selectedGameEl = null, this.iconVisibility = null, this.shuffle = (n) => {
|
|
497
|
+
let t = n.length, i;
|
|
498
|
+
for (; t !== 0; )
|
|
499
|
+
i = Math.floor(Math.random() * t), t--, [n[t], n[i]] = [n[i], n[t]];
|
|
473
500
|
return n;
|
|
474
501
|
}, this.endpoint = void 0, this.datasource = void 0, this.language = "en", this.specificCategory = "", this.iconVisible = "", this.iconVisibleOnAnim = "", this.launchByGameCard = "", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.hasErrors = !1, this.isLoading = !0, this.gamesToShow = void 0, this.selectedGame = null, this.animationDone = !1, this.animationStarted = !1;
|
|
475
502
|
}
|
|
@@ -477,7 +504,7 @@ const G = `:host {
|
|
|
477
504
|
e && e != n && this.endpoint && this.fetchGameList();
|
|
478
505
|
}
|
|
479
506
|
handleNewTranslations() {
|
|
480
|
-
this.isLoading = !0,
|
|
507
|
+
this.isLoading = !0, c(this.translationUrl).then(() => {
|
|
481
508
|
this.isLoading = !1;
|
|
482
509
|
});
|
|
483
510
|
}
|
|
@@ -485,31 +512,31 @@ const G = `:host {
|
|
|
485
512
|
this.iconVisibility = this.iconVisible === "true";
|
|
486
513
|
}
|
|
487
514
|
handleClientStylingChange(e, n) {
|
|
488
|
-
e != n &&
|
|
515
|
+
e != n && g(this.stylingContainer, this.clientStyling);
|
|
489
516
|
}
|
|
490
517
|
handleClientStylingChangeURL(e, n) {
|
|
491
|
-
e != n && this.clientStylingUrl &&
|
|
518
|
+
e != n && this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl);
|
|
492
519
|
}
|
|
493
520
|
connectedCallback() {
|
|
494
521
|
this.handleIsIconVisible();
|
|
495
522
|
}
|
|
496
523
|
componentWillLoad() {
|
|
497
|
-
if (this.translationUrl.length > 2 &&
|
|
524
|
+
if (this.translationUrl.length > 2 && c(this.translationUrl), !this.translationUrl && this.mbSource && window.emMessageBus != null && S(`${this.mbSource}.Translation`, this.translationSubscription, w), this.endpoint && this.language && this.datasource)
|
|
498
525
|
return this.fetchGameList();
|
|
499
526
|
}
|
|
500
527
|
componentDidLoad() {
|
|
501
|
-
window.emMessageBus != null ?
|
|
528
|
+
window.emMessageBus != null ? G(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && g(this.stylingContainer, this.clientStyling), this.clientStylingUrl && u(this.stylingContainer, this.clientStylingUrl));
|
|
502
529
|
}
|
|
503
530
|
disconnectedCallback() {
|
|
504
531
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), this.translationSubscription && this.translationSubscription.unsubscribe();
|
|
505
532
|
}
|
|
506
533
|
fetchGameList() {
|
|
507
534
|
let e = new URL(`${this.endpoint}/v1/casino/games`);
|
|
508
|
-
return e.searchParams.append("platform",
|
|
535
|
+
return e.searchParams.append("platform", x()), e.searchParams.append("datasource", this.datasource), e.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"), e.searchParams.append("expand", "vendor"), e.searchParams.append("pagination", "offset=0,limit=423"), e.searchParams.append("language", this.language), this.specificCategory && e.searchParams.append("filter", `categories(id=${this.specificCategory})`), new Promise((n, t) => {
|
|
509
536
|
this.isLoading = !0, fetch(e.href).then((i) => i.json()).then((i) => {
|
|
510
537
|
this.gamesToShow = this.setUpGames(i?.items), n(!0);
|
|
511
538
|
}).catch((i) => {
|
|
512
|
-
console.error(i), this.hasErrors = !0,
|
|
539
|
+
console.error(i), this.hasErrors = !0, t(i);
|
|
513
540
|
}).finally(() => {
|
|
514
541
|
this.isLoading = !1, this.dataLoaded.emit({
|
|
515
542
|
target: this.host
|
|
@@ -537,18 +564,18 @@ const G = `:host {
|
|
|
537
564
|
}
|
|
538
565
|
animateGames() {
|
|
539
566
|
this.iconVisibility = this.iconVisibleOnAnim === "true", 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();
|
|
540
|
-
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10),
|
|
541
|
-
|
|
542
|
-
i / 2,
|
|
567
|
+
const e = window.getComputedStyle(this.gameContainer).getPropertyValue("gap"), n = parseInt(e, 10), t = this.selectedGameEl.offsetWidth, i = this.gameContainer.offsetWidth, o = (t + n) * this.selectedGameIndex + // Width of game cards up to the selected
|
|
568
|
+
t / 2 - // Additional half card width to center to the selected game
|
|
569
|
+
i / 2, r = [
|
|
543
570
|
{ transform: "translateX(0px)", scale: 1 },
|
|
544
571
|
{ scale: 0.75 },
|
|
545
572
|
{ transform: `translateX(-${o}px)`, scale: 1 }
|
|
546
|
-
],
|
|
573
|
+
], s = {
|
|
547
574
|
duration: 3e3,
|
|
548
575
|
easing: "cubic-bezier(0.5, 0, 0.5, 1.2)",
|
|
549
576
|
fill: "forwards"
|
|
550
577
|
};
|
|
551
|
-
this.animation = this.gameContainer.animate(
|
|
578
|
+
this.animation = this.gameContainer.animate(r, s), this.animation.onfinish = () => {
|
|
552
579
|
this.animationDone = !0, this.selectedGameEl.classList.add("TheRandomGame"), this.selectedGame = this.gamesToShow[this.selectedGameIndex];
|
|
553
580
|
};
|
|
554
581
|
}
|
|
@@ -563,17 +590,17 @@ const G = `:host {
|
|
|
563
590
|
});
|
|
564
591
|
}
|
|
565
592
|
renderGameDetails() {
|
|
566
|
-
return
|
|
593
|
+
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() }, d("spinRandomGame", this.language)), !this.launchByGameCard && a("button", { class: "RandomButton On", onClick: () => this.playGame() }, d("playNowRandomGame", this.language))));
|
|
567
594
|
}
|
|
568
595
|
renderSkeleton() {
|
|
569
|
-
const e = Array.from({ length: 5 }, (n,
|
|
570
|
-
return
|
|
596
|
+
const e = Array.from({ length: 5 }, (n, t) => a("div", { class: "RandomGameCard", key: t }, a("ui-skeleton", { structure: "rectangle", width: "300px", height: "420px", borderRadius: "10px", animation: !0 })));
|
|
597
|
+
return a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer" }, e));
|
|
571
598
|
}
|
|
572
599
|
render() {
|
|
573
|
-
return
|
|
600
|
+
return a("div", { key: "a1e3f626fea9bcd6a351f1769675e11b21ac8fbd", ref: (e) => this.stylingContainer = e }, this.hasErrors ? a("div", { class: "RandomGameError" }, a("div", { class: "Title" }, d("error", this.language))) : this.isLoading ? this.renderSkeleton() : a("div", { class: "RandomGameWrapper" }, a("div", { class: "GameContainerGradient" }), a("div", { class: "GamesContainer", ref: (e) => this.gameContainer = e }, this.gamesToShow && this.gamesToShow.map((e, n) => a("div", { class: "RandomGameCard", key: n, onClick: this.launchByGameCard === "true" ? () => this.playGame() : void 0 }, a("div", { class: "RandomGameVendor" }, e.vendor.name), a("img", { class: "RandomGameImage", src: e.thumbnail, alt: e.name, title: e.name }), this.selectedGame && this.selectedGameIndex === n && 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() }, d("playRandomGame", this.language))))));
|
|
574
601
|
}
|
|
575
602
|
get host() {
|
|
576
|
-
return
|
|
603
|
+
return y(this);
|
|
577
604
|
}
|
|
578
605
|
static get watchers() {
|
|
579
606
|
return {
|
|
@@ -587,10 +614,10 @@ const G = `:host {
|
|
|
587
614
|
};
|
|
588
615
|
}
|
|
589
616
|
};
|
|
590
|
-
|
|
591
|
-
const
|
|
617
|
+
V.style = L;
|
|
618
|
+
const B = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}", T = B, F = class {
|
|
592
619
|
constructor(e) {
|
|
593
|
-
|
|
620
|
+
p(this, e), this.stylingValue = {
|
|
594
621
|
width: this.handleStylingProps(this.width),
|
|
595
622
|
height: this.handleStylingProps(this.height),
|
|
596
623
|
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
@@ -635,22 +662,22 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
635
662
|
}
|
|
636
663
|
}
|
|
637
664
|
renderLogo() {
|
|
638
|
-
return
|
|
665
|
+
return a("div", { class: "SkeletonContainer" }, a("div", { class: "SkeletonLogo " + (this.animation ? "Skeleton" : "") }));
|
|
639
666
|
}
|
|
640
667
|
renderImage() {
|
|
641
|
-
return
|
|
668
|
+
return a("div", { class: "SkeletonImage " + (this.animation ? "Skeleton" : "") });
|
|
642
669
|
}
|
|
643
670
|
renderTitle() {
|
|
644
|
-
return
|
|
671
|
+
return a("div", { class: "SkeletonContainer" }, a("div", { class: "SkeletonTitle " + (this.animation ? "Skeleton" : "") }));
|
|
645
672
|
}
|
|
646
673
|
renderText() {
|
|
647
|
-
return
|
|
674
|
+
return a("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((e, n) => a("div", { key: n, class: "SkeletonText " + (this.animation ? "Skeleton" : "") })));
|
|
648
675
|
}
|
|
649
676
|
renderRectangle() {
|
|
650
|
-
return
|
|
677
|
+
return a("div", { class: "SkeletonContainer" }, a("div", { class: "SkeletonRectangle " + (this.animation ? "Skeleton" : "") }));
|
|
651
678
|
}
|
|
652
679
|
renderCircle() {
|
|
653
|
-
return
|
|
680
|
+
return a("div", { class: "SkeletonContainer" }, a("div", { class: "SkeletonCircle " + (this.animation ? "Skeleton" : "") }));
|
|
654
681
|
}
|
|
655
682
|
render() {
|
|
656
683
|
let e = "";
|
|
@@ -730,7 +757,7 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
730
757
|
default:
|
|
731
758
|
e = "";
|
|
732
759
|
}
|
|
733
|
-
return
|
|
760
|
+
return a(b, { key: "c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8" }, a("style", { key: "9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19" }, e), this.handleStructure(this.structure));
|
|
734
761
|
}
|
|
735
762
|
static get watchers() {
|
|
736
763
|
return {
|
|
@@ -738,8 +765,8 @@ const S = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear in
|
|
|
738
765
|
};
|
|
739
766
|
}
|
|
740
767
|
};
|
|
741
|
-
|
|
768
|
+
F.style = T;
|
|
742
769
|
export {
|
|
743
|
-
|
|
744
|
-
|
|
770
|
+
V as casino_play_random_game,
|
|
771
|
+
F as ui_skeleton
|
|
745
772
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=(e,t,r)=>new Promise((s,n)=>{var a=i=>{try{o(r.next(i))}catch($){n($)}},l=i=>{try{o(r.throw(i))}catch($){n($)}},o=i=>i.done?s(i.value):Promise.resolve(i.value).then(a,l);o((r=r.apply(e,t)).next())});const Ee="casino-play-random-game",ke={hydratedSelectorName:"hydrated"};var be=Object.defineProperty,we=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})},R=new WeakMap,E=e=>R.get(e),Te=(e,t)=>R.set(t.$lazyInstance$=e,t),Pe=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],R.set(e,r)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),z=new Map,xe=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=z.get(n);if(a)return a[s];{const l=o=>(z.set(n,o),o[s]);switch(n){case"casino-play-random-game_2":return Promise.resolve().then(()=>require("./casino-play-random-game_2-CBAgufN5.cjs")).then(l,b)}}return import(`./${n}.entry.js`).then(l=>(z.set(n,l),l[s]),b)},L=new Map,_e="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Ae=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,X=[],se=[],Le=(e,t)=>r=>{e.push(r),U||(U=!0,g.$flags$&4?D(H):g.raf(H))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){b(r)}e.length=0},H=()=>{Y(X),Y(se),(U=X.length>0)&&g.raf(H)},D=e=>te().then(e),Ie=Le(se),J={},je=e=>e!=null,F=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,r,s;return(s=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?s:void 0}var Oe={};we(Oe,{err:()=>re,map:()=>ze,ok:()=>C,unwrap:()=>Ue,unwrapErr:()=>He});var C=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function ze(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>C(s)):C(r)}if(e.isErr){const r=e.value;return re(r)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},Ce=(e,t)=>()=>{},le=(e,t,...r)=>{let s=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?i(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!F(s))&&(s=String(s)),a&&l?o[o.length-1].$text$+=s:o.push(a?B(null,s):s),l=a)};if(i(r),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=B(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},B=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},ae={},Be=e=>e&&e.$tag$===ae,qe=(e,t)=>e!=null&&!F(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ie=e=>E(e).$hostElement$,Re=(e,t,r)=>{const s=ie(e);return{emit:n=>oe(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},oe=(e,t,r)=>{const s=g.ce(t,r);return e.dispatchEvent(s),s},K=new WeakMap,De=(e,t,r)=>{let s=L.get(e);Ae&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,L.set(e,s)},Fe=(e,t,r)=>{var s;const n=$e(t),a=L.get(n);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(n)){{o=m.createElement("style"),o.innerHTML=a;const i=(s=g.$nonce$)!=null?s:ne(m);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Me=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=S("attachStyles",t.$tagName$),a=Fe(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=a,r.classList.add(a+"-h")),n()},$e=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,r,s,n,a)=>{if(r!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const i=e.classList,$=Z(r),c=Z(s);i.remove(...$.filter(f=>f&&!c.includes(f))),i.add(...c.filter(f=>f&&!$.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(j,o)?t=o.slice(2):t=o[2]+t.slice(3),r||s){const i=t.endsWith(ce);t=t.replace(Ge,""),r&&g.rel(e,t,r,i),s&&g.ael(e,t,s,i)}}else{const i=F(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(r==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||n)&&!i&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],ce="Capture",Ge=new RegExp(ce+"$"),fe=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||J,a=t.$attrs$||J;for(const l of N(Object.keys(n)))l in a||Q(s,l,n[l],void 0,r,t.$flags$);for(const l of N(Object.keys(a)))Q(s,l,n[l],a[l],r,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var _,M,ue=!1,I=(e,t,r,s)=>{const n=t.$children$[r];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=m.createTextNode(n.$text$);else if(l=n.$elm$=m.createElement(n.$tag$),fe(null,n,ue),je(_)&&l["s-si"]!==_&&l.classList.add(l["s-si"]=_),n.$children$)for(a=0;a<n.$children$.length;++a)o=I(e,n,a),o&&l.appendChild(o);return l["s-hn"]=M,l},de=(e,t,r,s,n,a)=>{let l=e,o;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);n<=a;++n)s[n]&&(o=I(null,r,n),o&&(s[n].$elm$=o,A(l,o,t)))},ve=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const a=n.$elm$;he(n),a&&a.remove()}}},Xe=(e,t,r,s,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],f=t[$],u=s.length-1,d=s[0],v=s[u],h,y;for(;a<=$&&l<=u;)if(c==null)c=t[++a];else if(f==null)f=t[--$];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(x(c,d,n))w(c,d,n),c=t[++a],d=s[++l];else if(x(f,v,n))w(f,v,n),f=t[--$],v=s[--u];else if(x(c,v,n))w(c,v,n),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++a],v=s[--u];else if(x(f,d,n))w(f,d,n),A(e,f.$elm$,c.$elm$),f=t[--$],d=s[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(y=t[o],y.$tag$!==d.$tag$?h=I(t&&t[l],r,o):(w(y,d,n),t[o]=void 0,h=y.$elm$),d=s[++l]):(h=I(t&&t[l],r,l),d=s[++l]),h&&A(c.$elm$.parentNode,h,c.$elm$)}a>$?de(e,s[u+1]==null?null:s[u+1].$elm$,r,s,l,u):l>u&&ve(t,a,$)},x=(e,t,r=!1)=>e.$tag$===t.$tag$?r?!0:e.$key$===t.$key$:!1,w=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(fe(e,t,ue),n!==null&&a!==null?Xe(s,n,t,a,r):a!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,a,0,a.length-1)):n!==null&&ve(n,0,n.length-1)):e.$text$!==l&&(s.data=l)},he=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(he)},A=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Ye=(e,t,r=!1)=>{const s=e.$hostElement$,n=e.$cmpMeta$,a=e.$vnode$||B(null,null),l=Be(t)?t:le(null,null,t);if(M=s.tagName,n.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},n.$attrsToReflect$.map(([o,i])=>l.$attrs$[i]=s[o])),r&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,_=s["s-sc"],n.$flags$&1,w(a,l,r)},ge=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ge(e,e.$ancestorComponent$),Ie(()=>Je(e,t))},Je=(e,t)=>{const r=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${r.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 a;return t&&(a=O(n,"componentWillLoad")),s(),Ke(a,()=>Ze(e,n,t))},Ke=(e,t)=>Qe(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),Qe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ze=(e,t,r)=>P(exports,null,function*(){var s;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];r&&Me(e);const o=S("render",e.$cmpMeta$.$tagName$);Ne(e,t,n,r),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(s=n["s-p"])!=null?s:[],$=()=>Ve(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ne=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ye(e,t,s)}catch(n){b(n,e.$hostElement$)}return null},Ve=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=S("postUpdate",t),n=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ye(r),O(n,"componentDidLoad"),s(),e.$onReadyResolve$(r),a||pe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&D(()=>W(e,!1)),e.$flags$&=-517},pe=e=>{ye(m.documentElement),D(()=>oe(j,"appload",{detail:{namespace:Ee}}))},O=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){b(s)}},ye=e=>{var t;return e.classList.add((t=ke.hydratedSelectorName)!=null?t:"hydrated")},et=(e,t)=>E(e).$instanceValues$.get(t),tt=(e,t,r,s)=>{const n=E(e);if(!n)throw new Error(`Couldn't find host element for "${s.$tagName$}" 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 a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;r=qe(r,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(r),c=r!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,r),i)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(u=>{try{i[u](r,l,t)}catch(d){b(d,a)}})}(o&18)===2&&W(n,!1)}},me=(e,t,r)=>{var s,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[i]])=>{(i&31||r&2&&i&32)&&Object.defineProperty(a,o,{get(){return et(this,o)},set($){tt(this,o,$,t)},configurable:!0,enumerable:!0})}),r&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var f;const u=o.get(i);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(a.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=d.$lazyInstance$,y=(f=t.$watchers$)==null?void 0:f[i];y==null||y.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,i)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{var c;const f=$[1]||i;return o.set(f,i),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([i,f])),f})]))}}return e},st=(e,t,r,s)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,r.$lazyBundleId$){const i=xe(r);if(i&&"then"in i){const c=Ce();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(r.$watchers$=n.watchers,me(n,r,2),n.isProxied=!0);const $=S("createInstance",r.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$(),q(t.$lazyInstance$)}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=$e(r);if(!L.has($)){const c=S("registerStyles",r.$tagName$);De($,i,!!(r.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>W(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),q=e=>{O(e,"connectedCallback")},nt=e=>{if(!(g.$flags$&1)){const t=E(e),r=t.$cmpMeta$,s=S("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$?q(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>q(t.$lazyInstance$));else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ge(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),st(e,t,r)}s()}},V=e=>{O(e,"disconnectedCallback")},rt=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var r;const s=S(),n=[],a=t.exclude||[],l=j.customElements,o=m.head,i=o.querySelector("meta[charset]"),$=m.createElement("style"),c=[];let f,u=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(h=>{var y;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(d=!0),p.$members$=h[2],p.$attrsToReflect$=[],p.$watchers$=(y=h[4])!=null?y:{};const T=p.$tagName$,Se=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,Pe(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):g.jmp(()=>nt(this))}disconnectedCallback(){g.jmp(()=>rt(this))}componentOnReady(){return E(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!a.includes(T)&&!l.get(T)&&(n.push(T),l.define(T,me(Se,p,1)))})}),n.length>0&&(d&&($.textContent+=ee),$.textContent+=n.sort()+_e,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(r=g.$nonce$)!=null?r:ne(m);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,i?i.nextSibling:o.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(pe,30)),s()};exports.Host=ae;exports.bootstrapLazy=lt;exports.createEvent=Re;exports.getElement=ie;exports.h=le;exports.promiseResolve=te;exports.registerInstance=Te;
|
|
1
|
+
"use strict";var P=(e,t,r)=>new Promise((s,n)=>{var a=i=>{try{o(r.next(i))}catch($){n($)}},l=i=>{try{o(r.throw(i))}catch($){n($)}},o=i=>i.done?s(i.value):Promise.resolve(i.value).then(a,l);o((r=r.apply(e,t)).next())});const Ee="casino-play-random-game",ke={hydratedSelectorName:"hydrated"};var be=Object.defineProperty,we=(e,t)=>{for(var r in t)be(e,r,{get:t[r],enumerable:!0})},R=new WeakMap,E=e=>R.get(e),Te=(e,t)=>R.set(t.$lazyInstance$=e,t),Pe=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],R.set(e,r)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),z=new Map,xe=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=z.get(n);if(a)return a[s];{const l=o=>(z.set(n,o),o[s]);switch(n){case"casino-play-random-game_2":return Promise.resolve().then(()=>require("./casino-play-random-game_2-ZYQBmsCp.cjs")).then(l,b)}}return import(`./${n}.entry.js`).then(l=>(z.set(n,l),l[s]),b)},L=new Map,_e="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",j=typeof window!="undefined"?window:{},m=j.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Ae=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),U=!1,X=[],se=[],Le=(e,t)=>r=>{e.push(r),U||(U=!0,g.$flags$&4?D(H):g.raf(H))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){b(r)}e.length=0},H=()=>{Y(X),Y(se),(U=X.length>0)&&g.raf(H)},D=e=>te().then(e),Ie=Le(se),J={},je=e=>e!=null,F=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,r,s;return(s=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?s:void 0}var Oe={};we(Oe,{err:()=>re,map:()=>ze,ok:()=>C,unwrap:()=>Ue,unwrapErr:()=>He});var C=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function ze(e,t){if(e.isOk){const r=t(e.value);return r instanceof Promise?r.then(s=>C(s)):C(r)}if(e.isErr){const r=e.value;return re(r)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},Ce=(e,t)=>()=>{},le=(e,t,...r)=>{let s=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?i(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!F(s))&&(s=String(s)),a&&l?o[o.length-1].$text$+=s:o.push(a?B(null,s):s),l=a)};if(i(r),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=B(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},B=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},ae={},Be=e=>e&&e.$tag$===ae,qe=(e,t)=>e!=null&&!F(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ie=e=>E(e).$hostElement$,Re=(e,t,r)=>{const s=ie(e);return{emit:n=>oe(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},oe=(e,t,r)=>{const s=g.ce(t,r);return e.dispatchEvent(s),s},K=new WeakMap,De=(e,t,r)=>{let s=L.get(e);Ae&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,L.set(e,s)},Fe=(e,t,r)=>{var s;const n=$e(t),a=L.get(n);if(e=e.nodeType===11?e:m,a)if(typeof a=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(n)){{o=m.createElement("style"),o.innerHTML=a;const i=(s=g.$nonce$)!=null?s:ne(m);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Me=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,n=S("attachStyles",t.$tagName$),a=Fe(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=a,r.classList.add(a+"-h")),n()},$e=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,r,s,n,a)=>{if(r!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const i=e.classList,$=Z(r),c=Z(s);i.remove(...$.filter(f=>f&&!c.includes(f))),i.add(...c.filter(f=>f&&!$.includes(f)))}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(j,o)?t=o.slice(2):t=o[2]+t.slice(3),r||s){const i=t.endsWith(ce);t=t.replace(Ge,""),r&&g.rel(e,t,r,i),s&&g.ael(e,t,s,i)}}else{const i=F(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(r==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||a&4||n)&&!i&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],ce="Capture",Ge=new RegExp(ce+"$"),fe=(e,t,r)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||J,a=t.$attrs$||J;for(const l of N(Object.keys(n)))l in a||Q(s,l,n[l],void 0,r,t.$flags$);for(const l of N(Object.keys(a)))Q(s,l,n[l],a[l],r,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var _,M,ue=!1,I=(e,t,r,s)=>{const n=t.$children$[r];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=m.createTextNode(n.$text$);else if(l=n.$elm$=m.createElement(n.$tag$),fe(null,n,ue),je(_)&&l["s-si"]!==_&&l.classList.add(l["s-si"]=_),n.$children$)for(a=0;a<n.$children$.length;++a)o=I(e,n,a),o&&l.appendChild(o);return l["s-hn"]=M,l},de=(e,t,r,s,n,a)=>{let l=e,o;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);n<=a;++n)s[n]&&(o=I(null,r,n),o&&(s[n].$elm$=o,A(l,o,t)))},ve=(e,t,r)=>{for(let s=t;s<=r;++s){const n=e[s];if(n){const a=n.$elm$;he(n),a&&a.remove()}}},Xe=(e,t,r,s,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],f=t[$],u=s.length-1,d=s[0],v=s[u],h,y;for(;a<=$&&l<=u;)if(c==null)c=t[++a];else if(f==null)f=t[--$];else if(d==null)d=s[++l];else if(v==null)v=s[--u];else if(x(c,d,n))w(c,d,n),c=t[++a],d=s[++l];else if(x(f,v,n))w(f,v,n),f=t[--$],v=s[--u];else if(x(c,v,n))w(c,v,n),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++a],v=s[--u];else if(x(f,d,n))w(f,d,n),A(e,f.$elm$,c.$elm$),f=t[--$],d=s[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(y=t[o],y.$tag$!==d.$tag$?h=I(t&&t[l],r,o):(w(y,d,n),t[o]=void 0,h=y.$elm$),d=s[++l]):(h=I(t&&t[l],r,l),d=s[++l]),h&&A(c.$elm$.parentNode,h,c.$elm$)}a>$?de(e,s[u+1]==null?null:s[u+1].$elm$,r,s,l,u):l>u&&ve(t,a,$)},x=(e,t,r=!1)=>e.$tag$===t.$tag$?r?!0:e.$key$===t.$key$:!1,w=(e,t,r=!1)=>{const s=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(fe(e,t,ue),n!==null&&a!==null?Xe(s,n,t,a,r):a!==null?(e.$text$!==null&&(s.textContent=""),de(s,null,t,a,0,a.length-1)):n!==null&&ve(n,0,n.length-1)):e.$text$!==l&&(s.data=l)},he=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(he)},A=(e,t,r)=>e==null?void 0:e.insertBefore(t,r),Ye=(e,t,r=!1)=>{const s=e.$hostElement$,n=e.$cmpMeta$,a=e.$vnode$||B(null,null),l=Be(t)?t:le(null,null,t);if(M=s.tagName,n.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},n.$attrsToReflect$.map(([o,i])=>l.$attrs$[i]=s[o])),r&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=a.$elm$=s.shadowRoot||s,_=s["s-sc"],n.$flags$&1,w(a,l,r)},ge=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ge(e,e.$ancestorComponent$),Ie(()=>Je(e,t))},Je=(e,t)=>{const r=e.$hostElement$,s=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${r.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 a;return t&&(a=O(n,"componentWillLoad")),s(),Ke(a,()=>Ze(e,n,t))},Ke=(e,t)=>Qe(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),Qe=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ze=(e,t,r)=>P(exports,null,function*(){var s;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];r&&Me(e);const o=S("render",e.$cmpMeta$.$tagName$);Ne(e,t,n,r),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(s=n["s-p"])!=null?s:[],$=()=>Ve(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ne=(e,t,r,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ye(e,t,s)}catch(n){b(n,e.$hostElement$)}return null},Ve=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=S("postUpdate",t),n=e.$lazyInstance$,a=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ye(r),O(n,"componentDidLoad"),s(),e.$onReadyResolve$(r),a||pe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&D(()=>W(e,!1)),e.$flags$&=-517},pe=e=>{ye(m.documentElement),D(()=>oe(j,"appload",{detail:{namespace:Ee}}))},O=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){b(s)}},ye=e=>{var t;return e.classList.add((t=ke.hydratedSelectorName)!=null?t:"hydrated")},et=(e,t)=>E(e).$instanceValues$.get(t),tt=(e,t,r,s)=>{const n=E(e);if(!n)throw new Error(`Couldn't find host element for "${s.$tagName$}" 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 a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;r=qe(r,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(r),c=r!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,r),i)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(u=>{try{i[u](r,l,t)}catch(d){b(d,a)}})}(o&18)===2&&W(n,!1)}},me=(e,t,r)=>{var s,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[i]])=>{(i&31||r&2&&i&32)&&Object.defineProperty(a,o,{get(){return et(this,o)},set($){tt(this,o,$,t)},configurable:!0,enumerable:!0})}),r&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var f;const u=o.get(i);if(this.hasOwnProperty(u))c=this[u],delete this[u];else{if(a.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==c)return;if(u==null){const d=E(this),v=d==null?void 0:d.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=d.$lazyInstance$,y=(f=t.$watchers$)==null?void 0:f[i];y==null||y.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,i)})}return}}this[u]=c===null&&typeof this[u]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{var c;const f=$[1]||i;return o.set(f,i),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([i,f])),f})]))}}return e},st=(e,t,r,s)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,r.$lazyBundleId$){const i=xe(r);if(i&&"then"in i){const c=Ce();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(r.$watchers$=n.watchers,me(n,r,2),n.isProxied=!0);const $=S("createInstance",r.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$(),q(t.$lazyInstance$)}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=$e(r);if(!L.has($)){const c=S("registerStyles",r.$tagName$);De($,i,!!(r.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>W(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),q=e=>{O(e,"connectedCallback")},nt=e=>{if(!(g.$flags$&1)){const t=E(e),r=t.$cmpMeta$,s=S("connectedCallback",r.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$?q(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>q(t.$lazyInstance$));else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ge(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),st(e,t,r)}s()}},V=e=>{O(e,"disconnectedCallback")},rt=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=E(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var r;const s=S(),n=[],a=t.exclude||[],l=j.customElements,o=m.head,i=o.querySelector("meta[charset]"),$=m.createElement("style"),c=[];let f,u=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let d=!1;if(e.map(v=>{v[1].map(h=>{var y;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(d=!0),p.$members$=h[2],p.$attrsToReflect$=[],p.$watchers$=(y=h[4])!=null?y:{};const T=p.$tagName$,Se=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,Pe(k,p),p.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){E(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),u?c.push(this):g.jmp(()=>nt(this))}disconnectedCallback(){g.jmp(()=>rt(this))}componentOnReady(){return E(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!a.includes(T)&&!l.get(T)&&(n.push(T),l.define(T,me(Se,p,1)))})}),n.length>0&&(d&&($.textContent+=ee),$.textContent+=n.sort()+_e,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(r=g.$nonce$)!=null?r:ne(m);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,i?i.nextSibling:o.firstChild)}u=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(pe,30)),s()};exports.Host=ae;exports.bootstrapLazy=lt;exports.createEvent=Re;exports.getElement=ie;exports.h=le;exports.promiseResolve=te;exports.registerInstance=Te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-BWEKzqTN.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.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 a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" 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 a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
|
|
1
|
+
"use strict";var P=(e,t,s)=>new Promise((r,n)=>{var a=i=>{try{o(s.next(i))}catch($){n($)}},l=i=>{try{o(s.throw(i))}catch($){n($)}},o=i=>i.done?r(i.value):Promise.resolve(i.value).then(a,l);o((s=s.apply(e,t)).next())});const ue="ui-skeleton",fe={hydratedSelectorName:"hydrated"};var de=Object.defineProperty,me=(e,t)=>{for(var s in t)de(e,s,{get:t[s],enumerable:!0})},U=new WeakMap,b=e=>U.get(e),ve=(e,t)=>U.set(t.$lazyInstance$=e,t),ge=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],U.set(e,s)},E=(e,t)=>(0,console.error)(e,t),O=new Map,he=(e,t,s)=>{const r=e.$tagName$.replace(/-/g,"_"),n=e.$lazyBundleId$;if(!n)return;const a=O.get(n);if(a)return a[r];{const l=o=>(O.set(n,o),o[r]);switch(n){case"ui-skeleton":return Promise.resolve().then(()=>require("./ui-skeleton-TOJItxHv.cjs")).then(l,E)}}return import(`./${n}.entry.js`).then(l=>(O.set(n,l),l[r]),E)},L=new Map,pe="{visibility:hidden}.hydrated{visibility:inherit}",J="slot-fb{display:contents}slot-fb[hidden]{display:none}",B=typeof window!="undefined"?window:{},y=B.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,r)=>e.addEventListener(t,s,r),rel:(e,t,s,r)=>e.removeEventListener(t,s,r),ce:(e,t)=>new CustomEvent(e,t)},K=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),A=!1,C=[],Q=[],Se=(e,t)=>s=>{e.push(s),A||(A=!0,g.$flags$&4?z(I):g.raf(I))},D=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){E(s)}e.length=0},I=()=>{D(C),D(Q),(A=C.length>0)&&g.raf(I)},z=e=>K().then(e),be=Se(Q),F={},X=e=>(e=typeof e,e==="object"||e==="function");function Z(e){var t,s,r;return(r=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?r:void 0}var ke={};me(ke,{err:()=>R,map:()=>Ee,ok:()=>H,unwrap:()=>we,unwrapErr:()=>Pe});var H=e=>({isOk:!0,isErr:!1,value:e}),R=e=>({isOk:!1,isErr:!0,value:e});function Ee(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(r=>H(r)):H(s)}if(e.isErr){const s=e.value;return R(s)}throw"should never get here"}var we=e=>{if(e.isOk)return e.value;throw e.value},Pe=e=>{if(e.isErr)return e.value;throw e.value},S=(e,t="")=>()=>{},xe=(e,t)=>()=>{},V=(e,t,...s)=>{let r=null,n=null,a=!1,l=!1;const o=[],i=c=>{for(let u=0;u<c.length;u++)r=c[u],Array.isArray(r)?i(r):r!=null&&typeof r!="boolean"&&((a=typeof e!="function"&&!X(r))&&(r=String(r)),a&&l?o[o.length-1].$text$+=r:o.push(a?N(null,r):r),l=a)};if(i(s),t){t.key&&(n=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(u=>c[u]).join(" "))}}const $=N(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=n,$},N=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s},ee={},Te=e=>e&&e.$tag$===ee,Le=(e,t)=>e!=null&&!X(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,_e=(e,t,s)=>{const r=g.ce(t,s);return e.dispatchEvent(r),r},M=new WeakMap,je=(e,t,s)=>{let r=L.get(e);ye&&s?(r=r||new CSSStyleSheet,typeof r=="string"?r=t:r.replaceSync(t)):r=t,L.set(e,r)},Oe=(e,t,s)=>{var r;const n=te(t),a=L.get(n);if(e=e.nodeType===11?e:y,a)if(typeof a=="string"){e=e.head||e;let l=M.get(e),o;if(l||M.set(e,l=new Set),!l.has(n)){{o=y.createElement("style"),o.innerHTML=a;const i=(r=g.$nonce$)!=null?r:Z(y);i!=null&&o.setAttribute("nonce",i),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=J),l&&l.add(n)}}else e.adoptedStyleSheets.includes(a)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,a]);return n},Ae=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,r=S("attachStyles",t.$tagName$);Oe(s.getRootNode(),t),r()},te=(e,t)=>"sc-"+e.$tagName$,W=(e,t,s,r,n,a)=>{if(s!==r&&(t.toLowerCase(),t==="class")){const l=e.classList,o=Y(s),i=Y(r);l.remove(...o.filter($=>$&&!i.includes($))),l.add(...i.filter($=>$&&!o.includes($)))}},Ie=/\s/,Y=e=>e?e.split(Ie):[],ne=(e,t,s)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||F,a=t.$attrs$||F;for(const l of G(Object.keys(n)))l in a||W(r,l,n[l],void 0);for(const l of G(Object.keys(a)))W(r,l,n[l],a[l])};function G(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var se,_=(e,t,s,r)=>{const n=t.$children$[s];let a=0,l,o;if(n.$text$!==null)l=n.$elm$=y.createTextNode(n.$text$);else if(l=n.$elm$=y.createElement(n.$tag$),ne(null,n),n.$children$)for(a=0;a<n.$children$.length;++a)o=_(e,n,a),o&&l.appendChild(o);return l["s-hn"]=se,l},re=(e,t,s,r,n,a)=>{let l=e,o;for(;n<=a;++n)r[n]&&(o=_(null,s,n),o&&(r[n].$elm$=o,T(l,o,t)))},le=(e,t,s)=>{for(let r=t;r<=s;++r){const n=e[r];if(n){const a=n.$elm$;a&&a.remove()}}},He=(e,t,s,r,n=!1)=>{let a=0,l=0,o=0,i=0,$=t.length-1,c=t[0],u=t[$],f=r.length-1,d=r[0],m=r[f],v,h;for(;a<=$&&l<=f;)if(c==null)c=t[++a];else if(u==null)u=t[--$];else if(d==null)d=r[++l];else if(m==null)m=r[--f];else if(x(c,d,n))k(c,d,n),c=t[++a],d=r[++l];else if(x(u,m,n))k(u,m,n),u=t[--$],m=r[--f];else if(x(c,m,n))k(c,m,n),T(e,c.$elm$,u.$elm$.nextSibling),c=t[++a],m=r[--f];else if(x(u,d,n))k(u,d,n),T(e,u.$elm$,c.$elm$),u=t[--$],d=r[++l];else{for(o=-1,i=a;i<=$;++i)if(t[i]&&t[i].$key$!==null&&t[i].$key$===d.$key$){o=i;break}o>=0?(h=t[o],h.$tag$!==d.$tag$?v=_(t&&t[l],s,o):(k(h,d,n),t[o]=void 0,v=h.$elm$),d=r[++l]):(v=_(t&&t[l],s,l),d=r[++l]),v&&T(c.$elm$.parentNode,v,c.$elm$)}a>$?re(e,r[f+1]==null?null:r[f+1].$elm$,s,r,l,f):l>f&&le(t,a,$)},x=(e,t,s=!1)=>e.$tag$===t.$tag$?s?!0:e.$key$===t.$key$:!1,k=(e,t,s=!1)=>{const r=t.$elm$=e.$elm$,n=e.$children$,a=t.$children$,l=t.$text$;l===null?(ne(e,t),n!==null&&a!==null?He(r,n,t,a,s):a!==null?(e.$text$!==null&&(r.textContent=""),re(r,null,t,a,0,a.length-1)):n!==null&&le(n,0,n.length-1)):e.$text$!==l&&(r.data=l)},T=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),Ne=(e,t,s=!1)=>{const r=e.$hostElement$,n=e.$vnode$||N(null,null),a=Te(t)?t:V(null,null,t);if(se=r.tagName,s&&a.$attrs$)for(const l of Object.keys(a.$attrs$))r.hasAttribute(l)&&!["key","ref","style","class"].includes(l)&&(a.$attrs$[l]=r[l]);a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=n.$elm$=r,k(n,a,s)},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},q=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ae(e,e.$ancestorComponent$),be(()=>Ue(e,t))},Ue=(e,t)=>{const s=e.$hostElement$,r=S("scheduleUpdate",e.$cmpMeta$.$tagName$),n=e.$lazyInstance$;if(!n)throw new Error(`Can't render component <${s.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 a;return r(),Be(a,()=>qe(e,n,t))},Be=(e,t)=>ze(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),ze=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",qe=(e,t,s)=>P(exports,null,function*(){var r;const n=e.$hostElement$,a=S("update",e.$cmpMeta$.$tagName$),l=n["s-rc"];s&&Ae(e);const o=S("render",e.$cmpMeta$.$tagName$);Ce(e,t,n,s),l&&(l.map(i=>i()),n["s-rc"]=void 0),o(),a();{const i=(r=n["s-p"])!=null?r:[],$=()=>De(e);i.length===0?$():(Promise.all(i).then($),e.$flags$|=4,i.length=0)}}),Ce=(e,t,s,r)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Ne(e,t,r)}catch(n){E(n,e.$hostElement$)}return null},De=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,r=S("postUpdate",t),n=e.$ancestorComponent$;e.$flags$&64?r():(e.$flags$|=64,oe(s),r(),e.$onReadyResolve$(s),n||ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&z(()=>q(e,!1)),e.$flags$&=-517},ie=e=>{oe(y.documentElement),z(()=>_e(B,"appload",{detail:{namespace:ue}}))},oe=e=>{var t;return e.classList.add((t=fe.hydratedSelectorName)!=null?t:"hydrated")},Fe=(e,t)=>b(e).$instanceValues$.get(t),Me=(e,t,s,r)=>{const n=b(e);if(!n)throw new Error(`Couldn't find host element for "${r.$tagName$}" 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 a=n.$hostElement$,l=n.$instanceValues$.get(t),o=n.$flags$,i=n.$lazyInstance$;s=Le(s,r.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(s),c=s!==l&&!$;if((!(o&8)||l===void 0)&&c&&(n.$instanceValues$.set(t,s),i)){if(r.$watchers$&&o&128){const u=r.$watchers$[t];u&&u.map(f=>{try{i[f](s,l,t)}catch(d){E(d,a)}})}(o&18)===2&&q(n,!1)}},$e=(e,t,s)=>{var r,n;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((r=t.$members$)!=null?r:{});if(l.map(([o,[i]])=>{(i&31||s&2&&i&32)&&Object.defineProperty(a,o,{get(){return Fe(this,o)},set($){Me(this,o,$,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;a.attributeChangedCallback=function(i,$,c){g.jmp(()=>{var u;const f=o.get(i);if(this.hasOwnProperty(f))c=this[f],delete this[f];else{if(a.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==c)return;if(f==null){const d=b(this),m=d==null?void 0:d.$flags$;if(m&&!(m&8)&&m&128&&c!==$){const v=d.$lazyInstance$,h=(u=t.$watchers$)==null?void 0:u[i];h==null||h.forEach(p=>{v[p]!=null&&v[p].call(v,c,$,i)})}return}}this[f]=c===null&&typeof this[f]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...l.filter(([i,$])=>$[0]&15).map(([i,$])=>{const c=$[1]||i;return o.set(c,i),c})]))}}return e},We=(e,t,s,r)=>P(exports,null,function*(){let n;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const i=he(s);if(i&&"then"in i){const c=xe();n=yield i,c()}else n=i;if(!n)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);n.isProxied||(s.$watchers$=n.watchers,$e(n,s,2),n.isProxied=!0);const $=S("createInstance",s.$tagName$);t.$flags$|=8;try{new n(t)}catch(c){E(c)}t.$flags$&=-9,t.$flags$|=128,$()}else{n=e.constructor;const i=e.localName;customElements.whenDefined(i).then(()=>t.$flags$|=128)}if(n&&n.style){let i;typeof n.style=="string"&&(i=n.style);const $=te(s);if(!L.has($)){const c=S("registerStyles",s.$tagName$);je($,i,!!(s.$flags$&1)),c()}}}const a=t.$ancestorComponent$,l=()=>q(t,!0);a&&a["s-rc"]?a["s-rc"].push(l):l()}),Ye=e=>{},Ge=e=>{if(!(g.$flags$&1)){const t=b(e),s=t.$cmpMeta$,r=S("connectedCallback",s.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Ye());else{t.$flags$|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}s.$members$&&Object.entries(s.$members$).map(([n,[a]])=>{if(a&31&&e.hasOwnProperty(n)){const l=e[n];delete e[n],e[n]=l}}),We(e,t,s)}r()}},Je=e=>{},Ke=e=>P(exports,null,function*(){if(!(g.$flags$&1)){const t=b(e);t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Je())}}),Qe=(e,t={})=>{var s;const r=S(),n=[],a=t.exclude||[],l=B.customElements,o=y.head,i=o.querySelector("meta[charset]"),$=y.createElement("style"),c=[];let u,f=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",y.baseURI).href;let d=!1;if(e.map(m=>{m[1].map(v=>{var h;const p={$flags$:v[0],$tagName$:v[1],$members$:v[2],$listeners$:v[3]};p.$flags$&4&&(d=!0),p.$members$=v[2],p.$watchers$=(h=v[4])!=null?h:{};const w=p.$tagName$,ce=class extends HTMLElement{constructor(j){super(j),this.hasRegisteredEventListeners=!1,j=this,ge(j,p)}connectedCallback(){b(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),u&&(clearTimeout(u),u=null),f?c.push(this):g.jmp(()=>Ge(this))}disconnectedCallback(){g.jmp(()=>Ke(this))}componentOnReady(){return b(this).$onReadyPromise$}};p.$lazyBundleId$=m[0],!a.includes(w)&&!l.get(w)&&(n.push(w),l.define(w,$e(ce,p,1)))})}),n.length>0&&(d&&($.textContent+=J),$.textContent+=n.sort()+pe,$.innerHTML.length)){$.setAttribute("data-styles","");const m=(s=g.$nonce$)!=null?s:Z(y);m!=null&&$.setAttribute("nonce",m),o.insertBefore($,i?i.nextSibling:o.firstChild)}f=!1,c.length?c.map(m=>m.connectedCallback()):g.jmp(()=>u=setTimeout(ie,30)),r()};exports.Host=ee;exports.bootstrapLazy=Qe;exports.h=V;exports.promiseResolve=K;exports.registerInstance=ve;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var l=e=>{try{n(i.next(e))}catch(a){s(a)}},m=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(l,m);n((i=i.apply(t,r)).next())});const u=require("./index-97d17652-zTl06Vn9.cjs"),g=require("./app-globals-0f993ce5-
|
|
1
|
+
"use strict";var c=(t,r,i)=>new Promise((d,s)=>{var l=e=>{try{n(i.next(e))}catch(a){s(a)}},m=e=>{try{n(i.throw(e))}catch(a){s(a)}},n=e=>e.done?d(e.value):Promise.resolve(e.value).then(l,m);n((i=i.apply(t,r)).next())});const u=require("./index-97d17652-zTl06Vn9.cjs"),g=require("./app-globals-0f993ce5-3HCMFTIi.cjs");var o=typeof document!="undefined"?document.currentScript:null,h=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("stencil/ui-image-BNLichPz.cjs",document.baseURI).href,r={};return t!==""&&(r.resourcesUrl=new URL(".",t).href),u.promiseResolve(r)};h().then(t=>c(exports,null,function*(){return yield g.globalScripts$2(),u.bootstrapLazy([["ui-image_2",[[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],t)}));
|
|
@@ -15,7 +15,7 @@ var n = (r, e, a) => new Promise((m, s) => {
|
|
|
15
15
|
i((a = a.apply(r, e)).next());
|
|
16
16
|
});
|
|
17
17
|
import { b as c, p as l } from "./index-97d17652-BOr4KAqq.js";
|
|
18
|
-
import {
|
|
18
|
+
import { b as d } from "./app-globals-0f993ce5-DYjuqKIH.js";
|
|
19
19
|
var h = () => {
|
|
20
20
|
const r = import.meta.url, e = {};
|
|
21
21
|
return r !== "" && (e.resourcesUrl = new URL(".", r).href), l(e);
|