@everymatrix/casino-challenges-overlay-drawer 0.5.8 → 0.5.10

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.
Files changed (28) hide show
  1. package/dist/casino-challenges-overlay-drawer/casino-challenge-details-events_21.entry.js +1 -1
  2. package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer-2e167783.js +1 -0
  3. package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.esm.js +1 -1
  4. package/dist/casino-challenges-overlay-drawer/index.esm.js +1 -1
  5. package/dist/cjs/casino-challenge-details-events_21.cjs.entry.js +34 -30
  6. package/dist/cjs/{casino-challenges-overlay-drawer-d051e5c6.js → casino-challenges-overlay-drawer-9a977344.js} +14 -80
  7. package/dist/cjs/casino-challenges-overlay-drawer.cjs.js +1 -1
  8. package/dist/cjs/index.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/components/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer.js +14 -15
  11. package/dist/collection/components/components/casino-challenge-opt-out-modal/casino-challenge-opt-out-modal.js +1 -1
  12. package/dist/collection/utils/locale.utils.js +1 -66
  13. package/dist/esm/casino-challenge-details-events_21.entry.js +37 -33
  14. package/dist/esm/{casino-challenges-overlay-drawer-524337b6.js → casino-challenges-overlay-drawer-2e167783.js} +14 -80
  15. package/dist/esm/casino-challenges-overlay-drawer.js +1 -1
  16. package/dist/esm/index.js +1 -1
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/types/utils/locale.utils.d.ts +0 -1
  19. package/package.json +1 -1
  20. package/dist/casino-challenges-overlay-drawer/casino-challenges-overlay-drawer-524337b6.js +0 -1
  21. package/dist/collection/assets/chevron-up.svg +0 -3
  22. package/dist/collection/assets/chevron.svg +0 -4
  23. package/dist/collection/assets/link.svg +0 -3
  24. package/dist/collection/assets/revert-icon.svg +0 -4
  25. package/dist/collection/assets/reward-gift.svg +0 -123
  26. package/dist/collection/assets/slot.svg +0 -59
  27. package/dist/collection/assets/sport.svg +0 -34
  28. package/dist/collection/assets/target.svg +0 -16
