import{property as t,object as e,customElement as i,unsafeHTML as a,css as n,LitElement as r,html as l,query as o,classMap as s,ifDefined as c,until as p,queryAssignedNodes as d,state as u}from"/en_WL/skins/lottoland/js/core/@lottoland/core/lit-element-f5b145c5901596a7.js";import{resources as m,formatPrice as g,formatJackpot as h,fixPrecisionToPreventFloatingPointTrouble as b,smoothScrollTo as y,debounce as k}from"/en_WL/skins/lottoland/js/core/@lottoland/lsl-bf59d28f18baba20.js";import{getWithEmptyKey as x,LineType as f,DataConsumer as v,TippEngineDataProvider as w,obtainCssVariableValue as E,L12nListener as j}from"/en_WL/skins/lottoland/js/lotteries/@lottoland/lotteries-styleguide-a264d2df9b75d689.js";import N,{takeEvery as T,put as P,select as S}from"/en_WL/skins/lottoland/js/core/@lottoland/core/saga-b6f6f8ba14be0708.js";import{createStore as _,applyMiddleware as L}from"/en_WL/skins/lottoland/js/core/@lottoland/core/redux-9dfaf05951038906.js";import{lazyConnect as C}from"/en_WL/skins/lottoland/js/core/@lottoland/core/pwa-helpers-d16ad4633928a258.js";import"/en_WL/skins/lottoland/js/core/@lottoland/one-styleguide-0752587ab218f025.js";function D(t,e,i,a){var n,r=arguments.length,l=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(l=(r<3?n(l):r>3?n(e,i,l):n(e,i))||l);return r>3&&l&&Object.defineProperty(e,i,l),l}const A="REMOVE_LINE",O="ADD_LINE",G="CHANGE_LINE",q="RANDOM_NUMBERS",I="INITIAL_LOAD",M="LOAD_INITIAL_LINES",R="CHANGE_DURATION",J="DEPRECATED_CHANGE_FIRST_DRAW",z="CHANGE_SUBSCRIPTION",F="CHANGE_HUNT",B="SUBMIT_TICKET",H="CHANGE_DYJ_SELECTION",U="CHANGE_PARTICIPATION",W="ADD_ENCODED_TICKET",Q="TRIGGER_JACKPOT_HUNT",V="COMPLETED_LINE_WITH_SYSTEM",Y="LOAD_TICKET",K="SET_CONFIG",X="CHANGE_EXTRA_GAME_SELECTION",Z="CHANGE_MINI_TICKET",$="EXTRA_GAME_NUMBERS_CHANGE",tt="CHANGE_BETTYPE";class et{static getCurrency(){return m.currency}static formatPrice(t,e){return g(t,e)}static formatJackpot(t,e,i){return h(t,e||void 0,i)}static formatAmount(t){return b(t)}}const it=t=>"number"==typeof t&&isFinite(t),at=t=>it(t)?Number(t):0;const nt={NORMAL:"normal",SUBSCRIPTION:"subscription",HUNT:"hunt"},rt={DRAWING:"DRAWING",WEEK:"WEEK",DAY:"DAY"},lt={mixed:"mixed",onlySystem:"onlySystem",onlyPartial:"onlyPartial",onlyNormal:"onlyNormal"},ot={NORMAL:"NORMAL",FULL:"FULL",PARTIAL:"PARTIAL"},st={DIGIT:"D",NULL:"X"};class ct{constructor(t){this.ticketEntity=t}calculateGenericPrice(t,e,i){const{ticket:{duration:a},configEntity:{config:{durations:n}}}=this.ticketEntity,r=this.ticketEntity.combinationAmount();let l=0;if(r>0&&0!==t&&(l=t,i&&(l*=r),n)){const{unit:t}=n;e===rt.WEEK&&t===rt.WEEK?l*=a:e===rt.DRAWING&&(l*=this.ticketEntity.totalParticipation())}return l}getExtraGamePriceStake(t){const{stake:e}=this.ticketEntity;return t.price.stakes.find(t=>t.id===e)}getExtraGamePriceObject(t){const{configEntity:e}=this.ticketEntity,i=e.getExtraGame(t);if(!i)throw Error("Extra Game "+t+" is not defined in config");const{price:{value:a,dyj:n,duration:r,perLine:l}}=i;let o=this.getExtraGamePriceStake(i);return{value:o?at(o.value):a,dyj:at(o?o.dyj:n),duration:r,perLine:l}}calculateExtraGamePrice(t){const{value:e,dyj:i,duration:a,perLine:n}=this.getExtraGamePriceObject(t);return{value:this.calculateGenericPrice(e,a,n),dyj:this.calculateGenericPrice(at(i),a,n)}}async getExtraGameBreakdown(){const{enabledExtraGames:t,dyj:e}=this.ticketEntity,i=[];for(let a of t){const t=a.name,n=await x({key:"productChangeEvent_breakdown_extra_game_"+t}),{value:r,dyj:l}=this.calculateExtraGamePrice(t),o=[et.formatPrice(r),...e&&0!==l?[et.formatPrice(l)]:[]];i.push({description:n,price:o.join(" + ")})}return i}get priceStake(){const{stake:t,configEntity:e}=this.ticketEntity;return(e.price.stakes||[]).find(e=>e.id===t)}getDYJFeaturesPrice(){const{dyj:t,configEntity:e,stake:i}=this.ticketEntity;if(!t)return 0;if(i){const t=this.priceStake;return t?t.dyj:(console.error("No price stake found for stake "+i),0)}return e.price.dyj}async getLinesBreakdown(){const{ticket:{lines:t,subscription:e,hunt:i},priceEntity:a,dyj:n,enabledExtraGames:r}=this.ticketEntity,l=t.length,o=this.ticketEntity.combinationAmount(),s=this.ticketEntity.totalParticipation(),c=l===o&&!n&&0===r.length,p=e||i?this.subscriptionAndHuntPriceVariation:0;if(0===l||c&&0===this.normalFee&&0===p)return[];const d=[],u=await x({key:"productChangeEvent_breakdown_lines",parameters:[l,o,Number(n)]}),m=et.formatPrice(s*o*a.getLinePrice({applyDyj:!1})),g=s*o*this.getDYJFeaturesPrice(),h=[m,...0!==g?[et.formatPrice(g)]:[]];if(d.push({description:u.trim(),price:h.join(" + ")}),d.push(...await this.getExtraGameBreakdown()),0!==this.normalFee||0!==p){const t=0!==this.normalFee?this.normalFee:p;d.push({description:await x({key:"productChangeEvent_breakdown_fee",parameters:[t>0?0:1]}),price:et.formatPrice(t)})}return d}get subscriptionAndHuntPriceVariation(){const{ticket:{subscription:t,hunt:e},stake:i,configEntity:{priceVariation:a}}=this.ticketEntity;return a.reduce((a,n)=>{if(n.type===nt.HUNT&&e||n.type===nt.SUBSCRIPTION&&t){const t=i?this.getMiniTicketPriceVariation(n):n.value;a+=this.calculateGenericPrice(t,n.duration,n.perLine)}return a},0)}get subscriptionDiscount(){const{configEntity:{priceVariation:t}}=this.ticketEntity,e=t.reduce((t,e)=>(e.type===nt.SUBSCRIPTION&&(t+=this.calculateGenericPrice(e.value,e.duration,e.perLine)),t),0);return e<0?-e:0}get subscriptionDiscountPercentage(){return+(100*this.subscriptionDiscount/this.basePrice).toFixed(2)}getLinePrice(t){void 0===t&&(t=ct.DEFAULT_PRICE_CALCULUS_RULES);const{stake:e,ticket:{dyj:i},configEntity:{price:a}}=this.ticketEntity,{applyLine:n,applyDyj:r,stateless:l,applyMiniTicket:o}=Object.assign({},ct.DEFAULT_PRICE_CALCULUS_RULES,t),s=this.priceStake;if(o&&e&&!s)return 0;const{line:c,dyj:p}=o&&e&&s?s:a,d=(it(p)?p:c)||0;return(i||l)&&r?d+(n?c:0):c}getMiniTicketPriceVariation(t){const{stake:e}=this.ticketEntity,i=(t.stakes||[]).find(t=>t.id===e);return i?i.value:0}get normalFee(){const{stake:t,ticket:{subscription:e,hunt:i},configEntity:{priceVariation:a}}=this.ticketEntity;return e||i||!a.reduce?0:a.reduce((e,i)=>{if(i.type===nt.NORMAL){const a=t?this.getMiniTicketPriceVariation(i):i.value;e+=this.calculateGenericPrice(a,i.duration,i.perLine)}return e},0)}get basePrice(){var t;const{configEntity:{price:e}}=this.ticketEntity;return this.ticketEntity.totalParticipation()*(null!==(t=null==e?void 0:e.line)&&void 0!==t?t:0)*this.ticketEntity.combinationAmount()}getExtraGamePrice(t){const{dyj:e}=this.ticketEntity,{value:i,dyj:a}=this.calculateExtraGamePrice(t);return(e&&i?i+a:i)||0}get extraGamesPrice(){const{enabledExtraGames:t}=this.ticketEntity;let e=0;return t.forEach(t=>{e+=this.getExtraGamePrice(t.name)}),e}get subTotalMiniTicketPrice(){let t=this.getLinePrice();return et.formatAmount(this.ticketEntity.totalParticipation()*t*this.ticketEntity.combinationAmount()+this.extraGamesPrice)}get subTotalPrice(){const{dyj:t,stake:e,configEntity:{price:i}}=this.ticketEntity||{},{dyj:a,line:n}=i||{};if(e)return this.subTotalMiniTicketPrice;const r=(t&&a&&Number(a||n)||0)+(null!=n?n:0);return et.formatAmount(this.ticketEntity.totalParticipation()*r*this.ticketEntity.combinationAmount()+this.extraGamesPrice)}get totalPrice(){return this.subTotalPrice+this.subscriptionAndHuntPriceVariation+this.normalFee}getDurationByType(t){const{configEntity:{priceVariation:e}}=this.ticketEntity;for(let i=0;i<e.length;i++)if(e[i].type===t)return e[i].duration;return null}get subscriptionAndHuntPrices(){const{ticket:{subscription:t,hunt:e}}=this.ticketEntity;let i={currency:et.getCurrency(),total:this.subTotalPrice};this.getDurationByType(nt.HUNT),this.getDurationByType(nt.SUBSCRIPTION);const a=t||e;return 0!==this.subscriptionAndHuntPriceVariation&&a&&(i=Object.assign({},i,{subtotal:this.subTotalPrice,total:this.subTotalPrice+this.subscriptionAndHuntPriceVariation})),0!==this.subscriptionDiscount&&(i=Object.assign({},i,{priceVariation:{subscriptionDiscount:this.subscriptionDiscount,subscriptionDiscountPercentage:this.subscriptionDiscountPercentage}})),i}}ct.DEFAULT_PRICE_CALCULUS_RULES={applyLine:!0,applyDyj:!0,applyMiniTicket:!0,stateless:!1};class pt extends ct{get subTotalPrice(){return this.ticketEntity.completeLines.reduce((t,e)=>t+(e.stake||0),0)*this.ticketEntity.totalParticipation()}get totalPrice(){return this.subTotalPrice}}let dt=ct;const ut={EUROJACKPOT:"euroJackpot",GERMAN6AUS49:"german6aus49",TRIS:"tris"};class mt{constructor(t){this.getExtraGame=t=>this.extraGames.find(e=>e.name===t),this.config=t}get features(){const{features:t}=this.config;return t}get isMiniTicketEnabled(){return!!this.config.features.miniTicketStake}get miniTicketPriceStake(){const{price:{stakes:t},features:{miniTicketStake:e}}=this.config;return(t||[]).find(t=>t.id===e)}get stakesLine(){const{price:{stakes:t}}=this.config;return t?t.map(t=>t.line):void 0}getPriceStakeByPrice(t){return this.price.stakes.find(e=>e.line===t)}getPriceStakeById(t){return this.price.stakes.find(e=>e.id===t)}getBaseStakeLine(){var t;return null===(t=(this.price.stakes||[]).sort((t,e)=>t.line-e.line)[0])||void 0===t?void 0:t.line}get extraGames(){const{extraGames:t}=this.config;return null!=t?t:[]}get price(){const{price:t}=this.config;return t}get priceVariation(){const{priceVariation:t}=this.config;return t}get isStaticJackpot(){const{staticJackpot:t}=this.config;return t}getDrawingFeaturesByID(t){var e;const{drawingFeatures:i,features:a}=this.config,n=null===(e=i.find(e=>e.drawingIds.includes(t)))||void 0===e?void 0:e.features;return Object.assign({},mt.DEFAULT_FEATURES,a,n)}getSystemBet(t){const{systems:e}=this.config;let i;return i=t.selectedOptionId?(e||[]).find(e=>e.id===t.selectedOptionId):(e||[]).find(e=>e.numbers===t.numbers.length&&e.extraNumbers===(t.extraNumbers?t.extraNumbers.length:0)),i||null}getBaseJackpot(){var t;const{drawingJackpots:e,drawings:i}=this.config;return null===(t=e.find(t=>{var e;return t.drawingIds.includes(null===(e=i[0])||void 0===e?void 0:e.id)}))||void 0===t?void 0:t.jackpot}containsPartialSystemBets(){var t;return!!this.config.systems&&!!(null===(t=this.config.systems)||void 0===t?void 0:t.find(t=>!!t.type&&t.type===ot.PARTIAL))}static getValidSystemBetModeConfiguration(t){const{minNumbers:e,minExtraNumbers:i,systems:a,lineType:n,betMode:r}=t,l={id:"NORMAL",numbers:e,extraNumbers:i,numLines:1};let o=a,s=e,c=i;return"set"!==n?{betMode:{betType:lt.mixed}}:(o&&o.length||(o=[l]),r&&r.betType!==lt.mixed?(r.betType===lt.onlySystem?o=o.filter(t=>!(t.id.includes("NORMAL")||t.type&&t.type!==ot.FULL)):r.betType===lt.onlyPartial&&(o=o.filter(t=>t.type===ot.PARTIAL)),r.betType===lt.onlyNormal?o=[o.find(t=>t.id.includes("NORMAL")&&(!t.type||t.type===ot.NORMAL))||l]:o.length&&(s=o.reduce((t,e)=>t&&t.numbers<e.numbers?t:e).numbers||e,c=o.reduce((t,e)=>t&&t.extraNumbers<e.extraNumbers?t:e).extraNumbers||i),{minNumbers:s,minExtraNumbers:c,systems:o}):(o=o.filter(t=>!t.type||t.type!==ot.PARTIAL),{betMode:{betType:lt.mixed},systems:o}))}}mt.DEFAULT_FEATURES={dyj:!1,syn:!1,subscription:!1,hunt:!1,cumulativeJackpot:!1,hideDrawDateSelector:!1};class gt{constructor(t){this.participationIds=t=>{const{configEntity:{config:{drawings:e}}}=this.ticketEntity;return e.filter(e=>t.includes(e.drawingDate.toString())).map(t=>t.id)},this.ticketEntity=t}get participationDates(){const{configEntity:{config:{drawings:t}},ticket:{participations:e}}=this.ticketEntity;return t.filter(t=>null==e?void 0:e.includes(t.id)).map(t=>t.drawingDate.toString())}get allParticipationIds(){return this.participationIds(this.participationPanelConfig.drawingDate)}static sanitizeParticipations(t,e,i){const{durations:a,drawings:n,amountDrawsToShow:r,features:l}=e;let o;const s=e=>t.filter(t=>n.slice(0,e).map(t=>t.id).includes(t));if((null==a?void 0:a.unit)===rt.WEEK)if(null!=r&&r>0)o=s(r);else{const t=new Set,e=t=>new Date(Number(t)).getDay();n.forEach(i=>t.add(e(i.originalDrawingDate||i.drawingDate))),o=s(Array.from(t).length)}else o=(null==l?void 0:l.hideDrawDateSelector)?[n[0].id]:s(n.length);const c=i&&o.includes(i)?i:o.length>0?o[0]:n[0].id;return[c,0===o.length?[c]:o]}get participationPanelConfig(){const{configEntity:{config:{drawSelectMultiple:t,amountDrawsToShow:e,durations:i,drawings:a},features:n}}=this.ticketEntity;let r;if((null==i?void 0:i.unit)===rt.WEEK||(null==i?void 0:i.unit)===rt.DAY)r=this.orderedParticipationDates;else{const t=this.participationDates;if((null==t?void 0:t.length)>0)r=[this.participationFromDrawing(a.find(e=>t.includes(e.drawingDate.toString())))];else{const t=this.orderedDrawings.pop();r=[this.participationFromDrawing(t)]}}return Object.assign({drawingDate:r.map(t=>t.drawingDate),closingDate:r.map(t=>t.closingDate),originalDrawingDate:r.map(t=>t.originalDrawingDate),hideDrawDateSelector:!!(null==n?void 0:n.hideDrawDateSelector),hasMultipleSelection:t,showSelectAll:!0},e&&(null==i?void 0:i.unit)===rt.WEEK?{amountDrawsToShow:e}:{})}participationFromDrawing(t){const e=t.originalDrawingDate||t.drawingDate;return{drawingDate:t.drawingDate.toString(),closingDate:t.closingDate.toString(),originalDrawingDate:e.toString()}}get orderedDrawings(){const{configEntity:{config:{drawings:t}}}=this.ticketEntity;return t.slice().sort((t,e)=>e.drawingDate-t.drawingDate)}get orderedParticipationDates(){const{configEntity:{config:{durations:t}}}=this.ticketEntity,e=this.orderedDrawings;let i=new Map;const a=new Intl.DateTimeFormat(m.locale,{timeZone:m.timeZone,hour:"2-digit",minute:"numeric",hourCycle:"h23"}),n=(null==t?void 0:t.unit)===rt.WEEK?t=>t:t=>{const e=new Date(Number(t));return a.format(e)};e.forEach(t=>{const e=this.participationFromDrawing(t);i.set(n(e.originalDrawingDate),e)});const r=new Map([...i.entries()].sort());return Array.from(r.values())}}gt.MIN_PARTICIPATIONS=1;const ht={applyMiniTicket:!0,applyDYJ:!0,applyStaticJackpot:!0,stateless:!1};class bt{constructor(t){this.ticketEntity=t}getJackpotAmount(t){void 0===t&&(t=ht);const{configEntity:{isStaticJackpot:e,features:{miniTicketStake:i},config:{drawings:a}},ticket:{dyj:n,firstDraw:r},firstDrawingFeatures:l}=this.ticketEntity,{applyMiniTicket:o,applyDYJ:s,applyStaticJackpot:c,stateless:p}=Object.assign({},ht,t);if(c&&e)return 0;let d=this.getDrawingJackpotAmount(r);const u=a[0].id;0===d&&u!==r&&(d=this.getDrawingJackpotAmount(u));const m=s&&l.dyj&&(n||p)?2:1;if(o){const t=p?Number(i||"0"):this.share;return et.formatAmount(d*m*t/100)}return d*m}getDrawingJackpotAmount(t){const{configEntity:{config:{drawingJackpots:e}}}=this.ticketEntity;return this.getDrawingJackpotAmountByID(e,t)}getExtraGameDrawingJackpotAmount(t,e){var i;const{configEntity:{config:{extraGameJackpots:a}},ticket:{lotteryParticularities:n}}=this.ticketEntity;return Object.keys(a||{}).includes(t)&&(null===(i=null==n?void 0:n.extraGames)||void 0===i?void 0:i.find(e=>e.name===t&&e.enabled))?this.getDrawingJackpotAmountByID((a||{})[t],e):0}getExtraGameJackpotAmount(t){const{ticket:{dyj:e}}=this.ticketEntity,i=this.ticketEntity.firstDrawingFeatures.dyj&&e?2:1;return this.getExtraGameDrawingJackpotAmount(t)*i}getMiniTicketExtraGameJackpotAmount(t){return et.formatAmount(this.getExtraGameDrawingJackpotAmount(t)*(this.share/100))}getDrawingJackpotAmountByID(t,e){const{configEntity:{config:{drawings:i}}}=this.ticketEntity,a=e||i.slice().sort((t,e)=>t.drawingDate-e.drawingDate)[0].id,n=t.find(t=>t.drawingIds.includes(a));return n?n.jackpot:0}get share(){const{stake:t}=this.ticketEntity;return t?Number(t):100}getAccumulatedExtraGamesJackpotAmounts(t){const{configEntity:{config:{features:{cumulativeJackpot:e}}}}=this.ticketEntity;return e?(t||[]).reduce((t,e)=>{let{name:i}=e;return t+this.getExtraGameJackpotAmount(i)},0)*this.share/100:0}}const yt=t=>t?JSON.parse(JSON.stringify(t)):t,kt="tejs",xt={type:kt};class ft{constructor(t,e){this.checkValidLine=t=>!1===t.valid&&!(0===t.numbers.length&&0===(t.extraNumbers||[]).length),this.ticket=t,this.configEntity=new mt(e),this.priceEntity=new dt(this),this.participationEntity=new gt(this),this.jackpotEntity=new bt(this)}get isMiniTicketChecked(){return!!this.stake}get extraGames(){const{lotteryParticularities:t}=this.ticket;return(null==t?void 0:t.extraGames)||[]}get enabledExtraGames(){const{lotteryParticularities:t}=this.ticket;return((null==t?void 0:t.extraGames)||[]).filter(t=>t.enabled)||[]}getExtraGame(t){return this.extraGames.find(e=>e.name===t)}get dyj(){const{dyj:t}=this.ticket;return t&&this.firstDrawingFeatures.dyj}get firstDrawingFeatures(){const{firstDraw:t}=this.ticket;return this.configEntity.getDrawingFeaturesByID(t)}get stake(){return this.ticket.stake}get invalidLines(){return yt(this.ticket.lines||[]).filter(t=>this.checkValidLine(t))}get completeLines(){let t=yt(this.ticket.lines||[]);return t=t.filter(t=>0!==t.numbers.length&&!1!==t.valid),t=t.map(t=>(delete t.valid,t)),t}purifyTicket(){const t=yt(this.ticket);return t.dyj=this.dyj,t.lines=this.completeLines,delete t.target,t}async getProductChangeStatus(){const t=this.invalidLines,e={valid:this.completeLines.length>0};return t.length&&(e.type="warning",e.text=await x({key:"productChangeEvent_invalidLines",parameters:[t.length]})),e}async productChangeDetail(){const{priceEntity:t,configEntity:{config:e,isMiniTicketEnabled:i},stake:a,ticket:n}=new vt(this.purifyTicket(),yt(this.configEntity.config)),r=await this.getProductChangeStatus(),l=await t.getLinesBreakdown(),o=await x({key:"cart_summary",lotteryName:e.lotteryName,parameters:[n.lines.length,Number(n.lines.length>0&&this.hasExtra(n))]}),s=n.lines.map(t=>{var e;return{numbers:t.numbers,extraNumbers:t.extraNumbers,stake:null===(e=this.configEntity.getPriceStakeByPrice(t.stake))||void 0===e?void 0:e.id,selectedOptionId:t.selectedOptionId}}).map(t=>(t.stake||delete t.stake,t.extraNumbers||delete t.extraNumbers,t.selectedOptionId||delete t.selectedOptionId,t)),c=Object.assign({},xt,{name:e.lotteryName,lines:s,duration:n.duration,subscription:n.subscription,hunt:n.hunt,firstDraw:n.firstDraw,dyj:n.dyj,participations:n.participations});return i&&a&&(c.stake=a),n.ticketID&&(c.ticketID=n.ticketID),n.lotteryParticularities&&(c.lotteryParticularities=n.lotteryParticularities),{name:e.lotteryName,type:"lottery",total:t.totalPrice,summary:o,breakdown:l,status:r,ticket:c}}hasExtra(t){const{lines:e,dyj:i}=t,{config:a}=this.configEntity,{minNumbers:n,minExtraNumbers:r}=a;return i||!!e.find(t=>{var e;return t.numbers.length>n||t.extraNumbers&&(null===(e=t.extraNumbers)||void 0===e?void 0:e.length)>r})}serialize(){return JSON.stringify(this.purifyTicket())}static getInstance(t){var e;const{drawings:i,extraGames:a}=t,n={lines:[],firstDraw:(null==i?void 0:i.length)?i[0].id:"",duration:this.MIN_DURATION,subscription:!1,hunt:!1,dyj:!1,participations:(null==i?void 0:i.length)?[i[0].id]:[]};return(null==a?void 0:a.length)?n.lotteryParticularities={extraGames:a.map(t=>({name:t.name,enabled:!!t.preselected}))}:null===(e=n.lotteryParticularities)||void 0===e||delete e.extraGames,n}static sanitizeDuration(t,e){var i;return(null===(i=e.durations)||void 0===i?void 0:i.values.includes(t))?t:this.MIN_DURATION}static sanitizeLines(t,e){const{systems:i}=mt.getValidSystemBetModeConfiguration(e),a=e.minNumbers&&t&&i?t.filter(t=>{var e;const a=t.numbers.length,n=(null===(e=t.extraNumbers)||void 0===e?void 0:e.length)||0;return null==i?void 0:i.some(t=>t.numbers===a&&t.extraNumbers===n)}):t;return vt.prepareLines(a,e)}static sanitizeParticularities(t,e){const i=vt.getInstance(e),a=Object.assign({},i.lotteryParticularities,t);return e.extraGames||delete a.extraGames,a}static prepareLines(t,e){void 0===t&&(t=[]);const{expandedMode:i,numberLines:a}=e,n=i?[...Array(a-t.length).keys()].map(()=>({numbers:[],extraNumbers:[],valid:!1})):[];return[...t,...n]}static ticketToJson(t){const e=yt(t);return delete e.target,e}static adaptLineFromJson(t,e){var i;const a=new mt(e),n=Object.assign({},t);return t.stake&&"string"==typeof t.stake&&(n.stake=a.getPriceStakeById(t.stake)?null===(i=a.getPriceStakeById(t.stake))||void 0===i?void 0:i.line:a.stakesLine?a.stakesLine[0]:0),n}static readTicketFromParam(t,e){const i=Object.assign({},t),a=(i.lines||[]).map(t=>vt.adaptLineFromJson(t,e));return delete i.name,ft.jsonToTicket(Object.assign({},i,{lines:a}),e)}static jsonToTicket(t,e){try{const i=vt.getInstance(e),a=Object.assign({},i,t);a.lines=vt.sanitizeLines(a.lines?a.lines:[],e);const[n,r]=gt.sanitizeParticipations(a.participations,e,a.firstDraw);return a.participations=r,a.firstDraw=n,a.duration=ft.sanitizeDuration(a.duration,e),a.lotteryParticularities&&(a.lotteryParticularities=ft.sanitizeParticularities(a.lotteryParticularities,e)),a}catch(e){return console.warn("Cannot convert json object to ticket",t),null}}totalParticipation(){const{ticket:{duration:t,participations:e=[],hunt:i}}=this;return i?gt.MIN_PARTICIPATIONS:e.length>0?t*e.length:t}combinationAmount(){return this.completeLines.reduce((t,e)=>{const i=this.configEntity.getSystemBet(e);return t+(i?i.numLines:1)},0)}}ft.MIN_DURATION=1;let vt=ft;const wt=t=>{switch(t){case ut.EUROJACKPOT:vt=Tt;break;case ut.GERMAN6AUS49:vt=Pt;break;case ut.TRIS:vt=St;break;default:vt=ft}};class Et{static randomize(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=9),new Array(t).fill(0).map(()=>Math.floor(Math.random()*(i-e+1)+e))}static randomSet(t,e,i){void 0===i&&(i=[]);const[a,n]=t;for(;i.length<e;){const t=Math.floor(Math.random()*n+a);i.includes(t)||i.push(t)}return i.sort((t,e)=>t-e)}}const jt=t=>e=>(null==e?void 0:e.length)?[...Array(t-e.length).fill(0),...e]:Et.randomize(t),Nt=t=>{class e extends t{static getInstance(t){const i=ft.getInstance(t);return Object.assign({},i,{lotteryParticularities:Object.assign({},i.lotteryParticularities,{ticketNumber:e.buildTicketNumber([])})})}}return e.buildTicketNumber=jt(7),e};class Tt extends(Nt(ft)){}class Pt extends(Nt(ft)){}class St extends ft{constructor(){super(...arguments),this.checkValidLine=t=>!1===t.valid&&!t.numbers.every(t=>null==t)}static sanitizeLines(t,e){const{price:{stakes:i},features:{defaultStake:a},patterns:n}=e,r=new mt(e);return t.forEach(t=>{var e,l;return t.numbers.every(t=>null==t)?(t.stake=(null===(e=i.find(t=>t.id===a))||void 0===e?void 0:e.line)||i[0].line,t.numbers=[]):(t.stake=r.getPriceStakeByPrice(t.stake)?r.getPriceStakeByPrice(t.stake).line:(null===(l=i.find(t=>t.id===a))||void 0===l?void 0:l.line)||i[0].line,t.selectedOptionId=t.selectedOptionId||n[0].id),t}),vt.prepareLines(t,e)}static adaptLineFromJson(t,e){const i=super.adaptLineFromJson(t,e);return t.hasOwnProperty("valid")&&!t.valid||!e.patterns||(i.selectedOptionId=i.selectedOptionId||this.findPatternId(e.patterns,t.numbers)),i}static findPatternId(t,e){return(t.find(t=>Array.from(t.match).every((t,i)=>t===st.DIGIT&&null!==e[i]&&void 0!==e[i]||t===st.NULL&&(null===e[i]||void 0===e[i])))||t[0]).id}static prepareLines(t,e){void 0===t&&(t=[]);const{numberLines:i,price:{stakes:a},features:{defaultStake:n}}=e,r=[...Array(i-t.length).keys()].map(()=>{var t;return{numbers:[],valid:!1,stake:(null===(t=a.find(t=>t.id===n))||void 0===t?void 0:t.line)||a[0].line}});return[...t,...r]}}class _t{static save(t,e){localStorage.setItem(t,JSON.stringify(e))}static load(t){const e=localStorage.getItem(t)+"";try{return JSON.parse(e)}catch(t){throw new Error(_t.NOT_PARSEABLE_WARN_MESSAGE)}}static clean(t){localStorage.removeItem(t)}}_t.NOT_PARSEABLE_WARN_MESSAGE="Cannot parse data from localStorage to object";class Lt{static save(t,e){_t.save(Lt.STORAGE_KEY(t),e)}static handleError(t){console.warn(Lt.WRONG_TICKET_MESSAGE(t)),Lt.clean(t)}static load(t){let e=null;try{e=_t.load(Lt.STORAGE_KEY(t))}catch(e){Lt.handleError(t)}return e}static clean(t){_t.clean(Lt.STORAGE_KEY(t))}}function Ct(t,e,i,a,n,r){return new Array(t).fill({}).map(()=>r===f.SEQUENCE?{numbers:Et.randomize(e,i[0],i[1])}:{numbers:Et.randomSet(i,e),extraNumbers:a?Et.randomSet(n,a):[]})}function Dt(t){const{amountNumbers:e,amountExtraNumbers:i,numbersRange:a,extraNumbersRange:n,numLines:r,lineType:l,callback:o}=t.payload;o(Ct(r,e,a,i,n,l))}function*At(t){const e=t.payload.ticket&&t.payload.ticket.lines&&t.payload.ticket.lines.length,{softLimit:i=0,minNumbers:a,minExtraNumbers:n,numbersRange:r,extraNumbersRange:l,lineType:o}=t.payload.config,s=e?t.payload.ticket.lines:Ct(i,a,r,n,l,o);yield P({type:M,payload:{lines:s}})}function Ot(t){Lt.clean(t.payload.lotteryName)}function*Gt(t){var e;const{payload:{hunt:i,prevParticipations:a}}=t,n=yield S(),{participationEntity:r}=new ft(n.ticket,n.config),l=(null==a?void 0:a.length)>0?a:[(null===(e=n.ticket)||void 0===e?void 0:e.firstDraw)||""],o=i?r.allParticipationIds:l;yield P({type:F,payload:{hunt:i,participations:o}})}function*qt(){yield T(q,Dt),yield T(I,At),yield T(B,Ot),yield T(Q,Gt)}Lt.STORAGE_KEY=t=>"tejs_"+t,Lt.WRONG_TICKET_MESSAGE=t=>"[TicketStorage]: wrong Ticket in LS for "+t+".";const It=t=>t&&"object"==typeof t&&!Array.isArray(t)&&!(t instanceof HTMLElement),Mt=(t,e)=>{const i=Object.assign({},t,e);for(const a of Object.keys(i))It(t[a])&&It(e[a])&&(i[a]=Mt(t[a],e[a]));return i},Rt=()=>({lotteryName:"",lineType:f.SET,numbers:0,extraNumbers:0,numbersRange:[0,0],extraNumbersRange:[0,0],minNumbers:0,minExtraNumbers:0,numberLines:0,extraGames:[],features:{subscription:!1,hunt:!1,cumulativeJackpot:!1,dyj:!1,defaultStake:"10.0",hideDrawDateSelector:!1},drawingFeatures:[],price:{dyj:0,line:0,stakes:[]},priceVariation:[],drawingJackpots:[],jackpotCurrency:"",drawings:[{id:"",closingDate:0,drawingDate:0}],durations:{unit:rt.WEEK,values:[]},softLimit:0,preventMultiDrawSubscription:!1,drawSelectMultiple:!1,staticJackpot:!1,expandedMode:!1,guidedNumberSelection:!1,betMode:{betType:lt.mixed}}),Jt=()=>({ticket:vt.getInstance(Rt()),config:Rt()}),zt=function(t,e){var i;void 0===t&&(t=Jt());let{ticket:a,config:n}=t,{lines:r}=a;switch(r=[...r],e.type){case A:return r.splice(e.payload.lineIndex,1),Object.assign({},t,{ticket:Object.assign({},a,{lines:r})});case G:const{lineIndex:l,numbers:o,extraNumbers:s,valid:c,stake:p,selectedOptionId:d}=e.payload;return r.splice(l,1,Object.assign({numbers:o,extraNumbers:s,valid:c,stake:p},d?{selectedOptionId:d}:{})),Object.assign({},t,{ticket:Object.assign({},a,{lines:r})});case O:{const{numbers:i,extraNumbers:n}=e.payload;return r=[...r,{numbers:i,extraNumbers:n}],Object.assign({},t,{ticket:Object.assign({},a,{lines:r})})}case I:return Mt(Jt(),e.payload);case W:return Mt(t,e.payload);case M:return Object.assign({},t,{ticket:Object.assign({},a,{lines:vt.sanitizeLines(e.payload.lines,n)})});case R:return Object.assign({},t,{ticket:Object.assign({},a,{duration:e.payload.duration})});case J:return Object.assign({},t,{ticket:Object.assign({},a,{firstDraw:e.payload.firstDraw})});case z:return Object.assign({},t,{ticket:Object.assign({},a,{subscription:e.payload.subscription})});case tt:const u=Object.assign({},n,{betMode:Object.assign({},n.betMode,{betType:e.payload.betType})}),m=Object.assign({},a,{lines:vt.sanitizeLines(a.lines,u)});return Object.assign({},t,{config:u,ticket:m});case F:const{hunt:g,participations:h}=e.payload;return Object.assign({},t,{ticket:Object.assign({},a,{hunt:g,participations:h,firstDraw:h[0]})});case B:return Lt.clean(e.payload.lotteryName),t;case H:return Object.assign({},t,{ticket:Object.assign({},a,{dyj:e.payload.dyj})});case X:{const{extraGame:i,checked:n}=e.payload;let r=a.lotteryParticularities||{},l=r.extraGames||[];if(l.forEach(t=>t.enabled=t.name===i?n:t.enabled),0===l.length){const e=Object.assign({},a);return delete(e.lotteryParticularities||{}).extraGames,0===Object.keys(e.lotteryParticularities||{}).length&&delete e.lotteryParticularities,Object.assign({},t,{ticket:e})}return r=Object.assign({},r,{extraGames:l}),Object.assign({},t,{ticket:Object.assign({},a,{lotteryParticularities:r})})}case U:{const{participations:i}=e.payload;return Object.assign({},t,{ticket:Object.assign({},a,{participations:i,firstDraw:i[0]})})}case Y:{const{ticket:i,target:a}=e.payload,r=vt.readTicketFromParam(i,n);return Object.assign({},t,{ticket:Object.assign({},null!=r?r:vt.getInstance(n),{target:a})})}case K:const b=e.payload.config.features.defaultStake;if(b&&b!=t.config.features.defaultStake){const t=e.payload.config.price.stakes.find(t=>t.id===b);t&&a.lines.map(e=>{e.valid||(e.stake=t.line)})}return Object.assign({},t,{config:e.payload.config});case Z:const y=Object.assign({},a,{stake:e.payload.stake});return y.stake||delete y.stake,Object.assign({},t,{ticket:Object.assign({},y)});case $:{let n=a.lotteryParticularities||{},r=(null===(i=n.extraGames)||void 0===i?void 0:i.map(t=>t.name===e.payload.name?Object.assign({},t,{numbers:e.payload.numbers}):Object.assign({},t)))||[];return Object.assign({},t,{ticket:Object.assign({},a,{lotteryParticularities:Object.assign({},n,{extraGames:r})})})}default:return t}};class Ft{static save(t){const e=Object.assign({},Ft.load(),t),i=Object.entries(e).reduce((t,e)=>{let[i,a]=e;return Ft.EXPIRING_FLAGS.some(t=>t.key===i)||(t[i]=a),t},{});Object.keys(i).length>0&&_t.save(Ft.FLAGS_KEY,i),Ft.EXPIRING_FLAGS.forEach(t=>{const i=e[t.key];void 0!==i&&Ft.saveCookie(t.key,i,t.duration)})}static saveCookie(t,e,i){const a=new Date(Date.now()+i).toUTCString();document.cookie=t+"="+e+"; expires="+a+"; path=/"}static load(){const t=_t.load(Ft.FLAGS_KEY)||Ft.DEFAULT_FLAGS;return Ft.EXPIRING_FLAGS.forEach(e=>{const i=document.cookie.split(";").map(t=>t.trim()).find(t=>t.startsWith(e.key+"="));i&&(t[e.key]="true"===i.split("=")[1])}),t}}let Bt;Ft.FLAGS_KEY="tejs_flags",Ft.DEFAULT_FLAGS={showTooltipFirstCompletedLine:!0},Ft.EXPIRING_FLAGS=[{key:"showTooltipFirstCompletedLine",duration:864e5}];const Ht="TICKET_NUMBER_CHANGE",Ut="TICKET_NUMBER_RANDOMIZE",Wt=function(t,e){void 0===t&&(t={ticket:ft.getInstance(Rt()),config:Rt()});const{ticket:i}=t;switch(e.type){case Ht:{const a=Object.assign({},i.lotteryParticularities,{ticketNumber:e.payload.ticketNumber});return Object.assign({},t,{ticket:Object.assign({},i,{lotteryParticularities:a})})}case Ut:{const e=Object.assign({},i.lotteryParticularities,{ticketNumber:Et.randomize(7)});return Object.assign({},t,{ticket:Object.assign({},i,{lotteryParticularities:e})})}case X:{const{payload:{extraGame:a,checked:n}}=e,{hunt:r,lotteryParticularities:l,lotteryParticularities:{extraGames:o=[]}={}}=i;return Object.assign({},t,{ticket:Object.assign({},i,"glucksSpirale"===a?{hunt:r&&!n}:{},{lotteryParticularities:Object.assign({},l,{extraGames:o.map(t=>t.name===a?Object.assign({},t,{enabled:n}):t)})})})}case F:{const{hunt:a,participations:n}=e.payload,{lotteryParticularities:r,lotteryParticularities:{extraGames:l=[]}={}}=i;return Object.assign({},t,{ticket:Object.assign({},i,{hunt:a,participations:n,firstDraw:n[0]},{lotteryParticularities:Object.assign({},r,{extraGames:l.map(t=>"glucksSpirale"===t.name?Object.assign({},t,{enabled:t.enabled&&!a}):t)})})})}default:return zt(t,e)}},Qt=t=>e=>i=>{e(i),(async(t,e)=>{let{type:i}=e;switch(i){case q:case Q:break;default:const e=t.ticket.target||window,a=new vt(t.ticket,t.config),n=await a.productChangeDetail();i!==I&&JSON.stringify(n)===JSON.stringify(Bt)||(Bt=n,e.dispatchEvent(new CustomEvent("productChange",{detail:n,bubbles:!0})))}})(t.getState(),i).then(()=>((t,e)=>{let{ticket:i,config:a}=t;switch(e.type){case I:case B:break;case V:Ft.save({showTooltipFirstCompletedLine:e.payload.firstCompletedLineWithSystem});break;default:if(i.lines.length>0){const t=vt.ticketToJson(i);Lt.save(a.lotteryName,t)}else Lt.clean(a.lotteryName)}})(t.getState(),i))};let Vt=null;const Yt=t=>{const e=N(),i=[e,Qt];if(!Vt){switch(t){case ut.EUROJACKPOT:case ut.GERMAN6AUS49:Vt=_(Wt,L(...i));break;default:Vt=_(zt,L(...i))}e.run(qt)}return Vt},Kt={removeLine(t){Yt().dispatch({type:A,payload:{lineIndex:t.detail.lineIndex}})},changeLine(t){const{numbers:e,extraNumbers:i=[],stake:a,selectedOptionId:n}=t.detail.line,{lineIndex:r,valid:l}=t.detail;Yt().dispatch({type:G,payload:Object.assign({lineIndex:r,numbers:e,extraNumbers:i,valid:l,stake:a},n?{selectedOptionId:n}:{})})},addLine(t){const{numbers:e,extraNumbers:i=[]}=t.detail.line;Yt().dispatch({type:O,payload:{numbers:e,extraNumbers:i}})},randomNumbers(t){Yt().dispatch({type:q,payload:Object.assign({},{amountExtraNumbers:0,extraNumbersRange:0},t)})},initialLoad(t,e){void 0===e&&(e=vt.getInstance(t)),Yt().dispatch({type:I,payload:{config:t,ticket:e}})},changeDuration(t){Yt().dispatch({type:R,payload:{duration:t}})},deprecatedChangeFirstDraw(t){Yt().dispatch({type:J,payload:{firstDraw:t}})},changeSubscription(t){Yt().dispatch({type:z,payload:{subscription:t}})},changeBetType(t){Yt().dispatch({type:tt,payload:{betType:t}})},changeHunt(t,e){Yt().dispatch({type:F,payload:{hunt:t,participations:e}})},changeDYJ(t){Yt().dispatch({type:H,payload:{dyj:t}})},changeExtraGameSelection(t,e){Yt().dispatch({type:X,payload:{extraGame:t,checked:e}})},submitTicket(t){Yt().dispatch({type:B,payload:{lotteryName:t}})},changeParticipation(t){Yt().dispatch({type:U,payload:{participations:t}})},addEncodedTicket(t,e){Yt().dispatch({type:W,payload:{config:t,ticket:e}})},triggerJackpotHunt(t,e){Yt().dispatch({type:Q,payload:{hunt:t,prevParticipations:e}})},firstCompletedLineWithSystem(t){Yt().dispatch({type:V,payload:{firstCompletedLineWithSystem:t}})},loadTicket(t,e){Yt().dispatch({type:Y,payload:{ticket:t,target:e}})},setConfig(t){Yt().dispatch({type:K,payload:{config:t}})},changeMiniTicket(t){Yt().dispatch({type:Z,payload:{stake:t}})},extraGameNumbersChange(t,e){Yt().dispatch({type:$,payload:{numbers:t,name:e}})}};class Xt{static extractJackpotCurrency(t,e){let{drawingJackpots:i}=t;if(!(null==i?void 0:i.length)||"object"!=typeof i[0].jackpot||!Object.keys(i[0].jackpot).length)return e;const a=Object.keys(i[0].jackpot);return a.includes(e)?e:a[0]}}Xt.getInstance=function(t,e,i){void 0===e&&(e="EUR");const a=Mt(Rt(),t);return Object.assign({},a,Xt.filterDrawings(a),Xt.transformDuration(a),Xt.transformPrices(a,e),Xt.transformPriceVariation(a,e),Xt.transformExtraGames(a,e),Xt.transformDrawingJackpots(a,e),Xt.transformExtraGamesJackpots(a,e),Xt.transformFeatures(a,e,i),Xt.initializeBetType(a,i),{jackpotCurrency:Xt.extractJackpotCurrency(a,e)})},Xt.filterDrawings=t=>{let{drawings:e}=t;const i=(new Date).getTime();return{drawings:e.filter(t=>t.drawingDate>i)}},Xt.transformDuration=t=>{let{durations:e}=t;return e=e||{unit:rt.DRAWING},{durations:Object.assign({},e,{values:e.values||[]})}},Xt.transformPriceStake=t=>t.map(t=>({id:t.id,line:it(t.line)?t.line:0,dyj:it(t.dyj)?t.dyj:0})),Xt.transformPrices=function(t,e){let{price:i}=t;if(void 0===e&&(e="EUR"),i&&"object"==typeof i&&Object.keys(i).includes(e)){const{line:t,dyj:a,stakes:n=[]}=i[e];return{price:{line:it(t)?t:0,dyj:it(a)?a:0,stakes:Xt.transformPriceStake(n)}}}return{}},Xt.transformPriceVariation=function(t,e){void 0===e&&(e="EUR");return{priceVariation:((t.priceVariation||{})[e]||[]).map(t=>Object.assign({},t,{stakes:(t.stakes||[]).map(t=>Object.assign({},t,{dyj:t.dyj||0}))}))}},Xt.transformExtraGames=function(t,e){if(void 0===e&&(e="EUR"),!Array.isArray(t.extraGames))return[];return{extraGames:((null==t?void 0:t.extraGames)||[]).filter(t=>t&&"object"==typeof t.price&&Object.keys(t.price).includes(e)&&it(t.price[e].value)).map(t=>Object.assign({},t,{disabled:t.disabled||!1,preselected:t.preselected||!1,price:Xt.transformExtraGamePrice(t,e)}))}},Xt.transformExtraGamePrice=function(t,e){void 0===e&&(e="EUR");const i=t.price[e];return Object.assign({},i,{dyj:i.dyj||0,stakes:i.stakes||[]})},Xt.transformFeatures=function(t,e,i){void 0===e&&(e="EUR");const a=Object.assign({},t.features||{}),n=(a.miniTicketStake||{})[e],r=(a.defaultStake||{})[e];delete a.miniTicketStake,delete a.defaultStake;const l=a;return!n||i&&![lt.onlyNormal,lt.mixed].includes(i.betType)||(l.miniTicketStake=n),r&&(l.defaultStake=r),l.hideDrawDateSelector=l.hideDrawDateSelector||!1,{features:l}},Xt.transformCurrencyDrawingJackpots=function(t,e){if(void 0===e&&(e="EUR"),!Array.isArray(t))return[];const i=Xt.extractJackpotCurrency({drawingJackpots:t},e);return t.filter(t=>{const e=null==t?void 0:t.jackpot;return e&&"object"==typeof t&&it(e[i])}).map(t=>({drawingIds:[...t.drawingIds],jackpot:t.jackpot[i]||0}))},Xt.transformDrawingJackpots=function(t,e){let{drawingJackpots:i}=t;return void 0===e&&(e="EUR"),Array.isArray(i)?{drawingJackpots:Xt.transformCurrencyDrawingJackpots(i,e)}:[]},Xt.initializeBetType=(t,e)=>{let{lineType:i}=t;return{betMode:e&&i===f.SET?e:{betType:lt.mixed}}},Xt.transformExtraGamesJackpots=function(t,e){let{extraGameJackpots:i}=t;if(void 0===e&&(e="EUR"),"object"!=typeof i)return{};return{extraGameJackpots:Object.keys(i).reduce((t,a)=>{const n=Xt.transformCurrencyDrawingJackpots(i[a],e);return Object.assign({},t,n.length?{[a]:n}:{})},{})}};const Zt={german6aus49:"ll-german-tippengine",austriaLotto:"ll-austria-tippengine",southAfricanLotto:"ll-sa-tippengine",euroJackpot:"ll-eurojackpot-tippengine",tris:"ll-tris-tippengine"};let $t=class extends v{constructor(){super(...arguments),this.connected=!1,this.dataCallback=t=>{this.config=t,this.lockResources(),this.initStore()}}getDomain(){return w.DOMAIN}readConfig(){let t=this.config;this.hasAttribute("desktop")&&(t.expandedMode=!0),this.innerConfig=Xt.getInstance(t,m.currency,this.betMode)}lockResources(){this.readConfig(),this.config&&class{static lock(t){void 0===t&&(t=""),Yt(t),wt(t),(t=>{switch(t){case ut.TRIS:dt=pt;break;default:dt=ct}})(t)}}.lock(this.config.lotteryName)}attributeChangedCallback(t,e,i){(e||i)&&i!==e&&(super.attributeChangedCallback(t,e,i),this.connected&&("config"!==t&&"betmode"!==t||null===e||!i||(this.lockResources(),this.initStore())))}connectedCallback(){super.connectedCallback(),this.connected=!0,this.config&&(this.lockResources(),this.initStore())}initStore(){const{lotteryName:t,systems:e}=this.innerConfig;let i=null;if(this.ticket)Lt.clean(t),i=vt.readTicketFromParam(this.ticket,this.innerConfig),i&&Kt.addEncodedTicket(this.innerConfig,i);else{const e=Lt.load(t);e&&(i=vt.jsonToTicket(e,this.innerConfig))}i||(i=vt.getInstance(this.innerConfig)),i.target=document.querySelector("ll-tippengine");const a=Ft.load();e&&1!==e.length||Ft.save(Object.assign({},a,{showTooltipFirstCompletedLine:!1})),Kt.initialLoad(this.innerConfig,i)}getDefaultTag(t){return Object.keys(Zt).includes(t)?Zt[t]:"ll-base-tippengine"}submit(){Kt.submitTicket(this.innerConfig.lotteryName)}getTipengine(){return this.shadowRoot.firstElementChild}getTicket(){var t;const e=null===(t=this.getTipengine())||void 0===t?void 0:t.getState(),i=e?Object.assign({},e.ticket):null;return i&&delete i.target,i}setTicket(t){Kt.loadTicket(t,this)}getConfig(){var t;const e=null===(t=this.getTipengine())||void 0===t?void 0:t.getState();return e?Object.assign({},e.config):null}setConfig(t){Kt.setConfig(t)}render(){var t;if(!this.config)return null;const{lotteryName:e,price:i}=this.innerConfig,n=this.getDefaultTag(this.innerConfig.lotteryName);return a("\n            <"+n+' click-container="'+'tejs" data-track-name="'+'tejs" class="js-trackParent">\n                <slot></slot>\n                <slot name="purchase" slot="purchase"></slot>\n                <slot name="betModeSelector" slot="betModeSelector"></slot>\n                <slot name="below-value-proposition" slot="value-proposition">\n                    <ll-tippengine-value-proposition \n                        lotteryName="'+e+'"\n                        linePrice="'+i.line+'"\n                        betMode="'+(null===(t=this.betMode)||void 0===t?void 0:t.betType)+'">\n                    </ll-tippengine-value-proposition>\n                </slot>\n            </'+n+">\n        ")}};function te(t,e){return e||(e=t.slice(0)),t.raw=e,t}D([t({type:Object,converter:e,reflect:!0})],$t.prototype,"config",void 0),D([t({type:Object,converter:e})],$t.prototype,"betMode",void 0),D([t({type:Object,converter:e})],$t.prototype,"ticket",void 0),$t=D([i("ll-tippengine")],$t);var ee,ie=n`@keyframes appearance{0%{background-color:transparent}to{background-color:rgba(0,0,0,.3)}}:host{position:fixed;display:none;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:var(--ll-zindex-modal, 10);cursor:pointer;-webkit-tap-highlight-color:transparent}:host(.modal-open){display:block;animation-name:appearance;animation-duration:.4s;animation-delay:.3s;animation-fill-mode:both}:host(.suppress-animation){animation-duration:0s;animation-delay:0s}`;let ae=class extends r{render(){return l(ee||(ee=te([""])))}};ae.styles=ie,ae=D([i("ll-tippengine-overlay")],ae);var ne,re=n`.subHeaderContent,slot{display:flex;align-items:center}.subHeaderContent{flex-direction:column;border-top:1px solid rgba(0,0,0,.3);border-bottom:1px solid rgba(0,0,0,.3);background-color:var(--ll-color-ui-06);border-radius:calc(var(--ll-base-unit)*.5)}ll-typography{margin-top:calc(var(--ll-base-unit)*2);margin-bottom:var(--ll-base-unit);text-align:center}slot{flex-wrap:wrap;justify-content:space-around;margin:0 calc(var(--ll-base-unit)*2) var(--ll-base-unit)}::slotted(img){margin:var(--ll-base-unit) calc(var(--ll-base-unit)*2);max-width:35%;max-height:calc(var(--ll-base-unit)*4);display:block!important}`;let le=class extends r{render(){return l(ne||(ne=te(['\n            <ll-conditional-content keyName="sub_header_container_description">\n                <div class="subHeaderContent">\n                    <ll-typography type="sp">\n                        <ll-lottery-text keyName="sub_header_container_description"\n                            >20p out of every £1 goes to charity...</ll-lottery-text\n                        >\n                    </ll-typography>\n                    <slot></slot>\n                </div>\n            </ll-conditional-content>\n        '])))}};le.styles=re,le=D([i("ll-tippengine-sub-header-container")],le);var oe,se,ce,pe,de,ue,me,ge,he,be=n`:host{display:flex;flex-direction:column;align-items:center}:host>*{width:100%}.price-expand-container{--color:var(--ll-lottery-font-primary);display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:calc(var(--ll-base-unit)*3);position:relative;z-index:5}.line-content{display:flex;flex-direction:column;align-items:center}ll-button{margin-top:calc(var(--ll-base-unit)*3);width:100%;max-width:310px;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-00)}ll-expand-button{--ll-expand-button-fg-color:var(--ll-lottery-font-primary);margin-left:var(--ll-base-unit);white-space:nowrap}ll-expand-button ll-lottery-text{display:none}ll-expand-button ll-lottery-text.tight{display:block}@media (min-width:380px){ll-expand-button ll-lottery-text{display:block}ll-expand-button ll-lottery-text.tight{display:none}}`;class ye extends r{constructor(){super(...arguments),this.lines=[],this.onQuickPickExisting=t=>{const{numbersRange:e,extraNumbersRange:i=[0,0],lineType:a}=this.state.config;Kt.randomNumbers({amountNumbers:t.detail.numbers,amountExtraNumbers:t.detail.extraNumbers,numbersRange:e,extraNumbersRange:i,lineType:a,callback:e=>{const{numbers:i=[],extraNumbers:a=[]}=e.shift();t.detail.callback(i,a)},numLines:1})}}set state(t){var e,i;this._state=t,this.lines=(null===(i=null===(e=this.state)||void 0===e?void 0:e.ticket)||void 0===i?void 0:i.lines)?yt(this.state.ticket.lines):[]}get state(){return this._state}clearAll(){}}D([t({type:Object})],ye.prototype,"state",null),D([t({type:Array})],ye.prototype,"lines",void 0);let ke=he=class extends ye{constructor(){super(...arguments),this.expanded=!1,this.addLines=t=>this.controllerEl.addLines(t),this.clearAll=()=>this.controllerEl.removeAllLines(),this.firstCompletedLineWithSystemHandler=t=>{const e=Ft.load();e&&e.showTooltipFirstCompletedLine&&Kt.firstCompletedLineWithSystem(!1)},this.onToggleLinesClick=()=>{this.expanded?this.controllerEl.collapse():y(0,500).then(()=>{this.controllerEl.expand()}),this.expanded=!this.expanded},this.onPickYourOwnNumbers=k(()=>{0===(document.scrollingElement||document.documentElement).scrollTop?this.controllerEl.addEmptyLine():y(0,500).then(()=>{setTimeout(()=>{this.controllerEl.addEmptyLine()},150)})},1e3,!0),this.renderLinesContent=()=>{const{config:t}=this.state,e=Ft.load(),{minNumbers:i,minExtraNumbers:a,systems:n,numbersRange:r,extraNumbersRange:o,lineType:c}=t,p=l(oe||(oe=te(['\n            <ll-lottery-line-controller\n                class="','"\n                .lines=',"\n                .systemBet=","\n                minNumbers=","\n                minExtraNumbers=","\n                .amountNumbers=","\n                .amountExtraNumbers=",'\n                extraNumbersTitle="extra_numbers_title"\n                lineType="','"\n                ?showTooltipFirstCompletedLine=',"\n                @remove=","\n                @add=","\n                @change=","\n                @quickPick=",'\n                modalSelector="ll-tippengine-overlay"\n                trackNamePrefix="','_"\n            >\n            </ll-lottery-line-controller>\n        '])),s({empty:0===this.lines.length}),this.lines,n,i,a,r,o,c,e&&e.showTooltipFirstCompletedLine,Kt.removeLine,Kt.addLine,Kt.changeLine,this.onQuickPickExisting,kt);return l(se||(se=te(['<div class="line-content">',"</div> "])),p)},this.renderExpandedButton=()=>{if(this.lines.length<2)return l(ce||(ce=te([""])));const t=this.expanded?"0":"1";return l(pe||(pe=te(["\n            <ll-expand-button\n                ?expanded=","\n                @click=",'\n                click-name="','"\n            >\n                <ll-lottery-text keyName="toggle_lines" .params=','>\n                    {1,choice,1#Show|0#Hide} {0,choice,1#1 line|1<{0} lines}\n                </ll-lottery-text>\n                <ll-lottery-text\n                    class="tight"\n                    .keyName="','"\n                    .params=',"\n                >\n                    {1,choice,1#Show|0#Hide} {0} lines\n                </ll-lottery-text>\n            </ll-expand-button>\n        "])),this.expanded,this.onToggleLinesClick,this.expanded?"expandLines":"collapseLines",[this.lines.length,t],["toggle_lines_short","toggle_lines"],[this.lines.length,t])},this.renderPriceExpandContainer=()=>{const{config:t,ticket:e}=this.state,i=new vt(e,t);if(!this.lines.length)return l(de||(de=te([""])));const{price:{line:a}}=t,{stake:n,priceEntity:r}=i,o=n?r.priceStake?r.priceStake.line:0:a;return l(ue||(ue=te(['\n            <div class="price-expand-container">\n                <ll-typography size="p">\n                    <ll-lottery-text\n                        keyName="line_price"\n                        .params="','"\n                        >{0} per line</ll-lottery-text\n                    >\n                </ll-typography>\n                ',"\n            </div>\n        "])),[et.formatPrice(o,et.getCurrency())],this.renderExpandedButton())},this.renderButtonContainer=()=>l(me||(me=te(["\n            <ll-button\n                @click=",'\n                type="secondary"\n                variant="custom"\n                icon="pencil-2"\n                ?disabled="','"\n                clickName="addManualLine"\n                clickValue="','"\n            >\n                <ll-lottery-text keyName="button_pickNumbers" .params="','"\n                    >pick your own numbers</ll-lottery-text\n                >\n            </ll-button>\n        '])),this.onPickYourOwnNumbers,0===he.incompleteLines(this.state),this.lines.length+1,[this.lines.length])}connectedCallback(){super.connectedCallback();const{config:t}=this.state,e=Ft.load(),i=document.body.insertBefore(document.createElement("ll-tippengine-overlay"),document.body.firstChild);t.lotteryName&&(i.classList.add(t.lotteryName),i.setAttribute("click-product",t.lotteryName),i.setAttribute("click-genre","lotto"),i.setAttribute("click-container",kt)),e&&e.showTooltipFirstCompletedLine&&i.addEventListener("firstCompletedLineWithSystem",this.firstCompletedLineWithSystemHandler,{once:!0})}disconnectedCallback(){document.body.querySelector("ll-tippengine-overlay").remove(),super.disconnectedCallback()}render(){return l(ge||(ge=te(["\n            "," "," ","\n        "])),this.renderPriceExpandContainer(),this.renderLinesContent(),this.renderButtonContainer())}};ke.styles=be,ke.incompleteLines=t=>{const{config:e,ticket:i}=t;return e.numberLines-i.lines.length},D([t({type:Boolean})],ke.prototype,"expanded",void 0),D([o("ll-lottery-line-controller")],ke.prototype,"controllerEl",void 0),D([o("ll-expand-button")],ke.prototype,"expandButtonEl",void 0),ke=he=D([i("ll-tippengine-collapsed-line-container")],ke);var xe,fe=n`:host{line-height:initial;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{width:100%;margin-bottom:calc(var(--ll-base-unit)*2)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.t-extra-games-section{align-self:flex-start}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);flex:1 1 auto;align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}:host{display:block;position:relative}@media (min-width:768px){:host{margin:0 calc(var(--ll-base-unit)*4)}}@media (min-width:960px){:host{margin-left:calc(-50vw + (var(--ll-base-unit)*120)/2 + (var(--ll-base-unit)*4));margin-right:calc(-50vw + (var(--ll-base-unit)*120)/2 + (var(--ll-base-unit)*4))}}ll-lottery-expanded-line-controller{--ll-lottery-expanded-line-progress-color:var(--ll-lottery-primary-light);margin:0 calc(var(--ll-base-unit)*-1.5) var(--ll-base-unit) calc(var(--ll-base-unit)*-1.5)}`;let ve=class extends ye{constructor(){var t;super(...arguments),t=this,this.addLines=function(e){void 0===e&&(e=[]);let i=[];for(let a=0;a<t.lines.length&&e.length>0;a++)!1===t.lines[a].valid&&(i.push(Object.assign({},e[0],{lineIndex:a,valid:!0})),e.splice(0,1));return t.controllerEl.addLines(i)},this.clearAll=()=>this.controllerEl.removeAllLines(),this.firstCompletedLineWithSystemHandler=t=>{var e;const i=Ft.load();i&&!i.showTooltipFirstCompletedLine||(null===(e=this.controllerEl)||void 0===e||e.removeAttribute("showTooltipFirstCompletedLine"),Kt.firstCompletedLineWithSystem(!1))}}connectedCallback(){super.connectedCallback();const t=Ft.load();t&&!t.showTooltipFirstCompletedLine||this.addEventListener("firstCompletedLineWithSystem",this.firstCompletedLineWithSystemHandler,{once:!0})}render(){const{config:t,config:{guidedNumberSelection:e}}=this.state,i=Ft.load(),{minNumbers:a,minExtraNumbers:n,numberLines:r,systems:o,patterns:s,numbersRange:p,extraNumbersRange:d,lineType:u}=t,m=new mt(t),g=m.stakesLine,h=g?m.getBaseJackpot():null;return l(xe||(xe=te(["\n            <ll-lottery-expanded-line-controller\n                numberLines=","\n                .lines=","\n                .minNumbers=","\n                .minExtraNumbers=","\n                .amountNumbers=","\n                .amountExtraNumbers=","\n                .systemBet=","\n                .patterns=","\n                .baseJackpot=","\n                .baseStake=","\n                .stakes=",'\n                .lineType="','"\n                ?showTooltipFirstCompletedLine=',"\n                ?guidedNumberSelection=","\n                @remove=","\n                @change=","\n                @quickPick=","\n            >\n            </ll-lottery-expanded-line-controller>\n        "])),r,this.lines,a,n,p,d,c(o),c(s),c(h),c(m.getBaseStakeLine()),c(g),u,!i||i.showTooltipFirstCompletedLine,e,Kt.removeLine,Kt.changeLine,this.onQuickPickExisting)}};ve.styles=fe,ve.incompleteLines=t=>{const{config:e,ticket:i}=t;return e.numberLines-new vt(i,e).completeLines.length},D([o("ll-lottery-expanded-line-controller")],ve.prototype,"controllerEl",void 0),ve=D([i("ll-tippengine-expanded-line-container")],ve);var we,Ee=n`:host{line-height:initial;display:block}`,je=n`:host{line-height:initial;display:block;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{width:100%;margin-bottom:calc(var(--ll-base-unit)*2)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.t-extra-games-section{align-self:flex-start}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);flex:1 1 auto;align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}@media screen and (min-width:768px){ll-lottery-systembet-line-controller{--ll-lottery-systembet-elements-width:calc(var(--ll-base-unit) * 37.5)}}`;let Ne=class extends ye{constructor(){super(...arguments),this.addLines=()=>new Promise(t=>t())}render(){var t,e;const{config:i}=this.state,{systems:a,numbersRange:n,extraNumbersRange:r,betMode:o}=i,s={onlyPartial:"PARTIAL",onlySystem:"FULL"},p=a.filter(t=>t.type?t.type==s[o.betType]:!t.id.includes("NORMAL")),d={systemBets:p,lotteryName:i.lotteryName,numbersRange:n,extraNumbersRange:r},u=this.lines.length?this.lines[0].numbers:[],m=this.lines.length&&this.lines[0].extraNumbers?this.lines[0].extraNumbers:[],g=null!==(e=null===(t=this.lines[0])||void 0===t?void 0:t.selectedOptionId)&&void 0!==e?e:p[0].id,h=new mt(i);return l(we||(we=te(['\n            <ll-lottery-systembet-line-controller\n                .systemBetLineControllerConfig="','"\n                .numbers="','"\n                .extraNumbers="','"\n                .systemId="','"\n                .linePrice="','"\n                @change="','"\n                @quickPick="','"\n            >\n            </ll-lottery-systembet-line-controller>\n        '])),d,u,m,g,c(h.price.line),Kt.changeLine,this.onQuickPickExisting)}};var Te,Pe,Se;Ne.styles=je,D([o("ll-lottery-systembet-line-controller")],Ne.prototype,"controllerEl",void 0),Ne=D([i("ll-tippengine-systembet-line-container")],Ne);let _e=class extends ye{addLines(t){return this.lineContainerEl.addLines(t)}clearAll(){this.lineContainerEl.clearAll()}render(){if(!this.state)return null;const{config:{expandedMode:t,betMode:{betType:e}={betType:lt.mixed}}}=this.state,i=Object.assign({},this.state,{config:Object.assign({},this.state.config,mt.getValidSystemBetModeConfiguration(this.state.config))});return!e||e!==lt.onlySystem&&e!==lt.onlyPartial?l(t?Pe||(Pe=te(["<ll-tippengine-expanded-line-container\n                  .state=","\n              ></ll-tippengine-expanded-line-container>"])):Se||(Se=te(["<ll-tippengine-collapsed-line-container\n                  .state=","\n              ></ll-tippengine-collapsed-line-container>"])),i):l(Te||(Te=te(["<ll-tippengine-systembet-line-container\n                .state=","\n            ></ll-tippengine-systembet-line-container>"])),i)}};_e.styles=Ee,_e.incompleteLines=t=>{if(!t)return 0;const{config:{expandedMode:e}}=t;return e?ve.incompleteLines(t):ke.incompleteLines(t)},D([o("ll-tippengine-collapsed-line-container, ll-tippengine-expanded-line-container")],_e.prototype,"lineContainerEl",void 0),_e=D([i("ll-tippengine-line-container")],_e);var Le,Ce,De,Ae=n`:host{display:block;position:relative;width:100%;--ll-value-proposition-bg-color:#ffffff00}`;let Oe=class extends r{constructor(){super(...arguments),this.lotteryName="",this.linePrice=0,this.betMode=lt.mixed}renderValuePropositionItem(t,e,i){const a="unique_value_proposition_"+{mixed:"text",onlySystem:"systembet_text",onlyPartial:"vew_text",onlyNormal:"text"}[this.betMode]+"_"+(e+1);return l(Le||(Le=te(['<ll-value-proposition-item icon="','">\n            <ll-lottery-text keyName="','" .params="','">\n                <ll-lottery-text\n                    keyName="unique_value_proposition_text_','"\n                    .params="','"\n                ></ll-lottery-text>\n            </ll-lottery-text>\n        </ll-value-proposition-item>'])),c(t||void 0),a,i,e+1,i)}render(){const t=Promise.all([1,2,3].map(t=>x({key:"unique_value_proposition_icon_"+t,lotteryName:this.lotteryName}))).then(t=>l(Ce||(Ce=te(["<ll-value-proposition>\n                ",'\n                <slot name="below-value-proposition" slot="content-below"></slot>\n            </ll-value-proposition>'])),t.map((t,e)=>this.renderValuePropositionItem(t,e,[g(this.linePrice)]))));return l(De||(De=te(["",""])),p(t,null))}};Oe.styles=Ae,D([t({type:String})],Oe.prototype,"lotteryName",void 0),D([t({type:Number})],Oe.prototype,"linePrice",void 0),D([t({type:String})],Oe.prototype,"betMode",void 0),Oe=D([i("ll-tippengine-value-proposition")],Oe);var Ge,qe,Ie,Me,Re,Je,ze,Fe=n`:host{width:100%;min-height:calc(var(--ll-base-unit)*5);margin-bottom:calc(var(--ll-base-unit)*2)}:host .header-bet-mode-extra-info{margin-top:calc(var(--ll-base-unit)*2)}:host .typography-inline{display:inline}@media (min-width:768px){:host{margin-top:0;display:flex;justify-content:space-between;align-items:center;margin-bottom:calc(var(--ll-base-unit)*2.5)}:host .header-bet-mode-extra-info{margin:0}}ll-lottery-horizontal-selector{margin-inline:calc(var(--ll-base-unit)*-2);height:calc(var(--ll-base-unit)*5)}@media (min-width:1024px){:host{margin-top:calc(var(--ll-base-unit)*2)}}`;let Be=class extends r{constructor(){super(...arguments),this.betMode={betType:lt.mixed},this.enablePartial=!1,this.minPrice=0,this._hasSlotContent=!1,this._defaultBetModeOptions=[{title:l(Ge||(Ge=te(['<ll-typography size="p" style="padding-inline: 8px">\n                <ll-lottery-text keyName="betModeSelector_normal">Classic</ll-lottery-text>\n            </ll-typography>']))),value:lt.onlyNormal},{title:l(qe||(qe=te(['<ll-typography size="p" style="padding-inline: 8px">\n                <ll-lottery-text keyName="betModeSelector_systemBets">System</ll-lottery-text>\n            </ll-typography>']))),value:lt.onlySystem},{title:l(Ie||(Ie=te(['<ll-typography size="p" style="padding-inline: 8px">\n                <ll-lottery-text keyName="betModeSelector_partialBets">Vew</ll-lottery-text>\n            </ll-typography>']))),value:lt.onlyPartial}]}changeBetMode(t){const{normalURL:e,systemURL:i,partialURL:a}=this.betMode,n={[lt.mixed]:e||"",[lt.onlySystem]:i||"",[lt.onlyPartial]:a||"",[lt.onlyNormal]:e||""}[t.detail.value],r=window.location.origin+n;window.history.pushState(null,document.title,r),this.dispatchEvent(new CustomEvent("betTypeChange",{detail:t.detail.value,bubbles:!0}))}onBetModeSlotChange(){this._hasSlotContent=this._betModeSelectorNodes.length>0}renderDefaultSelector(){const t=this.enablePartial?this._defaultBetModeOptions:this._defaultBetModeOptions.slice(0,2);return this._hasSlotContent?null:l(Me||(Me=te(['<ll-lottery-horizontal-selector\n                  .options="','"\n                  .selected="','"\n                  .clickName=','\n                  @horizontalSelectorChange="','"\n              ></ll-lottery-horizontal-selector>'])),t,t.findIndex(t=>t.value===this.betMode.betType),"betModeNavigate",this.changeBetMode)}renderExtraInfo(){return[lt.onlySystem,lt.onlyPartial].includes(this.betMode.betType)?l(Re||(Re=te([' <div class="header-bet-mode-extra-info">\n                  <ll-typography size="h6" tag="span" class="typography-inline">\n                      <ll-lottery-text keyName="betModeSelector_from" .params=',"\n                          >From {0}</ll-lottery-text\n                      >\n                  </ll-typography>\n              </div>"])),[g(this.minPrice)]):l(Je||(Je=te([""])))}render(){return l(ze||(ze=te(['\n            <slot name="betModeSelector" @slotchange=',"></slot>\n            "," ","\n        "])),this.onBetModeSlotChange,this.renderDefaultSelector(),this.renderExtraInfo())}};Be.styles=Fe,D([t({type:Object,converter:e})],Be.prototype,"betMode",void 0),D([t({type:Boolean})],Be.prototype,"enablePartial",void 0),D([t({type:Number})],Be.prototype,"minPrice",void 0),D([d("betModeSelector",!0)],Be.prototype,"_betModeSelectorNodes",void 0),D([u()],Be.prototype,"_hasSlotContent",void 0),Be=D([i("ll-tippengine-bet-mode-selector")],Be);const He=t=>e=>{var i;class a extends e{constructor(){super(...arguments),this.getWrapperOffsetTop=t=>t?this.getWrapperOffsetTop(null==t?void 0:t.offsetParent)+t.offsetTop:0,this.getAdditionalOffsetTop=()=>Number(E(this,a.STICKY_OFFSET_TOP_CSS_PROP).replace(/[^\d.]/g,""))||a.STICKY_OFFSET_PX,this.updateStickyPanel=()=>{const t=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop),e=this.getWrapperOffsetTop(this.stickyWrapper)-this.getAdditionalOffsetTop();t>=e?(this.stickyElement.style.width=window.getComputedStyle(this.stickyWrapper,null).getPropertyValue("width"),t>=e+this.stickyWrapper.offsetHeight-this.stickyElement.offsetHeight?(this.stickyElement.classList.add("sticky-absolute-bottom"),this.stickyElement.classList.remove("sticky")):(this.stickyElement.classList.add("sticky"),this.stickyElement.classList.remove("sticky-absolute-bottom"))):(this.stickyElement.classList.remove("sticky"),this.stickyElement.classList.remove("sticky-absolute-bottom"),this.stickyElement.style.width="auto")}}connectedCallback(){super.connectedCallback(),window.addEventListener("scroll",this.updateStickyPanel),window.addEventListener("resize",this.updateStickyPanel)}disconnectedCallback(){window.removeEventListener("scroll",this.updateStickyPanel),window.removeEventListener("resize",this.updateStickyPanel),super.disconnectedCallback()}}return a.STICKY_OFFSET_PX=null!==(i=t.offsetTopPx)&&void 0!==i?i:0,a.STICKY_OFFSET_TOP_CSS_PROP="--ll-lotteries-sticky-offset-top",D([o(t.stickyWrapperSelector)],a.prototype,"stickyWrapper",void 0),D([o(t.stickyElementSelector)],a.prototype,"stickyElement",void 0),a};var Ue,We,Qe,Ve,Ye,Ke,Xe,Ze,$e,ti,ei,ii,ai,ni,ri,li,oi,si,ci,pi,di,ui,mi,gi,hi,bi,yi,ki,xi,fi,vi,wi,Ei=n`:host{line-height:initial;display:block;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{width:100%;margin-bottom:calc(var(--ll-base-unit)*2)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.t-extra-games-section{align-self:flex-start}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);flex:1 1 auto;align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}`;let ji=class extends(C(Yt)(He({offsetTopPx:16,stickyElementSelector:"slot[name='purchase']",stickyWrapperSelector:".footer-slot"})(r))){constructor(){super(...arguments),this.lines=[],this.firstDraw="",this.duration=1,this.subscription=!1,this.hunt=!1,this.prevParticipations=[],this.signpostCounter=0,this.onDurationChange=t=>{var e;void 0!==(null===(e=t.detail)||void 0===e?void 0:e.duration)&&Kt.changeDuration(t.detail.duration)},this.onSubscriptionChange=t=>{var e;void 0!==(null===(e=t.detail)||void 0===e?void 0:e.checked)&&Kt.changeSubscription(t.detail.checked)},this.onHuntChange=t=>{var e,i;if(void 0===(null===(e=t.detail)||void 0===e?void 0:e.checked))return;const a=t.detail.checked;a&&(this.prevParticipations=null===(i=this.state)||void 0===i?void 0:i.ticket.participations),Kt.triggerJackpotHunt(a,this.prevParticipations)},this.onDYJChange=t=>{var e;void 0!==(null===(e=t.detail)||void 0===e?void 0:e.checked)&&Kt.changeDYJ(t.detail.checked)},this.onParticipationsChange=t=>{var e;if(void 0===(null===(e=t.detail)||void 0===e?void 0:e.value))return;const{participationEntity:i}=this.ticketEntity;Kt.changeParticipation(i.participationIds(t.detail.value))},this.onExtraGameChange=(t,e)=>{void 0!==e&&Kt.changeExtraGameSelection(t,e)},this.onMiniTicketChange=t=>{Object.keys(t.detail).includes("share")&&Kt.changeMiniTicket(100===t.detail.share?void 0:String(t.detail.share))},this.dispatchActionRandomNumbers=(t,e,i,a,n,r)=>Kt.randomNumbers({amountNumbers:e,amountExtraNumbers:i,numbersRange:a,extraNumbersRange:n,numLines:t,lineType:r,callback:t=>this.lineContainerEl.addLines(t)}),this.scrollToTop=k(t=>{0===(document.scrollingElement||document.documentElement).scrollTop||this.config.expandedMode?t():y(0,500).then(()=>setTimeout(()=>t(),150))},200,!0),this.onQuickPickNew=t=>{this.config&&this.scrollToTop(()=>{const{minNumbers:e,minExtraNumbers:i,numbersRange:a,extraNumbersRange:n,lineType:r}=this.config;this.dispatchActionRandomNumbers(t,e,i,a,n,r)})},this.onClearAll=()=>this.scrollToTop(()=>this.lineContainerEl.clearAll()),this.getFormattedSubscriptionPrice=()=>{if(this.ticketEntity)return this.state?this.ticketEntity.priceEntity.subscriptionAndHuntPrices:{currency:et.getCurrency(),total:0}},this.onBetTypeChange=t=>Kt.changeBetType(t.detail)}getState(){return this.state}stateChanged(t){if(this.state===t)return;const{ticket:e,config:i}=t;this.config=yt(i),this.lines=yt(e.lines),this.ticketEntity=new vt(e,i),this.firstDraw=e.firstDraw,this.duration=e.duration,this.subscription=e.subscription,this.hunt=e.hunt,this.state=t}getDYJTranslationKeys(){const{jackpotEntity:t,isMiniTicketChecked:e,priceEntity:i}=this.ticketEntity,a=i.getLinePrice({stateless:!0,applyLine:!1,applyMiniTicket:e,applyDyj:!0})||0,n=t.getJackpotAmount({stateless:!0,applyDYJ:!1,applyMiniTicket:e}),r=et.getCurrency();return{title:{keyName:"dyj_title"},subtitle:{keyName:"dyj_price_variation",params:["+",et.formatPrice(a,r)]},description:{keyName:"dyj_feature_description",params:[et.formatJackpot(n,r),et.formatJackpot(2*n,r)]}}}renderLogoAndJackpot(){var t;const{lotteryName:e,jackpotCurrency:i,staticJackpot:a}=this.config,{isMiniTicketChecked:n,jackpotEntity:r,dyj:o,configEntity:c}=this.ticketEntity,{isMiniTicketEnabled:p}=c,d=r.getJackpotAmount({applyMiniTicket:!1,stateless:!0,applyDYJ:o})+r.getAccumulatedExtraGamesJackpotAmounts(this.ticketEntity.enabledExtraGames),u=p?r.getJackpotAmount({applyMiniTicket:!0,stateless:!0,applyDYJ:o})+r.getAccumulatedExtraGamesJackpotAmounts(this.ticketEntity.enabledExtraGames):0,m={"featured-miniticket":p},g=a&&(null===(t=null==j?void 0:j.getInstance())||void 0===t?void 0:t.storage[e+"_ld_static_jackpot"])?l(Ue||(Ue=te(['<ll-lottery-text slot="fallback" keyName="','">text</ll-lottery-text>'])),"static_jackpot"):null,h=this.config.expandedMode?l(We||(We=te(["<ll-lottery-jackpot\n                  .lotteryName=","\n                  .amount=","\n                  .miniJackpotAmount=","\n                  ?activateMiniTicket=","\n                  .currency=","\n                  .jackpotLabelVisibility=","\n                  ?inline=",'\n                  class="desktop"\n                  fixSize="s"\n              >\n                  ',"\n              </ll-lottery-jackpot>"])),e,d,u,n,i,"show",!p,g):l(Qe||(Qe=te([""])));return l(Ve||(Ve=te(['\n            <div class="wrapper-jackpot ','">\n                <ll-lottery-jackpot\n                    .lotteryName=',"\n                    .amount=","\n                    .miniJackpotAmount=","\n                    ?activateMiniTicket=","\n                    .currency=",'\n                    class="mobile"\n                    maxSize="s"\n                >\n                    ',"\n                </ll-lottery-jackpot>\n                ","\n                <ll-lottery-logo lottery=","></ll-lottery-logo>\n            </div>\n        "])),s(m),e,d,u,n,i,g,h,e)}renderTopHeader(){const t={expanded:this.config.expandedMode};return l(Ye||(Ye=te(['<div class="wrapper-top-header ','">\n            '," ","\n        </div>"])),s(t),this.renderLogoAndJackpot(),this.renderMiniTicket())}renderDYJ(){var t;const e=this.ticketEntity.firstDrawingFeatures.dyj,i=this.getDYJTranslationKeys(),a=null===(t=this.state)||void 0===t?void 0:t.ticket.dyj,n=this.config.features.dyj&&!e?l(Ke||(Ke=te(['<ll-status-message level="info" textsize="h7" hideicon>\n                      <ll-lottery-text keyName="dyj_disabled_specified_draw_notification">\n                          Please note that Double Jackpot option will not be available for the upcoming draw\n                      </ll-lottery-text>\n                  </ll-status-message>']))):null;return l(Xe||(Xe=te(["\n            <ll-lottery-panel>\n                <ll-lottery-dyj\n                    ?checked=","\n                    ?disabled=",'\n                    @change="','"\n                    .messages=',"\n                >\n                    ","\n                </ll-lottery-dyj>\n            </ll-lottery-panel>\n        "])),a&&e,!e,this.onDYJChange,i,n)}renderJackpotHuntInfoMessage(){return null}isHuntDisabled(){return!1}renderFeaturesSection(){const{subscription:t,hunt:e}=this.ticketEntity.firstDrawingFeatures,{durations:i}=this.config,a=i.values.length?l(Ze||(Ze=te(["<section>\n                  <ll-sign-post order=",'>\n                      <ll-typography tag="span" size="h5">\n                          <ll-lottery-text keyName="signpost_how_long"\n                              >How long would you like to play for?</ll-lottery-text\n                          >\n                      </ll-typography>\n                  </ll-sign-post>\n                  <ll-lottery-panel class="subscription-panel">\n                      <ll-lottery-subscription\n                          .duration="','"\n                          durationUnit="','"\n                          .subscription="','"\n                          .hunt="','"\n                          ?disableHunt="','"\n                          .durations="','"\n                          .prices="','"\n                          ?hasSubscription="','"\n                          ?hasHunt="','"\n                          ?preventMultiDrawSubscription="','"\n                          @durationChange="','"\n                          @subscriptionChange="','"\n                          @huntChange="','"\n                          trackNamePrefix="','_"\n                      >\n                          <ll-conditional-content\n                              keyName="subscription_notification_section"\n                              class="subscription-notification"\n                              slot="info"\n                          >\n                              <ll-lottery-text keyName="subscription_notification_section"></ll-lottery-text>\n                          </ll-conditional-content>\n                          ',"\n                      </ll-lottery-subscription>\n                  </ll-lottery-panel>\n              </section>"])),++this.signpostCounter,this.duration,i.unit,this.subscription,this.hunt,this.isHuntDisabled(),i.values,this.getFormattedSubscriptionPrice(),t,e,this.config.preventMultiDrawSubscription,this.onDurationChange,this.onSubscriptionChange,this.onHuntChange,kt,this.renderJackpotHuntInfoMessage()):l($e||($e=te([""]))),n=this.config.features.dyj?l(ti||(ti=te(["\n                  <section>\n                      <ll-sign-post order=",'>\n                          <ll-typography tag="span" size="h5">\n                              <ll-lottery-text keyName="signpost_features"\n                                  >Want to boost your big wins with one of our exclusive features?</ll-lottery-text\n                              >\n                          </ll-typography>\n                      </ll-sign-post>\n                      ',"\n                  </section>\n              "])),++this.signpostCounter,this.renderDYJ()):l(ei||(ei=te([""])));return l(ii||(ii=te([" "," "," "])),a,n)}renderQuickPickButtons(){const{numberLines:t}=this.config,e=Math.floor(t/2),i=_e.incompleteLines(this.state);return l(ai||(ai=te(['\n            <div class="quickpicks_container">\n                <div class="quickpicks_label">\n                    <ll-icon name="dice-2" iconsize="regular"></ll-icon>\n                    <ll-typography size="h6">\n                        <ll-lottery-text keyName="quickpicks_label">QuickPick</ll-lottery-text>\n                    </ll-typography>\n                </div>\n                <div class="buttons-container">\n                    <ll-button\n                        class="quickPickBtn-1"\n                        @click=','\n                        type="secondary"\n                        variant="custom"\n                        ?disabled=','\n                        clickName="addRandomLine"\n                        clickValue="1"\n                    >\n                        <ll-lottery-text keyName="button_quickpick_1" .params=','>1</ll-lottery-text>\n                    </ll-button>\n\n                    <ll-button\n                        class="quickPickBtn-','"\n                        @click=','\n                        type="secondary"\n                        variant="custom"\n                        ?disabled=','\n                        clickName="addRandomLines"\n                        clickValue=','\n                    >\n                        <ll-lottery-text keyName="button_quickpick_N" .params=','\n                            >+{0}</ll-lottery-text\n                        >\n                    </ll-button>\n                    <ll-button\n                        class="quickPickBtn-all"\n                        @click=','\n                        type="secondary"\n                        variant="custom"\n                        ?disabled=','\n                        clickName="addRandomLinesAll"\n                        clickValue=','\n                    >\n                        <ll-lottery-text keyName="button_quickpick_all" .params=','\n                            >All</ll-lottery-text\n                        >\n                    </ll-button>\n                </div>\n                <div class="button-clear">\n                    <ll-link @click=',' clickName="clearAllLines">\n                        <ll-lottery-text keyName="button_quickpick_clearAll">Clear All</ll-lottery-text>\n                    </ll-link>\n                </div>\n            </div>\n        '])),()=>this.onQuickPickNew(1),_e.incompleteLines(this.state)<1,[1],e,()=>this.onQuickPickNew(e),_e.incompleteLines(this.state)<e,e,[e],()=>this.onQuickPickNew(i),0===i,t-this.lines.length,[e],()=>this.onClearAll())}deprecatedFirstDrawPicker(){if(!window.location.search.slice(1).split("&").reduce((t,e)=>t||"deprecatedFirstDrawPicker"===e.split("=")[0],!1))return l(ni||(ni=te([""])));const{drawings:t}=this.config;return l(ri||(ri=te([' <div style="width: 200px; position: absolute; top: 28px; right: 28px; z-index: 10;">\n            <ll-dropdown\n                class="ll-dropdown-3"\n                value="','"\n                .values=',"\n                @change=","\n            >\n            </ll-dropdown>\n        </div>"])),this.firstDraw,t.map(t=>t.id),t=>{Kt.deprecatedChangeFirstDraw(t.detail.value)})}renderParticipations(){const{participationEntity:{participationDates:t,participationPanelConfig:e},completeLines:i}=this.ticketEntity,a=e.drawingDate.length>1?l(li||(li=te(["<ll-sign-post order=",'>\n                      <ll-typography tag="span" size="h5">\n                          <ll-lottery-text keyName="signpost_participation">\n                              When would you like to participate?\n                          </ll-lottery-text>\n                      </ll-typography>\n                  </ll-sign-post>'])),++this.signpostCounter):l(oi||(oi=te([""])));return l(si||(si=te(["<section>\n            ",'\n            <ll-lottery-participation\n                durationUnit="','"\n                .config="','"\n                numLines="','"\n                @change="','"\n                ?hunt="','"\n                trackNamePrefix="','_"\n                .value=',"\n            >\n            </ll-lottery-participation>\n        </section>"])),a,this.config.durations.unit,e,i.length,this.onParticipationsChange,this.hunt,kt,t)}renderDrawDate(){const{drawings:t}=this.config,{closingDate:e=0}=t[0]||{};return e?l(pi||(pi=te(["<ll-draw-date closingDate=","></ll-draw-date>"])),e):l(ci||(ci=te([""])))}renderSubHeaderContainer(){return l(di||(di=te(["\n            <ll-tippengine-sub-header-container>\n                <slot></slot>\n            </ll-tippengine-sub-header-container>\n        "])))}renderExtraGame(t,e){let{name:i,disabled:a}=t;var n;void 0===e&&(e=null);const{stake:r,jackpotEntity:o,priceEntity:s,dyj:c}=this.ticketEntity,p=r?o.getMiniTicketExtraGameJackpotAmount(i):o.getExtraGameJackpotAmount(i),d=et.getCurrency(),{value:u,dyj:m}=s.getExtraGamePriceObject(i),g=c?at(m)+u:u;return l(ui||(ui=te(["\n            <ll-lottery-extra-game\n                name=","\n                .checked=","\n                .disabled=",'\n                @change="','"\n                .price=',"\n                .jackpot=",'\n            >\n                <ll-lottery-extra-game-logo slot="title" name=',"></ll-lottery-extra-game-logo>\n                ","\n            </ll-lottery-extra-game>\n        "])),i,null===(n=this.ticketEntity.getExtraGame(i))||void 0===n?void 0:n.enabled,a,t=>this.onExtraGameChange(i,t.detail.checked),et.formatPrice(g,d),0===p?0:et.formatJackpot(p,d),i,e)}renderExtraGamesSection(){const{configEntity:{extraGames:t=[]}}=this.ticketEntity;return l(mi||(mi=te(['\n            <section class="t-extra-games-section">\n                <ll-lottery-panel>\n                    <div class="extra-games-panel">\n                        <div class="extra-games-list">\n                            ',"\n                        </div>\n                    </div>\n                </ll-lottery-panel>\n            </section>\n        "])),t.map(t=>this.renderExtraGame(t)))}renderExtraGames(){const{configEntity:{extraGames:t}}=this.ticketEntity;return(null==t?void 0:t.length)>0?l(gi||(gi=te(["\n                  <ll-sign-post order=",' class="t-extra-games-signpost extra-games-signpost">\n                      <ll-typography tag="span" size="h5">\n                          <ll-lottery-text keyName="signpost_extraGames">\n                              Would you like to play our extra game?\n                          </ll-lottery-text>\n                      </ll-typography>\n                  </ll-sign-post>\n                  ',"\n              "])),++this.signpostCounter,this.renderExtraGamesSection()):null}renderMiniTicket(){const{price:{line:t},jackpotCurrency:e}=this.config,{configEntity:{miniTicketPriceStake:i,isMiniTicketEnabled:a},isMiniTicketChecked:n}=this.ticketEntity;return a&&i?l(hi||(hi=te(['<div class="miniTicket" mediaQuery=','>\n            <ll-lottery-mini-ticket\n                priceLine="','"\n                newPriceLine="','"\n                share="','"\n                currency="','"\n                ?checked="','"\n                @change="','"\n            >\n            </ll-lottery-mini-ticket>\n        </div>'])),this.config.expandedMode,t,i.line,i.id,e,n,this.onMiniTicketChange):null}renderHeader(){return l(bi||(bi=te(["\n            "," ","\n            <ll-tippengine-line-container .state=","></ll-tippengine-line-container>\n            ","\n        "])),this.renderSubHeaderContainer(),this.renderMiniTicket(),this.state,this.renderQuickPicks())}renderFooter(){return l(yi||(yi=te([" "," "," "])),this.renderParticipations(),this.renderFeaturesSection())}renderBetTypeSelector(){var t;const{betMode:e}=this.config;let i=1;if(["onlyPartial","onlySystem"].includes(e.betType)){const a={onlyPartial:"PARTIAL",onlySystem:"FULL"};i=(null===(t=this.config.systems)||void 0===t?void 0:t.length)?this.config.systems.filter(t=>t.type==a[e.betType]).reduce((t,e)=>t.numLines>e.numLines?e:t).numLines:1}const a=this.ticketEntity.configEntity.price.line*i;return e.betType!==lt.mixed?l(ki||(ki=te(['<ll-tippengine-bet-mode-selector\n                  .betMode="','"\n                  ?enablePartial=','\n                  .minPrice="','"\n                  @betTypeChange="','"\n              >\n                  <slot name="betModeSelector" slot="betModeSelector"></slot>\n              </ll-tippengine-bet-mode-selector>'])),e,this.ticketEntity.configEntity.containsPartialSystemBets(),a,this.onBetTypeChange):l(xi||(xi=te([""])))}renderQuickPicks(){return[lt.onlyNormal,lt.mixed].includes(this.config.betMode.betType)?l(fi||(fi=te([' <div class="wide-quickpicks" ?expanded=',">\n                      ",'\n                  </div>\n                  <div class="narrow-quickpicks" ?expanded=',">\n                      ","\n                  </div>"])),this.config.expandedMode,this.renderQuickPickButtons(),this.config.expandedMode,this.renderQuickPickButtons()):l(vi||(vi=te([""])))}render(){this.signpostCounter=0;const{lotteryName:t}=this.config;return l(wi||(wi=te(['\n            <ll-lottery-ctx name="','">\n                ','\n                <ll-header-container bg="gradient" shape="curved">\n                    <slot name="value-proposition"></slot>\n                    <div class="main-container">\n                        '," "," ","\n                        "," ",'\n                    </div>\n                </ll-header-container>\n                <div class="footer-container">\n                    <div class="footer-section">','</div>\n                    <div class="footer-slot">\n                        <slot name="purchase"></slot>\n                    </div>\n                </div>\n            </ll-lottery-ctx>\n        '])),t,this.deprecatedFirstDrawPicker(),this.renderDrawDate(),this.renderTopHeader(),this.renderBetTypeSelector(),this.renderHeader(),this.renderExtraGames(),this.renderFooter())}};ji.styles=Ei,D([t({type:Object})],ji.prototype,"config",void 0),D([t({type:Array})],ji.prototype,"lines",void 0),D([t({type:String})],ji.prototype,"firstDraw",void 0),D([t({type:Number})],ji.prototype,"duration",void 0),D([t({type:Boolean})],ji.prototype,"subscription",void 0),D([t({type:Boolean})],ji.prototype,"hunt",void 0),D([t({type:Array})],ji.prototype,"prevParticipations",void 0),D([o("ll-tippengine-line-container")],ji.prototype,"lineContainerEl",void 0),ji=D([i("ll-base-tippengine")],ji);const Ni=Object.assign({},Kt,{ticketNumberChange(t){Yt().dispatch({type:Ht,payload:{ticketNumber:t}})},ticketNumberRandomize(){Yt().dispatch({type:Ut})}});var Ti,Pi,Si,_i,Li,Ci=n`:host{display:block;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{margin-bottom:calc(var(--ll-base-unit)*2);width:100%}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}:host{line-height:initial}.title{margin-bottom:var(--ll-base-unit)}.t-extra-games-section{max-width:100%;align-self:center}.extra-games-ticketnumber{flex:1 1 auto;width:100%;display:flex;flex-direction:column;align-items:flex-start}@media (min-width:768px){.extra-games-ticketnumber{max-width:calc(var(--ll-base-unit)*39)}}.extra-games-list{flex:1 1 auto;width:100%}.subtitle,ll-lottery-ticket-number{margin-bottom:calc(var(--ll-base-unit)*2)}ll-lottery-ticket-number{align-self:center;width:100%}@media (min-width:768px){ll-lottery-ticket-number{max-width:305px}}@media (min-width:1024px){ll-lottery-ticket-number{align-self:stretch;width:100%;max-width:326px}}ll-lottery-extra-game{background:var(--ll-color-ui-05);padding:calc(var(--ll-base-unit)*2);border-radius:var(--ll-base-unit)}ll-lottery-extra-game[name=super6]{order:1}ll-lottery-extra-game[name=spiel77]{order:2}ll-lottery-extra-game[name=glucksSpirale]{order:3}@media (min-width:768px){ll-lottery-extra-game[name=spiel77],ll-lottery-extra-game[name=super6]{max-width:calc((100% - calc(var(--ll-base-unit)*2))/2);min-width:calc((100% - calc(var(--ll-base-unit)*2))/2)}ll-lottery-extra-game[name=glucksSpirale]{max-width:100%;min-width:100%}}ll-status-message[level=info]{flex:0 0 auto}`;let Di=class extends ji{constructor(){super(...arguments),this.ticketNumber=[],this.changeNumbers=t=>{var e;void 0!==(null===(e=t.detail)||void 0===e?void 0:e.ticketNumber)&&Ni.ticketNumberChange(t.detail.ticketNumber)},this.randomizeNumber=()=>{Ni.ticketNumberRandomize()}}stateChanged(t){super.stateChanged(t);const e=t.ticket;this.ticketNumber=e.lotteryParticularities?e.lotteryParticularities.ticketNumber:[]}isHuntDisabled(){var t;return Boolean(null===(t=this.ticketEntity.getExtraGame("glucksSpirale"))||void 0===t?void 0:t.enabled)}renderExtraGamesInfo(){var t,e,i;return l(Ti||(Ti=te(['<ll-lottery-german-eg-ticket-number-info\n            ?super6="','"\n            ?spiel77="','"\n            ?glucksSpirale="','"\n        >\n        </ll-lottery-german-eg-ticket-number-info>'])),Boolean(null===(t=this.ticketEntity.getExtraGame("super6"))||void 0===t?void 0:t.enabled),Boolean(null===(e=this.ticketEntity.getExtraGame("spiel77"))||void 0===e?void 0:e.enabled),Boolean(null===(i=this.ticketEntity.getExtraGame("glucksSpirale"))||void 0===i?void 0:i.enabled))}renderJackpotHuntInfoMessage(){return this.renderMessageJPHuntNotCompatibleWithGlucksSpirale()}renderMessageGlucksSpiraleNotCompatibleWithJPHunt(){return l(Pi||(Pi=te(['<ll-status-message level="info" slot="content" textSize="h7" hideIcon>\n            <ll-lottery-text keyname="extraGames_glucksSpirale_not_compatible_with_jackpotHunt"\n                >GlücksSpirale is only possible with a ticket that does not participate in the Jackpot\n                Hunt.</ll-lottery-text\n            >\n        </ll-status-message>'])))}renderMessageJPHuntNotCompatibleWithGlucksSpirale(){var t;return(null===(t=this.ticketEntity.getExtraGame("glucksSpirale"))||void 0===t?void 0:t.enabled)?l(Si||(Si=te(['<ll-status-message level="info" slot="info-hunt" textSize="h7" hideIcon>\n            <ll-lottery-text keyname="extraGames_jackpotHunt_not_compatible_with_glucksSpirale">\n                Jackpot Hunt is only possible with a ticket that does not participate in the GlücksSpirale.\n            </ll-lottery-text>\n        </ll-status-message>']))):null}renderExtraGamesSection(){const{configEntity:{extraGames:t},ticket:{hunt:e}}=this.ticketEntity;return l(_i||(_i=te(['\n            <section class="t-extra-games-section">\n                <ll-lottery-panel class="extra-games-panel">\n                    <div class="extra-games-ticketnumber">\n                        <ll-typography class="title" size="h6">\n                            <ll-lottery-text keyname="extraGames_panel_title">Super number</ll-lottery-text>\n                        </ll-typography>\n                        <ll-typography class="subtitle" size="sp">\n                            <ll-lottery-text keyname="extraGames_panel_subtitle"\n                                >The last digit of the ticket number is your Super Number.</ll-lottery-text\n                            >\n                        </ll-typography>\n                        <ll-lottery-ticket-number\n                            .ticketNumber=',"\n                            @randomizeNumber=","\n                            @changeTicketNumber=",'\n                            clickName="superNumber"\n                        >\n                            ','\n                        </ll-lottery-ticket-number>\n                    </div>\n                    <div class="extra-games-list">\n                        ',"\n                    </div>\n                </ll-lottery-panel>\n            </section>\n        "])),this.ticketNumber,this.randomizeNumber,this.changeNumbers,this.renderExtraGamesInfo(),t.map(t=>{const{disabled:i,name:a}=t;return this.renderExtraGame(Object.assign({},t,{disabled:i||"glucksSpirale"===a&&e}),l(Li||(Li=te(["",""])),e&&"glucksSpirale"===a?this.renderMessageGlucksSpiraleNotCompatibleWithJPHunt():null))}))}};Di.styles=Ci,D([t({type:Array})],Di.prototype,"ticketNumber",void 0),Di=D([i("ll-german-tippengine")],Di);var Ai,Oi,Gi,qi=n`:host{display:block;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{width:100%;margin-bottom:calc(var(--ll-base-unit)*2)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.t-extra-games-section{align-self:flex-start}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);flex:1 1 auto;align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}:host{line-height:initial}.extra-jokers-panel ll-lottery-extra-game{margin-top:calc(var(--ll-base-unit)*2)}`;let Ii=Gi=class extends ji{constructor(){super(...arguments),this.changeJokerNumberHandler=(t,e)=>{Kt.extraGameNumbersChange(t.detail.ticketNumber,e)},this.randomizeJokerNumber=t=>{Kt.extraGameNumbersChange(Et.randomize(6),t)}}ticketNumberExtraGame(t){var e;const i=this.ticketEntity.getExtraGame(t.name);if(i){const a=e=>this.changeJokerNumberHandler(e,t.name),n=()=>this.randomizeJokerNumber(t.name),r=l(Ai||(Ai=te(['<ll-lottery-ticket-number\n                slot="content"\n                .ticketNumber=',"\n                ?disabled=",'\n                @changeTicketNumber="','"\n                @randomizeNumber="','"\n                clickName="extraGame','"\n            ></ll-lottery-ticket-number>'])),Gi.buildTicketNumber(null!==(e=i.numbers)&&void 0!==e?e:[]),t.disabled||!i.enabled,a,n,t.name.charAt(0).toUpperCase()+t.name.slice(1));return this.renderExtraGame(t,r)}return null}renderExtraGamesSection(){const{configEntity:{extraGames:t}}=this.ticketEntity,e=t.filter(t=>"austriaLottoPlus"!==t.name).map(t=>this.ticketNumberExtraGame(t));return l(Oi||(Oi=te(['\n            <section class="t-extra-games-section">\n                <ll-lottery-panel class="extra-games-panel">\n                    ','\n                </ll-lottery-panel>\n                <ll-lottery-panel class="extra-jokers-panel">\n                    <ll-typography size="sp" tag="p">\n                        <ll-lottery-text keyName="austria_jokers_panel"></ll-lottery-text>\n                    </ll-typography>\n                    ',"\n                </ll-lottery-panel>\n            </section>\n        "])),this.renderExtraGame(this.ticketEntity.configEntity.getExtraGame("austriaLottoPlus")),e)}};Ii.styles=qi,Ii.buildTicketNumber=jt(6),Ii=Gi=D([i("ll-austria-tippengine")],Ii);var Mi,Ri=n`:host{line-height:initial;display:block;max-width:100vw;--tooltip-parent:ll-base-tippengine}.extra-games-signpost,.quickpicks_label,.wrapper-jackpot{--color:var(--ll-lottery-font-primary)}.wrapper-top-header,.wrapper-top-header .wrapper-jackpot{align-items:center;display:flex;grid-gap:calc(var(--ll-base-unit)*.5)}.wrapper-top-header{width:100%}.wrapper-top-header .wrapper-jackpot{--ll-jackpot-product-name-color:var(--ll-lottery-font-primary);flex:1 1 auto}.wrapper-top-header .wrapper-jackpot ll-lottery-logo{flex:0 0 auto;top:calc(var(--ll-base-unit)*-2.5);position:relative;max-height:calc(var(--ll-base-unit)*12);max-width:calc(var(--ll-base-unit)*12)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*10)}.wrapper-top-header .wrapper-jackpot ll-lottery-jackpot.desktop{display:none}.wrapper-top-header .miniTicket{margin-bottom:calc(var(--ll-base-unit)*3);display:none}.wrapper-top-header.expanded{align-items:center}.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{width:100%;max-width:476px}@media (min-width:1024px){.wrapper-top-header.expanded .miniTicket[mediaQuery=true]{display:block}}@media (min-width:768px){.wrapper-top-header.expanded{margin-top:calc(var(--ll-base-unit)*-2);grid-gap:calc(var(--ll-base-unit)*3)}.wrapper-top-header.expanded .wrapper-jackpot{align-items:center;flex:1 0 auto;margin-top:calc(var(--ll-base-unit)*1.5)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-logo{height:calc(var(--ll-base-unit)*8.75);width:calc(var(--ll-base-unit)*8.75)}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.mobile{display:none}.wrapper-top-header.expanded .wrapper-jackpot ll-lottery-jackpot.desktop{display:inherit}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-jackpot.mobile{max-height:calc(var(--ll-base-unit)*17)}.wrapper-top-header.expanded .wrapper-jackpot.featured-miniticket ll-lottery-logo{top:calc(var(--ll-base-unit)*-1)}}@media (min-width:1024px){.wrapper-top-header.expanded{justify-content:space-between}}.main-container,slot[name=value-proposition]{display:flex;flex-direction:column;align-items:center;position:relative;width:100%}.main-container{max-width:calc(var(--ll-base-unit)*120);padding:0 calc(var(--ll-base-unit)*2.5);box-sizing:border-box;margin:calc(var(--ll-base-unit)*2.5) auto calc(var(--ll-base-unit)*3)}.main-container>.miniTicket,.t-extra-games-section,ll-tippengine-line-container{width:100%;margin-bottom:calc(var(--ll-base-unit)*2)}.main-container>.miniTicket[mediaQuery=true]{margin-bottom:calc(var(--ll-base-unit)*3);display:block}@media (min-width:1024px){.main-container>.miniTicket[mediaQuery=true]{display:none}}.t-extra-games-section{align-self:flex-start}@media (min-width:1024px){.t-extra-games-section{max-width:574px}}slot[name=value-proposition]{line-height:initial;justify-content:center;background:rgba(255,255,255,.1490196078)}.wide-quickpicks{width:100%;display:none;margin-bottom:calc(var(--ll-base-unit)*3)}@media (min-width:768px){.wide-quickpicks[expanded]{display:block}}.wide-quickpicks .quickpicks_container{display:flex;align-items:center}.wide-quickpicks .button-clear{flex:1;justify-content:end}.wide-quickpicks .quickpicks_label{display:flex;margin-right:calc(var(--ll-base-unit)*2)}.narrow-quickpicks{width:100%;max-width:310px;margin-bottom:calc(var(--ll-base-unit)*2)}@media (min-width:768px){.narrow-quickpicks[expanded]{display:none}}.narrow-quickpicks .quickpicks_label:after,.narrow-quickpicks .quickpicks_label:before{content:" ";flex:1 1;border-bottom:1px solid var(--ll-lottery-font-primary);margin:auto;opacity:.3}.narrow-quickpicks .quickpicks_label:before,.quickpicks_label ll-icon{margin-right:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_label:after{margin-left:var(--ll-base-unit)}.narrow-quickpicks .quickpicks_container{display:flex;flex-direction:column}.narrow-quickpicks .buttons-container{margin-top:calc(var(--ll-base-unit)*2);display:flex;align-items:center;--ll-button-color-scheme:var(--ll-lottery-font-primary, --ll-color-ui-01)}.narrow-quickpicks .buttons-container ll-button{flex:1 1 0;min-width:calc(var(--ll-base-unit)*8.5);margin-left:var(--ll-base-unit)}.narrow-quickpicks .buttons-container ll-button:first-of-type{margin-left:0;flex:1}.narrow-quickpicks .button-clear{margin-top:calc(var(--ll-base-unit)*2);justify-content:center}.button-clear,.quickpicks_label{display:flex}.button-clear ll-link{--ll-link-color:var(--ll-lottery-font-primary, --ll-color-ui-00);--ll-link-hover-color:var(--ll-lottery-font-primary, --ll-color-ui-00)}.button-clear ll-link:hover{opacity:.7}section{margin-bottom:calc(var(--ll-base-unit)*4);width:100%}section:last-of-type{margin-bottom:0}.footer-container{padding:calc(var(--ll-base-unit)*4) calc(var(--ll-base-unit)*2) 0;display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto calc(var(--ll-base-unit)*4);grid-gap:calc(var(--ll-base-unit)*2)}.footer-slot{position:relative;flex:1 1 auto;padding:calc(var(--ll-base-unit)*2) 0;box-sizing:border-box}@media (min-width:1024px){.footer-container{flex-direction:row;grid-gap:calc(var(--ll-base-unit)*4);padding:calc(var(--ll-base-unit)*2.5) 0;max-width:calc(var(--ll-base-unit)*120);margin-top:calc(var(--ll-base-unit)*2)}.footer-container slot[name=purchase]{display:block;box-sizing:border-box}.footer-container slot[name=purchase].sticky{position:fixed;top:var(--ll-lotteries-sticky-offset-top, calc(var(--ll-base-unit) * 2))}.footer-container slot[name=purchase].sticky-absolute-bottom{top:unset;bottom:0;position:absolute}.footer-section{flex:1 1 auto;max-width:574px;min-width:574px}.footer-slot{flex:0 0 auto;min-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));max-width:calc(100% - 574px - calc(var(--ll-base-unit)*4));padding:0}}ll-lottery-panel:not(:last-of-type){margin:0 0 calc(var(--ll-base-unit)*2)}ll-sign-post{align-self:flex-start}ll-draw-date{min-height:calc(var(--ll-base-unit)*4);margin-bottom:calc(var(--ll-base-unit)*-1);width:100%;box-sizing:border-box}ll-header-container{display:flex;flex-direction:column;align-items:center}ll-lottery-panel.subscription-panel{padding:0}ll-tippengine-sub-header-container{z-index:1;width:100%;max-width:calc(var(--ll-base-unit)*120)}.extra-games-list,.extra-games-panel{display:flex;flex-direction:column;gap:0 calc(var(--ll-base-unit)*4)}.extra-games-panel ll-lottery-extra-game{box-sizing:border-box;flex:1 1 auto}.extra-games-panel ll-status-message{order:10}.extra-games-list{gap:calc(var(--ll-base-unit)*2);flex:1 1 auto;align-content:stretch}@media (min-width:768px){.extra-games-list,.extra-games-panel{flex-direction:row}.extra-games-list{flex-wrap:wrap}}.extra-games-panel ll-lottery-extra-game:first-of-type{margin-top:calc(var(--ll-base-unit)*2)}`;let Ji=class extends ji{constructor(){super(...arguments),this.checkExtraGamesDependency=t=>{t.detail.checked||setTimeout(()=>{this.onExtraGameChange("southAfricanLottoPlus2",!1)})}}get saLottoPlus2ExtraGame(){var t;const e=this.ticketEntity.configEntity.getExtraGame("southAfricanLottoPlus2");return(null===(t=this.ticketEntity.getExtraGame("southAfricanLottoPlus1"))||void 0===t?void 0:t.enabled)?e:Object.assign({},e,{disabled:!0})}renderExtraGamesSection(){return l(Mi||(Mi=te(['\n            <section class="t-extra-games-section">\n                <ll-lottery-panel class="extra-games-panel">\n                    <div @change="','">\n                        ',"\n                    </div>\n                    ","\n                </ll-lottery-panel>\n            </section>\n        "])),this.checkExtraGamesDependency,this.renderExtraGame(this.ticketEntity.configEntity.getExtraGame("southAfricanLottoPlus1")),this.renderExtraGame(this.saLottoPlus2ExtraGame))}};Ji.styles=Ri,Ji=D([i("ll-sa-tippengine")],Ji);let zi=class extends Di{};var Fi;zi=D([i("ll-eurojackpot-tippengine")],zi);let Bi=class extends ji{renderQuickPickButtons(){return l(Fi||(Fi=te([""])))}};Bi=D([i("ll-tris-tippengine")],Bi);
