@everymatrix/casino-page-nd 1.59.0 → 1.59.2
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-DSG6g7xU.js → CasinoCalendar-Bm8jJ1Mr.js} +1131 -1106
- package/components/CasinoCalendar-DBpyNdzX.cjs +19 -0
- package/components/{CasinoCalendar-DiZrkgaV.js → CasinoCalendar-DttQUJ_p.js} +877 -852
- package/components/{CasinoCalendarDailyDetails-Dv1jxPLQ.js → CasinoCalendarDailyDetails-BRtEBxYn.js} +48 -48
- package/components/{CasinoCalendarDailyDetails-DNnl20nr.cjs → CasinoCalendarDailyDetails-Cjdo10t8.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-CcuM0Eaq.js → CasinoCalendarDailyDetails-DesTWpk5.js} +48 -48
- package/components/{CasinoCalendarDailyItem-BBaphFv2.js → CasinoCalendarDailyItem-B4jvb1pM.js} +41 -41
- package/components/{CasinoCalendarDailyItem-HkwdKiaQ.cjs → CasinoCalendarDailyItem-D0zUyBnz.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-DateMcJ_.js → CasinoCalendarDailyItem-D7jrZ_LJ.js} +41 -41
- package/components/{CasinoCollectionsProviders-JONztOpa.js → CasinoCollectionsProviders-CYGBqFuD.js} +140 -137
- package/components/{CasinoCollectionsProviders-CQ42E76I.js → CasinoCollectionsProviders-LsjiLvS-.js} +136 -133
- package/components/{CasinoCollectionsProviders-DlyhZFGW.cjs → CasinoCollectionsProviders-NvzBTvSZ.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-CwvCXm1r.cjs → CasinoFavoritesSectionNd-BU_H-Cwa.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BSrQfl8F.js → CasinoFavoritesSectionNd-Bl8r84A3.js} +84 -84
- package/components/{CasinoFavoritesSectionNd-ATr7IIaY.js → CasinoFavoritesSectionNd-DgqUgnPb.js} +84 -84
- package/components/{CasinoFilter-D3nwp5eh.js → CasinoFilter-DBAa4rgv.js} +229 -230
- package/components/{CasinoFilter-DTSqCXdO.js → CasinoFilter-DC7UpKxg.js} +243 -242
- package/components/CasinoFilter-DVMmkZnS.cjs +1 -0
- package/components/{CasinoGameThumbnailNd-iZtSs_jC.js → CasinoGameThumbnailNd-CYg2FAUk.js} +1424 -1408
- package/components/CasinoGameThumbnailNd-C_15hyfI.cjs +39 -0
- package/components/{CasinoGameThumbnailNd-Bbz2LIXF.js → CasinoGameThumbnailNd-uEJomZ9h.js} +1456 -1440
- package/components/{CasinoGamesCategorySectionNd-CD6gB3VP.cjs → CasinoGamesCategorySectionNd-CleR81HR.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-CfFKc9wx.js → CasinoGamesCategorySectionNd-D0Ai5-RT.js} +368 -363
- package/components/{CasinoGamesCategorySectionNd-CxoRqMJF.js → CasinoGamesCategorySectionNd-DdFLyOsp.js} +375 -370
- package/components/CasinoJackpotBanner-BgpQokE3.cjs +1 -0
- package/components/{CasinoJackpotBanner-DhUCd87f.js → CasinoJackpotBanner-C2j1yUXk.js} +246 -241
- package/components/{CasinoJackpotBanner-CB4S1SRX.js → CasinoJackpotBanner-CFJR1YWM.js} +198 -193
- package/components/{CasinoLastPlayedSectionNd-CYAcEpfP.cjs → CasinoLastPlayedSectionNd-C4xNg-EE.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-B-n269-s.js → CasinoLastPlayedSectionNd-CQNlYKvE.js} +40 -40
- package/components/{CasinoLastPlayedSectionNd-CQPUK7a2.js → CasinoLastPlayedSectionNd-DCty3Jqc.js} +40 -40
- package/components/{CasinoMostPlayedSectionNd-Bp6uBo0l.cjs → CasinoMostPlayedSectionNd-BDi2oS49.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-DCpLfek7.js → CasinoMostPlayedSectionNd-BRlZx2lF.js} +49 -49
- package/components/{CasinoMostPlayedSectionNd-nE2y7G8a.js → CasinoMostPlayedSectionNd-BYfiOjBt.js} +49 -49
- package/components/{CasinoMyGamesNd-CGwaiRfg.js → CasinoMyGamesNd-BPIFWLpA.js} +43 -43
- package/components/{CasinoMyGamesNd-BO_tVNke.js → CasinoMyGamesNd-CTnKfOJD.js} +42 -42
- package/components/{CasinoMyGamesNd-Cro1d_2s.cjs → CasinoMyGamesNd-DpatylQh.cjs} +1 -1
- package/components/{CasinoPageNd-DXpri24n.js → CasinoPageNd-ChEHSnRJ.js} +1560 -1509
- package/components/{CasinoPageNd-EyQHuFWR.js → CasinoPageNd-DO4djyEb.js} +1553 -1502
- package/components/CasinoPageNd-kz_2FL7R.cjs +1 -0
- package/components/{CasinoRandomGame-C723vTme.cjs → CasinoRandomGame-C1nrrW2N.cjs} +1 -1
- package/components/{CasinoRandomGame-BdTCJXjk.js → CasinoRandomGame-D3B5tI8S.js} +74 -74
- package/components/{CasinoRandomGame-Cs6Mh9-O.js → CasinoRandomGame-DfLR0r0i.js} +77 -77
- package/components/{CasinoSearchNd-BeAkV3B-.js → CasinoSearchNd--nhdFpqz.js} +53 -53
- package/components/{CasinoSearchNd-B5CiyikN.cjs → CasinoSearchNd-BKnd-5lF.cjs} +1 -1
- package/components/{CasinoSearchNd-DPtiOjMG.js → CasinoSearchNd-C_vPqLL1.js} +53 -53
- package/components/{CasinoSort-C9FqhPn1.js → CasinoSort-BU6PWDpY.js} +111 -110
- package/components/{CasinoSort-DJGB2rWX.js → CasinoSort-DX5EmYm_.js} +103 -104
- package/components/{CasinoSort-d7HpFn0y.cjs → CasinoSort-DcG0TUN4.cjs} +1 -1
- package/components/{CasinoWinners-KCECqhoF.js → CasinoWinners-BOa69aMH.js} +173 -170
- package/components/{CasinoWinners-Djt0qjWA.js → CasinoWinners-CYRn98z1.js} +168 -165
- package/components/{CasinoWinners-Br-OwXS1.cjs → CasinoWinners-DwOZC8ON.cjs} +1 -1
- package/components/{GeneralAnimationLoading-Dy1zCPsz.cjs → GeneralAnimationLoading-B40sJaX7.cjs} +1 -1
- package/components/{GeneralAnimationLoading-Dha7DXjj.js → GeneralAnimationLoading-CXZNRm34.js} +16 -16
- package/components/{GeneralAnimationLoading-jXOehNwh.js → GeneralAnimationLoading-D0rjnOL3.js} +16 -16
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +3 -2
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{casino-play-random-game-BOnTgUqC.js → casino-play-random-game-BW66Civ1.js} +20 -18
- package/stencil/{casino-play-random-game-NcJEjFWA.js → casino-play-random-game-Bk7toWLj.js} +19 -17
- package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CKM_xKne.cjs} +2 -2
- package/stencil/index-ab3202d6-BW1TSmQg.js +575 -0
- package/stencil/index-ab3202d6-C6VFhXtX.cjs +1 -0
- package/stencil/index-ab3202d6-CkTejM5U.js +559 -0
- package/stencil/index-ae04a8b1-BvZmaj3p.js +532 -0
- package/stencil/index-ae04a8b1-DoeYpoC5.js +516 -0
- package/stencil/index-ae04a8b1-OBbo8Dzb.cjs +1 -0
- package/stencil/ui-skeleton-C02hm1pt.js +29 -0
- package/stencil/ui-skeleton-DET4YE0J.js +11 -0
- package/stencil/ui-skeleton-DlNNnOZy.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-7C4Fyb2d.js +122 -0
- package/stencil/ui-skeleton-a642cced-BhVS1i2r.cjs +1 -0
- package/stencil/ui-skeleton-a642cced-Dn9GOtgo.js +122 -0
- package/components/CasinoCalendar-df0Yv0_Y.cjs +0 -19
- package/components/CasinoFilter-w2jN5tFN.cjs +0 -1
- package/components/CasinoGameThumbnailNd-BH2dRX58.cjs +0 -39
- package/components/CasinoJackpotBanner-Bc1JKlzX.cjs +0 -1
- package/components/CasinoPageNd-IQy9Bvjn.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-510a6ba4-1RrL4Z6e.js +0 -564
- package/stencil/index-510a6ba4-CNr-xCZE.js +0 -548
- package/stencil/index-510a6ba4-eEczisTR.cjs +0 -1
package/stencil/{casino-play-random-game-DjdZ0XM0.cjs → casino-play-random-game-CKM_xKne.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-
|
|
1
|
+
"use strict";var g=(n,e,a)=>new Promise((t,o)=>{var m=r=>{try{c(a.next(r))}catch(h){o(h)}},d=r=>{try{c(a.throw(r))}catch(h){o(h)}},c=r=>r.done?t(r.value):Promise.resolve(r.value).then(m,d);c((a=a.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-ab3202d6-C6VFhXtX.cjs"),x=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var p=typeof document!="undefined"?document.currentScript:null,b=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:p&&p.tagName.toUpperCase()==="SCRIPT"&&p.src||new URL("stencil/casino-play-random-game-CKM_xKne.cjs",document.baseURI).href,e={};return n!==""&&(e.resourcesUrl=new URL(".",n).href),i.promiseResolve(e)};b().then(n=>g(exports,null,function*(){return yield x.globalScripts(),i.bootstrapLazy([["casino-play-random-game",[[1,"casino-play-random-game",{endpoint:[513],datasource:[513],language:[513],specificCategory:[513,"specific-category"],iconVisible:[513,"icon-visible"],iconVisibleOnAnim:[513,"icon-visible-on-anim"],launchByGameCard:[513,"launch-by-game-card"],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],hasErrors:[32],isLoading:[32],gamesToShow:[32],selectedGame:[32],animationDone:[32],animationStarted:[32]},null,{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],n)}));const G=()=>{let n=window.navigator.userAgent;return n.toLowerCase().match(/android/i)?"Android":n.toLowerCase().match(/iphone/i)?"iPhone":n.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"},v="en",l={en:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},ro:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},fr:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},hr:{error:"Greška",randomGameLoading:"Učitavanje ...",playRandomGame:"Igraj nasumičnu igru",playNowRandomGame:"Igraj sada",spinRandomGame:"Zavrti"},hu:{error:"Error",randomGameLoading:"Loading ...",playRandomGame:"Play a random game",playNowRandomGame:"Play now",spinRandomGame:"Spin"},tr:{error:"Hata",randomGameLoading:"Yükleniyor...",playRandomGame:"Rasgele bir oyun oyna",playNowRandomGame:"Şimdi Oyna",spinRandomGame:"DEĞİŞTİR"}},u=n=>new Promise(e=>{fetch(n).then(a=>a.json()).then(a=>{Object.keys(a).forEach(t=>{l[t]||(l[t]={});for(let o in a[t])l[t][o]=a[t][o]}),e(!0)})}),s=(n,e)=>{const a=e;return l[a!==void 0&&a in l?a:v][n]};function f(n,e){if(n){const a=document.createElement("style");a.innerHTML=e,n.appendChild(a)}}function w(n,e){const a=new URL(e);fetch(a.href).then(t=>t.text()).then(t=>{const o=document.createElement("style");o.innerHTML=t,n&&n.appendChild(o)}).catch(t=>{console.error("There was an error while trying to load client styling from URL",t)})}function R(n,e,a){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(e,o=>{t.innerHTML=o,n&&n.appendChild(t)})}}const C=`:host {
|
|
2
2
|
display: block;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
-webkit-transform: translate3d(0, 0, 0);
|
|
@@ -368,4 +368,4 @@
|
|
|
368
368
|
width: 70px;
|
|
369
369
|
height: 85px;
|
|
370
370
|
}
|
|
371
|
-
}`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},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(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),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 n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),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 i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;
|
|
371
|
+
}`,S=C,y=class{constructor(n){i.registerInstance(this,n),this.dataLoaded=i.createEvent(this,"data-loaded",7),this.animation=null,this.selectedGameIndex=null,this.selectedGameEl=null,this.iconVisibility=null,this.shuffle=e=>{let a=e.length,t;for(;a!==0;)t=Math.floor(Math.random()*a),a--,[e[a],e[t]]=[e[t],e[a]];return e},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(n,e){n&&n!=e&&this.endpoint&&this.fetchGameList()}handleNewTranslations(){this.isLoading=!0,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleIsIconVisible(){this.iconVisibility=this.iconVisible==="true"}handleClientStylingChange(n,e){n!=e&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(n,e){n!=e&&this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl)}connectedCallback(){this.handleIsIconVisible()}componentWillLoad(){if(this.translationUrl.length>2&&u(this.translationUrl),this.endpoint&&this.language&&this.datasource)return this.fetchGameList()}componentDidLoad(){window.emMessageBus!=null?R(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&w(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchGameList(){let n=new URL(`${this.endpoint}/v1/casino/games`);return n.searchParams.append("platform",G()),n.searchParams.append("datasource",this.datasource),n.searchParams.append("fields","gId,id,href,thumbnail,name,vendor,launchUrl,subVendor"),n.searchParams.append("expand","vendor"),n.searchParams.append("pagination","offset=0,limit=423"),n.searchParams.append("language",this.language),this.specificCategory&&n.searchParams.append("filter",`categories(id=${this.specificCategory})`),new Promise((e,a)=>{this.isLoading=!0,fetch(n.href).then(t=>t.json()).then(t=>{this.gamesToShow=this.setUpGames(t==null?void 0:t.items),e(!0)}).catch(t=>{console.error(t),this.hasErrors=!0,a(t)}).finally(()=>{this.isLoading=!1,this.dataLoaded.emit({target:this.host})})})}setUpGames(n){const e=this.shuffle(n).slice(0,40);return e.concat(e)}selectRandomGame(){const n=this.gamesToShow.length/2;this.selectedGameIndex=Math.floor(Math.random()*(n-3)),this.selectedGameIndex+=n,this.selectedGameEl=this.gameContainer.children[this.selectedGameIndex]}playRandomGame(){this.animateGames(),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 n=window.getComputedStyle(this.gameContainer).getPropertyValue("gap"),e=parseInt(n,10),a=this.selectedGameEl.offsetWidth,t=this.gameContainer.offsetWidth,o=(a+e)*this.selectedGameIndex+a/2-t/2,m=[{transform:"translateX(0px)",scale:1},{scale:.75},{transform:`translateX(-${o}px)`,scale:1}],d={duration:3e3,easing:"cubic-bezier(0.5, 0, 0.5, 1.2)",fill:"forwards"};this.animation=this.gameContainer.animate(m,d),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 i.h("div",{class:"RandomButtonsWrapper"},i.h("div",{class:"RandomGameDetails"},i.h("span",{class:"RandomGameTitle"},this.selectedGame.name),i.h("span",{class:"RandomGameInfo",onClick:()=>this.showGameInfo()},"i")),i.h("div",{class:"RandomButtons"},i.h("button",{class:"RandomButton On",onClick:()=>this.respin()},s("spinRandomGame",this.language)),!this.launchByGameCard&&i.h("button",{class:"RandomButton On",onClick:()=>this.playGame()},s("playNowRandomGame",this.language))))}render(){if(this.hasErrors)return i.h("div",{class:"RandomGameError"},i.h("div",{class:"Title"},s("error",this.language)));if(this.isLoading)return i.h("div",{class:"RandomGameLoading"},i.h("div",{class:"Title"},s("randomGameLoading",this.language)));if(!this.isLoading)return i.h("div",{class:"RandomGameWrapper",ref:n=>this.stylingContainer=n},i.h("div",{class:"GameContainerGradient"}),i.h("div",{class:"GamesContainer",ref:n=>this.gameContainer=n},this.gamesToShow&&this.gamesToShow.map((n,e)=>i.h("div",{class:"RandomGameCard",key:e,onClick:this.launchByGameCard==="true"?()=>this.playGame():null},i.h("div",{class:"RandomGameVendor"},n.vendor.name),i.h("img",{class:"RandomGameImage",src:n.thumbnail,alt:n.name,title:n.name}),this.selectedGame&&this.selectedGameIndex===e&&this.renderGameDetails()))),i.h("div",{class:`ButtonWrapper ${this.animationDone?"HideAnimation":""}`},i.h("div",{class:"ButtonContainer"},this.iconVisibility&&i.h("div",{class:`ButtonIcon ${this.animationStarted?"Flip":""}`},i.h("div",{class:"QustionMark"},"?"),i.h("div",{class:"HexagonMarkShadow"}),i.h("div",{class:"HexagonMark"})),!this.animationStarted&&i.h("div",{class:`RandomButton ${this.animationStarted?"HideAnimation":""}`,onClick:()=>this.playRandomGame()},s("playRandomGame",this.language)))))}get host(){return i.getElement(this)}static get watchers(){return{endpoint:["watchEndpoint"],datasource:["watchEndpoint"],language:["watchEndpoint"],translationUrl:["handleNewTranslations"],iconVisible:["handleIsIconVisible"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};y.style=S;exports.casino_play_random_game=y;
|
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
var x = (e, t, n) => new Promise((s, r) => {
|
|
2
|
+
var l = (o) => {
|
|
3
|
+
try {
|
|
4
|
+
i(n.next(o));
|
|
5
|
+
} catch (c) {
|
|
6
|
+
r(c);
|
|
7
|
+
}
|
|
8
|
+
}, a = (o) => {
|
|
9
|
+
try {
|
|
10
|
+
i(n.throw(o));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
r(c);
|
|
13
|
+
}
|
|
14
|
+
}, i = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(l, a);
|
|
15
|
+
i((n = n.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
const me = "casino-play-random-game", ee = (
|
|
18
|
+
/* casino-play-random-game */
|
|
19
|
+
{ allRenderFn: !0, appendChildSlotFix: !1, asyncLoading: !0, asyncQueue: !1, attachStyles: !0, cloneNodeFix: !1, cmpDidLoad: !0, cmpDidRender: !1, cmpDidUnload: !1, cmpDidUpdate: !1, cmpShouldUpdate: !1, cmpWillLoad: !0, cmpWillRender: !1, cmpWillUpdate: !1, connectedCallback: !0, constructableCSS: !0, cssAnnotations: !0, devTools: !1, disconnectedCallback: !0, element: !1, event: !0, experimentalScopedSlotChanges: !1, experimentalSlotFixes: !1, formAssociated: !1, hasRenderFn: !0, hostListener: !1, hostListenerTarget: !1, hostListenerTargetBody: !1, hostListenerTargetDocument: !1, hostListenerTargetParent: !1, hostListenerTargetWindow: !1, hotModuleReplacement: !1, hydrateClientSide: !1, hydrateServerSide: !1, hydratedAttribute: !1, hydratedClass: !0, hydratedSelectorName: "hydrated", initializeNextTick: !1, invisiblePrehydration: !0, isDebug: !1, isDev: !1, isTesting: !1, lazyLoad: !0, lifecycle: !0, lifecycleDOMEvents: !1, member: !0, method: !1, mode: !1, observeAttribute: !0, profile: !1, prop: !0, propBoolean: !1, propMutable: !1, propNumber: !1, propString: !0, reflect: !0, scoped: !1, scopedSlotTextContentFix: !1, scriptDataOpts: !1, shadowDelegatesFocus: !1, shadowDom: !0, slot: !1, slotChildNodesFix: !1, slotRelocation: !1, state: !0, style: !0, svg: !1, taskQueue: !0, transformTagName: !1, updatable: !0, vdomAttribute: !0, vdomClass: !0, vdomFunctional: !1, vdomKey: !0, vdomListener: !0, vdomPropOrAttr: !0, vdomRef: !0, vdomRender: !0, vdomStyle: !1, vdomText: !0, vdomXlink: !1, watchCallback: !0 }
|
|
20
|
+
);
|
|
21
|
+
var Se = Object.defineProperty, be = (e, t) => {
|
|
22
|
+
for (var n in t)
|
|
23
|
+
Se(e, n, { get: t[n], enumerable: !0 });
|
|
24
|
+
}, F = /* @__PURE__ */ new WeakMap(), b = (e) => F.get(e), at = (e, t) => F.set(t.$lazyInstance$ = e, t), Ee = (e, t) => {
|
|
25
|
+
const n = {
|
|
26
|
+
$flags$: 0,
|
|
27
|
+
$hostElement$: e,
|
|
28
|
+
$cmpMeta$: t,
|
|
29
|
+
$instanceValues$: /* @__PURE__ */ new Map()
|
|
30
|
+
};
|
|
31
|
+
return n.$onReadyPromise$ = new Promise((s) => n.$onReadyResolve$ = s), e["s-p"] = [], e["s-rc"] = [], F.set(e, n);
|
|
32
|
+
}, X = (e, t) => t in e, k = (e, t) => (0, console.error)(e, t), j = /* @__PURE__ */ new Map(), ke = (e, t, n) => {
|
|
33
|
+
const s = e.$tagName$.replace(/-/g, "_"), r = e.$lazyBundleId$;
|
|
34
|
+
if (!r)
|
|
35
|
+
return;
|
|
36
|
+
const l = j.get(r);
|
|
37
|
+
if (l)
|
|
38
|
+
return l[s];
|
|
39
|
+
{
|
|
40
|
+
const a = (i) => (j.set(r, i), i[s]);
|
|
41
|
+
switch (r) {
|
|
42
|
+
case "casino-play-random-game":
|
|
43
|
+
return import(
|
|
44
|
+
/* webpackMode: "lazy" */
|
|
45
|
+
"./casino-play-random-game-BW66Civ1.js"
|
|
46
|
+
).then(a, k);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return import(
|
|
50
|
+
/* @vite-ignore */
|
|
51
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
52
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
53
|
+
/* webpackMode: "lazy" */
|
|
54
|
+
`./${r}.entry.js`
|
|
55
|
+
).then((a) => (j.set(r, a), a[s]), k);
|
|
56
|
+
}, _ = /* @__PURE__ */ new Map(), we = "{visibility:hidden}.hydrated{visibility:inherit}", te = "slot-fb{display:contents}slot-fb[hidden]{display:none}", O = typeof window != "undefined" ? window : {}, m = O.document || { head: {} }, h = {
|
|
57
|
+
$flags$: 0,
|
|
58
|
+
$resourcesUrl$: "",
|
|
59
|
+
jmp: (e) => e(),
|
|
60
|
+
raf: (e) => requestAnimationFrame(e),
|
|
61
|
+
ael: (e, t, n, s) => e.addEventListener(t, n, s),
|
|
62
|
+
rel: (e, t, n, s) => e.removeEventListener(t, n, s),
|
|
63
|
+
ce: (e, t) => new CustomEvent(e, t)
|
|
64
|
+
}, Te = (e) => Promise.resolve(e), xe = /* @__PURE__ */ (() => {
|
|
65
|
+
try {
|
|
66
|
+
return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
|
|
67
|
+
} catch (e) {
|
|
68
|
+
}
|
|
69
|
+
return !1;
|
|
70
|
+
})(), U = !1, G = [], se = [], Le = (e, t) => (n) => {
|
|
71
|
+
e.push(n), U || (U = !0, h.$flags$ & 4 ? H(z) : h.raf(z));
|
|
72
|
+
}, Q = (e) => {
|
|
73
|
+
for (let t = 0; t < e.length; t++)
|
|
74
|
+
try {
|
|
75
|
+
e[t](performance.now());
|
|
76
|
+
} catch (n) {
|
|
77
|
+
k(n);
|
|
78
|
+
}
|
|
79
|
+
e.length = 0;
|
|
80
|
+
}, z = () => {
|
|
81
|
+
Q(G), Q(se), (U = G.length > 0) && h.raf(z);
|
|
82
|
+
}, H = (e) => Te().then(e), Pe = /* @__PURE__ */ Le(se), Y = {}, Ae = (e) => e != null, q = (e) => (e = typeof e, e === "object" || e === "function");
|
|
83
|
+
function ne(e) {
|
|
84
|
+
var t, n, s;
|
|
85
|
+
return (s = (n = (t = e.head) == null ? void 0 : t.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : n.getAttribute("content")) != null ? s : void 0;
|
|
86
|
+
}
|
|
87
|
+
var _e = {};
|
|
88
|
+
be(_e, {
|
|
89
|
+
err: () => re,
|
|
90
|
+
map: () => Ce,
|
|
91
|
+
ok: () => D,
|
|
92
|
+
unwrap: () => Oe,
|
|
93
|
+
unwrapErr: () => Ie
|
|
94
|
+
});
|
|
95
|
+
var D = (e) => ({
|
|
96
|
+
isOk: !0,
|
|
97
|
+
isErr: !1,
|
|
98
|
+
value: e
|
|
99
|
+
}), re = (e) => ({
|
|
100
|
+
isOk: !1,
|
|
101
|
+
isErr: !0,
|
|
102
|
+
value: e
|
|
103
|
+
});
|
|
104
|
+
function Ce(e, t) {
|
|
105
|
+
if (e.isOk) {
|
|
106
|
+
const n = t(e.value);
|
|
107
|
+
return n instanceof Promise ? n.then((s) => D(s)) : D(n);
|
|
108
|
+
}
|
|
109
|
+
if (e.isErr) {
|
|
110
|
+
const n = e.value;
|
|
111
|
+
return re(n);
|
|
112
|
+
}
|
|
113
|
+
throw "should never get here";
|
|
114
|
+
}
|
|
115
|
+
var Oe = (e) => {
|
|
116
|
+
if (e.isOk)
|
|
117
|
+
return e.value;
|
|
118
|
+
throw e.value;
|
|
119
|
+
}, Ie = (e) => {
|
|
120
|
+
if (e.isErr)
|
|
121
|
+
return e.value;
|
|
122
|
+
throw e.value;
|
|
123
|
+
}, S = (e, t = "") => () => {
|
|
124
|
+
}, je = (e, t) => () => {
|
|
125
|
+
}, Ue = (e, t, ...n) => {
|
|
126
|
+
let s = null, r = null, l = !1, a = !1;
|
|
127
|
+
const i = [], o = ($) => {
|
|
128
|
+
for (let f = 0; f < $.length; f++)
|
|
129
|
+
s = $[f], Array.isArray(s) ? o(s) : s != null && typeof s != "boolean" && ((l = typeof e != "function" && !q(s)) && (s = String(s)), l && a ? i[i.length - 1].$text$ += s : i.push(l ? R(null, s) : s), a = l);
|
|
130
|
+
};
|
|
131
|
+
if (o(n), t) {
|
|
132
|
+
t.key && (r = t.key);
|
|
133
|
+
{
|
|
134
|
+
const $ = t.className || t.class;
|
|
135
|
+
$ && (t.class = typeof $ != "object" ? $ : Object.keys($).filter((f) => $[f]).join(" "));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const c = R(e, null);
|
|
139
|
+
return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), c.$key$ = r, c;
|
|
140
|
+
}, R = (e, t) => {
|
|
141
|
+
const n = {
|
|
142
|
+
$flags$: 0,
|
|
143
|
+
$tag$: e,
|
|
144
|
+
$text$: t,
|
|
145
|
+
$elm$: null,
|
|
146
|
+
$children$: null
|
|
147
|
+
};
|
|
148
|
+
return n.$attrs$ = null, n.$key$ = null, n;
|
|
149
|
+
}, ze = {}, De = (e) => e && e.$tag$ === ze, Re = (e, t) => e != null && !q(e) && t & 1 ? String(e) : e, Be = (e) => b(e).$hostElement$, lt = (e, t, n) => {
|
|
150
|
+
const s = Be(e);
|
|
151
|
+
return {
|
|
152
|
+
emit: (r) => ae(s, t, {
|
|
153
|
+
bubbles: !!(n & 4),
|
|
154
|
+
composed: !!(n & 2),
|
|
155
|
+
cancelable: !!(n & 1),
|
|
156
|
+
detail: r
|
|
157
|
+
})
|
|
158
|
+
};
|
|
159
|
+
}, ae = (e, t, n) => {
|
|
160
|
+
const s = h.ce(t, n);
|
|
161
|
+
return e.dispatchEvent(s), s;
|
|
162
|
+
}, J = /* @__PURE__ */ new WeakMap(), Fe = (e, t, n) => {
|
|
163
|
+
let s = _.get(e);
|
|
164
|
+
xe && n ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = t : s.replaceSync(t)) : s = t, _.set(e, s);
|
|
165
|
+
}, He = (e, t, n) => {
|
|
166
|
+
var s;
|
|
167
|
+
const r = le(t), l = _.get(r);
|
|
168
|
+
if (e = e.nodeType === 11 ? e : m, l)
|
|
169
|
+
if (typeof l == "string") {
|
|
170
|
+
e = e.head || e;
|
|
171
|
+
let a = J.get(e), i;
|
|
172
|
+
if (a || J.set(e, a = /* @__PURE__ */ new Set()), !a.has(r)) {
|
|
173
|
+
{
|
|
174
|
+
i = m.createElement("style"), i.innerHTML = l;
|
|
175
|
+
const o = (s = h.$nonce$) != null ? s : ne(m);
|
|
176
|
+
o != null && i.setAttribute("nonce", o), e.insertBefore(i, e.querySelector("link"));
|
|
177
|
+
}
|
|
178
|
+
t.$flags$ & 4 && (i.innerHTML += te), a && a.add(r);
|
|
179
|
+
}
|
|
180
|
+
} else
|
|
181
|
+
e.adoptedStyleSheets.includes(l) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, l]);
|
|
182
|
+
return r;
|
|
183
|
+
}, qe = (e) => {
|
|
184
|
+
const t = e.$cmpMeta$, n = e.$hostElement$, s = t.$flags$, r = S("attachStyles", t.$tagName$), l = He(
|
|
185
|
+
n.shadowRoot ? n.shadowRoot : n.getRootNode(),
|
|
186
|
+
t
|
|
187
|
+
);
|
|
188
|
+
s & 10 && (n["s-sc"] = l, n.classList.add(l + "-h")), r();
|
|
189
|
+
}, le = (e, t) => "sc-" + e.$tagName$, K = (e, t, n, s, r, l) => {
|
|
190
|
+
if (n !== s) {
|
|
191
|
+
let a = X(e, t), i = t.toLowerCase();
|
|
192
|
+
if (t === "class") {
|
|
193
|
+
const o = e.classList, c = Z(n), $ = Z(s);
|
|
194
|
+
o.remove(...c.filter((f) => f && !$.includes(f))), o.add(...$.filter((f) => f && !c.includes(f)));
|
|
195
|
+
} else if (t !== "key")
|
|
196
|
+
if (t === "ref")
|
|
197
|
+
s && s(e);
|
|
198
|
+
else if (!a && t[0] === "o" && t[1] === "n") {
|
|
199
|
+
if (t[2] === "-" ? t = t.slice(3) : X(O, i) ? t = i.slice(2) : t = i[2] + t.slice(3), n || s) {
|
|
200
|
+
const o = t.endsWith(oe);
|
|
201
|
+
t = t.replace(Me, ""), n && h.rel(e, t, n, o), s && h.ael(e, t, s, o);
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
const o = q(s);
|
|
205
|
+
if ((a || o && s !== null) && !r)
|
|
206
|
+
try {
|
|
207
|
+
if (e.tagName.includes("-"))
|
|
208
|
+
e[t] = s;
|
|
209
|
+
else {
|
|
210
|
+
const c = s == null ? "" : s;
|
|
211
|
+
t === "list" ? a = !1 : (n == null || e[t] != c) && (e[t] = c);
|
|
212
|
+
}
|
|
213
|
+
} catch (c) {
|
|
214
|
+
}
|
|
215
|
+
s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && e.removeAttribute(t) : (!a || l & 4 || r) && !o && (s = s === !0 ? "" : s, e.setAttribute(t, s));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}, We = /\s/, Z = (e) => e ? e.split(We) : [], oe = "Capture", Me = new RegExp(oe + "$"), ie = (e, t, n) => {
|
|
219
|
+
const s = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || Y, l = t.$attrs$ || Y;
|
|
220
|
+
for (const a of N(Object.keys(r)))
|
|
221
|
+
a in l || K(s, a, r[a], void 0, n, t.$flags$);
|
|
222
|
+
for (const a of N(Object.keys(l)))
|
|
223
|
+
K(s, a, r[a], l[a], n, t.$flags$);
|
|
224
|
+
};
|
|
225
|
+
function N(e) {
|
|
226
|
+
return e.includes("ref") ? (
|
|
227
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
228
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
|
229
|
+
) : (
|
|
230
|
+
// no need to sort, return the original array
|
|
231
|
+
e
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
var P, W, ce = !1, $e = !1, C = (e, t, n, s) => {
|
|
235
|
+
const r = t.$children$[n];
|
|
236
|
+
let l = 0, a, i;
|
|
237
|
+
if (r.$text$ !== null)
|
|
238
|
+
a = r.$elm$ = m.createTextNode(r.$text$);
|
|
239
|
+
else if (a = r.$elm$ = m.createElement(
|
|
240
|
+
!ce && ee.slotRelocation && r.$flags$ & 2 ? "slot-fb" : r.$tag$
|
|
241
|
+
), ie(null, r, $e), Ae(P) && a["s-si"] !== P && a.classList.add(a["s-si"] = P), r.$children$)
|
|
242
|
+
for (l = 0; l < r.$children$.length; ++l)
|
|
243
|
+
i = C(e, r, l), i && a.appendChild(i);
|
|
244
|
+
return a["s-hn"] = W, a;
|
|
245
|
+
}, fe = (e, t, n, s, r, l) => {
|
|
246
|
+
let a = e, i;
|
|
247
|
+
for (a.shadowRoot && a.tagName === W && (a = a.shadowRoot); r <= l; ++r)
|
|
248
|
+
s[r] && (i = C(null, n, r), i && (s[r].$elm$ = i, A(a, i, t)));
|
|
249
|
+
}, de = (e, t, n) => {
|
|
250
|
+
for (let s = t; s <= n; ++s) {
|
|
251
|
+
const r = e[s];
|
|
252
|
+
if (r) {
|
|
253
|
+
const l = r.$elm$;
|
|
254
|
+
ue(r), l && l.remove();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, Xe = (e, t, n, s, r = !1) => {
|
|
258
|
+
let l = 0, a = 0, i = 0, o = 0, c = t.length - 1, $ = t[0], f = t[c], d = s.length - 1, u = s[0], p = s[d], v, y;
|
|
259
|
+
for (; l <= c && a <= d; )
|
|
260
|
+
if ($ == null)
|
|
261
|
+
$ = t[++l];
|
|
262
|
+
else if (f == null)
|
|
263
|
+
f = t[--c];
|
|
264
|
+
else if (u == null)
|
|
265
|
+
u = s[++a];
|
|
266
|
+
else if (p == null)
|
|
267
|
+
p = s[--d];
|
|
268
|
+
else if (L($, u, r))
|
|
269
|
+
w($, u, r), $ = t[++l], u = s[++a];
|
|
270
|
+
else if (L(f, p, r))
|
|
271
|
+
w(f, p, r), f = t[--c], p = s[--d];
|
|
272
|
+
else if (L($, p, r))
|
|
273
|
+
w($, p, r), A(e, $.$elm$, f.$elm$.nextSibling), $ = t[++l], p = s[--d];
|
|
274
|
+
else if (L(f, u, r))
|
|
275
|
+
w(f, u, r), A(e, f.$elm$, $.$elm$), f = t[--c], u = s[++a];
|
|
276
|
+
else {
|
|
277
|
+
for (i = -1, o = l; o <= c; ++o)
|
|
278
|
+
if (t[o] && t[o].$key$ !== null && t[o].$key$ === u.$key$) {
|
|
279
|
+
i = o;
|
|
280
|
+
break;
|
|
281
|
+
}
|
|
282
|
+
i >= 0 ? (y = t[i], y.$tag$ !== u.$tag$ ? v = C(t && t[a], n, i) : (w(y, u, r), t[i] = void 0, v = y.$elm$), u = s[++a]) : (v = C(t && t[a], n, a), u = s[++a]), v && A($.$elm$.parentNode, v, $.$elm$);
|
|
283
|
+
}
|
|
284
|
+
l > c ? fe(
|
|
285
|
+
e,
|
|
286
|
+
s[d + 1] == null ? null : s[d + 1].$elm$,
|
|
287
|
+
n,
|
|
288
|
+
s,
|
|
289
|
+
a,
|
|
290
|
+
d
|
|
291
|
+
) : a > d && de(t, l, c);
|
|
292
|
+
}, L = (e, t, n = !1) => e.$tag$ === t.$tag$ ? n ? !0 : e.$key$ === t.$key$ : !1, w = (e, t, n = !1) => {
|
|
293
|
+
const s = t.$elm$ = e.$elm$, r = e.$children$, l = t.$children$, a = t.$text$;
|
|
294
|
+
a === null ? (ie(e, t, $e), r !== null && l !== null ? Xe(s, r, t, l, n) : l !== null ? (e.$text$ !== null && (s.textContent = ""), fe(s, null, t, l, 0, l.length - 1)) : r !== null && de(r, 0, r.length - 1)) : e.$text$ !== a && (s.data = a);
|
|
295
|
+
}, ue = (e) => {
|
|
296
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ue);
|
|
297
|
+
}, A = (e, t, n) => e == null ? void 0 : e.insertBefore(t, n), Ge = (e, t, n = !1) => {
|
|
298
|
+
const s = e.$hostElement$, r = e.$cmpMeta$, l = e.$vnode$ || R(null, null), a = De(t) ? t : Ue(null, null, t);
|
|
299
|
+
if (W = s.tagName, r.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, r.$attrsToReflect$.map(
|
|
300
|
+
([i, o]) => a.$attrs$[o] = s[i]
|
|
301
|
+
)), n && a.$attrs$)
|
|
302
|
+
for (const i of Object.keys(a.$attrs$))
|
|
303
|
+
s.hasAttribute(i) && !["key", "ref", "style", "class"].includes(i) && (a.$attrs$[i] = s[i]);
|
|
304
|
+
a.$tag$ = null, a.$flags$ |= 4, e.$vnode$ = a, a.$elm$ = l.$elm$ = s.shadowRoot || s, P = s["s-sc"], ce = (r.$flags$ & 1) !== 0, w(l, a, n);
|
|
305
|
+
}, pe = (e, t) => {
|
|
306
|
+
t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((n) => e.$onRenderResolve$ = n));
|
|
307
|
+
}, M = (e, t) => {
|
|
308
|
+
if (e.$flags$ |= 16, e.$flags$ & 4) {
|
|
309
|
+
e.$flags$ |= 512;
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
return pe(e, e.$ancestorComponent$), Pe(() => Qe(e, t));
|
|
313
|
+
}, Qe = (e, t) => {
|
|
314
|
+
const n = e.$hostElement$, s = S("scheduleUpdate", e.$cmpMeta$.$tagName$), r = e.$lazyInstance$;
|
|
315
|
+
if (!r)
|
|
316
|
+
throw new Error(
|
|
317
|
+
`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
318
|
+
);
|
|
319
|
+
let l;
|
|
320
|
+
return t && (l = I(r, "componentWillLoad")), s(), Ye(l, () => Ke(e, r, t));
|
|
321
|
+
}, Ye = (e, t) => Je(e) ? e.then(t).catch((n) => {
|
|
322
|
+
console.error(n), t();
|
|
323
|
+
}) : t(), Je = (e) => e instanceof Promise || e && e.then && typeof e.then == "function", Ke = (e, t, n) => x(void 0, null, function* () {
|
|
324
|
+
var s;
|
|
325
|
+
const r = e.$hostElement$, l = S("update", e.$cmpMeta$.$tagName$), a = r["s-rc"];
|
|
326
|
+
n && qe(e);
|
|
327
|
+
const i = S("render", e.$cmpMeta$.$tagName$);
|
|
328
|
+
Ze(e, t, r, n), a && (a.map((o) => o()), r["s-rc"] = void 0), i(), l();
|
|
329
|
+
{
|
|
330
|
+
const o = (s = r["s-p"]) != null ? s : [], c = () => Ne(e);
|
|
331
|
+
o.length === 0 ? c() : (Promise.all(o).then(c), e.$flags$ |= 4, o.length = 0);
|
|
332
|
+
}
|
|
333
|
+
}), Ze = (e, t, n, s) => {
|
|
334
|
+
try {
|
|
335
|
+
t = t.render(), e.$flags$ &= -17, e.$flags$ |= 2, Ge(e, t, s);
|
|
336
|
+
} catch (r) {
|
|
337
|
+
k(r, e.$hostElement$);
|
|
338
|
+
}
|
|
339
|
+
return null;
|
|
340
|
+
}, Ne = (e) => {
|
|
341
|
+
const t = e.$cmpMeta$.$tagName$, n = e.$hostElement$, s = S("postUpdate", t), r = e.$lazyInstance$, l = e.$ancestorComponent$;
|
|
342
|
+
e.$flags$ & 64 ? s() : (e.$flags$ |= 64, he(n), I(r, "componentDidLoad"), s(), e.$onReadyResolve$(n), l || ve()), e.$onRenderResolve$ && (e.$onRenderResolve$(), e.$onRenderResolve$ = void 0), e.$flags$ & 512 && H(() => M(e, !1)), e.$flags$ &= -517;
|
|
343
|
+
}, ve = (e) => {
|
|
344
|
+
he(m.documentElement), H(() => ae(O, "appload", { detail: { namespace: me } }));
|
|
345
|
+
}, I = (e, t, n) => {
|
|
346
|
+
if (e && e[t])
|
|
347
|
+
try {
|
|
348
|
+
return e[t](n);
|
|
349
|
+
} catch (s) {
|
|
350
|
+
k(s);
|
|
351
|
+
}
|
|
352
|
+
}, he = (e) => {
|
|
353
|
+
var t;
|
|
354
|
+
return e.classList.add((t = ee.hydratedSelectorName) != null ? t : "hydrated");
|
|
355
|
+
}, Ve = (e, t) => b(e).$instanceValues$.get(t), et = (e, t, n, s) => {
|
|
356
|
+
const r = b(e);
|
|
357
|
+
if (!r)
|
|
358
|
+
throw new Error(
|
|
359
|
+
`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).`
|
|
360
|
+
);
|
|
361
|
+
const l = r.$hostElement$, a = r.$instanceValues$.get(t), i = r.$flags$, o = r.$lazyInstance$;
|
|
362
|
+
n = Re(n, s.$members$[t][0]);
|
|
363
|
+
const c = Number.isNaN(a) && Number.isNaN(n), $ = n !== a && !c;
|
|
364
|
+
if ((!(i & 8) || a === void 0) && $ && (r.$instanceValues$.set(t, n), o)) {
|
|
365
|
+
if (s.$watchers$ && i & 128) {
|
|
366
|
+
const f = s.$watchers$[t];
|
|
367
|
+
f && f.map((d) => {
|
|
368
|
+
try {
|
|
369
|
+
o[d](n, a, t);
|
|
370
|
+
} catch (u) {
|
|
371
|
+
k(u, l);
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
(i & 18) === 2 && M(r, !1);
|
|
376
|
+
}
|
|
377
|
+
}, ge = (e, t, n) => {
|
|
378
|
+
var s, r;
|
|
379
|
+
const l = e.prototype;
|
|
380
|
+
if (t.$members$ || t.$watchers$ || e.watchers) {
|
|
381
|
+
e.watchers && !t.$watchers$ && (t.$watchers$ = e.watchers);
|
|
382
|
+
const a = Object.entries((s = t.$members$) != null ? s : {});
|
|
383
|
+
if (a.map(([i, [o]]) => {
|
|
384
|
+
(o & 31 || n & 2 && o & 32) && Object.defineProperty(l, i, {
|
|
385
|
+
get() {
|
|
386
|
+
return Ve(this, i);
|
|
387
|
+
},
|
|
388
|
+
set(c) {
|
|
389
|
+
et(this, i, c, t);
|
|
390
|
+
},
|
|
391
|
+
configurable: !0,
|
|
392
|
+
enumerable: !0
|
|
393
|
+
});
|
|
394
|
+
}), n & 1) {
|
|
395
|
+
const i = /* @__PURE__ */ new Map();
|
|
396
|
+
l.attributeChangedCallback = function(o, c, $) {
|
|
397
|
+
h.jmp(() => {
|
|
398
|
+
var f;
|
|
399
|
+
const d = i.get(o);
|
|
400
|
+
if (this.hasOwnProperty(d))
|
|
401
|
+
$ = this[d], delete this[d];
|
|
402
|
+
else {
|
|
403
|
+
if (l.hasOwnProperty(d) && typeof this[d] == "number" && this[d] == $)
|
|
404
|
+
return;
|
|
405
|
+
if (d == null) {
|
|
406
|
+
const u = b(this), p = u == null ? void 0 : u.$flags$;
|
|
407
|
+
if (p && !(p & 8) && p & 128 && $ !== c) {
|
|
408
|
+
const v = u.$lazyInstance$, y = (f = t.$watchers$) == null ? void 0 : f[o];
|
|
409
|
+
y == null || y.forEach((g) => {
|
|
410
|
+
v[g] != null && v[g].call(v, $, c, o);
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
this[d] = $ === null && typeof this[d] == "boolean" ? !1 : $;
|
|
417
|
+
});
|
|
418
|
+
}, e.observedAttributes = Array.from(
|
|
419
|
+
/* @__PURE__ */ new Set([
|
|
420
|
+
...Object.keys((r = t.$watchers$) != null ? r : {}),
|
|
421
|
+
...a.filter(
|
|
422
|
+
([o, c]) => c[0] & 15
|
|
423
|
+
/* HasAttribute */
|
|
424
|
+
).map(([o, c]) => {
|
|
425
|
+
var $;
|
|
426
|
+
const f = c[1] || o;
|
|
427
|
+
return i.set(f, o), c[0] & 512 && (($ = t.$attrsToReflect$) == null || $.push([o, f])), f;
|
|
428
|
+
})
|
|
429
|
+
])
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
return e;
|
|
434
|
+
}, tt = (e, t, n, s) => x(void 0, null, function* () {
|
|
435
|
+
let r;
|
|
436
|
+
if (!(t.$flags$ & 32)) {
|
|
437
|
+
if (t.$flags$ |= 32, n.$lazyBundleId$) {
|
|
438
|
+
const o = ke(n);
|
|
439
|
+
if (o && "then" in o) {
|
|
440
|
+
const $ = je();
|
|
441
|
+
r = yield o, $();
|
|
442
|
+
} else
|
|
443
|
+
r = o;
|
|
444
|
+
if (!r)
|
|
445
|
+
throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);
|
|
446
|
+
r.isProxied || (n.$watchers$ = r.watchers, ge(
|
|
447
|
+
r,
|
|
448
|
+
n,
|
|
449
|
+
2
|
|
450
|
+
/* proxyState */
|
|
451
|
+
), r.isProxied = !0);
|
|
452
|
+
const c = S("createInstance", n.$tagName$);
|
|
453
|
+
t.$flags$ |= 8;
|
|
454
|
+
try {
|
|
455
|
+
new r(t);
|
|
456
|
+
} catch ($) {
|
|
457
|
+
k($);
|
|
458
|
+
}
|
|
459
|
+
t.$flags$ &= -9, t.$flags$ |= 128, c(), B(t.$lazyInstance$);
|
|
460
|
+
} else {
|
|
461
|
+
r = e.constructor;
|
|
462
|
+
const o = e.localName;
|
|
463
|
+
customElements.whenDefined(o).then(
|
|
464
|
+
() => t.$flags$ |= 128
|
|
465
|
+
/* isWatchReady */
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
if (r && r.style) {
|
|
469
|
+
let o;
|
|
470
|
+
typeof r.style == "string" && (o = r.style);
|
|
471
|
+
const c = le(n);
|
|
472
|
+
if (!_.has(c)) {
|
|
473
|
+
const $ = S("registerStyles", n.$tagName$);
|
|
474
|
+
Fe(c, o, !!(n.$flags$ & 1)), $();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
const l = t.$ancestorComponent$, a = () => M(t, !0);
|
|
479
|
+
l && l["s-rc"] ? l["s-rc"].push(a) : a();
|
|
480
|
+
}), B = (e) => {
|
|
481
|
+
I(e, "connectedCallback");
|
|
482
|
+
}, st = (e) => {
|
|
483
|
+
if (!(h.$flags$ & 1)) {
|
|
484
|
+
const t = b(e), n = t.$cmpMeta$, s = S("connectedCallback", n.$tagName$);
|
|
485
|
+
if (t.$flags$ & 1)
|
|
486
|
+
t != null && t.$lazyInstance$ ? B(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => B(t.$lazyInstance$));
|
|
487
|
+
else {
|
|
488
|
+
t.$flags$ |= 1;
|
|
489
|
+
{
|
|
490
|
+
let r = e;
|
|
491
|
+
for (; r = r.parentNode || r.host; )
|
|
492
|
+
if (r["s-p"]) {
|
|
493
|
+
pe(t, t.$ancestorComponent$ = r);
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
n.$members$ && Object.entries(n.$members$).map(([r, [l]]) => {
|
|
498
|
+
if (l & 31 && e.hasOwnProperty(r)) {
|
|
499
|
+
const a = e[r];
|
|
500
|
+
delete e[r], e[r] = a;
|
|
501
|
+
}
|
|
502
|
+
}), tt(e, t, n);
|
|
503
|
+
}
|
|
504
|
+
s();
|
|
505
|
+
}
|
|
506
|
+
}, V = (e) => {
|
|
507
|
+
I(e, "disconnectedCallback");
|
|
508
|
+
}, nt = (e) => x(void 0, null, function* () {
|
|
509
|
+
if (!(h.$flags$ & 1)) {
|
|
510
|
+
const t = b(e);
|
|
511
|
+
t != null && t.$lazyInstance$ ? V(t.$lazyInstance$) : t != null && t.$onReadyPromise$ && t.$onReadyPromise$.then(() => V(t.$lazyInstance$));
|
|
512
|
+
}
|
|
513
|
+
}), ot = (e, t = {}) => {
|
|
514
|
+
var n;
|
|
515
|
+
const s = S(), r = [], l = t.exclude || [], a = O.customElements, i = m.head, o = /* @__PURE__ */ i.querySelector("meta[charset]"), c = /* @__PURE__ */ m.createElement("style"), $ = [];
|
|
516
|
+
let f, d = !0;
|
|
517
|
+
Object.assign(h, t), h.$resourcesUrl$ = new URL(t.resourcesUrl || "./", m.baseURI).href;
|
|
518
|
+
let u = !1;
|
|
519
|
+
if (e.map((p) => {
|
|
520
|
+
p[1].map((v) => {
|
|
521
|
+
var y;
|
|
522
|
+
const g = {
|
|
523
|
+
$flags$: v[0],
|
|
524
|
+
$tagName$: v[1],
|
|
525
|
+
$members$: v[2],
|
|
526
|
+
$listeners$: v[3]
|
|
527
|
+
};
|
|
528
|
+
g.$flags$ & 4 && (u = !0), g.$members$ = v[2], g.$attrsToReflect$ = [], g.$watchers$ = (y = v[4]) != null ? y : {};
|
|
529
|
+
const T = g.$tagName$, ye = class extends HTMLElement {
|
|
530
|
+
// StencilLazyHost
|
|
531
|
+
constructor(E) {
|
|
532
|
+
if (super(E), this.hasRegisteredEventListeners = !1, E = this, Ee(E, g), g.$flags$ & 1) {
|
|
533
|
+
if (!E.shadowRoot)
|
|
534
|
+
E.attachShadow({ mode: "open" });
|
|
535
|
+
else if (E.shadowRoot.mode !== "open")
|
|
536
|
+
throw new Error(
|
|
537
|
+
`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${E.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
connectedCallback() {
|
|
542
|
+
b(this), this.hasRegisteredEventListeners || (this.hasRegisteredEventListeners = !0), f && (clearTimeout(f), f = null), d ? $.push(this) : h.jmp(() => st(this));
|
|
543
|
+
}
|
|
544
|
+
disconnectedCallback() {
|
|
545
|
+
h.jmp(() => nt(this));
|
|
546
|
+
}
|
|
547
|
+
componentOnReady() {
|
|
548
|
+
return b(this).$onReadyPromise$;
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
g.$lazyBundleId$ = p[0], !l.includes(T) && !a.get(T) && (r.push(T), a.define(
|
|
552
|
+
T,
|
|
553
|
+
ge(
|
|
554
|
+
ye,
|
|
555
|
+
g,
|
|
556
|
+
1
|
|
557
|
+
/* isElementConstructor */
|
|
558
|
+
)
|
|
559
|
+
));
|
|
560
|
+
});
|
|
561
|
+
}), r.length > 0 && (u && (c.textContent += te), c.textContent += r.sort() + we, c.innerHTML.length)) {
|
|
562
|
+
c.setAttribute("data-styles", "");
|
|
563
|
+
const p = (n = h.$nonce$) != null ? n : ne(m);
|
|
564
|
+
p != null && c.setAttribute("nonce", p), i.insertBefore(c, o ? o.nextSibling : i.firstChild);
|
|
565
|
+
}
|
|
566
|
+
d = !1, $.length ? $.map((p) => p.connectedCallback()) : h.jmp(() => f = setTimeout(ve, 30)), s();
|
|
567
|
+
};
|
|
568
|
+
export {
|
|
569
|
+
ot as b,
|
|
570
|
+
lt as c,
|
|
571
|
+
Be as g,
|
|
572
|
+
Ue as h,
|
|
573
|
+
Te as p,
|
|
574
|
+
at as r
|
|
575
|
+
};
|