@everymatrix/casino-engagement-suite-tournament 1.87.25 → 1.87.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
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-47d54ca9.js";export{C as casino_engagement_suite_tournament}from"./casino-engagement-suite-tournament-47d54ca9.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){if(!e||!t)return;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:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonTitle "+(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:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonCircle "+(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:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};x.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";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-5edbf003.js";export{C as casino_engagement_suite_tournament}from"./casino-engagement-suite-tournament-5edbf003.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)}};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 b="__WIDGET_GLOBAL_STYLE_CACHE__";function k(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function w(e,t){if(!e||!t)return;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)}))}const f=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,i,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t);window[b]||(window[b]={});const n=(i=function(e,t){return window.emMessageBus.subscribe(t,(i=>{if(!e)return;const s=e.getRootNode(),n=window[b];let r=n[t]?.sheet;r?n[t].refCount=n[t].refCount+1:(r=new CSSStyleSheet,r.replaceSync(i),n[t]={sheet:r,refCount:1});const a=s.adoptedStyleSheets||[];a.includes(r)||(s.adoptedStyleSheets=[...a,r])}))}(e,t)).unsubscribe.bind(i);i.unsubscribe=()=>{if(window[b][t]){const e=window[b][t];e.refCount>1?e.refCount=e.refCount-1:delete window[b][t]}n()}}(this.el,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&k(this.el,this.clientStyling),this.clientStylingUrl&&w(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&k(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&w(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&k(this.el,this.clientStyling),this.clientStylingUrl&&w(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"]}}};f.style=":host{display:block}";const v=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"))))}},p=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"]}}},y=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}))}},x=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"]}}};x.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 S=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:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonTitle "+(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:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"SkeletonCircle "+(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:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},t("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};S.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{u as casino_engagement_suite_progress_bar,f as general_styling_wrapper,v as tournament_item,p as tournament_item_title,y as tournament_timer,x as ui_image,S as ui_skeleton}
@@ -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.",LoadingError:"Oops~ some unexpected issue happened,<br> please refresh the page or contact the support team",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",e.loadingError="loadingError"}(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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTcxXzUxNikiPgog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MzQzcuMzMzNDEgMTAuOTY1MSA3LjYzMTg5IDEwLjY2NjcgOC4wMDAwOCAxMC42NjY3SDguMDA2NzVDOC4zNzQ5NCAxMC42NjY3IDguNjczNDEgMTAuOTY1MSA4LjY3MzQxIDExLjMzMzNDOC42NzM0MSAxMS43MDE1IDguMzc0OTQgMTIgOC4wMDY3NSAxMkg4LjAwMDA4QzcuNjMxODkgMTIgNy4zMzM0MSAxMS43MDE1IDcuMzMzNDEgMTEuMzMzM1oiIGZpbGw9IiM2NjYxNzgiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTk3MV81MTYiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC40NzEzIDMuNTI4NTlDMTAuNzMxNyAzLjc4ODk0IDEwLjczMTcgNC4yMTEwNSAxMC40NzEzIDQuNDcxNEw2Ljk0MjczIDhMMTAuNDcxMyAxMS41Mjg2QzEwLjczMTcgMTEuNzg4OSAxMC43MzE3IDEyLjIxMTEgMTAuNDcxMyAxMi40NzE0QzEwLjIxMSAxMi43MzE3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bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMTcwMV8xMjYwNCIgeDE9IjIuODQ3MDYiIHkxPSIyLjA2MjUiIHgyPSI2NC44NDQ3IiB5Mj0iMTEuMDQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+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){if(!e||!i)return;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=>{if(!e.success)return void s.openDialog(j.loadingError);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.status&&"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.loadingError:return e("div",{class:"Tip",innerHTML:this.locale.LoadingError});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.SkeletonImage{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{will-change:scroll-position;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.",LoadingError:"Oops~ some unexpected issue happened,<br> please refresh the page or contact the support team",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",e.loadingError="loadingError"}(j||(j={}));const D=e=>[u.Closed,u.Closing].includes(e.state),N=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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KICAgIDxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8xOTcxXzUxNikiPgogICAgICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOC4wMDA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zNzQ5NCAxMC42NjY3IDguNjczNDEgMTAuOTY1MSA4LjY3MzQxIDExLjMzMzNDOC42NzM0MSAxMS43MDE1IDguMzc0OTQgMTIgOC4wMDY3NSAxMkg4LjAwMDA4QzcuNjMxODkgMTIgNy4zMzM0MSAxMS43MDE1IDcuMzMzNDEgMTEuMzMzM1oiIGZpbGw9IiM2NjYxNzgiLz4KICAgIDwvZz4KICAgIDxkZWZzPgogICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMTk3MV81MTYiPgogICAgICAgICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIi8+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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2IiBmaWxsPSJub25lIj48c2NyaXB0IHhtbG5zPSIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC40NzEzIDMuNTI4NTlDMTAuNzMxNyAzLjc4ODk0IDEwLjczMTcgNC4yMTEwNSAxMC40NzEzIDQuNDcxNEw2Ljk0MjczIDhMMTAuNDcxMyAxMS41Mjg2QzEwLjczMTcgMTEuNzg4OSAxMC43MzE3IDEyLjIxMTEgMTAuNDcxMyAxMi40NzE0QzEwLjIxMSAxMi43MzE3IDkuNzg4ODYgMTIuNzMxNyA5LjUyODUxIDEyLjQ3MTRMNS41Mjg1MSA4LjQ3MTRDNS4yNjgxNiA4Lj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yLjA2MjUiIHgyPSI2NC44NDQ3IiB5Mj0iMTEuMDQ4IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+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 D(e,i){return e!=e?i==i:e!==i||e&&"object"==typeof e||"function"==typeof e}function N(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){N(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)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const Q="__WIDGET_GLOBAL_STYLE_CACHE__";function P(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 W(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){N(t,i,n),e[4](i)},p:c,i:c,o:c,d(t){t&&I(i),e[4](null)}}}function R(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){if(!e||!i)return;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,t,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return t=function(e,i){const t=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{e&&(t.innerHTML=i,e.appendChild(t))}))}(e,i),t;window[Q]||(window[Q]={}),t=function(e,i){return window.emMessageBus.subscribe(i,(t=>{var n;if(!e)return;const a=e.getRootNode(),r=window[Q];let o=null==(n=r[i])?void 0:n.sheet;o?r[i].refCount=r[i].refCount+1:(o=new CSSStyleSheet,o.replaceSync(t),r[i]={sheet:o,refCount:1});const s=a.adoptedStyleSheets||[];s.includes(o)||(a.adoptedStyleSheets=[...s,o])}))}(e,i);const a=t.unsubscribe.bind(t);t.unsubscribe=()=>{if(window[Q][i]){const e=window[Q][i];e.refCount>1?e.refCount=e.refCount-1:delete window[Q][i]}a()}}(n,`${o}.Style`,void 0)},[n,a,r,o,function(e){h[e?"unshift":"push"]((()=>{n=e,t(0,n)}))}]}class G extends U{constructor(e){super(),S(this,e,R,W,D,{clientstyling:1,clientstylingurl:2,mbsource:3},P)}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}(G,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),e.default=G})(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 _=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})))},K=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=>{if(!e.success)return void s.openDialog(j.loadingError);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=>N(e))),a=t.rewards.filter((e=>e.status&&"success"===e.status)).map((e=>N(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),D(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&&_({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":"")},_({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.loadingError:return e("div",{class:"Tip",innerHTML:this.locale.LoadingError});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"]}}};K.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.SkeletonImage{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{will-change:scroll-position;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{K as C,j as D,g as L,F as a,c,B as f,Z as g,D as i,A as r,d as t}
@@ -1 +1 @@
1
- export{C as CasinoEngagementSuiteTournament}from"./casino-engagement-suite-tournament-47d54ca9.js";import"./index-487913af.js";import"@everymatrix/ui-image";
1
+ export{C as CasinoEngagementSuiteTournament}from"./casino-engagement-suite-tournament-5edbf003.js";import"./index-487913af.js";import"@everymatrix/ui-image";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b22e9a52.js');
6
- const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-df0a4e01.js');
6
+ const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-203b22c2.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)}";
@@ -104,6 +104,8 @@ const mergeTranslations = (url, target) => {
104
104
  });
