@everymatrix/casino-engagement-suite-tournament 1.56.0 → 1.56.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-engagement-suite-tournament/casino-engagement-suite-tournament.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -1
- package/dist/casino-engagement-suite-tournament/p-36511cf5.js +15 -0
- package/dist/casino-engagement-suite-tournament/{p-69ef97d1.entry.js → p-6e87f006.entry.js} +1 -1
- package/dist/casino-engagement-suite-tournament/p-7dd52ef4.js +2 -0
- package/dist/cjs/casino-engagement-suite-progress-bar_3.cjs.entry.js +13 -39
- package/dist/cjs/{casino-engagement-suite-tournament-19a1c3b7.js → casino-engagement-suite-tournament-dea6117d.js} +12 -31
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +2 -2
- package/dist/cjs/{index-79c59362.js → index-9b5a5304.js} +136 -287
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +4 -35
- package/dist/esm/casino-engagement-suite-progress-bar_3.entry.js +13 -39
- package/dist/esm/{casino-engagement-suite-tournament-f2131da2.js → casino-engagement-suite-tournament-520e74da.js} +12 -31
- package/dist/esm/casino-engagement-suite-tournament.js +3 -3
- package/dist/esm/{index-bc18616b.js → index-e8e1e68e.js} +136 -287
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +7 -2
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/dist/types/utils/api.apdater.d.ts +30 -2
- package/package.json +1 -1
- package/dist/casino-engagement-suite-tournament/p-00972ad5.js +0 -2
- package/dist/casino-engagement-suite-tournament/p-c1d0b870.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/packages/stencil/casino-engagement-suite-tournament/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-tournament/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as n}from"./p-
|
|
1
|
+
import{p as t,b as n}from"./p-7dd52ef4.js";export{s as setNonce}from"./p-7dd52ef4.js";import{g as e}from"./p-e1255160.js";(()=>{const n=import.meta.url,e={};return""!==n&&(e.resourcesUrl=new URL(".",n).href),t(e)})().then((async t=>(await e(),n([["p-6e87f006",[[1,"casino-engagement-suite-tournament",{language:[1],show:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],device:[1],leaderboardsInit:[16],tab:[32],locale:[32],tournamentItem:[32],tournamentList:[32],leaderboards:[32],isActionJoinPending:[32],isDialogOpen:[32],isShowInfo:[32],page:[32],tournamentInDialog:[32],dialog:[32],time:[32],newIdList:[32]},[[8,"message","handleEvent"]],{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}],[1,"casino-engagement-suite-progress-bar",{value:[2],disabled:[4],hidePercent:[4,"hide-percent"],indeterminate:[4],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],limitStylingAppends:[32]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]]],t))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoEngagementSuiteTournament}from"./p-
|
|
1
|
+
export{C as CasinoEngagementSuiteTournament}from"./p-36511cf5.js";import"./p-7dd52ef4.js";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{h as e,H as t,r as i,c as n}from"./p-7dd52ef4.js";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */function r(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}var o,s;!function(e){e.info="info",e.leaderboard="leaderboard",e.games="games"}(o||(o={})),function(e){e.Starts="Starts",e.Ends="Ends"}(s||(s={}));const a=(e,t)=>(Object.keys(t).map((i=>{e=e.replace(`{${i}}`,t[i])})),e),l=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),s),{TC:"Terms & Conditions",ScoreCriteria:"Score Criteria",MinimumBetCriteria:"Minimum bet criteria",Place:"place",Prizes:"Rewards",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:{Tile:"Congratulations!",Description:"You won <span>{tournamentName}</span>!",ButtonContinue:"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>",Tip:"Competition where your real money bets contribute towards the leaderboard score calculation to win the leaderboard reward."}),d=(...e)=>{let t=[];return e.map((e=>{switch(typeof e){case"string":t.push(e);break;case"object":Object.keys(e).map((i=>{e[i]&&t.push(i)}))}})),t.join(" ")};var c,p,u;!function(e){e.list="list",e.item="item"}(c||(c={})),function(e){e.Running="Running",e.Unstarted="Unstarted",e.Closed="Closed",e.Closing="Closing"}(p||(p={})),function(e){e.unjoin="unjoin",e.tip="tip",e.gift="gift"}(u||(u={}));const h=e=>[p.Closed,p.Closing].includes(e.state),g=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),m=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),f=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),b=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),v=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),x=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/reward.svg"}),w=e("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),y=t=>{var{statedClasses:i,innerHTML:n}=t,o=r(t,["statedClasses","innerHTML"]);const{isHollow:s,isPending:a}=i;return e("button",Object.assign({class:d("GradientRoundedButton","GradientRounded",{Hollow:s||!1,Pending:a||!1})},o),e("span",null,n))};var L;!function(e){e.normal="normal",e.unjoinYes="unjoinYes",e.unjoinNo="unjoinNo"}(L||(L={}));const C=(e,t)=>{const{locale:i}=e,n={normal:{innerHTML:i.WinDialog.ButtonContinue},unjoinYes:{onClick:()=>e.actionJoin(e.dialog.data),innerHTML:i.UnjoinDialog.ButtonYes},unjoinNo:{statedClasses:{isHollow:!0},innerHTML:i.UnjoinDialog.ButtonNo}}[t];return y({statedClasses:Object.assign({isPending:e.isActionJoinPending},n.statedClasses),onClick:()=>{var t;null===(t=n.onClick)||void 0===t||t.call(),e.closeDialog()},innerHTML:n.innerHTML})},T={gift(t){const{name:i}=t.gifts[0],{locale:n}=t;return e("div",{class:"PageConfirmContainer"},e("div",{class:"PageConfirm"},e("div",null,w),e("div",{class:"Title"},n.WinDialog.Tile),e("div",{class:"Description",innerHTML:a(n.WinDialog.Description,{tournamentName:i})}),e("div",{class:"PageConfirmButtonsGroup"},C(t,L.normal))))},unjoin(t){const{locale:i}=t;return e("div",{class:"DialogContentUnjoin"},e("div",{class:"DialogContentUnjoinTitle"},i.UnjoinDialog.Title),e("div",{class:"DialogContentUnjoinDescription",innerHTML:i.UnjoinDialog.Description}),C(t,L.unjoinYes),C(t,L.unjoinNo))}},k=e=>{const t=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],i={};return Object.keys(e).map((n=>{const r=e[n];i[n]="games"===n?r.items:t.includes(n)?new Date(r):r})),i},j=e=>{let{item:t,items:i}=e;return t?i.map((e=>t&&t.userID===e.userID?Object.assign(Object.assign({},e),{isMe:!0}):e)):i},F=t=>{const{left:i,middle:n,right:r}=t,o={left:i,middle:n,right:r};return e("div",{class:"WrapperBar"},Object.keys(o).map((t=>{return e("div",{class:"WrapperBar"+(i=t,i.split("").map(((e,t)=>0===t?e.toUpperCase():e)).join(""))},o[t]||"");var i})))};function z(e){return e.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function P(e,t){const i=new Date(e);return i.setSeconds(i.getSeconds()+t),i}function O(e,t){const i=Math.abs(t.getTime()-e.getTime()),n=Math.floor(i/864e5),r=Math.floor(i%864e5/36e5),o=Math.floor(i%36e5/6e4);return`${String(n).padStart(2,"0")}d:${String(r).padStart(2,"0")}h:${String(o).padStart(2,"0")}m`}function $(e,t){return(100*((new Date).getTime()-e.getTime())/(t.getTime()-e.getTime())).toFixed(0)}const R=(t,i)=>e("section",{class:"TimeContainer"},e("div",{class:"Time"},i.playerEnrolled?[e("div",null,O(P(i.startTime,t.time),i.endTime)),e("div",null,y({statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${$(i.startTime,i.endTime)}%`}))]:[e("div",null,z(i.startTime)),e("div",null,z(i.endTime))]),e("casino-engagement-suite-progress-bar",{value:Number($(i.startTime,i.endTime)),"hide-percent":!0})),M=e=>window.postMessage({type:"UpdateLeaderboardState",labels:e}),U=e=>window.postMessage({type:"UpdateTournamentsItemReq",id:e.id}),H=(e,t)=>window.postMessage({type:"UpdateLeaderboardsReq",id:e.id,query:t}),S=(e,t)=>{const{success:i}=t;if(i)switch(e.tournamentItem=Object.assign(Object.assign({},e.tournamentItem),{playerEnrolled:!e.tournamentItem.playerEnrolled}),e.page){case c.item:break;case c.list:B(e,e.tournamentItem)}e.nextPage&&(e.setPage(e.nextPage),e.nextPage=void 0),e.isActionJoinPending=!1},B=(e,t)=>{e.tournamentList=e.tournamentList.map((e=>e.id===t.id?k(t):e))},I=(e,t)=>{e.tournamentList=e.tournamentList.filter((e=>e.id!==t.id))},D=(e,t)=>{const i=e.tournamentList.findIndex((e=>e.id===t.id));-1!==i?e.tournamentList[i]=k(t):e.tournamentList=e.tournamentList.concat(k(t))},E={list(t){var i;if(!t.tournamentList)return t.tournamentList=null===(i=t.leaderboardsInit)||void 0===i?void 0:i.map((e=>k(e))),e("general-animation-loading",null);const{locale:n}=t;if(t.tournamentList.length){const i=e=>{t.setPage(c.item,{tournament:e}),t.newIdList=t.newIdList.filter((t=>t!==e.id))};return W(t,e("div",{class:"Leaderboards Row"},t.tournamentList.map((n=>e("div",{class:d("LeaderboardsItem",n.playerEnrolled?" GradientRounded Hollow":""),onClick:()=>i(n)},e("div",{class:"LeaderboardsItemContainer"},N(t,n),R(t,n)),e("div",{class:"LeaderboardLabels"},t.newIdList.includes(n.id)&&e("div",{class:"LeaderboardLabel"},e("span",null,"new"))))))))}return W(t,e("div",{class:"NoLeaderboards Row"},e("div",null,n.NoLeaderboards),e("div",null,n.NoLeaderboardsTip)))},item:t=>t.tournamentItem?W(t,[N(t,t.tournamentItem),(()=>{const{locale:i,tab:n}=t;return e("div",{class:"TabsContainer"},e("div",{class:"Tabs"},Object.keys(o).map((r=>e("div",{class:d({active:n===r}),onClick:()=>(e=>{switch(t.tab=e,e){case o.leaderboard:t.leaderboards=void 0,H(t.tournamentItem);break;case o.games:U(t.tournamentItem)}})(r)},i[r])))))})(),t.renders.tab[t.tab]()]):e("general-animation-loading",null)},N=(t,i)=>{const{locale:n}=t;return e("div",{class:"TitleContainer"},e("div",{class:"Title"},i.nameOrTitle),i.state!==p.Closed&&e("div",null,y({statedClasses:{isHollow:i.playerEnrolled,isPending:t.isActionJoinPending},onClick:e=>{e.stopPropagation(),(e=>{e.playerEnrolled?t.openDialog(u.unjoin,e):(t.actionJoin(e),t.tournamentItem=e)})(i)},innerHTML:i.playerEnrolled?n.Unjoin:n.Join})))},W=(t,i)=>{const{dialog:{isOpen:n}}=t,r=F({right:e("span",{onClick:()=>t.closeDialog()},g)});return e("div",{class:`Wrapper ${t.device}`},e("div",{class:d("WrapperContent",{faded:n})},(()=>{const{left:i,middle:n}=(()=>{const{page:i,locale:n}=t;switch(i){case c.list:return{left:e("span",{onClick:()=>t.openDialog(u.tip)},m),middle:n.Leaderboards};case c.item:return{left:e("span",{onClick:()=>t.setPage(c.list)},v),middle:""}}})();return F({left:i,middle:n,right:e("span",{onClick:()=>t.close.emit()},g)})})(),e("div",{class:"Root"},e("div",{class:"Main"},i))),e("div",{class:"WrapperUtil"},e("dialog",{open:n},e("div",{class:"GradientRounded Hollow"},r,n&&(()=>{switch(t.dialog.type){case u.unjoin:return t.renders.dialog.unjoin();case u.tip:return e("div",{class:"Tip"},t.locale.Tip);case u.gift:return t.renders.dialog.gift()}})()))))},G={info(t){var i,n;const{locale:r,tournamentItem:o,isShowInfo:s}=t;return e("div",{class:"InfoContainer"},R(t,o),e("section",{class:"ShowInfo",onClick:()=>t.isShowInfo=!t.isShowInfo},e("p",null,e("span",null,s?b:f),e("span",null,r.LeaderboardDetails))),s&&e("section",{class:"Info"},e("div",null,o.description),e("div",{class:"Criterias"},e("div",null,r.ScoreCriteria,": ",e("span",null,o.scoreCriteria)),e("div",null,r.MinimumBetCriteria,": ",e("span",null,o.minBetCount))),e("div",{class:"TC"},e("a",{href:o.termsUrl,target:"_blank"},r.TC))),h(t.tournamentItem)&&(null===(i=t.leaderboards)||void 0===i?void 0:i.find((e=>e.isMe)))&&e("section",{class:"ResultPrize",innerHTML:a(r.TipPrize,_(null===(n=t.leaderboards)||void 0===n?void 0:n.find((e=>e.isMe))))}),e("section",{class:"Prizes"},e("div",{class:"PrizesHeader"},x,e("span",{class:"PrizesText"},r.Prizes)),o.prizes.map(((t,i)=>e("div",{class:"Prize"},i+1," ",r.Place,": ",e("span",{class:"PrizeText"},t.name))))))},leaderboard:t=>t.leaderboards?t.leaderboards.length?e("table",{class:"Leaderboards"},t.leaderboards.map((t=>e("tr",{class:d({isMe:t.isMe})},e("td",{class:"LeaderboardRank"},e("span",null,t.rank)),e("td",{class:"LeaderboardName"},t.shortName),e("td",{class:"LeaderboardScore"},t.score),e("td",{class:"LeaderboardPrize"},t.prizeName))))):"":e("general-animation-loading",null),games(t){var i;return e("div",{class:"Games"},null===(i=t.tournamentItem.games)||void 0===i?void 0:i.map((t=>e("div",null,e("img",{src:t.defaultThumbnail,alt:""})))))}},_=e=>({prize:e.prizeName,place:e.rank}),q={dialog:T,page:E,tab:G};function A(){}function J(e){return e()}function Y(){return Object.create(null)}function Q(e){e.forEach(J)}function K(e){return"function"==typeof e}function V(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function X(e,t,i){e.insertBefore(t,i||null)}function Z(e){e.parentNode&&e.parentNode.removeChild(e)}function ee(e){return document.createElement(e)}let te;function ie(e){te=e}const ne=[],re=[];let oe=[];const se=[],ae=Promise.resolve();let le=!1;function de(e){oe.push(e)}const ce=new Set;let pe=0;function ue(){if(0!==pe)return;const e=te;do{try{for(;pe<ne.length;){const e=ne[pe];pe++,ie(e),he(e.$$)}}catch(e){throw ne.length=0,pe=0,e}for(ie(null),ne.length=0,pe=0;re.length;)re.pop()();for(let e=0;e<oe.length;e+=1){const t=oe[e];ce.has(t)||(ce.add(t),t())}oe.length=0}while(ne.length);for(;se.length;)se.pop()();le=!1,ce.clear(),ie(e)}function he(e){if(null!==e.fragment){e.update(),Q(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(de)}}const ge=new Set;function me(e,t,i,n,r,o,s=null,a=[-1]){const l=te;ie(e);const d=e.$$={fragment:null,ctx:[],props:o,update:A,not_equal:r,bound:Y(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:Y(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(d.root);let c=!1;if(d.ctx=i?i(e,t.props||{},((t,i,...n)=>{const o=n.length?n[0]:i;return d.ctx&&r(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),c&&function(e,t){-1===e.$$.dirty[0]&&(ne.push(e),le||(le=!0,ae.then(ue)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}(e,t)),i})):[],d.update(),c=!0,Q(d.before_update),d.fragment=!!n&&n(d.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);d.fragment&&d.fragment.l(e),e.forEach(Z)}else d.fragment&&d.fragment.c();t.intro&&function(e){e&&e.i&&(ge.delete(e),e.i(void 0))}(e.$$.fragment),function(e,t,i){const{fragment:n,after_update:r}=e.$$;n&&n.m(t,i),de((()=>{const t=e.$$.on_mount.map(J).filter(K);e.$$.on_destroy?e.$$.on_destroy.push(...t):Q(t),e.$$.on_mount=[]})),r.forEach(de)}(e,t.target,t.anchor),ue()}ie(l)}let fe;function be(e,t,i,n){const r=i[e]?.type;if(t="Boolean"===r&&"boolean"!=typeof t?null!=t:t,!n||!i[e])return t;if("toAttribute"===n)switch(r){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(r){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}"function"==typeof HTMLElement&&(fe=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(e,t,i){super(),this.$$ctor=e,this.$$s=t,i&&this.attachShadow({mode:"open"})}addEventListener(e,t,i){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}super.addEventListener(e,t,i)}removeEventListener(e,t,i){if(super.removeEventListener(e,t,i),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(e){return()=>{let t;return{c:function(){t=ee("slot"),"default"!==e&&function(e,t,i){null==i?e.removeAttribute(t):e.getAttribute(t)!==i&&e.setAttribute(t,i)}(t,"name",e)},m:function(e,i){X(e,t,i)},d:function(e){e&&Z(t)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},i=function(e){const t={};return e.childNodes.forEach((e=>{t[e.slot||"default"]=!0})),t}(this);for(const n of this.$$s)n in i&&(t[n]=[e(n)]);for(const e of this.attributes){const t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=be(t,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:{...this.$$d,$$slots:t,$$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 t=be(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const e in this.$$l)for(const t of this.$$l[e]){const i=this.$$c.$on(e,t);this.$$l_u.set(t,i)}this.$$l={}}}attributeChangedCallback(e,t,i){this.$$r||(e=this.$$g_p(e),this.$$d[e]=be(e,i,this.$$p_d,"toProp"),this.$$c?.$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((t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e))||e}});class ve{$$=void 0;$$set=void 0;$destroy(){(function(e,t){const i=e.$$;null!==i.fragment&&(function(e){const t=[],i=[];oe.forEach((n=>-1===e.indexOf(n)?t.push(n):i.push(n))),i.forEach((e=>e())),oe=t}(i.after_update),Q(i.on_destroy),i.fragment&&i.fragment.d(t),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=A}$on(e,t){if(!K(t))return A;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(t),()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function xe(e){!function(e,t,i){const n=function(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}(e);if(!n.getElementById(t)){const e=ee("style");e.id=t,e.textContent=i,function(e,t){!function(e,t){e.appendChild(t)}(e.head||e,t)}(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 we(e){let t;return{c(){t=ee("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,n){X(i,t,n),e[4](t)},p:A,i:A,o:A,d(i){i&&Z(t),e[4](null)}}}function ye(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:o=""}=t,{mbsource:s}=t;return function(e){(function(){if(!te)throw new Error("Function called outside component initialization");return te})().$$.on_mount.push(e)}((()=>()=>{})),e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,o=e.clientstylingurl),"mbsource"in e&&i(3,s=e.mbsource)},e.$$.update=()=>{3&e.$$.dirty&&r&&n&&function(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}(n,r),5&e.$$.dirty&&o&&n&&function(e,t){const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}(n,o),9&e.$$.dirty&&s&&n&&function(e,t){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,(t=>{i.innerHTML=t,e&&e.appendChild(i)}))}}(n,`${s}.Style`)},[n,r,o,s,function(e){re[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class Le extends ve{constructor(e){super(),me(this,e,ye,we,V,{clientstyling:1,clientstylingurl:2,mbsource:3},xe)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),ue()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),ue()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),ue()}}var Ce;!function(e,t,i){let n=class extends fe{constructor(){super(e,i,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((e=>(t[e].attribute||e).toLowerCase()))}};Object.keys(t).forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(i){i=be(e,i,t),this.$$d[e]=i,this.$$c?.$set({[e]:i})}})})),[].forEach((e=>{Object.defineProperty(n.prototype,e,{get(){return this.$$c?.[e]}})})),e.element=n}(Le,{clientstyling:{},clientstylingurl:{},mbsource:{}},[]),customElements.define=(Ce=customElements.define,function(...e){try{return Ce.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}}),!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",Le.element);const Te=class{handleEvent(e){var t,i;const n=e.data,{type:o}=n,s=r(n,["type"]);var a;null===(i=null===(a=this,t={UpdateLeaderboardsPlayerRes:e=>{const t=(e=>{let t;return e.map((e=>{var i;const n=null===(i=e.leaderBoard)||void 0===i?void 0:i.rank;n&&(t?n<t.leaderBoard.rank&&(t=e):t=e)})),t?`${t.leaderBoard.rank} / ${t.endRank}`:"-"})(e.data.items);window.postMessage({type:"UpdateLeaderboardState",rank:t})},UpdateLeaderboardStateReq:()=>{window.postMessage({type:"UpdateLeaderboardState",labels:["win","new"]})},UpdateTournamentsItemRes:e=>{const t=k(e.data.item);a.tournamentItem=t,B(a,t)},UpdateLeaderboardsRes:e=>{a.leaderboards=j(e.data)},JoinTournamentRes:e=>S(a,e),UnjoinTournamentRes:e=>S(a,e),LeaderboardLiveEvent:e=>{((e,t)=>{const{messageType:i,item:n}=t;switch(i){case"TournamentUpdate":case"PlayerLeaderBoardUpdate":D(e,n);break;case"TournamentRemove":I(e,n);break;case"LeaderBoardUpdate":e.leaderboards=j(t)}})(a,e)}})||void 0===t?void 0:t[o])||void 0===i||i.call(null,s)}checkNewIdList(){this.newIdList.length>0?this.addLabel("new"):this.removeLabel("new")}syncBarState(e,t){if(t){const r=(i=t,n=(e,t)=>e.id===t.id,e.filter((e=>!i.some((t=>n(e,t))))));this.newIdList=[...this.newIdList,...r.map((e=>e.id))]}else this.checkNewIdList(),this.gifts.length&&this.addLabel("win");var i,n}showPropWatcher(e,t){0==t&&1==e&&this.checkGift()}addLabel(e){this.labels.includes(e)||this.labels.push(e),M(this.labels)}removeLabel(e){this.labels=this.labels.filter((t=>t!=e)),M(this.labels)}setTimeInterval(){this.timeHolder=setInterval((()=>{this.time=this.tournamentList||this.tournamentItem?this.time+1:0}),1e3)}checkGift(){this.gifts.length?this.openDialog(u.gift,this.gifts[0],(()=>{this.dialog.type===u.gift&&(this.gifts=this.gifts.slice(1),setTimeout((()=>{this.checkGift()}),300))})):this.removeLabel("win")}connectedCallback(){this.setTimeInterval(),window.postMessage({type:"UpdateLeaderboardsPlayerReq"})}disconnectedCallback(){clearInterval(this.timeHolder)}actionJoin(e){if(!this.isActionJoinPending){this.isActionJoinPending=!0;try{e.playerEnrolled?(e=>{window.postMessage({type:"UnjoinTournamentReq",id:e.id})})(e):(e=>{var t,i;window.postMessage({type:"JoinTournamentReq",bonusCode:null===(i=null===(t=e.wallets)||void 0===t?void 0:t[0])||void 0===i?void 0:i.code})})(e)}catch(e){return void console.log("error",e)}}}setPage(e,t){e==c.item&&(this.tournamentItem=t.tournament,this.tournamentItem||U(t.tournament),h(this.tournamentItem)&&H(this.tournamentItem)),this.tab=o.info,this.page=e}render(){return e(t,{key:"f9e9ea96e0fddd20d3f12141c7cf66588ab94ccd"},e("general-styling-wrapper",{key:"aea948ea6c8f8cc5e4aaea5812873d3fe7045568",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:l,translationUrl:this.translationUrl}),this.renders.page[this.page]())}openDialog(e,t,i){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,onClose:i,type:e,data:t})}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){i(this,e),this.close=n(this,"close",7),this.gifts=[],this.labels=[],this.language="en",this.show=!1,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.device="Mobile",this.leaderboardsInit=void 0,this.tab=o.info,this.locale=l,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isActionJoinPending=!1,this.isDialogOpen=!1,this.isShowInfo=!1,this.page=c.list,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0,onClose:void 0},this.time=0,this.newIdList=[],this.renders={},Object.keys(q).forEach((e=>{this.renders[e]={},Object.keys(q[e]).forEach((t=>{this.renders[e][t]=q[e][t].bind(this,this)}))}))}static get watchers(){return{newIdList:["checkNewIdList"],tournamentList:["syncBarState"],show:["showPropWatcher"]}}};Te.style='.Wrapper{height:100%;position:relative;color:var(--emw--color-typography, #FFFFFF);display:flex;background-color:var(--emw--color-background, hsl(254, 44%, 15%));flex-direction:column;border-radius:24px;overflow-y:auto}.Wrapper.Mobile{border-radius:16px}.WrapperContent{padding-bottom:20px;transition:0.5s filter}.WrapperContent.faded{filter:brightness(53.3333333333%)}.Wrapper.Mobile .WrapperBar{padding:20px 8px 8px;margin-bottom:8px}.WrapperBar{display:flex;width:100%;padding:32px 20px 20px;margin-bottom:20px}.WrapperBarLeft,.WrapperBarRight{cursor:pointer;z-index:1}.WrapperBarMiddle{flex-grow:1;text-align:center;font-size:var(--emw--font-size-medium, 16px);line-height:16px;font-weight:500;color:var(--emw--color-secondary, rgb(187, 185, 195))}:host{display:block;font-size:var(--emw--font-size-x-small, 12px);font-family:Inter}.Row{margin:24px 0;padding:0 20px}.Row:first-child{margin:0}.LeaderboardsItem{position:relative;margin:10px 0;border:1px solid rgb(64, 57, 86);border-radius:16px}.LeaderboardsItem.Hollow{border-color:transparent}.LeaderboardsItem:first-child{margin-top:0}.LeaderboardsItemContainer{padding-top:16px}.Info{margin:24px 0;padding:0 20px}.TimeContainer{margin:24px 0;padding:0 20px}.TimeContainer .Time{display:flex;justify-content:space-between;font-size:var(--emw--font-size-x-small, 12px);align-items:center;color:var(--emw--color-secondary, rgb(187, 185, 195))}.TimeContainer .Time button{font-size:var(--emw--font-size-x-small, 12px);height:20px;padding:0}.TimeContainer .Time button::before{inset:inherit;border:0}.ShowInfo{margin:24px 0;padding:0 20px;cursor:pointer;color:rgb(102, 97, 120)}.ShowInfo p{display:flex;gap:4px}.TitleContainer{display:flex;justify-content:space-between;margin:24px 0;padding:0 20px;margin-top:0;gap:10px;font-family:Montserrat}.TitleContainer .GradientRoundedButton{width:120px}.TabsContainer{margin:24px 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, 12px);margin-bottom:-1px}.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-medium, 16px);font-weight:700;line-height:19.5px;text-align:left;word-break:break-word}.TC{margin-top:12px}.TC a{color:rgb(89, 209, 255)}.Criterias{margin:12px 0}.Criterias span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.ResultPrize{margin:24px 0;padding:0 20px}.ResultPrize span{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}.Prizes{margin:24px 0;padding:0 20px}.Prizes .PrizesText{margin-left:3px;font-weight:600}.Prizes .PrizesHeader{align-items:center;display:flex}.Prizes .PrizesHeader img{width:12px}.Prizes .Prize{margin:8px 0}.Prizes .Prize .PrizeText{color:var(--emw--color-primary, rgb(255, 214, 47));font-weight:400}*{box-sizing:border-box}.Leaderboards{width:100%;text-align:center;border-collapse:collapse}.Leaderboards td{opacity:0.6;padding:20px 5px}.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)}.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))}.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)}.Games{margin:24px 0;padding:0 20px;display:flex;flex-wrap:wrap;justify-content:space-evenly;gap:4px 7.25px}.Games img{width:60px}dialog{position:absolute;top:30px;width:100%;height:100%;background:transparent;border:0;padding:0;color:var(--emw--color-typography, #FFFFFF)}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}.DialogContentUnjoin{padding:32px;padding-top:10px;display:flex;gap:10px;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:10px;color:var(--emw--color-secondary, rgb(187, 185, 195));font-size:var(--emw--font-size-small, 14px)}.PageConfirmContainer{text-align:center;width:80%;margin:0 auto}.PageConfirm{padding:40px 32px;display:flex;flex-direction:column;gap:20px}.PageConfirm .Title{font-size:var(--emw--font-size-large, 20px);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}.PageConfirmButtonsGroup{width:150px;margin:0 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-small, 14px);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}';export{Te as C}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,g as r}from"./p-
|
|
1
|
+
import{r as e,h as t,g as r}from"./p-7dd52ef4.js";export{C as casino_engagement_suite_tournament}from"./p-36511cf5.js";const s=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 r(this)}};s.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 i=class{constructor(t){e(this,t),this.stylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.el.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.el.prepend(t)}),1)})).catch((e=>{console.log("error ",e)}))},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}async componentWillLoad(){const e=[];if(this.translationUrl){const s=(t=this.translationUrl,r=this.targetTranslations,new Promise((e=>{fetch(t).then((e=>e.json())).then((t=>{Object.keys(t).forEach((e=>{r[e]=r[e]?r[e]:{};for(let s in t[e])r[e][s]=t[e][s]})),e(!0)}))})));e.push(s)}var t,r;return await Promise.all(e)}render(){return t("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},t("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return r(this)}};i.style=":host{display:block}";export{s as casino_engagement_suite_progress_bar,i as general_styling_wrapper}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",a="undefined"!=typeof window?window:{},f=a.document||{head:{}},d={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],$=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.l?g(w):d.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(y),b($),(m=y.length>0)&&d.raf(w)},g=e=>h().then(e),k=v($,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>M,ok:()=>C,unwrap:()=>T,unwrapErr:()=>A});var C=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function M(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>C(e))):C(n)}if(e.isErr)return E(e.value);throw"should never get here"}var x,R,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},N=(e,t,...n)=>{let l=null,o=null,s=null,i=!1,r=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((i="function"!=typeof e&&!j(l))&&(l+=""),i&&r?c[c.length-1].i+=l:c.push(i?F(null,l):l),r=i)};if(u(n),t){t.key&&(o=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=F(e,null);return a.u=t,c.length>0&&(a.h=c),a.p=o,a.m=s,a},F=(e,t)=>({l:0,$:e,i:t,v:null,h:null,u:null,p:null,m:null}),H={},L=e=>n(e).$hostElement$,U=(e,t,n)=>{const l=L(e);return{emit:e=>W(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},W=(e,t,n)=>{const l=d.ce(t,n);return e.dispatchEvent(l),l},D=new WeakMap,q=e=>"sc-"+e.k,G=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=_(n),s=_(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(a?e.removeAttributeNS(u,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&(l=!0===l?"":l,a?e.setAttributeNS(u,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(B,""),n&&d.rel(e,t,n,o),l&&d.ael(e,t,l,o)}}},V=/\s/,_=e=>e?e.split(V):[],z="Capture",B=RegExp(z+"$"),I=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of J(Object.keys(o)))e in s||G(l,e,o[e],void 0,n,t.l);for(const e of J(Object.keys(s)))G(l,e,o[e],s[e],n,t.l)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=!1,X=!1,Y=!1,Z=(e,t,n,l)=>{var o;const s=t.h[n];let i,r,c,u=0;if(K||(X=!0,"slot"===s.$&&(x&&l.classList.add(x+"-s"),s.l|=s.h?2:1)),null!==s.i)i=s.v=f.createTextNode(s.i);else if(1&s.l)i=s.v=f.createTextNode("");else if(i=s.v=f.createElement(!K&&2&s.l?"slot-fb":s.$),I(null,s,Y),null!=x&&i["s-si"]!==x&&i.classList.add(i["s-si"]=x),s.h)for(u=0;u<s.h.length;++u)r=Z(e,s,u,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.l&&(i["s-sr"]=!0,i["s-cr"]=R,i["s-sn"]=s.m||"",i["s-rf"]=null==(o=s.u)?void 0:o.ref,c=e&&e.h&&e.h[n],c&&c.$===s.$&&e.v&&ee(e.v,!1)),i},ee=(e,t)=>{d.l|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const l=n[e];l["s-hn"]!==P&&l["s-ol"]&&(de(se(l),l,oe(l)),l["s-ol"].remove(),l["s-ol"]=void 0,l["s-sh"]=void 0,X=!0),t&&ee(l,t)}d.l&=-2},te=(e,t,n,l,o,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);o<=s;++o)l[o]&&(i=Z(null,n,o,e),i&&(l[o].v=i,de(r,i,oe(t))))},ne=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;fe(t),e&&(Q=!0,e["s-ol"]?e["s-ol"].remove():ee(e,!0),e.remove())}}},le=(e,t,n=!1)=>e.$===t.$&&("slot"===e.$?e.m===t.m:!!n||e.p===t.p),oe=e=>e&&e["s-ol"]||e,se=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ie=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.$||K)&&I(e,t,Y),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=l.length-1,m=l[0],y=l[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(le(d,m,o))ie(d,m,o),d=t[++r],m=l[++c];else if(le(h,y,o))ie(h,y,o),h=t[--f],y=l[--p];else if(le(d,y,o))"slot"!==d.$&&"slot"!==y.$||ee(d.v.parentNode,!1),ie(d,y,o),de(e,d.v,h.v.nextSibling),d=t[++r],y=l[--p];else if(le(h,m,o))"slot"!==d.$&&"slot"!==y.$||ee(h.v.parentNode,!1),ie(h,m,o),de(e,h.v,d.v),h=t[--f],m=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.$!==m.$?s=Z(t&&t[c],n,u,e):(ie(i,m,o),t[u]=void 0,s=i.v),m=l[++c]):(s=Z(t&&t[c],n,c,e),m=l[++c]),s&&de(se(d.v),s,oe(d.v))}r>f?te(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&ne(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),te(l,null,t,s,0,s.length-1)):null!==o&&ne(o,0,o.length-1)):(r=l["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(l.data=i)},re=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const l of t)if(l!==e)if(l["s-hn"]!==e["s-hn"]||""!==n){if(1===l.nodeType&&(n===l.getAttribute("slot")||n===l["s-sn"])||3===l.nodeType&&n===l["s-sn"]){e.hidden=!0;break}}else if(1===l.nodeType||3===l.nodeType&&""!==l.textContent.trim()){e.hidden=!0;break}}re(e)}},ce=[],ue=e=>{let t,n,l;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(l=n.length-1;l>=0;l--)if(t=n[l],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(ae(t,e)){let n=ce.find((e=>e.S===t));Q=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=o["s-hn"],n.j=o):(t["s-sh"]=o["s-hn"],ce.push({j:o,S:t})),t["s-sr"]&&ce.map((e=>{ae(e.S,t["s-sn"])&&(n=ce.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ce.some((e=>e.S===t))||ce.push({S:t})}1===o.nodeType&&ue(o)}},ae=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,fe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(fe)},de=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),he=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},pe=(e,t)=>{if(e.l|=16,!(4&e.l))return he(e,e.C),k((()=>me(e,t)));e.l|=512},me=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.M&&(e.M.map((([e,t])=>ke(n,e,t))),e.M=void 0),l=ke(n,"componentWillLoad")),ye(l,(()=>ve(e,n,t)))},ye=(e,t)=>$e(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),$e=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ve=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.R,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=q(t),o=r.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,i=D.get(e=e.head||e);if(i||D.set(e,i=new Set),!i.has(l)){{s=f.createElement("style"),s.innerHTML=o;const t=null!=(n=d.P)?n:O(f);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);be(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>we(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},be=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{var l,o,s,i;const r=e.$hostElement$,c=e.R,u=e.T||F(null,null),a=(e=>e&&e.$===H)(t)?t:N(null,null,t);if(P=r.tagName,c.A&&(a.u=a.u||{},c.A.map((([e,t])=>a.u[t]=r[e]))),n&&a.u)for(const e of Object.keys(a.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(a.u[e]=r[e]);if(a.$=null,a.l|=4,e.T=a,a.v=u.v=r.shadowRoot||r,x=r["s-sc"],K=!!(1&c.l),R=r["s-cr"],Q=!1,ie(u,a,n),d.l|=1,X){ue(a.v);for(const e of ce){const t=e.S;if(!t["s-ol"]){const e=f.createTextNode("");e["s-nr"]=t,de(t.parentNode,t["s-ol"]=e,t)}}for(const e of ce){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(l=t["s-ol"])?void 0:l.previousSibling;for(;s;){let l=null!=(o=s["s-nr"])?o:null;if(l&&l["s-sn"]===t["s-sn"]&&e===l.parentNode){for(l=l.nextSibling;l===t||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){n=l;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),de(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Q&&re(a.v),d.l&=-2,ce.length=0,R=void 0})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},we=e=>{const t=e.$hostElement$,n=e.C;ke(e.t,"componentDidRender"),64&e.l||(e.l|=64,Se(t),e.N(t),n||ge()),e.O&&(e.O(),e.O=void 0),512&e.l&&g((()=>pe(e,!1))),e.l&=-517},ge=()=>{Se(f.documentElement),g((()=>W(a,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},ke=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Se=e=>e.classList.add("hydrated"),je=(e,t,l)=>{var o,i;const r=e.prototype;if(t.F||t.H||e.watchers){e.watchers&&!t.H&&(t.H=e.watchers);const c=Object.entries(null!=(o=t.F)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).L.get(t))(0,e)},set(l){((e,t,l,o)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${o.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.L.get(t),u=i.l,a=i.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.F[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(i.L.set(t,l),a)){if(o.H&&128&u){const e=o.H[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,r)}}))}2==(18&u)&&pe(i,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){d.jmp((()=>{var i;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),r=null==l?void 0:l.l;if(r&&!(8&r)&&128&r&&s!==o){const n=l.t,r=null==(i=t.H)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.H)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.A)||o.push([e,s])),s}))]))}}return e},Oe=e=>{ke(e,"connectedCallback")},Ce=e=>{ke(e,"disconnectedCallback")},Ee=(e,l={})=>{var o;const u=[],h=l.exclude||[],m=a.customElements,y=f.head,$=y.querySelector("meta[charset]"),v=f.createElement("style"),b=[];let w,g=!0;Object.assign(d,l),d.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let k=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],k:l[1],F:l[2],U:l[3]};4&c.l&&(k=!0),c.F=l[2],c.U=l[3],c.A=[],c.H=null!=(o=l[4])?o:{};const a=c.k,y=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,R:n,L:new Map};l.W=new Promise((e=>l.N=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Me(this,e,c.U)),w&&(clearTimeout(w),w=null),g?b.push(this):d.jmp((()=>(e=>{if(!(1&d.l)){const t=n(e),l=t.R,o=()=>{};if(1&t.l)Me(e,t,l.U),(null==t?void 0:t.t)?Oe(t.t):(null==t?void 0:t.W)&&t.W.then((()=>Oe(t.t)));else{t.l|=1,12&l.l&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,de(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){he(t,t.C=n);break}}l.F&&Object.entries(l.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.D){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.D;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.k}#${t.q}" was not found`);l.isProxied||(n.H=l.watchers,je(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o(),Oe(t.t)}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=q(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.C,c=()=>pe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.l)){const e=n(this);e.G&&(e.G.map((e=>e())),e.G=void 0),(null==e?void 0:e.t)?Ce(e.t):(null==e?void 0:e.W)&&e.W.then((()=>Ce(e.t)))}})()))}componentOnReady(){return n(this).W}};c.D=e[0],h.includes(a)||m.get(a)||(u.push(a),m.define(a,je(y,c,1)))}))})),u.length>0&&(k&&(v.textContent+=c),v.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=d.P)?o:O(f);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,$?$.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(ge,30)))},Me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=Re(e,n),i=xe(t,o),r=Pe(n);d.ael(s,l,i,r),(t.G=t.G||[]).push((()=>d.rel(s,l,i,r)))}))},xe=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.M=e.M||[]).push([t,n])}catch(e){s(e)}},Re=(e,t)=>8&t?a:e,Pe=e=>({passive:!!(1&e),capture:!!(2&e)}),Te=e=>d.P=e;export{H,Ee as b,U as c,L as g,N as h,h as p,l as r,Te as s}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-
|
|
5
|
+
const index = require('./index-9b5a5304.js');
|
|
6
|
+
const casinoEngagementSuiteTournament = require('./casino-engagement-suite-tournament-dea6117d.js');
|
|
7
7
|
|
|
8
8
|
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)}";
|
|
9
9
|
const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
|
|
@@ -11,31 +11,6 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
|
|
|
11
11
|
const CasinoEngagementSuiteProgressBar = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
/**
|
|
15
|
-
* Value for the widget
|
|
16
|
-
*/
|
|
17
|
-
this.value = 0;
|
|
18
|
-
/**
|
|
19
|
-
* Shows disabled styles
|
|
20
|
-
*/
|
|
21
|
-
this.disabled = false;
|
|
22
|
-
/**
|
|
23
|
-
* Hide percent value
|
|
24
|
-
*/
|
|
25
|
-
this.hidePercent = false;
|
|
26
|
-
/**
|
|
27
|
-
* Constantly animates
|
|
28
|
-
*/
|
|
29
|
-
this.indeterminate = false;
|
|
30
|
-
/**
|
|
31
|
-
* Client custom styling via string
|
|
32
|
-
*/
|
|
33
|
-
this.clientStyling = '';
|
|
34
|
-
/**
|
|
35
|
-
* Client custom styling via url
|
|
36
|
-
*/
|
|
37
|
-
this.clientStylingUrl = '';
|
|
38
|
-
this.limitStylingAppends = false;
|
|
39
14
|
this.setClientStyling = () => {
|
|
40
15
|
let sheet = document.createElement('style');
|
|
41
16
|
sheet.innerHTML = this.clientStyling;
|
|
@@ -54,6 +29,13 @@ const CasinoEngagementSuiteProgressBar = class {
|
|
|
54
29
|
console.log('Error ', err);
|
|
55
30
|
});
|
|
56
31
|
};
|
|
32
|
+
this.value = 0;
|
|
33
|
+
this.disabled = false;
|
|
34
|
+
this.hidePercent = false;
|
|
35
|
+
this.indeterminate = false;
|
|
36
|
+
this.clientStyling = '';
|
|
37
|
+
this.clientStylingUrl = '';
|
|
38
|
+
this.limitStylingAppends = false;
|
|
57
39
|
}
|
|
58
40
|
componentDidRender() {
|
|
59
41
|
if (!this.limitStylingAppends && this.host) {
|
|
@@ -109,18 +91,6 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
109
91
|
const GeneralStylingWrapper = class {
|
|
110
92
|
constructor(hostRef) {
|
|
111
93
|
index.registerInstance(this, hostRef);
|
|
112
|
-
/**
|
|
113
|
-
* Client custom styling via inline styles
|
|
114
|
-
*/
|
|
115
|
-
this.clientStyling = '';
|
|
116
|
-
/**
|
|
117
|
-
* Client custom styling via url
|
|
118
|
-
*/
|
|
119
|
-
this.clientStylingUrl = '';
|
|
120
|
-
/**
|
|
121
|
-
* Translation via url
|
|
122
|
-
*/
|
|
123
|
-
this.translationUrl = '';
|
|
124
94
|
this.stylingAppends = false;
|
|
125
95
|
this.setClientStyling = () => {
|
|
126
96
|
let sheet = document.createElement('style');
|
|
@@ -142,6 +112,10 @@ const GeneralStylingWrapper = class {
|
|
|
142
112
|
console.log('error ', err);
|
|
143
113
|
});
|
|
144
114
|
};
|
|
115
|
+
this.clientStyling = '';
|
|
116
|
+
this.clientStylingUrl = '';
|
|
117
|
+
this.translationUrl = '';
|
|
118
|
+
this.targetTranslations = undefined;
|
|
145
119
|
}
|
|
146
120
|
componentDidRender() {
|
|
147
121
|
// start custom styling area
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-9b5a5304.js');
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation.
|
|
7
7
|
|
|
8
8
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -27,12 +27,7 @@ function __rest(s, e) {
|
|
|
27
27
|
t[p[i]] = s[p[i]];
|
|
28
28
|
}
|
|
29
29
|
return t;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
33
|
-
var e = new Error(message);
|
|
34
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
35
|
-
};
|
|
30
|
+
}
|
|
36
31
|
|
|
37
32
|
var Tab;
|
|
38
33
|
(function (Tab) {
|
|
@@ -677,7 +672,8 @@ function U(t, e, n) {
|
|
|
677
672
|
}
|
|
678
673
|
}
|
|
679
674
|
function I(t) {
|
|
680
|
-
if (!t)
|
|
675
|
+
if (!t)
|
|
676
|
+
return document;
|
|
681
677
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
682
678
|
return e && /** @type {ShadowRoot} */
|
|
683
679
|
e.host ? (
|
|
@@ -721,7 +717,8 @@ function _(t) {
|
|
|
721
717
|
p = t;
|
|
722
718
|
}
|
|
723
719
|
function J() {
|
|
724
|
-
if (!p)
|
|
720
|
+
if (!p)
|
|
721
|
+
throw new Error("Function called outside component initialization");
|
|
725
722
|
return p;
|
|
726
723
|
}
|
|
727
724
|
function V(t) {
|
|
@@ -752,7 +749,8 @@ function m() {
|
|
|
752
749
|
} catch (e) {
|
|
753
750
|
throw $.length = 0, f = 0, e;
|
|
754
751
|
}
|
|
755
|
-
for (_(null), $.length = 0, f = 0; w.length; )
|
|
752
|
+
for (_(null), $.length = 0, f = 0; w.length; )
|
|
753
|
+
w.pop()();
|
|
756
754
|
for (let e = 0; e < h.length; e += 1) {
|
|
757
755
|
const n = h[e];
|
|
758
756
|
b.has(n) || (b.add(n), n());
|
|
@@ -1293,30 +1291,15 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
1293
1291
|
constructor(hostRef) {
|
|
1294
1292
|
index.registerInstance(this, hostRef);
|
|
1295
1293
|
this.close = index.createEvent(this, "close", 7);
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
*/
|
|
1294
|
+
this.gifts = [];
|
|
1295
|
+
this.labels = [];
|
|
1299
1296
|
this.language = 'en';
|
|
1300
|
-
/**
|
|
1301
|
-
* if widget is showing
|
|
1302
|
-
*/
|
|
1303
1297
|
this.show = false;
|
|
1304
|
-
/**
|
|
1305
|
-
* Client custom styling via string
|
|
1306
|
-
*/
|
|
1307
1298
|
this.clientStyling = '';
|
|
1308
|
-
/**
|
|
1309
|
-
* Client custom styling via url
|
|
1310
|
-
*/
|
|
1311
1299
|
this.clientStylingUrl = '';
|
|
1312
|
-
/**
|
|
1313
|
-
* Translation via url
|
|
1314
|
-
*/
|
|
1315
1300
|
this.translationUrl = '';
|
|
1316
|
-
/**
|
|
1317
|
-
* User's device type
|
|
1318
|
-
*/
|
|
1319
1301
|
this.device = 'Mobile';
|
|
1302
|
+
this.leaderboardsInit = undefined;
|
|
1320
1303
|
this.tab = Tab.info;
|
|
1321
1304
|
this.locale = TRANSLATIONS;
|
|
1322
1305
|
this.tournamentItem = undefined;
|
|
@@ -1334,9 +1317,7 @@ const CasinoEngagementSuiteTournament = class {
|
|
|
1334
1317
|
onClose: undefined
|
|
1335
1318
|
};
|
|
1336
1319
|
this.time = 0;
|
|
1337
|
-
this.gifts = [];
|
|
1338
1320
|
this.newIdList = [];
|
|
1339
|
-
this.labels = [];
|
|
1340
1321
|
// bind all renders
|
|
1341
1322
|
this.renders = {};
|
|
1342
1323
|
Object.keys(renders).forEach((key) => {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9b5a5304.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-engagement-suite-tournament.cjs.js', document.baseURI).href));
|