@everymatrix/casino-engagement-suite-tournament 0.0.0
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 -0
- package/dist/casino-engagement-suite-tournament/index.esm.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-5e83c304.entry.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-9996e3fd.js +1 -0
- package/dist/casino-engagement-suite-tournament/p-d5ef82db.js +2 -0
- package/dist/casino-engagement-suite-tournament/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-engagement-suite-tournament-d16da103.js +562 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.entry.js +12 -0
- package/dist/cjs/casino-engagement-suite-tournament.cjs.js +25 -0
- package/dist/cjs/index-192fed5a.js +1346 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.css +374 -0
- package/dist/collection/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.js +511 -0
- package/dist/collection/components/casino-engagement-suite-tournament/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/shared/GradientRoundedButton.js +11 -0
- package/dist/collection/shared/icons.js +8 -0
- package/dist/collection/shared/renderBar.js +14 -0
- package/dist/collection/utils/api.apdater.js +35 -0
- package/dist/collection/utils/translations.js +28 -0
- package/dist/collection/utils/types.js +18 -0
- package/dist/collection/utils/util.date.js +38 -0
- package/dist/collection/utils/utils.js +18 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-engagement-suite-tournament-af4ed1fe.js +560 -0
- package/dist/esm/casino-engagement-suite-tournament.entry.js +4 -0
- package/dist/esm/casino-engagement-suite-tournament.js +20 -0
- package/dist/esm/index-c8be0c5b.js +1317 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +14 -0
- package/dist/stencil.config.js +17 -0
- 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 +2 -0
- 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 +2 -0
- package/dist/types/components/casino-engagement-suite-tournament/casino-engagement-suite-tournament.d.ts +127 -0
- package/dist/types/components/casino-engagement-suite-tournament/index.d.ts +1 -0
- package/dist/types/components.d.ts +95 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/shared/GradientRoundedButton.d.ts +5 -0
- package/dist/types/shared/icons.d.ts +7 -0
- package/dist/types/shared/renderBar.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/api.apdater.d.ts +3 -0
- package/dist/types/utils/translations.d.ts +42 -0
- package/dist/types/utils/types.d.ts +95 -0
- package/dist/types/utils/util.date.d.ts +6 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as n,b as t}from"./p-d5ef82db.js";export{s as setNonce}from"./p-d5ef82db.js";import{g as e}from"./p-e1255160.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((async n=>(await e(),t([["p-5e83c304",[[1,"casino-engagement-suite-tournament",{language:[1],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],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]},[[8,"message","handleEvent"]]]]]],n))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as CasinoEngagementSuiteTournament}from"./p-9996e3fd.js";import"./p-d5ef82db.js";import"@everymatrix/general-styling-wrapper";import"@everymatrix/casino-engagement-suite-progress-bar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{C as casino_engagement_suite_tournament}from"./p-9996e3fd.js";import"./p-d5ef82db.js";import"@everymatrix/general-styling-wrapper";import"@everymatrix/casino-engagement-suite-progress-bar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as n,r as t,c as e,H as i,F as s}from"./p-d5ef82db.js";import"@everymatrix/general-styling-wrapper";import"@everymatrix/casino-engagement-suite-progress-bar";function r(n,t){var e={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.indexOf(i)<0&&(e[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(n);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(e[i[s]]=n[i[s]])}return e}var o,a;"function"==typeof SuppressedError&&SuppressedError,function(n){n.Info="Info",n.Leaderboard="Leaderboard",n.Games="Games"}(o||(o={})),function(n){n.Starts="Starts",n.Ends="Ends"}(a||(a={}));const l=(n,t)=>(Object.keys(t).map((e=>{n=n.replace(`{${e}}`,t[e])})),n),d=Object.assign(Object.assign(Object.assign({Join:"Join",Unjoin:"Unjoin"},o),a),{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"},JoinDialog:{Tile:"Congratulations!",Description:"You have unlocked <span>{tournamentName}</span>! <br />Would you like to join?",ButtonYes:"Join",ButtonNo:"Not interested"},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."}),c=(...n)=>{let t=[];return n.map((n=>{switch(typeof n){case"string":t.push(n);break;case"object":Object.keys(n).map((e=>{n[e]&&t.push(e)}))}})),t.join(" ")};var h,p,u;!function(n){n.Confirm="Confirm",n.List="List",n.Item="Item"}(h||(h={})),function(n){n.Running="Running",n.Unstarted="Unstarted",n.Closed="Closed",n.Closing="Closing"}(p||(p={})),function(n){n.Unjoin="Unjoin",n.Tip="Tip"}(u||(u={}));const g=t=>{var{statedClasses:e,innerHTML:i}=t,s=r(t,["statedClasses","innerHTML"]);const{isHollow:o,isPending:a}=e;return n("button",Object.assign({class:c("GradientRoundedButton","GradientRounded",{Hollow:o||!1,Pending:a||!1})},s),n("span",null,i))},m=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/close.svg"}),f=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/help.svg"}),b=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-open.svg"}),v=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/eye-closed.svg"}),x=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/back.svg"}),y=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/reward.svg"}),w=n("img",{src:"https://static.everymatrix.com/gic/img/engagement-suite/cup-congras.svg"}),C=t=>{const{left:e,middle:i,right:s}=t,r={left:e,middle:i,right:s};return n("div",{class:"WrapperBar"},Object.keys(r).map((t=>{return n("div",{class:"WrapperBar"+(e=t,e.split("").map(((n,t)=>0===t?n.toUpperCase():n)).join(""))},r[t]||"");var e})))};function T(n){return n.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).replace(" at",",")}function k(n,t){return(100*((new Date).getTime()-n.getTime())/(t.getTime()-n.getTime())).toFixed(0)}const L=n=>{const t=["startTime","endTime","closeTime","exhibitionStartTime","exhibitionEndTime"],e={};return Object.keys(n).map((i=>{const s=n[i];e[i]="games"===i?s.items:t.includes(i)?new Date(s):s})),e};var j,P={};(function(n){var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(n,e,i)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[e]=i,l=(n,t)=>{for(var e in t||(t={}))r.call(t,e)&&a(n,e,t[e]);if(s)for(var e of s(t))o.call(t,e)&&a(n,e,t[e]);return n},d=(n,t)=>e(n,i(t)),c=(n,t,e)=>a(n,"symbol"!=typeof t?t+"":t,e);function h(){}function p(n){return n()}function u(){return Object.create(null)}function g(n){n.forEach(p)}function m(n){return"function"==typeof n}function f(n,t){return n!=n?t==t:n!==t||n&&"object"==typeof n||"function"==typeof n}function b(n,t,e){n.insertBefore(t,e||null)}function v(n){n.parentNode&&n.parentNode.removeChild(n)}function x(n){return document.createElement(n)}let y;function w(n){y=n}Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});const C=[],T=[];let k=[];const L=[],j=Promise.resolve();let P=!1;function O(n){k.push(n)}const F=new Set;let z=0;function $(){if(0!==z)return;const n=y;do{try{for(;z<C.length;){const n=C[z];z++,w(n),M(n.$$)}}catch(n){throw C.length=0,z=0,n}for(w(null),C.length=0,z=0;T.length;)T.pop()();for(let n=0;n<k.length;n+=1){const t=k[n];F.has(t)||(F.add(t),t())}k.length=0}while(C.length);for(;L.length;)L.pop()();P=!1,F.clear(),w(n)}function M(n){if(null!==n.fragment){n.update(),g(n.before_update);const t=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,t),n.after_update.forEach(O)}}const R=new Set;function I(n,t,e,i,s,r,o=null,a=[-1]){const l=y;w(n);const d=n.$$={fragment:null,ctx:[],props:r,update:h,not_equal:s,bound:u(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:u(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};o&&o(d.root);let c=!1;if(d.ctx=e?e(n,t.props||{},((t,e,...i)=>{const r=i.length?i[0]:e;return d.ctx&&s(d.ctx[t],d.ctx[t]=r)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](r),c&&function(n,t){-1===n.$$.dirty[0]&&(C.push(n),P||(P=!0,j.then($)),n.$$.dirty.fill(0)),n.$$.dirty[t/31|0]|=1<<t%31}(n,t)),e})):[],d.update(),c=!0,g(d.before_update),d.fragment=!!i&&i(d.ctx),t.target){if(t.hydrate){const n=function(n){return Array.from(n.childNodes)}(t.target);d.fragment&&d.fragment.l(n),n.forEach(v)}else d.fragment&&d.fragment.c();t.intro&&function(n){n&&n.i&&(R.delete(n),n.i(void 0))}(n.$$.fragment),function(n,t,e){const{fragment:i,after_update:s}=n.$$;i&&i.m(t,e),O((()=>{const t=n.$$.on_mount.map(p).filter(m);n.$$.on_destroy?n.$$.on_destroy.push(...t):g(t),n.$$.on_mount=[]})),s.forEach(O)}(n,t.target,t.anchor),$()}w(l)}let H;function D(n,t,e,i){var s;const r=null==(s=e[n])?void 0:s.type;if(t="Boolean"===r&&"boolean"!=typeof t?null!=t:t,!i||!e[n])return t;if("toAttribute"===i)switch(r){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;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&&(H=class extends HTMLElement{constructor(n,t,e){super(),c(this,"$$ctor"),c(this,"$$s"),c(this,"$$c"),c(this,"$$cn",!1),c(this,"$$d",{}),c(this,"$$r",!1),c(this,"$$p_d",{}),c(this,"$$l",{}),c(this,"$$l_u",new Map),this.$$ctor=n,this.$$s=t,e&&this.attachShadow({mode:"open"})}addEventListener(n,t,e){if(this.$$l[n]=this.$$l[n]||[],this.$$l[n].push(t),this.$$c){const e=this.$$c.$on(n,t);this.$$l_u.set(t,e)}super.addEventListener(n,t,e)}removeEventListener(n,t,e){if(super.removeEventListener(n,t,e),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}connectedCallback(){return n=this,t=function*(){if(this.$$cn=!0,!this.$$c){let n=function(n){return()=>{let t;return{c:function(){t=x("slot"),"default"!==n&&function(n,t,e){null==e?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e)}(t,"name",n)},m:function(n,e){b(n,t,e)},d:function(n){n&&v(t)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const t={},e=function(n){const t={};return n.childNodes.forEach((n=>{t[n.slot||"default"]=!0})),t}(this);for(const i of this.$$s)i in e&&(t[i]=[n(i)]);for(const n of this.attributes){const t=this.$$g_p(n.name);t in this.$$d||(this.$$d[t]=D(t,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&void 0!==this[n]&&(this.$$d[n]=this[n],delete this[n]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:d(l({},this.$$d),{$$slots:t,$$scope:{ctx:[]}})});const i=()=>{this.$$r=!0;for(const n in this.$$p_d)if(this.$$d[n]=this.$$c.$$.ctx[this.$$c.$$.props[n]],this.$$p_d[n].reflect){const t=D(n,this.$$d[n],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,t)}this.$$r=!1};this.$$c.$$.after_update.push(i),i();for(const n in this.$$l)for(const t of this.$$l[n]){const e=this.$$c.$on(n,t);this.$$l_u.set(t,e)}this.$$l={}}},new Promise(((e,i)=>{var s=n=>{try{o(t.next(n))}catch(n){i(n)}},r=n=>{try{o(t.throw(n))}catch(n){i(n)}},o=n=>n.done?e(n.value):Promise.resolve(n.value).then(s,r);o((t=t.apply(n,null)).next())}));var n,t}attributeChangedCallback(n,t,e){var i;this.$$r||(n=this.$$g_p(n),this.$$d[n]=D(n,e,this.$$p_d,"toProp"),null==(i=this.$$c)||i.$set({[n]:this.$$d[n]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(n){return Object.keys(this.$$p_d).find((t=>this.$$p_d[t].attribute===n||!this.$$p_d[t].attribute&&t.toLowerCase()===n))||n}});class S{constructor(){c(this,"$$"),c(this,"$$set")}$destroy(){(function(n,t){const e=n.$$;null!==e.fragment&&(function(n){const t=[],e=[];k.forEach((i=>-1===n.indexOf(i)?t.push(i):e.push(i))),e.forEach((n=>n())),k=t}(e.after_update),g(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[])})(this,1),this.$destroy=h}$on(n,t){if(!m(t))return h;const e=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return e.push(t),()=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}$set(n){this.$$set&&0!==Object.keys(n).length&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}function U(n){!function(n,t,e){const i=function(n){if(!n)return document;const t=n.getRootNode?n.getRootNode():n.ownerDocument;return t&&t.host?t:n.ownerDocument}(n);if(!i.getElementById(t)){const n=x("style");n.id=t,n.textContent=e,function(n,t){!function(n,t){n.appendChild(t)}(n.head||n,t)}(i,n)}}(n,"svelte-g6m3er",".LoaderContainer.svelte-g6m3er.svelte-g6m3er{display:flex;justify-content:center}.lds-ellipsis.svelte-g6m3er.svelte-g6m3er{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(1){left:8px;animation:svelte-g6m3er-lds-ellipsis1 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(2){left:8px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(3){left:32px;animation:svelte-g6m3er-lds-ellipsis2 0.6s infinite}.lds-ellipsis.svelte-g6m3er div.svelte-g6m3er:nth-child(4){left:56px;animation:svelte-g6m3er-lds-ellipsis3 0.6s infinite}@keyframes svelte-g6m3er-lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes svelte-g6m3er-lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes svelte-g6m3er-lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function B(n){let t;return{c(){t=x("div"),t.innerHTML='<section class="LoaderContainer svelte-g6m3er" part="LoaderContainer"><div class="lds-ellipsis svelte-g6m3er"><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div><div class="svelte-g6m3er"></div></div></section>'},m(e,i){b(e,t,i),n[3](t)},p:h,i:h,o:h,d(e){e&&v(t),n[3](null)}}}function E(n,t,e){let i,{clientstyling:s=""}=t,{clientstylingurl:r=""}=t;return n.$$set=n=>{"clientstyling"in n&&e(1,s=n.clientstyling),"clientstylingurl"in n&&e(2,r=n.clientstylingurl)},n.$$.update=()=>{3&n.$$.dirty&&s&&i&&(()=>{let n=document.createElement("style");n.innerHTML=s,i.appendChild(n)})(),5&n.$$.dirty&&r&&i&&(()=>{let n=new URL(r),t=document.createElement("style");fetch(n.href).then((n=>n.text())).then((n=>{t.innerHTML=n,setTimeout((()=>{i.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[i,s,r,function(n){T[n?"unshift":"push"]((()=>{i=n,e(0,i)}))}]}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class N extends S{constructor(n){super(),I(this,n,E,B,f,{clientstyling:1,clientstylingurl:2},U)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(n){this.$$set({clientstyling:n}),$()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),$()}}!function(n,t,e){let i=class extends H{constructor(){super(n,e,true),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map((n=>(t[n].attribute||n).toLowerCase()))}};Object.keys(t).forEach((n=>{Object.defineProperty(i.prototype,n,{get(){return this.$$c&&n in this.$$c?this.$$c[n]:this.$$d[n]},set(e){var i;e=D(n,e,t),this.$$d[n]=e,null==(i=this.$$c)||i.$set({[n]:e})}})})),[].forEach((n=>{Object.defineProperty(i.prototype,n,{get(){var t;return null==(t=this.$$c)?void 0:t[n]}})})),n.element=i}(N,{clientstyling:{},clientstylingurl:{}},[]),n.default=N})(P),"undefined"!=typeof window&&(customElements.define=(j=customElements.define,function(...n){try{return j.apply(this,n)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}),Promise.resolve().then((()=>P)).then((({default:n})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",n.element)})));const O=class{constructor(n){t(this,n),this.close=e(this,"close",7),this.onClickConfirmJoin=()=>{this.actionJoin(this.tournamentItem),this.nextPage=h.List},this.onClickConfirmUnjoin=()=>{this.close.emit()},this.onClickDialogUnjoin=()=>{this.actionJoin(this.dialog.data),this.closeDialog()},this.onClickDialogJoin=()=>{this.closeDialog()},this.onClickBarInLayout=()=>{this.close.emit()},this.onClickBarInLayoutDialog=()=>{this.closeDialog()},this.onClickShowInfo=()=>{this.isShowInfo=!this.isShowInfo},this.onClickBarTip=()=>{this.openDialog(u.Tip)},this.onClickBarBack=()=>{this.setPage(h.List)},this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.leaderboardsInit=void 0,this.tab=o.Info,this.locale=d,this.tournamentItem=void 0,this.tournamentList=void 0,this.leaderboards=[],this.isActionJoinPending=!1,this.isDialogOpen=!1,this.isShowInfo=!1,this.page=h.List,this.tournamentInDialog=void 0,this.dialog={isOpen:!1,type:void 0,data:void 0},this.time=0}setTimeInterval(){this.timeHolder=setInterval((()=>{this.tournamentList||this.tournamentItem?this.time+=1:this.time=0}),1e3)}updateTournamentListByItem(n){this.tournamentList=this.tournamentList.map((t=>t.id===n.id?L(n):t))}handleEvent(n){const t=n.data,{type:e}=t,i=r(t,["type"]);switch(e){case"ShowLeaderboardRewardModal":{const{tournament:n}=i;this.setPage(h.Confirm,{tournament:L(n)}),postMessage({type:"BarLeaderboardsClick"});break}case"UpdateTournamentsItemRes":{const n=L(i.data.item);this.tournamentItem=n,this.updateTournamentListByItem(n);break}case"UpdateLeaderboardsRes":this.leaderboards=(n=>{let{item:t,items:e}=n;return t?e.map((n=>t&&t.userID===n.userID?Object.assign(Object.assign({},n),{isMe:!0}):n)):e})(i.data);break;case"JoinTournamentRes":case"UnjoinTournamentRes":const{success:n}=i;if(n)switch(this.tournamentItem=Object.assign(Object.assign({},this.tournamentItem),{playerEnrolled:!this.tournamentItem.playerEnrolled}),this.page){case h.Item:break;case h.List:this.updateTournamentListByItem(this.tournamentItem)}this.nextPage&&(this.setPage(this.nextPage),this.nextPage=void 0),this.isActionJoinPending=!1}}get messageSender(){return{JoinTournamentReq:n=>{var t;return window.postMessage({type:"JoinTournamentReq",bonusCode:null===(t=n.wallets[0])||void 0===t?void 0:t.code})},UnjoinTournamentReq:n=>window.postMessage({type:"UnjoinTournamentReq",id:n.id}),UpdateTournamentsItemReq:n=>window.postMessage({type:"UpdateTournamentsItemReq",id:n.id}),UpdateLeaderboardsReq:n=>window.postMessage({type:"UpdateLeaderboardsReq",id:n.id})}}connectedCallback(){this.setTimeInterval()}disconnectedCallback(){clearInterval(this.timeHolder)}actionJoin(n){if(!this.isActionJoinPending){this.isActionJoinPending=!0;try{n.playerEnrolled?this.messageSender.UnjoinTournamentReq(n):this.messageSender.JoinTournamentReq(n)}catch(n){return void console.log("error",n)}}}isTournamentClosed(n){return[p.Closed,p.Closing].includes(n.state)}setPage(n,t){switch(n){case h.Confirm:case h.Item:this.tournamentItem=t.tournament,this.tournamentItem||this.messageSender.UpdateTournamentsItemReq(t.tournament),this.isTournamentClosed(this.tournamentItem)&&this.messageSender.UpdateLeaderboardsReq(this.tournamentItem)}this.tab=o.Info,this.page=n}renderPage(){switch(this.page){case h.Confirm:return this.renderPageConfirm();case h.Item:return this.renderPageLeaderboardItem();case h.List:return this.renderPageLeaderboardList()}}render(){return n(i,{key:"07ebdb6c71a03be84b430e18a80417323a9cd3cc"},n("general-styling-wrapper",{key:"ac0134009a6bfcdb4b79816138ea441a8415b953",clientStylingUrl:this.clientStylingUrl,clientStyling:this.clientStyling,targetTranslations:d,translationUrl:this.translationUrl}),this.renderPage())}onClickListItemChangePage(n){this.setPage(h.Item,{tournament:n})}onClickItemJoin(n,t){t.stopPropagation(),n.playerEnrolled?this.openDialog(u.Unjoin,n):(this.actionJoin(n),this.tournamentItem=n)}onClickTab(n){switch(this.tab=n,n){case o.Leaderboard:this.leaderboards=void 0,this.messageSender.UpdateLeaderboardsReq(this.tournamentItem);break;case o.Games:this.messageSender.UpdateTournamentsItemReq(this.tournamentItem)}}renderPageLeaderboardList(){var t;if(!this.tournamentList)return this.tournamentList=null===(t=this.leaderboardsInit)||void 0===t?void 0:t.map((n=>L(n))),n("general-animation-loading",null);const{locale:e}=this;return this.tournamentList.length?this.renderLeaderboardContainer(n(s,null,n("div",{class:"Leaderboards Row"},this.tournamentList.map((t=>n("div",{class:c("LeaderboardsItem",t.playerEnrolled?" GradientRounded Hollow":""),onClick:this.onClickListItemChangePage.bind(this,t)},n("div",{class:"LeaderboardsItemContainer"},this.renderTitleContainer(t),this.renderTimeBar(t)))))))):n("div",{class:"NoLeaderboards Row"},n("div",null,e.NoLeaderboards),n("div",null,e.NoLeaderboardsTip))}renderPageConfirm(){if(!this.tournamentItem)return n("general-animation-loading",null);const t=this.tournamentItem.nameOrTitle,{locale:e}=this;return n("div",{class:"PageConfirmContainer"},n("div",{class:"GradientRounded Hollow PageConfirm"},n("div",null,w),n("div",{class:"Title"},e.JoinDialog.Tile),n("div",{class:"Description",innerHTML:l(e.JoinDialog.Description,{tournamentName:t})}),n("div",{class:"PageConfirmButtonsGroup"},n(g,{statedClasses:{isPending:this.isActionJoinPending},onClick:this.onClickConfirmJoin,innerHTML:e.JoinDialog.ButtonYes}),n(g,{statedClasses:{isPending:this.isActionJoinPending,isHollow:!0},onClick:this.onClickConfirmUnjoin,innerHTML:e.JoinDialog.ButtonNo}))))}renderPageLeaderboardItem(){return this.tournamentItem?this.renderLeaderboardContainer(n(s,null,this.renderTitleContainer(this.tournamentItem),this.renderTabs(),this.renderTabbedContent())):n("general-animation-loading",null)}renderDialogContent(){switch(this.dialog.type){case u.Unjoin:return this.renderDialogContentUnjoin();case u.Tip:return n("div",{class:"Tip"},this.locale.Tip)}}renderDialogContentUnjoin(){const{locale:t}=this;return n("div",{class:"DialogContentUnjoin"},n("div",{class:"DialogContentUnjoinTitle"},t.UnjoinDialog.Title),n("div",{class:"DialogContentUnjoinDescription",innerHTML:t.UnjoinDialog.Description}),n(g,{statedClasses:{isPending:this.isActionJoinPending},onClick:this.onClickDialogUnjoin,innerHTML:t.UnjoinDialog.ButtonYes}),n(g,{statedClasses:{isHollow:!0,isPending:this.isActionJoinPending},onClick:this.onClickDialogJoin,innerHTML:t.UnjoinDialog.ButtonNo}))}renderTitleContainer(t){const{locale:e}=this;return n("div",{class:"TitleContainer"},n("div",{class:"Title"},t.nameOrTitle),t.state!==p.Closed&&n("div",null,n(g,{statedClasses:{isHollow:t.playerEnrolled,isPending:this.isActionJoinPending},onClick:this.onClickItemJoin.bind(this,t),innerHTML:t.playerEnrolled?e.Unjoin:e.Join})))}renderTabbedContent(){switch(this.tab){case o.Info:return this.renderInfo();case o.Leaderboard:return this.renderLeaderboard();case o.Games:return this.renderGames()}}renderGames(){var t;return n("div",{class:"Games"},null===(t=this.tournamentItem.games)||void 0===t?void 0:t.map((t=>n("div",null,n("img",{src:t.defaultThumbnail,alt:""})))))}renderLeaderboard(){return this.leaderboards?this.leaderboards.length?n("table",{class:"Leaderboards"},this.leaderboards.map((t=>n("tr",{class:c({isMe:t.isMe})},n("td",{class:"LeaderboardRank"},n("span",null,t.rank)),n("td",{class:"LeaderboardName"},t.shortName),n("td",{class:"LeaderboardScore"},t.score),n("td",{class:"LeaderboardPrize"},t.prizeName))))):"":n("general-animation-loading",null)}renderTabs(){const{locale:t,tab:e}=this;return n("div",{class:"TabsContainer"},n("div",{class:"Tabs"},Object.keys(o).map((i=>n("div",{class:c({active:e===i}),onClick:this.onClickTab.bind(this,i)},t[i])))))}renderTimeBar(t){return n("section",{class:"TimeContainer"},n("div",{class:"Time"},t.playerEnrolled?n(s,null,n("div",null,function(n,t){const e=Math.abs(t.getTime()-n.getTime()),i=Math.floor(e/864e5),s=Math.floor(e%864e5/36e5),r=Math.floor(e%36e5/6e4);return`${String(i).padStart(2,"0")}d:${String(s).padStart(2,"0")}h:${String(r).padStart(2,"0")}m`}(function(n,t){const e=new Date(n);return e.setSeconds(e.getSeconds()+t),e}(t.startTime,this.time),t.endTime)),n("div",null,n(g,{statedClasses:{isHollow:!0,isPendding:!1},innerHTML:`${k(t.startTime,t.endTime)}%`}))):n(s,null,n("div",null,T(t.startTime)),n("div",null,T(t.endTime)))),n("casino-engagement-suite-progress-bar",{value:Number(k(t.startTime,t.endTime)),"hide-percent":!0}))}renderInfo(){var t,e;const{locale:i,tournamentItem:s,isShowInfo:r}=this;return n("div",{class:"InfoContainer"},this.renderTimeBar(s),n("section",{class:"ShowInfo",onClick:this.onClickShowInfo},n("p",null,n("span",null,r?v:b),n("span",null,i.LeaderboardDetails))),r&&n("section",{class:"Info"},n("div",null,s.description),n("div",{class:"Criterias"},n("div",null,i.ScoreCriteria,": ",n("span",null,s.scoreCriteria)),n("div",null,i.MinimumBetCriteria,": ",n("span",null,s.minBetCount))),n("div",{class:"TC"},n("a",{href:s.termsUrl,target:"_blank"},i.TC))),this.isTournamentClosed(this.tournamentItem)&&(null===(t=this.leaderboards)||void 0===t?void 0:t.find((n=>n.isMe)))&&n("section",{class:"ResultPrize",innerHTML:l(i.TipPrize,this.getResultPrize(null===(e=this.leaderboards)||void 0===e?void 0:e.find((n=>n.isMe))))}),n("section",{class:"Prizes"},n("div",{class:"PrizesHeader"},y,n("span",{class:"PrizesText"},i.Prizes)),s.prizes.map(((t,e)=>n("div",{class:"Prize"},e+1," ",i.Place,": ",n("span",{class:"PrizeText"},t.name))))))}getResultPrize(n){return{prize:n.prizeName,place:n.rank}}renderCloseBarInLayout(){const{left:t,middle:e}=this.getWrapperBarData();return n(C,{left:t,middle:e,right:n("span",{onClick:this.onClickBarInLayout},m)})}renderCloseBarInLayoutDialog(){return n(C,{right:n("span",{onClick:this.onClickBarInLayoutDialog},m)})}renderLeaderboardContainer(t){const{dialog:{isOpen:e}}=this;return n("div",{class:"Wrapper"},n("div",{class:c("WrapperContent",{faded:e})},this.renderCloseBarInLayout(),n("div",{class:"Root"},n("div",{class:"Main"},t))),n("div",{class:"WrapperUtil"},n("dialog",{open:e},n("div",null,this.renderCloseBarInLayoutDialog(),e&&this.renderDialogContent()))))}getWrapperBarData(){const{page:t,locale:e}=this;switch(t){case h.List:return{left:n("span",{onClick:this.onClickBarTip},f),middle:e.Leaderboards};case h.Item:return{left:n("span",{onClick:this.onClickBarBack},x),middle:""}}}openDialog(n,t){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!0,type:n,data:t})}closeDialog(){this.dialog=Object.assign(Object.assign({},this.dialog),{isOpen:!1})}};O.style='.GradientRounded {\n display: block;\n background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%);\n color: rgba(30, 22, 56, 1);\n \n position: relative;\n border-radius: 16px;\n\n &.Hollow {\n background: rgba(30, 22, 56, 1);\n color: #FFFFFF;\n &::before {\n content: "";\n position: absolute;\n inset: 0;\n border-radius: 15px;\n border: 1px solid transparent;\n background: linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%) border-box;\n -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n -webkit-mask-composite: destination-out;\n mask-composite: exclude;\n }\n\n }\n}\n\n.GradientRoundedButton {\n border: none;\n padding: 7px;\n \n height: 32px;\n width: 100%;\n \n font-size: 14px;\n font-weight: 700;\n line-height: 17.07px;\n text-align: center;\n \n transition: .5s opacity;\n\n cursor: pointer;\n &.Pending {\n cursor: not-allowed;\n opacity: .3;\n }\n\n &.Hollow {\n \n span {\n background: -webkit-linear-gradient(98.25deg, rgb(255, 148, 0) 22.48%, rgb(254, 247, 70) 131.02%, rgb(255, 226, 74) 131.9%);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n}\n.Wrapper {\n height: 100%;\n position: relative;\n color: var(--emw--color-typography, #FFFFFF);\n display: flex;\n background-color: var(--emw--color-background, hsl(254, 44%, 15%));\n flex-direction: column;\n border-radius: 8px;\n overflow: hidden;\n}\n\n.WrapperContent {\n padding-bottom: 20px;\n transition: 0.5s filter;\n}\n.WrapperContent.faded {\n filter: brightness(53.3333333333%);\n}\n\n.WrapperBar {\n display: flex;\n width: 100%;\n padding: 12px 8px 8px;\n}\n\n.WrapperBarLeft, .WrapperBarRight {\n cursor: pointer;\n}\n\n.WrapperBarMiddle {\n flex-grow: 1;\n text-align: center;\n font-size: 16px;\n line-height: 16px;\n font-weight: 500;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n}\n\n:host {\n display: block;\n font-size: 12px;\n font-family: Inter;\n}\n\n.Row {\n margin: 24px 0;\n padding: 0 20px;\n}\n\n.LeaderboardsItem {\n margin: 10px 0;\n border: 1px solid rgb(64, 57, 86);\n border-radius: 16px;\n}\n.LeaderboardsItem.Hollow {\n border-color: transparent;\n}\n\n.LeaderboardsItemContainer {\n padding-top: 16px;\n}\n\n.Info {\n margin: 24px 0;\n padding: 0 20px;\n}\n\n.TimeContainer {\n margin: 24px 0;\n padding: 0 20px;\n}\n.TimeContainer .Time {\n display: flex;\n justify-content: space-between;\n font-size: 11px;\n align-items: center;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n}\n.TimeContainer .Time button {\n font-size: 12px;\n height: 20px;\n padding: 0;\n}\n.TimeContainer .Time button::before {\n inset: inherit;\n border: 0;\n}\n\n.ShowInfo {\n margin: 24px 0;\n padding: 0 20px;\n cursor: pointer;\n color: rgb(102, 97, 120);\n}\n.ShowInfo p {\n display: flex;\n gap: 4px;\n}\n\n.TitleContainer {\n display: flex;\n justify-content: space-between;\n margin: 24px 0;\n padding: 0 20px;\n margin-top: 0;\n gap: 10px;\n font-family: Montserrat;\n}\n.TitleContainer .GradientRoundedButton {\n width: 120px;\n}\n\n.TabsContainer {\n margin: 24px 0;\n padding: 0 20px;\n margin: 0 20px;\n padding: 0;\n border-bottom: 1px solid #575757;\n}\n\n.Tabs {\n display: flex;\n justify-content: space-between;\n justify-content: start;\n font-size: 12px;\n margin-bottom: -1px;\n}\n.Tabs > div {\n padding: 10px;\n color: rgb(102, 97, 120);\n cursor: pointer;\n}\n.Tabs > div.active {\n color: var(--emw--color-typography, #FFF);\n border-bottom: 2px solid var(--emw--color-typography, #FFF);\n}\n\n.Title {\n font-size: 16px;\n font-weight: 700;\n line-height: 19.5px;\n text-align: left;\n word-break: break-word;\n}\n\n.TC {\n margin-top: 12px;\n}\n.TC a {\n color: rgb(89, 209, 255);\n}\n\n.Criterias {\n margin: 12px 0;\n}\n.Criterias span {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n.ResultPrize {\n margin: 24px 0;\n padding: 0 20px;\n}\n.ResultPrize span {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n.Prizes {\n margin: 24px 0;\n padding: 0 20px;\n}\n.Prizes .PrizesText {\n margin-left: 3px;\n font-weight: 600;\n}\n.Prizes .PrizesHeader {\n align-items: center;\n display: flex;\n}\n.Prizes .PrizesHeader img {\n width: 12px;\n}\n.Prizes .Prize {\n margin: 8px 0;\n}\n.Prizes .Prize .PrizeText {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n font-weight: 400;\n}\n\n* {\n box-sizing: border-box;\n}\n\n.Leaderboards {\n width: 100%;\n text-align: center;\n border-collapse: collapse;\n}\n.Leaderboards td {\n opacity: 0.6;\n padding: 20px 5px;\n}\n.Leaderboards td:first-child {\n padding-left: 20px;\n}\n.Leaderboards td:last-child {\n padding-right: 20px;\n}\n.Leaderboards .LeaderboardName {\n color: var(--emw--color-typography, #FFF);\n opacity: 1;\n}\n.Leaderboards tr.isMe {\n background: rgba(0, 0, 0, 0.2);\n}\n.Leaderboards tr.isMe .LeaderboardRank span {\n padding: 0px 3px;\n opacity: 1;\n border: 1px solid var(--emw--color-primary, rgb(255, 214, 47));\n border-radius: 11px;\n}\n.Leaderboards tr.isMe td {\n color: var(--emw--color-primary, rgb(255, 214, 47));\n}\n\n.Games {\n margin: 24px 0;\n padding: 0 20px;\n display: flex;\n flex-wrap: wrap;\n justify-content: space-evenly;\n gap: 4px 7.25px;\n}\n.Games img {\n width: 60px;\n}\n\ndialog {\n position: absolute;\n top: 30px;\n width: 100%;\n height: 100%;\n background: transparent;\n border: 0;\n padding: 0;\n color: var(--emw--color-typography, #FFFFFF);\n}\ndialog > div {\n margin: 32px;\n border-radius: 8px;\n background: var(--emw--color-background, hsl(254, 44%, 15%));\n border: 1px solid hsl(254, 20%, 28%);\n align-items: center;\n}\n\n.DialogContentUnjoin {\n padding: 32px;\n padding-top: 10px;\n display: flex;\n gap: 10px;\n flex-direction: column;\n}\n\n.DialogContentUnjoinTitle {\n font-family: Montserrat;\n font-size: 20px;\n font-weight: 600;\n line-height: 24.38px;\n text-align: center;\n}\n\n.DialogContentUnjoinDescription {\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n margin-bottom: 30px;\n}\n\n.Tip {\n padding: 32px;\n padding-top: 10px;\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n font-size: 14px;\n}\n\n.PageConfirmContainer {\n text-align: center;\n width: 80%;\n margin: 0 auto;\n}\n\n.PageConfirm {\n padding: 40px 32px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n.PageConfirm .Title {\n font-size: 20px;\n text-align: center;\n}\n.PageConfirm .Description {\n color: var(--emw--color-secondary, rgb(187, 185, 195));\n font-weight: 400;\n}\n.PageConfirm .Description span {\n color: var(--emw--color-typography, #FFF);\n font-weight: 600;\n}\n\n.PageConfirmButtonsGroup {\n width: 150px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}';export{O as C}
|
|
@@ -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),r=new Map,i=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:{}},h={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)},d=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,y=[],v=[],w=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&h.l?g(b):h.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(y),$(v),(m=y.length>0)&&h.raf(b)},g=e=>d().then(e),S=w(v,!0),k={},j=e=>"object"==(e=typeof e)||"function"===e;function E(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:()=>C,map:()=>x,ok:()=>O,unwrap:()=>P,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function x(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return C(e.value);throw"should never get here"}var M,P=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},H=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?R(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,F);const u=R(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),T={},F={forEach:(e,t)=>e.map(N).forEach(t),map:(e,t)=>e.map(N).map(t).map(U)},N=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),U=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),H(e.vtag,t,...e.vchildren||[])}const t=R(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},D=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>L(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},L=(e,t,n)=>{const l=h.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,q=e=>"sc-"+e.S,G=(e,t,n,l,s,r)=>{if(n!==l){let i=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(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!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)):(!i||4&r||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&&h.rel(e,t,n,o),l&&h.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||k,s=t.u||k;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=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=f.createTextNode(l.i);else if(o=l.v=f.createElement(l.m),I(null,l,K),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=Q(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},X=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=Q(null,n,o),r&&(l[o].v=r,ne(i,r,t)))},Y=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;te(t),e&&e.remove()}}},Z=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),ee=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.i;null===r?(I(e,t,K),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(Z(h,m,o))ee(h,m,o),h=t[++i],m=l[++c];else if(Z(d,y,o))ee(d,y,o),d=t[--f],y=l[--p];else if(Z(h,y,o))ee(h,y,o),ne(e,h.v,d.v.nextSibling),h=t[++i],y=l[--p];else if(Z(d,m,o))ee(d,m,o),ne(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=Q(t&&t[c],n,u):(ee(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=Q(t&&t[c],n,c),m=l[++c]),s&&ne(h.v.parentNode,s,h.v)}i>f?X(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&Y(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),X(l,null,t,s,0,s.length-1)):!n&&null!==o&&Y(o,0,o.length-1)):e.i!==r&&(l.data=r)},te=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(te)},ne=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),le=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},oe=(e,t)=>{if(e.l|=16,!(4&e.l))return le(e,e.j),S((()=>se(e,t)));e.l|=512},se=(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`);return t&&(e.l|=256,e.O&&(e.O.map((([e,t])=>he(n,e,t))),e.O=void 0)),re(void 0,(()=>ce(e,n,t)))},re=(e,t)=>ie(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ie=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ce=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=q(t),o=i.get(l);if(e=11===e.nodeType?e:f,o)if("string"==typeof o){let s,r=W.get(e=e.head||e);if(r||W.set(e,r=new Set),!r.has(l)){{s=f.createElement("style"),s.innerHTML=o;const l=null!=(n=h.M)?n:E(f);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ue(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ae(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ue=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.C,s=e.P||R(null,null),r=(e=>e&&e.m===T)(t)?t:H(null,null,t);if(M=l.tagName,o.A&&(r.u=r.u||{},o.A.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.P=r,r.v=s.v=l.shadowRoot||l,ee(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ae=e=>{const t=e.$hostElement$,n=e.j;64&e.l||(e.l|=64,de(t),e.H(t),n||fe()),e.k&&(e.k(),e.k=void 0),512&e.l&&g((()=>oe(e,!1))),e.l&=-517},fe=()=>{de(f.documentElement),g((()=>L(a,"appload",{detail:{namespace:"casino-engagement-suite-tournament"}})))},he=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},de=e=>e.classList.add("hydrated"),pe=(e,t,l)=>{var o,s;const r=e.prototype;if(t.R){const i=Object.entries(null!=(o=t.R)?o:{});if(i.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.S}" 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=s.T.get(t),i=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:1&t?e+"":e)(l,o.R[t][0]),8&i&&void 0!==r||l===r||Number.isNaN(r)&&Number.isNaN(l)||(s.T.set(t,l),c&&2==(18&i)&&oe(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;r.attributeChangedCallback=function(e,o,s){h.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.F)?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!=(s=t.F)?s:{}),...i.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},me=e=>{he(e,"connectedCallback")},ye=e=>{he(e,"disconnectedCallback")},ve=(e,l={})=>{var o;const u=[],d=l.exclude||[],m=a.customElements,y=f.head,v=y.querySelector("meta[charset]"),w=f.createElement("style"),$=[];let b,g=!0;Object.assign(h,l),h.o=new URL(l.resourcesUrl||"./",f.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],S:l[1],R:l[2],N:l[3]};4&o.l&&(S=!0),o.R=l[2],o.N=l[3],o.A=[];const c=o.S,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,C:n,T:new Map};l.U=new Promise((e=>l.H=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o),1&o.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.S}! 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,$e(this,e,o.N)),b&&(clearTimeout(b),b=null),g?$.push(this):h.jmp((()=>(e=>{if(!(1&h.l)){const t=n(e),l=t.C,o=()=>{};if(1&t.l)$e(e,t,l.N),(null==t?void 0:t.t)?me(t.t):(null==t?void 0:t.U)&&t.U.then((()=>me(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){le(t,t.j=n);break}}l.R&&Object.entries(l.R).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.S.replace(/-/g,"_"),n=e.D;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.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.S}#${t.L}" was not found`);l.isProxied||(pe(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o(),me(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(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>oe(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){h.jmp((()=>(async()=>{if(!(1&h.l)){const e=n(this);e.W&&(e.W.map((e=>e())),e.W=void 0),(null==e?void 0:e.t)?ye(e.t):(null==e?void 0:e.U)&&e.U.then((()=>ye(e.t)))}})()))}componentOnReady(){return n(this).U}};o.D=e[0],d.includes(c)||m.get(c)||(u.push(c),m.define(c,pe(a,o,1)))}))})),u.length>0&&(S&&(w.textContent+=c),w.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const e=null!=(o=h.M)?o:E(f);null!=e&&w.setAttribute("nonce",e),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):h.jmp((()=>b=setTimeout(fe,30)))},we=(e,t)=>t,$e=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=ge(e,n),r=be(t,o),i=Se(n);h.ael(s,l,r,i),(t.W=t.W||[]).push((()=>h.rel(s,l,r,i)))}))},be=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.O=e.O||[]).push([t,n])}catch(e){s(e)}},ge=(e,t)=>8&t?a:e,Se=e=>({passive:!!(1&e),capture:!!(2&e)}),ke=e=>h.M=e;export{we as F,T as H,ve as b,D as c,H as h,d as p,l as r,ke as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|