@everymatrix/casino-challenges-overlay-modal 0.16.0 → 0.16.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-overlay-modal/casino-challenges-overlay-modal-a6da84b6.js +1 -0
- package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal.entry.js +1 -1
- package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal.esm.js +1 -1
- package/dist/casino-challenges-overlay-modal/index-603664b0.js +2 -0
- package/dist/casino-challenges-overlay-modal/index.esm.js +1 -1
- package/dist/cjs/casino-challenges-overlay-modal-5004ed4a.js +369 -0
- package/dist/cjs/casino-challenges-overlay-modal.cjs.entry.js +2 -2
- package/dist/cjs/casino-challenges-overlay-modal.cjs.js +2 -2
- package/dist/cjs/{index-c1a8ddc1.js → index-3aa45572.js} +26 -3
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.css +191 -36
- package/dist/collection/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.js +158 -1
- package/dist/collection/utils/locale.utils.js +10 -2
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/utils.js +7 -3
- package/dist/esm/casino-challenges-overlay-modal-a6da84b6.js +367 -0
- package/dist/esm/casino-challenges-overlay-modal.entry.js +2 -2
- package/dist/esm/casino-challenges-overlay-modal.js +3 -3
- package/dist/esm/{index-f13cfc58.js → index-603664b0.js} +26 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.d.ts +20 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/utils/types.d.ts +4 -0
- package/dist/types/utils/utils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal-f5be3740.js +0 -1
- package/dist/casino-challenges-overlay-modal/index-f13cfc58.js +0 -2
- package/dist/cjs/casino-challenges-overlay-modal-3fbdf2d7.js +0 -244
- package/dist/esm/casino-challenges-overlay-modal-f5be3740.js +0 -242
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as i}from"./index-603664b0.js";const t="__WIDGET_GLOBAL_STYLE_CACHE__";function M(e,i){if(e){const t=document.createElement("style");t.innerHTML=i,e.appendChild(t)}}function o(e,i){if(!e||!i)return;const t=new URL(i);fetch(t.href).then((e=>e.text())).then((i=>{const t=document.createElement("style");t.innerHTML=i,e&&e.appendChild(t)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function a(e,i,M,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return M=function(e,i){const t=document.createElement("style");return window.emMessageBus.subscribe(i,(i=>{e&&(t.innerHTML=i,e.appendChild(t))}))}(e,i),M;window[t]||(window[t]={}),M=function(e,i){return window.emMessageBus.subscribe(i,(M=>{if(!e)return;const o=e.getRootNode(),a=window[t];let r=a[i]&&a[i].sheet;r?a[i].refCount=a[i].refCount+1:(r=new CSSStyleSheet,r.replaceSync(M),a[i]={sheet:r,refCount:1});const n=o.adoptedStyleSheets||[];n.includes(r)||(o.adoptedStyleSheets=[...n,r])}))}(e,i);const a=M.unsubscribe.bind(M);return M.unsubscribe=()=>{if(window[t][i]){const e=window[t][i];e.refCount>1?e.refCount=e.refCount-1:delete window[t][i]}a()},M}const r={en:{congrats:"Congratulations!",continue:"Continue",errorBtnText:"Ok",errorTitle:"Reward failed",errorSubTitle:"Sorry — we couldn’t grant the reward. Please try again.",level:"Level",completed:"has been completed!",youWon:"You have won",physicalReward:"for physical rewards please contact ",linkText:"Customer Support",playNowOrLater:"Play your free spins now or come back later.",rewardInLobby:"You can find your reward in the relevant section of the Lobby Widget.",assistance:"If you need any assistance, please contact",useSpinsNow:"Use spins now"},da:{congrats:"Tillykke!",continue:"Fortsæt",errorBtnText:"Ok",errorTitle:"Belønning fejlede",errorSubTitle:"Beklager — vi kunne ikke tildele belønning. Prøv venligst igen.",level:"Niveau",completed:"er blevet gennemført!",youWon:"Du har vundet",physicalReward:"Ved fysiske præmier, venligst kontakt ",linkText:"Kundeservice",playNowOrLater:"Brug dine freespins nu eller gem dem til senere.",rewardInLobby:"Du kan finde din belønning under ”Mine tilbud”",assistance:"Har du brug for hjælp? Kontakt venligst",useSpinsNow:"Brug dine spins nu"}},n=(e,i)=>r[void 0!==i&&i in r?i:"en"][e],s=()=>{let e=window.navigator.userAgent;return!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))},d=class{constructor(i){e(this,i),this.startX=0,this.currentTranslate=0,this.prevTranslate=0,this.isDragging=!1,this.moved=!1,this.threshold=50,this.onPointerDown=e=>{var i;this.isDragging=!0,this.moved=!1,this.startX=e.clientX,null===(i=this.sliderContainer)||void 0===i||i.setPointerCapture(e.pointerId)},this.onPointerMove=e=>{if(!this.isDragging)return;const i=e.clientX-this.startX;Math.abs(i)>5&&(this.moved=!0),this.currentTranslate=this.prevTranslate+i,this.setSliderPosition(this.currentTranslate)},this.onPointerUp=e=>{var i;if(!this.isDragging)return;this.isDragging=!1,null===(i=this.sliderContainer)||void 0===i||i.releasePointerCapture(e.pointerId);const t=this.currentTranslate-this.prevTranslate;t<-this.threshold?this.next():t>this.threshold?this.prev():this.setPositionByIndex()},this.next=()=>{this.bonusProgramGames.length&&(this.currentIndex!==this.bonusProgramGames.length-1?(this.currentIndex=(this.currentIndex+1)%this.bonusProgramGames.length,this.setPositionByIndex()):this.setPositionByIndex())},this.prev=()=>{this.bonusProgramGames.length&&(0!==this.currentIndex?(this.currentIndex=(this.currentIndex-1+this.bonusProgramGames.length)%this.bonusProgramGames.length,this.setPositionByIndex()):this.setPositionByIndex())},this.onSlideClick=e=>{this.moved||e&&window.postMessage({type:"ChallengeInGameRedirect",data:{Slug:e}},window.location.href)},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isOpen=!1,this.reward="",this.addition=!1,this.handleClick=()=>{},this.errored=!1,this.orderNumber=0,this.isFreeSpinsGranted=!1,this.bonusProgramGames=[],this.currentIndex=0}handleClientStylingChange(e,i){e!=i&&M(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,i){e!=i&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,i){e!=i&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleBonusProgramGameChange(e){this.currentIndex>=e.length&&(this.currentIndex=0,this.setPositionByIndex())}componentWillLoad(){this.translationUrl&&(async e=>{if(e)try{const t=await fetch(e);if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const M=await t.json();i=M,Object.keys(i).forEach((e=>{r[e]||(r[e]={});for(let t in i[e])r[e][t]=i[e][t]}))}catch(e){console.error("Failed to fetch or parse translations from URL:",e)}var i})(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&M(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)),this.setPositionByIndex()}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setSliderPosition(e){this.bonusProgramGames.length<2||this.sliderContainer&&(this.sliderContainer.style.transform=`translateX(${e}px)`)}setPositionByIndex(){var e;const i=(null===(e=this.sliderContainer)||void 0===e?void 0:e.clientWidth)||0;this.currentTranslate=-this.currentIndex*i,this.prevTranslate=this.currentTranslate,this.setSliderPosition(this.currentTranslate)}render(){var e;return i("div",{key:"a069be23593a04f768fcca1b86094d3af8e58ca3",ref:e=>this.stylingContainer=e,class:{ModalOverlay:!0,Mobile:s()||window.innerWidth<=768,Open:this.isOpen}},i("div",{key:"f41925c7697a9cd1c3da2f61c4e3a0673bd5728b",class:"ModalWinAnimation"}),i("div",{key:"9fac97b95cc682790d5e925fc40782ae71b9f54c",class:"ModalContent GradientBorder"},i("div",{key:"14683c5830b0317dd11d064a6a88a69f4805d250",class:"InnerContainer"},!this.errored&&i("div",{key:"2b7091ea3619423d41d98440d7800d95ec92a1bc",class:"ImageWrapper"},i("img",{key:"d23cfe79a0e7a2e138c0bb1e9894cc7534e5c173",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDIyIDIzIiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTcuNDY0MjkgMi41QzcuMjE0NDIgMi41IDYuOTcxMDYgMi42MDA5IDYuNzg4NzggMi43ODY0OUM2LjYwNTkgMi45NzI3IDYuNTAwMDEgMy4yMjkwMyA2LjUwMDAxIDMuNUM2LjUwMDAxIDMuNzcwOTcgNi42MDU5IDQuMDI3MyA2Ljc4ODc4IDQuMjEzNTFDNi45NzEwNiA0LjM5OTEgNy4yMTQ0MiA0LjUgNy40NjQyOSA0LjVIOS42MzQyNUM5LjU2MTg3IDQuMzI4NjUgOS40Nzg1NyA0LjE1MTE2IDkuMzgzNTYgMy45NzUyN0M4Ljg5NzY5IDMuMDc1ODEgOC4yNzM5OCAyLjUgNy40NjQyOSAyLjVaTTEwIDYuNVY5LjVMMi42MDAwMSA5LjVDMi4zMDM0OCA5LjUgMi4xNDEyMiA5LjQ5OTIyIDIuMDI0NjQgOS40ODk3QzIuMDIgOS40ODkzMiAyLjAxNTYgOS40ODg5MyAyLjAxMTQ1IDkuNDg4NTVDMi4wMTEwNyA5LjQ4NDQgMi4wMTA2OSA5LjQ4MDAxIDIuMDEwMzEgOS40NzUzN0MyLjAwMDc4IDkuMzU4NzggMi4wMDAwMSA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jcgMTUuMjExMiAyLjc4NjQ5QzE1LjAyODkgMi42MDA5IDE0Ljc4NTYgMi41IDE0LjUzNTcgMi41QzEzLjcyNiAyLjUgMTMuMTAyMyAzLjA3NTgxIDEyLjYxNjUgMy45NzUyN0MxMi41MjE0IDQuMTUxMTYgMTIuNDM4MSA0LjMyODY1IDEyLjM2NTggNC41SDE0LjUzNTdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMjA1MV80MzkpIi8+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjA1MV80MzkiIHgxPSIwIiB5MT0iMTEuNSIgeDI9IjIyIiB5Mj0iMTEuNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMUU2NTRGIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzFDOEQ1NiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+Cjwvc3ZnPgo=",alt:"gift-box-icon"})),i("h1",{key:"f95fbb76d703c28c45c568a0163df747dd269556",class:"ModalHeader"},n(this.errored?"errorTitle":"congrats",this.language)),this.errored?i("div",{class:"ModalErrorMessage"},n("errorSubTitle",this.language)):i("div",{class:"ModalSubtitle"},`${n("level",this.language)} ${this.orderNumber} ${n("completed",this.language)}`,i("div",null,n("youWon",this.language)),i("div",{class:"ModalReward"},this.reward),this.isFreeSpinsGranted&&i("div",{class:"ModalAddition"},n("playNowOrLater",this.language)),i("div",{class:"ModalAddition"},n("rewardInLobby",this.language))),this.addition&&i("div",{key:"201e5f0d4b3e04797c0478429dcd3c22dd30a4d3",class:"ModalAddition"},i("div",{key:"ef793ed69b572f4a9654f55cae0a71dd66af0ad6"},n("physicalReward",this.language)),i("span",{key:"131e4d36dc54d3682469a61c7196f0e379efe42f"},n("linkText",this.language))),i("button",{key:"bca6bc399277288d0ca2d9bd453eef6f6c9793e2",class:"ModalAction",onClick:this.handleClick},n(this.errored?"errorBtnText":"continue",this.language)),this.isFreeSpinsGranted&&(null===(e=this.bonusProgramGames)||void 0===e?void 0:e.length)>0&&i("div",{key:"13b921d1ff411987b9045950b1676e22b52481ab",class:"ModalSliderWrapper"},i("div",{key:"b48c9553aec2d709cede91d67b678aa545ed03a2",class:"ModalSlider",ref:e=>this.sliderContainer=e,onPointerDown:this.onPointerDown,onPointerMove:this.onPointerMove,onPointerUp:this.onPointerUp,onPointerLeave:this.onPointerUp},this.bonusProgramGames.map((e=>i("div",{class:"ModalSlide",key:e.GameSlug,onClick:()=>this.onSlideClick(e.GameSlug)},i("div",{class:"ModalSlideImageWrapper"},i("img",{src:e.Thumbnail,alt:""})),i("div",{class:"ModalSlideSpins"},n("useSpinsNow",this.language),i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L5.13807 4.19526C5.39842 4.45561 5.39842 4.87772 5.13807 5.13807L1.13807 9.13807C0.877722 9.39842 0.455612 9.39842 0.195262 9.13807C-0.0650874 8.87772 -0.0650874 8.45561 0.195262 8.19526L3.72386 4.66667L0.195262 1.13807C-0.0650874 0.877722 -0.0650874 0.455612 0.195262 0.195262Z",fill:"white"}))))))),this.bonusProgramGames.length>1&&i("div",{key:"5878e9df2ba211fbe330d959c89278d611b0d501"},i("button",{key:"25008b1e3500bdde9b1cf9285640ca342e8490a7",class:{prev:!0,disabled:0===this.currentIndex},onClick:this.prev},i("svg",{key:"2433588c5615f8b788022f8859a98f9d16504e84",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},i("path",{key:"14d34bf5a6538e458b7c18bb481f6a5b7c2f55bf",d:"M5 1L1 5L5 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),i("button",{key:"63be7d730151f3741802f415ec3c9e66508b78e7",class:{next:!0,disabled:this.currentIndex===this.bonusProgramGames.length-1},onClick:this.next},i("svg",{key:"52f1005fe412de34c71060974688874e5bf45a47",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},i("path",{key:"1af4edf8dc717f54d5735d34ec27de8313918e0d",d:"M1 1L5 5L1 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),i("div",{key:"13201c67ba3cb6a1215fb41f5a6fe3ae60864bdd",class:"ModalSliderDots"},this.bonusProgramGames.map(((e,t)=>i("span",{class:{ModalSliderDot:!0,active:t===this.currentIndex},onClick:()=>{this.currentIndex=t,this.setPositionByIndex()}})))))))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],bonusProgramGames:["handleBonusProgramGameChange"]}}};d.style=':host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer;touch-action:manipulation}button:focus{outline:none}.ModalOverlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0);justify-content:center;align-items:center;z-index:1}.ModalOverlay.Open{display:flex}.ModalContent{display:flex;flex-direction:column;align-items:center;position:relative;background:linear-gradient(90deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:60px;border-radius:26px;border:2px solid var(--emw--color-primary-variant, #1e654f);width:540px;max-width:90%;text-align:center;max-height:90dvh;min-height:100px;font-family:"Roboto", sans-serif}.InnerContainer{border-radius:20px;background:#f9f8f8;padding:40px 50px;width:100%;display:flex;flex-direction:column;align-items:center}.ImageWrapper{margin-bottom:10px}.ModalHeader{color:var(--emw--color-typography, #212529);text-align:center;font-family:var(--emw--button-typography, "PF BeauSans Pro", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700);line-height:normal;text-transform:uppercase;letter-spacing:1px}.ModalSubtitle{color:var(--emw--color-gray-300, #212529);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weigh-normal, 400);margin-top:10px;line-height:24px;width:316px}.ModalErrorMessage{color:var(--emw--color-typography, #212529);font-size:var(--emw--font-size-medium, 16px);line-height:24px;margin:10px 0}.ModalReward{background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:var(--emw--button-typography, "PF BeauSans Pro", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ModalAddition{color:var(--emw--color-gray-100, #727672);text-align:center;font-family:var(--emw--button-typography, "Roboto", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:400;align-content:center;margin-top:10px;line-height:24px}.ModalAddition span{background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-style:normal;font-weight:700;line-height:15px;text-decoration:none;position:relative}.ModalAddition span::after{content:"";position:absolute;left:0;bottom:0;height:1px;width:100%;background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%)}.ModalAction{border-radius:var(--emw--button-border-radius, 99px);border:2px solid var(--emw--button-border-color, #083b17);background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);padding:9px 20px;margin-top:24px;text-transform:uppercase;color:var(--emw--button-text-color, #fff);text-align:center;font-family:var(--emw--button-typography, "PF BeauSans Pro", sans-serif);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-bold, 700);min-width:100px}.ModalSliderWrapper{margin-top:24px;position:relative;overflow:hidden;width:316px;justify-self:center}.ModalSlider{display:flex;transition:transform 0.3s ease;cursor:pointer;touch-action:pan-y}.ModalSlider:active{cursor:grabbing}.ModalSlide{min-width:100%;flex-shrink:0;position:relative;display:flex;justify-content:center}.ModalSlide .ModalSlideSpins{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:99px;width:188px;height:48px;text-transform:uppercase;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-white, white);align-content:center;background:var(--emw--use-spins-button-bg, linear-gradient(180deg, #ea9018 0%, #e0a84e 100%))}.ModalSlide .ModalSlideSpins svg{margin-left:8px}.ModalSlide .ModalSlideImageWrapper{position:relative;width:244px;height:144px;border-radius:12px;overflow:hidden}.ModalSlide .ModalSlideImageWrapper img{width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;-webkit-user-drag:none}.ModalSlide .ModalSlideImageWrapper::after{content:"";position:absolute;inset:0;background:var(--emw--color-black-shadow, rgba(0, 0, 0, 0.5019607843))}.prev,.next{position:absolute;top:42%;transform:translateY(-50%);stroke:white;width:22px;height:22px;border-radius:50%;border:2px solid var(--emw--button-border-color, #083b17);background:var(--emw--slider-arrow-primary-bg, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));display:flex;align-items:center;justify-content:center}.prev.disabled,.next.disabled{stroke:var(--emw--color-gray-100, #727672);background:var(--emw--ingame-color-black40, rgba(0, 0, 0, 0.4));border-color:var(--emw--color-gray-100, #727672)}.prev{left:2px}.next{right:2px}.ModalSliderDots{display:flex;justify-content:center;margin-top:10px}.ModalSliderDot{width:8px;height:8px;border-radius:50%;background:var(--emw--color-gray-50, #e2e2e2);margin:8px;cursor:pointer}.ModalSliderDot.active{background:var(--emw--border-success-color, #00b74f)}.Mobile .ModalContent{padding:26px}.Mobile .InnerContainer{padding:25px}.Mobile .ImageWrapper{margin-bottom:6px}.Mobile .ModalHeader{margin-bottom:16px}.Mobile .ModalAddition{margin-top:8px}.Mobile .ModalAction,.Mobile .ModalSliderWrapper{margin-top:20px}.Mobile .ModalSliderWrapper{width:230px;justify-self:center}.Mobile .ModalSliderWrapper .prev,.Mobile .ModalSliderWrapper .next{display:none}.Mobile .ModalSliderWrapper .ModalSlideImageWrapper{width:220px;height:125px}.Mobile .ModalSliderWrapper .ModalSlideSpins{width:154px;height:34px;font-size:var(--emw--font-size-x-small, 12px)}.Mobile .ModalSliderWrapper .ModalSliderDot{margin:8px 4px}.Mobile .ModalSubtitle{width:220px}';export{d as C}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as casino_challenges_overlay_modal}from"./casino-challenges-overlay-modal-
|
|
1
|
+
export{C as casino_challenges_overlay_modal}from"./casino-challenges-overlay-modal-a6da84b6.js";import"./index-603664b0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./index-
|
|
1
|
+
import{p as e,b as n}from"./index-603664b0.js";export{s as setNonce}from"./index-603664b0.js";import{g as r}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,r={};return""!==n&&(r.resourcesUrl=new URL(".",n).href),e(r)})().then((async e=>(await r(),n([["casino-challenges-overlay-modal",[[1,"casino-challenges-overlay-modal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isOpen:[516,"is-open"],reward:[513],addition:[516],handleClick:[16],errored:[516],orderNumber:[514,"order-number"],isFreeSpinsGranted:[516,"is-free-spins-granted"],bonusProgramGames:[16],currentIndex:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],bonusProgramGames:["handleBonusProgramGameChange"]}]]]],e))));
|
|
@@ -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="undefined"!=typeof window?window:{},a=u.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),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?b($):f.raf($))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{v(m),v(y),(d=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>P,unwrapErr:()=>L});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(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 E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(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?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 u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F=new WeakMap,N=e=>"sc-"+e.$,U=(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=D(n),s=D(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=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){}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(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(H);t=t.replace(q,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,D=e=>e?e.split(W):[],H="Capture",q=RegExp(H+"$"),G=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of V(Object.keys(o)))e in s||U(l,e,o[e],void 0,n,t.l);for(const e of V(Object.keys(s)))U(l,e,o[e],s[e],n,t.l)};function V(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var _=!1,z=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(_||(_="svg"===l.m),o=l.v=a.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),_&&"foreignObject"===l.m&&(_=!1),G(null,l,_),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=z(e,l,r),s&&o.appendChild(s);"svg"===l.m?_=!1:"foreignObject"===o.tagName&&(_=!0)}return o["s-hn"]=x,o},B=(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=z(null,n,o),r&&(l[o].v=r,X(i,r,t)))},I=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),K=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(G(e,t,_="svg"===r||"foreignObject"!==r&&_),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],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(J(h,m,o))K(h,m,o),h=t[++i],m=l[++c];else if(J(p,y,o))K(p,y,o),p=t[--f],y=l[--d];else if(J(h,y,o))K(h,y,o),X(e,h.v,p.v.nextSibling),h=t[++i],y=l[--d];else if(J(p,m,o))K(p,m,o),X(e,p.v,h.v),p=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=z(t&&t[c],n,u):(K(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=z(t&&t[c],n,c),m=l[++c]),s&&X(h.v.parentNode,s,h.v)}i>f?B(e,null==l[d+1]?null:l[d+1].v,n,l,c,d):c>d&&I(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),B(l,null,t,s,0,s.length-1)):null!==o&&I(o,0,o.length-1),_&&"svg"===r&&(_=!1)):e.i!==i&&(l.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),g((()=>ee(e,t)));e.l|=512},ee=(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=ie(n,"componentWillLoad")),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=N(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=F.get(e=e.head||e);if(r||F.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.O)?n:k(a);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);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(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.v=s.v=l.shadowRoot||l,M=l["s-sc"],K(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ce(t),ie(n,"componentDidLoad"),e.P(t),l||re()),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>Z(e,!1))),e.l&=-517},re=()=>{ce(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"casino-challenges-overlay-modal"}});return e.dispatchEvent(t),t})(u)))},ie=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,r;const i=e.prototype;if(t.L||t.R||e.watchers){e.watchers&&!t.R&&(t.R=e.watchers);const c=Object.entries(null!=(o=t.L)?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.$}" 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),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.L[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.R&&128&u){const e=o.R[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&Z(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.R)?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.R)?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},ae=e=>{ie(e,"disconnectedCallback")},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,w=y.querySelector("meta[charset]"),v=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],L:l[2],A:l[3]};4&c.l&&(S=!0),c.L=l[2],c.M=[],c.R=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.F=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.$}! 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),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.L&&Object.entries(l.L).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.N){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.N;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.$}#${t.U}" was not found`);l.isProxied||(n.R=l.watchers,ue(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()}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=N(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=()=>Z(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)?ae(e.t):(null==e?void 0:e.F)&&e.F.then((()=>ae(e.t)))}})()))}componentOnReady(){return n(this).F}};c.N=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ue(a,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(re,30)))},he=e=>f.O=e;export{fe as b,R as h,h as p,l as r,he as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengesOverlayModal}from"./casino-challenges-overlay-modal-
|
|
1
|
+
export{C as CasinoChallengesOverlayModal}from"./casino-challenges-overlay-modal-a6da84b6.js";import"./index-603664b0.js";
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const index = require('./index-3aa45572.js');
|
|
4
|
+
|
|
5
|
+
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name setClientStyling
|
|
9
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
10
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
11
|
+
* @param {string} clientStyling The style content
|
|
12
|
+
*/
|
|
13
|
+
function setClientStyling(stylingContainer, clientStyling) {
|
|
14
|
+
if (stylingContainer) {
|
|
15
|
+
const sheet = document.createElement('style');
|
|
16
|
+
sheet.innerHTML = clientStyling;
|
|
17
|
+
stylingContainer.appendChild(sheet);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @name setClientStylingURL
|
|
23
|
+
* @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
|
|
24
|
+
* @param {HTMLElement} stylingContainer The reference element of the widget
|
|
25
|
+
* @param {string} clientStylingUrl The URL of the style content
|
|
26
|
+
*/
|
|
27
|
+
function setClientStylingURL(stylingContainer, clientStylingUrl) {
|
|
28
|
+
if (!stylingContainer || !clientStylingUrl) return;
|
|
29
|
+
|
|
30
|
+
const url = new URL(clientStylingUrl);
|
|
31
|
+
|
|
32
|
+
fetch(url.href)
|
|
33
|
+
.then((res) => res.text())
|
|
34
|
+
.then((data) => {
|
|
35
|
+
const cssFile = document.createElement('style');
|
|
36
|
+
cssFile.innerHTML = data;
|
|
37
|
+
if (stylingContainer) {
|
|
38
|
+
stylingContainer.appendChild(cssFile);
|
|
39
|
+
}
|
|
40
|
+
})
|
|
41
|
+
.catch((err) => {
|
|
42
|
+
console.error('There was an error while trying to load client styling from URL', err);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @name setStreamLibrary
|
|
48
|
+
* @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
|
|
49
|
+
* @param {HTMLElement} stylingContainer The highest element of the widget
|
|
50
|
+
* @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
|
|
51
|
+
* @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
|
|
52
|
+
* @param {boolean} useAdoptedStyleSheets A flag to gradually enable testing of adoptedStyleSheets
|
|
53
|
+
*/
|
|
54
|
+
function setStreamStyling(stylingContainer, domain, subscription, useAdoptedStyleSheets = false) {
|
|
55
|
+
if (!window.emMessageBus) return;
|
|
56
|
+
|
|
57
|
+
const supportAdoptStyle = 'adoptedStyleSheets' in Document.prototype;
|
|
58
|
+
|
|
59
|
+
if (!supportAdoptStyle || !useAdoptedStyleSheets) {
|
|
60
|
+
subscription = getStyleTagSubscription(stylingContainer, domain);
|
|
61
|
+
|
|
62
|
+
return subscription;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (!window[StyleCacheKey]) {
|
|
66
|
+
window[StyleCacheKey] = {};
|
|
67
|
+
}
|
|
68
|
+
subscription = getAdoptStyleSubscription(stylingContainer, domain);
|
|
69
|
+
|
|
70
|
+
const originalUnsubscribe = subscription.unsubscribe.bind(subscription);
|
|
71
|
+
const wrappedUnsubscribe = () => {
|
|
72
|
+
if (window[StyleCacheKey][domain]) {
|
|
73
|
+
const cachedObject = window[StyleCacheKey][domain];
|
|
74
|
+
cachedObject.refCount > 1
|
|
75
|
+
? (cachedObject.refCount = cachedObject.refCount - 1)
|
|
76
|
+
: delete window[StyleCacheKey][domain];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
originalUnsubscribe();
|
|
80
|
+
};
|
|
81
|
+
subscription.unsubscribe = wrappedUnsubscribe;
|
|
82
|
+
|
|
83
|
+
return subscription;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function getStyleTagSubscription(stylingContainer, domain) {
|
|
87
|
+
const sheet = document.createElement('style');
|
|
88
|
+
|
|
89
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
90
|
+
if (stylingContainer) {
|
|
91
|
+
sheet.innerHTML = data;
|
|
92
|
+
stylingContainer.appendChild(sheet);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getAdoptStyleSubscription(stylingContainer, domain) {
|
|
98
|
+
return window.emMessageBus.subscribe(domain, (data) => {
|
|
99
|
+
if (!stylingContainer) return;
|
|
100
|
+
|
|
101
|
+
const shadowRoot = stylingContainer.getRootNode();
|
|
102
|
+
const cacheStyleObject = window[StyleCacheKey];
|
|
103
|
+
let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
|
|
104
|
+
|
|
105
|
+
if (!cachedStyle) {
|
|
106
|
+
cachedStyle = new CSSStyleSheet();
|
|
107
|
+
cachedStyle.replaceSync(data);
|
|
108
|
+
cacheStyleObject[domain] = {
|
|
109
|
+
sheet: cachedStyle,
|
|
110
|
+
refCount: 1
|
|
111
|
+
};
|
|
112
|
+
} else {
|
|
113
|
+
cacheStyleObject[domain].refCount = cacheStyleObject[domain].refCount + 1;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const currentSheets = shadowRoot.adoptedStyleSheets || [];
|
|
117
|
+
if (!currentSheets.includes(cachedStyle)) {
|
|
118
|
+
shad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UgMy45NzUyN0MxMi41MjE0IDQuMTUxMTYgMTIuNDM4MSA0LjMyODY1IDEyLjM2NTggNC41SDE0LjUzNTdaIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfMjA1MV80MzkpIi8+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjA1MV80MzkiIHgxPSIwIiB5MT0iMTEuNSIgeDI9IjIyIiB5Mj0iMTEuNSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMUU2NTRGIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzFDOEQ1NiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+Cjwvc3ZnPgo=';
|
|
124
|
+
|
|
125
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
126
|
+
const TRANSLATIONS = {
|
|
127
|
+
en: {
|
|
128
|
+
congrats: 'Congratulations!',
|
|
129
|
+
continue: 'Continue',
|
|
130
|
+
errorBtnText: 'Ok',
|
|
131
|
+
errorTitle: 'Reward failed',
|
|
132
|
+
errorSubTitle: 'Sorry — we couldn’t grant the reward. Please try again.',
|
|
133
|
+
level: 'Level',
|
|
134
|
+
completed: 'has been completed!',
|
|
135
|
+
youWon: 'You have won',
|
|
136
|
+
physicalReward: 'for physical rewards please contact ',
|
|
137
|
+
linkText: 'Customer Support',
|
|
138
|
+
playNowOrLater: 'Play your free spins now or come back later.',
|
|
139
|
+
rewardInLobby: 'You can find your reward in the relevant section of the Lobby Widget.',
|
|
140
|
+
assistance: 'If you need any assistance, please contact',
|
|
141
|
+
useSpinsNow: 'Use spins now'
|
|
142
|
+
},
|
|
143
|
+
da: {
|
|
144
|
+
congrats: 'Tillykke!',
|
|
145
|
+
continue: 'Fortsæt',
|
|
146
|
+
errorBtnText: 'Ok',
|
|
147
|
+
errorTitle: 'Belønning fejlede',
|
|
148
|
+
errorSubTitle: 'Beklager — vi kunne ikke tildele belønning. Prøv venligst igen.',
|
|
149
|
+
level: 'Niveau',
|
|
150
|
+
completed: 'er blevet gennemført!',
|
|
151
|
+
youWon: 'Du har vundet',
|
|
152
|
+
physicalReward: 'Ved fysiske præmier, venligst kontakt ',
|
|
153
|
+
linkText: 'Kundeservice',
|
|
154
|
+
playNowOrLater: 'Brug dine freespins nu eller gem dem til senere.',
|
|
155
|
+
rewardInLobby: 'Du kan finde din belønning under ”Mine tilbud”',
|
|
156
|
+
assistance: 'Har du brug for hjælp? Kontakt venligst',
|
|
157
|
+
useSpinsNow: 'Brug dine spins nu'
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const translate = (key, customLang) => {
|
|
161
|
+
const lang = customLang;
|
|
162
|
+
return TRANSLATIONS[lang !== undefined && lang in TRANSLATIONS ? lang : DEFAULT_LANGUAGE][key];
|
|
163
|
+
};
|
|
164
|
+
const getTranslations = (data) => {
|
|
165
|
+
Object.keys(data).forEach((item) => {
|
|
166
|
+
if (!TRANSLATIONS[item]) {
|
|
167
|
+
TRANSLATIONS[item] = {};
|
|
168
|
+
}
|
|
169
|
+
for (let key in data[item]) {
|
|
170
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
};
|
|
174
|
+
const resolveTranslationUrl = async (translationUrl) => {
|
|
175
|
+
if (translationUrl) {
|
|
176
|
+
try {
|
|
177
|
+
const response = await fetch(translationUrl);
|
|
178
|
+
if (!response.ok) {
|
|
179
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
180
|
+
}
|
|
181
|
+
const translations = await response.json();
|
|
182
|
+
getTranslations(translations);
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const isMobile = () => {
|
|
191
|
+
let userAgent = window.navigator.userAgent;
|
|
192
|
+
return !!(userAgent.toLowerCase().match(/android/i) ||
|
|
193
|
+
userAgent.toLowerCase().match(/blackberry|bb/i) ||
|
|
194
|
+
userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
|
|
195
|
+
userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
const casinoChallengesOverlayModalCss = ":host{display:block;font-family:inherit}*{box-sizing:border-box;margin:0;padding:0}button{border:none;background:none;cursor:pointer;touch-action:manipulation}button:focus{outline:none}.ModalOverlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0);justify-content:center;align-items:center;z-index:1}.ModalOverlay.Open{display:flex}.ModalContent{display:flex;flex-direction:column;align-items:center;position:relative;background:linear-gradient(90deg, var(--emw--color-background, #003e5c) 0.05%, var(--emw--color-background-secondary, #113b21) 87.69%);padding:60px;border-radius:26px;border:2px solid var(--emw--color-primary-variant, #1e654f);width:540px;max-width:90%;text-align:center;max-height:90dvh;min-height:100px;font-family:\"Roboto\", sans-serif}.InnerContainer{border-radius:20px;background:#f9f8f8;padding:40px 50px;width:100%;display:flex;flex-direction:column;align-items:center}.ImageWrapper{margin-bottom:10px}.ModalHeader{color:var(--emw--color-typography, #212529);text-align:center;font-family:var(--emw--button-typography, \"PF BeauSans Pro\", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700);line-height:normal;text-transform:uppercase;letter-spacing:1px}.ModalSubtitle{color:var(--emw--color-gray-300, #212529);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weigh-normal, 400);margin-top:10px;line-height:24px;width:316px}.ModalErrorMessage{color:var(--emw--color-typography, #212529);font-size:var(--emw--font-size-medium, 16px);line-height:24px;margin:10px 0}.ModalReward{background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-family:var(--emw--button-typography, \"PF BeauSans Pro\", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-bold, 700)}.ModalAddition{color:var(--emw--color-gray-100, #727672);text-align:center;font-family:var(--emw--button-typography, \"Roboto\", sans-serif);font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:400;align-content:center;margin-top:10px;line-height:24px}.ModalAddition span{background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-style:normal;font-weight:700;line-height:15px;text-decoration:none;position:relative}.ModalAddition span::after{content:\"\";position:absolute;left:0;bottom:0;height:1px;width:100%;background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%)}.ModalAction{border-radius:var(--emw--button-border-radius, 99px);border:2px solid var(--emw--button-border-color, #083b17);background:linear-gradient(90deg, var(--emw--color-primary, #24aa4d) 0%, var(--emw--color-background-secondary, #113f21) 100%);padding:9px 20px;margin-top:24px;text-transform:uppercase;color:var(--emw--button-text-color, #fff);text-align:center;font-family:var(--emw--button-typography, \"PF BeauSans Pro\", sans-serif);font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-bold, 700);min-width:100px}.ModalSliderWrapper{margin-top:24px;position:relative;overflow:hidden;width:316px;justify-self:center}.ModalSlider{display:flex;transition:transform 0.3s ease;cursor:pointer;touch-action:pan-y}.ModalSlider:active{cursor:grabbing}.ModalSlide{min-width:100%;flex-shrink:0;position:relative;display:flex;justify-content:center}.ModalSlide .ModalSlideSpins{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:99px;width:188px;height:48px;text-transform:uppercase;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-white, white);align-content:center;background:var(--emw--use-spins-button-bg, linear-gradient(180deg, #ea9018 0%, #e0a84e 100%))}.ModalSlide .ModalSlideSpins svg{margin-left:8px}.ModalSlide .ModalSlideImageWrapper{position:relative;width:244px;height:144px;border-radius:12px;overflow:hidden}.ModalSlide .ModalSlideImageWrapper img{width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none;-webkit-user-drag:none}.ModalSlide .ModalSlideImageWrapper::after{content:\"\";position:absolute;inset:0;background:var(--emw--color-black-shadow, rgba(0, 0, 0, 0.5019607843))}.prev,.next{position:absolute;top:42%;transform:translateY(-50%);stroke:white;width:22px;height:22px;border-radius:50%;border:2px solid var(--emw--button-border-color, #083b17);background:var(--emw--slider-arrow-primary-bg, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));display:flex;align-items:center;justify-content:center}.prev.disabled,.next.disabled{stroke:var(--emw--color-gray-100, #727672);background:var(--emw--ingame-color-black40, rgba(0, 0, 0, 0.4));border-color:var(--emw--color-gray-100, #727672)}.prev{left:2px}.next{right:2px}.ModalSliderDots{display:flex;justify-content:center;margin-top:10px}.ModalSliderDot{width:8px;height:8px;border-radius:50%;background:var(--emw--color-gray-50, #e2e2e2);margin:8px;cursor:pointer}.ModalSliderDot.active{background:var(--emw--border-success-color, #00b74f)}.Mobile .ModalContent{padding:26px}.Mobile .InnerContainer{padding:25px}.Mobile .ImageWrapper{margin-bottom:6px}.Mobile .ModalHeader{margin-bottom:16px}.Mobile .ModalAddition{margin-top:8px}.Mobile .ModalAction,.Mobile .ModalSliderWrapper{margin-top:20px}.Mobile .ModalSliderWrapper{width:230px;justify-self:center}.Mobile .ModalSliderWrapper .prev,.Mobile .ModalSliderWrapper .next{display:none}.Mobile .ModalSliderWrapper .ModalSlideImageWrapper{width:220px;height:125px}.Mobile .ModalSliderWrapper .ModalSlideSpins{width:154px;height:34px;font-size:var(--emw--font-size-x-small, 12px)}.Mobile .ModalSliderWrapper .ModalSliderDot{margin:8px 4px}.Mobile .ModalSubtitle{width:220px}";
|
|
199
|
+
const CasinoChallengesOverlayModalStyle0 = casinoChallengesOverlayModalCss;
|
|
200
|
+
|
|
201
|
+
const CasinoChallengesOverlayModal = class {
|
|
202
|
+
constructor(hostRef) {
|
|
203
|
+
index.registerInstance(this, hostRef);
|
|
204
|
+
this.startX = 0;
|
|
205
|
+
this.currentTranslate = 0;
|
|
206
|
+
this.prevTranslate = 0;
|
|
207
|
+
this.isDragging = false;
|
|
208
|
+
this.moved = false;
|
|
209
|
+
this.threshold = 50;
|
|
210
|
+
this.onPointerDown = (e) => {
|
|
211
|
+
var _a;
|
|
212
|
+
this.isDragging = true;
|
|
213
|
+
this.moved = false;
|
|
214
|
+
this.startX = e.clientX;
|
|
215
|
+
(_a = this.sliderContainer) === null || _a === void 0 ? void 0 : _a.setPointerCapture(e.pointerId);
|
|
216
|
+
};
|
|
217
|
+
this.onPointerMove = (e) => {
|
|
218
|
+
if (!this.isDragging)
|
|
219
|
+
return;
|
|
220
|
+
const diff = e.clientX - this.startX;
|
|
221
|
+
if (Math.abs(diff) > 5) {
|
|
222
|
+
this.moved = true;
|
|
223
|
+
}
|
|
224
|
+
this.currentTranslate = this.prevTranslate + diff;
|
|
225
|
+
this.setSliderPosition(this.currentTranslate);
|
|
226
|
+
};
|
|
227
|
+
this.onPointerUp = (e) => {
|
|
228
|
+
var _a;
|
|
229
|
+
if (!this.isDragging)
|
|
230
|
+
return;
|
|
231
|
+
this.isDragging = false;
|
|
232
|
+
(_a = this.sliderContainer) === null || _a === void 0 ? void 0 : _a.releasePointerCapture(e.pointerId);
|
|
233
|
+
const movedBy = this.currentTranslate - this.prevTranslate;
|
|
234
|
+
if (movedBy < -this.threshold)
|
|
235
|
+
this.next();
|
|
236
|
+
else if (movedBy > this.threshold)
|
|
237
|
+
this.prev();
|
|
238
|
+
else
|
|
239
|
+
this.setPositionByIndex();
|
|
240
|
+
};
|
|
241
|
+
this.next = () => {
|
|
242
|
+
if (!this.bonusProgramGames.length)
|
|
243
|
+
return;
|
|
244
|
+
if (this.currentIndex === this.bonusProgramGames.length - 1) {
|
|
245
|
+
this.setPositionByIndex();
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
this.currentIndex = (this.currentIndex + 1) % this.bonusProgramGames.length;
|
|
249
|
+
this.setPositionByIndex();
|
|
250
|
+
};
|
|
251
|
+
this.prev = () => {
|
|
252
|
+
if (!this.bonusProgramGames.length)
|
|
253
|
+
return;
|
|
254
|
+
if (this.currentIndex === 0) {
|
|
255
|
+
this.setPositionByIndex();
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
this.currentIndex = (this.currentIndex - 1 + this.bonusProgramGames.length) % this.bonusProgramGames.length;
|
|
259
|
+
this.setPositionByIndex();
|
|
260
|
+
};
|
|
261
|
+
this.onSlideClick = (gameSlug) => {
|
|
262
|
+
if (this.moved)
|
|
263
|
+
return;
|
|
264
|
+
if (gameSlug) {
|
|
265
|
+
window.postMessage({
|
|
266
|
+
type: 'ChallengeInGameRedirect',
|
|
267
|
+
data: { Slug: gameSlug }
|
|
268
|
+
}, window.location.href);
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
this.mbSource = undefined;
|
|
272
|
+
this.clientStyling = undefined;
|
|
273
|
+
this.clientStylingUrl = undefined;
|
|
274
|
+
this.translationUrl = '';
|
|
275
|
+
this.language = 'en';
|
|
276
|
+
this.isOpen = false;
|
|
277
|
+
this.reward = '';
|
|
278
|
+
this.addition = false;
|
|
279
|
+
this.handleClick = () => { };
|
|
280
|
+
this.errored = false;
|
|
281
|
+
this.orderNumber = 0;
|
|
282
|
+
this.isFreeSpinsGranted = false;
|
|
283
|
+
this.bonusProgramGames = [];
|
|
284
|
+
this.currentIndex = 0;
|
|
285
|
+
}
|
|
286
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
287
|
+
if (newValue != oldValue) {
|
|
288
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
292
|
+
if (newValue != oldValue) {
|
|
293
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
297
|
+
if (newValue != oldValue) {
|
|
298
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
handleBonusProgramGameChange(newValue) {
|
|
302
|
+
if (this.currentIndex >= newValue.length) {
|
|
303
|
+
this.currentIndex = 0;
|
|
304
|
+
this.setPositionByIndex();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
componentWillLoad() {
|
|
308
|
+
if (this.translationUrl) {
|
|
309
|
+
resolveTranslationUrl(this.translationUrl);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
componentDidLoad() {
|
|
313
|
+
if (this.stylingContainer) {
|
|
314
|
+
if (this.mbSource)
|
|
315
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
316
|
+
if (this.clientStyling)
|
|
317
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
318
|
+
if (this.clientStylingUrl)
|
|
319
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
320
|
+
}
|
|
321
|
+
this.setPositionByIndex();
|
|
322
|
+
}
|
|
323
|
+
disconnectedCallback() {
|
|
324
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
325
|
+
}
|
|
326
|
+
setSliderPosition(value) {
|
|
327
|
+
if (this.bonusProgramGames.length < 2)
|
|
328
|
+
return;
|
|
329
|
+
if (this.sliderContainer) {
|
|
330
|
+
this.sliderContainer.style.transform = `translateX(${value}px)`;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
setPositionByIndex() {
|
|
334
|
+
var _a;
|
|
335
|
+
const width = ((_a = this.sliderContainer) === null || _a === void 0 ? void 0 : _a.clientWidth) || 0;
|
|
336
|
+
this.currentTranslate = -this.currentIndex * width;
|
|
337
|
+
this.prevTranslate = this.currentTranslate;
|
|
338
|
+
this.setSliderPosition(this.currentTranslate);
|
|
339
|
+
}
|
|
340
|
+
render() {
|
|
341
|
+
var _a;
|
|
342
|
+
return (index.h("div", { key: 'a069be23593a04f768fcca1b86094d3af8e58ca3', ref: (el) => (this.stylingContainer = el), class: {
|
|
343
|
+
ModalOverlay: true,
|
|
344
|
+
Mobile: isMobile() || window.innerWidth <= 768,
|
|
345
|
+
Open: this.isOpen
|
|
346
|
+
} }, index.h("div", { key: 'f41925c7697a9cd1c3da2f61c4e3a0673bd5728b', class: "ModalWinAnimation" }), index.h("div", { key: '9fac97b95cc682790d5e925fc40782ae71b9f54c', class: "ModalContent GradientBorder" }, index.h("div", { key: '14683c5830b0317dd11d064a6a88a69f4805d250', class: "InnerContainer" }, !this.errored && (index.h("div", { key: '2b7091ea3619423d41d98440d7800d95ec92a1bc', class: "ImageWrapper" }, index.h("img", { key: 'd23cfe79a0e7a2e138c0bb1e9894cc7534e5c173', src: giftboxSvg, alt: "gift-box-icon" }))), index.h("h1", { key: 'f95fbb76d703c28c45c568a0163df747dd269556', class: "ModalHeader" }, translate(this.errored ? 'errorTitle' : 'congrats', this.language)), this.errored ? (index.h("div", { class: "ModalErrorMessage" }, translate('errorSubTitle', this.language))) : (index.h("div", { class: "ModalSubtitle" }, `${translate('level', this.language)} ${this.orderNumber} ${translate('completed', this.language)}`, index.h("div", null, translate('youWon', this.language)), index.h("div", { class: "ModalReward" }, this.reward), this.isFreeSpinsGranted && (index.h("div", { class: "ModalAddition" }, translate('playNowOrLater', this.language))), index.h("div", { class: "ModalAddition" }, translate('rewardInLobby', this.language)))), this.addition && (index.h("div", { key: '201e5f0d4b3e04797c0478429dcd3c22dd30a4d3', class: "ModalAddition" }, index.h("div", { key: 'ef793ed69b572f4a9654f55cae0a71dd66af0ad6' }, translate('physicalReward', this.language)), index.h("span", { key: '131e4d36dc54d3682469a61c7196f0e379efe42f' }, translate('linkText', this.language)))), index.h("button", { key: 'bca6bc399277288d0ca2d9bd453eef6f6c9793e2', class: "ModalAction", onClick: this.handleClick }, this.errored ? translate('errorBtnText', this.language) : translate('continue', this.language)), this.isFreeSpinsGranted && ((_a = this.bonusProgramGames) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("div", { key: '13b921d1ff411987b9045950b1676e22b52481ab', class: "ModalSliderWrapper" }, index.h("div", { key: 'b48c9553aec2d709cede91d67b678aa545ed03a2', class: "ModalSlider", ref: (el) => (this.sliderContainer = el), onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, this.bonusProgramGames.map((item) => (index.h("div", { class: "ModalSlide", key: item.GameSlug, onClick: () => this.onSlideClick(item.GameSlug) }, index.h("div", { class: "ModalSlideImageWrapper" }, index.h("img", { src: item.Thumbnail, alt: "" })), index.h("div", { class: "ModalSlideSpins" }, translate('useSpinsNow', this.language), index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.195262 0.195262C0.455612 -0.0650874 0.877722 -0.0650874 1.13807 0.195262L5.13807 4.19526C5.39842 4.45561 5.39842 4.87772 5.13807 5.13807L1.13807 9.13807C0.877722 9.39842 0.455612 9.39842 0.195262 9.13807C-0.0650874 8.87772 -0.0650874 8.45561 0.195262 8.19526L3.72386 4.66667L0.195262 1.13807C-0.0650874 0.877722 -0.0650874 0.455612 0.195262 0.195262Z", fill: "white" }))))))), this.bonusProgramGames.length > 1 && (index.h("div", { key: '5878e9df2ba211fbe330d959c89278d611b0d501' }, index.h("button", { key: '25008b1e3500bdde9b1cf9285640ca342e8490a7', class: {
|
|
347
|
+
prev: true,
|
|
348
|
+
disabled: this.currentIndex === 0
|
|
349
|
+
}, onClick: this.prev }, index.h("svg", { key: '2433588c5615f8b788022f8859a98f9d16504e84', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, index.h("path", { key: '14d34bf5a6538e458b7c18bb481f6a5b7c2f55bf', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), index.h("button", { key: '63be7d730151f3741802f415ec3c9e66508b78e7', class: {
|
|
350
|
+
next: true,
|
|
351
|
+
disabled: this.currentIndex === this.bonusProgramGames.length - 1
|
|
352
|
+
}, onClick: this.next }, index.h("svg", { key: '52f1005fe412de34c71060974688874e5bf45a47', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, index.h("path", { key: '1af4edf8dc717f54d5735d34ec27de8313918e0d', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), index.h("div", { key: '13201c67ba3cb6a1215fb41f5a6fe3ae60864bdd', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (index.h("span", { class: {
|
|
353
|
+
ModalSliderDot: true,
|
|
354
|
+
active: i === this.currentIndex
|
|
355
|
+
}, onClick: () => {
|
|
356
|
+
this.currentIndex = i;
|
|
357
|
+
this.setPositionByIndex();
|
|
358
|
+
} }))))))))))));
|
|
359
|
+
}
|
|
360
|
+
static get watchers() { return {
|
|
361
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
362
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
363
|
+
"mbSource": ["handleMbSourceChange"],
|
|
364
|
+
"bonusProgramGames": ["handleBonusProgramGameChange"]
|
|
365
|
+
}; }
|
|
366
|
+
};
|
|
367
|
+
CasinoChallengesOverlayModal.style = CasinoChallengesOverlayModalStyle0;
|
|
368
|
+
|
|
369
|
+
exports.CasinoChallengesOverlayModal = CasinoChallengesOverlayModal;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-
|
|
6
|
-
require('./index-
|
|
5
|
+
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-5004ed4a.js');
|
|
6
|
+
require('./index-3aa45572.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -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-3aa45572.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-challenges-overlay-modal.cjs",[[1,"casino-challenges-overlay-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"reward":[513],"addition":[516],"handleClick":[16],"errored":[516],"orderNumber":[514,"order-number"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["casino-challenges-overlay-modal.cjs",[[1,"casino-challenges-overlay-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"reward":[513],"addition":[516],"handleClick":[16],"errored":[516],"orderNumber":[514,"order-number"],"isFreeSpinsGranted":[516,"is-free-spins-granted"],"bonusProgramGames":[16],"currentIndex":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-challenges-overlay-modal';
|
|
24
|
-
const BUILD = /* casino-challenges-overlay-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state:
|
|
24
|
+
const BUILD = /* casino-challenges-overlay-modal */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -153,6 +153,8 @@ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
|
153
153
|
|
|
154
154
|
// src/utils/constants.ts
|
|
155
155
|
var EMPTY_OBJ = {};
|
|
156
|
+
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
157
|
+
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
156
158
|
|
|
157
159
|
// src/utils/helpers.ts
|
|
158
160
|
var isDef = (v) => v != null;
|
|
@@ -487,9 +489,16 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
487
489
|
if (newVNode2.$text$ !== null) {
|
|
488
490
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
|
489
491
|
} else {
|
|
490
|
-
|
|
492
|
+
if (!isSvgMode) {
|
|
493
|
+
isSvgMode = newVNode2.$tag$ === "svg";
|
|
494
|
+
}
|
|
495
|
+
elm = newVNode2.$elm$ = doc.createElementNS(
|
|
496
|
+
isSvgMode ? SVG_NS : HTML_NS,
|
|
491
497
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
492
|
-
);
|
|
498
|
+
) ;
|
|
499
|
+
if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
|
|
500
|
+
isSvgMode = false;
|
|
501
|
+
}
|
|
493
502
|
{
|
|
494
503
|
updateElement(null, newVNode2, isSvgMode);
|
|
495
504
|
}
|
|
@@ -504,6 +513,13 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
504
513
|
}
|
|
505
514
|
}
|
|
506
515
|
}
|
|
516
|
+
{
|
|
517
|
+
if (newVNode2.$tag$ === "svg") {
|
|
518
|
+
isSvgMode = false;
|
|
519
|
+
} else if (elm.tagName === "foreignObject") {
|
|
520
|
+
isSvgMode = true;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
507
523
|
}
|
|
508
524
|
elm["s-hn"] = hostTagName;
|
|
509
525
|
return elm;
|
|
@@ -633,8 +649,12 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
633
649
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
634
650
|
const oldChildren = oldVNode.$children$;
|
|
635
651
|
const newChildren = newVNode2.$children$;
|
|
652
|
+
const tag = newVNode2.$tag$;
|
|
636
653
|
const text = newVNode2.$text$;
|
|
637
654
|
if (text === null) {
|
|
655
|
+
{
|
|
656
|
+
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
657
|
+
}
|
|
638
658
|
{
|
|
639
659
|
{
|
|
640
660
|
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
@@ -650,6 +670,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
650
670
|
} else if (oldChildren !== null) {
|
|
651
671
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
652
672
|
}
|
|
673
|
+
if (isSvgMode && tag === "svg") {
|
|
674
|
+
isSvgMode = false;
|
|
675
|
+
}
|
|
653
676
|
} else if (oldVNode.$text$ !== text) {
|
|
654
677
|
elm.data = text;
|
|
655
678
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-
|
|
6
|
-
require('./index-
|
|
5
|
+
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-5004ed4a.js');
|
|
6
|
+
require('./index-3aa45572.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|