1/*! - @omni-frontend/game-info-modal : 1.0.16 */ 2import e from'/en_IE/skins/lottoland/js/games/@omni-frontend/webcomponent-register-efe19b0aaa568a8c.js';import{h as o,hooks as n}from'/en_IE/skins/lottoland/js/core/@lottoland/core/preact-82d2f8fc5cfa753c.js';import{messages as t,resources as a}from'/en_IE/skins/lottoland/js/core/@lottoland/lsl-93dab7f18e901b84.js';import*as i from'/en_IE/skins/lottoland/js/cms/@lottoland/client-side-message-bus-b47a2bada31bfda8.js';import'/en_IE/skins/lottoland/js/games/@omni-frontend/game-info-85983e1ae86c590a.js';import r from'/en_IE/skins/lottoland/js/games/@omni-data/game-config-ab2c673ebf422d6c.js';import l from'/en_IE/skins/lottoland/js/games/@omni-data/category-1cb2b7a2ed9fb285.js';import d from'/en_IE/skins/lottoland/js/games/@omni-data/overview-categories-455899d761ce5487.js';import'/en_IE/skins/lottoland/js/translations/games_gameName-c2db803de6e6b427.js';var s,c,m,E,u,p,g={gameInfoModal:'game-info-modal',spinnerContainer:'spinner-container',bottomFade:'bottom-fade',topFade:'top-fade',shownTopFade:'shown-top-fade',shownBottomFade:'shown-bottom-fade'};!function(e){e.ViewSwitched='omni.view.switched',e.FilterSwitched='omni.filter.switched',e.SortFilter='omni.sortFilter',e.N
2oFilteredGames='omni.noFilteredGames',e.ProviderFilter='omni.providerFilter',e.MinStakeFilter='omni.minStakeFilter',e.VolatilityFilter='omni.volatilityFilter',e.VolatilityFilterDeferred='omni.volatilityFilter.deferred',e.FilterApplied='omni.filter.applied',e.ApplyFilter='omni.applyFilter.button',e.FilterPanelInnerEvent='omni.filterPanelInner.event',e.LocalVersionsChecked='local.versions.checked',e.RemoteServerChecked='remote.server.checked',e.RemoteServerUnchecked='remote.server.unchecked',e.RemoteDeploymentComplete='remote.deployment.complete',e.RemoteDeploymentIncomplete='remote.deployment.incomplete',e.SmokeTestIncomplete='smoke.test.incomplete',e.SmokeTestComplete='smoke.test.complete',e.RenderCompleted='omni.render.complete',e.Load='load',e.FilterReset='omni.filter.reset',e.ContinuePlayingGamesLoad='omni.continueplaying.games.load',e.CategoryUpdated='omni.category.updated',e.PodPlayNavigation='OmniPodPlayNavigation',e.OpenGameInfoModal='OmniOpenGameInfoModal',e.CloseGameInfoModal='OmniCloseGameInfoModal',e.GameInfoModalEnabled='OmniGameInfoModalEnabled',e.GameInfoModalShadow='OmniGameInfoModalShadow',e.OmniRefreshBalance='OmniRefreshBalance',e.OmniSportsBookNavEvent='OmniSportsBookNavEvent'}(s||(s={})),function(e){e.Eager='eager',e.Lazy='lazy',e.Observer='observer'}(c||(c={})),function(e){e.Grid='grid',e.List='list'}(m||(m={})),function(e){e.Show='show',e.Hide='hide'}(E||(E={})),function(e){e.ShownAndFiltered='shown-and-filtered',e.ShownAndToFilter='shown-and-to-filter',e.HiddenAndFiltered='hidden-and-filtered',e.HiddenAndToFilter='hidden-and-to-filter'}(u||(u={})),function(e){e.Popularity='POPULARITY',e.Name='NAME',e.NameDescending='NAME_DESCENDING',e.StakeMinToMax='STAKE_MIN_TO_MAX',e.StakeMaxToMin='STAKE_MAX_TO_MIN',e.Favourite='FAVOURITE'}(p||(p={}));const I=(e,o,n)=>{const t=new CustomEvent(e,o);n?n.dispatchEvent(t):window.dispatchEvent(t)},f=(e,o)=>{window.addEventListener(e,o)},h=(e,o)=>{window.removeEventListener(e,o)};window&&(window.omni=window.omni||{},window.omni.events={publish:I,subscribe:f,unsubscribe:h});const _={logger:{error:console.log,warn:console.log},authentication:{open:e=>console.log(e),close:()=>{}},games:{getGameUrl:e=>console.log(e)},helper:{cookie:{get:()=>{}}}},R=window.dla||_;var A,D,O,T,v,G,w,S,C,N,b,P,k,F,U,y,M;!function(e){e[e.Ok=200]='Ok',e[e.NoContent=204]='NoContent',e[e.NotFound=404]='NotFound',e[e.Error=500]='Error'}(A||(A={})),function(e){e.True='true',e.False='false'}(D||(D={})),function(e){e.loaded='loaded'}(O||(O={})),function(e){e.REGISTERED='registered',e.NOPROMOTION='nopromotion',e.SESSION_EXPIRED='session_expired',e.PROBLEM='problem',e.EXPIRED='expired'}(T||(T={})),function(e){e.INIT='init',e.ROUTE_CHANGED='routeChanged',e.CLEAR='clear',e.SAVE='save',e.QUICKIE='quickie',e.JACKPOT_CHANGED='jackpotChanged',e.BET_AGAIN='betAgain',e.TOP_UP='topUp',e.AUTHENTICATE='authenticate',e.LOGOUT='logout',e.REFRESH_PLAYER='refreshPlayer',e.CHANGE_ROUTE='changeRoute',e.RECOVER_FROM_ERROR='recoverFromError',e.RESIZED='resized',e.LOGIN='login',e.DO_LOGOUT='doLogout',e.BACK_TO_SELECTION='backToSelection',e.CONTINUE_PURCHASING='continuePurchasing',e.PURCHASE_TICKET='purchaseTicket',e.PLAY_TICKET_AGAIN='playTicketAgain',e.NAVIGATE='navigate'}(v||(v={})),function(e){e.LIVE_DRAW='liveDraw',e.CLASSIC='classic',e.JACKPOT='jackpot',e.SIDE_BET='sideBet',e.RESULTS='results',e.MY_BETS='myBets'}(G||(G={})),function(e){e.QUICK_DEPOSIT_REQUIRED='QuickDepositRequired',e.DEPOSIT_SUCCESSFUL='DepositSuccessful',e.QUICK_DEPOSIT_DISMISSED='QuickDepositDismissed'}(w||(w={})),function(e){e.AUTH_REQUESTED='AuthRequested',e.LOGOUT_REQUESTED='LogoutRequested',e.LOGGED_IN='LoggedIn'}(S||(S={})),function(e){e.GAME_END='scratchcard.gameEnd',e.GO_TO_OVERVIEW='scratchcard.goToOverview',e.GO_TO_SHOPPING_CAR='scratchcard.goToShoppingCart',e.TRACK='scratchcard.track'}(C||(C={})),function(e){e.RESIZE='scratchcard.resize'}(N||(N={})),function(e){e.DID_INIT='GamesKenoGoDidInit',e.DID_BET_AGAIN='GamesKenoGoDidBetAgain',e.DID_CHANGE_ROUTE='GamesKenoGoDidChangeRoute',e.DID_CLEAR='GamesKenoGoDidClear',e.DID_JACKPOT_CHANGED='GamesKenoGoDidJackpotChanged',e.DID_QUICKIE='GamesKenoGoDidQuickie',e.DID_REFRESH_PLAYER='GamesKenoGoDidRefreshPlayer',e.DID_ROUTE_CHANGED='GamesKenoGoDidRouteChanged',e.DID_SAVE='GamesKenoGoDidSave',e.DID_RECOVER_FROM_ERROR='GamesKenoGoDidRecoverFromError',e.DID_RESIZED='GamesKenoGoDidResized',e.DID_PLAY_TICKET_AGAIN='GamesKenoGoDidPlayTicketAgain',e.DID_NAVIGATE='GamesDidNavigate',e.DID_PURCHASE_TICKET='GamesDidClickPurchaseTicketButton',e.DID_CONTINUE_PURCHASING='GamesDidClickContinuePurchasing'}(b||(b={})),function(e){e.ADD='add',e.REMOVE='remove'}(P||(P={})),function(e){e.SHOW_FAVOURITE_TOAST='omniShowFavToast',e.FAVOURITE_DATA='omniFavData',e.FAVOURITE_GAME_WAS_ADDED='omniFavAdd_',e.FAVOURITE_GAME_WAS_REMOVED='omniFavRemove_',e.UNDO_FAVOURITE='omniUndoFavToast',e.FAVOURITE_GAMES_UPDATE='omniFavGamesUpdate',e.GAME_PAGE_REMOVAL_IOS_APP='omniGamePageRemovalForIOSApp'}(k||(k={})),function(e){e.DID_INIT='GamesDidInit',e.DID_CHANGE_ROUTE='GamesDidChangeRoute',e.DID_REFRESH_PLAYER='GamesDidRefreshPlayer',e.DID_ROUTE_CHANGED='GamesDidRouteChanged',e.DID_RECOVER_FROM_ERROR='GamesDidRecoverFromError',e.DID_RESIZED='GamesDidResized',e.DID_PLAY_TICKET_AGAIN='GamesDidPlayTicketAgain',e.DID_NAVIGATE='GamesDidNavigate'}(F||(F={})),function(e){e.INIT='init',e.ROUTE_CHANGED='routeChanged',e.AUTHENTICATE='authenticate',e.LOGOUT='logout',e.REFRESH_PLAYER='refreshPlayer',e.CHANGE_ROUTE='changeRoute',e.RECOVER_FROM_ERROR='recoverFromError',e.RESIZED='resized',e.LOGIN='login',e.DO_LOGOUT='doLogout',e.PURCHASE_TICKET='purchaseTicket',e.PLAY_TICKET_AGAIN='playTicketAgain',e.NAVIGATE='navigate'}(U||(U={})),function(e){e.OSS_POST_MESSAGE='OSS_POST_MESSAGE',e.PLAYNGO_POST_MESSAGE='PLAYNGO_POST_MESSAGE'}(y||(y={})),function(e){e.freeBetReload='freeBetReload'}(M||(M={}));const L={gamesOverview:'Our Games'};var K;!function(e){e.gamesOverview='gamesOverview'}(K||(K={}));const V=e=>((e,o,n,...a)=>
2t.hasMessageKey(e,o)&&''!==t.getMessage(e,o)?t.getMessage(e,o,...a):'!'+n+o+'!')(L,e,'common_pageTitle_');var H,x;!function(e){e.KENO_OPERATOR_TOKEN='kenoOpToken'}(H||(H={})),function(e){e.FULL='FULL',e.OVERVIEW='OVERVIEW'}(x||(x={})),x.FULL,x.OVERVIEW;const{useEffect:B,useState:$,useRef:Y}=n,z=e=>{const o=e?encodeURIComponent(e):'';document.cookie=`launchMappingId=${o}; path=/`},Q=e=>{e&&document.title!==e&&(document.title=e)},W=({discoveryRelativeUrl:e,initModalUrl:o,loadModal:n,originalPath:t})=>{const a=window.location.pathname.split(e)[1];if(!o&&a){const o=e.split('/'),i=`${e}/modal${a}`,l=(e=>{for(const o in r)if(r[o].detailURL===e)return o;return null})(`/${o[o.length-1]}${a}`);l&&(n(i,l),t.current=e)}};let q=!1;const Z=({initinfomodalurl:e,gamesdiscoveryurl:n,showfavourite:t,gamename:r})=>{const l=Y(null),d=Y(document.title),[c,m]=$(''),[E,u]=$(!1),[p,I]=$(!1),f=Y(window.location.pathname),h=Y(''),_=Y(!1);B((()=>{_.current=!!window.location.pathname.split(n)[1],f.current=window.location.pathname,d.current=document.title,h.current=window.location.search,window.addEventListener('popstate',T,!1);const o=i.subscribe(s.OpenGameInfoModal,v),t=i.subscribe(s.GameInfoModalShadow,A);if(l.current.addEventListener('modal-close',w),e&&r)if(e.includes(' ')){(e=>{const o=e.replace('/modal/','/');window.history.pushState(null,'',o)})(e.split('/').map((e=>e.trim())).join('/'))}else G(e,r);return W({discoveryRelativeUrl:n,initModalUrl:e,loadModal:G,originalPath:f}),O(!0),()=>{window.removeEventListener('popstate',T,!1),i.unsubscribe(o),i.unsubscribe(t),l.current.removeEventListener('modal-close',w),O(!1)}}),[]);const A=(e,o)=>{const{gameInfoModalShadowAvailable:n}=o.payload;I(n)},O=e=>{i.publish(s.GameInfoModalEnabled,{payload:{gameInfoModalAvailable:e}},{sticky:!0})},T=e=>{e.state&&e.state.modalUrl?(l.current.visible=!0,G(e.state.modalUrl,e.state.gameName)):l.current.visible&&(q=!0,l.current.visible=!1),R.authentication.close()},v=(e,o)=>{const n=o.payload;G(n.url,n.gameName)},G=(e,o)=>{const n=((e,o)=>{const{countryLocale:n,currency:t,localePrefix:i}=a;return window.magnolia?`${i}/gameinfo~mgnlArea=main~.html?locale=${n}¤cy=${t}&gamename=${o}`:e})(e,o);l.current.visible=!0,fetch(n).then((e=>e.text())).then((e=>m(e))).then((()=>u(!0))).then((()=>((e,o,n)=>{const t=e.replace('/modal/','/');window.history.pushState({modalUrl:e,gameName:o},'',t+n),z(t)})(e,o,_.current?h.current:'')))},w=()=>{m('');const o=`${e?n:f.current}${_.current?'':h.current}`;var t;z(o),q?q=!1:(t=o,window.history.pushState({},'',t),Q(e?V(K.gamesOverview):d.current)),u(!1),_.current&&(h.current='')};return o('ll-modal',{ref:l,hidehead:!0,id:'gameInfoModal',internalScroll:!0,className:g.gameInfoModal,'click-container':'gameInfoPage',closeClickName:'closeButton',closeIconPosition:t===D.True?'left':'right',hideOnClickOutside:!0},!E&&o('div',{className:g.spinnerContainer},o('ll-spinner',null)),o('div',{ref:e=>e&&(e=>{if(e){const o=e.querySelector('omni-game-info');o&&Q(o.getAttribute('data-title'))}})(e),className:g.content,dangerouslySetInnerHTML:{__html:c}}),!!c&&o('div',{className:`${g.bottomFade} ${p?g.shownBottomFade:''}`}))};var j,J;j='GameInfoModal',J='1.0.16',window.omni=window.omni||{},window.omni.packages||(window.omni.packages=[]),window.omni.packages.push({package:j,version:J});var X;X='omni-game-info-modal',void 0===customElements.get(X)&&e(Z,'omni-game-info-modal',!1,{shadow:!Z.noShadowRoot},'.game-info-modal{--ll-modal-body-padding:0px;--ll-modal-padding-bottom:0px;--ll-modal-width:-webkit-calc(var(--ll-base-unit)*58);--ll-modal-width:calc(var(--ll-base-unit)*58);--ll-modal-close-background:var(--ll-color-ui-04);--ll-modal-content-background:var(--ll-color-casino-ui-00,rgba(0,0,0,0.3));--ll-modal-content-border-radius:var(--ll-base-unit);--ll-modal-height-with-scroll:-webkit-calc(var(--ll-base-unit)*64.6);--ll-modal-height-with-scroll:calc(var(--ll-base-unit)*64.6);--omni-favourite-toast-display:none;--ll-modal-background:var(--ll-color-casino-ui-05,#262d40);z-index:4000}.game-info-modal .spinner-container{height:100vh;display:flex;align-items:center;justify-content:center;background:var(--ll-color-casino-ui-05,#262d40)}@media (min-width:768px){.game-info-modal .spinner-container{height:-webkit-calc(var(--ll-base-unit)*64.6);height:calc(var(--ll-base-unit)*64.6)}}:host{--omni-favourite-z-index:2;--omni-game-info-back-display:none;--omni-game-info-shadow-display:block;--ll-zindex-modal:auto}:host(:not([showfavourite])),:host([showfavourite=false]){--omni-favourite-display:none}.bottom-fade,.top-fade{position:absolute;bottom:0;background:-webkit-gradient(linear,left top,left bottom,from(rgba(38,45,64,0)),to(var(--ll-color-casino-ui-05,#262d40)));background:linear-gradient(180deg,rgba(38,45,64,0),var(--ll-color-casino-ui-05,#262d40));height:100px;left:0;right:15px;opacity:0;-webkit-transition:opacity .4s;transition:opacity .4s}@media (max-width:768px){.bottom-fade{position:fixed}}.top-fade{top:0;-webkit-transform:rotate(180deg);transform:rotate(180deg);z-index:1}.shown-bottom-fade,.shown-top-fade{opacity:1;-webkit-transition:opacity .4s;transition:opacity .4s}@media (min-width:768px){.game-info-modal{--ll-modal-background:transparent}}') 3/*! https://www.lottolandcorporate.com/careers */; 4//# sourceMappingURL=index.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.