@everymatrix/casino-engagement-suite-tournament 1.76.0 → 1.76.1

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.
Files changed (28) hide show
  1. package/dist/casino-engagement-suite-tournament/casino-engagement-suite-progress-bar_8.entry.js +1 -1
  2. package/dist/casino-engagement-suite-tournament/{casino-engagement-suite-tournament-b2e7f98a.js → casino-engagement-suite-tournament-135290da.js} +2 -2
  3. package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
  4. package/dist/casino-engagement-suite-tournament/{index-8b5c4b95.js → index-487913af.js} +1 -1
  5. package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
  6. package/dist/cjs/casino-engagement-suite-progress-bar_8.cjs.entry.js +2 -2
  7. package/dist/cjs/{casino-engagement-suite-tournament-840e5b5f.js → casino-engagement-suite-tournament-8feeba0e.js} +4 -4
  8. package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
  9. package/dist/cjs/{index-5e98dd13.js → index-b22e9a52.js} +1 -2
  10. package/dist/cjs/index.cjs.js +2 -2
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +5 -5
  13. package/dist/esm/casino-engagement-suite-progress-bar_8.entry.js +3 -3
  14. package/dist/esm/{casino-engagement-suite-tournament-b2e7f98a.js → casino-engagement-suite-tournament-135290da.js} +4 -4
  15. package/dist/esm/casino-engagement-suite-tournament.js +3 -3
  16. package/dist/esm/{index-8b5c4b95.js → index-487913af.js} +1 -2
  17. package/dist/esm/index.js +2 -2
  18. package/dist/esm/loader.js +3 -3
  19. package/package.json +1 -1
  20. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/main.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/storybook/preview.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  28. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{r as e,h as t,g as i,c as s,H as n}from"./index-8b5c4b95.js";import{c as r,D as a,i as o,r as h,t as l,L as c,g as d,a as g,f as m}from"./casino-engagement-suite-tournament-b2e7f98a.js";export{C as casino_engagement_suite_tournament}from"./casino-engagement-suite-tournament-b2e7f98a.js";import"@everymatrix/ui-image";const u=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.host.prepend(t)}),1)})).catch((e=>{console.log("Error ",e)}))},this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return t("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return t("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},t("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},t("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},t("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),t("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},t("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),t("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return i(this)}};function b(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function k(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}u.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";const w=class{constructor(t){e(this,t),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(this.el,`${this.mbSource}.Style`):(this.clientStyling&&b(this.el,this.clientStyling),this.clientStylingUrl&&k(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&b(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&k(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&b(this.el,this.clientStyling),this.clientStylingUrl&&k(this.el,this.clientStylingUrl),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const s=(t=this.translationUrl,i=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]=i[e]||{},Object.keys(t[e]).forEach((s=>{if(!i.en[s])return;const n=i.en[s];"object"==typeof t[e][s]?(i[e][s]=i[e][s]||Object.assign({},n),Object.keys(t[e][s]).forEach((n=>{i[e][s][n]=t[e][s][n]}))):i[e][s]=t[e][s]||Object.assign({},n)}))})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})));e.push(s)}var t,i;return await Promise.all(e)}render(){return t("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},t("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};w.style=":host{display:block}";const f=class{constructor(t){e(this,t),this.clickToTournamentDetail=s(this,"clickToTournamentDetail",7),this.tournament=void 0,this.isNew=void 0,this.tid=void 0,this.language="en"}goToDetail(){this.clickToTournamentDetail.emit(this.tournament)}onTournamentUpdateEvent(e){const{detail:t}=e;t.id===this.tournament.id&&(this.tournament=Object.assign({},t))}render(){const e=this.tournament;return t("div",{key:"836c6720a7be8c1a97f43245908fc2b6d535c50e",class:r("LeaderboardsItem",e.isPlayerAcknowledged?" GradientRounded Hollow":"",e.isUnjoined?"Unjoined":""),onClick:this.goToDetail.bind(this)},t("div",{key:"a6b131a60c7484dd33f963b769b7db47438460f1",class:"LeaderboardsItemContainer"},t("tournament-item-title",{key:"0e229e79322889c168a7ec4f35bd0ae0fde61a96",tournament:e,language:this.language}),t("tournament-timer",{key:"6f486b88ae367bef631779bfc92b995516bfd8c0",tournament:e})),t("div",{key:"00e40f6bc6102da356f1d781506ceba4c7ae340e",class:"LeaderboardLabels"},this.isNew&&t("div",{key:"5aa6fced7c55d5bb7911c2590611008389f51042",class:"LeaderboardLabel"},t("span",{key:"b89b5825d0902545ea44105ce9f3b8a8a2c98676"},"new"))))}},v=class{constructor(t){e(this,t),this.unjoinTournamentConfirmEvent=s(this,"unjoinTournamentConfirmEvent",7),this.joinTournamentEvent=s(this,"joinTournamentEvent",7),this.tournament=void 0,this.language="en",this.isButtonDisabed=!1}onTournamentChanged(e){this.isButtonDisabed=!0===e.isActionJoinPending}onClickItemJoin(){this.isButtonDisabed||(this.isButtonDisabed=!this.tournament.isPlayerAcknowledged,this.tournament.isPlayerAcknowledged?this.unjoinTournamentConfirmEvent.emit({type:a.unjoin,tournament:this.tournament}):this.joinTournamentEvent.emit(this.tournament))}componentDidLoad(){this.isButtonDisabed=!0===this.tournament.isActionJoinPending}render(){return t("div",{key:"3123b0ffd6335833a5938b13e4c620ded693da38",class:"TitleContainer"},t("div",{key:"88977f242dd5cce6265c679ae55dc1dfdecd7fd0",class:"Title"},this.tournament.nameOrTitle),!o(this.tournament)&&t("div",{key:"bf2aad175409e687ed2bd42350a7f8585d86c112"},h({statedClasses:{isHollow:this.tournament.isPlayerAcknowledged,isPending:this.isButtonDisabed},onClick:e=>{e.stopPropagation(),this.onClickItemJoin()},innerHTML:l(this.tournament.isPlayerAcknowledged?"Unjoin":"Join",this.language)})))}static get watchers(){return{tournament:["onTournamentChanged"]}}},p=class{constructor(t){e(this,t),this.tournament=void 0,this.isDetail=!1,this.timeHolder=void 0,this.timeClock=!0,this.lastTimeDiff=void 0,this.lastProgress=void 0}containerPageChangeHandler(e){this.timeClock=e.detail.page===c.list&&!this.isDetail||e.detail.page===c.item&&this.isDetail}componentWillLoad(){this.lastProgress=d(this.tournament.startTime,this.tournament.endTime),this.lastTimeDiff=g(new Date,this.tournament.endTime,this.lastProgress)}setTimeInterval(){this.timeHolder=setInterval((()=>{const e=d(this.tournament.startTime,this.tournament.endTime),t=g(new Date,this.tournament.endTime,e);!this.timeClock||o(this.tournament)||t==this.lastTimeDiff&&e==this.lastProgress||(this.lastProgress=e,this.lastTimeDiff=t)}),2e3)}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}render(){return t("section",{key:"11426165a8f384d97f2b0158f7435f80ac0965a2",class:"TimeContainer"},t("div",{key:"b86c8a42a73b358fcc855a853cb322d1d314471a",class:"Time"},"Running"===this.tournament.state?t("div",{class:"Running"},t("div",null,this.lastTimeDiff),t("div",null,h({statedClasses:{isHollow:!0,isPending:!!this.tournament.isActionJoinPending},innerHTML:`${this.lastProgress}%`}))):[t("div",{class:"NotRunning"},m(this.tournament.startTime)),t("div",null,m(this.tournament.endTime))]),t("casino-engagement-suite-progress-bar",{key:"7f98e88679f30d0a0737d94ee806b1d92800b6a3",indeterminate:!1,value:Number(this.lastProgress>=100?100:this.lastProgress),"hide-percent":!0}))}},y=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(n,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i(this)}static get watchers(){return{src:["handleSrc"]}}};y.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const x=class{constructor(t){e(this,t),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,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"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("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(n,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};x.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}";export{u as casino_engagement_suite_progress_bar,w as general_styling_wrapper,f as tournament_item,v as tournament_item_title,p as tournament_timer,y as ui_image,x as ui_skeleton}
1
+ import{r as e,h as t,g as i,c as s,H as n}from"./index-487913af.js";import{c as r,D as a,i as o,r as h,t as l,L as c,g as d,a as g,f as m}from"./casino-engagement-suite-tournament-135290da.js";export{C as casino_engagement_suite_tournament}from"./casino-engagement-suite-tournament-135290da.js";import"@everymatrix/ui-image";const u=class{constructor(t){e(this,t),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.host.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.host.prepend(t)}),1)})).catch((e=>{console.log("Error ",e)}))},this.value=0,this.disabled=!1,this.hidePercent=!1,this.indeterminate=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}getProgressBarClasses(){return{ProgressBar:!0,Completed:100===this.value,Disabled:this.disabled,HidePercent:this.hidePercent||this.indeterminate}}getProgressBarLineTemplate(){return t("div",this.indeterminate?{class:"ProgressBarLine Indeterminate",part:"ProgressBarLine Indeterminate"}:{class:"ProgressBarLine",part:"ProgressBarLine",style:{width:this.value+"%"}})}render(){return t("div",{key:"ecce3a26a92d2e090c1db84bdc1bdbeb505080ed",class:this.getProgressBarClasses(),part:"ProgressBar"},t("div",{key:"649fe1103d222200f2a1ad3b5967e37da1f1ab3d",class:"ProgressBarInfo",part:"ProgressBarInfo"},t("slot",{key:"49dc180eedd823f0027f75099813fb9d91bcd938",name:"Title"},t("div",{key:"e6e59da3fe7bbcb37e118e7fd23a8ff35587aca5"})),t("slot",{key:"3dc8e5fd1dbc8c268b9c76e393b751cb53605e7e",name:"Percent"},t("div",{key:"6a9e880f3ee3c4f26e8577c69be5db5f8e2d10ad",class:"ProgressBarPercent",part:"ProgressBarPercent"},this.value,"%"))),t("div",{key:"141106e77caad7b04bb199f911e87c0c6f0adc2d",class:"ProgressBarBackground",part:"ProgressBarBackground"},this.getProgressBarLineTemplate()))}get host(){return i(this)}};function b(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function k(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}u.style=":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";const w=class{constructor(t){e(this,t),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(null!=window.emMessageBus?function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(this.el,`${this.mbSource}.Style`):(this.clientStyling&&b(this.el,this.clientStyling),this.clientStylingUrl&&k(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&b(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&k(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&b(this.el,this.clientStyling),this.clientStylingUrl&&k(this.el,this.clientStylingUrl),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const s=(t=this.translationUrl,i=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{i[e]=i[e]||{},Object.keys(t[e]).forEach((s=>{if(!i.en[s])return;const n=i.en[s];"object"==typeof t[e][s]?(i[e][s]=i[e][s]||Object.assign({},n),Object.keys(t[e][s]).forEach((n=>{i[e][s][n]=t[e][s][n]}))):i[e][s]=t[e][s]||Object.assign({},n)}))})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})));e.push(s)}var t,i;return await Promise.all(e)}render(){return t("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},t("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};w.style=":host{display:block}";const f=class{constructor(t){e(this,t),this.clickToTournamentDetail=s(this,"clickToTournamentDetail",7),this.tournament=void 0,this.isNew=void 0,this.tid=void 0,this.language="en"}goToDetail(){this.clickToTournamentDetail.emit(this.tournament)}onTournamentUpdateEvent(e){const{detail:t}=e;t.id===this.tournament.id&&(this.tournament=Object.assign({},t))}render(){const e=this.tournament;return t("div",{key:"836c6720a7be8c1a97f43245908fc2b6d535c50e",class:r("LeaderboardsItem",e.isPlayerAcknowledged?" GradientRounded Hollow":"",e.isUnjoined?"Unjoined":""),onClick:this.goToDetail.bind(this)},t("div",{key:"a6b131a60c7484dd33f963b769b7db47438460f1",class:"LeaderboardsItemContainer"},t("tournament-item-title",{key:"0e229e79322889c168a7ec4f35bd0ae0fde61a96",tournament:e,language:this.language}),t("tournament-timer",{key:"6f486b88ae367bef631779bfc92b995516bfd8c0",tournament:e})),t("div",{key:"00e40f6bc6102da356f1d781506ceba4c7ae340e",class:"LeaderboardLabels"},this.isNew&&t("div",{key:"5aa6fced7c55d5bb7911c2590611008389f51042",class:"LeaderboardLabel"},t("span",{key:"b89b5825d0902545ea44105ce9f3b8a8a2c98676"},"new"))))}},v=class{constructor(t){e(this,t),this.unjoinTournamentConfirmEvent=s(this,"unjoinTournamentConfirmEvent",7),this.joinTournamentEvent=s(this,"joinTournamentEvent",7),this.tournament=void 0,this.language="en",this.isButtonDisabed=!1}onTournamentChanged(e){this.isButtonDisabed=!0===e.isActionJoinPending}onClickItemJoin(){this.isButtonDisabed||(this.isButtonDisabed=!this.tournament.isPlayerAcknowledged,this.tournament.isPlayerAcknowledged?this.unjoinTournamentConfirmEvent.emit({type:a.unjoin,tournament:this.tournament}):this.joinTournamentEvent.emit(this.tournament))}componentDidLoad(){this.isButtonDisabed=!0===this.tournament.isActionJoinPending}render(){return t("div",{key:"3123b0ffd6335833a5938b13e4c620ded693da38",class:"TitleContainer"},t("div",{key:"88977f242dd5cce6265c679ae55dc1dfdecd7fd0",class:"Title"},this.tournament.nameOrTitle),!o(this.tournament)&&t("div",{key:"bf2aad175409e687ed2bd42350a7f8585d86c112"},h({statedClasses:{isHollow:this.tournament.isPlayerAcknowledged,isPending:this.isButtonDisabed},onClick:e=>{e.stopPropagation(),this.onClickItemJoin()},innerHTML:l(this.tournament.isPlayerAcknowledged?"Unjoin":"Join",this.language)})))}static get watchers(){return{tournament:["onTournamentChanged"]}}},p=class{constructor(t){e(this,t),this.tournament=void 0,this.isDetail=!1,this.timeHolder=void 0,this.timeClock=!0,this.lastTimeDiff=void 0,this.lastProgress=void 0}containerPageChangeHandler(e){this.timeClock=e.detail.page===c.list&&!this.isDetail||e.detail.page===c.item&&this.isDetail}componentWillLoad(){this.lastProgress=d(this.tournament.startTime,this.tournament.endTime),this.lastTimeDiff=g(new Date,this.tournament.endTime,this.lastProgress)}setTimeInterval(){this.timeHolder=setInterval((()=>{const e=d(this.tournament.startTime,this.tournament.endTime),t=g(new Date,this.tournament.endTime,e);!this.timeClock||o(this.tournament)||t==this.lastTimeDiff&&e==this.lastProgress||(this.lastProgress=e,this.lastTimeDiff=t)}),2e3)}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}render(){return t("section",{key:"11426165a8f384d97f2b0158f7435f80ac0965a2",class:"TimeContainer"},t("div",{key:"b86c8a42a73b358fcc855a853cb322d1d314471a",class:"Time"},"Running"===this.tournament.state?t("div",{class:"Running"},t("div",null,this.lastTimeDiff),t("div",null,h({statedClasses:{isHollow:!0,isPending:!!this.tournament.isActionJoinPending},innerHTML:`${this.lastProgress}%`}))):[t("div",{class:"NotRunning"},m(this.tournament.startTime)),t("div",null,m(this.tournament.endTime))]),t("casino-engagement-suite-progress-bar",{key:"7f98e88679f30d0a0737d94ee806b1d92800b6a3",indeterminate:!1,value:Number(this.lastProgress>=100?100:this.lastProgress),"hide-percent":!0}))}},y=class{constructor(t){e(this,t),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const e=new Image;e.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,e.onload=null)},e.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.__uxComponent;t&&(t.shouldLoad=!0,t.handleSrc()),window.EMUxObserver.unobserve(e.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return t(n,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&t("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),t("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:e=>this.image=e,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return i(this)}static get watchers(){return{src:["handleSrc"]}}};y.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const x=class{constructor(t){e(this,t),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,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"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("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,i)=>t("div",{key:i,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(n,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};x.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{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)}.Circle{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%}.Text{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)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{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)}.Image{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)}.Logo{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)}}";export{u as casino_engagement_suite_progress_bar,w as general_styling_wrapper,f as tournament_item,v as tournament_item_title,p as tournament_timer,y as ui_image,x as ui_skeleton}
@@ -1,4 +1,4 @@
1
- import{h as e,H as i,r as t,c as n}from"./index-8b5c4b95.js";import"@everymatrix/ui-image";
1
+ import{h as e,H as i,r as t,c as n}from"./index-487913af.js";import"@everymatrix/ui-image";
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function a(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)i.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t}var r,o;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(r||(r={})),function(e){e.Starts="Starts",e.Ends="Ends"}(o||(o={}));const s=["en","zh"],M=(e,i)=>(Object.keys(i).map((t=>{e=e.replace(`{${t}}`,i[t])})),e),l={en:Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},r),o),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",ScoreAlgorithms:{BetCount:"Most Rounds",WinStakeRatio:"Win/Stake Ratio",MaxWinStakeRatio:"Max Win/Stake Ratio",Stake:"Turnover"},Place:"place",Places:"places",Prizes:"Rewards",Player:"Player",Rank:"Rank",Score:"Score",Prize:"Prize",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},WinDialog:{Title:"Congratulations!",Description:"You won <span>{rewards}</span>!",ButtonContinue:"Continue",FailedTitle:"Reward cannot be issued",FailedDescription:"Please contact support.",FailedButtonContinue:"Ok, continue"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",TipPrizeWithoutReward:"You took <span>{place}</span> place</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward.",TournamentNotStarted:"The leaderboard is not started yet. <br> It will start in {startTime}.",BeOne:"No winners for the time being. Be one of them!",NoGameConfiged:"No game configed",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),zh:{Join:"加入",Unjoin:"取消",info:"信息",leaderboard:"排行榜",games:"游戏",Starts:"开始",Ends:"结束",TC:"条款与条件",ScoreCriteria:"积分规则",MinimumBetCriteria:"最低投注要求",ScoreAlgorithms:{BetCount:"最多轮次",WinStakeRatio:"赢注比例",MaxWinStakeRatio:"最大赢注比例",Stake:"投注额"},Place:"名次",Places:"名次",Prizes:"奖励",Player:"玩家",Rank:"排名",Score:"积分",Prize:"奖品",LeaderboardDetails:"排行榜详情",UnjoinDialog:{Title:"退出排行榜?",Description:"当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?",ButtonYes:"是的,我要退出排行榜",ButtonNo:"不,留在排行榜"},WinDialog:{Title:"恭喜!",Description:"您赢得了 <span>{rewards}</span>!",ButtonContinue:"继续",FailedTitle:"奖励无法发放",FailedDescription:"请联系客服。",FailedButtonContinue:"好的,继续"},NoLeaderboards:"暂无排行榜",NoLeaderboardsTip:"尝试通过赢得奖品或启动其他增强游戏来获得排行榜",Leaderboards:"排行榜",TipPrize:"您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>",TipPrizeWithoutReward:"您获得 <span>{place}</span> 名",Tip:"您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。",TournamentNotStarted:"排行榜尚未开始。 <br> 它将在 {startTime} 开始。",BeOne:"目前暂无赢家。成为其中之一!",NoGameConfiged:"没有配置游戏",FailedToJoin:"哦哦!发生了一些意外错误,请再试一次。",FailedToUnjoin:"哦哦!发生了一些意外错误,请再试一次。"}},d=(e,i)=>{const t=i;return l[void 0!==t&&s.includes(t)?t:"en"][e]},c=(...e)=>{let i=["Tab"];return e.map((e=>{switch(typeof e){case"string":i.push(e);break;case"object":Object.keys(e).map((t=>{e[t]&&i.push(t)}))}})),i.join(" ")};var g,u,p,j;!function(e){e.list="list",e.item="item"}(g||(g={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(u||(u={})),function(e){e.FreeSpin="FreeSpin",e.Mission="Challenge",e.Leaderboard="TournamentTicket",e.Custom="Custom",e.LuckyWheel="PrizeEngine"}(p||(p={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(j||(j={}));const N=e=>[u.Closed,u.Closing].includes(e.state),D=e=>{switch(e.type){case p.FreeSpin:return e.campaignName;case p.Mission:return e.challengeName;case p.Leaderboard:return e.ticketProgramName;case p.LuckyWheel:return e.prizeEngineProgramName;case p.Custom:return e.value;default:return e.name}},I=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),z=e("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTcxXzUxNikiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOC4wMDAwOCAyLjAwMDAxQzQuNjg2MzcgMi4wMDAwMSAyLjAwMDA4IDQuNjg2MyAyLjAwMDA4IDhDMi4wMDAwOCAxMS4zMTM3IDQuNjg2MzcgMTQgOC4wMDAwOCAxNEMxMS4zMTM4IDE0IDE0LjAwMDEgMTEuMzEzNyAxNC4wMDAxIDhDMTQuMDAwMSA0LjY4NjMgMTEuMzEzOCAyLjAwMDAxIDguMDAwMDggMi4wMDAwMVpNMC42NjY3NDggOEMwLjY2Njc0OCAzLjk0OTkyIDMuOTQ5OTkgMC42NjY2NzIgOC4wMDAwOCAwLjY2NjY3MkMxMi4wNTAyIDAuNjY2NjcyIDE1LjMzMzQgMy45NDk5MiAxNS4zMzM0IDhDMTUuMzMzNCAxMi4wNTAxIDEyLjA1MDIgMTUuMzMzMyA4LjAwMDA4IDE1LjMzMzNDMy45NDk5OSAxNS4zMzMzIDAuNjY2NzQ4IDEyLjA1MDEgMC42NjY3NDggOFpNOC4xNzIxNiA1LjM0OTU1QzcuODYxODEgNS4yOTYzMiA3Lj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kM3Ljc1NjEyIDguMDI3MDcgNy43NzI5MyA4LjAyMDk3IDcuNzk1MzUgOC4wMTI0M0M3Ljg0MDMxIDcuOTk1MyA3LjkwNzE2IDcuOTY4NjEgNy45ODg0OSA3LjkzMjQ2QzguMTUzMDUgNy44NTkzMyA4LjM2NzM3IDcuNzUxNjkgOC41NzY5NSA3LjYxMTk3QzkuMDM2NjggNy4zMDU0OCA5LjI4MDA4IDYuOTc5NDMgOS4yODAwOCA2LjY2NjY3TDkuMjgwMDggNi42NjU2OEM5LjI4MDU1IDYuMzUwOCA5LjE2OTU3IDYuMDQ1OTEgOC45NjY3OCA1LjgwNTAyQzguNzY0IDUuNTY0MTMgOC40ODI1MSA1LjQwMjc4IDguMTcyMTYgNS4zNDk1NVpNNy4zMzM0MSAxMS4zMzMzQzcuMzMzNDEgMTAuOTY1MSA3LjYzMTg5IDEwLjY2NjcgOC4wMDAwOCAxMC42NjY3SDguMDA2NzVDOC4zNzQ5NCAxMC42NjY3IDguNjczNDEgMTAuOTY1MSA4LjY3MzQxIDExLjMzMzNDOC42NzM0MSAxMS43MDE1IDguMzc0OTQgMTIgOC4wMDY3NSAxMkg4LjAwMDA4QzcuNjMxODkgMTIgNy4zMzM0MSAxMS43MDE1IDcuMzMzNDEgMTEuMzMzM1oiIGZpbGw9IiM2NjYxNzgiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTk3MV81MTYiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPHNjcmlwdCB4bWxucz0iIi8+PC9zdmc+Cg==",alt:"question",class:"Question"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),y=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),m=e("img",{src:"data:image/svg+x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yNTk5IDI5LjYwMzlDMzIuMjkzNiAyOS4yODA2IDMyLjA2NTUgMjguODg2NiAzMS42MDkzIDI4LjA5ODZMMjMuMzg0NCAxMy44OTJDMjIuOTI5OSAxMy4xMDY4IDIyLjcwMjYgMTIuNzE0MiAyMi40MDYxIDEyLjU4MjRDMjIuMTQ3NCAxMi40NjczIDIxLjg1MjEgMTIuNDY3MyAyMS41OTM1IDEyLjU4MjRDMjEuMjk2OSAxMi43MTQyIDIxLjA2OTYgMTMuMTA2OCAyMC42MTUxIDEzLjg5MloiIHN0cm9rZT0iIzI1MUQzRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTcwMV8xMjYwNCIgeDE9IjIuODQ3MDYiIHkxPSIyLjA2MjUiIHgyPSI2NC44NDQ3IiB5Mj0iMTEuMDQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIG9mZnNldD0iMC4xMjkxODQiIHN0b3AtY29sb3I9IiNGRjk0MDAiLz4KPHN0b3Agb2Zmc2V0PSIwLjk5MzAwNyIgc3RvcC1jb2xvcj0iI0ZFRjc0NiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkUyNEEiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K",alt:"Reward Assign Failed",class:"Warn"}),A=i=>{var{statedClasses:t,innerHTML:n}=i,r=a(i,["statedClasses","innerHTML"]);const{isHollow:o,isPending:s}=t;return e("button",Object.assign({class:c("GradientRoundedButton","GradientRounded",{Hollow:o||!1,Pending:s||!1})},r),e("span",null,n))};var w;!function(e){e.normal="normal",e.okContinue="okContinue",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(w||(w={}));const L=(e,i,t=!1)=>{const{locale:n}=e,a={normal:{innerHTML:n.WinDialog.ButtonContinue},okContinue:{innerHTML:n.WinDialog.FailedButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:n.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:n.UnjoinDialog.ButtonNo}}[i];return A({statedClasses:Object.assign({isPending:t},a.statedClasses),onClick:()=>{var i;null===(i=a.onClick)||void 0===i||i.call(),e.closeDialog()},innerHTML:a.innerHTML})},O={gift(i){const{name:t,failedRewards:n}=i.gifts[0],{locale:a}=i;return e("div",{class:"PageConfirmContainer"},t?e("div",{class:"PageConfirm Gift"},e("div",null,T),e("div",{class:"Title"},a.WinDialog.Title),e("div",{class:"Description",innerHTML:M(a.WinDialog.Description,{rewards:t})}),e("div",{class:"PageConfirmButtonsGroup"},L(i,w.normal))):e("div",{class:"PageConfirm Gift"},e("div",null,b),e("div",{class:"Title",innerHTML:M(a.WinDialog.FailedTitle,{failedRewards:n})}),e("div",{class:"Description"},a.WinDialog.FailedDescription),e("div",{class:"PageConfirmButtonsGroup"},L(i,w.okContinue))))},unjoin(i){const{locale:t}=i;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),L(i,w.unjoinYes),L(i,w.unjoinNo))}},f=e=>{const i=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],t={};return Object.keys(e).map((n=>{const a=e[n];t[n]="games"===n?a.items:i.includes(n)?new Date(a):a})),t},C=(e,i)=>(["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime","state","prizes","minBetCount","scoreCriteria","termsUrl"].forEach((t=>{e[t]=i[t]})),Object.assign({},e)),k=e=>{let{item:i,items:t}=e;return t.forEach((e=>e.userId=e.userId||e.userID)),i?(i.userId=i.userId||i.userID,-1!==t.findIndex((e=>e.userId===i.userId))||(t=[i,...t]),t.map((e=>(null==i?void 0:i.userId)&&i.userId===e.userId?Object.assign(Object.assign({},e),{isMe:!0}):e))):t},v=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),S=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),E=(e,i)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:i}),Y=(e,i,t)=>{const{success:n,data:a}=i;let r=e.tournamentList.findIndex((e=>e.id===(a.tournamentId||a.id||a.bonusCode))),o=e.tournamentList[r];if(-1!=r){if(o.isActionJoinPending=!1,e.page===g.item&&e.tournamentItem.id===o.id&&(e.tournamentItem=Object.assign(Object.assign({},e.tournamentItem),{isActionJoinPending:!1})),e.pendingChangeEvent.emit(o),!n)return e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],void e.openDialog(j.error);if(t?(o.isPlayerAcknowledged=!0,o.order=e.minOrder--):(o.isUnjoined=!0,((e,i)=>{const t=setTimeout((()=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i)),clearTimeout(t)}),100)})(e,a.tournamentId)),e.tournamentList[r]=Object.assign({},o),e.tournamentList=[...e.tournamentList],e.page===g.item){if(!t)return void e.setPage(g.list);e.tournamentItem=Object.assign({},o)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0)}},U=(e,i)=>{i.success?(e.leaderboards=k(i.data),e.currentPlayerRank=i.data.item?i.data.item.rank:-1):console.error(i)},Q=(e,i)=>{const t=f(i);e.page===g.item&&e.tournamentItem.id===i.id&&(e.tournamentItem=C(e.tournamentItem,t)),e.tournamentList=e.tournamentList.map((e=>e.id===i.id?C(e,t):e))},P=(e,i)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i.id))},W=(e,i)=>{const t=e.tournamentList.findIndex((e=>e.id===i.id));-1===t?e.tournamentList=[f(i),...e.tournamentList]:(e.tournamentList[t]=f(i),e.tournamentList=[...e.tournamentList])},R={list(i){var t;if(!(null==i?void 0:i.tournamentList))return i.tournamentList=null===(t=i.leaderboardsInit)||void 0===t?void 0:t.map((e=>f(e))),e("general-animation-loading",null);const{locale:n,language:a}=i;return G(i.tournamentList.length?e("div",{class:"Leaderboards ScrollBar Row"},i.tournamentList.map(((t,n)=>e("tournament-item",{tid:t.id,key:t.id,tournament:t,style:{order:`${t.order||n}`},isNew:i.newIdList.includes(t.id),language:a})))):e("div",{class:"NoLeaderboards ScrollBar Row"},e("h3",{class:"Title"},n.NoLeaderboards),e("div",{class:"message"},n.NoLeaderboardsTip)))},item(i){if(!i.tournamentItem)return e("general-animation-loading",null);const{locale:t,tab:n,language:a}=i;return G([e("tournament-item-title",{tournament:i.tournamentItem,language:a}),e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(r).map((a=>e("div",{class:c({active:n===a}),onClick:()=>(e=>{switch(i.tab=e,e){case r.leaderboard:i.leaderboards=void 0,E(i.tournamentItem);break;case r.games:S(i.tournamentItem)}})(a)},t[a]))))),e("div",{class:`TableContentWrapper Tab_${i.tab}`},i.renders.tab[i.tab]())])}},G=i=>e("div",{class:"Root"},e("div",{class:"Main"},i));function B(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function Z(e,i){return(new Date).getTime()>=i.getTime()?100:Math.floor(100*((new Date).getTime()-e.getTime())/(i.getTime()-e.getTime()))}function F(e,i,t=0){const n=Math.abs(i.getTime()-e.getTime()),a=Math.floor(n/864e5),r=Math.floor(n%864e5/36e5),o=Math.floor(n%36e5/6e4),s=100===t?0:0===o?1:o;return`${String(a).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(s).padStart(2,"0")}m`}const H={info(i){var t,n;const{locale:a,tournamentItem:r,isShowInfo:o}=i,s=J(null===(t=i.leaderboards)||void 0===t?void 0:t.find((e=>e.isMe))),l=!(null==s?void 0:s.place)||(null==s?void 0:s.unqualified)?"":M((null==s?void 0:s.prize)?a.TipPrize:a.TipPrizeWithoutReward,s),d=a.ScoreAlgorithms[r.scoreCriteria];return e("div",{class:"InfoContainer"},e("tournament-timer",{"is-detail":!0,tournament:r}),e("section",{class:"ShowInfo",onClick:()=>i.isShowInfo=!i.isShowInfo},e("div",{class:"DetailHeader"},e("span",null,o?x:y),e("span",null,a.LeaderboardDetails))),e("div",{class:"ContentScrollContainer "+(o?"expanded":"")},o&&e("section",{class:"Info"},e("div",{class:"Description"},r.description),e("div",{class:"Criterias"},e("div",null,a.ScoreCriteria,": ",e("span",null,d)),e("div",null,a.MinimumBetCriteria,": ",e("span",null,r.minBetCount))),!!r.termsUrl&&e("div",{class:"TC"},e("a",{href:r.termsUrl,target:"_blank"},a.TC))),(e=>[u.Closed].includes(e.state))(i.tournamentItem)&&(null===(n=i.leaderboards)||void 0===n?void 0:n.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:l}),e("section",{class:"PrizesContainer"},e("div",{class:"PrizesHeader"},h,e("span",{class:"PrizesText"},a.Prizes)),e("div",{class:"Prizes"},r.prizes.map((i=>e("div",{class:"Prize"},e("span",{class:"Rank"},i.rank," ",1===i.count?"":" - "+(i.rank+i.count-1)),1===i.count?a.Place:a.Places,": ",e("span",{class:"PrizeText"},i.name))))))))},leaderboard(i){const{locale:t,tournamentItem:n}=i;if("Unstarted"===(null==n?void 0:n.state)){const i=F(null==n?void 0:n.startTime,new Date);return e("div",{class:"LeaderboardUnstarted",innerHTML:M(t.TournamentNotStarted,{startTime:i})})}return i.leaderboards?i.leaderboards.length?e("table",{class:"Leaderboards"},e("thead",null,e("tr",null,e("th",null,t.Rank),e("th",null,t.Player),e("th",null,t.Score),e("th",null,t.Prize))),i.leaderboards.map((t=>e("tr",{class:c({isMe:t.isMe}),ref:e=>t.isMe&&(i.isMeElement=e)},e("td",{class:"LeaderboardRank"},e("span",null,t.rank)),e("td",{class:"LeaderboardName"},e("span",null,t.shortName)),e("td",{class:"LeaderboardScore"},e("span",null,((e,i,t=!1)=>{const n=Number(e);if(isNaN(n))throw new Error("Input must be a valid number or string that can be converted to number");if(t&&!n.toString().includes("."))return e;if(0===i)return Math.floor(n);const a=Math.pow(10,i);return(Math.floor(n*a)/a).toFixed(i)})(t.score,2,!0))),e("td",{class:"LeaderboardPrize"},e("span",null,t.prizeName)))))):e("div",{class:"LeaderboardUnstarted"},t.BeOne):e("general-animation-loading",null)},games(i){var t;return i.tournamentItem.games?e("div",{class:"Games"},i.tournamentItem.games.length?null===(t=i.tournamentItem.games)||void 0===t?void 0:t.map((t=>e("div",{class:"Game "+(i.currentGameId==t.id?"Current":""),onClick:()=>{i.onGameClick(t)}},e("ui-image",{src:t.defaultThumbnail,alt:"Game"})))):i.locale.NoGameConfiged):e("general-animation-loading",null)}},J=e=>({prize:null==e?void 0:e.prizeName,place:null==e?void 0:e.rank,unqualified:null==e?void 0:e.unqualified}),V={dialog:O,page:R,tab:H};var $,X={};(function(e){var i=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,i)=>{for(var t in i||(i={}))r.call(i,t)&&s(e,t,i[t]);if(a)for(var t of a(i))o.call(i,t)&&s(e,t,i[t]);return e},l=(e,i)=>t(e,n(i)),d=(e,i,t)=>(s(e,"symbol"!=typeof i?i+"":i,t),t);function c(){}function g(e){return e()}function u(){return Object.create(null)}function p(e){e.forEach(g)}function j(e){return"function"==typeof e}function N(e,i){return e!=e?i==i:e!==i||e&&"object"==typeof e||"function"==typeof e}function D(e,i,t){e.insertBefore(i,t||null)}function I(e){e.parentNode&&e.parentNode.removeChild(e)}function z(e){return document.createElement(e)}let x;function y(e){x=e}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const m=[],h=[];let T=[];const b=[],A=Promise.resolve();let w=!1;function L(e){T.push(e)}const O=new Set;let f=0;function C(){if(0!==f)return;const e=x;do{try{for(;f<m.length;){const e=m[f];f++,y(e),k(e.$$)}}catch(e){throw m.length=0,f=0,e}for(y(null),m.length=0,f=0;h.length;)h.pop()();for(let e=0;e<T.length;e+=1){const i=T[e];O.has(i)||(O.add(i),i())}T.length=0}while(m.length);for(;b.length;)b.pop()();w=!1,O.clear(),y(e)}function k(e){if(null!==e.fragment){e.update(),p(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(L)}}const v=new Set;function S(e,i,t,n,a,r,o=null,s=[-1]){const M=x;y(e);const l=e.$$={fragment:null,ctx:[],props:r,update:c,not_equal:a,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(M?M.$$.context:[])),callbacks:u(),dirty:s,skip_bound:!1,root:i.target||M.$$.root};o&&o(l.root);let d=!1;if(l.ctx=t?t(e,i.props||{},((i,t,...n)=>{const r=n.length?n[0]:t;return l.ctx&&a(l.ctx[i],l.ctx[i]=r)&&(!l.skip_bound&&l.bound[i]&&l.bound[i](r),d&&function(e,i){-1===e.$$.dirty[0]&&(m.push(e),w||(w=!0,A.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}(e,i)),t})):[],l.update(),d=!0,p(l.before_update),l.fragment=!!n&&n(l.ctx),i.target){if(i.hydrate){const e=function(e){return Array.from(e.childNodes)}(i.target);l.fragment&&l.fragment.l(e),e.forEach(I)}else l.fragment&&l.fragment.c();i.intro&&function(e){e&&e.i&&(v.delete(e),e.i(void 0))}(e.$$.fragment),function(e,i,t){const{fragment:n,after_update:a}=e.$$;n&&n.m(i,t),L((()=>{const i=e.$$.on_mount.map(g).filter(j);e.$$.on_destroy?e.$$.on_destroy.push(...i):p(i),e.$$.on_mount=[]})),a.forEach(L)}(e,i.target,i.anchor),C()}y(M)}let E;function Y(e,i,t,n){var a;const r=null==(a=t[e])?void 0:a.type;if(i="Boolean"===r&&"boolean"!=typeof i?null!=i:i,!n||!t[e])return i;if("toAttribute"===n)switch(r){case"Object":case"Array":return null==i?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return null==i?null:i;default:return i}else switch(r){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":default:return i;case"Number":return null!=i?+i:i}}"function"==typeof HTMLElement&&(E=class extends HTMLElement{constructor(e,i,t){super(),d(this,"$$ctor"),d(this,"$$s"),d(this,"$$c"),d(this,"$$cn",!1),d(this,"$$d",{}),d(this,"$$r",!1),d(this,"$$p_d",{}),d(this,"$$l",{}),d(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=i,t&&this.attachShadow({mode:"open"})}addEventListener(e,i,t){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){const t=this.$$c.$on(e,i);this.$$l_u.set(i,t)}super.addEventListener(e,i,t)}removeEventListener(e,i,t){if(super.removeEventListener(e,i,t),this.$$c){const e=this.$$l_u.get(i);e&&(e(),this.$$l_u.delete(i))}}connectedCallback(){return e=this,i=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let i;return{c:function(){i=z("slot"),"default"!==e&&function(e,i,t){null==t?e.removeAttribute(i):e.getAttribute(i)!==t&&e.setAttribute(i,t)}(i,"name",e)},m:function(e,t){D(e,i,t)},d:function(e){e&&I(i)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const i={},t=function(e){const i={};return e.childNodes.forEach((e=>{i[e.slot||"default"]=!0})),i}(this);for(const n of this.$$s)n in t&&(i[n]=[e(n)]);for(const e of this.attributes){const i=this.$$g_p(e.name);i in this.$$d||(this.$$d[i]=Y(i,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:l(M({},this.$$d),{$$slots:i,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const i=Y(e,this.$$d[e],this.$$p_d,"toAttribute");null==i?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,i)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const i of this.$$l[e]){const t=this.$$c.$on(e,i);this.$$l_u.set(i,t)}this.$$l={}}},new Promise(((t,n)=>{var a=e=>{try{o(i.next(e))}catch(e){n(e)}},r=e=>{try{o(i.throw(e))}catch(e){n(e)}},o=e=>e.done?t(e.value):Promise.resolve(e.value).then(a,r);o((i=i.apply(e,null)).next())}));var e,i}attributeChangedCallback(e,i,t){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Y(e,t,this.$$p_d,"toProp"),null==(n=this.$$c)||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e))||e}});class U{constructor(){d(this,"$$"),d(this,"$$set")}$destroy(){(function(e,i){const t=e.$$;null!==t.fragment&&(function(e){const i=[],t=[];T.forEach((n=>-1===e.indexOf(n)?i.push(n):t.push(n))),t.forEach((e=>e())),T=i}(t.after_update),p(t.on_destroy),t.fragment&&t.fragment.d(i),t.on_destroy=t.fragment=null,t.ctx=[])})(this,1),this.$destroy=c}$on(e,i){if(!j(i))return c;const t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(i),()=>{const e=t.indexOf(i);-1!==e&&t.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Q(e){!function(e,i,t){const n=function(e){if(!e)return document;const i=e.getRootNode?e.getRootNode():e.ownerDocument;return i&&i.host?i:e.ownerDocument}(e);if(!n.getElementById(i)){const e=z("style");e.id=i,e.textContent=t,function(e,i){!function(e,i){e.appendChild(i)}(e.head||e,i)}(n,e)}}(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function P(e){let i;return{c(){i=z("div"),i.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(t,n){D(t,i,n),e[4](i)},p:c,i:c,o:c,d(t){t&&I(i),e[4](null)}}}function W(e,i,t){let n,{clientstyling:a=""}=i,{clientstylingurl:r=""}=i,{mbsource:o}=i;return function(e){(function(){if(!x)throw new Error("Function called outside component initialization");return x})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&t(1,a=e.clientstyling),"clientstylingurl"in e&&t(2,r=e.clientstylingurl),"mbsource"in e&&t(3,o=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&a&&n&&function(e,i){if(e){const t=document.createElement("style");t.innerHTML=i,e.appendChild(t)}}(n,a),5&e.$$.dirty&&r&&n&&function(e,i){const t=new URL(i);fetch(t.href).then((e=>e.text())).then((i=>{const t=document.createElement("style");t.innerHTML=i,e&&e.appendChild(t)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,r),9&e.$$.dirty&&o&&n&&function(e,i){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{t.innerHTML=i,e&&e.appendChild(t)}))}}(n,`${o}.Style`)},[n,a,r,o,function(e){h[e?"unshift":"push"]((()=>{n=e,t(0,n)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class R extends U{constructor(e){super(),S(this,e,W,P,N,{clientstyling:1,clientstylingurl:2,mbsource:3},Q)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),C()}}!function(e,i,t){let n=class extends E{constructor(){super(e,t,true),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map((e=>(i[e].attribute||e).toLowerCase()))}};Object.keys(i).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(t){var n;t=Y(e,t,i),this.$$d[e]=t,null==(n=this.$$c)||n.$set({[e]:t})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){var i;return null==(i=this.$$c)?void 0:i[e]}})})),e.element=n}(R,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),e.default=R})(X),"undefined"!=typeof window&&(customElements.define=($=customElements.define,function(...e){try{return $.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>X)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)})));const K=i=>{const{left:t,middle:n,right:a}=i,r={left:t,middle:n,right:a};return e("div",{class:"WrapperBar"},Object.keys(r).map((i=>{return e("div",{class:"WrapperBar"+(t=i,t.split("").map(((e,i)=>0===i?e.toUpperCase():e)).join(""))},r[i]||"");var t})))},_=class{handleEvent(e){var i,t;const n=e.data,{type:r}=n,o=a(n,["type"]);var s;null===(t=null===(s=this,i={UpdateLeaderboardsPlayerRes:e=>{const{rank:i,detail:t}=(e=>{let i=null;return(e||[]).map((e=>{var t;const{leaderBoard:{rank:n}}=e;n&&(i=!i||(null===(t=i.leaderBoard)||void 0===t?void 0:t.rank)>n?e:i)})),{rank:i?`${i.leaderBoard.rank} / ${i.endRank}`:"-",detail:i?{playerRank:i.leaderBoard.rank,total:i.endRank}:null}})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:i,detail:t})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const i=f(e.data.item);s.tournamentItem=i,Q(s,i)},UpdateLeaderboardsRes:e=>U(s,e),JoinTournamentRes:e=>Y(s,e,!0),UnjoinTournamentRes:e=>Y(s,e,!1),TournamentsPageIsReadyRes:e=>s.currentGameId=""+e.data.GameId,LeaderboardLiveEvent:e=>((e,i)=>{const{messageType:t,item:n}=i;switch(t){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":W(e,n);break;case"TournamentRemove":P(e,n);break;case"LeaderBoardUpdate":e.leaderboards=k(i)}})(s,e),LiveLeaderboardUpdate:e=>((e,i)=>{var t;try{const n=JSON.parse(i.data.Message),{playerLeaderBoard:a,tournamentId:r,leaderBoardList:o}=n;a&&window.postMessage({type:"UpdateLeaderboardState",rank:`${a.rank} / ${o.totalRecords}`,detail:{playerRank:a.rank,total:o.totalRecords}}),(null===(t=e.tournamentItem)||void 0===t?void 0:t.id)==r&&U(e,{data:{item:Object.assign({},a),items:[...o.players]},success:!0})}catch(e){console.error("Exception when parse live update info, ",e)}})(s,Object.assign(Object.assign({},e),{messageType:"LeaderboardUpdate"})),LiveTournamentUpdate:e=>((e,i)=>{try{const t=JSON.parse(i.data.Message);Q(e,t)}catch(e){console.error("Exception when parse Player Tournament Info",e)}})(s,Object.assign(Object.assign({},e),{messageType:"TournamentUpdate"})),LiveLeaderboardFinalizeUpdate:e=>((e,i)=>{try{const t=JSON.parse(i.data.Message),n=t.rewards.filter((e=>e.status&&"success"!==e.status)).map((e=>D(e))),a=t.rewards.filter((e=>!!e.assigned&&"success"===e.status)).map((e=>D(e)));n.length&&(e.gifts=[{name:null,failedRewards:n.join(",")},...e.gifts]),a.length&&t.prizeName&&(e.gifts=[{name:t.prizeName[e.language]||t.prizeName["*"]||""},...e.gifts]),e.checkGift()}catch(e){console.error("Exception when parse Player LeaderboardFinalize info",e)}})(s,Object.assign(Object.assign({},e),{messageType:"PlayerFinalizeUpdate"}))})||void 0===i?void 0:i[r])||void 0===t||t.call(null,o)}handleClickToTournamentDetail(e){const i=e.detail;this.setPage(g.item,{tournament:i}),this.newIdList=this.newIdList.filter((e=>e!==i.id))}handleJoinTournamentEvent(e){const i=e.detail;this.actionJoin(i),this.tournamentItem=i}handleUnjoinTournamentEvent(e){const{tournament:i}=e.detail;this.openDialog(j.unjoin,i)}watchPropHandler(e,i){e!==i&&l[e]&&(this.locale=l[e])}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,i){if(i){const a=(t=i,n=(e,i)=>e.id===i.id,e.filter((e=>!t.some((i=>n(e,i))))));this.newIdList=[...this.newIdList,...a.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var t,n}showPropWatcher(e,i){0==i&&1==e&&(this.checkGift(),this.page=g.list)}addLabel(e){this.labels.includes(e)||this.labels.push(e),v(this.labels)}removeLabel(e){this.labels=this.labels.filter((i=>i!=e)),v(this.labels)}checkGift(){this.gifts.length?(this.labels.includes("win")||this.labels.push("win"),v(this.labels),this.show&&this.openDialog(j.gift,this.gifts[0],(()=>{if(this.dialog.type===j.gift){this.gifts=this.gifts.slice(1);const e=setTimeout((()=>{this.checkGift(),clearTimeout(e)}),300)}}))):this.removeLabel("win")}getContainerScrollTop(){var e;return this.page===g.list?this.containerScrollTop:(null===(e=this.detailElement)||void 0===e?void 0:e.clientHeight)/2-250}handleClickOutside(e){e.composedPath()[0]!==this.tooltipIconReference&&e.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidLoad(){window.postMessage({type:"TournamentsPageIsReady"})}renderTooltip(){return this.showTooltip?e("div",{class:"question__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.locale.Tip}):null}connectedCallback(){window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}scrollToMyRankLine(){this.isMeElement&&(this.isMeElement.scrollIntoView({behavior:"smooth"}),this.scrolledToMyLine=!0)}componentDidRender(){this.scrolledToMyLine=!1,this.page===g.item?this.tab===r.leaderboard?this.currentPlayerRank>this.defaultPageSize&&!this.scrolledToMyLine&&this.scrollToMyRankLine():this.scrolledToMyLine=!1:this.page===g.list&&(this.scrolledToMyLine=!1)}onGameClick(e){e.id!=this.currentGameId&&(e=>{window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:e.slug}})})(e)}actionJoin(e){if(!e.isActionJoinPending){e.isActionJoinPending=!0,this.page===g.item&&(this.tournamentItem.isActionJoinPending=!0,this.tournamentItem=Object.assign({},this.tournamentItem)),this.pendingChangeEvent.emit(e);try{e.isPlayerAcknowledged?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var i,t;window.postMessage({type:"JoinTournamentReq",id:e.id,bonusCode:e.id||(null===(t=null===(i=e.wallets)||void 0===i?void 0:i[0])||void 0===t?void 0:t.code)})})(e)}catch(e){console.log("error",e)}}}setPage(e,i){this.page=e,e===g.item&&(this.isShowInfo=!1,this.tournamentItem=i.tournament,this.tournamentItem||S(i.tournament),N(this.tournamentItem)&&E(this.tournamentItem),this.tab=r.info),this.tournamentTimer.emit({page:e})}render(){return e(i,null,e("general-styling-wrapper",{clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:l,translationUrl:this.translationUrl}),e("div",{class:`Wrapper ${this.device} ${this.orientation}`},e("div",{class:c("WrapperContent",{faded:this.dialog.isOpen,page:this.page})},this.page&&K({left:this.page===g.list?e("span",{class:"EngagementSuiteIcon",onClick:this.openDialog.bind(this,j.tip)},z):e("span",{class:"EngagementSuiteIcon",onClick:this.setPage.bind(this,g.list)},m),middle:this.locale.Leaderboards,right:e("span",{class:"EngagementSuiteIcon",onClick:()=>this.close.emit()},I)}),e("div",{class:`Leaderboards ${this.page} ${"list"===this.page?"Active":"Hidden"}`,ref:e=>this.pageElement=e},this.renders.page.list()),this.page===g.item&&e("div",{class:`Leaderboards ${this.page} ${"item"===this.page?"Active":"Hidden"} `,ref:e=>this.detailElement=e},this.renders.page.item())),e("div",{class:"WrapperUtil"},e("dialog",{class:`${this.dialog.type}`,open:this.dialog.isOpen},e("div",{class:"Hollow "+("gift"===this.dialog.type?"GradientRounded":"")},K({right:e("span",{class:"EngagementSuiteIcon",onClick:()=>this.closeDialog()},I)}),this.dialog.isOpen&&(()=>{switch(this.dialog.type){case j.unjoin:return this.renders.dialog.unjoin();case j.tip:return e("div",{class:"Tip"},this.locale.Tip);case j.error:return e("div",{class:"Tip Error"},this.locale.FailedToJoin);case j.gift:return this.renders.dialog.gift()}})())))))}openDialog(e,i,t){if(this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:t,type:e,data:i}),e===j.error||e===j.tip){const e=setTimeout((()=>{this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1}),clearInterval(e)}),this.tipsHideDelay)}}closeDialog(){var e;null===(e=this.dialog.onClose)||void 0===e||e.call(this),this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1,onClose:void 0})}constructor(e){t(this,e),this.close=n(this,"close",7),this.tournamentTimer=n(this,"tournamentTimer",7),this.pendingChangeEvent=n(this,"pendingChangeEvent",7),this.minOrder=-1,this.gifts=[],this.labels=[],this.showTooltip=!1,this.defaultPageSize=12,this.scrolledToMyLine=!1,this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.orientation="Landscape",this.leaderboardsInit=void 0,this.tipsHideDelay=3e3,this.tab=r.info,this.locale=l[this.language],this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isDialogOpen=!1,this.isShowInfo=!1,this.page=g.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.newIdList=[],this.renders={},Object.keys(V).forEach((e=>{this.renders[e]={},Object.keys(V[e]).forEach((i=>{this.renders[e][i]=V[e][i].bind(this,this)}))}))}static get watchers(){return{newIdList:["watchPropHandler"],language:["watchPropHandler"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};_.style='.Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{margin-top:5px;opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}table.Leaderboards{height:auto}table.Leaderboards td span{display:inline-block;overflow-y:auto;width:98%}table.Leaderboards td.LeaderboardRank{width:10%;min-width:70px}table.Leaderboards td.LeaderboardScore{width:25%}table.Leaderboards td.LeaderboardScore span{min-width:128px}table.Leaderboards td.LeaderboardName{width:20%;max-width:180px}table.Leaderboards td.LeaderboardPrize{width:auto;text-align:left;display:grid}.Wrapper{position:relative;min-height:100%;line-height:20px;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:var(--emw--border-radius-large, 8px);word-break:break-all}.Wrapper .Title{background-color:transparent}.Wrapper .TableContentWrapper{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Wrapper .Games .Game .Skeleton{animation:none}.Wrapper .Games .Game .Skeleton.Image{background-color:transparent}.Wrapper .WrapperContent .TableContentWrapper{height:calc(100vh - 216px);overflow-y:auto}.Wrapper .WrapperContent .Main{height:calc(100vh - 109px)}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row{display:flex;flex-direction:column}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row tournament-item{transition:2s ease-in-out;transform:translate(0) scale(1, 1);opacity:0.99}.Wrapper.Mobile .PageConfirmContainer,.Wrapper.Mobile .DialogContentUnjoin{min-width:80%;width:78vw}.Wrapper.Mobile dialog>div{margin:0px}.Wrapper.Mobile dialog.tip{padding:120px 10px}.Wrapper.Mobile dialog.unjoin .Hollow{margin:5px}.Wrapper.Mobile .GradientRoundedButton{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .PageConfirmButtonsGroup{margin:10px auto}.Wrapper.Mobile .PageConfirm.Gift{padding:5px 16px 30px}.Wrapper.Mobile .PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 22px);line-height:25px}.Wrapper.Mobile .PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 16px)}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 16px);padding:8px}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:var(--emw--border-radius-large, 15px)}.Wrapper.Mobile .GradientRounded{position:relative;border-radius:12px}.WrapperContent{padding-bottom:7px;transition:0.5s filter;display:flex;flex-direction:column;justify-content:space-between}.WrapperContent.faded{filter:brightness(53.3333333333%);pointer-events:none}.WrapperContent .Title{background:transparent;width:initial;height:initial;border:initial;margin-bottom:initial}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:16px 8px 8px;margin-bottom:8px}.Wrapper.Mobile .Tip{padding:0px 30px 32px}.Wrapper.Mobile .TitleContainer .GradientRoundedButton{width:100px}.Wrapper.Mobile .WrapperContent .WrapperBar{padding:12px 8px;line-height:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .WrapperContent .WrapperBar .WrapperBarMiddle{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .items.TitleContainer{height:50px;margin-bottom:5px}.Wrapper.Mobile .Title{font-size:var(--emw--font-size-large, 16px)}.Wrapper.Mobile .WrapperContent .Main{height:calc(100vh - 179px)}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 276px);overflow-y:auto}.Wrapper.Mobile .WrapperBarLeft span.EngagementSuiteIcon img,.Wrapper.Mobile .WrapperBarRight span.EngagementSuiteIcon img{width:16px;height:16px}.WrapperBar{display:flex;width:100%;padding:16px 8px 12px;align-content:center;justify-content:center;align-items:center}.WrapperBar .WrapperBarLeft span{position:relative}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarLeft span.EngagementSuiteIcon img,.WrapperBarRight span.EngagementSuiteIcon img{width:24px;height:24px}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 14px)}.ScrollBar{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0;padding-top:5px}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:20px 0;border:1px solid rgb(64, 57, 86);border-radius:6px;padding:12px 0}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 14px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time .Running{width:100%;display:flex;flex-direction:row;justify-content:space-between}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 14px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat;align-items:center}.TitleContainer .GradientRoundedButton{width:120px}.item .TitleContainer{height:55px;overflow:auto}.TabsContainer{margin:10px 0;padding:0 20px;margin:0 20px;padding:0;border-bottom:1px solid #575757}.Tabs{display:flex;justify-content:space-between;justify-content:start;font-size:var(--emw--font-size-x-small, 14px);margin-bottom:-1px}.Tabs .Tab{text-transform:capitalize}.Tabs>div{padding:10px;color:rgb(102, 97, 120);cursor:pointer}.Tabs>div.active{color:var(--emw--color-typography, #FFF);border-bottom:2px solid var(--emw--color-typography, #FFF)}.Title{font-size:var(--emw--font-size-large, 20px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:14px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:14px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:14px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .Rank{margin-right:5px}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:20px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{margin-top:10px;margin-right:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards thead{position:sticky;top:0;z-index:2;background-color:var(--emw--color-background, hsl(254, 44%, 15%))}.Leaderboards td,.Leaderboards th{opacity:0.6;padding:12px 5px}.Leaderboards th:last-child{text-align:left}.Leaderboards td:first-child{padding-left:20px}.Leaderboards td:last-child{padding-right:20px}.Leaderboards .LeaderboardName{color:var(--emw--color-typography, #FFF);opacity:1}.Leaderboards tr.isMe{background:rgba(0, 0, 0, 0.2);scroll-margin-top:42px}.Leaderboards tr.isMe .LeaderboardRank span{padding:0px 3px;opacity:1;border:1px solid var(--emw--color-primary, rgb(255, 214, 47));border-radius:11px}.Leaderboards tr.isMe td{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:var(--emw--font-weight-semibold, 500)}.LeaderboardLabels{position:absolute;top:-6px;right:18px;display:flex;gap:4px}.LeaderboardLabel{width:30px;height:15px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:var(--emw--font-size-3x-small, 7px);line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-background, #1E1638)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;display:grid;justify-content:start;grid-template-columns:repeat(4, 25%);margin-top:8px;align-content:flex-start;width:100%}.Games .Game{padding-right:8px}.Games .Game.Current{cursor:auto;filter:grayscale(10)}.Games .Game:nth-of-type(4n){padding-right:0px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25));cursor:pointer}.Games .Game.Current:hover{cursor:auto;filter:grayscale(10);cursor:not-allowed}.Games img{width:100%;height:auto;margin:auto 0}dialog.tip{position:absolute;align-items:start;padding:120px 90px;line-height:20px;border:none;border-radius:var(--emw--border-radius-large, 8px);font-size:var(--emw--font-size-small, 16px)}dialog.tip>div{margin:0px}dialog{display:none;position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;z-index:1;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}dialog>div{margin:32px;border-radius:8px;background:var(--emw--color-background, hsl(254, 44%, 15%));border:1px solid hsl(254, 20%, 28%);align-items:center}dialog div.Hollow .WrapperBar{padding:12px}dialog div.Hollow .WrapperBar .WrapperBarRight img{width:20px}dialog div.Hollow .Tip{line-height:20px;padding:0px 60px 32px;font-size:var(--emw--font-size-small, 16px)}dialog[open]{display:flex}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;max-width:510px;flex-direction:column}.DialogContentUnjoinTitle{font-family:Montserrat;font-size:var(--emw--font-size-large, 20px);font-weight:600;line-height:24.38px;text-align:center}.DialogContentUnjoinDescription{color:var(--emw--color-secondary, rgb(187, 185, 195));margin-bottom:30px}.Tip{padding:32px;padding-top:0px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.PageConfirmContainer{text-align:center;width:80%;min-width:450px;max-width:510px;margin:0 auto}.PageConfirm{padding:0px 32px 60px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 26px);text-align:center}.PageConfirm .Description{color:var(--emw--color-secondary, rgb(187, 185, 195));font-weight:400}.PageConfirm .Description span{color:var(--emw--color-typography, #FFF);font-weight:600}.PageConfirm.Gift{padding:22px 32px 60px}.PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 30px)}.PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 20px)}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 20px);padding:12px;height:auto}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:20px}.PageConfirmButtonsGroup{width:150px;margin:20px auto;display:flex;flex-direction:column;gap:10px}.GradientRounded{display:block;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:rgb(30, 22, 56);position:relative;border-radius:16px}.GradientRounded.Hollow{background:rgb(30, 22, 56);color:#FFFFFF}.GradientRounded.Hollow::before{content:"";position:absolute;inset:0;border-radius:15px;border:1px solid transparent;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.GradientRoundedButton{border:none;padding:7px;height:32px;width:100%;font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:17.07px;text-align:center;transition:0.5s opacity;cursor:pointer}.GradientRoundedButton.Pending{cursor:not-allowed;opacity:0.3}.GradientRoundedButton.Hollow span{background:-webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.LeaderboardsItem.GradientRounded.Hollow::before{border-radius:7px}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}';export{_ as C,j as D,g as L,F as a,c,B as f,Z as g,N as i,A as r,d as t}
15
+ ***************************************************************************** */function a(e,i){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)i.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t}var r,o;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(r||(r={})),function(e){e.Starts="Starts",e.Ends="Ends"}(o||(o={}));const s=["en","zh"],M=(e,i)=>(Object.keys(i).map((t=>{e=e.replace(`{${t}}`,i[t])})),e),l={en:Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},r),o),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",ScoreAlgorithms:{BetCount:"Most Rounds",WinStakeRatio:"Win/Stake Ratio",MaxWinStakeRatio:"Max Win/Stake Ratio",Stake:"Turnover"},Place:"place",Places:"places",Prizes:"Rewards",Player:"Player",Rank:"Rank",Score:"Score",Prize:"Prize",LeaderboardDetails:"Leaderboard Details",UnjoinDialog:{Title:"Quit Leaderboard?",Description:"Any progress on the current Leaderboard won’t be kept and you can not rejoin the Leaderboard any more. <br /><br />Would you still like to quit?",ButtonYes:"Yes, I want to quit leaderboard",ButtonNo:"No, Stay on the leaderboard"},WinDialog:{Title:"Congratulations!",Description:"You won <span>{rewards}</span>!",ButtonContinue:"Continue",FailedTitle:"Reward cannot be issued",FailedDescription:"Please contact support.",FailedButtonContinue:"Ok, continue"},NoLeaderboards:"No Leaderboards yet",NoLeaderboardsTip:"Try winning tickets to Leaderboards as rewards or launching other booster games",Leaderboards:"Leaderboards",TipPrize:"You took <span>{place}</span> place and win <span>{prize}</span>",TipPrizeWithoutReward:"You took <span>{place}</span> place</span>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward.",TournamentNotStarted:"The leaderboard is not started yet. <br> It will start in {startTime}.",BeOne:"No winners for the time being. Be one of them!",NoGameConfiged:"No game configed",FailedToJoin:"Oops! some unexpected error happened, please try it again.",FailedToUnjoin:"Oops! some unexpected error happened, please try it again."}),zh:{Join:"加入",Unjoin:"取消",info:"信息",leaderboard:"排行榜",games:"游戏",Starts:"开始",Ends:"结束",TC:"条款与条件",ScoreCriteria:"积分规则",MinimumBetCriteria:"最低投注要求",ScoreAlgorithms:{BetCount:"最多轮次",WinStakeRatio:"赢注比例",MaxWinStakeRatio:"最大赢注比例",Stake:"投注额"},Place:"名次",Places:"名次",Prizes:"奖励",Player:"玩家",Rank:"排名",Score:"积分",Prize:"奖品",LeaderboardDetails:"排行榜详情",UnjoinDialog:{Title:"退出排行榜?",Description:"当前排行榜的进度将不会被保留,且您无法再次加入该排行榜。 <br /><br />您确定要退出吗?",ButtonYes:"是的,我要退出排行榜",ButtonNo:"不,留在排行榜"},WinDialog:{Title:"恭喜!",Description:"您赢得了 <span>{rewards}</span>!",ButtonContinue:"继续",FailedTitle:"奖励无法发放",FailedDescription:"请联系客服。",FailedButtonContinue:"好的,继续"},NoLeaderboards:"暂无排行榜",NoLeaderboardsTip:"尝试通过赢得奖品或启动其他增强游戏来获得排行榜",Leaderboards:"排行榜",TipPrize:"您获得 <span>{place}</span> 名,并赢得 <span>{prize}</span>",TipPrizeWithoutReward:"您获得 <span>{place}</span> 名",Tip:"您的真实资金投注将计入排行榜积分计算,以赢得排行榜奖励。",TournamentNotStarted:"排行榜尚未开始。 <br> 它将在 {startTime} 开始。",BeOne:"目前暂无赢家。成为其中之一!",NoGameConfiged:"没有配置游戏",FailedToJoin:"哦哦!发生了一些意外错误,请再试一次。",FailedToUnjoin:"哦哦!发生了一些意外错误,请再试一次。"}},d=(e,i)=>{const t=i;return l[void 0!==t&&s.includes(t)?t:"en"][e]},c=(...e)=>{let i=["Tab"];return e.map((e=>{switch(typeof e){case"string":i.push(e);break;case"object":Object.keys(e).map((t=>{e[t]&&i.push(t)}))}})),i.join(" ")};var g,u,p,j;!function(e){e.list="list",e.item="item"}(g||(g={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(u||(u={})),function(e){e.FreeSpin="FreeSpin",e.Mission="Challenge",e.Leaderboard="TournamentTicket",e.Custom="Custom",e.LuckyWheel="PrizeEngine"}(p||(p={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift",e.error="error"}(j||(j={}));const N=e=>[u.Closed,u.Closing].includes(e.state),D=e=>{switch(e.type){case p.FreeSpin:return e.campaignName;case p.Mission:return e.challengeName;case p.Leaderboard:return e.ticketProgramName;case p.LuckyWheel:return e.prizeEngineProgramName;case p.Custom:return e.value;default:return e.name}},I=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),z=e("img",{src:"data:image/sv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OCA5LjI4MDA4IDYuOTc5NDMgOS4yODAwOCA2LjY2NjY3TDkuMjgwMDggNi42NjU2OEM5LjI4MDU1IDYuMzUwOCA5LjE2OTU3IDYuMDQ1OTEgOC45NjY3OCA1LjgwNTAyQzguNzY0IDUuNTY0MTMgOC40ODI1MSA1LjQwMjc4IDguMTcyMTYgNS4zNDk1NVpNNy4zMzM0MSAxMS4zMzMzQzcuMzMzNDEgMTAuOTY1MSA3LjYzMTg5IDEwLjY2NjcgOC4wMDAwOCAxMC42NjY3SDguMDA2NzVDOC4zNzQ5NCAxMC42NjY3IDguNjczNDEgMTAuOTY1MSA4LjY3MzQxIDExLjMzMzNDOC42NzM0MSAxMS43MDE1IDguMzc0OTQgMTIgOC4wMDY3NSAxMkg4LjAwMDA4QzcuNjMxODkgMTIgNy4zMzM0MSAxMS43MDE1IDcuMzMzNDEgMTEuMzMzM1oiIGZpbGw9IiM2NjYxNzgiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTk3MV81MTYiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+CiAgICAgICAgPC9jbGlwUGF0aD4KICAgIDwvZGVmcz4KPHNjcmlwdCB4bWxucz0iIi8+PC9zdmc+Cg==",alt:"question",class:"Question"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),y=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),m=e("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQ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M1IDEyLjU4MjRDMjEuMjk2OSAxMi43MTQyIDIxLjA2OTYgMTMuMTA2OCAyMC42MTUxIDEzLjg5MloiIHN0cm9rZT0iIzI1MUQzRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTcwMV8xMjYwNCIgeDE9IjIuODQ3MDYiIHkxPSIyLjA2MjUiIHgyPSI2NC44NDQ3IiB5Mj0iMTEuMDQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CjxzdG9wIG9mZnNldD0iMC4xMjkxODQiIHN0b3AtY29sb3I9IiNGRjk0MDAiLz4KPHN0b3Agb2Zmc2V0PSIwLjk5MzAwNyIgc3RvcC1jb2xvcj0iI0ZFRjc0NiIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGRkUyNEEiLz4KPC9saW5lYXJHcmFkaWVudD4KPC9kZWZzPgo8L3N2Zz4K",alt:"Reward Assign Failed",class:"Warn"}),A=i=>{var{statedClasses:t,innerHTML:n}=i,r=a(i,["statedClasses","innerHTML"]);const{isHollow:o,isPending:s}=t;return e("button",Object.assign({class:c("GradientRoundedButton","GradientRounded",{Hollow:o||!1,Pending:s||!1})},r),e("span",null,n))};var w;!function(e){e.normal="normal",e.okContinue="okContinue",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(w||(w={}));const L=(e,i,t=!1)=>{const{locale:n}=e,a={normal:{innerHTML:n.WinDialog.ButtonContinue},okContinue:{innerHTML:n.WinDialog.FailedButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:n.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:n.UnjoinDialog.ButtonNo}}[i];return A({statedClasses:Object.assign({isPending:t},a.statedClasses),onClick:()=>{var i;null===(i=a.onClick)||void 0===i||i.call(),e.closeDialog()},innerHTML:a.innerHTML})},O={gift(i){const{name:t,failedRewards:n}=i.gifts[0],{locale:a}=i;return e("div",{class:"PageConfirmContainer"},t?e("div",{class:"PageConfirm Gift"},e("div",null,T),e("div",{class:"Title"},a.WinDialog.Title),e("div",{class:"Description",innerHTML:M(a.WinDialog.Description,{rewards:t})}),e("div",{class:"PageConfirmButtonsGroup"},L(i,w.normal))):e("div",{class:"PageConfirm Gift"},e("div",null,b),e("div",{class:"Title",innerHTML:M(a.WinDialog.FailedTitle,{failedRewards:n})}),e("div",{class:"Description"},a.WinDialog.FailedDescription),e("div",{class:"PageConfirmButtonsGroup"},L(i,w.okContinue))))},unjoin(i){const{locale:t}=i;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),L(i,w.unjoinYes),L(i,w.unjoinNo))}},f=e=>{const i=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],t={};return Object.keys(e).map((n=>{const a=e[n];t[n]="games"===n?a.items:i.includes(n)?new Date(a):a})),t},C=(e,i)=>(["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime","state","prizes","minBetCount","scoreCriteria","termsUrl"].forEach((t=>{e[t]=i[t]})),Object.assign({},e)),k=e=>{let{item:i,items:t}=e;return t.forEach((e=>e.userId=e.userId||e.userID)),i?(i.userId=i.userId||i.userID,-1!==t.findIndex((e=>e.userId===i.userId))||(t=[i,...t]),t.map((e=>(null==i?void 0:i.userId)&&i.userId===e.userId?Object.assign(Object.assign({},e),{isMe:!0}):e))):t},v=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),S=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),E=(e,i)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:i}),Y=(e,i,t)=>{const{success:n,data:a}=i;let r=e.tournamentList.findIndex((e=>e.id===(a.tournamentId||a.id||a.bonusCode))),o=e.tournamentList[r];if(-1!=r){if(o.isActionJoinPending=!1,e.page===g.item&&e.tournamentItem.id===o.id&&(e.tournamentItem=Object.assign(Object.assign({},e.tournamentItem),{isActionJoinPending:!1})),e.pendingChangeEvent.emit(o),!n)return e.tournamentList[r]=o,e.tournamentList=[...e.tournamentList],void e.openDialog(j.error);if(t?(o.isPlayerAcknowledged=!0,o.order=e.minOrder--):(o.isUnjoined=!0,((e,i)=>{const t=setTimeout((()=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i)),clearTimeout(t)}),100)})(e,a.tournamentId)),e.tournamentList[r]=Object.assign({},o),e.tournamentList=[...e.tournamentList],e.page===g.item){if(!t)return void e.setPage(g.list);e.tournamentItem=Object.assign({},o)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0)}},U=(e,i)=>{i.success?(e.leaderboards=k(i.data),e.currentPlayerRank=i.data.item?i.data.item.rank:-1):console.error(i)},Q=(e,i)=>{const t=f(i);e.page===g.item&&e.tournamentItem.id===i.id&&(e.tournamentItem=C(e.tournamentItem,t)),e.tournamentList=e.tournamentList.map((e=>e.id===i.id?C(e,t):e))},P=(e,i)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==i.id))},W=(e,i)=>{const t=e.tournamentList.findIndex((e=>e.id===i.id));-1===t?e.tournamentList=[f(i),...e.tournamentList]:(e.tournamentList[t]=f(i),e.tournamentList=[...e.tournamentList])},R={list(i){var t;if(!(null==i?void 0:i.tournamentList))return i.tournamentList=null===(t=i.leaderboardsInit)||void 0===t?void 0:t.map((e=>f(e))),e("general-animation-loading",null);const{locale:n,language:a}=i;return G(i.tournamentList.length?e("div",{class:"Leaderboards ScrollBar Row"},i.tournamentList.map(((t,n)=>e("tournament-item",{tid:t.id,key:t.id,tournament:t,style:{order:`${t.order||n}`},isNew:i.newIdList.includes(t.id),language:a})))):e("div",{class:"NoLeaderboards ScrollBar Row"},e("h3",{class:"Title"},n.NoLeaderboards),e("div",{class:"message"},n.NoLeaderboardsTip)))},item(i){if(!i.tournamentItem)return e("general-animation-loading",null);const{locale:t,tab:n,language:a}=i;return G([e("tournament-item-title",{tournament:i.tournamentItem,language:a}),e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(r).map((a=>e("div",{class:c({active:n===a}),onClick:()=>(e=>{switch(i.tab=e,e){case r.leaderboard:i.leaderboards=void 0,E(i.tournamentItem);break;case r.games:S(i.tournamentItem)}})(a)},t[a]))))),e("div",{class:`TableContentWrapper Tab_${i.tab}`},i.renders.tab[i.tab]())])}},G=i=>e("div",{class:"Root"},e("div",{class:"Main"},i));function B(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function Z(e,i){return(new Date).getTime()>=i.getTime()?100:Math.floor(100*((new Date).getTime()-e.getTime())/(i.getTime()-e.getTime()))}function F(e,i,t=0){const n=Math.abs(i.getTime()-e.getTime()),a=Math.floor(n/864e5),r=Math.floor(n%864e5/36e5),o=Math.floor(n%36e5/6e4),s=100===t?0:0===o?1:o;return`${String(a).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(s).padStart(2,"0")}m`}const H={info(i){var t,n;const{locale:a,tournamentItem:r,isShowInfo:o}=i,s=J(null===(t=i.leaderboards)||void 0===t?void 0:t.find((e=>e.isMe))),l=!(null==s?void 0:s.place)||(null==s?void 0:s.unqualified)?"":M((null==s?void 0:s.prize)?a.TipPrize:a.TipPrizeWithoutReward,s),d=a.ScoreAlgorithms[r.scoreCriteria];return e("div",{class:"InfoContainer"},e("tournament-timer",{"is-detail":!0,tournament:r}),e("section",{class:"ShowInfo",onClick:()=>i.isShowInfo=!i.isShowInfo},e("div",{class:"DetailHeader"},e("span",null,o?x:y),e("span",null,a.LeaderboardDetails))),e("div",{class:"ContentScrollContainer "+(o?"expanded":"")},o&&e("section",{class:"Info"},e("div",{class:"Description"},r.description),e("div",{class:"Criterias"},e("div",null,a.ScoreCriteria,": ",e("span",null,d)),e("div",null,a.MinimumBetCriteria,": ",e("span",null,r.minBetCount))),!!r.termsUrl&&e("div",{class:"TC"},e("a",{href:r.termsUrl,target:"_blank"},a.TC))),(e=>[u.Closed].includes(e.state))(i.tournamentItem)&&(null===(n=i.leaderboards)||void 0===n?void 0:n.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:l}),e("section",{class:"PrizesContainer"},e("div",{class:"PrizesHeader"},h,e("span",{class:"PrizesText"},a.Prizes)),e("div",{class:"Prizes"},r.prizes.map((i=>e("div",{class:"Prize"},e("span",{class:"Rank"},i.rank," ",1===i.count?"":" - "+(i.rank+i.count-1)),1===i.count?a.Place:a.Places,": ",e("span",{class:"PrizeText"},i.name))))))))},leaderboard(i){const{locale:t,tournamentItem:n}=i;if("Unstarted"===(null==n?void 0:n.state)){const i=F(null==n?void 0:n.startTime,new Date);return e("div",{class:"LeaderboardUnstarted",innerHTML:M(t.TournamentNotStarted,{startTime:i})})}return i.leaderboards?i.leaderboards.length?e("table",{class:"Leaderboards"},e("thead",null,e("tr",null,e("th",null,t.Rank),e("th",null,t.Player),e("th",null,t.Score),e("th",null,t.Prize))),i.leaderboards.map((t=>e("tr",{class:c({isMe:t.isMe}),ref:e=>t.isMe&&(i.isMeElement=e)},e("td",{class:"LeaderboardRank"},e("span",null,t.rank)),e("td",{class:"LeaderboardName"},e("span",null,t.shortName)),e("td",{class:"LeaderboardScore"},e("span",null,((e,i,t=!1)=>{const n=Number(e);if(isNaN(n))throw new Error("Input must be a valid number or string that can be converted to number");if(t&&!n.toString().includes("."))return e;if(0===i)return Math.floor(n);const a=Math.pow(10,i);return(Math.floor(n*a)/a).toFixed(i)})(t.score,2,!0))),e("td",{class:"LeaderboardPrize"},e("span",null,t.prizeName)))))):e("div",{class:"LeaderboardUnstarted"},t.BeOne):e("general-animation-loading",null)},games(i){var t;return i.tournamentItem.games?e("div",{class:"Games"},i.tournamentItem.games.length?null===(t=i.tournamentItem.games)||void 0===t?void 0:t.map((t=>e("div",{class:"Game "+(i.currentGameId==t.id?"Current":""),onClick:()=>{i.onGameClick(t)}},e("ui-image",{src:t.defaultThumbnail,alt:"Game"})))):i.locale.NoGameConfiged):e("general-animation-loading",null)}},J=e=>({prize:null==e?void 0:e.prizeName,place:null==e?void 0:e.rank,unqualified:null==e?void 0:e.unqualified}),V={dialog:O,page:R,tab:H};var $,X={};(function(e){var i=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,i)=>{for(var t in i||(i={}))r.call(i,t)&&s(e,t,i[t]);if(a)for(var t of a(i))o.call(i,t)&&s(e,t,i[t]);return e},l=(e,i)=>t(e,n(i)),d=(e,i,t)=>(s(e,"symbol"!=typeof i?i+"":i,t),t);function c(){}function g(e){return e()}function u(){return Object.create(null)}function p(e){e.forEach(g)}function j(e){return"function"==typeof e}function N(e,i){return e!=e?i==i:e!==i||e&&"object"==typeof e||"function"==typeof e}function D(e,i,t){e.insertBefore(i,t||null)}function I(e){e.parentNode&&e.parentNode.removeChild(e)}function z(e){return document.createElement(e)}let x;function y(e){x=e}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const m=[],h=[];let T=[];const b=[],A=Promise.resolve();let w=!1;function L(e){T.push(e)}const O=new Set;let f=0;function C(){if(0!==f)return;const e=x;do{try{for(;f<m.length;){const e=m[f];f++,y(e),k(e.$$)}}catch(e){throw m.length=0,f=0,e}for(y(null),m.length=0,f=0;h.length;)h.pop()();for(let e=0;e<T.length;e+=1){const i=T[e];O.has(i)||(O.add(i),i())}T.length=0}while(m.length);for(;b.length;)b.pop()();w=!1,O.clear(),y(e)}function k(e){if(null!==e.fragment){e.update(),p(e.before_update);const i=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,i),e.after_update.forEach(L)}}const v=new Set;function S(e,i,t,n,a,r,o=null,s=[-1]){const M=x;y(e);const l=e.$$={fragment:null,ctx:[],props:r,update:c,not_equal:a,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(M?M.$$.context:[])),callbacks:u(),dirty:s,skip_bound:!1,root:i.target||M.$$.root};o&&o(l.root);let d=!1;if(l.ctx=t?t(e,i.props||{},((i,t,...n)=>{const r=n.length?n[0]:t;return l.ctx&&a(l.ctx[i],l.ctx[i]=r)&&(!l.skip_bound&&l.bound[i]&&l.bound[i](r),d&&function(e,i){-1===e.$$.dirty[0]&&(m.push(e),w||(w=!0,A.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[i/31|0]|=1<<i%31}(e,i)),t})):[],l.update(),d=!0,p(l.before_update),l.fragment=!!n&&n(l.ctx),i.target){if(i.hydrate){const e=function(e){return Array.from(e.childNodes)}(i.target);l.fragment&&l.fragment.l(e),e.forEach(I)}else l.fragment&&l.fragment.c();i.intro&&function(e){e&&e.i&&(v.delete(e),e.i(void 0))}(e.$$.fragment),function(e,i,t){const{fragment:n,after_update:a}=e.$$;n&&n.m(i,t),L((()=>{const i=e.$$.on_mount.map(g).filter(j);e.$$.on_destroy?e.$$.on_destroy.push(...i):p(i),e.$$.on_mount=[]})),a.forEach(L)}(e,i.target,i.anchor),C()}y(M)}let E;function Y(e,i,t,n){var a;const r=null==(a=t[e])?void 0:a.type;if(i="Boolean"===r&&"boolean"!=typeof i?null!=i:i,!n||!t[e])return i;if("toAttribute"===n)switch(r){case"Object":case"Array":return null==i?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return null==i?null:i;default:return i}else switch(r){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":default:return i;case"Number":return null!=i?+i:i}}"function"==typeof HTMLElement&&(E=class extends HTMLElement{constructor(e,i,t){super(),d(this,"$$ctor"),d(this,"$$s"),d(this,"$$c"),d(this,"$$cn",!1),d(this,"$$d",{}),d(this,"$$r",!1),d(this,"$$p_d",{}),d(this,"$$l",{}),d(this,"$$l_u",new Map),this.$$ctor=e,this.$$s=i,t&&this.attachShadow({mode:"open"})}addEventListener(e,i,t){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(i),this.$$c){const t=this.$$c.$on(e,i);this.$$l_u.set(i,t)}super.addEventListener(e,i,t)}removeEventListener(e,i,t){if(super.removeEventListener(e,i,t),this.$$c){const e=this.$$l_u.get(i);e&&(e(),this.$$l_u.delete(i))}}connectedCallback(){return e=this,i=function*(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let i;return{c:function(){i=z("slot"),"default"!==e&&function(e,i,t){null==t?e.removeAttribute(i):e.getAttribute(i)!==t&&e.setAttribute(i,t)}(i,"name",e)},m:function(e,t){D(e,i,t)},d:function(e){e&&I(i)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const i={},t=function(e){const i={};return e.childNodes.forEach((e=>{i[e.slot||"default"]=!0})),i}(this);for(const n of this.$$s)n in t&&(i[n]=[e(n)]);for(const e of this.attributes){const i=this.$$g_p(e.name);i in this.$$d||(this.$$d[i]=Y(i,e.value,this.$$p_d,"toProp"))}for(const e in this.$$p_d)!(e in this.$$d)&&void 0!==this[e]&&(this.$$d[e]=this[e],delete this[e]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:l(M({},this.$$d),{$$slots:i,$$scope:{ctx:[]}})});const n=()=>{this.$$r=!0;for(const e in this.$$p_d)if(this.$$d[e]=this.$$c.$$.ctx[this.$$c.$$.props[e]],this.$$p_d[e].reflect){const i=Y(e,this.$$d[e],this.$$p_d,"toAttribute");null==i?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,i)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const i of this.$$l[e]){const t=this.$$c.$on(e,i);this.$$l_u.set(i,t)}this.$$l={}}},new Promise(((t,n)=>{var a=e=>{try{o(i.next(e))}catch(e){n(e)}},r=e=>{try{o(i.throw(e))}catch(e){n(e)}},o=e=>e.done?t(e.value):Promise.resolve(e.value).then(a,r);o((i=i.apply(e,null)).next())}));var e,i}attributeChangedCallback(e,i,t){var n;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Y(e,t,this.$$p_d,"toProp"),null==(n=this.$$c)||n.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(e){return Object.keys(this.$$p_d).find((i=>this.$$p_d[i].attribute===e||!this.$$p_d[i].attribute&&i.toLowerCase()===e))||e}});class U{constructor(){d(this,"$$"),d(this,"$$set")}$destroy(){(function(e,i){const t=e.$$;null!==t.fragment&&(function(e){const i=[],t=[];T.forEach((n=>-1===e.indexOf(n)?i.push(n):t.push(n))),t.forEach((e=>e())),T=i}(t.after_update),p(t.on_destroy),t.fragment&&t.fragment.d(i),t.on_destroy=t.fragment=null,t.ctx=[])})(this,1),this.$destroy=c}$on(e,i){if(!j(i))return c;const t=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return t.push(i),()=>{const e=t.indexOf(i);-1!==e&&t.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function Q(e){!function(e,i,t){const n=function(e){if(!e)return document;const i=e.getRootNode?e.getRootNode():e.ownerDocument;return i&&i.host?i:e.ownerDocument}(e);if(!n.getElementById(i)){const e=z("style");e.id=i,e.textContent=t,function(e,i){!function(e,i){e.appendChild(i)}(e.head||e,i)}(n,e)}}(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function P(e){let i;return{c(){i=z("div"),i.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(t,n){D(t,i,n),e[4](i)},p:c,i:c,o:c,d(t){t&&I(i),e[4](null)}}}function W(e,i,t){let n,{clientstyling:a=""}=i,{clientstylingurl:r=""}=i,{mbsource:o}=i;return function(e){(function(){if(!x)throw new Error("Function called outside component initialization");return x})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&t(1,a=e.clientstyling),"clientstylingurl"in e&&t(2,r=e.clientstylingurl),"mbsource"in e&&t(3,o=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&a&&n&&function(e,i){if(e){const t=document.createElement("style");t.innerHTML=i,e.appendChild(t)}}(n,a),5&e.$$.dirty&&r&&n&&function(e,i){const t=new URL(i);fetch(t.href).then((e=>e.text())).then((i=>{const t=document.createElement("style");t.innerHTML=i,e&&e.appendChild(t)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,r),9&e.$$.dirty&&o&&n&&function(e,i){if(window.emMessageBus){const t=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{t.innerHTML=i,e&&e.appendChild(t)}))}}(n,`${o}.Style`)},[n,a,r,o,function(e){h[e?"unshift":"push"]((()=>{n=e,t(0,n)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class R extends U{constructor(e){super(),S(this,e,W,P,N,{clientstyling:1,clientstylingurl:2,mbsource:3},Q)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),C()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),C()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),C()}}!function(e,i,t){let n=class extends E{constructor(){super(e,t,true),this.$$p_d=i}static get observedAttributes(){return Object.keys(i).map((e=>(i[e].attribute||e).toLowerCase()))}};Object.keys(i).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(t){var n;t=Y(e,t,i),this.$$d[e]=t,null==(n=this.$$c)||n.$set({[e]:t})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){var i;return null==(i=this.$$c)?void 0:i[e]}})})),e.element=n}(R,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),e.default=R})(X),"undefined"!=typeof window&&(customElements.define=($=customElements.define,function(...e){try{return $.apply(this,e)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}),Promise.resolve().then((()=>X)).then((({default:e})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",e.element)})));const K=i=>{const{left:t,middle:n,right:a}=i,r={left:t,middle:n,right:a};return e("div",{class:"WrapperBar"},Object.keys(r).map((i=>{return e("div",{class:"WrapperBar"+(t=i,t.split("").map(((e,i)=>0===i?e.toUpperCase():e)).join(""))},r[i]||"");var t})))},_=class{handleEvent(e){var i,t;const n=e.data,{type:r}=n,o=a(n,["type"]);var s;null===(t=null===(s=this,i={UpdateLeaderboardsPlayerRes:e=>{const{rank:i,detail:t}=(e=>{let i=null;return(e||[]).map((e=>{var t;const{leaderBoard:{rank:n}}=e;n&&(i=!i||(null===(t=i.leaderBoard)||void 0===t?void 0:t.rank)>n?e:i)})),{rank:i?`${i.leaderBoard.rank} / ${i.endRank}`:"-",detail:i?{playerRank:i.leaderBoard.rank,total:i.endRank}:null}})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:i,detail:t})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const i=f(e.data.item);s.tournamentItem=i,Q(s,i)},UpdateLeaderboardsRes:e=>U(s,e),JoinTournamentRes:e=>Y(s,e,!0),UnjoinTournamentRes:e=>Y(s,e,!1),TournamentsPageIsReadyRes:e=>s.currentGameId=""+e.data.GameId,LeaderboardLiveEvent:e=>((e,i)=>{const{messageType:t,item:n}=i;switch(t){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":W(e,n);break;case"TournamentRemove":P(e,n);break;case"LeaderBoardUpdate":e.leaderboards=k(i)}})(s,e),LiveLeaderboardUpdate:e=>((e,i)=>{var t;try{const n=JSON.parse(i.data.Message),{playerLeaderBoard:a,tournamentId:r,leaderBoardList:o}=n;a&&window.postMessage({type:"UpdateLeaderboardState",rank:`${a.rank} / ${o.totalRecords}`,detail:{playerRank:a.rank,total:o.totalRecords}}),(null===(t=e.tournamentItem)||void 0===t?void 0:t.id)==r&&U(e,{data:{item:Object.assign({},a),items:[...o.players]},success:!0})}catch(e){console.error("Exception when parse live update info, ",e)}})(s,Object.assign(Object.assign({},e),{messageType:"LeaderboardUpdate"})),LiveTournamentUpdate:e=>((e,i)=>{try{const t=JSON.parse(i.data.Message);Q(e,t)}catch(e){console.error("Exception when parse Player Tournament Info",e)}})(s,Object.assign(Object.assign({},e),{messageType:"TournamentUpdate"})),LiveLeaderboardFinalizeUpdate:e=>((e,i)=>{try{const t=JSON.parse(i.data.Message),n=t.rewards.filter((e=>e.status&&"success"!==e.status)).map((e=>D(e))),a=t.rewards.filter((e=>!!e.assigned&&"success"===e.status)).map((e=>D(e)));n.length&&(e.gifts=[{name:null,failedRewards:n.join(",")},...e.gifts]),a.length&&t.prizeName&&(e.gifts=[{name:t.prizeName[e.language]||t.prizeName["*"]||""},...e.gifts]),e.checkGift()}catch(e){console.error("Exception when parse Player LeaderboardFinalize info",e)}})(s,Object.assign(Object.assign({},e),{messageType:"PlayerFinalizeUpdate"}))})||void 0===i?void 0:i[r])||void 0===t||t.call(null,o)}handleClickToTournamentDetail(e){const i=e.detail;this.setPage(g.item,{tournament:i}),this.newIdList=this.newIdList.filter((e=>e!==i.id))}handleJoinTournamentEvent(e){const i=e.detail;this.actionJoin(i),this.tournamentItem=i}handleUnjoinTournamentEvent(e){const{tournament:i}=e.detail;this.openDialog(j.unjoin,i)}watchPropHandler(e,i){e!==i&&l[e]&&(this.locale=l[e])}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,i){if(i){const a=(t=i,n=(e,i)=>e.id===i.id,e.filter((e=>!t.some((i=>n(e,i))))));this.newIdList=[...this.newIdList,...a.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var t,n}showPropWatcher(e,i){0==i&&1==e&&(this.checkGift(),this.page=g.list)}addLabel(e){this.labels.includes(e)||this.labels.push(e),v(this.labels)}removeLabel(e){this.labels=this.labels.filter((i=>i!=e)),v(this.labels)}checkGift(){this.gifts.length?(this.labels.includes("win")||this.labels.push("win"),v(this.labels),this.show&&this.openDialog(j.gift,this.gifts[0],(()=>{if(this.dialog.type===j.gift){this.gifts=this.gifts.slice(1);const e=setTimeout((()=>{this.checkGift(),clearTimeout(e)}),300)}}))):this.removeLabel("win")}getContainerScrollTop(){var e;return this.page===g.list?this.containerScrollTop:(null===(e=this.detailElement)||void 0===e?void 0:e.clientHeight)/2-250}handleClickOutside(e){const i=e.composedPath();i.includes(this.tooltipIconReference)||i.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidLoad(){window.postMessage({type:"TournamentsPageIsReady"})}renderTooltip(){return this.showTooltip?e("div",{class:"question__tooltip "+(this.showTooltip?"visible":""),ref:e=>this.tooltipReference=e,innerHTML:this.locale.Tip}):null}connectedCallback(){window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}scrollToMyRankLine(){this.isMeElement&&(this.isMeElement.scrollIntoView({behavior:"smooth"}),this.scrolledToMyLine=!0)}componentDidRender(){this.scrolledToMyLine=!1,this.page===g.item?this.tab===r.leaderboard?this.currentPlayerRank>this.defaultPageSize&&!this.scrolledToMyLine&&this.scrollToMyRankLine():this.scrolledToMyLine=!1:this.page===g.list&&(this.scrolledToMyLine=!1)}onGameClick(e){e.id!=this.currentGameId&&(e=>{window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:e.slug}})})(e)}actionJoin(e){if(!e.isActionJoinPending){e.isActionJoinPending=!0,this.page===g.item&&(this.tournamentItem.isActionJoinPending=!0,this.tournamentItem=Object.assign({},this.tournamentItem)),this.pendingChangeEvent.emit(e);try{e.isPlayerAcknowledged?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var i,t;window.postMessage({type:"JoinTournamentReq",id:e.id,bonusCode:e.id||(null===(t=null===(i=e.wallets)||void 0===i?void 0:i[0])||void 0===t?void 0:t.code)})})(e)}catch(e){console.log("error",e)}}}setPage(e,i){this.page=e,e===g.item&&(this.isShowInfo=!1,this.tournamentItem=i.tournament,this.tournamentItem||S(i.tournament),N(this.tournamentItem)&&E(this.tournamentItem),this.tab=r.info),this.tournamentTimer.emit({page:e})}render(){return e(i,null,e("general-styling-wrapper",{clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:l,translationUrl:this.translationUrl}),e("div",{class:`Wrapper ${this.device} ${this.orientation}`},e("div",{class:c("WrapperContent",{faded:this.dialog.isOpen,page:this.page})},this.page&&K({left:this.page===g.list?e("span",{class:"EngagementSuiteIcon",onClick:this.openDialog.bind(this,j.tip)},z):e("span",{class:"EngagementSuiteIcon",onClick:this.setPage.bind(this,g.list)},m),middle:this.locale.Leaderboards,right:e("span",{class:"EngagementSuiteIcon",onClick:()=>this.close.emit()},I)}),e("div",{class:`Leaderboards ${this.page} ${"list"===this.page?"Active":"Hidden"}`,ref:e=>this.pageElement=e},this.renders.page.list()),this.page===g.item&&e("div",{class:`Leaderboards ${this.page} ${"item"===this.page?"Active":"Hidden"} `,ref:e=>this.detailElement=e},this.renders.page.item())),e("div",{class:"WrapperUtil"},e("dialog",{class:`${this.dialog.type}`,open:this.dialog.isOpen},e("div",{class:"Hollow "+("gift"===this.dialog.type?"GradientRounded":"")},K({right:e("span",{class:"EngagementSuiteIcon",onClick:()=>this.closeDialog()},I)}),this.dialog.isOpen&&(()=>{switch(this.dialog.type){case j.unjoin:return this.renders.dialog.unjoin();case j.tip:return e("div",{class:"Tip"},this.locale.Tip);case j.error:return e("div",{class:"Tip Error"},this.locale.FailedToJoin);case j.gift:return this.renders.dialog.gift()}})())))))}openDialog(e,i,t){if(this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:t,type:e,data:i}),e===j.error||e===j.tip){const e=setTimeout((()=>{this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1}),clearInterval(e)}),this.tipsHideDelay)}}closeDialog(){var e;null===(e=this.dialog.onClose)||void 0===e||e.call(this),this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1,onClose:void 0})}constructor(e){t(this,e),this.close=n(this,"close",7),this.tournamentTimer=n(this,"tournamentTimer",7),this.pendingChangeEvent=n(this,"pendingChangeEvent",7),this.minOrder=-1,this.gifts=[],this.labels=[],this.showTooltip=!1,this.defaultPageSize=12,this.scrolledToMyLine=!1,this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.orientation="Landscape",this.leaderboardsInit=void 0,this.tipsHideDelay=3e3,this.tab=r.info,this.locale=l[this.language],this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isDialogOpen=!1,this.isShowInfo=!1,this.page=g.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.newIdList=[],this.renders={},Object.keys(V).forEach((e=>{this.renders[e]={},Object.keys(V[e]).forEach((i=>{this.renders[e][i]=V[e][i].bind(this,this)}))}))}static get watchers(){return{newIdList:["watchPropHandler"],language:["watchPropHandler"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};_.style='.Leaderboards{height:100%;overflow-y:auto;transition:0.5s ease;transition-property:all, transform}.Leaderboards.list,.Leaderboards.item{margin-top:5px;opacity:0}.Leaderboards.list.Active,.Leaderboards.item.Active{opacity:1}.Leaderboards.list.Hidden,.Leaderboards.item.Hidden{display:none}.Leaderboards .question__tooltip{position:absolute;top:0;left:20px;width:320px;text-align:left;background-color:var(--emw--color-typography, rgba(255, 255, 255, 0.6));border:1px solid var(--emw--color-typography, rgba(255, 255, 255, 0.8));color:var(var(--emw--color-primary, rgb(255, 214, 47)), rgb(255, 214, 47));padding:10px;border-radius:5px;opacity:0;fill-opacity:0.5;transition:opacity 0.3s ease-in-out;z-index:10}.Leaderboards .question__tooltip.visible{opacity:0.8}table.Leaderboards{height:auto}table.Leaderboards td span{display:inline-block;overflow-y:auto;width:98%}table.Leaderboards td.LeaderboardRank{width:10%;min-width:70px}table.Leaderboards td.LeaderboardScore{width:25%}table.Leaderboards td.LeaderboardScore span{min-width:128px}table.Leaderboards td.LeaderboardName{width:20%;max-width:180px}table.Leaderboards td.LeaderboardPrize{width:auto;text-align:left;display:grid}.Wrapper{position:relative;min-height:100%;line-height:20px;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:var(--emw--border-radius-large, 8px);word-break:break-all}.Wrapper .Title{background-color:transparent}.Wrapper .TableContentWrapper{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Wrapper .Games .Game .Skeleton{animation:none}.Wrapper .Games .Game .Skeleton.Image{background-color:transparent}.Wrapper .WrapperContent .TableContentWrapper{height:calc(100vh - 216px);overflow-y:auto}.Wrapper .WrapperContent .Main{height:calc(100vh - 109px)}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row{display:flex;flex-direction:column}.Wrapper .WrapperContent .Main .Leaderboards.ScrollBar.Row tournament-item{transition:2s ease-in-out;transform:translate(0) scale(1, 1);opacity:0.99}.Wrapper.Mobile .PageConfirmContainer,.Wrapper.Mobile .DialogContentUnjoin{min-width:80%;width:78vw}.Wrapper.Mobile dialog>div{margin:0px}.Wrapper.Mobile dialog.tip{padding:120px 10px}.Wrapper.Mobile dialog.unjoin .Hollow{margin:5px}.Wrapper.Mobile .GradientRoundedButton{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .PageConfirmButtonsGroup{margin:10px auto}.Wrapper.Mobile .PageConfirm.Gift{padding:5px 16px 30px}.Wrapper.Mobile .PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 22px);line-height:25px}.Wrapper.Mobile .PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 16px)}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 16px);padding:8px}.Wrapper.Mobile .PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:var(--emw--border-radius-large, 15px)}.Wrapper.Mobile .GradientRounded{position:relative;border-radius:12px}.WrapperContent{padding-bottom:7px;transition:0.5s filter;display:flex;flex-direction:column;justify-content:space-between}.WrapperContent.faded{filter:brightness(53.3333333333%);pointer-events:none}.WrapperContent .Title{background:transparent;width:initial;height:initial;border:initial;margin-bottom:initial}.WrapperContent .NoLeaderboards h3.Title{text-align:center}.WrapperContent .NoLeaderboards div.message{color:var(--emw--color-secondary, rgb(187, 185, 195));text-align:left}.Wrapper.Mobile .WrapperBar{padding:16px 8px 8px;margin-bottom:8px}.Wrapper.Mobile .Tip{padding:0px 30px 32px}.Wrapper.Mobile .TitleContainer .GradientRoundedButton{width:100px}.Wrapper.Mobile .WrapperContent .WrapperBar{padding:12px 8px;line-height:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .WrapperContent .WrapperBar .WrapperBarMiddle{font-size:var(--emw--font-size-medium, 14px)}.Wrapper.Mobile .items.TitleContainer{height:50px;margin-bottom:5px}.Wrapper.Mobile .Title{font-size:var(--emw--font-size-large, 16px)}.Wrapper.Mobile .WrapperContent .Main{height:calc(100vh - 179px)}.Wrapper.Mobile .WrapperContent .TableContentWrapper{height:calc(100vh - 276px);overflow-y:auto}.Wrapper.Mobile .WrapperBarLeft span.EngagementSuiteIcon img,.Wrapper.Mobile .WrapperBarRight span.EngagementSuiteIcon img{width:16px;height:16px}.WrapperBar{display:flex;width:100%;padding:16px 8px 12px;align-content:center;justify-content:center;align-items:center}.WrapperBar .WrapperBarLeft span{position:relative}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarLeft span.EngagementSuiteIcon img,.WrapperBarRight span.EngagementSuiteIcon img{width:24px;height:24px}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 14px)}.ScrollBar{scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.Row{margin:10px 0;padding:0 20px}.Row:first-child{margin:0;padding-top:5px}.LeaderboardsItem{opacity:1;transition:1s opacity ease;position:relative;margin:20px 0;border:1px solid rgb(64, 57, 86);border-radius:6px;padding:12px 0}.LeaderboardsItem.Unjoined{opacity:0;margin:0;border:0 none;animation:slideOut 1s forwards}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.ShowInfo{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer{margin:10px 0;padding:0 20px;transition:0.5s all ease}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 14px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time .Running{width:100%;display:flex;flex-direction:row;justify-content:space-between}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 14px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.TitleContainer{display:flex;justify-content:space-between;margin:10px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat;align-items:center}.TitleContainer .GradientRoundedButton{width:120px}.item .TitleContainer{height:55px;overflow:auto}.TabsContainer{margin:10px 0;padding:0 20px;margin:0 20px;padding:0;border-bottom:1px solid #575757}.Tabs{display:flex;justify-content:space-between;justify-content:start;font-size:var(--emw--font-size-x-small, 14px);margin-bottom:-1px}.Tabs .Tab{text-transform:capitalize}.Tabs>div{padding:10px;color:rgb(102, 97, 120);cursor:pointer}.Tabs>div.active{color:var(--emw--color-typography, #FFF);border-bottom:2px solid var(--emw--color-typography, #FFF)}.Title{font-size:var(--emw--font-size-large, 20px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:14px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:14px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:10px 0;padding:0 20px;padding-left:30px;text-align:left}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden}.ContentScrollContainer{flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;height:auto}.ContentScrollContainer.expanded{height:100%;max-height:100%}.PrizesContainer{flex:1;display:flex;flex-direction:column;min-height:100px;max-height:calc(100% - 20px)}.PrizesHeader,.DetailHeader{align-items:center;display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));padding:5px 0;z-index:1;margin:0 20px}.PrizesHeader img,.DetailHeader img{width:14px}.PrizesHeader .PrizesText,.DetailHeader .PrizesText{margin-left:3px;font-weight:600}.DetailHeader{margin:0}.Prizes{margin:10px 0;padding:0 20px;text-align:left;flex:1;overflow-y:auto;margin-bottom:0;padding-right:10px;margin-top:10px}.Prizes::-webkit-scrollbar{width:4px}.Prizes::-webkit-scrollbar-track{background:rgba(0, 0, 0, 0.1);border-radius:2px}.Prizes::-webkit-scrollbar-thumb{background:var(--emw--color-primary, rgb(255, 214, 47));border-radius:2px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .Rank{margin-right:5px}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.InfoContainer section.Info{margin-bottom:12px;text-align:left;padding-left:20px}.InfoContainer section.Info .Criterias,.InfoContainer section.Info .Description{margin-top:10px;margin-right:10px}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards thead{position:sticky;top:0;z-index:2;background-color:var(--emw--color-background, hsl(254, 44%, 15%))}.Leaderboards td,.Leaderboards th{opacity:0.6;padding:12px 5px}.Leaderboards th:last-child{text-align:left}.Leaderboards td:first-child{padding-left:20px}.Leaderboards td:last-child{padding-right:20px}.Leaderboards .LeaderboardName{color:var(--emw--color-typography, #FFF);opacity:1}.Leaderboards tr.isMe{background:rgba(0, 0, 0, 0.2);scroll-margin-top:42px}.Leaderboards tr.isMe .LeaderboardRank span{padding:0px 3px;opacity:1;border:1px solid var(--emw--color-primary, rgb(255, 214, 47));border-radius:11px}.Leaderboards tr.isMe td{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:var(--emw--font-weight-semibold, 500)}.LeaderboardLabels{position:absolute;top:-6px;right:18px;display:flex;gap:4px}.LeaderboardLabel{width:30px;height:15px;background:var(--emw--engagement-suite-gradient-golden, linear-gradient(180deg, #FFB801 15.86%, #FEF746 31.36%, #FBFFE0 36.86%, #FFFA60 47.86%, #FF9400 87.36%));border-radius:var(--emw--border-radius-x-small, 2px);display:inline-flex;padding:0 2px;align-items:center;justify-content:center}.LeaderboardLabel span{display:inline-block;text-transform:uppercase;font-size:var(--emw--font-size-3x-small, 7px);line-height:7px;font-weight:var(--emw--font-weight-bold, 700);font-family:var(--emw--font-family-secondary, "Montserrat", sans-serif);color:var(--emw--color-background, #1E1638)}.LeaderboardUnstarted{margin:10px 0;padding:0 20px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-medium, 16px)}.Games{margin:10px 0;padding:0 20px;display:grid;justify-content:start;grid-template-columns:repeat(4, 25%);margin-top:8px;align-content:flex-start;width:100%}.Games .Game{padding-right:8px}.Games .Game.Current{cursor:auto;filter:grayscale(10)}.Games .Game:nth-of-type(4n){padding-right:0px}.Games .Game:hover{filter:brightness(var(--emw--hover-brightness, 1.25));cursor:pointer}.Games .Game.Current:hover{cursor:auto;filter:grayscale(10);cursor:not-allowed}.Games img{width:100%;height:auto;margin:auto 0}dialog.tip{position:absolute;align-items:start;padding:120px 90px;line-height:20px;border:none;border-radius:var(--emw--border-radius-large, 8px);font-size:var(--emw--font-size-small, 16px)}dialog.tip>div{margin:0px}dialog{display:none;position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);justify-content:center;align-items:center;z-index:1;color:var(--emw--color-typography, #FFFFFF);transition:all 0.2s;transition-timing-function:ease-in-out}dialog>div{margin:32px;border-radius:8px;background:var(--emw--color-background, hsl(254, 44%, 15%));border:1px solid hsl(254, 20%, 28%);align-items:center}dialog div.Hollow .WrapperBar{padding:12px}dialog div.Hollow .WrapperBar .WrapperBarRight img{width:20px}dialog div.Hollow .Tip{line-height:20px;padding:0px 60px 32px;font-size:var(--emw--font-size-small, 16px)}dialog[open]{display:flex}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;max-width:510px;flex-direction:column}.DialogContentUnjoinTitle{font-family:Montserrat;font-size:var(--emw--font-size-large, 20px);font-weight:600;line-height:24.38px;text-align:center}.DialogContentUnjoinDescription{color:var(--emw--color-secondary, rgb(187, 185, 195));margin-bottom:30px}.Tip{padding:32px;padding-top:0px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.Tip.Error{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-weight:var(--emw--font-weight-normal, 500)}.PageConfirmContainer{text-align:center;width:80%;min-width:450px;max-width:510px;margin:0 auto}.PageConfirm{padding:0px 32px 60px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 26px);text-align:center}.PageConfirm .Description{color:var(--emw--color-secondary, rgb(187, 185, 195));font-weight:400}.PageConfirm .Description span{color:var(--emw--color-typography, #FFF);font-weight:600}.PageConfirm.Gift{padding:22px 32px 60px}.PageConfirm.Gift .Title{font-size:var(--emw--font-size-large, 30px)}.PageConfirm.Gift .Description{font-size:var(--emw--font-size-medium, 20px)}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton{font-size:var(--emw--font-size-medium, 20px);padding:12px;height:auto}.PageConfirm.Gift .PageConfirmButtonsGroup .GradientRoundedButton.GradientRounded{border-radius:20px}.PageConfirmButtonsGroup{width:150px;margin:20px auto;display:flex;flex-direction:column;gap:10px}.GradientRounded{display:block;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);color:rgb(30, 22, 56);position:relative;border-radius:16px}.GradientRounded.Hollow{background:rgb(30, 22, 56);color:#FFFFFF}.GradientRounded.Hollow::before{content:"";position:absolute;inset:0;border-radius:15px;border:1px solid transparent;background:linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;-webkit-mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);-webkit-mask-composite:destination-out;mask-composite:exclude}.GradientRoundedButton{border:none;padding:7px;height:32px;width:100%;font-size:var(--emw--font-size-medium, 16px);font-weight:700;line-height:17.07px;text-align:center;transition:0.5s opacity;cursor:pointer}.GradientRoundedButton.Pending{cursor:not-allowed;opacity:0.3}.GradientRoundedButton.Hollow span{background:-webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.LeaderboardsItem.GradientRounded.Hollow::before{border-radius:7px}.WrapperUtil .GradientRounded .WrapperBar{margin-bottom:0;padding-bottom:0}.WrapperUtil .GradientRounded .Tip{padding-top:0;padding-bottom:40px}.LeaderboardsItem .LeaderboardsItemContainer .TitleContainer{margin-bottom:16px}@keyframes slideOut{0%{display:block;opacity:1;height:max-content}50%{display:block;opacity:0.5}80%{display:none;opacity:0}100%{display:none;opacity:0;height:0}}';export{_ as C,j as D,g as L,F as a,c,B as f,Z as g,N as i,A as r,d as t}
@@ -1 +1 @@
1
- import{p as n,b as e}from"./index-8b5c4b95.js";export{s as setNonce}from"./index-8b5c4b95.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),n(t)})().then((async n=>(await t(),e([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],orientation:[1],leaderboardsInit:[16],tipsHideDelay:[514,"tips-hide-delay"],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],newIdList:[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{newIdList:["watchPropHandler"],language:["watchPropHandler"],tournamentList:["syncBarState"],show:["showPropWatcher"]}],[0,"tournament-item",{tournament:[16],isNew:[4,"is-new"],tid:[1],language:[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[1,"translation-url"],targetTranslations:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[0,"tournament-timer",{tournament:[16],isDetail:[4,"is-detail"],timeHolder:[32],timeClock:[32],lastTimeDiff:[32],lastProgress:[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{tournament:[16],language:[1],isButtonDisabed:[32]},null,{tournament:["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],n))));
1
+ import{p as n,b as e}from"./index-487913af.js";export{s as setNonce}from"./index-487913af.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const e=import.meta.url,t={};return""!==e&&(t.resourcesUrl=new URL(".",e).href),n(t)})().then((async n=>(await t(),e([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],orientation:[1],leaderboardsInit:[16],tipsHideDelay:[514,"tips-hide-delay"],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],newIdList:[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[10,"click","handleClickOutside"]],{newIdList:["watchPropHandler"],language:["watchPropHandler"],tournamentList:["syncBarState"],show:["showPropWatcher"]}],[0,"tournament-item",{tournament:[16],isNew:[4,"is-new"],tid:[1],language:[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{src:[1],width:[1],height:[1],alt:[1],styles:[8],detectDistance:[1,"detect-distance"],imgLoaded:[32],shouldLoad:[32]},null,{src:["handleSrc"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],mbSource:[1,"mb-source"],translationUrl:[1,"translation-url"],targetTranslations:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}],[0,"tournament-timer",{tournament:[16],isDetail:[4,"is-detail"],timeHolder:[32],timeClock:[32],lastTimeDiff:[32],lastProgress:[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{tournament:[16],language:[1],isButtonDisabed:[32]},null,{tournament:["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}]]]],n))));
@@ -1,2 +1,2 @@
1
1
  var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},d={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],$=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.l?g(w):d.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(y),b($),(m=y.length>0)&&d.raf(w)},g=e=>h().then(e),k=v($,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>M,ok:()=>C,unwrap:()=>T,unwrapErr:()=>A});var C=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return E(e.value);throw"should never get here"}var x,R,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!j(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?N(null,l):l),r=i)};if(u(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=N(e,null);return a.u=t,c.length>0&&(a.h=c),a.p=o,a.m=s,a},N=(e,t)=>({l:0,$:e,i:t,v:null,h:null,u:null,p:null,m:null}),D={},F=e=>n(e).$hostElement$,H=(e,t,n)=>{const l=F(e);return{emit:e=>U(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},U=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,q=e=>"sc-"+e.k,G=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=_(n),s=_(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(B,""),n&&d.rel(e,t,n,o),l&&d.ael(e,t,l,o)}}},V=/\s/,_=e=>e?e.split(V):[],z="Capture",B=RegExp(z+"$"),I=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of J(Object.keys(o)))e in s||G(l,e,o[e],void 0,n,t.l);for(const e of J(Object.keys(s)))G(l,e,o[e],s[e],n,t.l)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=!1,X=!1,Y=!1,Z=(e,t,n,l)=>{var o;const s=t.h[n];let i,r,c,u=0;if(K||(X=!0,"slot"===s.$&&(x&&l.classList.add(x+"-s"),s.l|=s.h?2:1)),null!==s.i)i=s.v=f.createTextNode(s.i);else if(1&s.l)i=s.v=f.createTextNode("");else if(i=s.v=f.createElement(!K&&2&s.l?"slot-fb":s.$),I(null,s,Y),null!=x&&i["s-si"]!==x&&i.classList.add(i["s-si"]=x),s.h)for(u=0;u<s.h.length;++u)r=Z(e,s,u,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.l&&(i["s-sr"]=!0,i["s-cr"]=R,i["s-sn"]=s.m||"",i["s-rf"]=null==(o=s.u)?void 0:o.ref,c=e&&e.h&&e.h[n],c&&c.$===s.$&&e.v&&ee(e.v,!1)),i},ee=(e,t)=>{d.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==P&&l["s-ol"]&&(de(se(l),l,oe(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,X=!0),t&&ee(l,t)}d.l&=-2},te=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=Z(null,n,o,e),i&&(l[o].v=i,de(r,i,oe(t))))},ne=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;fe(t),e&&(Q=!0,e["s-ol"]?e["s-ol"].remove():ee(e,!0),e.remove())}}},le=(e,t,n=!1)=>e.$===t.$&&("slot"===e.$?e.m===t.m:!!n||e.p===t.p),oe=e=>e&&e["s-ol"]||e,se=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ie=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.$||K)&&I(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(le(d,m,o))ie(d,m,o),d=t[++r],m=l[++c];else if(le(h,y,o))ie(h,y,o),h=t[--f],y=l[--p];else if(le(d,y,o))"slot"!==d.$&&"slot"!==y.$||ee(d.v.parentNode,!1),ie(d,y,o),de(e,d.v,h.v.nextSibling),d=t[++r],y=l[--p];else if(le(h,m,o))"slot"!==d.$&&"slot"!==y.$||ee(h.v.parentNode,!1),ie(h,m,o),de(e,h.v,d.v),h=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.$!==m.$?s=Z(t&&t[c],n,u,e):(ie(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=Z(t&&t[c],n,c,e),m=l[++c]),s&&de(se(d.v),s,oe(d.v))}r>f?te(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ne(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),te(l,null,t,s,0,s.length-1)):null!==o&&ne(o,0,o.length-1)):(r=l["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(l.data=i)},re=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}re(e)}},ce=[],ue=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(ae(t,e)){let n=ce.find((e=>e.S===t));Q=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=o["s-hn"],n.j=o):(t["s-sh"]=o["s-hn"],ce.push({j:o,S:t})),t["s-sr"]&&ce.map((e=>{ae(e.S,t["s-sn"])&&(n=ce.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ce.some((e=>e.S===t))||ce.push({S:t})}1===o.nodeType&&ue(o)}},ae=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,fe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(fe)},de=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),he=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},pe=(e,t)=>{if(e.l|=16,!(4&e.l))return he(e,e.C),k((()=>me(e,t)));e.l|=512},me=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.M&&(e.M.map((([e,t])=>ke(n,e,t))),e.M=void 0),l=ke(n,"componentWillLoad")),ye(l,(()=>ve(e,n,t)))},ye=(e,t)=>$e(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),$e=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ve=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.R,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=q(t),o=r.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,i=W.get(e=e.head||e);if(i||W.set(e,i=new Set),!i.has(l)){{s=f.createElement("style"),s.innerHTML=o;const t=null!=(n=d.P)?n:O(f);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);be(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>we(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},be=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.R,u=e.T||N(null,null),a=(e=>e&&e.$===D)(t)?t:L(null,null,t);if(P=r.tagName,c.A&&(a.u=a.u||{},c.A.map((([e,t])=>a.u[t]=r[e]))),n&&a.u)for(const e of Object.keys(a.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.u[e]=r[e]);if(a.$=null,a.l|=4,e.T=a,a.v=u.v=r.shadowRoot||r,x=r["s-sc"],K=!!(1&c.l),R=r["s-cr"],Q=!1,ie(u,a,n),d.l|=1,X){ue(a.v);for(const e of ce){const t=e.S;if(!t["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t,de(t.parentNode,t["s-ol"]=e,t)}}for(const e of ce){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),de(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Q&&re(a.v),d.l&=-2,ce.length=0,R=void 0})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},we=e=>{const t=e.$hostElement$,n=e.t,l=e.C;ke(n,"componentDidRender"),64&e.l||(e.l|=64,Se(t),ke(n,"componentDidLoad"),e.L(t),l||ge()),e.O&&(e.O(),e.O=void 0),512&e.l&&g((()=>pe(e,!1))),e.l&=-517},ge=()=>{Se(f.documentElement),g((()=>U(a,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Se=e=>e.classList.add("hydrated"),je=(e,t,l)=>{var o,i;const r=e.prototype;if(t.N||t.D||e.watchers){e.watchers&&!t.D&&(t.D=e.watchers);const c=Object.entries(null!=(o=t.N)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.N[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.F.set(t,l),a)){if(o.D&&128&u){const e=o.D[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&pe(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){d.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.D)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},Oe=e=>{ke(e,"connectedCallback")},Ce=e=>{ke(e,"disconnectedCallback")},Ee=(e,l={})=>{var o;const u=[],h=l.exclude||[],m=a.customElements,y=f.head,$=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let w,g=!0;Object.assign(d,l),d.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],k:l[1],N:l[2],H:l[3]};4&c.l&&(k=!0),c.N=l[2],c.H=l[3],c.A=[],c.D=null!=(o=l[4])?o:{};const a=c.k,y=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,R:n,F:new Map};l.U=new Promise((e=>l.L=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Me(this,e,c.H)),w&&(clearTimeout(w),w=null),g?b.push(this):d.jmp((()=>(e=>{if(!(1&d.l)){const t=n(e),l=t.R,o=()=>{};if(1&t.l)Me(e,t,l.H),(null==t?void 0:t.t)?Oe(t.t):(null==t?void 0:t.U)&&t.U.then((()=>Oe(t.t)));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,de(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){he(t,t.C=n);break}}l.N&&Object.entries(l.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.W;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.q}" was not found`);l.isProxied||(n.D=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),Oe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.C,c=()=>pe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?Ce(e.t):(null==e?void 0:e.U)&&e.U.then((()=>Ce(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],h.includes(a)||m.get(a)||(u.push(a),m.define(a,je(y,c,1)))}))})),u.length>0&&(k&&(v.textContent+=c),v.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=d.P)?o:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Re(e,n),i=xe(t,o),r=Pe(n);d.ael(s,l,i,r),(t.G=t.G||[]).push((()=>d.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Re=(e,t)=>4&t?f:8&t?a:16&t?f.body:e,Pe=e=>({passive:!!(1&e),capture:!!(2&e)}),Te=e=>d.P=e;export{D as H,Ee as b,H as c,F as g,L as h,h as p,l as r,Te as s}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.q}" was not found`);l.isProxied||(n.D=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),Oe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.C,c=()=>pe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?Ce(e.t):(null==e?void 0:e.U)&&e.U.then((()=>Ce(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],h.includes(a)||m.get(a)||(u.push(a),m.define(a,je(y,c,1)))}))})),u.length>0&&(k&&(v.textContent+=c),v.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=d.P)?o:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Re(e,n),i=xe(t,o),r=Pe(n);d.ael(s,l,i,r),(t.G=t.G||[]).push((()=>d.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Re=(e,t)=>8&t?a:16&t?f.body:e,Pe=e=>({passive:!!(1&e),capture:!!(2&e)}),Te=e=>d.P=e;export{D as H,Ee as b,H as c,F as g,L as h,h as p,l as r,Te as s}
@@ -1 +1 @@
1
- export{C as CasinoEngagementSuiteTournament}from"./casino-engagement-suite-tournament-b2e7f98a.js";import"./index-8b5c4b95.js";import"@everymatrix/ui-image";
1
+ export{C as CasinoEngagementSuiteTournament}from"./casino-engagement-suite-tournament-135290da.js";import"./index-487913af.js";import"@everymatrix/ui-image";
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5e98dd13.js');
6
- const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-840e5b5f.js');
5
+ const index = require('./index-b22e9a52.js');
6
+ const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-8feeba0e.js');
7
7
  require('@everymatrix/ui-image');
8
8
 
9
9
  const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-5e98dd13.js');
3
+ const index = require('./index-b22e9a52.js');
4
4
  require('@everymatrix/ui-image');
5
5
 
6
6
  /*! *****************************************************************************
@@ -952,10 +952,10 @@ const CasinoEngagementSuiteTournament = class {
952
952
  return this.page === exports.LeaderboardPage.list ? this.containerScrollTop : ((_a = this.detailElement) === null || _a === void 0 ? void 0 : _a.clientHeight) / 2 - 250;
953
953
  }
954
954
  handleClickOutside(event) {
955
- if (event.composedPath()[0] === this.tooltipIconReference)
956
- return;
957
- if (event.composedPath()[0] !== this.tooltipReference)
955
+ const path = event.composedPath();
956
+ if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
958
957
  this.showTooltip = false;
958
+ }
959
959
  }
960
960
  componentDidLoad() {
961
961
  messageSender.UpdateTournamentsPageIsReady();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5e98dd13.js');
5
+ const index = require('./index-b22e9a52.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["casino-engagement-suite-progress-bar_8.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
22
+ return index.bootstrapLazy([["casino-engagement-suite-progress-bar_8.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[10,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-tournament';
24
- const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
24
+ const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -1583,7 +1583,6 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1583
1583
  }
1584
1584
  };
1585
1585
  var getHostListenerTarget = (elm, flags) => {
1586
- if (flags & 4 /* TargetDocument */) return doc;
1587
1586
  if (flags & 8 /* TargetWindow */) return win;
1588
1587
  if (flags & 16 /* TargetBody */) return doc.body;
1589
1588
  return elm;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-840e5b5f.js');
6
- require('./index-5e98dd13.js');
5
+ const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-8feeba0e.js');
6
+ require('./index-b22e9a52.js');
7
7
  require('@everymatrix/ui-image');
8
8
 
9
9
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-5e98dd13.js');
5
+ const index = require('./index-b22e9a52.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["casino-engagement-suite-progress-bar_8.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
11
+ return index.bootstrapLazy([["casino-engagement-suite-progress-bar_8.cjs",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[10,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -102,10 +102,10 @@ export class CasinoEngagementSuiteTournament {
102
102
  return this.page === LeaderboardPage.list ? this.containerScrollTop : ((_a = this.detailElement) === null || _a === void 0 ? void 0 : _a.clientHeight) / 2 - 250;
103
103
  }
104
104
  handleClickOutside(event) {
105
- if (event.composedPath()[0] === this.tooltipIconReference)
106
- return;
107
- if (event.composedPath()[0] !== this.tooltipReference)
105
+ const path = event.composedPath();
106
+ if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
108
107
  this.showTooltip = false;
108
+ }
109
109
  }
110
110
  componentDidLoad() {
111
111
  messageSender.UpdateTournamentsPageIsReady();
@@ -563,8 +563,8 @@ export class CasinoEngagementSuiteTournament {
563
563
  }, {
564
564
  "name": "click",
565
565
  "method": "handleClickOutside",
566
- "target": "document",
567
- "capture": false,
566
+ "target": "window",
567
+ "capture": true,
568
568
  "passive": false
569
569
  }];
570
570
  }
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, g as getElement, c as createEvent, H as Host } from './index-8b5c4b95.js';
2
- import { c as classnames, D as DialogType, i as isTournamentEnded, r as renderGradientRoundedButton, t as translate, L as LeaderboardPage, g as getProgress, a as getTimeDifference, f as formatDate } from './casino-engagement-suite-tournament-b2e7f98a.js';
3
- export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-b2e7f98a.js';
1
+ import { r as registerInstance, h, g as getElement, c as createEvent, H as Host } from './index-487913af.js';
2
+ import { c as classnames, D as DialogType, i as isTournamentEnded, r as renderGradientRoundedButton, t as translate, L as LeaderboardPage, g as getProgress, a as getTimeDifference, f as formatDate } from './casino-engagement-suite-tournament-135290da.js';
3
+ export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-135290da.js';
4
4
  import '@everymatrix/ui-image';
5
5
 
6
6
  const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
@@ -1,4 +1,4 @@
1
- import { h, H as Host, r as registerInstance, c as createEvent } from './index-8b5c4b95.js';
1
+ import { h, H as Host, r as registerInstance, c as createEvent } from './index-487913af.js';
2
2
  import '@everymatrix/ui-image';
3
3
 
4
4
  /*! *****************************************************************************
@@ -950,10 +950,10 @@ const CasinoEngagementSuiteTournament = class {
950
950
  return this.page === LeaderboardPage.list ? this.containerScrollTop : ((_a = this.detailElement) === null || _a === void 0 ? void 0 : _a.clientHeight) / 2 - 250;
951
951
  }
952
952
  handleClickOutside(event) {
953
- if (event.composedPath()[0] === this.tooltipIconReference)
954
- return;
955
- if (event.composedPath()[0] !== this.tooltipReference)
953
+ const path = event.composedPath();
954
+ if (!path.includes(this.tooltipIconReference) && !path.includes(this.tooltipReference)) {
956
955
  this.showTooltip = false;
956
+ }
957
957
  }
958
958
  componentDidLoad() {
959
959
  messageSender.UpdateTournamentsPageIsReady();
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-8b5c4b95.js';
2
- export { s as setNonce } from './index-8b5c4b95.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-487913af.js';
2
+ export { s as setNonce } from './index-487913af.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
19
+ return bootstrapLazy([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[10,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
20
20
  });
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-tournament';
2
- const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
2
+ const BUILD = /* casino-engagement-suite-tournament */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
@@ -1561,7 +1561,6 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1561
1561
  }
1562
1562
  };
1563
1563
  var getHostListenerTarget = (elm, flags) => {
1564
- if (flags & 4 /* TargetDocument */) return doc;
1565
1564
  if (flags & 8 /* TargetWindow */) return win;
1566
1565
  if (flags & 16 /* TargetBody */) return doc.body;
1567
1566
  return elm;
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-b2e7f98a.js';
2
- import './index-8b5c4b95.js';
1
+ export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-135290da.js';
2
+ import './index-487913af.js';
3
3
  import '@everymatrix/ui-image';
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-8b5c4b95.js';
2
- export { s as setNonce } from './index-8b5c4b95.js';
1
+ import { b as bootstrapLazy } from './index-487913af.js';
2
+ export { s as setNonce } from './index-487913af.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[4,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["casino-engagement-suite-progress-bar_8",[[1,"casino-engagement-suite-tournament",{"language":[1],"show":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"device":[1],"orientation":[1],"leaderboardsInit":[16],"tipsHideDelay":[514,"tips-hide-delay"],"tab":[32],"locale":[32],"tournamentItem":[32],"tournamentList":[32],"leaderboards":[32],"isDialogOpen":[32],"isShowInfo":[32],"page":[32],"tournamentInDialog":[32],"dialog":[32],"newIdList":[32]},[[8,"message","handleEvent"],[16,"clickToTournamentDetail","handleClickToTournamentDetail"],[16,"joinTournamentEvent","handleJoinTournamentEvent"],[16,"unjoinTournamentConfirmEvent","handleUnjoinTournamentEvent"],[10,"click","handleClickOutside"]],{"newIdList":["watchPropHandler"],"language":["watchPropHandler"],"tournamentList":["syncBarState"],"show":["showPropWatcher"]}],[0,"tournament-item",{"tournament":[16],"isNew":[4,"is-new"],"tid":[1],"language":[1]},[[16,"pendingChangeEvent","onTournamentUpdateEvent"]]],[0,"ui-image",{"src":[1],"width":[1],"height":[1],"alt":[1],"styles":[8],"detectDistance":[1,"detect-distance"],"imgLoaded":[32],"shouldLoad":[32]},null,{"src":["handleSrc"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"mbSource":[1,"mb-source"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}],[0,"tournament-timer",{"tournament":[16],"isDetail":[4,"is-detail"],"timeHolder":[32],"timeClock":[32],"lastTimeDiff":[32],"lastProgress":[32]},[[16,"tournamentTimer","containerPageChangeHandler"]]],[0,"tournament-item-title",{"tournament":[16],"language":[1],"isButtonDisabed":[32]},null,{"tournament":["onTournamentChanged"]}],[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"]}],[1,"casino-engagement-suite-progress-bar",{"value":[2],"disabled":[4],"hidePercent":[4,"hide-percent"],"indeterminate":[4],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"limitStylingAppends":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-tournament",
3
- "version": "1.76.0",
3
+ "version": "1.76.1",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",