@everymatrix/casino-challenges-list 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-challenges-list/casino-challenge-card_3.entry.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list-f8cb576c.js +1 -0
- package/dist/casino-challenges-list/casino-challenges-list.esm.js +1 -1
- package/dist/casino-challenges-list/index-72daee0c.js +2 -0
- package/dist/casino-challenges-list/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-card_3.cjs.entry.js +408 -0
- package/dist/cjs/{casino-challenges-list-4da62aa7.js → casino-challenges-list-46cdc97e.js} +4 -2
- package/dist/cjs/casino-challenges-list.cjs.js +2 -2
- package/dist/cjs/{index-75e73570.js → index-2a526238.js} +37 -6
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/casino-challenges-list/casino-challenges-list.js +1 -1
- package/dist/esm/casino-challenge-card_3.entry.js +403 -0
- package/dist/esm/{casino-challenges-list-d8eefa92.js → casino-challenges-list-f8cb576c.js} +2 -3
- package/dist/esm/casino-challenges-list.js +3 -3
- package/dist/esm/{index-e9d014fd.js → index-72daee0c.js} +37 -6
- package/dist/esm/index.js +2 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/index.d.ts +1 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
- package/dist/types/components/casino-challenges-list/casino-challenges-list.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-challenges-list/casino-challenges-list-d8eefa92.js +0 -1
- package/dist/casino-challenges-list/casino-challenges-list_2.entry.js +0 -1
- package/dist/casino-challenges-list/index-e9d014fd.js +0 -2
- package/dist/cjs/casino-challenges-list_2.cjs.entry.js +0 -184
- package/dist/esm/casino-challenges-list_2.entry.js +0 -179
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as n}from"./index-72daee0c.js";import{s as i,a as r,b as s}from"./casino-challenges-list-f8cb576c.js";export{C as casino_challenges_list}from"./casino-challenges-list-f8cb576c.js";const a=["ro","en","fr","ar","hr"],o={en:{totalLevels:"Total levels:",level1:"Level 1:",get:"Get:",endsIn:"Ends In",expired:"Expired",viewDetails:"View details",placeBetsOf:"Place bets of",place:"Place",bet:"bet",bets:"bets"},ro:{totalLevels:"Niveluri totale:",level1:"Nivel 1:",get:"Obține:",endsIn:"Se termină în",expired:"Expirat",viewDetails:"Vezi detalii",placeBetsOf:"Plasează pariuri de",place:"Plasare",bet:"pariu",bets:"pariuri"},fr:{totalLevels:"Niveaux totaux :",level1:"Niveau 1 :",get:"Obtenir :",endsIn:"Se termine dans",expired:"Expiré",viewDetails:"Voir les détails",placeBetsOf:"Placez des paris de",place:"Placer",bet:"pari",bets:"paris"},ar:{totalLevels:"إجمالي المستويات:",level1:"المستوى 1:",get:"احصل على:",endsIn:"ينتهي في",expired:"منتهي الصلاحية",viewDetails:"عرض التفاصيل",placeBetsOf:"قم بوضع رهانات بقيمة",place:"ضع",bet:"رهان",bets:"رهانات"},hr:{totalLevels:"Ukupno razina:",level1:"Razina 1:",get:"Dobiti:",endsIn:"Završava za",expired:"Isteklo",viewDetails:"Pogledaj detalje",placeBetsOf:"Postavite oklade od",place:"Postavi",bet:"kladnja",bets:"kladnje"}},l=(e,t)=>{const n=t;return o[void 0!==n&&a.includes(n)?n:"en"][e]},h=class{constructor(t){e(this,t),this.defaultLanguage="en",this.onMouseEnterHandler=(e,t)=>{t.scrollWidth>t.clientWidth&&(this.tooltipIndex=e)},this.onMouseLeaveHandler=()=>{this.tooltipIndex=null},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.challenge=void 0,this.tooltipIndex=null,this.timeLeft=void 0}get infoItems(){const e=this.challenge.ChallengeLevels[0],t=e.Target,n=0===t.TargetType?`${l("placeBetsOf",this.language)} ${t.Turnover}`:1===t.TargetType?`${l("place",this.language)} ${t.Turnover} ${l("bet",this.language)}`:`${l("place",this.language)} ${t.BetCount} ${l("bets",this.language)}`,i=e.Rewards.map((e=>e.RewardDescription)).join(" + ");return[{lable:l("totalLevels",this.language),value:this.challenge.ChallengeLevels.length},{lable:l("level1",this.language),value:n},{lable:l("get",this.language),value:i}]}handleClientStylingChange(e,t){e!=t&&i(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,t){e!=t&&s(this.stylingContainer,`${this.mbSource}.Style`)}connectedCallback(){this.timerId=setInterval((()=>{this.updateTime()}),1e3)}componentWillLoad(){this.translationUrl&&(async e=>{if(e)try{const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();t=i,Object.keys(t).forEach((e=>{for(let n in t[e])o[e][n]=t[e][n]}))}catch(e){console.error("Failed to fetch or parse translations from URL:",e)}var t})(this.translationUrl),this.updateTime()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&s(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&i(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),clearInterval(this.timerId)}updateTime(){var e;this.timeLeft=function(e){const t=new Date;let n=new Date(e).getTime()-t.getTime();if(n<=0)return;const i=Math.floor(n/864e5);n-=864e5*i;const r=Math.floor(n/36e5);n-=36e5*r;const s=Math.floor(n/6e4);n-=6e4*s;const a=Math.floor(n/1e3),o=e=>e.toString().padStart(2,"0");return`${o(i)} : ${o(r)} : ${o(s)} : ${o(a)}`}(null===(e=this.challenge)||void 0===e?void 0:e.ChallengeEndTime)}renderInfoItem(e,n){return t("div",{class:"info-item",onMouseEnter:e=>this.onMouseEnterHandler(n,e.currentTarget),onMouseLeave:this.onMouseLeaveHandler},t("span",{class:"info-item__label"},e.lable),e.value,this.tooltipIndex===n&&t("div",{class:"info-item__tooltip"},e.value))}renderCardBadge(){return t("div",{class:"card__badge"},this.timeLeft?[l("endsIn",this.language)," - ",t("span",null,this.timeLeft)]:l("expired",this.language))}render(){return t("div",{key:"ddbd3e0d20b4d75ed70120798c45d7c03715b7df",ref:e=>this.stylingContainer=e},t("div",{key:"3ca0c4b6ad25b4f60077b894bf73c9686f67a677",class:"card"},t("img",{key:"1712546c27e75e04bde5832c521038bfd418e57f",class:"card__image",src:this.challenge.ChallengePresentations[this.language].Url||this.challenge.ChallengePresentations[this.defaultLanguage].Url}),this.renderCardBadge(),t("div",{key:"238041db616391c2594bef46778649b8b6282097",class:"card__content"},t("h1",{key:"d377b99c7758460df8b1a6e8e39059959347430f",class:"card__title"},this.challenge.ChallengePresentations[this.language].PresentationName||this.challenge.ChallengePresentations[this.defaultLanguage].PresentationName),this.infoItems.map(((e,t)=>this.renderInfoItem(e,t))),t("button",{key:"b53707ce7881cbf16321e3d3728a0e769af6589a",class:"card__button"},l("viewDetails",this.language)))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};h.style='.card {\n width: 308px;\n border-radius: 16px;\n border: 2px solid var(--emw--button-border-color, rgba(221, 255, 207, 0.1019607843));\n background-color: var(--emw--color-background, #141515);\n box-sizing: border-box;\n position: relative;\n}\n@container challenge-list (max-width: 576px) {\n .card {\n width: 100%;\n }\n}\n.card:hover {\n background: linear-gradient(90deg, rgb(0, 62, 92) 0%, rgb(17, 59, 33) 100%);\n cursor: pointer;\n}\n.card__image {\n width: 100%;\n height: 200px;\n border-radius: 16px 16px 0 0;\n}\n@container challenge-list (max-width: 576px) {\n .card__image {\n height: 224px;\n }\n}\n.card__title {\n color: var(--emw--color-white, #FFFFFF);\n font-size: var(--emw--font-size-medium, 16px);\n margin: 0 0 10px;\n}\n.card__content {\n padding: 20px;\n}\n.card__button {\n margin-top: 20px;\n width: 100%;\n height: 34px;\n background: transparent;\n text-transform: uppercase;\n border-radius: var(--emw--button-border-radius, 99px);\n border: 2px solid var(--emw--button-border-color, #727672);\n font-size: var(--emw--font-size-x-small, 12px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-secondary, #e9931e);\n}\n.card__button:hover {\n border-color: var(--emw--color-secondary, #e9931e);\n cursor: pointer;\n}\n.card__badge {\n position: absolute;\n background: white;\n top: 6px;\n right: 6px;\n border-radius: 30px;\n padding: 2px 12px;\n line-height: 22px;\n font-weight: var(--emw--font-weight-medium, 500);\n font-size: var(--emw--font-size-x-small, 12px);\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\n backdrop-filter: blur(20px);\n}\n.card__badge span {\n font-weight: var(--emw--font-weight-bold, 700);\n}\n\n.info-item {\n line-height: 24px;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-primary, #1dbf51);\n}\n@container challenge-list (min-width: 576px) {\n .info-item {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: bottom;\n }\n}\n.info-item__label {\n font-weight: var(--emw--font-weight-medium, 500);\n margin-right: 3px;\n color: var(--emw--color-gray-150, #C8D6CE);\n}\n.info-item__tooltip {\n position: absolute;\n line-height: 22px;\n padding: 8px 12px;\n border-radius: 8px;\n opacity: 1;\n z-index: 200;\n white-space: nowrap;\n font-size: var(--emw--font-size-x-small, 12px);\n font-weight: var(--emw--font-weight-medium, 500);\n color: var(--emw--color-white, #FFFFFF);\n background-color: var(--emw--color-background-secondary, #1B1C2B);\n}\n.info-item__tooltip::before {\n content: "";\n position: absolute;\n top: -5px;\n left: 50%;\n transform: translateX(-50%);\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid var(--emw--color-background-secondary, #1B1C2B);\n width: 0;\n height: 0;\n z-index: 201;\n}';const c=class{constructor(t){e(this,t),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(e,t){t!==e&&this.handleStructure(e)}handleStylingProps(e){switch(typeof e){case"number":return 0===e?0:`${e}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(e)||e.endsWith("px")||e.endsWith("%")?e:"unset"}}handleStructure(e){switch(e){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return t("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return t("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((e,n)=>t("div",{key:n,class:"Text "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return t("div",{class:"SkeletonContainer"},t("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let e="";switch(this.structure){case"logo":e=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":e=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":e=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":e=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":e=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":e=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:e=""}return t(n,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},t("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},e),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};c.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{h as casino_challenge_card,c as ui_skeleton}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as n,g as i}from"./index-72daee0c.js";function s(t,e){if(t){const n=document.createElement("style");n.innerHTML=e,t.appendChild(n)}}function r(t,e){const n=new URL(e);fetch(n.href).then((t=>t.text())).then((e=>{const n=document.createElement("style");n.innerHTML=e,t&&t.appendChild(n)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,e){if(window.emMessageBus){const n=document.createElement("style");window.emMessageBus.subscribe(e,(e=>{n.innerHTML=e,t&&t.appendChild(n)}))}}const h=[0,1,2,3,4,5],l=class{constructor(n){t(this,n),this.loadMore=e(this,"loadMore",7),this.setLastItemRef=t=>{this.lastItemRef&&this.observer&&this.observer.unobserve(this.lastItemRef),this.lastItemRef=t,t&&this.observer&&!this.loading&&this.observer.observe(t)},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.translationUrl=void 0,this.challenges=[],this.loading=!1,this.hasMore=!1}handleClientStylingChange(t,e){t!=e&&s(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&r(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&o(this.stylingContainer,`${this.mbSource}.Style`)}setupObserver(){this.lastItemRef&&!this.loading&&this.hasMore&&(this.observer||(this.observer=new IntersectionObserver((([t])=>{t.isIntersecting&&!this.loading&&this.hasMore&&(this.observer.unobserve(t.target),this.loadMore.emit())}),{root:null,rootMargin:"0px",threshold:.1})),this.observer.disconnect(),this.observer.observe(this.lastItemRef))}componentDidRender(){this.setupObserver()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.observer=void 0}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`),this.clientStyling&&s(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&r(this.stylingContainer,this.clientStylingUrl))}renderSkeletons(){return h.map((t=>n("div",{class:"loader",key:t},n("ui-skeleton",{structure:"image",height:"200px","border-radius":"16px 16px 0 0"}),n("ui-skeleton",{class:"SkeletonRows",structure:"text",width:"220px",height:"16px",rows:"3"}),n("ui-skeleton",{class:"SkeletonButton",structure:"text",width:"100%"}))))}render(){return n("div",{key:"c6251da5e01eff5d3ce1c7e1a0151a0b437c5e55",ref:t=>this.stylingContainer=t,class:"challenges-list"},this.challenges.map(((t,e)=>n("div",{key:t.Id,ref:e===this.challenges.length-1?this.setLastItemRef:null},n("casino-challenge-card",{challenge:t,language:this.language,mbSource:this.mbSource,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl})))),this.loading&&this.renderSkeletons())}get el(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};l.style=".challenges-list {\n display: flex;\n flex-wrap: wrap;\n gap: 30px;\n width: 100%;\n}\n\n.loader {\n width: 308px;\n border-radius: 16px;\n border: 2px solid var(--emw--button-border-color, rgba(221, 255, 207, 0.1019607843));\n background-color: var(--emw--color-background, #141515);\n box-sizing: border-box;\n position: relative;\n}\n@container challenge-list (max-width: 576px) {\n .loader {\n width: 100%;\n }\n}\n.loader:hover {\n background: linear-gradient(90deg, rgb(0, 62, 92) 0%, rgb(17, 59, 33) 100%);\n cursor: pointer;\n}\n.loader .SkeletonRows .SkeletonContainer {\n padding: 0 20px 0 20px;\n}\n.loader .SkeletonButton .Skeleton.Text {\n margin: 0;\n height: 28px;\n margin: 0 20px 20px 20px;\n border-radius: var(--emw--button-border-radius, 99px);\n width: auto;\n}\n.loader .Skeleton.Image {\n border-radius: 16px 16px 0 0;\n}\n.loader .Skeleton.Text {\n margin: 20px 0;\n}";export{l as C,r as a,o as b,s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as
|
|
1
|
+
import{p as n,b as l}from"./index-72daee0c.js";export{s as setNonce}from"./index-72daee0c.js";import{g as e}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,e={};return""!==l&&(e.resourcesUrl=new URL(".",l).href),n(e)})().then((async n=>(await e(),l([["casino-challenge-card_3",[[1,"casino-challenges-list",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],translationUrl:[513,"translation-url"],challenges:[16],loading:[516],hasMore:[516,"has-more"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[1,"casino-challenge-card",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],challenge:[16],tooltipIndex:[32],timeLeft:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"ui-skeleton",{structure:[1],width:[1],height:[1],borderRadius:[8,"border-radius"],marginBottom:[8,"margin-bottom"],marginTop:[8,"margin-top"],marginLeft:[8,"margin-left"],marginRight:[8,"margin-right"],animation:[4],rows:[2],size:[1]},null,{structure:["handleStructureChange"]}]]]],n))));
|
|
@@ -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}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={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),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?v(w):f.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(m),b(y),(p=m.length>0)&&f.raf(w)},v=e=>h().then(e),g=$(y,!0),S={},k=e=>"object"==(e=typeof e)||"function"===e;function j(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:()=>E,ok:()=>O,unwrap:()=>P,unwrapErr:()=>R});var O=e=>({isOk:!0,isErr:!1,value:e}),C=e=>({isOk:!1,isErr:!0,value:e});function E(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,x,P=e=>{if(e.isOk)return e.value;throw e.value},R=e=>{if(e.isErr)return e.value;throw e.value},L=(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&&!k(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(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(" "))}}const a=T(e,null);return a.u=t,i.length>0&&(a.h=i),a.p=o,a},T=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),A={},D=e=>n(e).$hostElement$,F=(e,t,n)=>{const l=D(e);return{emit:e=>H(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},N=new WeakMap,U=e=>"sc-"+e.v,W=(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=G(n),s=G(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=k(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){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":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(V);t=t.replace(_,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},q=/\s/,G=e=>e?e.split(q):[],V="Capture",_=RegExp(V+"$"),z=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||S,s=t.u||S;for(const e of B(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of B(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function B(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=u.createTextNode(l.i);else if(o=l.$=u.createElement(l.m),z(null,l,I),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);return o["s-hn"]=x,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].$=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(z(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=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(X(h,m,o))Y(h,m,o),h=t[++i],m=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--p];else if(X(h,y,o))Y(h,y,o),ee(e,h.$,d.$.nextSibling),h=t[++i],y=l[--p];else if(X(d,m,o))Y(d,m,o),ee(e,d.$,h.$),d=t[--f],m=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){a=u;break}a>=0?(r=t[a],r.m!==m.m?s=J(t&&t[c],n,a):(Y(r,m,o),t[a]=void 0,s=r.$),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&ee(h.$.parentNode,s,h.$)}i>f?K(e,null==l[p+1]?null:l[p+1].$,n,l,c,p):c>p&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):null!==o&&Q(o,0,o.length-1)):e.i!==r&&(l.data=r)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.k),g((()=>le(e,t)));e.l|=512},le=(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&&(l=ue(n,"componentWillLoad")),oe(l,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.j,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:j(u);null!=t&&s.setAttribute("nonce",t),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&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.j,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:L(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.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.C=r,r.$=s.$=l.shadowRoot||l,M=l["s-sc"],Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.k;ue(n,"componentDidRender"),64&e.l||(e.l|=64,fe(t),ue(n,"componentDidLoad"),e.P(t),l||ae()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>ne(e,!1))),e.l&=-517},ae=()=>{fe(u.documentElement),v((()=>H(a,"appload",{detail:{namespace:"casino-challenges-list"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.L||e.watchers){e.watchers&&!t.L&&(t.L=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" 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 i=r.$hostElement$,c=r.T.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||k(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),u)){if(o.L&&128&a){const e=o.L[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&ne(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.L)?void 0:r[e];null==i||i.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!=(r=t.L)?r:{}),...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.M)||o.push([e,s])),s}))]))}}return e},de=e=>{ue(e,"connectedCallback")},pe=e=>{ue(e,"disconnectedCallback")},me=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=a.customElements,y=u.head,$=y.querySelector("meta[charset]"),b=u.createElement("style"),w=[];let v,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],R:l[2],A:l[3]};4&c.l&&(S=!0),c.R=l[2],c.M=[],c.L=null!=(o=l[4])?o:{};const a=c.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,j:n,T:new Map};l.D=new Promise((e=>l.P=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.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),g?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.j,o=()=>{};if(1&t.l)(null==t?void 0:t.t)?de(t.t):(null==t?void 0:t.D)&&t.D.then((()=>de(t.t)));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.k=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.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;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.v}#${t.H}" was not found`);l.isProxied||(n.L=l.watchers,he(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(),de(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=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&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.k,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?pe(e.t):(null==e?void 0:e.D)&&e.D.then((()=>pe(e.t)))}})()))}componentOnReady(){return n(this).D}};c.F=e[0],p.includes(a)||m.get(a)||(h.push(a),m.define(a,he(u,c,1)))}))})),h.length>0&&(S&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:j(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}g=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ae,30)))},ye=e=>f.O=e;export{A as H,me as b,F as c,D as g,L as h,h as p,l as r,ye as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengeList}from"./casino-challenges-list-
|
|
1
|
+
export{C as CasinoChallengeList}from"./casino-challenges-list-f8cb576c.js";import"./index-72daee0c.js";
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-2a526238.js');
|
|
6
|
+
const casinoChallengesList = require('./casino-challenges-list-46cdc97e.js');
|
|
7
|
+
|
|
8
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
9
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
10
|
+
const TRANSLATIONS = {
|
|
11
|
+
en: {
|
|
12
|
+
totalLevels: 'Total levels:',
|
|
13
|
+
level1: 'Level 1:',
|
|
14
|
+
get: 'Get:',
|
|
15
|
+
endsIn: 'Ends In',
|
|
16
|
+
expired: 'Expired',
|
|
17
|
+
viewDetails: 'View details',
|
|
18
|
+
placeBetsOf: 'Place bets of',
|
|
19
|
+
place: 'Place',
|
|
20
|
+
bet: 'bet',
|
|
21
|
+
bets: 'bets'
|
|
22
|
+
},
|
|
23
|
+
ro: {
|
|
24
|
+
totalLevels: 'Niveluri totale:',
|
|
25
|
+
level1: 'Nivel 1:',
|
|
26
|
+
get: 'Obține:',
|
|
27
|
+
endsIn: 'Se termină în',
|
|
28
|
+
expired: 'Expirat',
|
|
29
|
+
viewDetails: 'Vezi detalii',
|
|
30
|
+
placeBetsOf: 'Plasează pariuri de',
|
|
31
|
+
place: 'Plasare',
|
|
32
|
+
bet: 'pariu',
|
|
33
|
+
bets: 'pariuri'
|
|
34
|
+
},
|
|
35
|
+
fr: {
|
|
36
|
+
totalLevels: 'Niveaux totaux :',
|
|
37
|
+
level1: 'Niveau 1 :',
|
|
38
|
+
get: 'Obtenir :',
|
|
39
|
+
endsIn: 'Se termine dans',
|
|
40
|
+
expired: 'Expiré',
|
|
41
|
+
viewDetails: 'Voir les détails',
|
|
42
|
+
placeBetsOf: 'Placez des paris de',
|
|
43
|
+
place: 'Placer',
|
|
44
|
+
bet: 'pari',
|
|
45
|
+
bets: 'paris'
|
|
46
|
+
},
|
|
47
|
+
ar: {
|
|
48
|
+
totalLevels: 'إجمالي المستويات:',
|
|
49
|
+
level1: 'المستوى 1:',
|
|
50
|
+
get: 'احصل على:',
|
|
51
|
+
endsIn: 'ينتهي في',
|
|
52
|
+
expired: 'منتهي الصلاحية',
|
|
53
|
+
viewDetails: 'عرض التفاصيل',
|
|
54
|
+
placeBetsOf: 'قم بوضع رهانات بقيمة',
|
|
55
|
+
place: 'ضع',
|
|
56
|
+
bet: 'رهان',
|
|
57
|
+
bets: 'رهانات'
|
|
58
|
+
},
|
|
59
|
+
hr: {
|
|
60
|
+
totalLevels: 'Ukupno razina:',
|
|
61
|
+
level1: 'Razina 1:',
|
|
62
|
+
get: 'Dobiti:',
|
|
63
|
+
endsIn: 'Završava za',
|
|
64
|
+
expired: 'Isteklo',
|
|
65
|
+
viewDetails: 'Pogledaj detalje',
|
|
66
|
+
placeBetsOf: 'Postavite oklade od',
|
|
67
|
+
place: 'Postavi',
|
|
68
|
+
bet: 'kladnja',
|
|
69
|
+
bets: 'kladnje'
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const translate = (key, customLang) => {
|
|
73
|
+
const lang = customLang;
|
|
74
|
+
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
75
|
+
};
|
|
76
|
+
const getTranslations = (data) => {
|
|
77
|
+
Object.keys(data).forEach((item) => {
|
|
78
|
+
for (let key in data[item]) {
|
|
79
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
const resolveTranslationUrl = async (translationUrl) => {
|
|
84
|
+
if (translationUrl) {
|
|
85
|
+
try {
|
|
86
|
+
const response = await fetch(translationUrl);
|
|
87
|
+
if (!response.ok) {
|
|
88
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
89
|
+
}
|
|
90
|
+
const translations = await response.json();
|
|
91
|
+
getTranslations(translations);
|
|
92
|
+
}
|
|
93
|
+
catch (error) {
|
|
94
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
function getTimeLeft(endTime) {
|
|
100
|
+
const now = new Date();
|
|
101
|
+
const end = new Date(endTime);
|
|
102
|
+
let diff = end.getTime() - now.getTime();
|
|
103
|
+
if (diff <= 0) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
|
|
107
|
+
diff -= days * (1000 * 60 * 60 * 24);
|
|
108
|
+
const hours = Math.floor(diff / (1000 * 60 * 60));
|
|
109
|
+
diff -= hours * (1000 * 60 * 60);
|
|
110
|
+
const minutes = Math.floor(diff / (1000 * 60));
|
|
111
|
+
diff -= minutes * (1000 * 60);
|
|
112
|
+
const seconds = Math.floor(diff / 1000);
|
|
113
|
+
const pad = (n) => n.toString().padStart(2, '0');
|
|
114
|
+
return `${pad(days)} : ${pad(hours)} : ${pad(minutes)} : ${pad(seconds)}`;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const casinoChallengeCardCss = ".card {\n width: 308px;\n border-radius: 16px;\n border: 2px solid var(--emw--button-border-color, rgba(221, 255, 207, 0.1019607843));\n background-color: var(--emw--color-background, #141515);\n box-sizing: border-box;\n position: relative;\n}\n@container challenge-list (max-width: 576px) {\n .card {\n width: 100%;\n }\n}\n.card:hover {\n background: linear-gradient(90deg, rgb(0, 62, 92) 0%, rgb(17, 59, 33) 100%);\n cursor: pointer;\n}\n.card__image {\n width: 100%;\n height: 200px;\n border-radius: 16px 16px 0 0;\n}\n@container challenge-list (max-width: 576px) {\n .card__image {\n height: 224px;\n }\n}\n.card__title {\n color: var(--emw--color-white, #FFFFFF);\n font-size: var(--emw--font-size-medium, 16px);\n margin: 0 0 10px;\n}\n.card__content {\n padding: 20px;\n}\n.card__button {\n margin-top: 20px;\n width: 100%;\n height: 34px;\n background: transparent;\n text-transform: uppercase;\n border-radius: var(--emw--button-border-radius, 99px);\n border: 2px solid var(--emw--button-border-color, #727672);\n font-size: var(--emw--font-size-x-small, 12px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-secondary, #e9931e);\n}\n.card__button:hover {\n border-color: var(--emw--color-secondary, #e9931e);\n cursor: pointer;\n}\n.card__badge {\n position: absolute;\n background: white;\n top: 6px;\n right: 6px;\n border-radius: 30px;\n padding: 2px 12px;\n line-height: 22px;\n font-weight: var(--emw--font-weight-medium, 500);\n font-size: var(--emw--font-size-x-small, 12px);\n box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);\n backdrop-filter: blur(20px);\n}\n.card__badge span {\n font-weight: var(--emw--font-weight-bold, 700);\n}\n\n.info-item {\n line-height: 24px;\n font-size: var(--emw--font-size-small, 14px);\n font-weight: var(--emw--font-weight-bold, 700);\n color: var(--emw--color-primary, #1dbf51);\n}\n@container challenge-list (min-width: 576px) {\n .info-item {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n vertical-align: bottom;\n }\n}\n.info-item__label {\n font-weight: var(--emw--font-weight-medium, 500);\n margin-right: 3px;\n color: var(--emw--color-gray-150, #C8D6CE);\n}\n.info-item__tooltip {\n position: absolute;\n line-height: 22px;\n padding: 8px 12px;\n border-radius: 8px;\n opacity: 1;\n z-index: 200;\n white-space: nowrap;\n font-size: var(--emw--font-size-x-small, 12px);\n font-weight: var(--emw--font-weight-medium, 500);\n color: var(--emw--color-white, #FFFFFF);\n background-color: var(--emw--color-background-secondary, #1B1C2B);\n}\n.info-item__tooltip::before {\n content: \"\";\n position: absolute;\n top: -5px;\n left: 50%;\n transform: translateX(-50%);\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid var(--emw--color-background-secondary, #1B1C2B);\n width: 0;\n height: 0;\n z-index: 201;\n}";
|
|
118
|
+
const CasinoChallengeCardStyle0 = casinoChallengeCardCss;
|
|
119
|
+
|
|
120
|
+
const CasinoChallengeCard = class {
|
|
121
|
+
constructor(hostRef) {
|
|
122
|
+
index.registerInstance(this, hostRef);
|
|
123
|
+
this.defaultLanguage = 'en';
|
|
124
|
+
this.onMouseEnterHandler = (index, el) => {
|
|
125
|
+
if (el.scrollWidth > el.clientWidth) {
|
|
126
|
+
this.tooltipIndex = index;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
this.onMouseLeaveHandler = () => {
|
|
130
|
+
this.tooltipIndex = null;
|
|
131
|
+
};
|
|
132
|
+
this.mbSource = undefined;
|
|
133
|
+
this.clientStyling = undefined;
|
|
134
|
+
this.clientStylingUrl = undefined;
|
|
135
|
+
this.translationUrl = '';
|
|
136
|
+
this.language = 'en';
|
|
137
|
+
this.challenge = undefined;
|
|
138
|
+
this.tooltipIndex = null;
|
|
139
|
+
this.timeLeft = undefined;
|
|
140
|
+
}
|
|
141
|
+
get infoItems() {
|
|
142
|
+
const level1 = this.challenge.ChallengeLevels[0];
|
|
143
|
+
const target = level1.Target;
|
|
144
|
+
const targetValue = target.TargetType === 0
|
|
145
|
+
? `${translate('placeBetsOf', this.language)} ${target.Turnover}`
|
|
146
|
+
: target.TargetType === 1
|
|
147
|
+
? `${translate('place', this.language)} ${target.Turnover} ${translate('bet', this.language)}`
|
|
148
|
+
: `${translate('place', this.language)} ${target.BetCount} ${translate('bets', this.language)}`;
|
|
149
|
+
const rewardValue = level1.Rewards.map((r) => r.RewardDescription).join(' + ');
|
|
150
|
+
return [
|
|
151
|
+
{
|
|
152
|
+
lable: translate('totalLevels', this.language),
|
|
153
|
+
value: this.challenge.ChallengeLevels.length
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
lable: translate('level1', this.language),
|
|
157
|
+
value: targetValue
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
lable: translate('get', this.language),
|
|
161
|
+
value: rewardValue
|
|
162
|
+
}
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
166
|
+
if (newValue != oldValue) {
|
|
167
|
+
casinoChallengesList.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
171
|
+
if (newValue != oldValue) {
|
|
172
|
+
casinoChallengesList.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
176
|
+
if (newValue != oldValue) {
|
|
177
|
+
casinoChallengesList.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
connectedCallback() {
|
|
181
|
+
this.timerId = setInterval(() => {
|
|
182
|
+
this.updateTime();
|
|
183
|
+
}, 1000);
|
|
184
|
+
}
|
|
185
|
+
componentWillLoad() {
|
|
186
|
+
if (this.translationUrl) {
|
|
187
|
+
resolveTranslationUrl(this.translationUrl);
|
|
188
|
+
}
|
|
189
|
+
this.updateTime();
|
|
190
|
+
}
|
|
191
|
+
componentDidLoad() {
|
|
192
|
+
if (this.stylingContainer) {
|
|
193
|
+
if (this.mbSource)
|
|
194
|
+
casinoChallengesList.setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
195
|
+
if (this.clientStyling)
|
|
196
|
+
casinoChallengesList.setClientStyling(this.stylingContainer, this.clientStyling);
|
|
197
|
+
if (this.clientStylingUrl)
|
|
198
|
+
casinoChallengesList.setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
disconnectedCallback() {
|
|
202
|
+
if (this.stylingSubscription) {
|
|
203
|
+
this.stylingSubscription.unsubscribe();
|
|
204
|
+
}
|
|
205
|
+
clearInterval(this.timerId);
|
|
206
|
+
}
|
|
207
|
+
updateTime() {
|
|
208
|
+
var _a;
|
|
209
|
+
this.timeLeft = getTimeLeft((_a = this.challenge) === null || _a === void 0 ? void 0 : _a.ChallengeEndTime);
|
|
210
|
+
}
|
|
211
|
+
renderInfoItem(item, index$1) {
|
|
212
|
+
return (index.h("div", { class: "info-item", onMouseEnter: (e) => this.onMouseEnterHandler(index$1, e.currentTarget), onMouseLeave: this.onMouseLeaveHandler }, index.h("span", { class: "info-item__label" }, item.lable), item.value, this.tooltipIndex === index$1 && index.h("div", { class: "info-item__tooltip" }, item.value)));
|
|
213
|
+
}
|
|
214
|
+
renderCardBadge() {
|
|
215
|
+
return (index.h("div", { class: "card__badge" }, this.timeLeft
|
|
216
|
+
? [translate('endsIn', this.language), ' - ', index.h("span", null, this.timeLeft)]
|
|
217
|
+
: translate('expired', this.language)));
|
|
218
|
+
}
|
|
219
|
+
render() {
|
|
220
|
+
return (index.h("div", { key: 'ddbd3e0d20b4d75ed70120798c45d7c03715b7df', ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '3ca0c4b6ad25b4f60077b894bf73c9686f67a677', class: "card" }, index.h("img", { key: '1712546c27e75e04bde5832c521038bfd418e57f', class: "card__image", src: this.challenge.ChallengePresentations[this.language].Url ||
|
|
221
|
+
this.challenge.ChallengePresentations[this.defaultLanguage].Url }), this.renderCardBadge(), index.h("div", { key: '238041db616391c2594bef46778649b8b6282097', class: "card__content" }, index.h("h1", { key: 'd377b99c7758460df8b1a6e8e39059959347430f', class: "card__title" }, this.challenge.ChallengePresentations[this.language].PresentationName ||
|
|
222
|
+
this.challenge.ChallengePresentations[this.defaultLanguage].PresentationName), this.infoItems.map((x, index) => this.renderInfoItem(x, index)), index.h("button", { key: 'b53707ce7881cbf16321e3d3728a0e769af6589a', class: "card__button" }, translate('viewDetails', this.language))))));
|
|
223
|
+
}
|
|
224
|
+
static get watchers() { return {
|
|
225
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
226
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
227
|
+
"mbSource": ["handleMbSourceChange"]
|
|
228
|
+
}; }
|
|
229
|
+
};
|
|
230
|
+
CasinoChallengeCard.style = CasinoChallengeCardStyle0;
|
|
231
|
+
|
|
232
|
+
const uiSkeletonCss = ":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
|
|
233
|
+
const UiSkeletonStyle0 = uiSkeletonCss;
|
|
234
|
+
|
|
235
|
+
const UiSkeleton = class {
|
|
236
|
+
constructor(hostRef) {
|
|
237
|
+
index.registerInstance(this, hostRef);
|
|
238
|
+
this.stylingValue = {
|
|
239
|
+
width: this.handleStylingProps(this.width),
|
|
240
|
+
height: this.handleStylingProps(this.height),
|
|
241
|
+
borderRadius: this.handleStylingProps(this.borderRadius),
|
|
242
|
+
marginBottom: this.handleStylingProps(this.marginBottom),
|
|
243
|
+
marginTop: this.handleStylingProps(this.marginTop),
|
|
244
|
+
marginLeft: this.handleStylingProps(this.marginLeft),
|
|
245
|
+
marginRight: this.handleStylingProps(this.marginRight),
|
|
246
|
+
size: this.handleStylingProps(this.size)
|
|
247
|
+
};
|
|
248
|
+
this.structure = undefined;
|
|
249
|
+
this.width = 'unset';
|
|
250
|
+
this.height = 'unset';
|
|
251
|
+
this.borderRadius = 'unset';
|
|
252
|
+
this.marginBottom = 'unset';
|
|
253
|
+
this.marginTop = 'unset';
|
|
254
|
+
this.marginLeft = 'unset';
|
|
255
|
+
this.marginRight = 'unset';
|
|
256
|
+
this.animation = true;
|
|
257
|
+
this.rows = 0;
|
|
258
|
+
this.size = '100%';
|
|
259
|
+
}
|
|
260
|
+
handleStructureChange(newValue, oldValue) {
|
|
261
|
+
if (oldValue !== newValue) {
|
|
262
|
+
this.handleStructure(newValue);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
handleStylingProps(value) {
|
|
266
|
+
switch (typeof value) {
|
|
267
|
+
case 'number':
|
|
268
|
+
return value === 0 ? 0 : `${value}px`;
|
|
269
|
+
case 'undefined':
|
|
270
|
+
return 'unset';
|
|
271
|
+
case 'string':
|
|
272
|
+
if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
|
|
273
|
+
value.endsWith('px') ||
|
|
274
|
+
value.endsWith('%')) {
|
|
275
|
+
return value;
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return 'unset';
|
|
279
|
+
}
|
|
280
|
+
default:
|
|
281
|
+
return 'unset';
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
handleStructure(structure) {
|
|
285
|
+
switch (structure) {
|
|
286
|
+
case 'logo':
|
|
287
|
+
return this.renderLogo();
|
|
288
|
+
case 'image':
|
|
289
|
+
return this.renderImage();
|
|
290
|
+
case 'title':
|
|
291
|
+
return this.renderTitle();
|
|
292
|
+
case 'text':
|
|
293
|
+
return this.renderText();
|
|
294
|
+
case 'rectangle':
|
|
295
|
+
return this.renderRectangle();
|
|
296
|
+
case 'circle':
|
|
297
|
+
return this.renderCircle();
|
|
298
|
+
default:
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
renderLogo() {
|
|
303
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
|
|
304
|
+
}
|
|
305
|
+
renderImage() {
|
|
306
|
+
return index.h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
|
|
307
|
+
}
|
|
308
|
+
renderTitle() {
|
|
309
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
|
|
310
|
+
}
|
|
311
|
+
renderText() {
|
|
312
|
+
return (index.h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index$1) => (index.h("div", { key: index$1, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
|
|
313
|
+
}
|
|
314
|
+
renderRectangle() {
|
|
315
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
|
|
316
|
+
}
|
|
317
|
+
renderCircle() {
|
|
318
|
+
return (index.h("div", { class: "SkeletonContainer" }, index.h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
|
|
319
|
+
}
|
|
320
|
+
render() {
|
|
321
|
+
let styleBlock = '';
|
|
322
|
+
switch (this.structure) {
|
|
323
|
+
case 'logo':
|
|
324
|
+
styleBlock = `
|
|
325
|
+
:host {
|
|
326
|
+
--emw-skeleton-logo-width: ${this.stylingValue.width};
|
|
327
|
+
--emw-skeleton-logo-height: ${this.stylingValue.height};
|
|
328
|
+
--emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
|
|
329
|
+
--emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
|
|
330
|
+
--emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
|
|
331
|
+
--emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
|
|
332
|
+
--emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
|
|
333
|
+
}
|
|
334
|
+
`;
|
|
335
|
+
break;
|
|
336
|
+
case 'image':
|
|
337
|
+
styleBlock = `
|
|
338
|
+
:host {
|
|
339
|
+
--emw-skeleton-image-width: ${this.stylingValue.width};
|
|
340
|
+
--emw-skeleton-image-height: ${this.stylingValue.height};
|
|
341
|
+
--emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
|
|
342
|
+
--emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
|
|
343
|
+
--emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
|
|
344
|
+
--emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
|
|
345
|
+
--emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
|
|
346
|
+
}
|
|
347
|
+
`;
|
|
348
|
+
break;
|
|
349
|
+
case 'title':
|
|
350
|
+
styleBlock = `
|
|
351
|
+
:host {
|
|
352
|
+
--emw-skeleton-title-width: ${this.stylingValue.width};
|
|
353
|
+
--emw-skeleton-title-height: ${this.stylingValue.height};
|
|
354
|
+
--emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
|
|
355
|
+
--emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
|
|
356
|
+
--emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
|
|
357
|
+
--emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
|
|
358
|
+
--emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
|
|
359
|
+
}
|
|
360
|
+
`;
|
|
361
|
+
break;
|
|
362
|
+
case 'text':
|
|
363
|
+
styleBlock = `
|
|
364
|
+
:host {
|
|
365
|
+
--emw-skeleton-text-width: ${this.stylingValue.width};
|
|
366
|
+
--emw-skeleton-text-height: ${this.stylingValue.height};
|
|
367
|
+
--emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
|
|
368
|
+
--emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
|
|
369
|
+
--emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
|
|
370
|
+
--emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
|
|
371
|
+
--emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
|
|
372
|
+
}
|
|
373
|
+
`;
|
|
374
|
+
break;
|
|
375
|
+
case 'rectangle':
|
|
376
|
+
styleBlock = `
|
|
377
|
+
:host {
|
|
378
|
+
--emw-skeleton-rectangle-width: ${this.stylingValue.width};
|
|
379
|
+
--emw-skeleton-rectangle-height: ${this.stylingValue.height};
|
|
380
|
+
--emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
|
|
381
|
+
--emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
|
|
382
|
+
--emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
|
|
383
|
+
--emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
|
|
384
|
+
--emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
|
|
385
|
+
}
|
|
386
|
+
`;
|
|
387
|
+
break;
|
|
388
|
+
case 'circle':
|
|
389
|
+
styleBlock = `
|
|
390
|
+
:host {
|
|
391
|
+
--emw-skeleton-circle-size: ${this.stylingValue.size};
|
|
392
|
+
}
|
|
393
|
+
`;
|
|
394
|
+
break;
|
|
395
|
+
default:
|
|
396
|
+
styleBlock = '';
|
|
397
|
+
}
|
|
398
|
+
return (index.h(index.Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, index.h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
|
|
399
|
+
}
|
|
400
|
+
static get watchers() { return {
|
|
401
|
+
"structure": ["handleStructureChange"]
|
|
402
|
+
}; }
|
|
403
|
+
};
|
|
404
|
+
UiSkeleton.style = UiSkeletonStyle0;
|
|
405
|
+
|
|
406
|
+
exports.casino_challenges_list = casinoChallengesList.CasinoChallengeList;
|
|
407
|
+
exports.casino_challenge_card = CasinoChallengeCard;
|
|
408
|
+
exports.ui_skeleton = UiSkeleton;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
require('@everymatrix/casino-challenge-card');
|
|
3
|
+
const index = require('./index-2a526238.js');
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @name setClientStyling
|
|
@@ -153,3 +152,6 @@ const CasinoChallengeList = class {
|
|
|
153
152
|
CasinoChallengeList.style = CasinoChallengesListStyle0;
|
|
154
153
|
|
|
155
154
|
exports.CasinoChallengeList = CasinoChallengeList;
|
|
155
|
+
exports.setClientStyling = setClientStyling;
|
|
156
|
+
exports.setClientStylingURL = setClientStylingURL;
|
|
157
|
+
exports.setStreamStyling = setStreamStyling;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-2a526238.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["casino-
|
|
22
|
+
return index.bootstrapLazy([["casino-challenge-card_3.cjs",[[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenge":[16],"tooltipIndex":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|