@@ -0,0 +1 @@
1
+ import{r as e,h as t}from"./index-25fd45d2.js";const i="__WIDGET_GLOBAL_STYLE_CACHE__";function n(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function s(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function a(e,t,n,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return n=function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t),n;window[i]||(window[i]={}),n=function(e,t){return window.emMessageBus.subscribe(t,(n=>{if(!e)return;const s=e.getRootNode(),a=window[i];let o=a[t]&&a[t].sheet;o?a[t].refCount=a[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(n),a[t]={sheet:o,refCount:1});const l=s.adoptedStyleSheets||[];l.includes(o)||(s.adoptedStyleSheets=[...l,o])}))}(e,t);const a=n.unsubscribe.bind(n);return n.unsubscribe=()=>{if(window[i][t]){const e=window[i][t];e.refCount>1?e.refCount=e.refCount-1:delete window[i][t]}a()},n}const o={en:{title:"Challenges",promo:"Promo",active:"Active",pendingTab:"Pending",finishedTab:"Finished",level:"Level",codeTab:"Code",endsIn:"Ends In",expired:"Expired",placeBetsOf:"Place bets of",place:"Place",bet:"bet",bets:"bets",minBet:"min bet",forfeited:"Forfeited",finished:"Finished",suspended:"Suspended",completed:"Completed",unavailable:"Unavailable",optOutModalTitle:"Opt out of challenge?",optOutModalDescription:"Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.",optOutModalConfirm:"Opt Out",optOutModalCancel:"Cancel",optOutSuccessMessage:"You’ve opted out of the challenge.",deposit:"Deposit",depositAmountDescription:"to unlock the Challenge",noDepositAmountDescription:"Deposit any amount to unlock the Challenge",terms:"Terms & Conditions",time:"time",times:"times",winStakeRatio:"Win/Stake Ratio",promoTabEmptyHeader:"Nothing here - yet!",promoTabEmptyDescription:"No challenges at the moment. Try exploring events or keep playing to unlock new ones.",activeTabEmptyHeader:"No active challenges yet",activeTabEmptyDescription:"Check Promo tab to find available offers",pendingTabEmptyHeader:"No pending challenges yet",pendingTabEmptyDescription:"Check Promo tab to find available offers",finishedTabEmptyHeader:"No finished challenges yet",finishedTabEmptyDescription:"Check Promo tab to find available offers",claimCodeTitle:"Enter the secret code to unlock hidden quests and rewards.",claimCodeSuccessMessage:"The code was successfully applied.",claimCodeInputLabel:"3–30 characters, no spaces",claimCodeBtnText:"Apply Code",claimCodeError:"Invalid format. Use Latin letters, numbers, or symbols.",claimCodeDescription:"Enter code to unlock the challenge",status:"Status",grantClaimByButtonSuccessMessage:"Challenge has been triggered successfully and is now available on the Active tab"}},l=(e,t)=>o[void 0!==t&&t in o?t:"en"][e],r=async e=>{if(e)try{const i=await fetch(e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const n=await i.json();t=n,Object.keys(t).forEach((e=>{o[e]||(o[e]={});for(let i in t[e])o[e][i]=t[e][i]}))}catch(e){console.error("Failed to fetch or parse translations from URL:",e)}var t};var h,c,d,g,M,u,p,b,m,z,w,v,y,f,x,C;!function(e){e[e.Accumulative=0]="Accumulative",e[e.SingleBet=1]="SingleBet",e[e.MultipleOneBetSize=2]="MultipleOneBetSize",e[e.BetMultiplier=3]="BetMultiplier"}(h||(h={})),function(e){e[e.Single=0]="Single",e[e.Daily=1]="Daily",e[e.Weekly=2]="Weekly",e[e.Monthly=3]="Monthly"}(c||(c={})),function(e){e[e.FreeSpins=0]="FreeSpins",e[e.LuckyWheel=1]="LuckyWheel",e[e.Leaderboard=2]="Leaderboard",e[e.Challenge=3]="Challenge",e[e.Custom=4]="Custom"}(d||(d={})),function(e){e[e.Closed=0]="Closed",e[e.InProgress=1]="InProgress",e[e.Fillup=2]="Fillup",e[e.Completed=3]="Completed"}(g||(g={})),function(e){e[e.Started=0]="Started",e[e.InProgress=1]="InProgress",e[e.PendingLevelReward=2]="PendingLevelReward",e[e.Completed=3]="Completed",e[e.Expired=4]="Expired",e[e.Forfeited=5]="Forfeited",e[e.Awaiting=6]="Awaiting",e[e.Paused=7]="Paused"}(M||(M={})),function(e){e[e.Draft=0]="Draft",e[e.Enabled=1]="Enabled",e[e.Paused=2]="Paused",e[e.Closed=3]="Closed",e[e.Deleted=4]="Deleted"}(u||(u={})),function(e){e[e.GameLaunch=0]="GameLaunch",e[e.Reward=1]="Reward",e[e.Manual=2]="Manual",e[e.Claim=3]="Claim",e[e.Event=4]="Event",e[e.Deposit=5]="Deposit",e[e.ClaimByButton=6]="ClaimByButton"}(p||(p={})),function(e){e[e.Period=0]="Period",e[e.Date=1]="Date"}(b||(b={})),function(e){e[e.Casino=0]="Casino",e[e.Any=1]="Any",e[e.Sportsbook=2]="Sportsbook"}(m||(m={})),function(e){e[e.Any=0]="Any",e[e.Live=1]="Live",e[e.PreLive=2]="PreLive"}(z||(z={})),function(e){e[e.Single=0]="Single",e[e.Multiple=1]="Multiple",e[e.System=2]="System"}(w||(w={})),function(e){e[e.Any=0]="Any",e[e.BankerOnly=1]="BankerOnly",e[e.NotBankerOnly=2]="NotBankerOnly"}(v||(v={})),function(e){e[e.Any=0]="Any",e[e.BetBuilderOnly=1]="BetBuilderOnly",e[e.NotBetBuilderOnly=2]="NotBetBuilderOnly"}(y||(y={})),function(e){e[e.RealCash=0]="RealCash",e[e.BonusMoney=1]="BonusMoney",e[e.Mixed=2]="Mixed"}(f||(f={})),function(e){e[e.Promo=0]="Promo",e[e.Active=1]="Active",e[e.Pending=2]="Pending",e[e.Finished=3]="Finished",e[e.Code=4]="Code"}(x||(x={})),function(e){e[e.Levels=0]="Levels",e[e.Games=1]="Games",e[e.Events=2]="Events",e[e.Rules=3]="Rules"}(C||(C={}));const N=["Completed","Expired","Forfeited"];var j,D,I,_;!function(e){e[e.Completed=0]="Completed",e[e.Expired=1]="Expired",e[e.Forfeited=2]="Forfeited"}(j||(j={})),function(e){e.ChallengesHistory="ChallengesHistoryRequest",e.ChallengePromoTab="ChallengePromoTabRequest",e.ClaimChallengeByCode="ClaimChallengeByCodeRequest",e.ChallengeJoin="ChallengeJoinRequest",e.RedirectToDepositPage="RedirectToDepositPage",e.ClaimChallengeByButton="ClaimChallengeByButtonRequest",e.GetChallengeGames="GetChallengeGamesRequest",e.ChallengeIsNew="ChallengeIsNewRequest",e.ChallengeInGameRedirect="ChallengeInGameRedirect",e.ForfeitChallenge="ForfeitChallengeRequest"}(D||(D={})),function(e){e.ChallengesHistory="ChallengesHistoryResponse",e.ChallengePromoTab="ChallengePromoTabResponse",e.ClaimChallengeByCode="ClaimChallengeByCodeResponse",e.ChallengeJoin="ChallengeJoinResponse",e.ClaimChallengeByButton="ClaimChallengeByButtonResponse",e.GetChallengeGames="GetChallengeGamesResponse",e.ChallengeIsNew="ChallengeIsNewResponse",e.ForfeitChallenge="ForfeitChallengeResponse",e.ChangeChallengeProgressStatus="ChangeChallengeProgressStatus",e.ChallengeChangeStatusNotification="ChallengeChangeStatusNotification",e.ChallengeForfeitNotification="ChallengeForfeitNotification",e.UpdateChallengeProgress="UpdateChallengeProgress",e.NewChallengeProgressGranted="NewChallengeProgressGranted"}(I||(I={})),function(e){e.PromoTab="promo",e.PendingTab="pending",e.FinishedTab="finished",e.CodeTab="code"}(_||(_={}));const A=class{constructor(i){e(this,i),this.EMPTY_STATE_PAGE_DESCRIPTION_MAP={[x.Promo]:{header:"promoTabEmptyHeader",description:"promoTabEmptyDescription"},[x.Active]:{header:"activeTabEmptyHeader",description:"activeTabEmptyDescription"},[x.Pending]:{header:"pendingTabEmptyHeader",description:"pendingTabEmptyDescription"},[x.Finished]:{header:"finishedTabEmptyHeader",description:"finishedTabEmptyDescription"}},this.onActiveChallengeChange=e=>{var t,i,n;(null==e?void 0:e.detail)&&(this.removeOptedOutChallenge(),this.updateActiveChallenge(this.activeTabIndex===x.Active?null===(t=this.activeChallenges)||void 0===t?void 0:t.find((t=>(null==t?void 0:t.Id)===e.detail)):this.activeTabIndex===x.Pending?null===(i=this.pendingChallenges)||void 0===i?void 0:i.find((t=>(null==t?void 0:t.Id)===e.detail)):null===(n=this.promoChallenges)||void 0===n?void 0:n.find((t=>(null==t?void 0:t.Id)===e.detail))))},this.onSeeMoreClick=e=>{this.detailsSubPageInfo={open:e.detail.open,tab:e.detail.tab}},this.onLoadMorePlayerHistory=e=>{window.postMessage({type:D.ChallengesHistory,data:e.detail})},this.isInactiveChallenge=e=>[M.Awaiting,M.Forfeited,M.Completed,M.Expired].includes(e.Status)||e.ChallengeStatus===u.Paused,this.updateActiveChallenge=e=>{var t;this.activeChallenge=e,this.activeProgressId=null===(t=this.activeChallenge)||void 0===t?void 0:t.Id},this.removeOptedOutChallenge=()=>{var e;this.isOptedOut&&(this.isOptedOut=!1,this.activeChallenges=null===(e=this.activeChallenges)||void 0===e?void 0:e.filter((e=>{var t;return(null==e?void 0:e.Id)!==(null===(t=this.activeChallenge)||void 0===t?void 0:t.Id)})),this.activeChallenge=null)},this.handleTabClick=e=>{e.detail!==this.activeTabIndex&&(this.removeOptedOutChallenge(),this.activeTabIndex=e.detail,this.activeTabIndex===x.Promo&&window.postMessage({type:D.ChallengePromoTab,data:{}}),this.activeTabIndex===x.Active&&this.updateActiveChallenge(this.activeChallenges[0]),this.activeTabIndex===x.Pending&&this.updateActiveChallenge(this.pendingChallenges[0]),this.activeTabIndex===x.Finished&&window.postMessage({type:D.ChallengesHistory,data:{PageSize:20,PageNumber:0}}),e.detail!==x.Code&&(this.emptyState=this.EMPTY_STATE_PAGE_DESCRIPTION_MAP[e.detail]))},this.openNotification=e=>{this.notification=e,setTimeout((()=>this.notification=null),1e4)},this.renderNotification=()=>{var e,i,n;return t("div",{class:"notification "+((null===(e=this.notification)||void 0===e?void 0:e.errored)?"errored":"")},t("div",{class:"row"},t("img",{src:(null===(i=this.notification)||void 0===i?void 0:i.errored)?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjMzMzMzIDEuMzMzMzNDNC4wMTk2MiAxLjMzMzMzIDEuMzMzMzMgNC4wMTk2MiAxLjMzMzMzIDcuMzMzMzNDMS4zMzMzMyAxMC42NDcgNC4wMTk2MiAxMy4zMzMzIDcuMzMzMzMgMTMuMzMzM0MxMC42NDcgMTMuMzMzMyAxMy4zMzMzIDEwLjY0NyAxMy4zMzMzIDcuMzMzMzNDMTMuMzMzMyA0LjAxOTYyIDEwLjY0NyAxLjMzMzMzIDcuMzMzMzMgMS4zMzMzM1pNMCA3LjMzMzMzQzAgMy4yODMyNSAzLjI4MzI1IDAgNy4zMzMzMyAwQzExLjM4MzQgMCAxNC42NjY3IDMuMjgzMjUgMTQuNjY2NyA3LjMzMzMzQzE0LjY2NjcgMTEuMzgzNCAxMS4zODM0IDE0LjY2NjcgNy4zMzMzMyAxNC42NjY3QzMuMjgzMjUgMTQuNjY2NyAwIDExLjM4MzQgMCA3LjMzMzMzWk03LjMzMzMzIDRDNy43MDE1MiA0IDggNC4yOTg0OCA4IDQuNjY2NjdWNy4zMzMzM0M4IDcuNzAxNTIgNy43MDE1MiA4IDcuMzMzMzMgOEM2Ljk2NTE0IDggNi42NjY2NyA3LjcwMTUyIDYuNjY2NjcgNy4zMzMzM1Y0LjY2NjY3QzYuNjY2NjcgNC4yOTg0OCA2Ljk2NTE0IDQgNy4zMzMzMyA0Wk02LjY2NjY3IDEwQzYuNjY2NjcgOS42MzE4MSA2Ljk2NTE0IDkuMzMzMzMgNy4zMzMzMyA5LjMzMzMzSDcuMzRDNy43MDgxOSA5LjMzMzMzIDguMDA2NjcgOS42MzE4MSA4LjAwNjY3IDEwQzguMDA2NjcgMTAuMzY4MiA3LjcwODE5IDEwLjY2NjcgNy4zNCAxMC42NjY3SDcuMzMzMzNDNi45NjUxNCAxMC42NjY3IDYuNjY2NjcgMTAuMzY4MiA2LjY2NjY3IDEwWiIgZmlsbD0iI0ZGNEQ0RiIvPgo8L3N2Zz4K":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjMzMzMzIDEuMzMzMzNDNC4wMTk2MiAxLjMzMzMzIDEuMzMzMzMgNC4wMTk2MiAxLjMzMzMzIDcuMzMzMzNDMS4zMzMzMyAxMC42NDcgNC4wMTk2MiAxMy4zMzMzIDcuMzMzMzMgMTMuMzMzM0MxMC42NDcgMTMuMzMzMyAxMy4zMzMzIDEwLjY0NyAxMy4zMzMzIDcuMzMzMzNDMTMuMzMzMyA0LjAxOTYyIDEwLjY0NyAxLjMzMzMzIDcuMzMzMzMgMS4zMzMzM1pNMCA3LjMzMzMzQzAgMy4yODMyNSAzLjI4MzI1IDAgNy4zMzMzMyAwQzExLjM4MzQgMCAxNC42NjY3IDMuMjgzMjUgMTQuNjY2NyA3LjMzMzMzQzE0LjY2NjcgMTEuMzgzNCAxMS4zODM0IDE0LjY2NjcgNy4zMzMzMyAxNC42NjY3QzMuMjgzMjUgMTQuNjY2NyAwIDExLjM4MzQgMCA3LjMzMzMzWk0xMC44MDQ3IDQuODYxOTNDMTEuMDY1MSA1LjEyMjI4IDExLjA2NTEgNS41NDQzOSAxMC44MDQ3IDUuODA0NzRMNi44MDQ3NCA5LjgwNDc0QzYuNTQ0MzkgMTAuMDY1MSA2LjEyMjI4IDEwLjA2NTEgNS44NjE5MyA5LjgwNDc0TDMuODYxOTMgNy44MDQ3NEMzLjYwMTU4IDcuNTQ0MzkgMy42MDE1OCA3LjEyMjI4IDMuODYxOTMgNi44NjE5M0M0LjEyMjI4IDYuNjAxNTggNC41NDQzOSA2LjYwMTU4IDQuODA0NzQgNi44NjE5M0w2LjMzMzMzIDguMzkwNTJMOS44NjE5MyA0Ljg2MTkzQzEwLjEyMjMgNC42MDE1OCAxMC41NDQ0IDQuNjAxNTggMTAuODA0NyA0Ljg2MTkzWiIgZmlsbD0iIzAwRkE1QSIvPgo8L3N2Zz4K",class:"notification__icon",alt:""}),t("p",{class:"notification__message"},null===(n=this.notification)||void 0===n?void 0:n.message)))},this.renderHeader=e=>t("div",null,t("h1",{class:"challenges__drawer__title"},t("span",null,l("title",this.language)),t("button",{class:"challenges__drawer__close",onClick:this.onCloseClick},t("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuNSAxNy41TDE3LjUgMi41IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuMDA0NTkiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yLjUgMi41TDE3LjUgMTcuNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxLjAwNDU5IiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",alt:""}))),this.enabledWidgetTabs.length>0&&t("casino-challenges-overlay-tabs",{onTabClick:this.handleTabClick,activeTabIndex:this.activeTabIndex,activeTabHasNotification:!1,pendingTabHasNotification:!1,language:this.language,"is-mobile":e,enabledWidgetTabs:this.enabledWidgetTabs})),this.isEmptyState=()=>{if(!this.loading&&this.activeTabIndex!==x.Code){if(this.activeTabIndex===x.Active&&!this.activeChallenges.length)return!0;if(this.activeTabIndex===x.Pending&&!this.pendingChallenges.length)return!0;if(this.activeTabIndex===x.Promo&&!this.promoChallenges.length)return!0;if(this.activeTabIndex===x.Finished&&!this.playerHistory.length)return!0}return!1},this.renderEmptyState=e=>{var i,n;return t("div",null,this.renderHeader(e),t("casino-challenges-empty-state",{header:l(null===(i=this.emptyState)||void 0===i?void 0:i.header,this.language),description:l(null===(n=this.emptyState)||void 0===n?void 0:n.description,this.language),"is-mobile":e}))},this.renderFinishedTab=e=>t("div",null,this.renderHeader(e),t("casino-challenges-overlay-drawer-history",{mbSource:this.mbSource,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,language:this.language,isMobile:e,historyItems:this.playerHistory,hasMore:this.hasMorePlayerHistory,onLoadMore:this.onLoadMorePlayerHistory,loading:this.loading})),this.renderCodeTab=e=>t("div",null,this.renderHeader(e),t("casino-challenges-claim-code",{"is-mobile":e,translationUrl:this.translationUrl,language:this.language})),this.renderChallengeDetails=(e,i=!1)=>t("casino-challenges-overlay-drawer-details",{translationUrl:this.translationUrl,language:this.language,challenge:this.activeChallenge,swipped:this.swipped,progress:this.progress,"is-mobile":e,"is-unique":i,"is-opted-out":this.isOptedOut,"active-challenges-tab-index":this.activeTabIndex,onSeeMoreClick:this.onSeeMoreClick,detailsSubPageInfo:this.detailsSubPageInfo,challengeGames:this.challengeGames,onCloseClick:this.onCloseClick}),this.renderChallengesTabs=e=>{const i=this.activeTabIndex===x.Active?this.activeChallenges:this.activeTabIndex===x.Pending?this.pendingChallenges:this.promoChallenges,n=1===i.length;return t("swipe-up",{onSwippedUp:e=>{this.swipped=e.detail.swipped,this.progress=e.detail.progress},isMobile:e,isOneSlider:n},t("div",{class:"content-header",slot:"header"},this.renderHeader(e),t("div",{class:{"content-spacer":this.swipped||!e,"one-slide":n&&this.swipped}},t("casino-challenges-overlay-slider",{mbSource:this.mbSource,clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,translationUrl:this.translationUrl,language:this.language,challenges:i,isMobile:e,onActiveChallengeChange:this.onActiveChallengeChange,initialProgressId:this.activeProgressId,activeTabIndex:this.activeTabIndex}))),t("div",{class:"content-details",slot:"details",style:{overflow:this.swipped?"auto":"hidden"}},this.renderChallengeDetails(e,n)))},this.onCloseClick=()=>{var e,t;this.pendingChallenges=null===(e=this.pendingChallenges)||void 0===e?void 0:e.filter((e=>e.Status===M.Awaiting)),this.activeChallenges=null===(t=this.activeChallenges)||void 0===t?void 0:t.filter((e=>!this.isInactiveChallenge(e))),this.detailsSubPageInfo={open:!1,tab:null},this.loading=!1,this.isOptedOut=!1,this.handleClose()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isOpen=!1,this.handleClose=()=>{},this.challenges=[],this.initialProgressId="",this.enabledWidgetTabs=void 0,this.activeChallenge=null,this.activeProgressId="",this.activeTabIndex=x.Active,this.error="",this.hasError=!1,this.swipped=!1,this.detailsSubPageInfo=void 0,this.progress=0,this.loading=!1,this.notification=null,this.optOutModaIsOpen=!1,this.isOptedOut=!1,this.prevUpdateEvent=void 0,this.challengeGames=[],this.activeChallenges=[],this.pendingChallenges=[],this.promoChallenges=[],this.playerHistory=[],this.hasMorePlayerHistory=!1,this.emptyState={header:"activeTabEmptyHeader",description:"activeTabEmptyDescription"}}handleClientStylingChange(e,t){e!=t&&n(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(e,t){e!=t&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleIsOpenChange(e){var t;if(e)if(this.initialProgressId&&this.challenges.length||!this.enabledWidgetTabs.includes(_.PromoTab)){this.activeTabIndex=x.Active,this.activeProgressId=this.initialProgressId;const e=(null===(t=this.activeChallenges)||void 0===t?void 0:t.find((e=>e.Id===this.activeProgressId)))||this.activeChallenges[0];this.updateActiveChallenge(e||null)}else this.activeTabIndex=x.Promo,window.postMessage({type:D.ChallengePromoTab,data:{}})}onActiveChallengeChanged(){this.challengeGames=[]}onOpenOptOut(){this.optOutModaIsOpen=!0}onCloseOptOut(){this.optOutModaIsOpen=!1}onConfirmOptOut(){window.postMessage({type:D.ForfeitChallenge,data:{ChallengeId:this.activeChallenge.ChallengeId}})}onChallengeExpired(e){if(null==e?void 0:e.detail)switch(this.activeTabIndex){case x.Active:this.activeChallenges=this.updateChallenge(this.activeChallenges,e.detail,{Status:M.Expired});break;case x.Pending:this.pendingChallenges=this.updateChallenge(this.pendingChallenges,e.detail,{Status:M.Expired});break;case x.Promo:this.promoChallenges=this.updateChallenge(this.promoChallenges,e.detail,{Status:M.Expired})}}handleEvent(e){var t,i,n,s;const{type:a,data:o,success:r,errorMessage:h}=null==e?void 0:e.data;switch(console.log("\nReceived event: ",null==e?void 0:e.data.type),console.log(e),a){case I.ChallengePromoTab:r?(this.promoChallenges=o||[],this.updateActiveChallenge(this.promoChallenges[0])):(this.promoChallenges=[],this.updateActiveChallenge(null),this.openNotification({message:h,errored:!0})),this.loading=!1;break;case I.ChallengesHistory:r?(this.playerHistory=this.playerHistory.length<(null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.totalItem)?[...this.playerHistory,...o]:o,this.hasMorePlayerHistory=(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.totalItem)>this.playerHistory.length):this.openNotification({message:h,errored:!0}),this.loading=!1;break;case I.ClaimChallengeByCode:r?(this.openNotification({message:l("claimCodeSuccessMessage",this.language)}),this.activeChallenges=[...this.activeChallenges,o]):this.openNotification({message:h,errored:!0}),this.loading=!1;break;case I.ChallengeJoin:if(r){const e=[M.Paused,M.Started].includes(null===(n=this.activeChallenge)||void 0===n?void 0:n.Status);this.activeChallenges=this.updateChallenge(this.activeChallenges,e?null==o?void 0:o.joinId:null==o?void 0:o.unjoinId,{Status:e?M.InProgress:M.Paused})}else this.openNotification({message:h,errored:!0});this.loading=!1;break;case I.ChallengeIsNew:r?this.updateChallengeByProgressId(null==o?void 0:o.challengeProgressId,{IsNew:!1}):this.openNotification({message:h,errored:!0});break;case I.GetChallengeGames:r?this.challengeGames=o:this.openNotification({message:h,errored:!0}),this.loading=!1;break;case I.ClaimChallengeByButton:if(r){const e=Array.isArray(o)?o[0]:o;e&&(e.IsNew=!1,this.activeChallenges=[...this.activeChallenges,e],this.updateActiveChallenge(e),this.activeTabIndex=x.Active,this.openNotification({message:l("grantClaimByButtonSuccessMessage",this.language)}))}else this.openNotification({message:h,errored:!0});this.loading=!1;break;case I.ForfeitChallenge:this.optOutModaIsOpen=!1,r?(this.openNotification({message:l("optOutSuccessMessage",this.language)}),this.detailsSubPageInfo={open:!1,tab:null},this.isOptedOut=!0):this.openNotification({message:h,errored:!0}),this.loading=!1;break;case I.ChangeChallengeProgressStatus:this.updateChallengeByProgressId(null==o?void 0:o.ChallengeProgressId,{Status:null==o?void 0:o.ChallengeProgressStatus});break;case I.ChallengeChangeStatusNotification:this.updateChallengeById(null==o?void 0:o.ChallengeId,{ChallengeStatus:(null==o?void 0:o.IsEnabled)?u.Enabled:u.Paused});break;case I.ChallengeForfeitNotification:this.updateChallengeById(null==o?void 0:o.ChallengeId,{Status:M.Forfeited});break;case I.UpdateChallengeProgress:{const e=o;if(!((e,t)=>{if(!e)return!0;if(e.ProgressId!==t.ProgressId)return!0;if(e.Levels.length!==t.Levels.length)return!0;for(let i=0;i<t.Levels.length;i++){const n=e.Levels[i],s=t.Levels[i];if(n.LevelId!==s.LevelId||n.ProgressStatus!==s.ProgressStatus||n.ProgressPercentage!==s.ProgressPercentage)return!0}return!1})(this.prevUpdateEvent,e))return;this.prevUpdateEvent=e,this.activeChallenges=null===(s=this.activeChallenges)||void 0===s?void 0:s.map((t=>{if(t.Id!==(null==e?void 0:e.ProgressId))return t;const i=t.LevelProgresses.map((t=>{const i=null==e?void 0:e.Levels.find((e=>e.LevelId===t.LevelId));return i?Object.assign(Object.assign({},t),{ProgressStatus:i.ProgressStatus,ProgressPercentage:i.ProgressPercentage}):t}));return Object.assign(Object.assign({},t),{Status:null==e?void 0:e.Status,LevelProgresses:i})}));break}case I.NewChallengeProgressGranted:const a=(null==o?void 0:o.Status)===M.Awaiting,c=a?this.pendingChallenges:this.activeChallenges;if(null==c?void 0:c.some((e=>e.Id===(null==o?void 0:o.Id))))break;a?(this.pendingChallenges=[...c,o],this.activeTabIndex===x.Pending&&1===this.pendingChallenges.length&&this.updateActiveChallenge(o)):(this.activeChallenges=[...c,o],this.activeTabIndex===x.Active&&1===this.activeChallenges.length&&this.updateActiveChallenge(o));break;case D.ChallengeJoin:case D.GetChallengeGames:case D.ClaimChallengeByButton:case D.RedirectToDepositPage:case D.ChallengeInGameRedirect:case D.ChallengesHistory:case D.ChallengePromoTab:case D.ClaimChallengeByCode:case D.ForfeitChallenge:this.loading=!0}}componentWillLoad(){var e;if(this.translationUrl&&r(this.translationUrl),null===(e=this.challenges)||void 0===e?void 0:e.length){const e=[...this.challenges];this.pendingChallenges=e.filter((e=>e.Status===M.Awaiting)),this.activeChallenges=e.filter((e=>!this.isInactiveChallenge(e)))}}componentDidLoad(){this.stylingContainer&&(this.mbSource&&a(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&n(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}updateChallenge(e,t,i){var n;return(null===(n=this.activeChallenge)||void 0===n?void 0:n.Id)===t&&(this.activeChallenge=Object.assign(Object.assign({},this.activeChallenge),i)),e.map((e=>e.Id===t?Object.assign(Object.assign({},e),i):e))}updateChallengeList(e,t,i){let n=!1;const s=e.map((e=>e.ChallengeId===t?(n=!0,Object.assign(Object.assign({},e),i)):e));return n?s:e}updateChallengeById(e,t){var i;(null===(i=this.activeChallenge)||void 0===i?void 0:i.ChallengeId)===e&&(this.activeChallenge=Object.assign(Object.assign({},this.activeChallenge),t)),this.activeChallenges=this.updateChallengeList(this.activeChallenges,e,t),this.pendingChallenges=this.updateChallengeList(this.pendingChallenges,e,t),this.promoChallenges=this.updateChallengeList(this.promoChallenges,e,t)}updateChallengeByProgressId(e,t){var i;(null===(i=this.activeChallenge)||void 0===i?void 0:i.Id)===e&&(this.activeChallenge=Object.assign(Object.assign({},this.activeChallenge),t)),this.activeChallenges.find((t=>t.Id===e))?this.activeChallenges=this.activeChallenges.map((i=>i.Id===e?Object.assign(Object.assign({},i),t):i)):this.pendingChallenges.find((t=>t.Id===e))?this.pendingChallenges=this.pendingChallenges.map((i=>i.Id===e?Object.assign(Object.assign({},i),t):i)):this.promoChallenges=this.promoChallenges.map((i=>i.Id===e?Object.assign(Object.assign({},i),t):i))}renderContent(e,i){var n;if(i)return this.renderEmptyState(e);if(null===(n=this.detailsSubPageInfo)||void 0===n?void 0:n.open)return t("div",{class:"content-sub-page",slot:"details"},this.renderChallengeDetails(e));switch(this.activeTabIndex){case x.Promo:case x.Active:case x.Pending:return this.renderChallengesTabs(e);case x.Code:return this.renderCodeTab(e);case x.Finished:return this.renderFinishedTab(e);default:return}}render(){if(!this.isOpen)return;const e=(()=>{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))})()||window.innerWidth<=768,i=this.isEmptyState();return t("div",{ref:e=>this.stylingContainer=e,class:{container:!0,open:this.isOpen,mobile:e}},t("div",{class:"challenges__backdrop",onClick:this.onCloseClick}),t("div",{class:"challenges__drawer"},t("casino-challenge-overlay-background",{empty:i}),t("div",{class:"challenges__drawer__content"},this.renderContent(e,i)),this.loading&&t("casino-challenges-overlay-loader",{"full-size":!0,"is-mobile":e}),t("casino-challenge-opt-out-modal",{open:this.optOutModaIsOpen,"is-mobile":e,language:this.language})),this.notification&&this.renderNotification())}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],isOpen:["handleIsOpenChange"],activeChallenge:["onActiveChallengeChanged"]}}};A.style='@import url("https://fonts.googleapis.com/css2?family=Teachers:ital,wght@0,400..800;1,400..800&display=swap");\n.container {\n z-index: 301;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n container-name: challenges-game-page;\n container-type: size;\n}\n.container.open {\n pointer-events: auto;\n}\n\n.mobile .challenges__drawer {\n width: 100%;\n height: 100%;\n left: 0;\n bottom: 0;\n border-radius: 0;\n backdrop-filter: blur(16px);\n border: none;\n max-width: none;\n min-width: initial;\n}\n.mobile .challenges__drawer .content-spacer {\n margin-bottom: 32px;\n}\n.mobile .challenges__drawer .content-spacer.one-slide {\n margin-bottom: 38px;\n}\n.mobile .challenges__drawer__content {\n padding: 16px 0 0;\n}\n.mobile .challenges__drawer__content .content-details {\n height: calc(100% - 30px);\n}\n.mobile .challenges__drawer__title {\n height: 26px;\n font-size: var(--emw--font-size-large, 18px);\n}\n.mobile .challenges__drawer__close {\n right: 16px;\n width: 26px;\n height: 26px;\n}\n.mobile .challenges__drawer__close img {\n width: 14px;\n}\n.mobile .challenges__backdrop {\n display: none;\n}\n.mobile .notification {\n padding: 8px 16px;\n gap: 8px;\n}\n.mobile .notification .row {\n margin: 15px 0 14px 0;\n}\n.mobile .notification__icon {\n width: 16px;\n height: 16px;\n}\n.mobile .notification__message {\n font-size: var(--emw--font-size-small, 14px);\n}\n\n.challenges__drawer {\n z-index: 302;\n position: fixed;\n left: 62px;\n bottom: 76px;\n border: 1px solid var(--emw--color-container-border, rgba(255, 255, 255, 0.0705882353));\n background: var(--emw--color-Overlay-Background, rgba(9, 9, 9, 0.8));\n backdrop-filter: blur(11px);\n box-sizing: border-box;\n width: 35%;\n min-width: 400px;\n max-width: 600px;\n height: calc(100% - 20px - 76px);\n border-radius: 30px;\n opacity: 1;\n font-family: var(--emw--font-family-primary, "Teachers"), sans-serif;\n container-name: challenges-drawer;\n container-type: size;\n}\n.challenges__drawer__title {\n height: 36px;\n color: var(--emw--color-title, #edeff2);\n text-align: center;\n font-size: var(--emw--font-size-large-xl, 22px);\n font-weight: var(--emw--font-weight-semibold, 600);\n margin: 0;\n position: relative;\n z-index: 1;\n align-content: center;\n}\n.challenges__drawer__close {\n outline: none;\n background: transparent;\n border-radius: 20px;\n border: 1.5px solid var(--emw--color-container-border, rgba(255, 255, 255, 0.0705882353));\n background: var(--emw--color-container-background, rgba(9, 9, 9, 0.5019607843));\n backdrop-filter: blur(6.882352829px);\n cursor: pointer;\n width: 36px;\n height: 36px;\n min-width: 36px;\n min-height: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n right: 24px;\n}\n.challenges__drawer__content {\n height: 100%;\n position: relative;\n z-index: 2;\n padding: 24px 0 0;\n box-sizing: border-box;\n}\n.challenges__drawer__content .content-header {\n width: 100%;\n flex-shrink: 0;\n}\n.challenges__drawer__content .content-details {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n}\n.challenges__drawer__content .content-sub-page {\n display: flex;\n height: 100%;\n}\n.challenges__drawer .content-spacer {\n margin-bottom: 24px;\n}\n.challenges__drawer, .challenges__drawer * {\n scrollbar-width: thin;\n scrollbar-color: var(--emw--color-gray-250, rgba(255, 255, 255, 0.3)) transparent;\n}\n.challenges__drawer::-webkit-scrollbar, .challenges__drawer *::-webkit-scrollbar {\n width: 3px;\n}\n.challenges__drawer::-webkit-scrollbar-track, .challenges__drawer *::-webkit-scrollbar-track {\n background: transparent;\n}\n.challenges__drawer::-webkit-scrollbar-thumb, .challenges__drawer *::-webkit-scrollbar-thumb {\n background: var(--emw--color-gray-250, rgba(255, 255, 255, 0.3));\n opacity: 0.3;\n border-radius: 999px;\n transition: none;\n width: 3px;\n}\n.challenges__drawer::-webkit-scrollbar-thumb:hover, .challenges__drawer *::-webkit-scrollbar-thumb:hover {\n background: var(--emw--color-gray-250, rgba(255, 255, 255, 0.3));\n opacity: 0.3;\n width: 3px;\n}\n.challenges__drawer::-webkit-scrollbar-button, .challenges__drawer *::-webkit-scrollbar-button {\n display: none;\n}\n.challenges__backdrop {\n border: none;\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: var(--emw--color-gray-backdrop, rgba(0, 0, 0, 0.6));\n box-shadow: -5px 0 0 0 var(--emw--color-gray-backdrop, rgba(0, 0, 0, 0.6));\n z-index: 301;\n opacity: 1;\n}\n\n.notification {\n display: flex;\n position: fixed;\n z-index: 400;\n align-items: center;\n bottom: 76px;\n right: 0;\n padding: 24px;\n gap: 12px;\n max-width: 445px;\n box-sizing: border-box;\n border-radius: 20px 0 0 20px;\n border-top: 1px solid var(--emw--status-badge-success-color, #d6fff0);\n border-bottom: 1px solid var(--emw--status-badge-success-color, #d6fff0);\n border-left: 1px solid var(--emw--status-badge-success-color, #d6fff0);\n background: var(--emw--background-success-notification, linear-gradient(112deg, rgba(74, 255, 135, 0.2) 0%, rgba(74, 255, 135, 0) 100%));\n backdrop-filter: blur(16px);\n color: var(--emw--color-white, #ffffff);\n font-family: var(--emw--font-family-primary, "Teachers"), sans-serif;\n}\n.notification.errored {\n border-top: 1px solid var(--emw--status-badge-red-bg, #d63d1e);\n border-bottom: 1px solid var(--emw--status-badge-red-bg, #d63d1e);\n border-left: 1px solid var(--emw--status-badge-red-bg, #d63d1e);\n background: var(--emw--background-error-notification, rgba(9, 9, 9, 0.4));\n}\n.notification .row {\n display: flex;\n align-items: flex-start;\n}\n.notification__icon {\n width: 18px;\n height: 18px;\n margin-right: 12px;\n}\n.notification__message {\n margin: 0;\n font-size: var(--emw--font-size-medium, 16px);\n font-weight: var(--emw--font-weight-medium, 500);\n}\n.notification__message .active-tab {\n color: var(--emw--border-success-color, #00b74f);\n text-decoration-line: underline;\n cursor: pointer;\n}\n\ncasino-challenges-overlay-drawer-details {\n flex: 1;\n}\n\n@container challenges-game-page (width <= 1430px) {\n .challenges__drawer {\n width: 40%;\n left: 45px;\n }\n}\n@container challenges-game-page (width <= 1250px) {\n .challenges__drawer {\n width: 45%;\n }\n}\n@container challenges-game-page (width <= 1000px) {\n .challenges__drawer {\n width: 50%;\n left: 25px;\n }\n}\n@container challenges-game-page (width <= 800px) {\n .challenges__drawer__content {\n padding: 20px 0 0;\n }\n}\n@container challenges-game-page (height <= 850px) {\n .challenges__drawer {\n bottom: 36px;\n height: calc(100% - 20px - 36px);\n }\n .challenges__drawer .content-spacer {\n margin-bottom: 18px;\n }\n}\n@container challenges-drawer (height <= 760px) {\n .challenges__drawer .content-spacer {\n margin-bottom: 12px;\n }\n}';export{A as C,j as E,N as H,D as a,s as b,a as c,x as d,_ as e,r,n as s,l as t}
@@ -1 +1 @@
1
- import{p as e,b as l}from"./index-25fd45d2.js";export{s as setNonce}from"./index-25fd45d2.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await n(),l([["casino-challenge-details-events_21",[[1,"casino-challenges-overlay-drawer",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isOpen:[516,"is-open"],handleClose:[16],challenges:[16],initialProgressId:[513,"initial-progress-id"],enabledWidgetTabs:[16],activeChallenge:[32],activeProgressId:[32],activeTabIndex:[32],error:[32],hasError:[32],swipped:[32],detailsSubPageInfo:[32],progress:[32],loading:[32],notification:[32],optOutModaIsOpen:[32],isOptedOut:[32],prevUpdateEvent:[32],challengeGames:[32],activeChallenges:[32],pendingChallenges:[32],promoChallenges:[32],playerHistory:[32],hasMorePlayerHistory:[32],emptyState:[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],isOpen:["handleIsOpenChange"],activeChallenge:["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],challenge:[16],language:[513],isMobile:[516,"is-mobile"],isUnique:[516,"is-unique"],swipped:[516],progress:[514],activeChallengesTabIndex:[513,"active-challenges-tab-index"],detailsSubPageInfo:[16],isOptedOut:[516,"is-opted-out"],challengeGames:[16],swipping:[32],actionLoading:[32],error:[32],isChallengePaused:[32],timeLeft:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],progress:["onSwipeChange"],challenge:["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{language:[1],isMobile:[4,"is-mobile"],open:[4]}],[1,"casino-challenges-overlay-drawer-history",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isMobile:[516,"is-mobile"],loading:[516],hasMore:[516,"has-more"],historyItems:[16],openItems:[32],pageSize:[32],pageNumber:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],historyItems:["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isMobile:[516,"is-mobile"],challenges:[16],initialProgressId:[1,"initial-progress-id"],activeTabIndex:[1,"active-tab-index"],currentIndex:[32],slideWidth:[32],slideHeight:[32],isOneSlide:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],currentIndex:["onCurrentIndexChange"],challenges:["onChallengesChange"],initialProgressId:["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{empty:[4]}],[1,"casino-challenges-claim-code",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],domain:[513],isMobile:[516,"is-mobile"],loading:[32],hasError:[32],code:[32],notificationMessage:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{header:[1],description:[1],isMobile:[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{fullSize:[4,"full-size"],isMobile:[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{language:[513],isMobile:[516,"is-mobile"],activeTabIndex:[514,"active-tab-index"],activeTabHasNotification:[516,"active-tab-has-notification"],pendingTabHasNotification:[516,"pending-tab-has-notification"],enabledWidgetTabs:[16]}],[4,"swipe-up",{isMobile:[516,"is-mobile"],isOneSlider:[516,"is-one-slider"],progress:[32]},null,{isOneSlider:["onIsOneSliderChange"],progress:["onSwipeChange"]}],[0,"casino-challenge-details-levels",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],isChallengePaused:[4,"is-challenge-paused"],isOptedOut:[4,"is-opted-out"],open:[4]}],[0,"casino-challenge-details-events",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],open:[4]}],[0,"casino-challenge-details-games",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],games:[16],handleGameClick:[16]}],[0,"casino-challenge-details-progress-bar",{challenge:[16],language:[1],isMobile:[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],isOptedOut:[4,"is-opted-out"],open:[4]}],[0,"casino-challenge-drawer-history-item",{language:[513],index:[514],historyItem:[16],itemRef:[16],isOpen:[4,"is-open"],isMobile:[4,"is-mobile"],toggle:[16]}],[1,"casino-challenges-modal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isOpen:[516,"is-open"],showWinAnimation:[516,"show-win-animation"],showBackdrop:[516,"show-backdrop"],showCloseButton:[516,"show-close-button"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{challenge:[16],index:[2],arrLength:[2,"arr-length"],currentIndex:[2,"current-index"],language:[1],isOptedOut:[4,"is-opted-out"],slideWidth:[2,"slide-width"],slideHeight:[2,"slide-height"],timeLeft:[32]}],[4,"casino-challenge-expandable-paragraph",{maxHeight:[2,"max-height"],active:[4],expanded:[32],needsTruncation:[32]}],[0,"casino-challenge-level-progress-bar",{height:[1],active:[4],value:[2]}]]]],e))));
1
+ import{p as e,b as l}from"./index-25fd45d2.js";export{s as setNonce}from"./index-25fd45d2.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const l=import.meta.url,n={};return""!==l&&(n.resourcesUrl=new URL(".",l).href),e(n)})().then((async e=>(await n(),l([["casino-challenge-details-events_21",[[1,"casino-challenges-overlay-drawer",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isOpen:[516,"is-open"],handleClose:[16],challenges:[16],initialProgressId:[513,"initial-progress-id"],enabledWidgetTabs:[16],activeChallenge:[32],activeProgressId:[32],activeTabIndex:[32],error:[32],hasError:[32],swipped:[32],detailsSubPageInfo:[32],progress:[32],loading:[32],notification:[32],optOutModaIsOpen:[32],isOptedOut:[32],prevUpdateEvent:[32],challengeGames:[32],activeChallenges:[32],pendingChallenges:[32],promoChallenges:[32],playerHistory:[32],hasMorePlayerHistory:[32],emptyState:[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],isOpen:["handleIsOpenChange"],activeChallenge:["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],challenge:[16],isMobile:[516,"is-mobile"],isUnique:[516,"is-unique"],swipped:[516],progress:[514],activeChallengesTabIndex:[513,"active-challenges-tab-index"],detailsSubPageInfo:[16],isOptedOut:[516,"is-opted-out"],challengeGames:[16],swipping:[32],actionLoading:[32],error:[32],isChallengePaused:[32],timeLeft:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],progress:["onSwipeChange"],challenge:["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{language:[1],isMobile:[4,"is-mobile"],open:[4]}],[1,"casino-challenges-overlay-drawer-history",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isMobile:[516,"is-mobile"],loading:[516],hasMore:[516,"has-more"],historyItems:[16],openItems:[32],pageSize:[32],pageNumber:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],historyItems:["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],isMobile:[516,"is-mobile"],challenges:[16],initialProgressId:[1,"initial-progress-id"],activeTabIndex:[1,"active-tab-index"],currentIndex:[32],slideWidth:[32],slideHeight:[32],isOneSlide:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],currentIndex:["onCurrentIndexChange"],challenges:["onChallengesChange"],initialProgressId:["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{empty:[4]}],[1,"casino-challenges-claim-code",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],language:[513],endpoint:[513],domain:[513],isMobile:[516,"is-mobile"],loading:[32],hasError:[32],code:[32],notificationMessage:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{header:[1],description:[1],isMobile:[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{fullSize:[4,"full-size"],isMobile:[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{language:[513],isMobile:[516,"is-mobile"],activeTabIndex:[514,"active-tab-index"],activeTabHasNotification:[516,"active-tab-has-notification"],pendingTabHasNotification:[516,"pending-tab-has-notification"],enabledWidgetTabs:[16]}],[4,"swipe-up",{isMobile:[516,"is-mobile"],isOneSlider:[516,"is-one-slider"],progress:[32]},null,{isOneSlider:["onIsOneSliderChange"],progress:["onSwipeChange"]}],[0,"casino-challenge-details-levels",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],isChallengePaused:[4,"is-challenge-paused"],isOptedOut:[4,"is-opted-out"],open:[4]}],[0,"casino-challenge-details-events",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],open:[4]}],[0,"casino-challenge-details-games",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],games:[16],handleGameClick:[16]}],[0,"casino-challenge-details-progress-bar",{challenge:[16],language:[1],isMobile:[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{challenge:[16],language:[1],isMobile:[4,"is-mobile"],isOptedOut:[4,"is-opted-out"],open:[4]}],[0,"casino-challenge-drawer-history-item",{language:[513],index:[514],historyItem:[16],itemRef:[16],isOpen:[4,"is-open"],isMobile:[4,"is-mobile"],toggle:[16]}],[1,"casino-challenges-modal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],isOpen:[516,"is-open"],showWinAnimation:[516,"show-win-animation"],showBackdrop:[516,"show-backdrop"],showCloseButton:[516,"show-close-button"]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{challenge:[16],index:[2],arrLength:[2,"arr-length"],currentIndex:[2,"current-index"],language:[1],isOptedOut:[4,"is-opted-out"],slideWidth:[2,"slide-width"],slideHeight:[2,"slide-height"],timeLeft:[32]}],[4,"casino-challenge-expandable-paragraph",{maxHeight:[2,"max-height"],active:[4],expanded:[32],needsTruncation:[32]}],[0,"casino-challenge-level-progress-bar",{height:[1],active:[4],value:[2]}]]]],e))));
@@ -1 +1 @@
1
- export{C as CasinoChallengesOverlayDrawer}from"./casino-challenges-overlay-drawer-524337b6.js";import"./index-25fd45d2.js";
1
+ export{C as CasinoChallengesOverlayDrawer}from"./casino-challenges-overlay-drawer-2e167783.js";import"./index-25fd45d2.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d2288c94.js');
6
- const casinoChallengesOverlayDrawer = require('./casino-challenges-overlay-drawer-d051e5c6.js');
6
+ const casinoChallengesOverlayDrawer = require('./casino-challenges-overlay-drawer-9a977344.js');
7
7
 