105
105
  };
106
106
 
107
+ const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
108
+
107
109
  /**
108
110
  * @name setClientStyling
109
111
  * @description Method used to create and append to the passed element of the widget a style element with the content received
@@ -149,18 +151,75 @@ function setClientStylingURL(stylingContainer, clientStylingUrl) {
149
151
  * @param {HTMLElement} stylingContainer The highest element of the widget
150
152
  * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
151
153
  * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
154
+ * @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
152
155
  */
153
- function setStreamStyling(stylingContainer, domain, subscription) {
154
- if (window.emMessageBus) {
155
- const sheet = document.createElement('style');
156
+ function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
157
+ if (!window.emMessageBus) return;
156
158
 
157
- window.emMessageBus.subscribe(domain, (data) => {
158
- sheet.innerHTML = data;
159
- if (stylingContainer) {
160
- stylingContainer.appendChild(sheet);
161
- }
162
- });
159
+ const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
160
+
161
+ if (!supportAdoptStyle || !useAdoptedStyleSheets) {
162
+ subscription = getStyleTagSubscription(stylingContainer, domain);
163
+
164
+ return subscription;
165
+ }
166
+
167
+ if (!window[StyleCacheKey]) {
168
+ window[StyleCacheKey] = {};
163
169
  }
170
+ subscription = getAdoptStyleSubscription(stylingContainer, domain);
171
+
172
+ const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
173
+ const wrappedUnsubscribe = () => {
174
+ if (window[StyleCacheKey][domain]) {
175
+ const cachedObject = window[StyleCacheKey][domain];
176
+ cachedObject.refCount > 1
177
+ ? (cachedObject.refCount = cachedObject.refCount - 1)
178
+ : delete window[StyleCacheKey][domain];
179
+ }
180
+
181
+ originalUnsubscribe();
182
+ };
183
+ subscription.unsubscribe = wrappedUnsubscribe;
184
+
185
+ return subscription;
186
+ }
187
+
188
+ function getStyleTagSubscription(stylingContainer, domain) {
189
+ const sheet = document.createElement('style');
190
+
191
+ return window.emMessageBus.subscribe(domain, (data) => {
192
+ if (stylingContainer) {
193
+ sheet.innerHTML = data;
194
+ stylingContainer.appendChild(sheet);
195
+ }
196
+ });
197
+ }
198
+
199
+ function getAdoptStyleSubscription(stylingContainer, domain) {
200
+ return window.emMessageBus.subscribe(domain, (data) => {
201
+ if (!stylingContainer) return;
202
+
203
+ const shadowRoot = stylingContainer.getRootNode();
204
+ const cacheStyleObject = window[StyleCacheKey];
205
+ let cachedStyle = cacheStyleObject[domain]?.sheet;
206
+
207
+ if (!cachedStyle) {
208
+ cachedStyle = new CSSStyleSheet();
209
+ cachedStyle.replaceSync(data);
210
+ cacheStyleObject[domain] = {
211
+ sheet: cachedStyle,
212
+ refCount: 1
213
+ };
214
+ } else {
215
+ cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
216
+ }
217
+
218
+ const currentSheets = shadowRoot.adoptedStyleSheets || [];
219
+ if (!currentSheets.includes(cachedStyle)) {
220
+ shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
221
+ }
222
+ });
164
223
  }
165
224
 
166
225
  const generalStylingWrapperCss = ":host{display:block}";
@@ -179,7 +238,7 @@ const GeneralStylingWrapper = class {
179
238
  componentDidLoad() {
180
239
  if (this.el) {
181
240
  if (window.emMessageBus != undefined) {
182
- setStreamStyling(this.el, `${this.mbSource}.Style`);
241
+ setStreamStyling(this.el, `${this.mbSource}.Style`, this.stylingSubscription);
183
242
  }
184
243
  else {
185
244
  if (this.clientStyling)
@@ -841,13 +841,13 @@ const renders = {
841
841
  tab
842
842
  };
843
843
 
844
- var GeneralAnimationLoadingGmRWhoyq = {};
844
+ var GeneralAnimationLoadingDHcNOC1G = {};
845
845
 
846
846
  (function (exports) {
847
- var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(M)for(var n of M(t))q.call(t,n)&&x(e,n,t[n]);return e},P=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var B=(e,t,n)=>new Promise((i,r)=>{var s=o=>{try{u(n.next(o));}catch(l){r(l);}},c=o=>{try{u(n.throw(o));}catch(l){r(l);}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,c);u((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H);}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t);}function X(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=j("style");r.id=t,r.textContent=n,Z(i,r);}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null);}function S(e){e.parentNode&&e.parentNode.removeChild(e);}function j(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function _(e){g=e;}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function st(e){it().$$.on_mount.push(e);}const a=[],E=[];let m=[];const R=[],rt=Promise.resolve();let v=!1;function ct(){v||(v=!0,rt.then(p));}function L(e){m.push(e);}const k=new Set;let $=0;function p(){if($!==0)return;const e=g;do{try{for(;$<a.length;){const t=a[$];$++,_(t),ot(t.$$);}}catch(t){throw a.length=0,$=0,t}for(_(null),a.length=0,$=0;E.length;)E.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while(a.length);for(;R.length;)R.pop()();v=!1,k.clear(),_(e);}function ot(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L);}}function lt(e){const t=[],n=[];m.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),m=t;}const ut=new Set;function dt(e,t){e&&e.i&&(ut.delete(e),e.i(t));}function ft(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),L(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):w(s),e.$$.on_mount=[];}),r.forEach(L);}function $t(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function at(e,t){e.$$.dirty[0]===-1&&(a.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function ht(e,t,n,i,r,s,c=null,u=[-1]){const o=g;_(e);const l=e.$$={fragment:null,ctx:[],props:s,update:h,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(l.root);let y=!1;if(l.ctx=n?n(e,t.props||{},(f,C,...O)=>{const A=O.length?O[0]:C;return l.ctx&&r(l.ctx[f],l.ctx[f]=A)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](A),y&&at(e,f)),C}):[],l.update(),y=!0,w(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=et(t.target);l.fragment&&l.fragment.l(f),f.forEach(S);}else l.fragment&&l.fragment.c();t.intro&&dt(e.$$.fragment),ft(e,t.target,t.anchor),p();}_(o);}let z;typeof HTMLElement=="function"&&(z=class extends HTMLElement{constructor(t,n,i){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=t,this.$$s=n,i&&this.attachShadow({mode:"open"});}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r);}super.addEventListener(t,n,i);}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n));}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return ()=>{let c;return {c:function(){c=j("slot"),s!=="default"&&tt(c,"name",s);},m:function(l,y){U(l,c,y);},d:function(l){l&&S(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=b(c,s.value,this.$$p_d,"toProp"));}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:P(N({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=b(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c);}this.$$r=!1;};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u);}this.$$l={};}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function b(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mt(e,t,n,i,r,s){let c=class extends z{constructor(){super(e,n,r),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=b(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=c,c}class _t{constructor(){d(this,"$$");d(this,"$$set");}$destroy(){$t(this,1),this.$destroy=h;}$on(t,n){if(!I(n))return h;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1);}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pt);function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function yt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r);}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i);});}function bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i);});}}function wt(e){X(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 xt(e){let t;return {c(){t=j("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,i){U(n,t,i),e[4](t);},p:h,i:h,o:h,d(n){n&&S(t),e[4](null);}}}function kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{mbsource:s}=t,c;st(()=>()=>{});function u(o){E[o?"unshift":"push"](()=>{c=o,n(0,c);});}return e.$$set=o=>{"clientstyling"in o&&n(1,i=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,s=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&i&&c&&gt(c,i),e.$$.dirty&5&&r&&c&&yt(c,r),e.$$.dirty&9&&s&&c&&bt(c,`${s}.Style`);},[c,i,r,s,u]}class D extends _t{constructor(t){super(),ht(this,t,kt,xt,K,{clientstyling:1,clientstylingurl:2,mbsource:3},wt);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),p();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),p();}}mt(D,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=D;
848
- }(GeneralAnimationLoadingGmRWhoyq));
847
+ var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))W.call(t,n)&&x(e,n,t[n]);return e},B=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=u=>{try{l(n.next(u));}catch(o){r(o);}},c=u=>{try{l(n.throw(u));}catch(o){r(o);}},l=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,c);l((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U);}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function q(e){return Object.keys(e).length===0}function Q(e,t){e.appendChild(t);}function X(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=O("style");r.id=t,r.textContent=n,tt(s,r);}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return Q(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null);}function v(e){e.parentNode&&e.parentNode.removeChild(e);}function O(e){return document.createElement(e)}function et(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function y(e){g=e;}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function rt(e){it().$$.on_mount.push(e);}const h=[],k=[];let p=[];const H=[],ct=Promise.resolve();let C=!1;function ot(){C||(C=!0,ct.then(m));}function L(e){p.push(e);}const E=new Set;let $=0;function m(){if($!==0)return;const e=g;do{try{for(;$<h.length;){const t=h[$];$++,y(t),lt(t.$$);}}catch(t){throw h.length=0,$=0,t}for(y(null),h.length=0,$=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];E.has(n)||(E.add(n),n());}p.length=0;}while(h.length);for(;H.length;)H.pop()();C=!1,E.clear(),y(e);}function lt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L);}}function ut(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t;}const dt=new Set;function ft(e,t){e&&e.i&&(dt.delete(e),e.i(t));}function $t(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),L(()=>{const i=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...i):S(i),e.$$.on_mount=[];}),r.forEach(L);}function ht(e,t){const n=e.$$;n.fragment!==null&&(ut(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function at(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function _t(e,t,n,s,r,i,c=null,l=[-1]){const u=g;y(e);const o=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:r,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:R(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};c&&c(o.root);let b=!1;if(o.ctx=n?n(e,t.props||{},(f,j,...A)=>{const M=A.length?A[0]:j;return o.ctx&&r(o.ctx[f],o.ctx[f]=M)&&(!o.skip_bound&&o.bound[f]&&o.bound[f](M),b&&at(e,f)),j}):[],o.update(),b=!0,S(o.before_update),o.fragment=s?s(o.ctx):!1,t.target){if(t.hydrate){const f=nt(t.target);o.fragment&&o.fragment.l(f),f.forEach(v);}else o.fragment&&o.fragment.c();t.intro&&ft(e.$$.fragment),$t(e,t.target,t.anchor),m();}y(u);}let G;typeof HTMLElement=="function"&&(G=class extends HTMLElement{constructor(t,n,s){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=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n));}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let c;return {c:function(){c=O("slot"),i!=="default"&&et(c,"name",i);},m:function(o,b){I(o,c,b);},d:function(o){o&&v(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=w(c,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:B(T({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=w(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c);}this.$$r=!1;};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const c of this.$$l[i]){const l=this.$$c.$on(i,c);this.$$l_u.set(c,l);}this.$$l={};}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=w(t,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function w(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,r,i){let c=class extends G{constructor(){super(e,n,r),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(c.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var o;u=w(l,u,t),this.$$d[l]=u,(o=this.$$c)==null||o.$set({[l]:u});}});}),s.forEach(l=>{Object.defineProperty(c.prototype,l,{get(){var u;return (u=this.$$c)==null?void 0:u[l]}});}),e.element=c,c}class yt{constructor(){d(this,"$$");d(this,"$$set");}$destroy(){ht(this,1),this.$destroy=_;}$on(t,n){if(!D(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1);}}$set(t){this.$$set&&!q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const mt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);const a="__WIDGET_GLOBAL_STYLE_CACHE__";function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[a]||(window[a]={}),n=xt(e,t);const i=n.unsubscribe.bind(n),c=()=>{if(window[a][t]){const l=window[a][t];l.refCount>1?l.refCount=l.refCount-1:delete window[a][t];}i();};return n.unsubscribe=c,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n));})}function xt(e,t){return window.emMessageBus.subscribe(t,n=>{var l;if(!e)return;const s=e.getRootNode(),r=window[a];let i=(l=r[t])==null?void 0:l.sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const c=s.adoptedStyleSheets||[];c.includes(i)||(s.adoptedStyleSheets=[...c,i]);})}function Et(e){X(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 kt(e){let t;return {c(){t=O("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){I(n,t,s),e[4](t);},p:_,i:_,o:_,d(n){n&&v(t),e[4](null);}}}function Ct(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i}=t,c,l;rt(()=>()=>{});function u(o){k[o?"unshift":"push"](()=>{c=o,n(0,c);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&c&&gt(c,s),e.$$.dirty&5&&r&&c&&bt(c,r),e.$$.dirty&9&&i&&c&&wt(c,`${i}.Style`,l);},[c,s,r,i,u]}class z extends yt{constructor(t){super(),_t(this,t,Ct,kt,Y,{clientstyling:1,clientstylingurl:2,mbsource:3},Et);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),m();}}pt(z,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=z;
848
+ }(GeneralAnimationLoadingDHcNOC1G));
849
849
 
850
- if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingGmRWhoyq).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
850
+ if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingDHcNOC1G).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
851
851
 
852
852
  const renderCloseBar = (attr) => {
853
853
  const { left, middle, right } = attr;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-df0a4e01.js');
5
+ const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-203b22c2.js');
6
6
  require('./index-b22e9a52.js');
7
7
  require('@everymatrix/ui-image');
8
8
 
@@ -1,6 +1,6 @@
1
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-47d54ca9.js';
3
- export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-47d54ca9.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-5edbf003.js';
3
+ export { C as casino_engagement_suite_tournament } from './casino-engagement-suite-tournament-5edbf003.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)}";
@@ -101,6 +101,8 @@ const mergeTranslations = (url, target) => {
101
101
  });
102
102
  };
103
103
 
104
+ const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
105
+
104
106
  /**
105
107
  * @name setClientStyling
106
108
  * @description Method used to create and append to the passed element of the widget a style element with the content received
@@ -146,18 +148,75 @@ function setClientStylingURL(stylingContainer, clientStylingUrl) {
146
148
  * @param {HTMLElement} stylingContainer The highest element of the widget
147
149
  * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
148
150
  * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
151
+ * @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
149
152
  */
150
- function setStreamStyling(stylingContainer, domain, subscription) {
151
- if (window.emMessageBus) {
152
- const sheet = document.createElement('style');
153
+ function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
154
+ if (!window.emMessageBus) return;
153
155
 
154
- window.emMessageBus.subscribe(domain, (data) => {
155
- sheet.innerHTML = data;
156
- if (stylingContainer) {
157
- stylingContainer.appendChild(sheet);
158
- }
159
- });
156
+ const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
157
+
158
+ if (!supportAdoptStyle || !useAdoptedStyleSheets) {
159
+ subscription = getStyleTagSubscription(stylingContainer, domain);
160
+
161
+ return subscription;
162
+ }
163
+
164
+ if (!window[StyleCacheKey]) {
165
+ window[StyleCacheKey] = {};
160
166
  }
167
+ subscription = getAdoptStyleSubscription(stylingContainer, domain);
168
+
169
+ const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
170
+ const wrappedUnsubscribe = () => {
171
+ if (window[StyleCacheKey][domain]) {
172
+ const cachedObject = window[StyleCacheKey][domain];
173
+ cachedObject.refCount > 1
174
+ ? (cachedObject.refCount = cachedObject.refCount - 1)
175
+ : delete window[StyleCacheKey][domain];
176
+ }
177
+
178
+ originalUnsubscribe();
179
+ };
180
+ subscription.unsubscribe = wrappedUnsubscribe;
181
+
182
+ return subscription;
183
+ }
184
+
185
+ function getStyleTagSubscription(stylingContainer, domain) {
186
+ const sheet = document.createElement('style');
187
+
188
+ return window.emMessageBus.subscribe(domain, (data) => {
189
+ if (stylingContainer) {
190
+ sheet.innerHTML = data;
191
+ stylingContainer.appendChild(sheet);
192
+ }
193
+ });
194
+ }
195
+
196
+ function getAdoptStyleSubscription(stylingContainer, domain) {
197
+ return window.emMessageBus.subscribe(domain, (data) => {
198
+ if (!stylingContainer) return;
199
+
200
+ const shadowRoot = stylingContainer.getRootNode();
201
+ const cacheStyleObject = window[StyleCacheKey];
202
+ let cachedStyle = cacheStyleObject[domain]?.sheet;
203
+
204
+ if (!cachedStyle) {
205
+ cachedStyle = new CSSStyleSheet();
206
+ cachedStyle.replaceSync(data);
207
+ cacheStyleObject[domain] = {
208
+ sheet: cachedStyle,
209
+ refCount: 1
210
+ };
211
+ } else {
212
+ cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
213
+ }
214
+
215
+ const currentSheets = shadowRoot.adoptedStyleSheets || [];
216
+ if (!currentSheets.includes(cachedStyle)) {
217
+ shadowRoot.adoptedStyleSheets = [...currentSheets, cachedStyle];
218
+ }
219
+ });
161
220
  }
162
221
 
163
222
  const generalStylingWrapperCss = ":host{display:block}";
@@ -176,7 +235,7 @@ const GeneralStylingWrapper = class {
176
235
  componentDidLoad() {
177
236
  if (this.el) {
178
237
  if (window.emMessageBus != undefined) {
179
- setStreamStyling(this.el, `${this.mbSource}.Style`);
238
+ setStreamStyling(this.el, `${this.mbSource}.Style`, this.stylingSubscription);
180
239
  }
181
240
  else {
182
241
  if (this.clientStyling)
@@ -839,13 +839,13 @@ const renders = {
839
839
  tab
840
840
  };
841
841
 
842
- var GeneralAnimationLoadingGmRWhoyq = {};
842
+ var GeneralAnimationLoadingDHcNOC1G = {};
843
843
 
844
844
  (function (exports) {
845
- var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(M)for(var n of M(t))q.call(t,n)&&x(e,n,t[n]);return e},P=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var B=(e,t,n)=>new Promise((i,r)=>{var s=o=>{try{u(n.next(o));}catch(l){r(l);}},c=o=>{try{u(n.throw(o));}catch(l){r(l);}},u=o=>o.done?i(o.value):Promise.resolve(o.value).then(s,c);u((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(){}function H(e){return e()}function T(){return Object.create(null)}function w(e){e.forEach(H);}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t);}function X(e,t,n){const i=Y(e);if(!i.getElementById(t)){const r=j("style");r.id=t,r.textContent=n,Z(i,r);}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null);}function S(e){e.parentNode&&e.parentNode.removeChild(e);}function j(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function _(e){g=e;}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function st(e){it().$$.on_mount.push(e);}const a=[],E=[];let m=[];const R=[],rt=Promise.resolve();let v=!1;function ct(){v||(v=!0,rt.then(p));}function L(e){m.push(e);}const k=new Set;let $=0;function p(){if($!==0)return;const e=g;do{try{for(;$<a.length;){const t=a[$];$++,_(t),ot(t.$$);}}catch(t){throw a.length=0,$=0,t}for(_(null),a.length=0,$=0;E.length;)E.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while(a.length);for(;R.length;)R.pop()();v=!1,k.clear(),_(e);}function ot(e){if(e.fragment!==null){e.update(),w(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L);}}function lt(e){const t=[],n=[];m.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),m=t;}const ut=new Set;function dt(e,t){e&&e.i&&(ut.delete(e),e.i(t));}function ft(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),L(()=>{const s=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...s):w(s),e.$$.on_mount=[];}),r.forEach(L);}function $t(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),w(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function at(e,t){e.$$.dirty[0]===-1&&(a.push(e),ct(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function ht(e,t,n,i,r,s,c=null,u=[-1]){const o=g;_(e);const l=e.$$={fragment:null,ctx:[],props:s,update:h,not_equal:r,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:T(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(l.root);let y=!1;if(l.ctx=n?n(e,t.props||{},(f,C,...O)=>{const A=O.length?O[0]:C;return l.ctx&&r(l.ctx[f],l.ctx[f]=A)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](A),y&&at(e,f)),C}):[],l.update(),y=!0,w(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){const f=et(t.target);l.fragment&&l.fragment.l(f),f.forEach(S);}else l.fragment&&l.fragment.c();t.intro&&dt(e.$$.fragment),ft(e,t.target,t.anchor),p();}_(o);}let z;typeof HTMLElement=="function"&&(z=class extends HTMLElement{constructor(t,n,i){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=t,this.$$s=n,i&&this.attachShadow({mode:"open"});}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r);}super.addEventListener(t,n,i);}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n));}}connectedCallback(){return B(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(s){return ()=>{let c;return {c:function(){c=j("slot"),s!=="default"&&tt(c,"name",s);},m:function(l,y){U(l,c,y);},d:function(l){l&&S(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=nt(this);for(const s of this.$$s)s in i&&(n[s]=[t(s)]);for(const s of this.attributes){const c=this.$$g_p(s.name);c in this.$$d||(this.$$d[c]=b(c,s.value,this.$$p_d,"toProp"));}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:P(N({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const c=b(s,this.$$d[s],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,c);}this.$$r=!1;};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const c of this.$$l[s]){const u=this.$$c.$on(s,c);this.$$l_u.set(c,u);}this.$$l={};}})}attributeChangedCallback(t,n,i){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=b(t,i,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function b(e,t,n,i){var s;const r=(s=n[e])==null?void 0:s.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function mt(e,t,n,i,r,s){let c=class extends z{constructor(){super(e,n,r),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=b(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),i.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=c,c}class _t{constructor(){d(this,"$$");d(this,"$$set");}$destroy(){$t(this,1),this.$destroy=h;}$on(t,n){if(!I(n))return h;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1);}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const pt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pt);function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function yt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const r=document.createElement("style");r.innerHTML=i,e&&e.appendChild(r);}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i);});}function bt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,r=>{i.innerHTML=r,e&&e.appendChild(i);});}}function wt(e){X(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 xt(e){let t;return {c(){t=j("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,i){U(n,t,i),e[4](t);},p:h,i:h,o:h,d(n){n&&S(t),e[4](null);}}}function kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:r=""}=t,{mbsource:s}=t,c;st(()=>()=>{});function u(o){E[o?"unshift":"push"](()=>{c=o,n(0,c);});}return e.$$set=o=>{"clientstyling"in o&&n(1,i=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,s=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&i&&c&&gt(c,i),e.$$.dirty&5&&r&&c&&yt(c,r),e.$$.dirty&9&&s&&c&&bt(c,`${s}.Style`);},[c,i,r,s,u]}class D extends _t{constructor(t){super(),ht(this,t,kt,xt,K,{clientstyling:1,clientstylingurl:2,mbsource:3},wt);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),p();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),p();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),p();}}mt(D,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=D;
846
- }(GeneralAnimationLoadingGmRWhoyq));
845
+ var F=Object.defineProperty,J=Object.defineProperties;var V=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var K=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t)=>{for(var n in t||(t={}))K.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))W.call(t,n)&&x(e,n,t[n]);return e},B=(e,t)=>J(e,V(t));var d=(e,t,n)=>(x(e,typeof t!="symbol"?t+"":t,n),n);var P=(e,t,n)=>new Promise((s,r)=>{var i=u=>{try{l(n.next(u));}catch(o){r(o);}},c=u=>{try{l(n.throw(u));}catch(o){r(o);}},l=u=>u.done?s(u.value):Promise.resolve(u.value).then(i,c);l((n=n.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function U(e){return e()}function R(){return Object.create(null)}function S(e){e.forEach(U);}function D(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function q(e){return Object.keys(e).length===0}function Q(e,t){e.appendChild(t);}function X(e,t,n){const s=Z(e);if(!s.getElementById(t)){const r=O("style");r.id=t,r.textContent=n,tt(s,r);}}function Z(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function tt(e,t){return Q(e.head||e,t),t.sheet}function I(e,t,n){e.insertBefore(t,n||null);}function v(e){e.parentNode&&e.parentNode.removeChild(e);}function O(e){return document.createElement(e)}function et(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function nt(e){return Array.from(e.childNodes)}function st(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function y(e){g=e;}function it(){if(!g)throw new Error("Function called outside component initialization");return g}function rt(e){it().$$.on_mount.push(e);}const h=[],k=[];let p=[];const H=[],ct=Promise.resolve();let C=!1;function ot(){C||(C=!0,ct.then(m));}function L(e){p.push(e);}const E=new Set;let $=0;function m(){if($!==0)return;const e=g;do{try{for(;$<h.length;){const t=h[$];$++,y(t),lt(t.$$);}}catch(t){throw h.length=0,$=0,t}for(y(null),h.length=0,$=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];E.has(n)||(E.add(n),n());}p.length=0;}while(h.length);for(;H.length;)H.pop()();C=!1,E.clear(),y(e);}function lt(e){if(e.fragment!==null){e.update(),S(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(L);}}function ut(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t;}const dt=new Set;function ft(e,t){e&&e.i&&(dt.delete(e),e.i(t));}function $t(e,t,n){const{fragment:s,after_update:r}=e.$$;s&&s.m(t,n),L(()=>{const i=e.$$.on_mount.map(U).filter(D);e.$$.on_destroy?e.$$.on_destroy.push(...i):S(i),e.$$.on_mount=[];}),r.forEach(L);}function ht(e,t){const n=e.$$;n.fragment!==null&&(ut(n.after_update),S(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function at(e,t){e.$$.dirty[0]===-1&&(h.push(e),ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function _t(e,t,n,s,r,i,c=null,l=[-1]){const u=g;y(e);const o=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:r,bound:R(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:R(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};c&&c(o.root);let b=!1;if(o.ctx=n?n(e,t.props||{},(f,j,...A)=>{const M=A.length?A[0]:j;return o.ctx&&r(o.ctx[f],o.ctx[f]=M)&&(!o.skip_bound&&o.bound[f]&&o.bound[f](M),b&&at(e,f)),j}):[],o.update(),b=!0,S(o.before_update),o.fragment=s?s(o.ctx):!1,t.target){if(t.hydrate){const f=nt(t.target);o.fragment&&o.fragment.l(f),f.forEach(v);}else o.fragment&&o.fragment.c();t.intro&&ft(e.$$.fragment),$t(e,t.target,t.anchor),m();}y(u);}let G;typeof HTMLElement=="function"&&(G=class extends HTMLElement{constructor(t,n,s){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=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n));}}connectedCallback(){return P(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let c;return {c:function(){c=O("slot"),i!=="default"&&et(c,"name",i);},m:function(o,b){I(o,c,b);},d:function(o){o&&v(c);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=st(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=w(c,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:B(T({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const r=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=w(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c);}this.$$r=!1;};this.$$c.$$.after_update.push(r),r();for(const i in this.$$l)for(const c of this.$$l[i]){const l=this.$$c.$on(i,c);this.$$l_u.set(c,l);}this.$$l={};}})}attributeChangedCallback(t,n,s){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=w(t,s,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function w(e,t,n,s){var i;const r=(i=n[e])==null?void 0:i.type;if(t=r==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(r){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function pt(e,t,n,s,r,i){let c=class extends G{constructor(){super(e,n,r),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Object.keys(t).forEach(l=>{Object.defineProperty(c.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var o;u=w(l,u,t),this.$$d[l]=u,(o=this.$$c)==null||o.$set({[l]:u});}});}),s.forEach(l=>{Object.defineProperty(c.prototype,l,{get(){var u;return (u=this.$$c)==null?void 0:u[l]}});}),e.element=c,c}class yt{constructor(){d(this,"$$");d(this,"$$set");}$destroy(){ht(this,1),this.$destroy=_;}$on(t,n){if(!D(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const r=s.indexOf(n);r!==-1&&s.splice(r,1);}}$set(t){this.$$set&&!q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const mt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(mt);const a="__WIDGET_GLOBAL_STYLE_CACHE__";function gt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function bt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const r=document.createElement("style");r.innerHTML=s,e&&e.appendChild(r);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function wt(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=St(e,t),n;window[a]||(window[a]={}),n=xt(e,t);const i=n.unsubscribe.bind(n),c=()=>{if(window[a][t]){const l=window[a][t];l.refCount>1?l.refCount=l.refCount-1:delete window[a][t];}i();};return n.unsubscribe=c,n}function St(e,t){const n=document.createElement("style");return window.emMessageBus.subscribe(t,s=>{e&&(n.innerHTML=s,e.appendChild(n));})}function xt(e,t){return window.emMessageBus.subscribe(t,n=>{var l;if(!e)return;const s=e.getRootNode(),r=window[a];let i=(l=r[t])==null?void 0:l.sheet;i?r[t].refCount=r[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(n),r[t]={sheet:i,refCount:1});const c=s.adoptedStyleSheets||[];c.includes(i)||(s.adoptedStyleSheets=[...c,i]);})}function Et(e){X(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 kt(e){let t;return {c(){t=O("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){I(n,t,s),e[4](t);},p:_,i:_,o:_,d(n){n&&v(t),e[4](null);}}}function Ct(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:r=""}=t,{mbsource:i}=t,c,l;rt(()=>()=>{});function u(o){k[o?"unshift":"push"](()=>{c=o,n(0,c);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,r=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&c&&gt(c,s),e.$$.dirty&5&&r&&c&&bt(c,r),e.$$.dirty&9&&i&&c&&wt(c,`${i}.Style`,l);},[c,s,r,i,u]}class z extends yt{constructor(t){super(),_t(this,t,Ct,kt,Y,{clientstyling:1,clientstylingurl:2,mbsource:3},Et);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),m();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),m();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),m();}}pt(z,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=z;
846
+ }(GeneralAnimationLoadingDHcNOC1G));
847
847
 
848
- if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingGmRWhoyq).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
848
+ if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}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}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingDHcNOC1G).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}
849
849
 
850
850
  const renderCloseBar = (attr) => {
851
851
  const { left, middle, right } = attr;
package/dist/esm/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-47d54ca9.js';
1
+ export { C as CasinoEngagementSuiteTournament } from './casino-engagement-suite-tournament-5edbf003.js';
2
2
  import './index-487913af.js';
3
3
  import '@everymatrix/ui-image';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-tournament",
3
- "version": "1.87.25",
3
+ "version": "1.87.27",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",