@everymatrix/casino-challenges-overlay-modal 0.22.4 → 0.22.7
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-6ebcbf98.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.esm.js +1 -1
- package/dist/cjs/{casino-challenges-overlay-modal-5e5f26b3.js → casino-challenges-overlay-modal-45e88b15.js} +10 -7
- package/dist/cjs/casino-challenges-overlay-modal.cjs.entry.js +1 -1
- package/dist/cjs/casino-challenges-overlay-modal.cjs.js +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.js +28 -7
- package/dist/esm/{casino-challenges-overlay-modal-c0daf7e2.js → casino-challenges-overlay-modal-6ebcbf98.js} +10 -7
- package/dist/esm/casino-challenges-overlay-modal.entry.js +1 -1
- package/dist/esm/casino-challenges-overlay-modal.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal-c0daf7e2.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,h as e}from"./index-603664b0.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function t(n,e){if(n){const i=document.createElement("style");i.innerHTML=e,n.appendChild(i)}}function o(n,e){if(!n||!e)return;const i=new URL(e);fetch(i.href).then((n=>n.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,n&&n.appendChild(i)})).catch((n=>{console.error("There was an error while trying to load client styling from URL",n)}))}function a(n,e,t,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return t=function(n,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{n&&(i.innerHTML=e,n.appendChild(i))}))}(n,e),t;window[i]||(window[i]={}),t=function(n,e){return window.emMessageBus.subscribe(e,(t=>{if(!n)return;const o=n.getRootNode(),a=window[i];let M=a[e]&&a[e].sheet;M?a[e].refCount=a[e].refCount+1:(M=new CSSStyleSheet,M.replaceSync(t),a[e]={sheet:M,refCount:1});const r=o.adoptedStyleSheets||[];r.includes(M)||(o.adoptedStyleSheets=[...r,M])}))}(n,e);const a=t.unsubscribe.bind(t);return t.unsubscribe=()=>{if(window[i][e]){const n=window[i][e];n.refCount>1?n.refCount=n.refCount-1:delete window[i][e]}a()},t}const M={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"}},r=(n,e)=>M[void 0!==e&&e in M?e:"en"][n],l=class{constructor(e){n(this,e),this.startX=0,this.currentTranslate=0,this.prevTranslate=0,this.isDragging=!1,this.moved=!1,this.threshold=50,this.clickedSlide=null,this.onPointerDown=n=>{var e;this.isDragging=!0,this.moved=!1,this.startX=n.clientX,this.clickedSlide=n.target.closest(".ModalSlide"),null===(e=this.sliderContainer)||void 0===e||e.setPointerCapture(n.pointerId)},this.onPointerMove=n=>{if(!this.isDragging)return;const e=n.clientX-this.startX;Math.abs(e)>5&&(this.moved=!0),this.currentTranslate=this.prevTranslate+e,this.setSliderPosition(this.currentTranslate)},this.onPointerUp=n=>{var e;if(!this.isDragging)return;this.isDragging=!1,null===(e=this.sliderContainer)||void 0===e||e.releasePointerCapture(n.pointerId);const i=this.currentTranslate-this.prevTranslate;if(this.moved)i<-this.threshold?this.next():i>this.threshold?this.prev():this.setPositionByIndex(),this.clickedSlide=null;else{if(this.clickedSlide){const n=this.clickedSlide.getAttribute("data-slug");n&&this.onSlideClick(n)}this.clickedSlide=null}},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=n=>{this.moved||n&&window.postMessage({type:"ChallengeInGameRedirect",data:{Slug:n}},"*")},this.checkIsMobile=()=>{this.isMobile=window.innerWidth<=768||window.innerHeight<660},this.renderLevelNumberLine=()=>{var n,e;if(this.levelsCount<=1)return"";const i=null!==(n=r("level",this.language))&&void 0!==n?n:r("level"),t=null!==(e=r("completed",this.language))&&void 0!==e?e:r("completed");return`${i} ${this.orderNumber} ${t}`},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.levelsCount=0,this.bonusProgramGames=[],this.currentIndex=0,this.isMobile=!1}handleClientStylingChange(n,e){n!=e&&t(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(n,e){n!=e&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(n,e){n!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleBonusProgramGameChange(n){this.currentIndex>=n.length&&(this.currentIndex=0,this.setPositionByIndex())}componentWillLoad(){this.translationUrl&&(async n=>{if(n)try{const i=await fetch(n);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const t=await i.json();e=t,Object.keys(e).forEach((n=>{M[n]||(M[n]={});for(let i in e[n])M[n][i]=e[n][i]}))}catch(n){console.error("Failed to fetch or parse translations from URL:",n)}var e})(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)),this.setPositionByIndex(),this.checkIsMobile(),window.addEventListener("resize",this.checkIsMobile)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setSliderPosition(n){this.bonusProgramGames.length<2&&0!==n||this.sliderContainer&&(this.sliderContainer.style.transform=`translateX(${n}px)`)}setPositionByIndex(){var n;const e=(null===(n=this.sliderContainer)||void 0===n?void 0:n.clientWidth)||0;this.currentTranslate=-this.currentIndex*e,this.prevTranslate=this.currentTranslate,this.setSliderPosition(this.currentTranslate)}render(){var n;return e("div",{key:"7f90dd075fc9046cca7d55704b19cc9d23655f63",ref:n=>this.stylingContainer=n,class:{ModalOverlay:!0,Mobile:this.isMobile,Open:this.isOpen}},e("div",{key:"ec14dcd43407142937617a39db007fce65f67c52",class:"ModalWinAnimation"}),e("div",{key:"887b13b1c82bfdee17154d72023fe3541d208293",class:"ModalWrapper"},e("div",{key:"5539d5631d8a9c2d8fef1ad64849b6c923317587",class:"ModalContent GradientBorder"},e("div",{key:"459b3e70f5d00355a359d5183e1b14cf7c46709b",class:"InnerContainer"},!this.errored&&e("div",{key:"b30e892c29090cd265714e9802f01fe527c39fc3",class:"ImageWrapper"},e("img",{key:"c2414e02822fa41e82a9baaee3439540570525e1",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDIyIDIzIiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxs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3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBzdG9wLWNvbG9yPSIjMUU2NTRGIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzFDOEQ1NiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+Cjwvc3ZnPgo=",alt:"gift-box-icon"})),e("h1",{key:"612d76d1c1d6731a375c690af3580e114625e2a6",class:"ModalHeader"},r(this.errored?"errorTitle":"congrats",this.language)),this.errored?e("div",{class:"ModalErrorMessage"},r("errorSubTitle",this.language)):e("div",{class:"ModalSubtitle"},this.renderLevelNumberLine(),e("div",null,r("youWon",this.language)),e("div",{class:"ModalReward"},this.reward),this.isFreeSpinsGranted&&e("div",{class:"ModalAddition"},r("playNowOrLater",this.language)),e("div",{class:"ModalAddition"},r("rewardInLobby",this.language))),this.addition&&e("div",{key:"d0364241f481d77530e674745c76bfaa608177e9",class:"ModalAddition"},e("div",{key:"00ec8519bf53ded42f2f2ba5f20c903b679f429c"},r("physicalReward",this.language)),e("span",{key:"939c62bfba3ec93e52a4c8d27c9c8b813bf42101"},r("linkText",this.language))),e("button",{key:"442d877ac3d368b118f1cfc987c1f1dc003d5600",class:"ModalAction",onClick:this.handleClick},r(this.errored?"errorBtnText":"continue",this.language)),this.isFreeSpinsGranted&&(null===(n=this.bonusProgramGames)||void 0===n?void 0:n.length)>0&&e("div",{key:"a0e330774c4333c1f09d2e574644fa375fa301e4",class:"ModalSliderWrapper"},e("div",{key:"96270d7f0c6bf9aa0c8376fa80fc3aea99632696",class:"ModalSlider",ref:n=>this.sliderContainer=n,onPointerDown:this.onPointerDown,onPointerMove:this.onPointerMove,onPointerUp:this.onPointerUp,onPointerLeave:this.onPointerUp},this.bonusProgramGames.map((n=>e("div",{class:"ModalSlide",key:n.GameSlug,"data-slug":n.GameSlug},e("div",{class:"ModalSlideImageWrapper"},e("img",{src:n.Thumbnail,alt:""})),e("div",{class:"ModalSlideSpins"},r("useSpinsNow",this.language),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("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&&e("div",{key:"be0e1b63310d39993cc6ae2e49ed6240583bd1e6"},e("button",{key:"94f41cd5bf2064f94e3d593e07a8620cdb5bcc56",class:{prev:!0,disabled:0===this.currentIndex},onClick:this.prev},e("svg",{key:"c5befb61fd9219ac50e4e4bac0f667893df8f332",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("path",{key:"bda4f14c6bbe6ae040c37b605b06faf4ed4cac25",d:"M5 1L1 5L5 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("button",{key:"a05cdf0d9029f46a449b4587a94f3441d23e2198",class:{next:!0,disabled:this.currentIndex===this.bonusProgramGames.length-1},onClick:this.next},e("svg",{key:"3d61797e54ab9b57e52a953272aa49d86a727de6",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("path",{key:"c0b66efe13ed0535b7760cef09940b32ef834919",d:"M1 1L5 5L1 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{key:"015daf3190bd0f08c9519e3efd36f82cc1a1ac45",class:"ModalSliderDots"},this.bonusProgramGames.map(((n,i)=>e("span",{class:{ModalSliderDot:!0,active:i===this.currentIndex},onClick:()=>{this.currentIndex=i,this.setPositionByIndex()}}))))))))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],bonusProgramGames:["handleBonusProgramGameChange"]}}};l.style=':host {\n display: block;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nbutton {\n border: none;\n background: none;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:focus {\n outline: none;\n}\n\n.ModalOverlay {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n justify-content: center;\n align-items: center;\n z-index: 302;\n pointer-events: none;\n container-name: modal-container;\n container-type: size;\n}\n\n.ModalOverlay.Open {\n display: flex;\n pointer-events: auto;\n}\n\n.ModalWrapper {\n container: modal/size;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.ModalContent {\n display: flex;\n background: var(--emw--modal-border-color, linear-gradient(90deg, #003e5c 0.05%, #113b21 87.69%));\n padding: 40px;\n border-radius: 26px;\n border: 2px solid var(--emw--modal-outline-color, #1e654f);\n width: 540px;\n max-width: 90%;\n text-align: center;\n max-height: 90dvh;\n min-height: 100px;\n font-family: "Roboto", sans-serif;\n}\n\n.InnerContainer {\n border-radius: 20px;\n background: var(--emw--modal-background-color, #f9f8f8);\n padding: 20px;\n width: 100%;\n flex-direction: column;\n align-items: center;\n flex: 1;\n min-height: 0;\n overflow: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.InnerContainer::-webkit-scrollbar {\n display: none;\n}\n\n.ImageWrapper {\n margin-bottom: 10px;\n}\n\n.ModalHeader {\n color: var(--emw--modal-title-color, #212529);\n text-align: center;\n font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: var(--emw--font-weight-bold, 700);\n line-height: normal;\n text-transform: uppercase;\n letter-spacing: 1px;\n}\n\n.ModalSubtitle {\n color: var(--emw--modal-title-color, #212529);\n text-align: center;\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: var(--emw--font-weigh-normal, 400);\n margin: 10px auto 0;\n line-height: 24px;\n}\n\n.ModalErrorMessage {\n color: var(--emw--modal-title-color, #212529);\n font-size: var(--emw--font-size-medium, 16px);\n line-height: 24px;\n margin: 10px 0;\n}\n\n.ModalReward {\n background: var(--emw--modal-reward-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n font-family: var(--emw--modal-reward-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--modal-reward-font-size, 16px);\n font-weight: var(--emw--modal-reward-font-weight, 700);\n}\n\n.ModalAddition {\n color: var(--emw--modal-addition-color, #727672);\n text-align: center;\n font-family: var(--emw--modal-addition-typography, "Roboto", sans-serif);\n font-size: var(--emw--modal-addition-font-size, 16px);\n font-style: normal;\n font-weight: var(--emw--font-weight-normal, 400);\n align-content: center;\n margin-top: 10px;\n line-height: 24px;\n}\n\n.ModalAddition span {\n background: var(--emw--modal-support-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n font-style: normal;\n font-weight: var(--emw--modal-support-font-weight, 700);\n line-height: 15px;\n text-decoration: none;\n position: relative;\n}\n.ModalAddition span::after {\n content: "";\n position: absolute;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n background: var(--emw--modal-support-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n}\n\n.ModalAction {\n border-radius: var(--emw--modal-button-border-radius, 99px);\n border: 2px solid var(--emw--modal-button-border-color, #083b17);\n background: var(--emw--modal-button-background-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n padding: 9px 20px;\n margin-top: 24px;\n text-transform: uppercase;\n color: var(--emw--modal-button-color, #fff);\n text-align: center;\n font-family: var(--emw--modal-button-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--modal-button-font-size, 14px);\n font-weight: var(--emw--modal-button-font-weight, 700);\n min-width: 100px;\n}\n\n.ModalSliderWrapper {\n margin: 24px auto 0;\n position: relative;\n overflow: hidden;\n width: 316px;\n}\n\n.ModalSlider {\n display: flex;\n transition: transform 0.3s ease;\n cursor: pointer;\n touch-action: pan-y;\n}\n\n.ModalSlider:active {\n cursor: grabbing;\n}\n\n.ModalSlide {\n min-width: 100%;\n flex-shrink: 0;\n position: relative;\n display: flex;\n justify-content: center;\n}\n.ModalSlide .ModalSlideSpins {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: var(--emw--modal-game-border-radius, 99px);\n width: 188px;\n height: 48px;\n text-transform: uppercase;\n font-size: var(--emw--modal-game-font-size, 14px);\n font-weight: var(--emw--modal-game-font-weight, 700);\n color: var(--emw--modal-game-font-color, #ffffff);\n align-content: center;\n background: var(--emw--modal-game-background, linear-gradient(180deg, #ea9018 0%, #e0a84e 100%));\n}\n.ModalSlide .ModalSlideSpins svg {\n margin-left: 8px;\n}\n.ModalSlide .ModalSlideImageWrapper {\n position: relative;\n width: 244px;\n height: 144px;\n border-radius: 12px;\n overflow: hidden;\n}\n.ModalSlide .ModalSlideImageWrapper img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n pointer-events: none;\n user-select: none;\n -webkit-user-drag: none;\n}\n.ModalSlide .ModalSlideImageWrapper::after {\n content: "";\n position: absolute;\n inset: 0;\n background: var(--emw--color-black-shadow, rgba(0, 0, 0, 0.5019607843));\n}\n\n.prev,\n.next {\n position: absolute;\n top: 42%;\n transform: translateY(-50%);\n stroke: var(--emw--modal-slider-arrow-color, #ffffff);\n width: 22px;\n height: 22px;\n border-radius: 50%;\n border: 2px solid var(--emw--modal-slider-border-color, #083b17);\n background: var(--emw--modal-slider-arrow-bg, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.prev.disabled,\n.next.disabled {\n stroke: var(--emw--modal-slider-arrow-secondary-color, #727672);\n background: var(--emw--modal-slider-arrow-secondary-bg, rgba(0, 0, 0, 0.4));\n border-color: var(--emw--modal-slider-border-secondary-color, #727672);\n}\n\n.prev {\n left: 2px;\n}\n\n.next {\n right: 2px;\n}\n\n.ModalSliderDots {\n display: flex;\n justify-content: center;\n margin-top: 10px;\n}\n\n.ModalSliderDot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--emw--modal-slider-dot-color, #e2e2e2);\n margin: 8px;\n cursor: pointer;\n}\n\n.ModalSliderDot.active {\n background: var(--emw--modal-slider-active-dot-color, #00b74f);\n}\n\n.Mobile .ModalContent {\n padding: 26px;\n}\n.Mobile .InnerContainer {\n padding: 25px;\n}\n.Mobile .ImageWrapper {\n margin-bottom: 6px;\n}\n.Mobile .ModalHeader {\n margin-bottom: 16px;\n font-size: var(--emw--font-size-small, 14px);\n}\n.Mobile .ModalAddition {\n font-size: var(--emw--font-size-x-small, 12px);\n margin-top: 8px;\n line-height: normal;\n}\n.Mobile .ModalAction,\n.Mobile .ModalSliderWrapper {\n margin: 20px auto 0;\n}\n.Mobile .ModalSliderWrapper {\n width: 230px;\n}\n.Mobile .ModalSliderWrapper .prev,\n.Mobile .ModalSliderWrapper .next {\n display: none;\n}\n.Mobile .ModalSliderWrapper .ModalSlideImageWrapper {\n height: 125px;\n width: 220px;\n}\n.Mobile .ModalSliderWrapper .ModalSlideSpins {\n width: 154px;\n height: 34px;\n font-size: var(--emw--font-size-x-small, 12px);\n}\n.Mobile .ModalSliderWrapper .ModalSliderDots {\n margin-top: 5px;\n}\n.Mobile .ModalSliderWrapper .ModalSliderDots .ModalSliderDot {\n margin: 4px;\n}\n.Mobile .ModalSubtitle,\n.Mobile .ModalReward {\n font-size: var(--emw--font-size-small, 14px);\n line-height: 18px;\n}\n.Mobile .ModalAction {\n font-size: var(--emw--font-size-x-small, 12px);\n}\n\n@container modal (height < 720px) {\n .Mobile .ModalContent {\n padding: 20px;\n }\n .Mobile .InnerContainer {\n padding: 8px 20px;\n }\n .Mobile .ModalHeader {\n margin-bottom: 8px;\n }\n .Mobile .ModalSubtitle {\n width: 100%;\n margin: 0 auto;\n }\n .Mobile .ModalAction {\n margin-top: 8px;\n }\n .Mobile .ModalSliderWrapper {\n margin: 8px auto 0;\n }\n .Mobile .ModalSliderWrapper .ModalSlideImageWrapper {\n width: 176px;\n height: 100px;\n }\n}\n@container modal-container (max-height: 750px) {\n .InnerContainer {\n padding: 12px;\n }\n .ModalContent {\n padding: 25px;\n }\n .ModalSliderWrapper,\n .ModalAction {\n margin-top: 15px;\n }\n .ModalSlideImageWrapper {\n height: 125px;\n width: 220px;\n }\n .ModalSlideSpins {\n width: 154px;\n height: 34px;\n font-size: var(--emw--font-size-x-small, 12px);\n }\n .ModalAction {\n padding: 5px 15px;\n }\n}';export{l 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-6ebcbf98.js";import"./index-603664b0.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as n}from"./index-603664b0.js";export{s as setNonce}from"./index-603664b0.js";import{g as
|
|
1
|
+
import{p as e,b as n}from"./index-603664b0.js";export{s as setNonce}from"./index-603664b0.js";import{g as l}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,l={};return""!==n&&(l.resourcesUrl=new URL(".",n).href),e(l)})().then((async e=>(await l(),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"],levelsCount:[514,"levels-count"],bonusProgramGames:[16],currentIndex:[32],isMobile:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],bonusProgramGames:["handleBonusProgramGameChange"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{C as CasinoChallengesOverlayModal}from"./casino-challenges-overlay-modal-
|
|
1
|
+
export{C as CasinoChallengesOverlayModal}from"./casino-challenges-overlay-modal-6ebcbf98.js";import"./index-603664b0.js";
|
|
@@ -260,10 +260,12 @@ const CasinoChallengesOverlayModal = class {
|
|
|
260
260
|
this.isMobile = window.innerWidth <= 768 || window.innerHeight < 660;
|
|
261
261
|
};
|
|
262
262
|
this.renderLevelNumberLine = () => {
|
|
263
|
-
|
|
264
|
-
if (
|
|
263
|
+
var _a, _b;
|
|
264
|
+
if (this.levelsCount <= 1)
|
|
265
265
|
return '';
|
|
266
|
-
|
|
266
|
+
const level = (_a = translate('level', this.language)) !== null && _a !== void 0 ? _a : translate('level');
|
|
267
|
+
const completed = (_b = translate('completed', this.language)) !== null && _b !== void 0 ? _b : translate('completed');
|
|
268
|
+
return `${level} ${this.orderNumber} ${completed}`;
|
|
267
269
|
};
|
|
268
270
|
this.mbSource = undefined;
|
|
269
271
|
this.clientStyling = undefined;
|
|
@@ -277,6 +279,7 @@ const CasinoChallengesOverlayModal = class {
|
|
|
277
279
|
this.errored = false;
|
|
278
280
|
this.orderNumber = 0;
|
|
279
281
|
this.isFreeSpinsGranted = false;
|
|
282
|
+
this.levelsCount = 0;
|
|
280
283
|
this.bonusProgramGames = [];
|
|
281
284
|
this.currentIndex = 0;
|
|
282
285
|
this.isMobile = false;
|
|
@@ -339,17 +342,17 @@ const CasinoChallengesOverlayModal = class {
|
|
|
339
342
|
}
|
|
340
343
|
render() {
|
|
341
344
|
var _a;
|
|
342
|
-
return (index.h("div", { key: '
|
|
345
|
+
return (index.h("div", { key: '7f90dd075fc9046cca7d55704b19cc9d23655f63', ref: (el) => (this.stylingContainer = el), class: {
|
|
343
346
|
ModalOverlay: true,
|
|
344
347
|
Mobile: this.isMobile,
|
|
345
348
|
Open: this.isOpen
|
|
346
|
-
} }, index.h("div", { key: '
|
|
349
|
+
} }, index.h("div", { key: 'ec14dcd43407142937617a39db007fce65f67c52', class: "ModalWinAnimation" }), index.h("div", { key: '887b13b1c82bfdee17154d72023fe3541d208293', class: "ModalWrapper" }, index.h("div", { key: '5539d5631d8a9c2d8fef1ad64849b6c923317587', class: "ModalContent GradientBorder" }, index.h("div", { key: '459b3e70f5d00355a359d5183e1b14cf7c46709b', class: "InnerContainer" }, !this.errored && (index.h("div", { key: 'b30e892c29090cd265714e9802f01fe527c39fc3', class: "ImageWrapper" }, index.h("img", { key: 'c2414e02822fa41e82a9baaee3439540570525e1', src: giftboxSvg, alt: "gift-box-icon" }))), index.h("h1", { key: '612d76d1c1d6731a375c690af3580e114625e2a6', 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" }, this.renderLevelNumberLine(), 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: 'd0364241f481d77530e674745c76bfaa608177e9', class: "ModalAddition" }, index.h("div", { key: '00ec8519bf53ded42f2f2ba5f20c903b679f429c' }, translate('physicalReward', this.language)), index.h("span", { key: '939c62bfba3ec93e52a4c8d27c9c8b813bf42101' }, translate('linkText', this.language)))), index.h("button", { key: '442d877ac3d368b118f1cfc987c1f1dc003d5600', 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: 'a0e330774c4333c1f09d2e574644fa375fa301e4', class: "ModalSliderWrapper" }, index.h("div", { key: '96270d7f0c6bf9aa0c8376fa80fc3aea99632696', 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, "data-slug": 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: 'be0e1b63310d39993cc6ae2e49ed6240583bd1e6' }, index.h("button", { key: '94f41cd5bf2064f94e3d593e07a8620cdb5bcc56', class: {
|
|
347
350
|
prev: true,
|
|
348
351
|
disabled: this.currentIndex === 0
|
|
349
|
-
}, onClick: this.prev }, index.h("svg", { key: '
|
|
352
|
+
}, onClick: this.prev }, index.h("svg", { key: 'c5befb61fd9219ac50e4e4bac0f667893df8f332', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, index.h("path", { key: 'bda4f14c6bbe6ae040c37b605b06faf4ed4cac25', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), index.h("button", { key: 'a05cdf0d9029f46a449b4587a94f3441d23e2198', class: {
|
|
350
353
|
next: true,
|
|
351
354
|
disabled: this.currentIndex === this.bonusProgramGames.length - 1
|
|
352
|
-
}, onClick: this.next }, index.h("svg", { key: '
|
|
355
|
+
}, onClick: this.next }, index.h("svg", { key: '3d61797e54ab9b57e52a953272aa49d86a727de6', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, index.h("path", { key: 'c0b66efe13ed0535b7760cef09940b32ef834919', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), index.h("div", { key: '015daf3190bd0f08c9519e3efd36f82cc1a1ac45', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (index.h("span", { class: {
|
|
353
356
|
ModalSliderDot: true,
|
|
354
357
|
active: i === this.currentIndex
|
|
355
358
|
}, onClick: () => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-
|
|
5
|
+
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-45e88b15.js');
|
|
6
6
|
require('./index-3aa45572.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"],"isFreeSpinsGranted":[516,"is-free-spins-granted"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], 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"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-
|
|
5
|
+
const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-45e88b15.js');
|
|
6
6
|
require('./index-3aa45572.js');
|
|
7
7
|
|
|
8
8
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
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],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
11
|
+
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"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -87,10 +87,12 @@ export class CasinoChallengesOverlayModal {
|
|
|
87
87
|
this.isMobile = window.innerWidth <= 768 || window.innerHeight < 660;
|
|
88
88
|
};
|
|
89
89
|
this.renderLevelNumberLine = () => {
|
|
90
|
-
|
|
91
|
-
if (
|
|
90
|
+
var _a, _b;
|
|
91
|
+
if (this.levelsCount <= 1)
|
|
92
92
|
return '';
|
|
93
|
-
|
|
93
|
+
const level = (_a = translate('level', this.language)) !== null && _a !== void 0 ? _a : translate('level');
|
|
94
|
+
const completed = (_b = translate('completed', this.language)) !== null && _b !== void 0 ? _b : translate('completed');
|
|
95
|
+
return `${level} ${this.orderNumber} ${completed}`;
|
|
94
96
|
};
|
|
95
97
|
this.mbSource = undefined;
|
|
96
98
|
this.clientStyling = undefined;
|
|
@@ -104,6 +106,7 @@ export class CasinoChallengesOverlayModal {
|
|
|
104
106
|
this.errored = false;
|
|
105
107
|
this.orderNumber = 0;
|
|
106
108
|
this.isFreeSpinsGranted = false;
|
|
109
|
+
this.levelsCount = 0;
|
|
107
110
|
this.bonusProgramGames = [];
|
|
108
111
|
this.currentIndex = 0;
|
|
109
112
|
this.isMobile = false;
|
|
@@ -166,17 +169,17 @@ export class CasinoChallengesOverlayModal {
|
|
|
166
169
|
}
|
|
167
170
|
render() {
|
|
168
171
|
var _a;
|
|
169
|
-
return (h("div", { key: '
|
|
172
|
+
return (h("div", { key: '7f90dd075fc9046cca7d55704b19cc9d23655f63', ref: (el) => (this.stylingContainer = el), class: {
|
|
170
173
|
ModalOverlay: true,
|
|
171
174
|
Mobile: this.isMobile,
|
|
172
175
|
Open: this.isOpen
|
|
173
|
-
} }, h("div", { key: '
|
|
176
|
+
} }, h("div", { key: 'ec14dcd43407142937617a39db007fce65f67c52', class: "ModalWinAnimation" }), h("div", { key: '887b13b1c82bfdee17154d72023fe3541d208293', class: "ModalWrapper" }, h("div", { key: '5539d5631d8a9c2d8fef1ad64849b6c923317587', class: "ModalContent GradientBorder" }, h("div", { key: '459b3e70f5d00355a359d5183e1b14cf7c46709b', class: "InnerContainer" }, !this.errored && (h("div", { key: 'b30e892c29090cd265714e9802f01fe527c39fc3', class: "ImageWrapper" }, h("img", { key: 'c2414e02822fa41e82a9baaee3439540570525e1', src: giftBox, alt: "gift-box-icon" }))), h("h1", { key: '612d76d1c1d6731a375c690af3580e114625e2a6', class: "ModalHeader" }, translate(this.errored ? 'errorTitle' : 'congrats', this.language)), this.errored ? (h("div", { class: "ModalErrorMessage" }, translate('errorSubTitle', this.language))) : (h("div", { class: "ModalSubtitle" }, this.renderLevelNumberLine(), h("div", null, translate('youWon', this.language)), h("div", { class: "ModalReward" }, this.reward), this.isFreeSpinsGranted && (h("div", { class: "ModalAddition" }, translate('playNowOrLater', this.language))), h("div", { class: "ModalAddition" }, translate('rewardInLobby', this.language)))), this.addition && (h("div", { key: 'd0364241f481d77530e674745c76bfaa608177e9', class: "ModalAddition" }, h("div", { key: '00ec8519bf53ded42f2f2ba5f20c903b679f429c' }, translate('physicalReward', this.language)), h("span", { key: '939c62bfba3ec93e52a4c8d27c9c8b813bf42101' }, translate('linkText', this.language)))), h("button", { key: '442d877ac3d368b118f1cfc987c1f1dc003d5600', 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 && (h("div", { key: 'a0e330774c4333c1f09d2e574644fa375fa301e4', class: "ModalSliderWrapper" }, h("div", { key: '96270d7f0c6bf9aa0c8376fa80fc3aea99632696', class: "ModalSlider", ref: (el) => (this.sliderContainer = el), onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, this.bonusProgramGames.map((item) => (h("div", { class: "ModalSlide", key: item.GameSlug, "data-slug": item.GameSlug }, h("div", { class: "ModalSlideImageWrapper" }, h("img", { src: item.Thumbnail, alt: "" })), h("div", { class: "ModalSlideSpins" }, translate('useSpinsNow', this.language), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, 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 && (h("div", { key: 'be0e1b63310d39993cc6ae2e49ed6240583bd1e6' }, h("button", { key: '94f41cd5bf2064f94e3d593e07a8620cdb5bcc56', class: {
|
|
174
177
|
prev: true,
|
|
175
178
|
disabled: this.currentIndex === 0
|
|
176
|
-
}, onClick: this.prev }, h("svg", { key: '
|
|
179
|
+
}, onClick: this.prev }, h("svg", { key: 'c5befb61fd9219ac50e4e4bac0f667893df8f332', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'bda4f14c6bbe6ae040c37b605b06faf4ed4cac25', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { key: 'a05cdf0d9029f46a449b4587a94f3441d23e2198', class: {
|
|
177
180
|
next: true,
|
|
178
181
|
disabled: this.currentIndex === this.bonusProgramGames.length - 1
|
|
179
|
-
}, onClick: this.next }, h("svg", { key: '
|
|
182
|
+
}, onClick: this.next }, h("svg", { key: '3d61797e54ab9b57e52a953272aa49d86a727de6', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'c0b66efe13ed0535b7760cef09940b32ef834919', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '015daf3190bd0f08c9519e3efd36f82cc1a1ac45', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (h("span", { class: {
|
|
180
183
|
ModalSliderDot: true,
|
|
181
184
|
active: i === this.currentIndex
|
|
182
185
|
}, onClick: () => {
|
|
@@ -414,6 +417,24 @@ export class CasinoChallengesOverlayModal {
|
|
|
414
417
|
"reflect": true,
|
|
415
418
|
"defaultValue": "false"
|
|
416
419
|
},
|
|
420
|
+
"levelsCount": {
|
|
421
|
+
"type": "number",
|
|
422
|
+
"mutable": false,
|
|
423
|
+
"complexType": {
|
|
424
|
+
"original": "number",
|
|
425
|
+
"resolved": "number",
|
|
426
|
+
"references": {}
|
|
427
|
+
},
|
|
428
|
+
"required": false,
|
|
429
|
+
"optional": false,
|
|
430
|
+
"docs": {
|
|
431
|
+
"tags": [],
|
|
432
|
+
"text": ""
|
|
433
|
+
},
|
|
434
|
+
"attribute": "levels-count",
|
|
435
|
+
"reflect": true,
|
|
436
|
+
"defaultValue": "0"
|
|
437
|
+
},
|
|
417
438
|
"bonusProgramGames": {
|
|
418
439
|
"type": "unknown",
|
|
419
440
|
"mutable": false,
|
|
@@ -258,10 +258,12 @@ const CasinoChallengesOverlayModal = class {
|
|
|
258
258
|
this.isMobile = window.innerWidth <= 768 || window.innerHeight < 660;
|
|
259
259
|
};
|
|
260
260
|
this.renderLevelNumberLine = () => {
|
|
261
|
-
|
|
262
|
-
if (
|
|
261
|
+
var _a, _b;
|
|
262
|
+
if (this.levelsCount <= 1)
|
|
263
263
|
return '';
|
|
264
|
-
|
|
264
|
+
const level = (_a = translate('level', this.language)) !== null && _a !== void 0 ? _a : translate('level');
|
|
265
|
+
const completed = (_b = translate('completed', this.language)) !== null && _b !== void 0 ? _b : translate('completed');
|
|
266
|
+
return `${level} ${this.orderNumber} ${completed}`;
|
|
265
267
|
};
|
|
266
268
|
this.mbSource = undefined;
|
|
267
269
|
this.clientStyling = undefined;
|
|
@@ -275,6 +277,7 @@ const CasinoChallengesOverlayModal = class {
|
|
|
275
277
|
this.errored = false;
|
|
276
278
|
this.orderNumber = 0;
|
|
277
279
|
this.isFreeSpinsGranted = false;
|
|
280
|
+
this.levelsCount = 0;
|
|
278
281
|
this.bonusProgramGames = [];
|
|
279
282
|
this.currentIndex = 0;
|
|
280
283
|
this.isMobile = false;
|
|
@@ -337,17 +340,17 @@ const CasinoChallengesOverlayModal = class {
|
|
|
337
340
|
}
|
|
338
341
|
render() {
|
|
339
342
|
var _a;
|
|
340
|
-
return (h("div", { key: '
|
|
343
|
+
return (h("div", { key: '7f90dd075fc9046cca7d55704b19cc9d23655f63', ref: (el) => (this.stylingContainer = el), class: {
|
|
341
344
|
ModalOverlay: true,
|
|
342
345
|
Mobile: this.isMobile,
|
|
343
346
|
Open: this.isOpen
|
|
344
|
-
} }, h("div", { key: '
|
|
347
|
+
} }, h("div", { key: 'ec14dcd43407142937617a39db007fce65f67c52', class: "ModalWinAnimation" }), h("div", { key: '887b13b1c82bfdee17154d72023fe3541d208293', class: "ModalWrapper" }, h("div", { key: '5539d5631d8a9c2d8fef1ad64849b6c923317587', class: "ModalContent GradientBorder" }, h("div", { key: '459b3e70f5d00355a359d5183e1b14cf7c46709b', class: "InnerContainer" }, !this.errored && (h("div", { key: 'b30e892c29090cd265714e9802f01fe527c39fc3', class: "ImageWrapper" }, h("img", { key: 'c2414e02822fa41e82a9baaee3439540570525e1', src: giftboxSvg, alt: "gift-box-icon" }))), h("h1", { key: '612d76d1c1d6731a375c690af3580e114625e2a6', class: "ModalHeader" }, translate(this.errored ? 'errorTitle' : 'congrats', this.language)), this.errored ? (h("div", { class: "ModalErrorMessage" }, translate('errorSubTitle', this.language))) : (h("div", { class: "ModalSubtitle" }, this.renderLevelNumberLine(), h("div", null, translate('youWon', this.language)), h("div", { class: "ModalReward" }, this.reward), this.isFreeSpinsGranted && (h("div", { class: "ModalAddition" }, translate('playNowOrLater', this.language))), h("div", { class: "ModalAddition" }, translate('rewardInLobby', this.language)))), this.addition && (h("div", { key: 'd0364241f481d77530e674745c76bfaa608177e9', class: "ModalAddition" }, h("div", { key: '00ec8519bf53ded42f2f2ba5f20c903b679f429c' }, translate('physicalReward', this.language)), h("span", { key: '939c62bfba3ec93e52a4c8d27c9c8b813bf42101' }, translate('linkText', this.language)))), h("button", { key: '442d877ac3d368b118f1cfc987c1f1dc003d5600', 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 && (h("div", { key: 'a0e330774c4333c1f09d2e574644fa375fa301e4', class: "ModalSliderWrapper" }, h("div", { key: '96270d7f0c6bf9aa0c8376fa80fc3aea99632696', class: "ModalSlider", ref: (el) => (this.sliderContainer = el), onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, this.bonusProgramGames.map((item) => (h("div", { class: "ModalSlide", key: item.GameSlug, "data-slug": item.GameSlug }, h("div", { class: "ModalSlideImageWrapper" }, h("img", { src: item.Thumbnail, alt: "" })), h("div", { class: "ModalSlideSpins" }, translate('useSpinsNow', this.language), h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, 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 && (h("div", { key: 'be0e1b63310d39993cc6ae2e49ed6240583bd1e6' }, h("button", { key: '94f41cd5bf2064f94e3d593e07a8620cdb5bcc56', class: {
|
|
345
348
|
prev: true,
|
|
346
349
|
disabled: this.currentIndex === 0
|
|
347
|
-
}, onClick: this.prev }, h("svg", { key: '
|
|
350
|
+
}, onClick: this.prev }, h("svg", { key: 'c5befb61fd9219ac50e4e4bac0f667893df8f332', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'bda4f14c6bbe6ae040c37b605b06faf4ed4cac25', d: "M5 1L1 5L5 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("button", { key: 'a05cdf0d9029f46a449b4587a94f3441d23e2198', class: {
|
|
348
351
|
next: true,
|
|
349
352
|
disabled: this.currentIndex === this.bonusProgramGames.length - 1
|
|
350
|
-
}, onClick: this.next }, h("svg", { key: '
|
|
353
|
+
}, onClick: this.next }, h("svg", { key: '3d61797e54ab9b57e52a953272aa49d86a727de6', xmlns: "http://www.w3.org/2000/svg", width: "6", height: "10", viewBox: "0 0 6 10", fill: "none" }, h("path", { key: 'c0b66efe13ed0535b7760cef09940b32ef834919', d: "M1 1L5 5L1 9", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))), h("div", { key: '015daf3190bd0f08c9519e3efd36f82cc1a1ac45', class: "ModalSliderDots" }, this.bonusProgramGames.map((_, i) => (h("span", { class: {
|
|
351
354
|
ModalSliderDot: true,
|
|
352
355
|
active: i === this.currentIndex
|
|
353
356
|
}, onClick: () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
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-6ebcbf98.js';
|
|
2
2
|
import './index-603664b0.js';
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["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],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["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"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
20
20
|
});
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as CasinoChallengesOverlayModal } from './casino-challenges-overlay-modal-
|
|
1
|
+
export { C as CasinoChallengesOverlayModal } from './casino-challenges-overlay-modal-6ebcbf98.js';
|
|
2
2
|
import './index-603664b0.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["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],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["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"],"levelsCount":[514,"levels-count"],"bonusProgramGames":[16],"currentIndex":[32],"isMobile":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"bonusProgramGames":["handleBonusProgramGameChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -18,6 +18,7 @@ export namespace Components {
|
|
|
18
18
|
"isFreeSpinsGranted": boolean;
|
|
19
19
|
"isOpen": boolean;
|
|
20
20
|
"language": string;
|
|
21
|
+
"levelsCount": number;
|
|
21
22
|
"mbSource": string;
|
|
22
23
|
"orderNumber": number;
|
|
23
24
|
"reward": string;
|
|
@@ -46,6 +47,7 @@ declare namespace LocalJSX {
|
|
|
46
47
|
"isFreeSpinsGranted"?: boolean;
|
|
47
48
|
"isOpen"?: boolean;
|
|
48
49
|
"language"?: string;
|
|
50
|
+
"levelsCount"?: number;
|
|
49
51
|
"mbSource"?: string;
|
|
50
52
|
"orderNumber"?: number;
|
|
51
53
|
"reward"?: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,h as e}from"./index-603664b0.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function t(n,e){if(n){const i=document.createElement("style");i.innerHTML=e,n.appendChild(i)}}function o(n,e){if(!n||!e)return;const i=new URL(e);fetch(i.href).then((n=>n.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,n&&n.appendChild(i)})).catch((n=>{console.error("There was an error while trying to load client styling from URL",n)}))}function a(n,e,t,o=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!o)return t=function(n,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{n&&(i.innerHTML=e,n.appendChild(i))}))}(n,e),t;window[i]||(window[i]={}),t=function(n,e){return window.emMessageBus.subscribe(e,(t=>{if(!n)return;const o=n.getRootNode(),a=window[i];let M=a[e]&&a[e].sheet;M?a[e].refCount=a[e].refCount+1:(M=new CSSStyleSheet,M.replaceSync(t),a[e]={sheet:M,refCount:1});const r=o.adoptedStyleSheets||[];r.includes(M)||(o.adoptedStyleSheets=[...r,M])}))}(n,e);const a=t.unsubscribe.bind(t);return t.unsubscribe=()=>{if(window[i][e]){const n=window[i][e];n.refCount>1?n.refCount=n.refCount-1:delete window[i][e]}a()},t}const M={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"}},r=(n,e)=>M[void 0!==e&&e in M?e:"en"][n],d=class{constructor(e){n(this,e),this.startX=0,this.currentTranslate=0,this.prevTranslate=0,this.isDragging=!1,this.moved=!1,this.threshold=50,this.clickedSlide=null,this.onPointerDown=n=>{var e;this.isDragging=!0,this.moved=!1,this.startX=n.clientX,this.clickedSlide=n.target.closest(".ModalSlide"),null===(e=this.sliderContainer)||void 0===e||e.setPointerCapture(n.pointerId)},this.onPointerMove=n=>{if(!this.isDragging)return;const e=n.clientX-this.startX;Math.abs(e)>5&&(this.moved=!0),this.currentTranslate=this.prevTranslate+e,this.setSliderPosition(this.currentTranslate)},this.onPointerUp=n=>{var e;if(!this.isDragging)return;this.isDragging=!1,null===(e=this.sliderContainer)||void 0===e||e.releasePointerCapture(n.pointerId);const i=this.currentTranslate-this.prevTranslate;if(this.moved)i<-this.threshold?this.next():i>this.threshold?this.prev():this.setPositionByIndex(),this.clickedSlide=null;else{if(this.clickedSlide){const n=this.clickedSlide.getAttribute("data-slug");n&&this.onSlideClick(n)}this.clickedSlide=null}},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=n=>{this.moved||n&&window.postMessage({type:"ChallengeInGameRedirect",data:{Slug:n}},"*")},this.checkIsMobile=()=>{this.isMobile=window.innerWidth<=768||window.innerHeight<660},this.renderLevelNumberLine=()=>{const n=r("level",this.language);return n?`${n} ${this.orderNumber} ${r("completed",this.language)}`:""},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,this.isMobile=!1}handleClientStylingChange(n,e){n!=e&&t(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(n,e){n!=e&&o(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(n,e){n!=e&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleBonusProgramGameChange(n){this.currentIndex>=n.length&&(this.currentIndex=0,this.setPositionByIndex())}componentWillLoad(){this.translationUrl&&(async n=>{if(n)try{const i=await fetch(n);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const t=await i.json();e=t,Object.keys(e).forEach((n=>{M[n]||(M[n]={});for(let i in e[n])M[n][i]=e[n][i]}))}catch(n){console.error("Failed to fetch or parse translations from URL:",n)}var e})(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&t(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&o(this.stylingContainer,this.clientStylingUrl)),this.setPositionByIndex(),this.checkIsMobile(),window.addEventListener("resize",this.checkIsMobile)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setSliderPosition(n){this.bonusProgramGames.length<2&&0!==n||this.sliderContainer&&(this.sliderContainer.style.transform=`translateX(${n}px)`)}setPositionByIndex(){var n;const e=(null===(n=this.sliderContainer)||void 0===n?void 0:n.clientWidth)||0;this.currentTranslate=-this.currentIndex*e,this.prevTranslate=this.currentTranslate,this.setSliderPosition(this.currentTranslate)}render(){var n;return e("div",{key:"6824bc8814d29ff948e0f2f359a252e627563e65",ref:n=>this.stylingContainer=n,class:{ModalOverlay:!0,Mobile:this.isMobile,Open:this.isOpen}},e("div",{key:"fa8d34624a19d1e4b020e96b1ddda4431212d887",class:"ModalWinAnimation"}),e("div",{key:"de3257f178b672deb881008f7b658d8b9f87fe3b",class:"ModalWrapper"},e("div",{key:"b4e419a0b7601ab033f55dbcabce45a5b55e4d28",class:"ModalContent GradientBorder"},e("div",{key:"129b2e410322e368af824e742a071d9cf603baf8",class:"InnerContainer"},!this.errored&&e("div",{key:"d34e9b8b7fefd9a1764866608d57df749aeda92a",class:"ImageWrapper"},e("img",{key:"ad762e23947067630c2230d6bbbcaf4ed4a2a02b",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMyIgdmlld0JveD0iMCAwIDIyIDIzIiBmaWxsPSJub25lIj4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9k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RvcCBzdG9wLWNvbG9yPSIjMUU2NTRGIi8+CiAgICAgIDxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzFDOEQ1NiIvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+Cjwvc3ZnPgo=",alt:"gift-box-icon"})),e("h1",{key:"17bf86ab541c1c9b9d8da9ae80dc03d7b97a9d17",class:"ModalHeader"},r(this.errored?"errorTitle":"congrats",this.language)),this.errored?e("div",{class:"ModalErrorMessage"},r("errorSubTitle",this.language)):e("div",{class:"ModalSubtitle"},this.renderLevelNumberLine(),e("div",null,r("youWon",this.language)),e("div",{class:"ModalReward"},this.reward),this.isFreeSpinsGranted&&e("div",{class:"ModalAddition"},r("playNowOrLater",this.language)),e("div",{class:"ModalAddition"},r("rewardInLobby",this.language))),this.addition&&e("div",{key:"595839da89f0efad0974e9fdf4950924cec0f311",class:"ModalAddition"},e("div",{key:"23e6272316625e2132cc2129e5e2b1edfa007045"},r("physicalReward",this.language)),e("span",{key:"8823d18428fdc98fb7072c655a97791c37606d80"},r("linkText",this.language))),e("button",{key:"e8433be561238c3a8debcb4729d14fd39f6aaa26",class:"ModalAction",onClick:this.handleClick},r(this.errored?"errorBtnText":"continue",this.language)),this.isFreeSpinsGranted&&(null===(n=this.bonusProgramGames)||void 0===n?void 0:n.length)>0&&e("div",{key:"5dd51a8bd8adb11ace9b53e034ae8848f4b62c6b",class:"ModalSliderWrapper"},e("div",{key:"ce01d40f1b50b94b0c6feee89aae72abcca70318",class:"ModalSlider",ref:n=>this.sliderContainer=n,onPointerDown:this.onPointerDown,onPointerMove:this.onPointerMove,onPointerUp:this.onPointerUp,onPointerLeave:this.onPointerUp},this.bonusProgramGames.map((n=>e("div",{class:"ModalSlide",key:n.GameSlug,"data-slug":n.GameSlug},e("div",{class:"ModalSlideImageWrapper"},e("img",{src:n.Thumbnail,alt:""})),e("div",{class:"ModalSlideSpins"},r("useSpinsNow",this.language),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("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&&e("div",{key:"65a943274a45300a78187859f0801639b824a5e9"},e("button",{key:"ba2dd62f4996c110a7742f8b08f3415324122450",class:{prev:!0,disabled:0===this.currentIndex},onClick:this.prev},e("svg",{key:"fc642e0d6ec383ac7fc5e292f2a67decc4ca6934",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("path",{key:"986491bc4163bbf5d2570a9faeaa59fdbea02e4f",d:"M5 1L1 5L5 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("button",{key:"c5d591044f4eaa88f19439b3d5925ad975445121",class:{next:!0,disabled:this.currentIndex===this.bonusProgramGames.length-1},onClick:this.next},e("svg",{key:"bd08a79b7818a1ffa0d8719ec3fb476fd3239f41",xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none"},e("path",{key:"46c0e58123f6a78e5f6def9816941c64be2a167d",d:"M1 1L5 5L1 9","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))),e("div",{key:"c597fcea75343d0a133f48e579786d632674404a",class:"ModalSliderDots"},this.bonusProgramGames.map(((n,i)=>e("span",{class:{ModalSliderDot:!0,active:i===this.currentIndex},onClick:()=>{this.currentIndex=i,this.setPositionByIndex()}}))))))))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],bonusProgramGames:["handleBonusProgramGameChange"]}}};d.style=':host {\n display: block;\n font-family: inherit;\n}\n\n* {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n}\n\nbutton {\n border: none;\n background: none;\n cursor: pointer;\n touch-action: manipulation;\n}\nbutton:focus {\n outline: none;\n}\n\n.ModalOverlay {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0);\n justify-content: center;\n align-items: center;\n z-index: 302;\n pointer-events: none;\n container-name: modal-container;\n container-type: size;\n}\n\n.ModalOverlay.Open {\n display: flex;\n pointer-events: auto;\n}\n\n.ModalWrapper {\n container: modal/size;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.ModalContent {\n display: flex;\n background: var(--emw--modal-border-color, linear-gradient(90deg, #003e5c 0.05%, #113b21 87.69%));\n padding: 40px;\n border-radius: 26px;\n border: 2px solid var(--emw--modal-outline-color, #1e654f);\n width: 540px;\n max-width: 90%;\n text-align: center;\n max-height: 90dvh;\n min-height: 100px;\n font-family: "Roboto", sans-serif;\n}\n\n.InnerContainer {\n border-radius: 20px;\n background: var(--emw--modal-background-color, #f9f8f8);\n padding: 20px;\n width: 100%;\n flex-direction: column;\n align-items: center;\n flex: 1;\n min-height: 0;\n overflow: auto;\n scrollbar-width: none;\n -ms-overflow-style: none;\n}\n\n.InnerContainer::-webkit-scrollbar {\n display: none;\n}\n\n.ImageWrapper {\n margin-bottom: 10px;\n}\n\n.ModalHeader {\n color: var(--emw--modal-title-color, #212529);\n text-align: center;\n font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: var(--emw--font-weight-bold, 700);\n line-height: normal;\n text-transform: uppercase;\n letter-spacing: 1px;\n}\n\n.ModalSubtitle {\n color: var(--emw--modal-title-color, #212529);\n text-align: center;\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: var(--emw--font-weigh-normal, 400);\n margin: 10px auto 0;\n line-height: 24px;\n}\n\n.ModalErrorMessage {\n color: var(--emw--modal-title-color, #212529);\n font-size: var(--emw--font-size-medium, 16px);\n line-height: 24px;\n margin: 10px 0;\n}\n\n.ModalReward {\n background: var(--emw--modal-reward-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n font-family: var(--emw--modal-reward-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--modal-reward-font-size, 16px);\n font-weight: var(--emw--modal-reward-font-weight, 700);\n}\n\n.ModalAddition {\n color: var(--emw--modal-addition-color, #727672);\n text-align: center;\n font-family: var(--emw--modal-addition-typography, "Roboto", sans-serif);\n font-size: var(--emw--modal-addition-font-size, 16px);\n font-style: normal;\n font-weight: var(--emw--font-weight-normal, 400);\n align-content: center;\n margin-top: 10px;\n line-height: 24px;\n}\n\n.ModalAddition span {\n background: var(--emw--modal-support-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n font-style: normal;\n font-weight: var(--emw--modal-support-font-weight, 700);\n line-height: 15px;\n text-decoration: none;\n position: relative;\n}\n.ModalAddition span::after {\n content: "";\n position: absolute;\n left: 0;\n bottom: 0;\n height: 1px;\n width: 100%;\n background: var(--emw--modal-support-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n}\n\n.ModalAction {\n border-radius: var(--emw--modal-button-border-radius, 99px);\n border: 2px solid var(--emw--modal-button-border-color, #083b17);\n background: var(--emw--modal-button-background-color, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n padding: 9px 20px;\n margin-top: 24px;\n text-transform: uppercase;\n color: var(--emw--modal-button-color, #fff);\n text-align: center;\n font-family: var(--emw--modal-button-typography, "PF BeauSans Pro", sans-serif);\n font-size: var(--emw--modal-button-font-size, 14px);\n font-weight: var(--emw--modal-button-font-weight, 700);\n min-width: 100px;\n}\n\n.ModalSliderWrapper {\n margin: 24px auto 0;\n position: relative;\n overflow: hidden;\n width: 316px;\n}\n\n.ModalSlider {\n display: flex;\n transition: transform 0.3s ease;\n cursor: pointer;\n touch-action: pan-y;\n}\n\n.ModalSlider:active {\n cursor: grabbing;\n}\n\n.ModalSlide {\n min-width: 100%;\n flex-shrink: 0;\n position: relative;\n display: flex;\n justify-content: center;\n}\n.ModalSlide .ModalSlideSpins {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: var(--emw--modal-game-border-radius, 99px);\n width: 188px;\n height: 48px;\n text-transform: uppercase;\n font-size: var(--emw--modal-game-font-size, 14px);\n font-weight: var(--emw--modal-game-font-weight, 700);\n color: var(--emw--modal-game-font-color, #ffffff);\n align-content: center;\n background: var(--emw--modal-game-background, linear-gradient(180deg, #ea9018 0%, #e0a84e 100%));\n}\n.ModalSlide .ModalSlideSpins svg {\n margin-left: 8px;\n}\n.ModalSlide .ModalSlideImageWrapper {\n position: relative;\n width: 244px;\n height: 144px;\n border-radius: 12px;\n overflow: hidden;\n}\n.ModalSlide .ModalSlideImageWrapper img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n pointer-events: none;\n user-select: none;\n -webkit-user-drag: none;\n}\n.ModalSlide .ModalSlideImageWrapper::after {\n content: "";\n position: absolute;\n inset: 0;\n background: var(--emw--color-black-shadow, rgba(0, 0, 0, 0.5019607843));\n}\n\n.prev,\n.next {\n position: absolute;\n top: 42%;\n transform: translateY(-50%);\n stroke: var(--emw--modal-slider-arrow-color, #ffffff);\n width: 22px;\n height: 22px;\n border-radius: 50%;\n border: 2px solid var(--emw--modal-slider-border-color, #083b17);\n background: var(--emw--modal-slider-arrow-bg, linear-gradient(90deg, #24aa4d 0%, #113f21 100%));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.prev.disabled,\n.next.disabled {\n stroke: var(--emw--modal-slider-arrow-secondary-color, #727672);\n background: var(--emw--modal-slider-arrow-secondary-bg, rgba(0, 0, 0, 0.4));\n border-color: var(--emw--modal-slider-border-secondary-color, #727672);\n}\n\n.prev {\n left: 2px;\n}\n\n.next {\n right: 2px;\n}\n\n.ModalSliderDots {\n display: flex;\n justify-content: center;\n margin-top: 10px;\n}\n\n.ModalSliderDot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: var(--emw--modal-slider-dot-color, #e2e2e2);\n margin: 8px;\n cursor: pointer;\n}\n\n.ModalSliderDot.active {\n background: var(--emw--modal-slider-active-dot-color, #00b74f);\n}\n\n.Mobile .ModalContent {\n padding: 26px;\n}\n.Mobile .InnerContainer {\n padding: 25px;\n}\n.Mobile .ImageWrapper {\n margin-bottom: 6px;\n}\n.Mobile .ModalHeader {\n margin-bottom: 16px;\n font-size: var(--emw--font-size-small, 14px);\n}\n.Mobile .ModalAddition {\n font-size: var(--emw--font-size-x-small, 12px);\n margin-top: 8px;\n line-height: normal;\n}\n.Mobile .ModalAction,\n.Mobile .ModalSliderWrapper {\n margin: 20px auto 0;\n}\n.Mobile .ModalSliderWrapper {\n width: 230px;\n}\n.Mobile .ModalSliderWrapper .prev,\n.Mobile .ModalSliderWrapper .next {\n display: none;\n}\n.Mobile .ModalSliderWrapper .ModalSlideImageWrapper {\n height: 125px;\n width: 220px;\n}\n.Mobile .ModalSliderWrapper .ModalSlideSpins {\n width: 154px;\n height: 34px;\n font-size: var(--emw--font-size-x-small, 12px);\n}\n.Mobile .ModalSliderWrapper .ModalSliderDots {\n margin-top: 5px;\n}\n.Mobile .ModalSliderWrapper .ModalSliderDots .ModalSliderDot {\n margin: 4px;\n}\n.Mobile .ModalSubtitle,\n.Mobile .ModalReward {\n font-size: var(--emw--font-size-small, 14px);\n line-height: 18px;\n}\n.Mobile .ModalAction {\n font-size: var(--emw--font-size-x-small, 12px);\n}\n\n@container modal (height < 720px) {\n .Mobile .ModalContent {\n padding: 20px;\n }\n .Mobile .InnerContainer {\n padding: 8px 20px;\n }\n .Mobile .ModalHeader {\n margin-bottom: 8px;\n }\n .Mobile .ModalSubtitle {\n width: 100%;\n margin: 0 auto;\n }\n .Mobile .ModalAction {\n margin-top: 8px;\n }\n .Mobile .ModalSliderWrapper {\n margin: 8px auto 0;\n }\n .Mobile .ModalSliderWrapper .ModalSlideImageWrapper {\n width: 176px;\n height: 100px;\n }\n}\n@container modal-container (max-height: 750px) {\n .InnerContainer {\n padding: 12px;\n }\n .ModalContent {\n padding: 25px;\n }\n .ModalSliderWrapper,\n .ModalAction {\n margin-top: 15px;\n }\n .ModalSlideImageWrapper {\n height: 125px;\n width: 220px;\n }\n .ModalSlideSpins {\n width: 154px;\n height: 34px;\n font-size: var(--emw--font-size-x-small, 12px);\n }\n .ModalAction {\n padding: 5px 15px;\n }\n}';export{d as C}
|