8
8
  function _typeof(o) {
9
9
  "@babel/helpers - typeof";
@@ -2204,18 +2204,11 @@ function cleanEscapedString(input) {
2204
2204
  const DEFAULT_LANGUAGE$1 = 'en';
2205
2205
  const TRANSLATIONS$1 = {
2206
2206
  en: {
2207
- title: 'Challenges',
2208
- promo: 'Promo',
2209
- active: 'Active',
2210
- pendingTab: 'Pending',
2211
- finishedTab: 'Finished',
2212
2207
  levels: 'Levels',
2213
- level: 'Level',
2214
2208
  seeAll: 'See All',
2215
2209
  games: 'Games',
2216
2210
  rules: 'Rules',
2217
2211
  events: 'Events',
2218
- codeTab: 'Code',
2219
2212
  endsIn: 'Ends In',
2220
2213
  expired: 'Expired',
2221
2214
  placeBetsOf: 'Place bets of',
@@ -2231,13 +2224,8 @@ const TRANSLATIONS$1 = {
2231
2224
  optIn: 'Opt In',
2232
2225
  optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
2233
2226
  optOutLeavingActionText: 'Opt out of Challenge',
2234
- optOutModalTitle: 'Opt out of challenge?',
2235
- optOudModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
2236
- optOutModalConfirm: 'Opt Out',
2237
- optOutModalCancel: 'Cancel',
2238
2227
  resume: 'Resume',
2239
2228
  pause: 'Pause',
2240
- join: 'Join to Start',
2241
2229
  deposit: 'Deposit',
2242
2230
  launchGame: 'Launch Game',
2243
2231
  launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
@@ -2258,8 +2246,6 @@ const TRANSLATIONS$1 = {
2258
2246
  readFullTerms: 'Read full Terms & Conditions',
2259
2247
  contribution: 'contribution',
2260
2248
  endDate: 'End Date',
2261
- back: 'Back',
2262
- all: 'All Challenges',
2263
2249
  sports: 'Sports',
2264
2250
  casino: 'Casino',
2265
2251
  contributionType: 'Contribution Type',
@@ -2295,24 +2281,38 @@ const TRANSLATIONS$1 = {
2295
2281
  time: 'time',
2296
2282
  times: 'times',
2297
2283
  winStakeRatio: 'Win/Stake Ratio',
2298
- promoTabEmptyHeader: 'Nothing here - yet!',
2299
- promoTabEmptyDescription: 'No challenges at the moment. Try exploring events or keep playing to unlock new ones.',
2300
- activeTabEmptyHeader: 'No active challenges yet',
2301
- activeTabEmptyDescription: 'Check Promo tab to find available offers',
2302
- pendingTabEmptyHeader: 'No pending challenges yet',
2303
- pendingTabEmptyDescription: 'Check Promo tab to find available offers',
2304
- finishedTabEmptyHeader: 'No finished challenges yet',
2305
- finishedTabEmptyDescription: 'Check Promo tab to find available offers',
2306
2284
  yourProgress: 'Your Progress'
2307
- },
2308
- da: {
2309
- title: ''
2310
2285
  }
2311
2286
  };
2312
2287
  const translate$1 = (key, customLang) => {
2313
2288
  const lang = customLang;
2314
2289
  return TRANSLATIONS$1[lang !== undefined && lang in TRANSLATIONS$1 ? lang : DEFAULT_LANGUAGE$1][key];
2315
2290
  };
2291
+ const getTranslations$1 = (data) => {
2292
+ Object.keys(data).forEach((item) => {
2293
+ if (!TRANSLATIONS$1[item]) {
2294
+ TRANSLATIONS$1[item] = {};
2295
+ }
2296
+ for (let key in data[item]) {
2297
+ TRANSLATIONS$1[item][key] = data[item][key];
2298
+ }
2299
+ });
2300
+ };
2301
+ const resolveTranslationUrl$1 = async (translationUrl) => {
2302
+ if (translationUrl) {
2303
+ try {
2304
+ const response = await fetch(translationUrl);
2305
+ if (!response.ok) {
2306
+ throw new Error(`HTTP error! status: ${response.status}`);
2307
+ }
2308
+ const translations = await response.json();
2309
+ getTranslations$1(translations);
2310
+ }
2311
+ catch (error) {
2312
+ console.error('Failed to fetch or parse translations from URL:', error);
2313
+ }
2314
+ }
2315
+ };
2316
2316
 
2317
2317
  const casinoChallengeDetailsEventsCss = ".Mobile.events-tab{margin-top:16px}.Mobile.events-tab .event{font-size:var(--emw--font-size-small, 14px)}.events-tab{display:none;margin-top:16px;flex-direction:column;overflow-y:auto;transform:translateX(10000px);animation:slideFromRight 0.25s forwards;gap:20px;height:auto;max-height:initial}.events-tab .event{color:var(--emw--color-event-rule, rgba(255, 255, 255, 0.7019607843));font-weight:var(--emw--font-weight-normal, 400);margin:0;font-size:var(--emw--font-size-medium, 16px)}.events-tab .event span{text-transform:capitalize;color:var(--emw--color-white, white);font-weight:var(--emw--font-weight-medium, 500)}.events-tab.visible{display:flex}@keyframes slideFromRight{from{transform:translateX(700px)}to{transform:translateX(0)}}";
2318
2318
  const CasinoChallengeDetailsEventsStyle0 = casinoChallengeDetailsEventsCss;
@@ -2976,7 +2976,7 @@ const CasinoChallengeDetailsOptOut$1 = class {
2976
2976
  this.open = false;
2977
2977
  }
2978
2978
  render() {
2979
- return (index.h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, index.h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, index.h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, index.h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutSvg, height: 20, width: 20 })), index.h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, casinoChallengesOverlayDrawer.translate('optOutModalTitle', this.language))), index.h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, index.h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, casinoChallengesOverlayDrawer.translate('optOudModalDescription', this.language))), index.h("div", { key: '34e1e80b7a2435c28788aafea072adba10aff836', class: "modal-footer", slot: "footer" }, index.h("button", { key: '8a476048cdc8c297f9bba9174c85555e58362204', class: "modal-footer-button confirm", onClick: this.handleCloseOptOut }, casinoChallengesOverlayDrawer.translate('optOutModalCancel', this.language)), index.h("button", { key: 'e993c82f39a4ce6d6faa7581c11b3edde33d04f6', class: "modal-footer-button cancel", onClick: this.handleConfirmOptOut }, casinoChallengesOverlayDrawer.translate('optOutModalConfirm', this.language)))));
2979
+ return (index.h("casino-challenges-modal", { key: '313981094c4deb08622e70d64544b270f5d58927', isOpen: this.open, onClose: this.handleCloseOptOut, showBackdrop: true, showCloseButton: true }, index.h("div", { key: '3eb309a2073df2b0be66192eb3d5b3e2c47ddaac', slot: "header" }, index.h("div", { key: '74d0886975cffde599597100445431488aa3aab8', class: "opt-out-icon-circle" }, index.h("img", { key: 'f9cef6d393f458425b2406c077dd3b5e615a70ce', class: "opt-out-icon", src: optOutSvg, height: 20, width: 20 })), index.h("h2", { key: 'da5484c8cf059ae66d82eb4e493992b17c91139d', class: "modal-header-title" }, casinoChallengesOverlayDrawer.translate('optOutModalTitle', this.language))), index.h("div", { key: '9baafd6078ea53dfcb2e440b0e18afc7b20d72a0', slot: "body" }, index.h("p", { key: '5a758912278c08dc681e1d0021f5213892ac0da8', class: "modal-body-description" }, casinoChallengesOverlayDrawer.translate('optOutModalDescription', this.language))), index.h("div", { key: '34e1e80b7a2435c28788aafea072adba10aff836', class: "modal-footer", slot: "footer" }, index.h("button", { key: '8a476048cdc8c297f9bba9174c85555e58362204', class: "modal-footer-button confirm", onClick: this.handleCloseOptOut }, casinoChallengesOverlayDrawer.translate('optOutModalCancel', this.language)), index.h("button", { key: 'e993c82f39a4ce6d6faa7581c11b3edde33d04f6', class: "modal-footer-button cancel", onClick: this.handleConfirmOptOut }, casinoChallengesOverlayDrawer.translate('optOutModalConfirm', this.language)))));
2980
2980
  }
2981
2981
  };
2982
2982
  CasinoChallengeDetailsOptOut$1.style = CasinoChallengeOptOutModalStyle0;
@@ -3665,8 +3665,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
3665
3665
  this.mbSource = undefined;
3666
3666
  this.clientStyling = undefined;
3667
3667
  this.clientStylingUrl = undefined;
3668
- this.challenge = undefined;
3668
+ this.translationUrl = '';
3669
3669
  this.language = 'en';
3670
+ this.challenge = undefined;
3670
3671
  this.isMobile = false;
3671
3672
  this.isUnique = false;
3672
3673
  this.swipped = false;
@@ -3733,6 +3734,9 @@ const CasinoChallengesOverlayDrawerDetails = class {
3733
3734
  }, 1000);
3734
3735
  }
3735
3736
  componentWillLoad() {
3737
+ if (this.translationUrl) {
3738
+ resolveTranslationUrl$1(this.translationUrl);
3739
+ }
3736
3740
  this.updateTime();
3737
3741
  this.onChallengeChange(this.challenge);
3738
3742
  }
@@ -3910,7 +3914,7 @@ const CasinoChallengesOverlayDrawerDetails = class {
3910
3914
  var _a, _b;
3911
3915
  const fullScreen = (this.swipping && this.progress > 0) || ((_a = this.detailsSubPageInfo) === null || _a === void 0 ? void 0 : _a.open);
3912
3916
  const footerIsVisible = !this.isMobile || (this.isMobile && fullScreen);
3913
- return (index.h("div", { key: '220d4ad44d1bd16544edc01af1a10bc8b915de9b', class: {
3917
+ return (index.h("div", { key: 'b6b5dfc2777b5a4b1e1557166e1dca5aa2aa4f37', class: {
3914
3918
  Mobile: this.isMobile,
3915
3919
  swipped: (this.isMobile && this.swipping && this.progress > 0) || !this.isMobile,
3916
3920
  moved: this.progress > 0,
@@ -4288,7 +4292,7 @@ const CasinoChallengesOverlaySlider = class {
4288
4292
  return this.currentIndex - 1;
4289
4293
  }
4290
4294
  render() {
4291
- return (index.h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, index.h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index$1, arr) => (index.h("casino-challenges-overlay-card", { challenge: item, index: index$1, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight }))))), this.challenges.length > 1 && (index.h("div", { key: 'ffc80e15f608761c6b830dd6f8ed19ebf7a2498e' }, index.h("button", { key: '0403fb4615605c33ef596c74ae2427b5e823b7d9', class: "action-button action-button--prev", onClick: this.prev }, index.h("img", { key: 'de3536ec00f15de6240d3c7da032b9584fffbc92', src: leftArrowSvg, alt: "" })), index.h("button", { key: '84cc6967ded946264bde8db938c8e5541ace145c', class: "action-button action-button--next", onClick: this.next }, index.h("img", { key: 'f6e8d44662f3ca55866001d90d41f66c4a5f6f04', src: rightArrowSvg, alt: "" })), index.h("div", { key: '25124a8bb6d0fc72086e69e20b6fc2f41986999e', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (index.h("span", { class: {
4295
+ return (index.h("div", { key: '25e34524b9a1fb6fcd4b164f5f3d58a58173ed09', class: { 'slider-container': true, mobile: this.isMobile, 'one-slide': this.isOneSlide }, ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: '1f77218efd7201eb0de40405d7128168d5bb2a64', class: "challenges__slider-wrapper", onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onPointerLeave: this.onPointerUp }, index.h("div", { key: '623e0d69197edea0a4a01a670bc678e2c99af735', class: "challenges__slider", ref: (el) => (this.sliderContainer = el) }, this.getCarouselItems().map((item, index$1, arr) => (index.h("casino-challenges-overlay-card", { challenge: item, index: index$1, arrLength: arr.length, currentIndex: this.currentIndex, slideWidth: this.slideWidth, slideHeight: this.slideHeight, language: this.language }))))), this.challenges.length > 1 && (index.h("div", { key: '39fd37d72070c1198959a61f35a3e4d19088c4a6' }, index.h("button", { key: 'e58364a6f329ba4998ca35b820fcecfc4e276efc', class: "action-button action-button--prev", onClick: this.prev }, index.h("img", { key: '725c48c629a64d7bc2121483c3f2967bac303297', src: leftArrowSvg, alt: "" })), index.h("button", { key: 'd14196ca0fd4de90f57ed0c97d844a88e1c980cf', class: "action-button action-button--next", onClick: this.next }, index.h("img", { key: '428c63a8b2e1d040e06da89d371c648d3e01c5f7', src: rightArrowSvg, alt: "" })), index.h("div", { key: '8bd9ffb15115b1a785e9967dc129187e9c6793fe', class: "challenges__slider-dots" }, this.challenges.map((_, i) => (index.h("span", { class: {
4292
4296
  'challenges__slider-dot': true,
4293
4297
  active: i === this.getRealIndex()
4294
4298
  }, onClick: () => {
@@ -154,12 +154,7 @@ const TRANSLATIONS = {
154
154
  active: 'Active',
155
155
  pendingTab: 'Pending',
156
156
  finishedTab: 'Finished',
157
- levels: 'Levels',
158
157
  level: 'Level',
159
- seeAll: 'See All',
160
- games: 'Games',
161
- rules: 'Rules',
162
- events: 'Events',
163
158
  codeTab: 'Code',
164
159
  endsIn: 'Ends In',
165
160
  expired: 'Expired',
@@ -173,71 +168,15 @@ const TRANSLATIONS = {
173
168
  suspended: 'Suspended',
174
169
  completed: 'Completed',
175
170
  unavailable: 'Unavailable',
176
- optIn: 'Opt In',
177
- optOutLeavingText: 'Leaving the challenge will cancel your progress and disqualify from future participation',
178
- optOutLeavingActionText: 'Opt out of Challenge',
179
171
  optOutModalTitle: 'Opt out of challenge?',
180
- optOudModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
172
+ optOutModalDescription: 'Current progress will be lost, but you will keep earned rewards. You will not be able to opt in for this challenge again.',
181
173
  optOutModalConfirm: 'Opt Out',
182
174
  optOutModalCancel: 'Cancel',
183
175
  optOutSuccessMessage: 'You’ve opted out of the challenge.',
184
- resume: 'Resume',
185
- pause: 'Pause',
186
- join: 'Join to Start',
187
176
  deposit: 'Deposit',
188
- launchGame: 'Launch Game',
189
- launchDescription: 'Launch any game from the Games tab to unlock the Challenge',
190
177
  depositAmountDescription: 'to unlock the Challenge',
191
178
  noDepositAmountDescription: 'Deposit any amount to unlock the Challenge',
192
- claimByButton: 'Claim',
193
- claimDescription: 'Click Claim button to unlock the Challenge',
194
- resumeDescription: 'Your progress is saved while Challenge is suspended',
195
- optInDescription: 'You are ready to opt-in!',
196
- pausedDescription: 'Your progress is saved while Challenge is paused',
197
- congrats: 'Congratulations!',
198
- forfeitNotification: 'Unfortunately, your progress has been forfeited, and you are no longer eligible to continue this challenge. Check out other available challenges!',
199
- optedOutNotification: 'You’ve left this challenge. Your progress has been lost, and rejoining is no longer possible. Discover other available challenges.',
200
- completedNofitication: "You've successfully completed this challenge! Explore the next one and keep playing to earn more rewards!",
201
- expiredNotification: 'Unfortunately, this challenge has expired and is no longer available to complete. Try another one that’s still active!',
202
- pendingDescription: "You can join this challenge once you've finished the previous progress in the Active tab",
203
179
  terms: 'Terms & Conditions',
204
- readFullTerms: 'Read full Terms & Conditions',
205
- contribution: 'contribution',
206
- endDate: 'End Date',
207
- back: 'Back',
208
- all: 'All Challenges',
209
- sports: 'Sports',
210
- casino: 'Casino',
211
- contributionType: 'Contribution Type',
212
- contributionRule: 'Contribution Rule',
213
- isContributeToOne: 'Bets contribute only to the earliest started challenge (if there are multiple started challenges)',
214
- isNotContributeToOne: 'Bets contribute to all started challenges',
215
- bonusMoney: 'Bonus Money',
216
- realMoney: 'Real Money',
217
- mixedMoney: 'Real and Bonus Money contribution',
218
- defaultRule: 'All events - ',
219
- fundsUsed: 'Funds Used',
220
- sportsbookRealMoney: 'Only Real Money bets can contribute',
221
- sportsbookBonusMoney: 'Only Bonus bets can contribute',
222
- sportsbookMixMoney: 'Both Real Money and Bonus bets can contribute',
223
- eligibleMatchTypes: 'Eligible Match Types',
224
- preLiveMatchType: 'Only Pre-Match bets can contribute',
225
- liveMatchType: 'Only Live bets can contribute',
226
- mixMatchType: 'Both Pre-Match and Live bets can contribute',
227
- eligibleBetTypes: 'Eligible Bet Types',
228
- single: 'Single',
229
- multi: 'Multi/Combi',
230
- betBuilder: 'Only Bet Builder Bets',
231
- nonBetBuilder: 'Only Non-Bet Builder Bets',
232
- mixBetBuilder: 'Bet Builder & Non-Bet Builder Bets',
233
- system: 'System',
234
- banker: 'Only Banker Bets',
235
- nonBanker: 'Only Non-Banker Bets',
236
- mixBanker: 'Banker & Non-Banker Bets',
237
- oddsPerSection: 'Odds per Selection',
238
- totalOdds: 'Total Odds',
239
- totalLevels: 'Total Levels',
240
- selections: 'Selections',
241
180
  time: 'time',
242
181
  times: 'times',
243
182
  winStakeRatio: 'Win/Stake Ratio',
@@ -249,7 +188,6 @@ const TRANSLATIONS = {
249
188
  pendingTabEmptyDescription: 'Check Promo tab to find available offers',
250
189
  finishedTabEmptyHeader: 'No finished challenges yet',
251
190
  finishedTabEmptyDescription: 'Check Promo tab to find available offers',
252
- yourProgress: 'Your Progress',
253
191
  claimCodeTitle: 'Enter the secret code to unlock hidden quests and rewards.',
254
192
  claimCodeSuccessMessage: 'The code was successfully applied.',
255
193
  claimCodeInputLabel: '3–30 characters, no spaces',
@@ -258,9 +196,6 @@ const TRANSLATIONS = {
258
196
  claimCodeDescription: 'Enter code to unlock the challenge',
259
197
  status: 'Status',
260
198
  grantClaimByButtonSuccessMessage: 'Challenge has been triggered successfully and is now available on the Active tab'
261
- },
262
- da: {
263
- title: ''
264
199
  }
265
200
  };
266
201
  const translate = (key, customLang) => {
@@ -463,23 +398,22 @@ const CasinoChallengesOverlayDrawerStyle0 = casinoChallengesOverlayDrawerCss;
463
398
  const CasinoChallengesOverlayDrawer = class {
464
399
  constructor(hostRef) {
465
400
  index.registerInstance(this, hostRef);
466
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
467
401
  this.EMPTY_STATE_PAGE_DESCRIPTION_MAP = {
468
402
  [exports.EChallengesTabs.Promo]: {
469
- header: (_a = TRANSLATIONS[this.language]) === null || _a === void 0 ? void 0 : _a.promoTabEmptyHeader,
470
- description: (_b = TRANSLATIONS[this.language]) === null || _b === void 0 ? void 0 : _b.promoTabEmptyDescription
403
+ header: 'promoTabEmptyHeader',
404
+ description: 'promoTabEmptyDescription'
471
405
  },
472
406
  [exports.EChallengesTabs.Active]: {
473
- header: (_c = TRANSLATIONS[this.language]) === null || _c === void 0 ? void 0 : _c.activeTabEmptyHeader,
474
- description: (_d = TRANSLATIONS[this.language]) === null || _d === void 0 ? void 0 : _d.activeTabEmptyDescription
407
+ header: 'activeTabEmptyHeader',
408
+ description: 'activeTabEmptyDescription'
475
409
  },
476
410
  [exports.EChallengesTabs.Pending]: {
477
- header: (_e = TRANSLATIONS[this.language]) === null || _e === void 0 ? void 0 : _e.pendingTabEmptyHeader,
478
- description: (_f = TRANSLATIONS[this.language]) === null || _f === void 0 ? void 0 : _f.pendingTabEmptyDescription
411
+ header: 'pendingTabEmptyHeader',
412
+ description: 'pendingTabEmptyDescription'
479
413
  },
480
414
  [exports.EChallengesTabs.Finished]: {
481
- header: (_g = TRANSLATIONS[this.language]) === null || _g === void 0 ? void 0 : _g.finishedTabEmptyHeader,
482
- description: (_h = TRANSLATIONS[this.language]) === null || _h === void 0 ? void 0 : _h.finishedTabEmptyDescription
415
+ header: 'finishedTabEmptyHeader',
416
+ description: 'finishedTabEmptyDescription'
483
417
  }
484
418
  };
485
419
  this.onActiveChallengeChange = (e) => {
@@ -585,16 +519,16 @@ const CasinoChallengesOverlayDrawer = class {
585
519
  };
586
520
  this.renderEmptyState = (isMobile) => {
587
521
  var _a, _b;
588
- return (index.h("div", null, this.renderHeader(isMobile), index.h("casino-challenges-empty-state", { header: (_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, description: (_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, "is-mobile": isMobile })));
522
+ return (index.h("div", null, this.renderHeader(isMobile), index.h("casino-challenges-empty-state", { header: translate((_a = this.emptyState) === null || _a === void 0 ? void 0 : _a.header, this.language), description: translate((_b = this.emptyState) === null || _b === void 0 ? void 0 : _b.description, this.language), "is-mobile": isMobile })));
589
523
  };
590
524
  this.renderFinishedTab = (isMobile) => {
591
525
  return (index.h("div", null, this.renderHeader(isMobile), index.h("casino-challenges-overlay-drawer-history", { mbSource: this.mbSource, clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, translationUrl: this.translationUrl, language: this.language, isMobile: isMobile, historyItems: this.playerHistory, hasMore: this.hasMorePlayerHistory, onLoadMore: this.onLoadMorePlayerHistory, loading: this.loading })));
592
526
  };
593
527
  this.renderCodeTab = (isMobile) => {
594
- return (index.h("div", null, this.renderHeader(isMobile), index.h("casino-challenges-claim-code", { "is-mobile": isMobile })));
528
+ return (index.h("div", null, this.renderHeader(isMobile), index.h("casino-challenges-claim-code", { "is-mobile": isMobile, translationUrl: this.translationUrl, language: this.language })));
595
529
  };
596
530
  this.renderChallengeDetails = (isMobile, isUnique = false) => {
597
- return (index.h("casino-challenges-overlay-drawer-details", { challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
531
+ return (index.h("casino-challenges-overlay-drawer-details", { translationUrl: this.translationUrl, language: this.language, challenge: this.activeChallenge, swipped: this.swipped, progress: this.progress, "is-mobile": isMobile, "is-unique": isUnique, "is-opted-out": this.isOptedOut, "active-challenges-tab-index": this.activeTabIndex, onSeeMoreClick: this.onSeeMoreClick, detailsSubPageInfo: this.detailsSubPageInfo, challengeGames: this.challengeGames, onCloseClick: this.onCloseClick }));
598
532
  };
599
533
  this.renderChallengesTabs = (isMobile) => {
600
534
  const challenges = this.activeTabIndex === exports.EChallengesTabs.Active
@@ -647,8 +581,8 @@ const CasinoChallengesOverlayDrawer = class {
647
581
  this.playerHistory = [];
648
582
  this.hasMorePlayerHistory = false;
649
583
  this.emptyState = {
650
- header: (_j = TRANSLATIONS[this.language]) === null || _j === void 0 ? void 0 : _j.activeTabEmptyHeader,
651
- description: (_k = TRANSLATIONS[this.language]) === null || _k === void 0 ? void 0 : _k.activeTabEmptyDescription
584
+ header: 'activeTabEmptyHeader',
585
+ description: 'activeTabEmptyDescription'
652
586
  };
653
587
  }
654
588
  handleClientStylingChange(newValue, oldValue) {
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["casino-challenge-details-events_21.cjs",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"language":[513],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"],"enabledWidgetTabs":[16]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16],"handleGameClick":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], options);
22
+ return index.bootstrapLazy([["casino-challenge-details-events_21.cjs",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenge":[16],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"],"enabledWidgetTabs":[16]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16],"handleGameClick":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const casinoChallengesOverlayDrawer = require('./casino-challenges-overlay-drawer-d051e5c6.js');
5
+ const casinoChallengesOverlayDrawer = require('./casino-challenges-overlay-drawer-9a977344.js');
6
6
  require('./index-d2288c94.js');
7
7
 
8
8
 
@@ -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-challenge-details-events_21.cjs",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"challenge":[16],"language":[513],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"],"enabledWidgetTabs":[16]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16],"handleGameClick":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], options);
11
+ return index.bootstrapLazy([["casino-challenge-details-events_21.cjs",[[1,"casino-challenges-overlay-drawer",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isOpen":[516,"is-open"],"handleClose":[16],"challenges":[16],"initialProgressId":[513,"initial-progress-id"],"enabledWidgetTabs":[16],"activeChallenge":[32],"activeProgressId":[32],"activeTabIndex":[32],"error":[32],"hasError":[32],"swipped":[32],"detailsSubPageInfo":[32],"progress":[32],"loading":[32],"notification":[32],"optOutModaIsOpen":[32],"isOptedOut":[32],"prevUpdateEvent":[32],"challengeGames":[32],"activeChallenges":[32],"pendingChallenges":[32],"promoChallenges":[32],"playerHistory":[32],"hasMorePlayerHistory":[32],"emptyState":[32]},[[0,"openOptOutModal","onOpenOptOut"],[0,"closeOptOutModal","onCloseOptOut"],[0,"confirmOptOut","onConfirmOptOut"],[0,"challengeExpired","onChallengeExpired"],[8,"message","handleEvent"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isOpen":["handleIsOpenChange"],"activeChallenge":["onActiveChallengeChanged"]}],[1,"casino-challenges-overlay-drawer-details",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"challenge":[16],"isMobile":[516,"is-mobile"],"isUnique":[516,"is-unique"],"swipped":[516],"progress":[514],"activeChallengesTabIndex":[513,"active-challenges-tab-index"],"detailsSubPageInfo":[16],"isOptedOut":[516,"is-opted-out"],"challengeGames":[16],"swipping":[32],"actionLoading":[32],"error":[32],"isChallengePaused":[32],"timeLeft":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"progress":["onSwipeChange"],"challenge":["onChallengeChange"]}],[0,"casino-challenge-opt-out-modal",{"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[1,"casino-challenges-overlay-drawer-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"loading":[516],"hasMore":[516,"has-more"],"historyItems":[16],"openItems":[32],"pageSize":[32],"pageNumber":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"historyItems":["handlePlayerHistoryChange"]}],[1,"casino-challenges-overlay-slider",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"isMobile":[516,"is-mobile"],"challenges":[16],"initialProgressId":[1,"initial-progress-id"],"activeTabIndex":[1,"active-tab-index"],"currentIndex":[32],"slideWidth":[32],"slideHeight":[32],"isOneSlide":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"currentIndex":["onCurrentIndexChange"],"challenges":["onChallengesChange"],"initialProgressId":["onInitialProgressIdChange"]}],[0,"casino-challenge-overlay-background",{"empty":[4]}],[1,"casino-challenges-claim-code",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"isMobile":[516,"is-mobile"],"loading":[32],"hasError":[32],"code":[32],"notificationMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-empty-state",{"header":[1],"description":[1],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-loader",{"fullSize":[4,"full-size"],"isMobile":[516,"is-mobile"]}],[0,"casino-challenges-overlay-tabs",{"language":[513],"isMobile":[516,"is-mobile"],"activeTabIndex":[514,"active-tab-index"],"activeTabHasNotification":[516,"active-tab-has-notification"],"pendingTabHasNotification":[516,"pending-tab-has-notification"],"enabledWidgetTabs":[16]}],[4,"swipe-up",{"isMobile":[516,"is-mobile"],"isOneSlider":[516,"is-one-slider"],"progress":[32]},null,{"isOneSlider":["onIsOneSliderChange"],"progress":["onSwipeChange"]}],[0,"casino-challenge-details-levels",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isChallengePaused":[4,"is-challenge-paused"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-details-events",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"open":[4]}],[0,"casino-challenge-details-games",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"games":[16],"handleGameClick":[16]}],[0,"casino-challenge-details-progress-bar",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"]}],[0,"casino-challenge-details-rules",{"challenge":[16],"language":[1],"isMobile":[4,"is-mobile"],"isOptedOut":[4,"is-opted-out"],"open":[4]}],[0,"casino-challenge-drawer-history-item",{"language":[513],"index":[514],"historyItem":[16],"itemRef":[16],"isOpen":[4,"is-open"],"isMobile":[4,"is-mobile"],"toggle":[16]}],[1,"casino-challenges-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"isOpen":[516,"is-open"],"showWinAnimation":[516,"show-win-animation"],"showBackdrop":[516,"show-backdrop"],"showCloseButton":[516,"show-close-button"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"casino-challenges-overlay-card",{"challenge":[16],"index":[2],"arrLength":[2,"arr-length"],"currentIndex":[2,"current-index"],"language":[1],"isOptedOut":[4,"is-opted-out"],"slideWidth":[2,"slide-width"],"slideHeight":[2,"slide-height"],"timeLeft":[32]}],[4,"casino-challenge-expandable-paragraph",{"maxHeight":[2,"max-height"],"active":[4],"expanded":[32],"needsTruncation":[32]}],[0,"casino-challenge-level-progress-bar",{"height":[1],"active":[4],"value":[2]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;