@everymatrix/lottery-oddsbom-ticket-bet 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryOddsbomTicketBet = require('./lottery-oddsbom-ticket-bet-190283be.js');
5
+ const lotteryOddsbomTicketBet = require('./lottery-oddsbom-ticket-bet-2b05b4ac.js');
6
6
  require('./index-b8e9c8e4.js');
7
7
 
8
8
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b8e9c8e4.js');
6
- const lotteryOddsbomTicketBet = require('./lottery-oddsbom-ticket-bet-190283be.js');
6
+ const lotteryOddsbomTicketBet = require('./lottery-oddsbom-ticket-bet-2b05b4ac.js');
7
7
 
8
8
  /**
9
9
  * @name differenceInMilliseconds
@@ -6760,7 +6760,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
6760
6760
 
6761
6761
  const shadowRoot = stylingContainer.getRootNode();
6762
6762
  const cacheStyleObject = window[StyleCacheKey];
6763
- let cachedStyle = cacheStyleObject[domain]?.sheet;
6763
+ let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
6764
6764
 
6765
6765
  if (!cachedStyle) {
6766
6766
  cachedStyle = new CSSStyleSheet();
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { L as LotteryOddsbomTicketBet } from './lottery-oddsbom-ticket-bet-65daa420.js';
1
+ export { L as LotteryOddsbomTicketBet } from './lottery-oddsbom-ticket-bet-5e2742c1.js';
2
2
  import './index-9dee9d86.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9dee9d86.js';
2
- import { r as requiredArgs, t as toDate, p as parseISO, i as isToday, f as format, s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, c as showNotification, d as translate$2, e as stringToBase64, g as resolveTranslationUrl$2, h as formatNumber, j as getTranslations$2, M as MAX_DISPLAY_OPTION_NUM } from './lottery-oddsbom-ticket-bet-65daa420.js';
3
- export { L as lottery_oddsbom_ticket_bet } from './lottery-oddsbom-ticket-bet-65daa420.js';
2
+ import { r as requiredArgs, t as toDate, p as parseISO, i as isToday, f as format, s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, c as showNotification, d as translate$2, e as stringToBase64, g as resolveTranslationUrl$2, h as formatNumber, j as getTranslations$2, M as MAX_DISPLAY_OPTION_NUM } from './lottery-oddsbom-ticket-bet-5e2742c1.js';
3
+ export { L as lottery_oddsbom_ticket_bet } from './lottery-oddsbom-ticket-bet-5e2742c1.js';
4
4
 
5
5
  /**
6
6
  * @name differenceInMilliseconds
@@ -6758,7 +6758,7 @@ function getAdoptStyleSubscription(stylingContainer, domain) {
6758
6758
 
6759
6759
  const shadowRoot = stylingContainer.getRootNode();
6760
6760
  const cacheStyleObject = window[StyleCacheKey];
6761
- let cachedStyle = cacheStyleObject[domain]?.sheet;
6761
+ let cachedStyle = cacheStyleObject[domain] && cacheStyleObject[domain].sheet;
6762
6762
 
6763
6763
  if (!cachedStyle) {
6764
6764
  cachedStyle = new CSSStyleSheet();
@@ -1 +1 @@
1
- export{L as LotteryOddsbomTicketBet}from"./lottery-oddsbom-ticket-bet-65daa420.js";import"./index-9dee9d86.js";
1
+ export{L as LotteryOddsbomTicketBet}from"./lottery-oddsbom-ticket-bet-5e2742c1.js";import"./index-9dee9d86.js";
@@ -1 +1 @@
1
- import{r as t,c as e,h as n,g as i}from"./index-9dee9d86.js";import{r as o,t as s,p as a,i as d,f as r,s as l,a as c,b as h,c as b,d as m,e as p,g,h as f,j as u,M as y}from"./lottery-oddsbom-ticket-bet-65daa420.js";export{L as lottery_oddsbom_ticket_bet}from"./lottery-oddsbom-ticket-bet-65daa420.js";var v={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},x="trunc";const w=["ro","en","fr","ar","hr"],S={en:{stop:"Stop",at:"at",turnover:"Turnover: ",startIn:"Sales Start in:"},ro:{stop:"Oprește",at:"la"},fr:{stop:"Arrêtez",at:"à"},ar:{stop:"توقف",at:"في"},hr:{stop:"Stop",at:"u"}},k=(t,e)=>{const n=e;return S[void 0!==n&&w.includes(n)?n:"en"][t]},C=({date:t,type:e="date",format:n})=>{try{const i=a(t);if(isNaN(i.getTime()))throw new Error(`Invalid date: ${t}`);if(n)return r(i,n);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),r(i,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function B(t){if(t)return d(new Date(t))?C({date:t,format:"HH:mm"}):C({date:t,format:"dd/MM/yyyy HH:mm"})}function _(t,e){if(!t)return;let n=function(t,e,n){o(2,arguments);var i,a=function(t,e){return o(2,arguments),s(t).getTime()-s(e).getTime()}(t,e)/1e3;return((i=null==n?void 0:n.roundingMethod)?v[i]:v[x])(a)}("string"==typeof t?a(t):t,e&&new Date);if(n<0)return"0D 00H 00M 00S";const i=Math.floor(n/86400);n%=86400;const d=Math.floor(n/3600);n%=3600;const r=Math.floor(n/60),l=n%60;return`${i}D ${d.toString().padStart(2,"0")}H ${r.toString().padStart(2,"0")}M ${l.toString().padStart(2,"0")}S`}const O=class{constructor(n){t(this,n),this.lotteryBannerTimerStop=e(this,"lotteryBannerTimerStop",7),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.logoUrl=void 0,this.stopTime="",this.startTime="",this.bannerTitle=void 0,this.turnover=void 0,this.layout="logo,title,info",this.formattedTime=void 0}handleClientStylingChange(t,e){t!==e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!==e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleTimeChange(){this.startTimer()}async componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const n=await fetch(t);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();e=i,Object.keys(e).forEach((t=>{for(let n in e[t])S[t][n]=e[t][n]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl),this.startTimer()}startTimer(){this.timer&&clearInterval(this.timer),this.updateTime(),this.timer=setInterval((()=>{this.updateTime()}),1e3)}updateTime(){var t;this.formattedTime=function(t,e){const n=new Date;return t&&function(t,e){o(2,arguments);var n=s(t),i=s(e);return n.getTime()<i.getTime()}(n,a(t))?{start:_(t,n)}:t&&e&&function(t,e){o(2,arguments);var n=s(t).getTime(),i=s(e.start).getTime(),a=s(e.end).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return n>=i&&n<=a}(n,{start:a(t),end:a(e)})?{end:B(e)}:{}}(this.startTime,this.stopTime),(null===(t=this.formattedTime)||void 0===t?void 0:t.end)&&(this.timer&&clearInterval(this.timer),this.lotteryBannerTimerStop.emit())}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.timer&&clearInterval(this.timer)}renderElement(t,e=""){var i,o,s;switch(t){case"logo":return n("div",{class:`lottery-banner__logo-wrapper ${e}`},this.logoUrl&&n("img",{alt:"logo",src:this.logoUrl,class:"lottery-banner__logo"}));case"title":return this.bannerTitle&&n("div",{class:`lottery-banner__title ${e}`},this.bannerTitle);case"info":return n("div",{class:`lottery-banner__info ${e}`},(null===(i=this.formattedTime)||void 0===i?void 0:i.start)&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},n("span",{class:"lottery-banner__info-item-label__strong"},k("startIn",this.language))," "),n("span",{class:"lottery-banner__info-item-value lottery-banner__info-item-value__strong"},this.formattedTime.start)),(null===(o=this.formattedTime)||void 0===o?void 0:o.end)&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},n("span",{class:"lottery-banner__info-item-label__strong"},k("stop",this.language))," ",k("at",this.language)),n("span",{class:"lottery-banner__info-item-value"},this.formattedTime.end)),(null===(s=this.formattedTime)||void 0===s?void 0:s.end)&&null!=this.turnover&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},k("turnover",this.language)),n("span",{class:"lottery-banner__info-item-value"},this.turnover)));default:return null}}render(){const t=this.layout.split(",").map((t=>t.trim()));return n("section",{key:"de09c785c74e1182381ba3332899158da814240d",ref:t=>this.stylingContainer=t,class:"lottery-banner"},t.map(((e,n)=>this.renderElement(e,3===t.length&&1===n?"lottery-banner__item--center":""))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],startTime:["handleTimeChange"],stopTime:["handleTimeChange"]}}};O.style=":host {\n display: block;\n container-type: inline-size;\n}\n\n.lottery-banner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lottery-banner-gap, 0.5rem);\n padding: var(--lottery-banner-padding, 0px 20px);\n background: var(--lottery-banner-background, var(--emw--color-primary, #fed275));\n border-top: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-bottom: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-left: var(--lottery-banner-border-left, none);\n border-right: var(--lottery-banner-border-right, none);\n border-radius: var(--lottery-banner-border-radius, 0);\n white-space: nowrap;\n height: var(--lottery-banner-height, 50px);\n position: relative;\n box-sizing: border-box;\n}\n\n.lottery-banner__logo-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n.lottery-banner__logo-wrapper img {\n height: 100%;\n object-fit: var(--lottery-banner-logo-object-fit, contain);\n}\n\n.lottery-banner__item--center {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.lottery-banner__title {\n text-align: center;\n font-size: var(--lottery-banner-title-font-size, 1.5rem);\n font-weight: 800;\n font-style: italic;\n letter-spacing: var(--lottery-banner-title-font-letter-spacing, 0.04em);\n color: var(--emw--color-typography, #000);\n}\n\n.lottery-banner__info {\n display: flex;\n align-items: center;\n gap: var(--lottery-banner-info-gap, 0.75rem);\n}\n\n.lottery-banner__info-item {\n font-size: var(--lottery-banner-info-font-size, 0.9rem);\n color: var(--lottery-banner-info-color, var(--emw--color-typography, #000));\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n}\n\n.lottery-banner__info-item-label {\n color: var(--lottery-banner-info-label-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-label__strong {\n font-weight: var(--lottery-banner-info-label-font-weight, 700);\n}\n\n.lottery-banner__info-item-value {\n font-weight: var(--lottery-banner-info-value-font-weight, inherit);\n color: var(--lottery-banner-info-value-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-value__strong {\n font-weight: 700;\n}\n\n@container (max-width: 700px) {\n .lottery-banner {\n height: auto;\n padding: var(--lottery-banner-mobile-padding, 0.5rem 1rem);\n }\n .lottery-banner__title {\n flex-basis: 100%;\n text-align: var(--lottery-banner-mobile-title-text-align, left);\n }\n .lottery-banner__info {\n flex-direction: column;\n align-items: flex-start;\n gap: var(--lottery-banner-mobile-info-gap, 0.1rem);\n }\n}";const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var j=function(){return j=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},j.apply(this,arguments)},T={primaryColor:"#333",secondaryColor:"#E6E6E6"};function z(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var n=e.placeholders||T;return D(t.icon(n.primaryColor,n.secondaryColor),e)}return D(t.icon,e)}function D(t,e){var n="svg"===t.tag?j(j({},t.attrs),e.extraSVGAttrs||{}):t.attrs,i=Object.keys(n).reduce((function(t,e){var i=n[e],o="".concat(e,'="').concat(i,'"');return t.push(o),t}),[]),o=i.length?" "+i.join(" "):"",s=(t.children||[]).map((function(t){return D(t,e)})).join("");return s&&s.length?"<".concat(t.tag).concat(o,">").concat(s,"</").concat(t.tag,">"):"<".concat(t.tag).concat(o," />")}const $=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),H=class{constructor(n){t(this,n),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return n("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},n("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},n("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:$}),n("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};H.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const U=class{constructor(n){t(this,n),this.addSelectionEvent=e(this,"addSelection",7),this.deleteSelectionEvent=e(this,"deleteSelection",7),this.deleteSelectionOriginEvent=e(this,"deleteSelectionOrigin",7),this.oddsbomBulletGroupToggleEvent=e(this,"oddsbomBulletGroupToggle",7),this.oddsbomBulletGroupAddedByMoreBtnDelEvent=e(this,"oddsbomBulletGroupAddedByMoreBtnDel",7),this.oddsbomBulletCallDialogFromGroupEvent=e(this,"oddsbomBulletCallDialogFromGroup",7),this.selectionIdx=void 0,this.matchIdx=void 0,this.bulletConfigs=[],this.bulletConfigsDeleteOrigin=[],this.addSelectionConfig=void 0,this.isDeleteByIcon=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.bulletListClass=void 0,this.innerBulletConfigs=void 0,this.innerBulletConfigsDeleteOrigin=void 0}handleBulletConfigsChange(t){this.innerBulletConfigs=t.map((t=>Object.assign({},t)))}handleBulletConfigsDeleteOriginChange(t){this.innerBulletConfigsDeleteOrigin=t.map((t=>Object.assign({},t)))}componentWillLoad(){this.handleBulletConfigsChange(this.bulletConfigs)}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}oddsbomBulletToggleHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this,o=[...this.innerBulletConfigs],s=Object.assign({},o[e]);s.isSelected=!s.isSelected,o[e]=s,this.innerBulletConfigs=o,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigs,matchIdx:n,selectionIdx:i})}oddsbomBulletDeleteHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this,o=[...this.innerBulletConfigsDeleteOrigin],s=Object.assign({},o[e]);s.isSelected=!s.isSelected,o[e]=s,this.innerBulletConfigsDeleteOrigin=o,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigsDeleteOrigin,matchIdx:n,selectionIdx:i})}oddsbomBulletAddedByMoreBtnDeleteHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this;this.oddsbomBulletGroupAddedByMoreBtnDelEvent.emit({delText:e,matchIdx:n,selectionIdx:i})}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOddsbomBulletCallDialog(){const{matchIdx:t,selectionIdx:e}=this;this.oddsbomBulletCallDialogFromGroupEvent.emit({matchIdx:t,selectionIdx:e})}render(){return n("div",{key:"38102a447cf8fafc8f7a7e5a122c7ccbc2ce8b4a",class:"oddsbomBulletGroup",ref:t=>this.stylingContainer=t},n("div",{key:"59ca1df498575356eb3438b45e9431b1bc7ee2dd",class:`oddsbomBulletGroup-list ${this.bulletListClass||""}`},this.innerBulletConfigs.map((t=>n("lottery-oddsbom-bullet",t.isAddMoreBtn?{text:`${this.addSelectionConfig.maxOverScore}+`,disabled:t.isDisabled,isCallDialogBtn:!0,onOddsbomBulletCallDialog:this.handleOddsbomBulletCallDialog.bind(this)}:{text:t.text,idx:t.idx,isSelected:t.isSelected,disabled:t.isDisabled,isDeleteByIcon:this.isDeleteByIcon,isAddedByMoreBtn:t.isAddedByMoreBtn})))))}static get watchers(){return{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};U.style=".oddsbomBulletGroup{width:100%}.oddsbomBulletGroup .oddsbomBulletGroup-list{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.oddsbomBulletGroup .selection-bullet-list{justify-content:flex-end}";const A=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),G=z(I,{extraSVGAttrs:{width:"18px",height:"18px",fill:"#0d196e"}}),N=z(I,{extraSVGAttrs:{width:"16px",height:"16px",fill:"#1367e7"}}),V=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),E=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),F=class{constructor(n){t(this,n),this.oddsQueryLineChangeEvent=e(this,"oddsQueryLineChange",7),this.oddschartFillInEvent=e(this,"oddschartFillIn",7),this.oddsQueryChangeEvent=e(this,"oddsQueryChange",7),this.handleSearch=async()=>{const t=this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input"),e=await Promise.all(Array.from(t).map((t=>t.getValue())));if(e.length!=2*this.matchInfo.length)return void b({theme:"warning",message:m("pleaseFillIn",this.language)});const n=[...this.matchSelection],i=[];for(let t=0;t<e.length;t+=2){const o=e[t],s=e[t+1],a=t/2;o&&s&&(i.push([[`${o}:${s}`]]),n[a]=[o,s])}if(this.matchSelection=[...n],i.length>0){const t=await p(JSON.stringify(i));this.oddsQueryLineChangeEvent.emit({lineSelectionBase64:t,offset:0}),this.hasFillInSelection=!0}},this.handleGroupClick=t=>{this.selectedGroupIndex=t},this.toggleFilterIcon=()=>{this.isAscend=!this.isAscend,this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({ascending:this.isAscend,offset:0,lineSelectionBase64:""})},this.handlePrevPage=()=>{this.curPage>=1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset-this.limit,lineSelectionBase64:""}))},this.handleNextPage=()=>{this.curPage<this.totalPage-1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset+this.limit,lineSelectionBase64:""}))},this.matchInfo=void 0,this.oddsInfo=void 0,this.total=void 0,this.curPage=void 0,this.limit=void 0,this.offset=void 0,this.filterdOdds=void 0,this.isSearching=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.isLoading=!1,this.language="en",this.translationUrl="",this.isAscend=!0,this.selectedGroupIndex=-1,this.matchSelection=[],this.hasFillInSelection=!1}async initOddsChart(){this.oddsQueryChangeEvent.emit({offset:0,ascending:!0,lineSelectionBase64:""})}async closeOddsChart(){this.hasFillInSelection=!1,this.selectedGroupIndex=-1,this.matchSelection=[],this.isAscend=!0,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleMatchInfoChange(t){this.matchSelection=t.map((()=>[-1,-1]))}componentWillLoad(){this.translationUrl&&g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get totalPage(){return Math.ceil(this.total/this.limit)}generateBulletGroup(t,e,i){let o;try{o=JSON.parse(t)}catch(t){return console.error("Failed to parse line JSON:",t),n("div",{class:"error-message"},"Invalid data format")}let s=o.map((t=>t[0])).map((t=>t[0]));const a=this.selectedGroupIndex===i;return n("div",{class:"oddsbom-oddschart-selection--group",onClick:this.handleGroupClick.bind(this,i)},n("div",{class:"oddsbom-oddschart-selection--group-wrap",style:{flexBasis:160*s.length+"px"}},s.map(((t,e)=>{const i=t.split(":");return n("div",{class:"oddsbom-oddschart-selection-item",key:e},n("div",{class:"oddsbom-oddschart-selection-item--1"},n("lottery-oddsbom-bullet",{text:i[0],"is-reading":!0,"is-selected":a})),n("div",{class:"oddsbom-oddschart-selection-item--2"},n("lottery-oddsbom-bullet",{text:i[1],"is-reading":!0,"is-selected":a})))}))),n("div",{class:"oddsbom-oddschart-selection-odds"},n("div",{class:"oddsbom-oddschart-selection-odds--text"},f(e)),a&&n("div",{class:"oddsbom-oddschart-selection-odds--fillIn"},n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),size:"small",variant:"outline",onClick:this.handleFillIn.bind(this,s),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))}handleFillIn(t){this.oddschartFillInEvent.emit({fillInNums:t})}clearMatchSelection(){this.hasFillInSelection=!1,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}fillInMatchSelection(){const t=[];this.matchSelection.forEach((e=>{t.push(`${e[0]}:${e[1]}`)})),this.handleFillIn(t)}render(){var t,e;return n("div",{key:"e7c7c883ae3e911cb828a7076e0cb9fa73ddd2af",class:"oddsbom-oddschart",ref:t=>this.stylingContainer=t},(null===(t=this.matchInfo)||void 0===t?void 0:t.length)&&(null===(e=this.oddsInfo)||void 0===e?void 0:e.length)?this.matchInfo&&n("div",{class:"oddsbom-oddschart-container"},n("div",{class:"oddsbom-oddschart-wrap"},n("div",{class:"oddsbom-oddschart-match",ref:t=>this.matchItemsContainer=t},this.matchInfo.map(((t,e)=>n("div",{class:"oddsbom-oddschart-match-item",key:e},n("div",{class:"oddsbom-oddschart-match-item-name"},n("div",{class:"oddsbom-oddschart-match-item-name--home"},`${e+1}. ${t.eventName.split("vs")[0]}`),n("div",{class:"oddsbom-oddschart-match-item-name--delimiter"},"vs"),n("div",{class:"oddsbom-oddschart-match-item-name--away"},`${t.eventName.split("vs")[1]}`)),n("div",{class:"oddsbom-oddschart-match-item-input"},n("lottery-oddsbom-oddschart-input",null),n("lottery-oddsbom-oddschart-input",null))))),n("div",{class:"oddsbom-oddschart-match-search"},n("lottery-oddsbom-ticket-button",{text:m("search",this.language),variant:"outline",onClick:this.handleSearch}))),this.hasFillInSelection&&!this.isSearching&&(this.filterdOdds?n("div",{class:"oddsbom-oddschart-input-wrap"},n("div",{class:"oddsbom-oddschart-input"},this.matchSelection.map((t=>n("div",{class:"oddsbom-oddschart-input-item"},n("lottery-oddsbom-bullet",{text:t[0],"is-reading":!0,"is-selected":!0}),n("lottery-oddsbom-bullet",{text:t[1],"is-reading":!0,"is-selected":!0})))),n("div",{class:"oddsbom-oddschart-input-odds"},f(this.filterdOdds))),n("div",{class:"oddsbom-oddschart-input-operation"},n("lottery-oddsbom-ticket-button",{text:m("clear",this.language),variant:"outline",size:"small",onClick:this.clearMatchSelection.bind(this)}),n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),variant:"outline",size:"small",onClick:this.fillInMatchSelection.bind(this)}))):n("div",{class:"oddsbom-oddschart-input-empty"},n("div",null,n("span",{innerHTML:N,style:{marginRight:"6px",height:"16px"}}),n("span",{style:{fontSize:"14px"}},m("noBets",this.language))),n("div",{class:"oddsbom-oddschart-input-empty-operation"},n("lottery-oddsbom-ticket-button",{text:m("clear",this.language),variant:"text",size:"small",onClick:this.clearMatchSelection.bind(this)}),n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),variant:"text",size:"small",onClick:this.fillInMatchSelection.bind(this)})))),n("div",{class:"oddsbom-oddschart-match-filter"},(this.isLoading||this.isSearching)&&n("div",{class:"progress-bar"}),n("span",{onClick:this.toggleFilterIcon,class:"arrow "+(this.isAscend?"ascend":""),innerHTML:A})),n("div",{class:"oddsbom-oddschart-selection"},this.oddsInfo.map(((t,e)=>this.generateBulletGroup(t.lineSelection,t.odds,e)))),n("div",{class:"oddsbom-oddschart-pagination"},n("div",{class:"oddsbom-oddschart-pagination-wrap"},n("div",{class:"oddsbom-oddschart-pagination-prev "+(this.curPage<1?"disabled":""),onClick:this.handlePrevPage},n("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:V})),n("div",{class:"oddsbom-oddschart-pagination-page"},`${this.curPage+1} / ${this.totalPage}`),n("div",{class:"oddsbom-oddschart-pagination-next "+(this.curPage>=this.totalPage-1?"disabled":""),onClick:this.handleNextPage},n("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:E})))))):n("div",{class:"empty-wrap"},n("span",{innerHTML:G,style:{marginRight:"6px",height:"18px"}}),n("span",{class:"empty-wrap-text",style:{fontSize:"18px"}},m("noBets",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}}};F.style='.oddsbom-oddschart {\n container-type: inline-size;\n}\n.oddsbom-oddschart-container {\n position: relative;\n}\n.oddsbom-oddschart-match {\n display: flex;\n align-items: flex-end;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-match-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-basis: 160px;\n}\n.oddsbom-oddschart-match-item-name {\n margin-bottom: 8px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbom-oddschart-match-item-name--home, .oddsbom-oddschart-match-item-name--away, .oddsbom-oddschart-match-item-name--delimiter {\n font-size: 13px;\n height: 16px;\n line-height: 16px;\n overflow: hidden;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-match-item-input {\n display: flex;\n justify-content: space-between;\n}\n.oddsbom-oddschart-match-search {\n flex-basis: 130px;\n text-align: center;\n}\n.oddsbom-oddschart-match-filter {\n display: flex;\n justify-content: flex-end;\n padding: 2px;\n position: relative;\n padding-top: 4px;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbom-oddschart-input {\n display: flex;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-empty {\n padding: 12px;\n border: 1px solid var(--emw--color-primary-variant, #1367e7);\n background-color: var(--emw--color-tertiary, #e3f2fd);\n width: 50%;\n min-width: 240px;\n max-width: 360px;\n margin: 4px auto;\n border-radius: 6px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n.oddsbom-oddschart-input-empty-operation {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-wrap {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-input-item {\n display: flex;\n align-items: center;\n flex-basis: 160px;\n justify-content: center;\n gap: 5px;\n}\n.oddsbom-oddschart-input-odds {\n flex-basis: 130px;\n display: flex;\n align-items: center;\n font-size: 14px;\n text-indent: 16px;\n}\n.oddsbom-oddschart-input-operation {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n}\n.oddsbom-oddschart-selection--group {\n display: flex;\n margin-bottom: 8px;\n}\n.oddsbom-oddschart-selection--group-wrap {\n display: flex;\n border-radius: 4px;\n}\n.oddsbom-oddschart-selection--group-wrap:hover {\n background: var(--emw--color-gray-50, #f5f5f5);\n cursor: pointer;\n}\n.oddsbom-oddschart-selection-item {\n display: flex;\n flex-basis: 160px;\n justify-content: center;\n gap: 10px;\n}\n.oddsbom-oddschart-selection-odds {\n display: flex;\n gap: 12px;\n align-items: center;\n flex-basis: 130px;\n position: relative;\n text-indent: 16px;\n}\n.oddsbom-oddschart-selection-odds--text {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-selection-odds--fillIn {\n position: absolute;\n right: 0;\n}\n@container (max-width: 430px) {\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds {\n text-indent: unset;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds--fillIn {\n right: -22px;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-item {\n gap: 4px;\n }\n}\n.oddsbom-oddschart .arrow {\n transition: transform 0.3s ease;\n font-size: 16px;\n display: inline-flex;\n cursor: pointer;\n fill: var(--emw--color-typography, #000);\n display: flex;\n justify-content: center;\n flex-basis: 130px;\n}\n.oddsbom-oddschart .arrow.ascend {\n transform: rotate(180deg);\n}\n\n.empty-wrap {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.empty-wrap-text {\n color: var(--emw--color-typography, #000);\n}\n\n.oddsbom-oddschart-pagination {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 10px;\n padding-right: 16px;\n}\n.oddsbom-oddschart-pagination-wrap {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 18px;\n}\n.oddsbom-oddschart-pagination-prev, .oddsbom-oddschart-pagination-next {\n cursor: pointer;\n}\n.oddsbom-oddschart-pagination-prev.disabled, .oddsbom-oddschart-pagination-next.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.oddsbom-oddschart-pagination-icon {\n display: flex;\n height: 18px;\n align-items: center;\n fill: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-pagination-page {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n\n.progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: var(--emw--color-gray-100, #e6e6e6);\n overflow: hidden;\n}\n.progress-bar::after {\n content: "";\n display: block;\n width: 20%;\n height: 100%;\n background-color: var(--emw--color-primary, #0d196e);\n animation: progress 1.5s linear infinite;\n}\n\n@keyframes progress {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(500%);\n }\n}';const J=class{constructor(n){t(this,n),this.valueChange=e(this,"valueChange",7),this.handleInputChange=t=>{const e=t.target.value.trim();this.valueChange.emit(e)},this.handleKeyDown=t=>{"Enter"===t.key&&this.inputElement.blur()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.value=""}async getValue(){return this.inputElement.value}async clearValue(){this.inputElement&&(this.inputElement.value=""),this.value=""}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return n("div",{key:"027256f6e35e605b7a9afb83e81a099343615f96",class:"oddscharts-input",ref:t=>this.stylingContainer=t},n("input",{key:"fc8e961ee6701f8bb57349c9ead508af2d2b448f",ref:t=>this.inputElement=t,type:"text",inputMode:"numeric",value:this.value,onInput:this.handleInputChange,onKeyDown:this.handleKeyDown,autocomplete:"one-time-code"}))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};J.style=".oddscharts-input{display:inline-flex;padding:2px}.oddscharts-input input{width:32px;height:32px;text-align:center;font-size:14px;font-weight:bold;line-height:32px;border:2px solid var(--emw--color-gray-100, #e6e6e6);border-radius:4px;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);text-transform:uppercase}.oddscharts-input input:focus{outline:none;border-color:var(--emw--color-primary, #0d196e);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));border-width:2px}.oddscharts-input input:disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed}.oddscharts-input input.error{border-color:var(--emw--color-error, #ff3d00)}.oddscharts-input input.error:focus{box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}";const W=class{constructor(n){t(this,n),this.oddsbomBoardClearEvent=e(this,"oddsbomBoardClear",7),this.oddsbomAddMoreToMatchEvent=e(this,"oddsbomAddMoreToMatch",7),this.ticketBoardInfo=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.translationUrl="",this.addSelectionConfig=void 0,this.bulletsConfig=void 0,this.isInputInvalid=!1,this.errorMessage="",this.dialogConfig={width:"400px",visible:!1,onConfirm:()=>this.handleFillInAddMore(),onCancel:()=>this.handleCloseAddMoreDialog()},this.curAddMoreInfo={matchIdx:0,selectionIdx:0,value:""}}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.translationUrl&&u(JSON.parse(this.translationUrl))}handleOddsbomBulletGroupToggle(t){const{bulletConfigArr:e}=t.detail;this.bulletsConfig=e}handleOddsbomBulletCallDialogFromGroup(t){const{matchIdx:e,selectionIdx:n}=t.detail;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{matchIdx:e,selectionIdx:n}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0})}handleFillInAddMore(){if(this.isInputInvalid)return void this.handleCloseAddMoreDialog();const{matchIdx:t,selectionIdx:e,value:n}=this.curAddMoreInfo;this.oddsbomAddMoreToMatchEvent.emit({matchIdx:t,selectionIdx:e,value:n}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""})}handleCloseAddMoreDialog(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""}),this.isInputInvalid=!1,this.errorMessage=""}handleClearAllSelection(){this.oddsbomBoardClearEvent.emit(),b({message:m("selectionCleared",this.language),renderOne:!0})}validateInput(t){const e=Number(t);if(isNaN(e))return this.isInputInvalid=!0,void(this.errorMessage=m("enterValidNumber",this.language));if(e<y||e>this.addSelectionConfig.maxScore)return this.isInputInvalid=!0,void(this.errorMessage=m("enterNumberBetween",this.language,{min:y,max:this.addSelectionConfig.maxScore}));const{matchIdx:n,selectionIdx:i}=this.curAddMoreInfo;if(this.ticketBoardInfo[n].addSelections[i].some((e=>Number(e)===Number(t))))return this.isInputInvalid=!0,void(this.errorMessage=m("numberAlreadySelected",this.language));this.isInputInvalid=!1,this.errorMessage=""}handleInputChange(t){const e=t.target.value;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:e}),this.validateInput(e)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return n("div",{key:"e5ca4eb7ad8945ab24c8fd400b0b7704bdb69f6e",class:"oddsbomTicketBoard",ref:t=>this.stylingContainer=t},n("div",{key:"5cf3ab87b72e81a169ffbe65084e86b38cb76ef3",class:"oddsbomTicketBoard-btn"},n("lottery-oddsbom-ticket-button",{key:"d8ebcd3faf085333b94d8a61b10c274a075b0d8a",onClick:this.handleClearAllSelection.bind(this),text:m("clearAll",this.language),variant:"outline"})),this.ticketBoardInfo.length?n("div",{class:"oddsbomTicketBoard-list"},this.ticketBoardInfo.map(((t,e)=>n("div",{class:"oddsbomTicketBoard-item"},n("div",{class:"oddsbomTicketBoard-item-header"},`${e+1}. ${t.matchName}`),n("div",{class:"oddsbomTicketBoard-item-match"},n("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[0]),n("div",{class:"oddsbomTicketBoard-item-match--right"},n("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[0],selectionIdx:0,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))),n("div",{class:"oddsbomTicketBoard-item-match"},n("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[1]),n("div",{class:"oddsbomTicketBoard-item-match--right"},n("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[1],selectionIdx:1,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))))))):n("div",{class:"oddsbomTicketBoard-noData"},m("noTicketBoard",this.language)),n("lottery-tipping-dialog",{key:"d70640fde439f49c4234b144c25c8a71486477d2",visible:this.dialogConfig.visible,width:this.dialogConfig.width,onCancel:this.handleCloseAddMoreDialog.bind(this)},n("div",{key:"8f6f15ec60cde94c4074e4b4d8c966e26608e577",class:"addSelectionDialog"},n("div",{key:"8a78285c454dd4414d167a4ea913df7040646c81",class:"addSelectionDialog-title"},m("enterScoreUpTo",this.language,{maxScore:this.addSelectionConfig.maxScore})),n("input",{key:"0a9139c2beb9627e14fa811f46f552a0e9a07af0",type:"text",class:{"dialog-input":!0,invalid:this.isInputInvalid},value:this.curAddMoreInfo.value,onInput:this.handleInputChange.bind(this)}),n("div",{key:"b537f8fd54aa70e043a1e319a4aabef85e8e458a",class:"error-message"},this.errorMessage)),n("div",{key:"8aa06cf57c03e73fd9c4cead9670d9f8a539d4ca",slot:"footer",class:"addSelectionDialog-footer"},n("lottery-oddsbom-ticket-button",{key:"9db45725204f7fb16407adbdc7ee77f88c2a2dc8",onClick:this.dialogConfig.onCancel,text:m("cancel",this.language),variant:"outline"}),n("lottery-oddsbom-ticket-button",{key:"10cc96b0f5bd1ef5431e1347b6a142797113d458",onClick:this.dialogConfig.onConfirm,text:m("confirm",this.language),variant:"primary",disabled:!this.curAddMoreInfo.value||this.isInputInvalid}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};W.style=".oddsbomTicketBoard {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n container-type: inline-size;\n min-height: 220px;\n}\n.oddsbomTicketBoard-noData {\n display: flex;\n justify-content: center;\n height: 200px;\n align-items: center;\n}\n.oddsbomTicketBoard-btn {\n display: flex;\n justify-content: flex-end;\n margin: 16px;\n margin-bottom: unset;\n}\n.oddsbomTicketBoard-item {\n display: flex;\n gap: 16px;\n flex-direction: column;\n padding: 24px;\n}\n.oddsbomTicketBoard-item:not(:last-child) {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBoard-item-header {\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBoard-item-match--left {\n width: 130px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match--right {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n justify-content: space-evenly;\n}\n@container (max-width: 320px) {\n .oddsbomTicketBoard-item-match--left {\n width: 100px;\n max-width: 100px;\n }\n}\n\n.dialog-input {\n width: 100%;\n padding: 8px;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n box-sizing: border-box;\n margin-top: 10px;\n}\n\n.dialog-input.invalid,\n.dialog-input.invalid:focus {\n border-color: var(--emw--color-error, #ff3d00);\n outline-color: var(--emw--color-error, #ff3d00);\n}\n\n.error-message {\n color: var(--emw--color-error, #ff3d00);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.addSelectionDialog-title {\n color: var(--emw--color-typography, #000);\n}\n.addSelectionDialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 18px;\n}";const P=class{constructor(e){t(this,e),this.handleClick=t=>{if(this.disabled)return;const e=this.host.shadowRoot.querySelector(".btn");if(!e)return;const n=e.getBoundingClientRect(),i=Math.max(n.width,n.height),o={top:t.clientY-n.top-i/2,left:t.clientX-n.left-i/2,size:i};this.ripples=[...this.ripples,o],setTimeout((()=>{this.ripples=this.ripples.filter((t=>t!==o))}),600)},this.variant="primary",this.size="medium",this.disabled=!1,this.loading=!1,this.text=void 0,this.mbSource=void 0,this.language="en",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.ripples=[]}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.translationUrl&&g(this.translationUrl)}render(){const{variant:t,disabled:e,size:i}=this,o=e||this.loading;return n("button",{key:"c0c87c36c7c3f48286729c9133eded8338f137be",class:{btn:!0,[`btn--${t}`]:!0,[`btn--${i}`]:!0,"btn--loading":this.loading},disabled:o,onClick:this.handleClick},this.loading?n("div",{class:"loading-container"},n("span",{class:"content"},this.text||m("loading",this.language)),n("span",{class:"spinner"})):n("span",{class:"content"},this.text),n("div",{key:"8276ad215063ef4217b11f65fb189d6fcccd1f24",class:"ripple-container"},this.ripples.map(((t,e)=>n("span",{key:e,class:"ripple",style:{top:`${t.top}px`,left:`${t.left}px`,width:`${t.size}px`,height:`${t.size}px`}})))))}get host(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};P.style=':host{display:inline-block;font-family:"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;font-weight:500;cursor:pointer;outline:none;overflow:hidden;transition:background-color 0.2s, border-color 0.2s, color 0.2s;user-select:none;-webkit-tap-highlight-color:transparent}.btn .content{position:relative}.btn:disabled{cursor:not-allowed;opacity:0.5}.btn .loading-container{display:flex;align-items:center}.btn--loading{position:relative}.btn .spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:white;animation:spin 1s ease-in-out infinite;margin-left:0.5em;vertical-align:middle}.btn--small .spinner{width:0.8em;height:0.8em}.btn--large .spinner{width:1.2em;height:1.2em}@keyframes spin{to{transform:rotate(360deg)}}.btn--primary{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff)}.btn--primary:hover:not(:disabled){background-color:var(--emw--color-primary-variant, #1367e7)}.btn--primary:active:not(:disabled){background-color:#08104a}.btn--outline .spinner,.btn--dashed .spinner,.btn--text .spinner{border-top-color:currentColor;border-color:rgba(0, 0, 0, 0.2)}.btn--outline{background-color:var(--emw--color-background, #fff);border-color:#dcdcdc;color:var(--emw--color-typography, #000)}.btn--outline:hover:not(:disabled){background-color:var(--emw--color-background-tertiary, #ccc);border-color:#a6a6a6}.btn--outline:active:not(:disabled){background-color:#e6e6e6}.btn--dashed{background-color:transparent;border-style:dashed;border-color:#dcdcdc;color:#333}.btn--dashed:hover:not(:disabled){border-color:#a6a6a6;color:#0052d9}.btn--text{background-color:transparent;color:#0052d9;border-color:transparent}.btn--text:hover:not(:disabled){background-color:#f2f2f2}.btn--text:active:not(:disabled){background-color:#e6e6e6}.btn--small{height:28px;font-size:12px;padding:0 12px}.btn--medium{height:34px;font-size:14px;padding:0 18px}.btn--large{height:40px;font-size:16px;padding:0 24px}.ripple-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit}.ripple{position:absolute;border-radius:50%;background-color:rgba(255, 255, 255, 0.3);transform:scale(0);animation:ripple-animation 600ms linear}.btn--outline .ripple,.btn--dashed .ripple,.btn--text .ripple{background-color:rgba(0, 0, 0, 0.1)}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}';const R=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),Q=class{constructor(e){t(this,e),this.togglePanel=()=>{this.expanded=!this.expanded},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.ticketBoardInfo=void 0,this.language="en",this.expanded=!1,this._ticketBoardInfo=[]}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this._ticketBoardInfo=JSON.parse(JSON.stringify(this.ticketBoardInfo))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleTicketBoradInfoChange(t){this._ticketBoardInfo=JSON.parse(JSON.stringify(t))}generateMatchItemSelection(t,e,i,o,s,a,d){return n("div",{class:"oddsbomSelection-item"},n("div",{class:"oddsbomSelection-item-number"},i+1),n("div",{class:"oddsbomSelection-item-selection"},n("div",{class:"oddsbomSelection-item-team"},n("div",{class:"oddsbomSelection-item-team-name"},t),n("div",{class:"oddsbomSelection-item-team-selection"},n("lottery-oddsbom-bullet-group",{bulletConfigs:o,selectionIdx:0,matchIdx:i,bulletConfigsDeleteOrigin:a,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"}))),n("div",{class:"oddsbomSelection-item-team"},n("div",{class:"oddsbomSelection-item-team-name"},e),n("div",{class:"oddsbomSelection-item-team-selection"},n("lottery-oddsbom-bullet-group",{bulletConfigs:s,selectionIdx:1,matchIdx:i,bulletConfigsDeleteOrigin:d,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"})))))}generateSelectionList(){return this._ticketBoardInfo?this._ticketBoardInfo.map(((t,e)=>{var n,i,o,s;const{matchName:a,selections:d}=t,r=a.split("vs")[0],l=a.split("vs")[1],c=d[0].filter((t=>t.isSelected)),h=d[1].filter((t=>t.isSelected)),b=null!==(i=null===(n=t.addSelections)||void 0===n?void 0:n[0])&&void 0!==i?i:[],m=null!==(s=null===(o=t.addSelections)||void 0===o?void 0:o[1])&&void 0!==s?s:[];return b.length>0&&b.forEach((t=>{c.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),m.length>0&&m.forEach((t=>{h.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),this.generateMatchItemSelection(r,l,e,c,h,d[0],d[1])})):null}render(){return n("div",{key:"79091bce57ba35ef7a7758daeae94b9847eb712d",class:"oddsbomSelection",ref:t=>this.stylingContainer=t},n("div",{key:"a4913e648d8deb508c68360d572d26b98843f0c5",class:"oddsbomSelection-panel"},n("div",{key:"fd6b9551dddd71f5eed648dc1ab8bbf6aeb8a92f",class:"oddsbomSelection-panel--header",onClick:this.togglePanel},n("div",{key:"88930dc74331ca9f6edec7a23c8d42cf9ca9a0e4",class:"oddsbomSelection-panel--header-title"},m("myChoices",this.language)),n("div",{key:"94b2bd032ea3b9ebcb9e406e74a52a4d1c55a67f",class:"oddsbomSelection-panel--header-icon "+(this.expanded?"expanded":""),innerHTML:R})),n("div",{key:"cf337fd2477ae140c6d7898f7742c326164f7282",class:"oddsbomSelection-panel--content "+(this.expanded?"open":"closed")},n("div",{key:"8dd02d79a4254278b415ec11bdd1906940cb6074",class:"oddsbomSelection-panel--content-thead"},n("div",{key:"113407e0f9ee69d449202ab1065623187bce2fbe",class:"oddsbomSelection-panel--content-thead-item"},m("teams",this.language)),n("div",{key:"fe38c2ad17fdea759f48938742808e622c4076be",class:"oddsbomSelection-panel--content-thead-item"},m("scores",this.language))),n("div",{key:"a750c174d5ac53bc77346907828a4bdc96f60e32",class:"oddsbomSelection-panel--content-tbody"},this.generateSelectionList()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}}};Q.style=".oddsbomSelection {\n container-type: inline-size;\n}\n.oddsbomSelection-panel--header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n height: 40px;\n padding: 0 4px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--header:hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n border-radius: 4px;\n}\n.oddsbomSelection-panel--header-title {\n font-size: 16px;\n font-weight: 600;\n user-select: none;\n}\n.oddsbomSelection-panel--header-icon {\n transition: transform 0.2s;\n}\n.oddsbomSelection-panel--header-icon.expanded {\n transform: rotate(180deg);\n}\n.oddsbomSelection-panel--content {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.3s ease, padding 0.3s ease;\n padding: 0 12px;\n font-size: 14px;\n user-select: none;\n}\n.oddsbomSelection-panel--content.open {\n max-height: 19000px;\n padding: 10px 12px;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomSelection-panel--content.closed {\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n.oddsbomSelection-panel--content-thead {\n display: flex;\n justify-content: space-between;\n padding: 0 24px;\n margin-bottom: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--content-tbody {\n padding: 0 18px;\n}\n.oddsbomSelection-item {\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 8px;\n}\n.oddsbomSelection-item:not(:last-child) {\n border-bottom: 1px dashed var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomSelection-item-number {\n position: absolute;\n left: -18px;\n top: 48%;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-selection {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.oddsbomSelection-item-team {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 32px;\n color: var();\n}\n.oddsbomSelection-item-team-name {\n max-width: 140px;\n width: 140px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-team-selection {\n display: flex;\n gap: 6px;\n flex: 1;\n justify-content: flex-end;\n}\n@container (max-width: 430px) {\n .oddsbomSelection-item-team-name {\n max-width: 80px;\n width: 80px;\n }\n}\n\n.oddsbomSelection-panel--header-icon {\n fill: var(--emw--color-typography, #000);\n}";const X=["ro","en","fr","ar","hr"],Y={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},K=(t,e)=>{const n=e;return Y[void 0!==n&&X.includes(n)?n:"en"][t]},q=class{constructor(n){t(this,n),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0,this.dialogClass=void 0,this.dialogStyle=void 0,this.confirmLoading=!1}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const n=await fetch(t);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();e=i,Object.keys(e).forEach((t=>{for(let n in e[t])Y[t][n]=e[t][n]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(){this.maskClosable&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t=Object.assign({width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},this.dialogStyle||{}),e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],i=["mask",this.visible?"mask-enter":"mask-leave"],o=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":"",this.dialogClass].filter(Boolean).join(" ");return n("div",{key:"05dd671f10bdebda6f138e8f8039f4bc0533fe98",class:e.join(" "),ref:t=>this.stylingContainer=t},n("div",{key:"6e814e02770149de5495617039750461fc0a42d1",class:i.join(" "),onClick:this.handleMaskClick.bind(this)}),n("div",{key:"4cbc5db20317ef1b0808fc4a91a53fa8b86c5f4f",part:"dialog",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},(this.dialogTitle||this.closable)&&n("div",{key:"85dc705676a37e6ea2828a7b683fc54b0eb77d17",class:"dialog-header"},n("h2",{key:"85b7472d2b72801dfae19a24fc2018f3c1f1529a",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&n("button",{key:"8089aaecfe511558055ee9f64214ff97030eb2a9",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),n("div",{key:"776255540f30d757caa3fcaee747c79ac638ae76",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},n("slot",{key:"5ef964615b6ab70a9e561f8efac8fe952fe47b4e"})),this.showFooter&&n("div",{key:"8927a0991d916caf7852d58db996b9818687da30",class:"dialog-footer"},n("slot",{key:"84de0306994ec62220ae30fa2881dadbae5544ea",name:"footer"},this.showCancelBtn&&n("button",{key:"ee87b8c3918c1f4d007923a2498142b3af2740a0",class:"cancel-btn",onClick:this.handleClose.bind(this)},K("cancel",this.language)),n("button",{key:"935cff86381b21fff07c2d4156b29779c50e5ce3",class:"confirm-btn",onClick:this.handleConfirm.bind(this),disabled:this.confirmLoading},this.confirmLoading?n("div",{class:"Loading",innerHTML:z(M,{extraSVGAttrs:{width:"20px",height:"20px",fill:"currentColor"}})}):K("confirm",this.language))))))}get el(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};q.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background:var(--emw--color-mask-dialog-background, rgba(0, 0, 0, 0.5));opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;min-width:60px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{O as lottery_banner,H as lottery_oddsbom_bullet,U as lottery_oddsbom_bullet_group,F as lottery_oddsbom_oddschart,J as lottery_oddsbom_oddschart_input,W as lottery_oddsbom_ticket_board,P as lottery_oddsbom_ticket_button,Q as lottery_oddsbom_ticket_selection,q as lottery_tipping_dialog}
1
+ import{r as t,c as e,h as n,g as i}from"./index-9dee9d86.js";import{r as o,t as s,p as a,i as d,f as r,s as l,a as c,b as h,c as b,d as m,e as p,g,h as f,j as u,M as y}from"./lottery-oddsbom-ticket-bet-5e2742c1.js";export{L as lottery_oddsbom_ticket_bet}from"./lottery-oddsbom-ticket-bet-5e2742c1.js";var v={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},x="trunc";const w=["ro","en","fr","ar","hr"],S={en:{stop:"Stop",at:"at",turnover:"Turnover: ",startIn:"Sales Start in:"},ro:{stop:"Oprește",at:"la"},fr:{stop:"Arrêtez",at:"à"},ar:{stop:"توقف",at:"في"},hr:{stop:"Stop",at:"u"}},k=(t,e)=>{const n=e;return S[void 0!==n&&w.includes(n)?n:"en"][t]},C=({date:t,type:e="date",format:n})=>{try{const i=a(t);if(isNaN(i.getTime()))throw new Error(`Invalid date: ${t}`);if(n)return r(i,n);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),r(i,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function B(t){if(t)return d(new Date(t))?C({date:t,format:"HH:mm"}):C({date:t,format:"dd/MM/yyyy HH:mm"})}function _(t,e){if(!t)return;let n=function(t,e,n){o(2,arguments);var i,a=function(t,e){return o(2,arguments),s(t).getTime()-s(e).getTime()}(t,e)/1e3;return((i=null==n?void 0:n.roundingMethod)?v[i]:v[x])(a)}("string"==typeof t?a(t):t,e&&new Date);if(n<0)return"0D 00H 00M 00S";const i=Math.floor(n/86400);n%=86400;const d=Math.floor(n/3600);n%=3600;const r=Math.floor(n/60),l=n%60;return`${i}D ${d.toString().padStart(2,"0")}H ${r.toString().padStart(2,"0")}M ${l.toString().padStart(2,"0")}S`}const O=class{constructor(n){t(this,n),this.lotteryBannerTimerStop=e(this,"lotteryBannerTimerStop",7),this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.logoUrl=void 0,this.stopTime="",this.startTime="",this.bannerTitle=void 0,this.turnover=void 0,this.layout="logo,title,info",this.formattedTime=void 0}handleClientStylingChange(t,e){t!==e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!==e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!==e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleTimeChange(){this.startTimer()}async componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const n=await fetch(t);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();e=i,Object.keys(e).forEach((t=>{for(let n in e[t])S[t][n]=e[t][n]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl),this.startTimer()}startTimer(){this.timer&&clearInterval(this.timer),this.updateTime(),this.timer=setInterval((()=>{this.updateTime()}),1e3)}updateTime(){var t;this.formattedTime=function(t,e){const n=new Date;return t&&function(t,e){o(2,arguments);var n=s(t),i=s(e);return n.getTime()<i.getTime()}(n,a(t))?{start:_(t,n)}:t&&e&&function(t,e){o(2,arguments);var n=s(t).getTime(),i=s(e.start).getTime(),a=s(e.end).getTime();if(!(i<=a))throw new RangeError("Invalid interval");return n>=i&&n<=a}(n,{start:a(t),end:a(e)})?{end:B(e)}:{}}(this.startTime,this.stopTime),(null===(t=this.formattedTime)||void 0===t?void 0:t.end)&&(this.timer&&clearInterval(this.timer),this.lotteryBannerTimerStop.emit())}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.timer&&clearInterval(this.timer)}renderElement(t,e=""){var i,o,s;switch(t){case"logo":return n("div",{class:`lottery-banner__logo-wrapper ${e}`},this.logoUrl&&n("img",{alt:"logo",src:this.logoUrl,class:"lottery-banner__logo"}));case"title":return this.bannerTitle&&n("div",{class:`lottery-banner__title ${e}`},this.bannerTitle);case"info":return n("div",{class:`lottery-banner__info ${e}`},(null===(i=this.formattedTime)||void 0===i?void 0:i.start)&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},n("span",{class:"lottery-banner__info-item-label__strong"},k("startIn",this.language))," "),n("span",{class:"lottery-banner__info-item-value lottery-banner__info-item-value__strong"},this.formattedTime.start)),(null===(o=this.formattedTime)||void 0===o?void 0:o.end)&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},n("span",{class:"lottery-banner__info-item-label__strong"},k("stop",this.language))," ",k("at",this.language)),n("span",{class:"lottery-banner__info-item-value"},this.formattedTime.end)),(null===(s=this.formattedTime)||void 0===s?void 0:s.end)&&null!=this.turnover&&n("div",{class:"lottery-banner__info-item"},n("span",{class:"lottery-banner__info-item-label"},k("turnover",this.language)),n("span",{class:"lottery-banner__info-item-value"},this.turnover)));default:return null}}render(){const t=this.layout.split(",").map((t=>t.trim()));return n("section",{key:"de09c785c74e1182381ba3332899158da814240d",ref:t=>this.stylingContainer=t,class:"lottery-banner"},t.map(((e,n)=>this.renderElement(e,3===t.length&&1===n?"lottery-banner__item--center":""))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],startTime:["handleTimeChange"],stopTime:["handleTimeChange"]}}};O.style=":host {\n display: block;\n container-type: inline-size;\n}\n\n.lottery-banner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lottery-banner-gap, 0.5rem);\n padding: var(--lottery-banner-padding, 0px 20px);\n background: var(--lottery-banner-background, var(--emw--color-primary, #fed275));\n border-top: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-bottom: var(--lottery-banner-border-width, 2px) var(--lottery-banner-border-style, solid) var(--lottery-banner-border-color, var(--emw--color-primary, #fed275));\n border-left: var(--lottery-banner-border-left, none);\n border-right: var(--lottery-banner-border-right, none);\n border-radius: var(--lottery-banner-border-radius, 0);\n white-space: nowrap;\n height: var(--lottery-banner-height, 50px);\n position: relative;\n box-sizing: border-box;\n}\n\n.lottery-banner__logo-wrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n}\n.lottery-banner__logo-wrapper img {\n height: 100%;\n object-fit: var(--lottery-banner-logo-object-fit, contain);\n}\n\n.lottery-banner__item--center {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n}\n\n.lottery-banner__title {\n text-align: center;\n font-size: var(--lottery-banner-title-font-size, 1.5rem);\n font-weight: 800;\n font-style: italic;\n letter-spacing: var(--lottery-banner-title-font-letter-spacing, 0.04em);\n color: var(--emw--color-typography, #000);\n}\n\n.lottery-banner__info {\n display: flex;\n align-items: center;\n gap: var(--lottery-banner-info-gap, 0.75rem);\n}\n\n.lottery-banner__info-item {\n font-size: var(--lottery-banner-info-font-size, 0.9rem);\n color: var(--lottery-banner-info-color, var(--emw--color-typography, #000));\n display: inline-flex;\n align-items: center;\n gap: 0.3rem;\n}\n\n.lottery-banner__info-item-label {\n color: var(--lottery-banner-info-label-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-label__strong {\n font-weight: var(--lottery-banner-info-label-font-weight, 700);\n}\n\n.lottery-banner__info-item-value {\n font-weight: var(--lottery-banner-info-value-font-weight, inherit);\n color: var(--lottery-banner-info-value-color, var(--emw--color-typography, #000));\n}\n.lottery-banner__info-item-value__strong {\n font-weight: 700;\n}\n\n@container (max-width: 700px) {\n .lottery-banner {\n height: auto;\n padding: var(--lottery-banner-mobile-padding, 0.5rem 1rem);\n }\n .lottery-banner__title {\n flex-basis: 100%;\n text-align: var(--lottery-banner-mobile-title-text-align, left);\n }\n .lottery-banner__info {\n flex-direction: column;\n align-items: flex-start;\n gap: var(--lottery-banner-mobile-info-gap, 0.1rem);\n }\n}";const I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},M={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};var j=function(){return j=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},j.apply(this,arguments)},T={primaryColor:"#333",secondaryColor:"#E6E6E6"};function z(t,e){if(void 0===e&&(e={}),"function"==typeof t.icon){var n=e.placeholders||T;return D(t.icon(n.primaryColor,n.secondaryColor),e)}return D(t.icon,e)}function D(t,e){var n="svg"===t.tag?j(j({},t.attrs),e.extraSVGAttrs||{}):t.attrs,i=Object.keys(n).reduce((function(t,e){var i=n[e],o="".concat(e,'="').concat(i,'"');return t.push(o),t}),[]),o=i.length?" "+i.join(" "):"",s=(t.children||[]).map((function(t){return D(t,e)})).join("");return s&&s.length?"<".concat(t.tag).concat(o,">").concat(s,"</").concat(t.tag,">"):"<".concat(t.tag).concat(o," />")}const $=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-200 0H360v-72h304v72z"}}]},name:"delete",theme:"filled"},{extraSVGAttrs:{width:"18px",height:"18px",fill:""}}),H=class{constructor(n){t(this,n),this.oddsbomBulletToggleEvent=e(this,"oddsbomBulletToggle",7),this.oddsbomBulletDeleteEvent=e(this,"oddsbomBulletDelete",7),this.oddsbomBulletAddedByMoreBtnDeleteEvent=e(this,"oddsbomBulletAddedByMoreBtnDelete",7),this.oddsbomBulletCallDialogEvent=e(this,"oddsbomBulletCallDialog",7),this.isSelected=void 0,this.disabled=void 0,this.text=void 0,this.idx=void 0,this.isReading=void 0,this.isDeleteByIcon=void 0,this.isCallDialogBtn=void 0,this.isAddedByMoreBtn=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClick(){this.isCallDialogBtn?this.oddsbomBulletCallDialogEvent.emit():this.isDeleteByIcon?this.isAddedByMoreBtn?this.oddsbomBulletAddedByMoreBtnDeleteEvent.emit(this.text):this.oddsbomBulletDeleteEvent.emit(this.idx):this.disabled||this.oddsbomBulletToggleEvent.emit(this.idx)}render(){return n("div",{key:"e21cf46108e35dcbf7d65e8c6a5f12f5d5ae49cb",class:"OddsbomBullet",ref:t=>this.stylingContainer=t},n("button",{key:"4edf5cd481d8283bd71f6806b6f93949e1308095",class:{OddsbomBulletBtn__normal:!0,OddsbomBulletBtn__selected:this.isSelected,OddsbomBulletBtn__disabled:this.disabled,isDeleteByIcon:this.isDeleteByIcon,isCallDialogBtn:this.isCallDialogBtn||this.isReading},onClick:this.handleClick.bind(this),disabled:this.disabled},n("span",{key:"fa1aed0293dc004808e6992c069d6992317b0788",class:"OddsbomBullet--deleteIcon",innerHTML:$}),n("span",{key:"53ed96f2c2b833d21488049f987b6131718d563e",class:"OddsbomBullet--text"},this.text)))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};H.style=".OddsbomBullet .OddsbomBulletBtn__normal{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--emw--color-background, #fff);border:2px solid var(--emw--color-primary, #0d196e);border-radius:var(--emw--border-radius-medium, 8px);color:var(--emw--color-typography, #000);font-weight:bold;cursor:pointer;transition:transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease, background-color 0.3s;user-select:none;position:relative}.OddsbomBullet .OddsbomBulletBtn__normal:hover{transform:scale(1.15) rotate(-5deg);box-shadow:var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15)) 7px 6px 6px}.OddsbomBullet .OddsbomBulletBtn__normal .OddsbomBullet--deleteIcon{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover{background-color:var(--emw--color-background, #fff)}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--text{display:none}.OddsbomBullet .OddsbomBulletBtn__normal.isDeleteByIcon:hover .OddsbomBullet--deleteIcon{display:inline;fill:var(--emw--color-typography, #000)}.OddsbomBullet .OddsbomBulletBtn__normal.isCallDialogBtn:hover{transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__selected{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff);transform:scale(1.05);box-shadow:0 5px 10px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed;transform:none;box-shadow:none}.OddsbomBullet .OddsbomBulletBtn__normal.OddsbomBulletBtn__disabled:hover{transform:none;box-shadow:none}";const U=class{constructor(n){t(this,n),this.addSelectionEvent=e(this,"addSelection",7),this.deleteSelectionEvent=e(this,"deleteSelection",7),this.deleteSelectionOriginEvent=e(this,"deleteSelectionOrigin",7),this.oddsbomBulletGroupToggleEvent=e(this,"oddsbomBulletGroupToggle",7),this.oddsbomBulletGroupAddedByMoreBtnDelEvent=e(this,"oddsbomBulletGroupAddedByMoreBtnDel",7),this.oddsbomBulletCallDialogFromGroupEvent=e(this,"oddsbomBulletCallDialogFromGroup",7),this.selectionIdx=void 0,this.matchIdx=void 0,this.bulletConfigs=[],this.bulletConfigsDeleteOrigin=[],this.addSelectionConfig=void 0,this.isDeleteByIcon=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.bulletListClass=void 0,this.innerBulletConfigs=void 0,this.innerBulletConfigsDeleteOrigin=void 0}handleBulletConfigsChange(t){this.innerBulletConfigs=t.map((t=>Object.assign({},t)))}handleBulletConfigsDeleteOriginChange(t){this.innerBulletConfigsDeleteOrigin=t.map((t=>Object.assign({},t)))}componentWillLoad(){this.handleBulletConfigsChange(this.bulletConfigs)}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}oddsbomBulletToggleHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this,o=[...this.innerBulletConfigs],s=Object.assign({},o[e]);s.isSelected=!s.isSelected,o[e]=s,this.innerBulletConfigs=o,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigs,matchIdx:n,selectionIdx:i})}oddsbomBulletDeleteHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this,o=[...this.innerBulletConfigsDeleteOrigin],s=Object.assign({},o[e]);s.isSelected=!s.isSelected,o[e]=s,this.innerBulletConfigsDeleteOrigin=o,this.oddsbomBulletGroupToggleEvent.emit({bulletSelctionArr:this.innerBulletConfigsDeleteOrigin,matchIdx:n,selectionIdx:i})}oddsbomBulletAddedByMoreBtnDeleteHandler(t){const e=t.detail,{matchIdx:n,selectionIdx:i}=this;this.oddsbomBulletGroupAddedByMoreBtnDelEvent.emit({delText:e,matchIdx:n,selectionIdx:i})}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleOddsbomBulletCallDialog(){const{matchIdx:t,selectionIdx:e}=this;this.oddsbomBulletCallDialogFromGroupEvent.emit({matchIdx:t,selectionIdx:e})}render(){return n("div",{key:"38102a447cf8fafc8f7a7e5a122c7ccbc2ce8b4a",class:"oddsbomBulletGroup",ref:t=>this.stylingContainer=t},n("div",{key:"59ca1df498575356eb3438b45e9431b1bc7ee2dd",class:`oddsbomBulletGroup-list ${this.bulletListClass||""}`},this.innerBulletConfigs.map((t=>n("lottery-oddsbom-bullet",t.isAddMoreBtn?{text:`${this.addSelectionConfig.maxOverScore}+`,disabled:t.isDisabled,isCallDialogBtn:!0,onOddsbomBulletCallDialog:this.handleOddsbomBulletCallDialog.bind(this)}:{text:t.text,idx:t.idx,isSelected:t.isSelected,disabled:t.isDisabled,isDeleteByIcon:this.isDeleteByIcon,isAddedByMoreBtn:t.isAddedByMoreBtn})))))}static get watchers(){return{bulletConfigs:["handleBulletConfigsChange"],bulletConfigsDeleteOrigin:["handleBulletConfigsDeleteOriginChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};U.style=".oddsbomBulletGroup{width:100%}.oddsbomBulletGroup .oddsbomBulletGroup-list{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.oddsbomBulletGroup .selection-bullet-list{justify-content:flex-end}";const A=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),G=z(I,{extraSVGAttrs:{width:"18px",height:"18px",fill:"#0d196e"}}),N=z(I,{extraSVGAttrs:{width:"16px",height:"16px",fill:"#1367e7"}}),V=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),E=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),F=class{constructor(n){t(this,n),this.oddsQueryLineChangeEvent=e(this,"oddsQueryLineChange",7),this.oddschartFillInEvent=e(this,"oddschartFillIn",7),this.oddsQueryChangeEvent=e(this,"oddsQueryChange",7),this.handleSearch=async()=>{const t=this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input"),e=await Promise.all(Array.from(t).map((t=>t.getValue())));if(e.length!=2*this.matchInfo.length)return void b({theme:"warning",message:m("pleaseFillIn",this.language)});const n=[...this.matchSelection],i=[];for(let t=0;t<e.length;t+=2){const o=e[t],s=e[t+1],a=t/2;o&&s&&(i.push([[`${o}:${s}`]]),n[a]=[o,s])}if(this.matchSelection=[...n],i.length>0){const t=await p(JSON.stringify(i));this.oddsQueryLineChangeEvent.emit({lineSelectionBase64:t,offset:0}),this.hasFillInSelection=!0}},this.handleGroupClick=t=>{this.selectedGroupIndex=t},this.toggleFilterIcon=()=>{this.isAscend=!this.isAscend,this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({ascending:this.isAscend,offset:0,lineSelectionBase64:""})},this.handlePrevPage=()=>{this.curPage>=1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset-this.limit,lineSelectionBase64:""}))},this.handleNextPage=()=>{this.curPage<this.totalPage-1&&(this.selectedGroupIndex=-1,this.oddsQueryChangeEvent.emit({offset:this.offset+this.limit,lineSelectionBase64:""}))},this.matchInfo=void 0,this.oddsInfo=void 0,this.total=void 0,this.curPage=void 0,this.limit=void 0,this.offset=void 0,this.filterdOdds=void 0,this.isSearching=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.isLoading=!1,this.language="en",this.translationUrl="",this.isAscend=!0,this.selectedGroupIndex=-1,this.matchSelection=[],this.hasFillInSelection=!1}async initOddsChart(){this.oddsQueryChangeEvent.emit({offset:0,ascending:!0,lineSelectionBase64:""})}async closeOddsChart(){this.hasFillInSelection=!1,this.selectedGroupIndex=-1,this.matchSelection=[],this.isAscend=!0,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleMatchInfoChange(t){this.matchSelection=t.map((()=>[-1,-1]))}componentWillLoad(){this.translationUrl&&g(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get totalPage(){return Math.ceil(this.total/this.limit)}generateBulletGroup(t,e,i){let o;try{o=JSON.parse(t)}catch(t){return console.error("Failed to parse line JSON:",t),n("div",{class:"error-message"},"Invalid data format")}let s=o.map((t=>t[0])).map((t=>t[0]));const a=this.selectedGroupIndex===i;return n("div",{class:"oddsbom-oddschart-selection--group",onClick:this.handleGroupClick.bind(this,i)},n("div",{class:"oddsbom-oddschart-selection--group-wrap",style:{flexBasis:160*s.length+"px"}},s.map(((t,e)=>{const i=t.split(":");return n("div",{class:"oddsbom-oddschart-selection-item",key:e},n("div",{class:"oddsbom-oddschart-selection-item--1"},n("lottery-oddsbom-bullet",{text:i[0],"is-reading":!0,"is-selected":a})),n("div",{class:"oddsbom-oddschart-selection-item--2"},n("lottery-oddsbom-bullet",{text:i[1],"is-reading":!0,"is-selected":a})))}))),n("div",{class:"oddsbom-oddschart-selection-odds"},n("div",{class:"oddsbom-oddschart-selection-odds--text"},f(e)),a&&n("div",{class:"oddsbom-oddschart-selection-odds--fillIn"},n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),size:"small",variant:"outline",onClick:this.handleFillIn.bind(this,s),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))}handleFillIn(t){this.oddschartFillInEvent.emit({fillInNums:t})}clearMatchSelection(){this.hasFillInSelection=!1,this.matchItemsContainer&&this.matchItemsContainer.querySelectorAll("lottery-oddsbom-oddschart-input").forEach((t=>{t.clearValue()}))}fillInMatchSelection(){const t=[];this.matchSelection.forEach((e=>{t.push(`${e[0]}:${e[1]}`)})),this.handleFillIn(t)}render(){var t,e;return n("div",{key:"e7c7c883ae3e911cb828a7076e0cb9fa73ddd2af",class:"oddsbom-oddschart",ref:t=>this.stylingContainer=t},(null===(t=this.matchInfo)||void 0===t?void 0:t.length)&&(null===(e=this.oddsInfo)||void 0===e?void 0:e.length)?this.matchInfo&&n("div",{class:"oddsbom-oddschart-container"},n("div",{class:"oddsbom-oddschart-wrap"},n("div",{class:"oddsbom-oddschart-match",ref:t=>this.matchItemsContainer=t},this.matchInfo.map(((t,e)=>n("div",{class:"oddsbom-oddschart-match-item",key:e},n("div",{class:"oddsbom-oddschart-match-item-name"},n("div",{class:"oddsbom-oddschart-match-item-name--home"},`${e+1}. ${t.eventName.split("vs")[0]}`),n("div",{class:"oddsbom-oddschart-match-item-name--delimiter"},"vs"),n("div",{class:"oddsbom-oddschart-match-item-name--away"},`${t.eventName.split("vs")[1]}`)),n("div",{class:"oddsbom-oddschart-match-item-input"},n("lottery-oddsbom-oddschart-input",null),n("lottery-oddsbom-oddschart-input",null))))),n("div",{class:"oddsbom-oddschart-match-search"},n("lottery-oddsbom-ticket-button",{text:m("search",this.language),variant:"outline",onClick:this.handleSearch}))),this.hasFillInSelection&&!this.isSearching&&(this.filterdOdds?n("div",{class:"oddsbom-oddschart-input-wrap"},n("div",{class:"oddsbom-oddschart-input"},this.matchSelection.map((t=>n("div",{class:"oddsbom-oddschart-input-item"},n("lottery-oddsbom-bullet",{text:t[0],"is-reading":!0,"is-selected":!0}),n("lottery-oddsbom-bullet",{text:t[1],"is-reading":!0,"is-selected":!0})))),n("div",{class:"oddsbom-oddschart-input-odds"},f(this.filterdOdds))),n("div",{class:"oddsbom-oddschart-input-operation"},n("lottery-oddsbom-ticket-button",{text:m("clear",this.language),variant:"outline",size:"small",onClick:this.clearMatchSelection.bind(this)}),n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),variant:"outline",size:"small",onClick:this.fillInMatchSelection.bind(this)}))):n("div",{class:"oddsbom-oddschart-input-empty"},n("div",null,n("span",{innerHTML:N,style:{marginRight:"6px",height:"16px"}}),n("span",{style:{fontSize:"14px"}},m("noBets",this.language))),n("div",{class:"oddsbom-oddschart-input-empty-operation"},n("lottery-oddsbom-ticket-button",{text:m("clear",this.language),variant:"text",size:"small",onClick:this.clearMatchSelection.bind(this)}),n("lottery-oddsbom-ticket-button",{text:m("fillIn",this.language),variant:"text",size:"small",onClick:this.fillInMatchSelection.bind(this)})))),n("div",{class:"oddsbom-oddschart-match-filter"},(this.isLoading||this.isSearching)&&n("div",{class:"progress-bar"}),n("span",{onClick:this.toggleFilterIcon,class:"arrow "+(this.isAscend?"ascend":""),innerHTML:A})),n("div",{class:"oddsbom-oddschart-selection"},this.oddsInfo.map(((t,e)=>this.generateBulletGroup(t.lineSelection,t.odds,e)))),n("div",{class:"oddsbom-oddschart-pagination"},n("div",{class:"oddsbom-oddschart-pagination-wrap"},n("div",{class:"oddsbom-oddschart-pagination-prev "+(this.curPage<1?"disabled":""),onClick:this.handlePrevPage},n("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:V})),n("div",{class:"oddsbom-oddschart-pagination-page"},`${this.curPage+1} / ${this.totalPage}`),n("div",{class:"oddsbom-oddschart-pagination-next "+(this.curPage>=this.totalPage-1?"disabled":""),onClick:this.handleNextPage},n("div",{class:"oddsbom-oddschart-pagination-icon",innerHTML:E})))))):n("div",{class:"empty-wrap"},n("span",{innerHTML:G,style:{marginRight:"6px",height:"18px"}}),n("span",{class:"empty-wrap-text",style:{fontSize:"18px"}},m("noBets",this.language))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],matchInfo:["handleMatchInfoChange"]}}};F.style='.oddsbom-oddschart {\n container-type: inline-size;\n}\n.oddsbom-oddschart-container {\n position: relative;\n}\n.oddsbom-oddschart-match {\n display: flex;\n align-items: flex-end;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-match-item {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-basis: 160px;\n}\n.oddsbom-oddschart-match-item-name {\n margin-bottom: 8px;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbom-oddschart-match-item-name--home, .oddsbom-oddschart-match-item-name--away, .oddsbom-oddschart-match-item-name--delimiter {\n font-size: 13px;\n height: 16px;\n line-height: 16px;\n overflow: hidden;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-match-item-input {\n display: flex;\n justify-content: space-between;\n}\n.oddsbom-oddschart-match-search {\n flex-basis: 130px;\n text-align: center;\n}\n.oddsbom-oddschart-match-filter {\n display: flex;\n justify-content: flex-end;\n padding: 2px;\n position: relative;\n padding-top: 4px;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbom-oddschart-input {\n display: flex;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-empty {\n padding: 12px;\n border: 1px solid var(--emw--color-primary-variant, #1367e7);\n background-color: var(--emw--color-tertiary, #e3f2fd);\n width: 50%;\n min-width: 240px;\n max-width: 360px;\n margin: 4px auto;\n border-radius: 6px;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n}\n.oddsbom-oddschart-input-empty-operation {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-top: 4px;\n}\n.oddsbom-oddschart-input-wrap {\n display: flex;\n flex-direction: column;\n gap: 10px;\n margin-bottom: 4px;\n}\n.oddsbom-oddschart-input-item {\n display: flex;\n align-items: center;\n flex-basis: 160px;\n justify-content: center;\n gap: 5px;\n}\n.oddsbom-oddschart-input-odds {\n flex-basis: 130px;\n display: flex;\n align-items: center;\n font-size: 14px;\n text-indent: 16px;\n}\n.oddsbom-oddschart-input-operation {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n}\n.oddsbom-oddschart-selection--group {\n display: flex;\n margin-bottom: 8px;\n}\n.oddsbom-oddschart-selection--group-wrap {\n display: flex;\n border-radius: 4px;\n}\n.oddsbom-oddschart-selection--group-wrap:hover {\n background: var(--emw--color-gray-50, #f5f5f5);\n cursor: pointer;\n}\n.oddsbom-oddschart-selection-item {\n display: flex;\n flex-basis: 160px;\n justify-content: center;\n gap: 10px;\n}\n.oddsbom-oddschart-selection-odds {\n display: flex;\n gap: 12px;\n align-items: center;\n flex-basis: 130px;\n position: relative;\n text-indent: 16px;\n}\n.oddsbom-oddschart-selection-odds--text {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-selection-odds--fillIn {\n position: absolute;\n right: 0;\n}\n@container (max-width: 430px) {\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds {\n text-indent: unset;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-odds--fillIn {\n right: -22px;\n }\n .oddsbom-oddschart .oddsbom-oddschart-selection-item {\n gap: 4px;\n }\n}\n.oddsbom-oddschart .arrow {\n transition: transform 0.3s ease;\n font-size: 16px;\n display: inline-flex;\n cursor: pointer;\n fill: var(--emw--color-typography, #000);\n display: flex;\n justify-content: center;\n flex-basis: 130px;\n}\n.oddsbom-oddschart .arrow.ascend {\n transform: rotate(180deg);\n}\n\n.empty-wrap {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.empty-wrap-text {\n color: var(--emw--color-typography, #000);\n}\n\n.oddsbom-oddschart-pagination {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: 10px;\n padding-right: 16px;\n}\n.oddsbom-oddschart-pagination-wrap {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 18px;\n}\n.oddsbom-oddschart-pagination-prev, .oddsbom-oddschart-pagination-next {\n cursor: pointer;\n}\n.oddsbom-oddschart-pagination-prev.disabled, .oddsbom-oddschart-pagination-next.disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.oddsbom-oddschart-pagination-icon {\n display: flex;\n height: 18px;\n align-items: center;\n fill: var(--emw--color-typography, #000);\n}\n.oddsbom-oddschart-pagination-page {\n font-size: 14px;\n color: var(--emw--color-typography, #000);\n}\n\n.progress-bar {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 2px;\n background-color: var(--emw--color-gray-100, #e6e6e6);\n overflow: hidden;\n}\n.progress-bar::after {\n content: "";\n display: block;\n width: 20%;\n height: 100%;\n background-color: var(--emw--color-primary, #0d196e);\n animation: progress 1.5s linear infinite;\n}\n\n@keyframes progress {\n 0% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(500%);\n }\n}';const J=class{constructor(n){t(this,n),this.valueChange=e(this,"valueChange",7),this.handleInputChange=t=>{const e=t.target.value.trim();this.valueChange.emit(e)},this.handleKeyDown=t=>{"Enter"===t.key&&this.inputElement.blur()},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.value=""}async getValue(){return this.inputElement.value}async clearValue(){this.inputElement&&(this.inputElement.value=""),this.value=""}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return n("div",{key:"027256f6e35e605b7a9afb83e81a099343615f96",class:"oddscharts-input",ref:t=>this.stylingContainer=t},n("input",{key:"fc8e961ee6701f8bb57349c9ead508af2d2b448f",ref:t=>this.inputElement=t,type:"text",inputMode:"numeric",value:this.value,onInput:this.handleInputChange,onKeyDown:this.handleKeyDown,autocomplete:"one-time-code"}))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};J.style=".oddscharts-input{display:inline-flex;padding:2px}.oddscharts-input input{width:32px;height:32px;text-align:center;font-size:14px;font-weight:bold;line-height:32px;border:2px solid var(--emw--color-gray-100, #e6e6e6);border-radius:4px;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000);text-transform:uppercase}.oddscharts-input input:focus{outline:none;border-color:var(--emw--color-primary, #0d196e);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));border-width:2px}.oddscharts-input input:disabled{background-color:var(--emw--color-gray-50, #f5f5f5);border-color:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-150, #6f6f6f);cursor:not-allowed}.oddscharts-input input.error{border-color:var(--emw--color-error, #ff3d00)}.oddscharts-input input.error:focus{box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}";const W=class{constructor(n){t(this,n),this.oddsbomBoardClearEvent=e(this,"oddsbomBoardClear",7),this.oddsbomAddMoreToMatchEvent=e(this,"oddsbomAddMoreToMatch",7),this.ticketBoardInfo=void 0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.translationUrl="",this.addSelectionConfig=void 0,this.bulletsConfig=void 0,this.isInputInvalid=!1,this.errorMessage="",this.dialogConfig={width:"400px",visible:!1,onConfirm:()=>this.handleFillInAddMore(),onCancel:()=>this.handleCloseAddMoreDialog()},this.curAddMoreInfo={matchIdx:0,selectionIdx:0,value:""}}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.translationUrl&&u(JSON.parse(this.translationUrl))}handleOddsbomBulletGroupToggle(t){const{bulletConfigArr:e}=t.detail;this.bulletsConfig=e}handleOddsbomBulletCallDialogFromGroup(t){const{matchIdx:e,selectionIdx:n}=t.detail;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{matchIdx:e,selectionIdx:n}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0})}handleFillInAddMore(){if(this.isInputInvalid)return void this.handleCloseAddMoreDialog();const{matchIdx:t,selectionIdx:e,value:n}=this.curAddMoreInfo;this.oddsbomAddMoreToMatchEvent.emit({matchIdx:t,selectionIdx:e,value:n}),this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""})}handleCloseAddMoreDialog(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:""}),this.isInputInvalid=!1,this.errorMessage=""}handleClearAllSelection(){this.oddsbomBoardClearEvent.emit(),b({message:m("selectionCleared",this.language),renderOne:!0})}validateInput(t){const e=Number(t);if(isNaN(e))return this.isInputInvalid=!0,void(this.errorMessage=m("enterValidNumber",this.language));if(e<y||e>this.addSelectionConfig.maxScore)return this.isInputInvalid=!0,void(this.errorMessage=m("enterNumberBetween",this.language,{min:y,max:this.addSelectionConfig.maxScore}));const{matchIdx:n,selectionIdx:i}=this.curAddMoreInfo;if(this.ticketBoardInfo[n].addSelections[i].some((e=>Number(e)===Number(t))))return this.isInputInvalid=!0,void(this.errorMessage=m("numberAlreadySelected",this.language));this.isInputInvalid=!1,this.errorMessage=""}handleInputChange(t){const e=t.target.value;this.curAddMoreInfo=Object.assign(Object.assign({},this.curAddMoreInfo),{value:e}),this.validateInput(e)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){return n("div",{key:"e5ca4eb7ad8945ab24c8fd400b0b7704bdb69f6e",class:"oddsbomTicketBoard",ref:t=>this.stylingContainer=t},n("div",{key:"5cf3ab87b72e81a169ffbe65084e86b38cb76ef3",class:"oddsbomTicketBoard-btn"},n("lottery-oddsbom-ticket-button",{key:"d8ebcd3faf085333b94d8a61b10c274a075b0d8a",onClick:this.handleClearAllSelection.bind(this),text:m("clearAll",this.language),variant:"outline"})),this.ticketBoardInfo.length?n("div",{class:"oddsbomTicketBoard-list"},this.ticketBoardInfo.map(((t,e)=>n("div",{class:"oddsbomTicketBoard-item"},n("div",{class:"oddsbomTicketBoard-item-header"},`${e+1}. ${t.matchName}`),n("div",{class:"oddsbomTicketBoard-item-match"},n("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[0]),n("div",{class:"oddsbomTicketBoard-item-match--right"},n("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[0],selectionIdx:0,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))),n("div",{class:"oddsbomTicketBoard-item-match"},n("div",{class:"oddsbomTicketBoard-item-match--left"},t.matchName.split("vs")[1]),n("div",{class:"oddsbomTicketBoard-item-match--right"},n("lottery-oddsbom-bullet-group",{bulletConfigs:t.selections[1],selectionIdx:1,matchIdx:e,addSelectionConfig:this.addSelectionConfig}))))))):n("div",{class:"oddsbomTicketBoard-noData"},m("noTicketBoard",this.language)),n("lottery-tipping-dialog",{key:"d70640fde439f49c4234b144c25c8a71486477d2",visible:this.dialogConfig.visible,width:this.dialogConfig.width,onCancel:this.handleCloseAddMoreDialog.bind(this)},n("div",{key:"8f6f15ec60cde94c4074e4b4d8c966e26608e577",class:"addSelectionDialog"},n("div",{key:"8a78285c454dd4414d167a4ea913df7040646c81",class:"addSelectionDialog-title"},m("enterScoreUpTo",this.language,{maxScore:this.addSelectionConfig.maxScore})),n("input",{key:"0a9139c2beb9627e14fa811f46f552a0e9a07af0",type:"text",class:{"dialog-input":!0,invalid:this.isInputInvalid},value:this.curAddMoreInfo.value,onInput:this.handleInputChange.bind(this)}),n("div",{key:"b537f8fd54aa70e043a1e319a4aabef85e8e458a",class:"error-message"},this.errorMessage)),n("div",{key:"8aa06cf57c03e73fd9c4cead9670d9f8a539d4ca",slot:"footer",class:"addSelectionDialog-footer"},n("lottery-oddsbom-ticket-button",{key:"9db45725204f7fb16407adbdc7ee77f88c2a2dc8",onClick:this.dialogConfig.onCancel,text:m("cancel",this.language),variant:"outline"}),n("lottery-oddsbom-ticket-button",{key:"10cc96b0f5bd1ef5431e1347b6a142797113d458",onClick:this.dialogConfig.onConfirm,text:m("confirm",this.language),variant:"primary",disabled:!this.curAddMoreInfo.value||this.isInputInvalid}))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};W.style=".oddsbomTicketBoard {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n container-type: inline-size;\n min-height: 220px;\n}\n.oddsbomTicketBoard-noData {\n display: flex;\n justify-content: center;\n height: 200px;\n align-items: center;\n}\n.oddsbomTicketBoard-btn {\n display: flex;\n justify-content: flex-end;\n margin: 16px;\n margin-bottom: unset;\n}\n.oddsbomTicketBoard-item {\n display: flex;\n gap: 16px;\n flex-direction: column;\n padding: 24px;\n}\n.oddsbomTicketBoard-item:not(:last-child) {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBoard-item-header {\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBoard-item-match--left {\n width: 130px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBoard-item-match--right {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 12px;\n justify-content: space-evenly;\n}\n@container (max-width: 320px) {\n .oddsbomTicketBoard-item-match--left {\n width: 100px;\n max-width: 100px;\n }\n}\n\n.dialog-input {\n width: 100%;\n padding: 8px;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n box-sizing: border-box;\n margin-top: 10px;\n}\n\n.dialog-input.invalid,\n.dialog-input.invalid:focus {\n border-color: var(--emw--color-error, #ff3d00);\n outline-color: var(--emw--color-error, #ff3d00);\n}\n\n.error-message {\n color: var(--emw--color-error, #ff3d00);\n font-size: 12px;\n margin-top: 4px;\n}\n\n.addSelectionDialog-title {\n color: var(--emw--color-typography, #000);\n}\n.addSelectionDialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 18px;\n}";const P=class{constructor(e){t(this,e),this.handleClick=t=>{if(this.disabled)return;const e=this.host.shadowRoot.querySelector(".btn");if(!e)return;const n=e.getBoundingClientRect(),i=Math.max(n.width,n.height),o={top:t.clientY-n.top-i/2,left:t.clientX-n.left-i/2,size:i};this.ripples=[...this.ripples,o],setTimeout((()=>{this.ripples=this.ripples.filter((t=>t!==o))}),600)},this.variant="primary",this.size="medium",this.disabled=!1,this.loading=!1,this.text=void 0,this.mbSource=void 0,this.language="en",this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.ripples=[]}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentWillLoad(){this.translationUrl&&g(this.translationUrl)}render(){const{variant:t,disabled:e,size:i}=this,o=e||this.loading;return n("button",{key:"c0c87c36c7c3f48286729c9133eded8338f137be",class:{btn:!0,[`btn--${t}`]:!0,[`btn--${i}`]:!0,"btn--loading":this.loading},disabled:o,onClick:this.handleClick},this.loading?n("div",{class:"loading-container"},n("span",{class:"content"},this.text||m("loading",this.language)),n("span",{class:"spinner"})):n("span",{class:"content"},this.text),n("div",{key:"8276ad215063ef4217b11f65fb189d6fcccd1f24",class:"ripple-container"},this.ripples.map(((t,e)=>n("span",{key:e,class:"ripple",style:{top:`${t.top}px`,left:`${t.left}px`,width:`${t.size}px`,height:`${t.size}px`}})))))}get host(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};P.style=':host{display:inline-block;font-family:"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;font-weight:500;cursor:pointer;outline:none;overflow:hidden;transition:background-color 0.2s, border-color 0.2s, color 0.2s;user-select:none;-webkit-tap-highlight-color:transparent}.btn .content{position:relative}.btn:disabled{cursor:not-allowed;opacity:0.5}.btn .loading-container{display:flex;align-items:center}.btn--loading{position:relative}.btn .spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:white;animation:spin 1s ease-in-out infinite;margin-left:0.5em;vertical-align:middle}.btn--small .spinner{width:0.8em;height:0.8em}.btn--large .spinner{width:1.2em;height:1.2em}@keyframes spin{to{transform:rotate(360deg)}}.btn--primary{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff)}.btn--primary:hover:not(:disabled){background-color:var(--emw--color-primary-variant, #1367e7)}.btn--primary:active:not(:disabled){background-color:#08104a}.btn--outline .spinner,.btn--dashed .spinner,.btn--text .spinner{border-top-color:currentColor;border-color:rgba(0, 0, 0, 0.2)}.btn--outline{background-color:var(--emw--color-background, #fff);border-color:#dcdcdc;color:var(--emw--color-typography, #000)}.btn--outline:hover:not(:disabled){background-color:var(--emw--color-background-tertiary, #ccc);border-color:#a6a6a6}.btn--outline:active:not(:disabled){background-color:#e6e6e6}.btn--dashed{background-color:transparent;border-style:dashed;border-color:#dcdcdc;color:#333}.btn--dashed:hover:not(:disabled){border-color:#a6a6a6;color:#0052d9}.btn--text{background-color:transparent;color:#0052d9;border-color:transparent}.btn--text:hover:not(:disabled){background-color:#f2f2f2}.btn--text:active:not(:disabled){background-color:#e6e6e6}.btn--small{height:28px;font-size:12px;padding:0 12px}.btn--medium{height:34px;font-size:14px;padding:0 18px}.btn--large{height:40px;font-size:16px;padding:0 24px}.ripple-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit}.ripple{position:absolute;border-radius:50%;background-color:rgba(255, 255, 255, 0.3);transform:scale(0);animation:ripple-animation 600ms linear}.btn--outline .ripple,.btn--dashed .ripple,.btn--text .ripple{background-color:rgba(0, 0, 0, 0.1)}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}';const R=z({icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},{extraSVGAttrs:{width:"16px",height:"16px",fill:""}}),Q=class{constructor(e){t(this,e),this.togglePanel=()=>{this.expanded=!this.expanded},this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.ticketBoardInfo=void 0,this.language="en",this.expanded=!1,this._ticketBoardInfo=[]}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this._ticketBoardInfo=JSON.parse(JSON.stringify(this.ticketBoardInfo))}componentDidLoad(){this.stylingContainer&&(this.mbSource&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&l(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&c(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleTicketBoradInfoChange(t){this._ticketBoardInfo=JSON.parse(JSON.stringify(t))}generateMatchItemSelection(t,e,i,o,s,a,d){return n("div",{class:"oddsbomSelection-item"},n("div",{class:"oddsbomSelection-item-number"},i+1),n("div",{class:"oddsbomSelection-item-selection"},n("div",{class:"oddsbomSelection-item-team"},n("div",{class:"oddsbomSelection-item-team-name"},t),n("div",{class:"oddsbomSelection-item-team-selection"},n("lottery-oddsbom-bullet-group",{bulletConfigs:o,selectionIdx:0,matchIdx:i,bulletConfigsDeleteOrigin:a,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"}))),n("div",{class:"oddsbomSelection-item-team"},n("div",{class:"oddsbomSelection-item-team-name"},e),n("div",{class:"oddsbomSelection-item-team-selection"},n("lottery-oddsbom-bullet-group",{bulletConfigs:s,selectionIdx:1,matchIdx:i,bulletConfigsDeleteOrigin:d,isDeleteByIcon:!0,bulletListClass:"selection-bullet-list"})))))}generateSelectionList(){return this._ticketBoardInfo?this._ticketBoardInfo.map(((t,e)=>{var n,i,o,s;const{matchName:a,selections:d}=t,r=a.split("vs")[0],l=a.split("vs")[1],c=d[0].filter((t=>t.isSelected)),h=d[1].filter((t=>t.isSelected)),b=null!==(i=null===(n=t.addSelections)||void 0===n?void 0:n[0])&&void 0!==i?i:[],m=null!==(s=null===(o=t.addSelections)||void 0===o?void 0:o[1])&&void 0!==s?s:[];return b.length>0&&b.forEach((t=>{c.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),m.length>0&&m.forEach((t=>{h.push({text:t,idx:-1,isSelected:!0,isDisabled:!1,isAddedByMoreBtn:!0})})),this.generateMatchItemSelection(r,l,e,c,h,d[0],d[1])})):null}render(){return n("div",{key:"79091bce57ba35ef7a7758daeae94b9847eb712d",class:"oddsbomSelection",ref:t=>this.stylingContainer=t},n("div",{key:"a4913e648d8deb508c68360d572d26b98843f0c5",class:"oddsbomSelection-panel"},n("div",{key:"fd6b9551dddd71f5eed648dc1ab8bbf6aeb8a92f",class:"oddsbomSelection-panel--header",onClick:this.togglePanel},n("div",{key:"88930dc74331ca9f6edec7a23c8d42cf9ca9a0e4",class:"oddsbomSelection-panel--header-title"},m("myChoices",this.language)),n("div",{key:"94b2bd032ea3b9ebcb9e406e74a52a4d1c55a67f",class:"oddsbomSelection-panel--header-icon "+(this.expanded?"expanded":""),innerHTML:R})),n("div",{key:"cf337fd2477ae140c6d7898f7742c326164f7282",class:"oddsbomSelection-panel--content "+(this.expanded?"open":"closed")},n("div",{key:"8dd02d79a4254278b415ec11bdd1906940cb6074",class:"oddsbomSelection-panel--content-thead"},n("div",{key:"113407e0f9ee69d449202ab1065623187bce2fbe",class:"oddsbomSelection-panel--content-thead-item"},m("teams",this.language)),n("div",{key:"fe38c2ad17fdea759f48938742808e622c4076be",class:"oddsbomSelection-panel--content-thead-item"},m("scores",this.language))),n("div",{key:"a750c174d5ac53bc77346907828a4bdc96f60e32",class:"oddsbomSelection-panel--content-tbody"},this.generateSelectionList()))))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoradInfoChange"]}}};Q.style=".oddsbomSelection {\n container-type: inline-size;\n}\n.oddsbomSelection-panel--header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n cursor: pointer;\n height: 40px;\n padding: 0 4px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--header:hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n border-radius: 4px;\n}\n.oddsbomSelection-panel--header-title {\n font-size: 16px;\n font-weight: 600;\n user-select: none;\n}\n.oddsbomSelection-panel--header-icon {\n transition: transform 0.2s;\n}\n.oddsbomSelection-panel--header-icon.expanded {\n transform: rotate(180deg);\n}\n.oddsbomSelection-panel--content {\n overflow: hidden;\n max-height: 0;\n transition: max-height 0.3s ease, padding 0.3s ease;\n padding: 0 12px;\n font-size: 14px;\n user-select: none;\n}\n.oddsbomSelection-panel--content.open {\n max-height: 19000px;\n padding: 10px 12px;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomSelection-panel--content.closed {\n max-height: 0;\n padding-top: 0;\n padding-bottom: 0;\n}\n.oddsbomSelection-panel--content-thead {\n display: flex;\n justify-content: space-between;\n padding: 0 24px;\n margin-bottom: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-panel--content-tbody {\n padding: 0 18px;\n}\n.oddsbomSelection-item {\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 8px;\n}\n.oddsbomSelection-item:not(:last-child) {\n border-bottom: 1px dashed var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomSelection-item-number {\n position: absolute;\n left: -18px;\n top: 48%;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-selection {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.oddsbomSelection-item-team {\n display: flex;\n justify-content: space-between;\n align-items: center;\n min-height: 32px;\n color: var();\n}\n.oddsbomSelection-item-team-name {\n max-width: 140px;\n width: 140px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomSelection-item-team-selection {\n display: flex;\n gap: 6px;\n flex: 1;\n justify-content: flex-end;\n}\n@container (max-width: 430px) {\n .oddsbomSelection-item-team-name {\n max-width: 80px;\n width: 80px;\n }\n}\n\n.oddsbomSelection-panel--header-icon {\n fill: var(--emw--color-typography, #000);\n}";const X=["ro","en","fr","ar","hr"],Y={en:{cancel:"Cancel",confirm:"Confirm"},ro:{cancel:"Anulează",confirm:"Confirmă"},fr:{cancel:"Annuler",confirm:"Confirmer"},ar:{cancel:"إلغاء",confirm:"تأكيد"},hr:{cancel:"Odustani",confirm:"Potvrdi"}},K=(t,e)=>{const n=e;return Y[void 0!==n&&X.includes(n)?n:"en"][t]},q=class{constructor(n){t(this,n),this.open=e(this,"open",7),this.close=e(this,"close",7),this.confirm=e(this,"confirm",7),this.cancel=e(this,"cancel",7),this.wasVisible=!1,this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.visible=void 0,this.dialogTitle="",this.width="520px",this.closable=!0,this.mask=!0,this.maskClosable=!0,this.animationDuration=300,this.fullscreen=!1,this.showFooter=!0,this.showCancelBtn=!0,this.language="en",this.translationUrl=void 0,this.dialogClass=void 0,this.dialogStyle=void 0,this.confirmLoading=!1}handleClientStylingChange(t,e){t!=e&&l(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&c(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&h(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.translationUrl&&(async t=>{if(t)try{const n=await fetch(t);if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const i=await n.json();e=i,Object.keys(e).forEach((t=>{for(let n in e[t])Y[t][n]=e[t][n]}))}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}var e})(this.translationUrl)}componentWillUpdate(){this.visible&&!this.wasVisible?this.disableBodyScroll():!this.visible&&this.wasVisible&&this.enableBodyScroll(),this.wasVisible=this.visible}disconnectedCallback(){this.enableBodyScroll(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}disableBodyScroll(){document.body.style.overflow="hidden"}enableBodyScroll(){document.body.style.overflow=""}handleClose(){this.cancel.emit()}handleMaskClick(){this.maskClosable&&this.cancel.emit()}handleConfirm(){this.confirm.emit()}render(){const t=Object.assign({width:"number"==typeof this.width?`${this.width}px`:this.width,"--duration":`${this.animationDuration}ms`},this.dialogStyle||{}),e=["dialog-wrapper",this.visible?"dialog-wrapper-visible":""],i=["mask",this.visible?"mask-enter":"mask-leave"],o=["dialog",this.visible?"dialog-enter":"dialog-leave",this.fullscreen?"fullscreen":"",this.dialogClass].filter(Boolean).join(" ");return n("div",{key:"05dd671f10bdebda6f138e8f8039f4bc0533fe98",class:e.join(" "),ref:t=>this.stylingContainer=t},n("div",{key:"6e814e02770149de5495617039750461fc0a42d1",class:i.join(" "),onClick:this.handleMaskClick.bind(this)}),n("div",{key:"4cbc5db20317ef1b0808fc4a91a53fa8b86c5f4f",part:"dialog",class:o,style:t,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},(this.dialogTitle||this.closable)&&n("div",{key:"85dc705676a37e6ea2828a7b683fc54b0eb77d17",class:"dialog-header"},n("h2",{key:"85b7472d2b72801dfae19a24fc2018f3c1f1529a",id:"dialog-title",class:"dialog-title"},this.dialogTitle),this.closable&&n("button",{key:"8089aaecfe511558055ee9f64214ff97030eb2a9",class:"close-btn",onClick:this.handleClose.bind(this)},"x")),n("div",{key:"776255540f30d757caa3fcaee747c79ac638ae76",class:"dialog-content",style:{maxHeight:"calc(100vh - 62px)",overflowY:"auto"}},n("slot",{key:"5ef964615b6ab70a9e561f8efac8fe952fe47b4e"})),this.showFooter&&n("div",{key:"8927a0991d916caf7852d58db996b9818687da30",class:"dialog-footer"},n("slot",{key:"84de0306994ec62220ae30fa2881dadbae5544ea",name:"footer"},this.showCancelBtn&&n("button",{key:"ee87b8c3918c1f4d007923a2498142b3af2740a0",class:"cancel-btn",onClick:this.handleClose.bind(this)},K("cancel",this.language)),n("button",{key:"935cff86381b21fff07c2d4156b29779c50e5ce3",class:"confirm-btn",onClick:this.handleConfirm.bind(this),disabled:this.confirmLoading},this.confirmLoading?n("div",{class:"Loading",innerHTML:z(M,{extraSVGAttrs:{width:"20px",height:"20px",fill:"currentColor"}})}):K("confirm",this.language))))))}get el(){return i(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};q.style=".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background:var(--emw--color-mask-dialog-background, rgba(0, 0, 0, 0.5));opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-background, #fff);border-radius:12px;box-shadow:0 4px 32px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;min-width:60px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));background-color:var(--emw--color-background, #fff);color:var(--emw--color-typography, #000)}.dialog-footer .cancel-btn:hover{background-color:var(--emw--color-background-tertiary, #ccc)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-typography-normalized, #ffffff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}.Loading{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.Loading svg{animation:spin 1s linear infinite;transform-origin:center}@keyframes spin{100%{transform:rotate(360deg)}}";export{O as lottery_banner,H as lottery_oddsbom_bullet,U as lottery_oddsbom_bullet_group,F as lottery_oddsbom_oddschart,J as lottery_oddsbom_oddschart_input,W as lottery_oddsbom_ticket_board,P as lottery_oddsbom_ticket_button,Q as lottery_oddsbom_ticket_selection,q as lottery_tipping_dialog}
@@ -6654,4 +6654,4 @@ Bt("vaadin-tabs",w`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}p(ul);const pl="__WIDGET_GLOBAL_STYLE_CACHE__";function ml(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function vl(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function fl(t,e,i,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[pl]||(window[pl]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const s=t.getRootNode(),o=window[pl];let r=o[e]?.sheet;r?o[e].refCount=o[e].refCount+1:(r=new CSSStyleSheet,r.replaceSync(i),o[e]={sheet:r,refCount:1});const n=s.adoptedStyleSheets||[];n.includes(r)||(s.adoptedStyleSheets=[...n,r])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[pl][e]){const t=window[pl][e];t.refCount>1?t.refCount=t.refCount-1:delete window[pl][e]}o()},i}function bl(t){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(t)}function gl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function yl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function wl(t){yl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===bl(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var _l={};function xl(){return _l}function kl(t){yl(1,arguments);var e=wl(t);return e.setHours(0,0,0,0),e}var Cl=36e5;function Al(t){yl(1,arguments);var e=wl(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function Sl(t){yl(1,arguments);var e=wl(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=Al(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=Al(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function Tl(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=xl(),c=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=wl(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function zl(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=wl(t),c=d.getUTCFullYear(),u=xl(),p=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,p),m.setUTCHours(0,0,0,0);var v=Tl(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var b=Tl(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=b.getTime()?c:c-1}function Il(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const Dl=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return Il("yy"===e?s%100:s,e.length)},Ol=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Il(i+1,2)},El=function(t,e){return Il(t.getUTCDate(),e.length)},Ml=function(t,e){return Il(t.getUTCHours()%12||12,e.length)},Bl=function(t,e){return Il(t.getUTCHours(),e.length)},Pl=function(t,e){return Il(t.getUTCMinutes(),e.length)},Nl=function(t,e){return Il(t.getUTCSeconds(),e.length)},jl=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return Il(Math.floor(s*Math.pow(10,i-3)),e.length)};var Fl={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return Dl(t,e)},Y:function(t,e,i,s){var o=zl(t,s),r=o>0?o:1-o;return"YY"===e?Il(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):Il(r,e.length)},R:function(t,e){return Il(Sl(t),e.length)},u:function(t,e){return Il(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return Il(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return Il(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return Ol(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return Il(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){yl(1,arguments);var i=wl(t),s=Tl(i,e).getTime()-function(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=xl(),c=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=zl(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),Tl(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Il(o,e.length)},I:function(t,e,i){var s=function(t){yl(1,arguments);var e=wl(t),i=Al(e).getTime()-function(t){yl(1,arguments);var e=Sl(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Al(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):Il(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):El(t,e)},D:function(t,e,i){var s=function(t){yl(1,arguments);var e=wl(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):Il(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Il(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Il(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return Il(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Ml(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bl(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pl(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Nl(t,e)},S:function(t,e){return jl(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Ll(o);case"XXXX":case"XX":return Rl(o);default:return Rl(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return Ll(o);case"xxxx":case"xx":return Rl(o);default:return Rl(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+$l(o,":");default:return"GMT"+Rl(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+$l(o,":");default:return"GMT"+Rl(o,":")}},t:function(t,e,i,s){return Il(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return Il((s._originalDate||t).getTime(),e.length)}};function $l(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+Il(r,2)}function Ll(t,e){return t%60==0?(t>0?"-":"+")+Il(Math.abs(t)/60,2):Rl(t,e)}function Rl(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+Il(Math.floor(o/60),2)+i+Il(o%60,2)}const Vl=Fl;var ql=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Wl=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ul={p:Wl,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return ql(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",ql(o,e)).replace("{{time}}",Wl(r,e))}};const Hl=Ul;var Gl=["D","DD"],Yl=["YY","YYYY"];function Kl(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Xl(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Ql,Zl={date:Xl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Xl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},th={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function eh(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function ih(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const sh={code:"en-US",formatDistance:function(t,e,i){var s,o=Jl[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Zl,formatRelative:function(t){return th[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:eh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:eh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:eh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:eh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:eh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Ql={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Ql.matchPattern);if(!i)return null;var s=i[0],o=t.match(Ql.parsePattern);if(!o)return null;var r=Ql.valueCallback?Ql.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:ih({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ih({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ih({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ih({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ih({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var oh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nh=/^'([^]*?)'?$/,ah=/''/g,lh=/[a-zA-Z]/;function hh(t,e,i){var s,o,r,n,a,l,h,d,c,u,p,m,v,f,b,g,y,w;yl(2,arguments);var _=String(e),x=xl(),k=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:x.locale)&&void 0!==s?s:sh,C=gl(null!==(r=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(c=x.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=gl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=wl(t);if(!function(t){if(yl(1,arguments),!function(t){return yl(1,arguments),t instanceof Date||"object"===bl(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=wl(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var T=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(S),z=function(t,e){return yl(2,arguments),function(t,e){yl(2,arguments);var i=wl(t).getTime(),s=gl(e);return new Date(i+s)}(t,-gl(e))}(S,T),I={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return _.match(rh).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Hl[e])(t,k.formatLong):t})).join("").match(oh).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(nh))?r[1].replace(ah,"'"):o;var a=Vl[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===Yl.indexOf(s)||Kl(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==Gl.indexOf(s))||Kl(s,e,String(t)),a(z,s,k.localize,I);if(n.match(lh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function dh(t){return yl(1,arguments),function(t,e){yl(2,arguments);var i=kl(t),s=kl(e);return i.getTime()===s.getTime()}(t,Date.now())}function ch(t,e){var i;yl(1,arguments);var s=gl(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(uh.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],uh.timeZoneDelimiter.test(i.date)&&(i.date=t.split(uh.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=uh.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var n=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(ph);if(!i)return new Date(NaN);var s=!!i[4],o=fh(i[1]),r=fh(i[2])-1,n=fh(i[3]),a=fh(i[4]),l=fh(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(yh[e]||(wh(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(wh(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(n.restDateString,n.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a,l=o.getTime(),h=0;if(r.time&&(h=function(t){var e=t.match(mh);if(!e)return NaN;var i=bh(e[1]),s=bh(e[2]),o=bh(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*Cl+6e4*s+1e3*o:NaN}(r.time),isNaN(h)))return new Date(NaN);if(!r.timezone){var d=new Date(l+h),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return a=function(t){if("Z"===t)return 0;var e=t.match(vh);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*Cl+6e4*o):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(l+h+a)}var uh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ph=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,mh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fh(t){return t?parseInt(t):1}function bh(t){return t&&parseFloat(t.replace(",","."))||0}var gh,yh=[31,null,31,30,31,30,31,31,30,31,30,31];function wh(t){return t%400==0||t%4==0&&t%100!=0}!function(t){t.OPEN="OPEN"}(gh||(gh={}));const _h=10;var xh;!function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(xh||(xh={}));const kh=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}));function Ch(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n=kh(),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}const Ah=({message:t,theme:e="success",renderOne:i=!1})=>{window.postMessage({type:"ShowNotificationToast",message:t,theme:e,renderOne:i})},Sh=({date:t,type:e="date",format:i})=>{try{const s=ch(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return hh(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),hh(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function Th(t,e){return null==t||""===t||(0!==t||!e)&&!1!==t&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let i=0;for(let s=0;s<e;s++){if(!Th(t[s]))return!1;i++}return i===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let i=0;for(const e of Object.values(t)){if(!Th(e))return!1;i++}return i===e}(t):!t)}function zh(t){return new Promise(((e,i)=>{try{const s=new Blob([t],{type:"text/plain;charset=utf-8"}),o=new FileReader;o.onload=()=>{if("string"==typeof o.result){const t=o.result.split(",")[1];e(t)}else i(new Error("无法转换为Base64编码"))},o.onerror=()=>i(o.error),o.readAsDataURL(s)}catch(t){i(t)}}))}function Ih(t,e=2){return Number(t).toFixed(e)}function Dh(t,e="€"){return null==t?"":`${e}${t?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(t):0}`}const Oh="TICKET_INVALID_TOKEN",Eh=["ro","en","fr","ar","hr","zh"],Mh={en:{noTicketBoard:"No ticket board available.",selectionCleared:"Your selection has been cleared.",clearAll:"Clear All",stopAt:"Stop at",turnover:"Turnover: ",pleaseFillIn:"Please fill in all the selection input!",fillIn:"Fill in",noBets:"Sorry. No bets have been placed so far. Check back later!",search:"Search",clear:"Clear",oddsChart:"Odds Chart",ticketSuccess:"Ticket purchased successfully.",ticketFailed:"Failed to submit tickets.",stakePerLine:"Stake per Line:",lowestOdds:"Lowest Odds:",highestOdds:"Highest Odds:",orderSummary:"ORDER SUMMARY",ticket:"Ticket",lines:"Lines",line:"Line",total:"Total",submit:"Submit",loading:"Loading",enterValidNumber:"Please enter a valid number.",enterNumberBetween:"Please enter a number between {min} and {max}.",numberAlreadySelected:"This number has already been selected.",enterScoreUpTo:"Please enter the score (Up to {maxScore})",myChoices:"My Choices",teams:"Teams",scores:"Scores",euro:"Euro",cancel:"Cancel",confirm:"Confirm"},ro:{},fr:{},ar:{},hr:{}},Bh=(t,e,i)=>{const s=e;let o=Mh[void 0!==s&&Eh.includes(s)?s:"en"][t];return i&&Object.keys(i).forEach((t=>{o=o.replace(`{${t}}`,i[t])})),o},Ph=t=>{Object.keys(t).forEach((e=>{for(let i in t[e])Mh[e][i]=t[e][i]}))},Nh=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const i=await e.json();Ph(i)}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}},jh=class{constructor(e){t(this,e),this.onStakeChange=t=>{this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{stake:t.detail.value})},this.generateSelection=()=>this.ticketBoardInfo.map((t=>{const e=t.addSelections[0].map((t=>String(t))),i=t.selections[0].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(e),s=t.addSelections[1].map((t=>String(t))),o=((t,e)=>{const i=[];for(const s of t)for(const t of e)i.push(`${s}:${t}`);return i})(i,t.selections[1].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(s));return[[...o]]})),this.customStyle="\n :host{\n --lottery-banner-info-label-color: var(--emw--color-typography-inverse, #fff);\n --lottery-banner-info-value-color: var(--emw--color-typography-inverse, #fff);\n \n .lottery-banner__title{\n color: var(--emw--color-typography-inverse, #fff);\n }\n }\n",this.endpoint=void 0,this.gameId=void 0,this.sessionId=void 0,this.drawId=void 0,this.playerId="",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isLoading=!1,this.isLoadingOdds=!1,this.isSubmitLoading=!1,this.drawSubmitAvailable=!1,this.matchInfo=void 0,this.ticketBoardInfo=[],this.gameConfig={minScore:0,maxScore:10,minCount:1,maxCount:10,stopTime:"",gameBackEndId:"",stakes:[{label:"1",value:"1"}]},this.addSelectionConfig={needAddMoreBtn:!1,maxOverScore:0,maxScore:0},this.gameInfo={stake:1,quickPick:2,lines:0},this.dialogConfig={title:"",visible:!1},this.oddsData={highest:"",lowest:"",filterdOdds:"",isSearching:!1},this.oddsInfo={count:0,items:[],total:0},this.oddsQuery={limit:10,offset:0,ascending:!0},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&ml(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&vl(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&fl(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleTimerStop(){this.drawSubmitAvailable=!0}componentWillLoad(){this.translationUrl&&Nh(this.translationUrl),this.initData()}async initData(){await this.fetchGameData(),await this.fetchOddsData()}async fetchGameData(){this.isLoading=!0;try{await this.getGameConfig(),await this.getDrawEventData(),this.initTicketBoard()}catch(t){}finally{this.isLoading=!1}}async fetchOddsData(){this.isLoadingOdds=!0;try{const t=await this.getOddsData({ascending:!0,limit:10,offset:0});this.oddsData.lowest=t.minItem.odds,this.oddsData.highest=t.maxItem.odds,this.oddsInfo=t}catch(t){}finally{this.isLoadingOdds=!1}}async componentDidLoad(){this.stylingContainer&&(this.mbSource&&fl(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&ml(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vl(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get canSubmit(){return this.ticketBoardInfo.every((t=>t.selections.every(((e,i)=>e.filter((t=>t.isSelected)).length+t.addSelections[i].length>=this.gameConfig.minCount))))}get oddsChartDialogWidth(){var t;return 0==(null===(t=this.oddsInfo)||void 0===t?void 0:t.total)?"480px":this.ticketBoardInfo.length<=2?"360px":180*this.ticketBoardInfo.length+48+"px"}formattedStopTime(t){let e="";return t?(e=Sh({date:t,format:"dd/MM/yyyy HH:mm"}),dh(new Date(t))&&(e=Sh({date:t,format:"HH:mm"})),e):e}updateBulletDisabledState(t,e,i,s){const o=t[e],r=o.selections[i],n=o.addSelections[i],a=r.filter((t=>t.isSelected)).length+n.length,l=r.map((t=>t.isSelected?t:Object.assign(Object.assign({},t),{isDisabled:a===s})));return t[e].selections[i]=l,t}getMatchCombinationCount(t){return(t.selections[0].filter((t=>t.isSelected)).length+t.addSelections[0].length)*(t.selections[1].filter((t=>t.isSelected)).length+t.addSelections[1].length)}calculateTotalLines(){return this.canSubmit?this.ticketBoardInfo.reduce(((t,e)=>t*this.getMatchCombinationCount(e)),1):0}updateLines(){const t=this.calculateTotalLines();this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{lines:t})}handleTicketBoardInfoChange(){this.updateLines()}handleCanSubmitChange(){this.updateLines()}initTicketBoard(){const{minScore:t,maxScore:e}=this.gameConfig;e-t+1>10&&(this.addSelectionConfig.needAddMoreBtn=!0,this.addSelectionConfig.maxOverScore=t+10,this.addSelectionConfig.maxScore=e),this.ticketBoardInfo=this.matchInfo.map((t=>({matchId:t.eventId,matchName:t.eventName,minScore:0,maxScore:0,selections:[[],[]],addSelections:[[],[]]}))),this.ticketBoardInfo=this.ticketBoardInfo.map((i=>{let s=new Array(e-t+1).fill(0).map(((e,i)=>({text:i+t,idx:i,isSelected:!1,isDisabled:!1,isAddMoreBtn:!1})));return this.addSelectionConfig.needAddMoreBtn&&(s=s.slice(0,10),s.push({text:this.addSelectionConfig.maxOverScore,idx:-1,isSelected:!1,isDisabled:!1,isAddMoreBtn:!0})),Object.assign(Object.assign({},i),{minScore:t,maxScore:e,selections:[s,s]})}))}async getGameConfig(){var t,e,i,s,o,r,n,a,l,h,d,c;try{const u=await Ch(`${this.endpoint}/games/${this.gameId}`,"GET");this.rawGameConfig=u,console.log("in getgameconfig",u,this.rawGameConfig);const{minRow:p=0,maxRow:m=0}=null!==(r=null===(o=null===(s=null===(i=null===(e=null===(t=null==u?void 0:u.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.outcomeRanges)||void 0===i?void 0:i[0])||void 0===s?void 0:s.bettingType)||void 0===o?void 0:o[0])&&void 0!==r?r:{},{minCount:v=0,maxCount:f=0}=null!==(c=null===(d=null===(h=null===(l=null===(a=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.poolGame)||void 0===a?void 0:a.outcomeRanges)||void 0===l?void 0:l[0])||void 0===h?void 0:h.selectRule)||void 0===d?void 0:d[0])&&void 0!==c?c:{},b=p,g=m;this.gameConfig=Object.assign(Object.assign({},this.gameConfig),{minScore:b,maxScore:g,minCount:v,maxCount:f,gameBackEndId:u.type}),this.gameConfig.stakes=u.rules.stakes.map((t=>({value:t.value,label:t.value}))),this.gameConfig.stopTime=u.currentDraw.wagerCloseTime,this.dialogConfig.title=`${u.name} - ${Bh("oddsChart",this.language)}`,this.updateSaleStatistics()}catch(t){}}async updateSaleStatistics(){var t;this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await Ch(`${t}/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpoint,gameId:null===(t=this.rawGameConfig)||void 0===t?void 0:t.type,drawId:this.drawId})}async getDrawEventData(){try{const t=await Ch(`${this.endpoint}/poolgames/${this.rawGameConfig.type}/draws/${this.drawId}/matchConfig`,"GET");this.matchInfo=t}catch(t){}}handleOddsBomBulletGroupToggle(t){const{bulletSelctionArr:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].selections[s]=e,o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBulletAddedByMoreBtnDelete(t){const{delText:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].addSelections[s]=o[i].addSelections[s].filter((t=>t!==e)),o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomAddMoreToMatch(t){const{matchIdx:e,selectionIdx:i,value:s}=t.detail;let o=[...this.ticketBoardInfo];const r=[...o[e].addSelections[i],s].sort(((t,e)=>t-e));o[e].addSelections[i]=r,o=this.updateBulletDisabledState(o,e,i,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBoardClear(){this.initTicketBoard()}handleOddsChartFillIn(t){const{fillInNums:e}=t.detail,i=e.map((t=>t.split(":")[0])).map((t=>Number(t))),s=e.map((t=>t.split(":")[1])).map((t=>Number(t)));let o=[...this.ticketBoardInfo];o=this.ticketBoardInfo.map(((t,e)=>{let o=[...t.addSelections[0]],r=[...t.addSelections[1]];return i[e]>=this.addSelectionConfig.maxOverScore&&(o=[...o,i[e]]),s[e]>=this.addSelectionConfig.maxOverScore&&(r=[...r,s[e]]),Object.assign(Object.assign({},t),{selections:[t.selections[0].map((t=>i[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t)),t.selections[1].map((t=>s[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t))],addSelections:[o,r]})})),this.ticketBoardInfo=[...o]}async handleSubmit(){var t,e;const i=this.generateSelection(),s={playerId:this.playerId,tickets:[{startingDrawId:null===(e=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===e?void 0:e.id,addon:!1,amount:String(Number(this.gameInfo.stake)*this.gameInfo.lines),currency:this.rawGameConfig.rules.stakes[0].currency,selection:[{poolGameSelections:i,multiplier:!1,quickPick:!1,betType:this.rawGameConfig.rules.poolGame.playTypes[0].betTypeId,betName:this.rawGameConfig.rules.betTypes[0].name,stake:Number(this.gameInfo.stake)}],multiplier:!1,multipierNum:1,quickPick:!1,gameName:this.rawGameConfig.name}]};try{this.isSubmitLoading=!0;const t=new URL(`${this.endpoint}/tickets`);await(({body:t,sessionId:e,url:i})=>{const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${e}`,"X-Idempotency-Key":kh()},body:JSON.stringify(t)};return fetch(i,s).then((t=>{if(401===t.status)throw new Error(Oh);if(t.status>300)throw new Error(t.statusText);return t.json().then((e=>{if(!(i=e.tickets)||!i.length||i.some((t=>t.state!==xh.Purchased)))throw new Error(t.statusText);var i;return e}))}))})({body:s,sessionId:this.sessionId,url:t.href}),Ah({message:Bh("ticketSuccess",this.language)}),this.initTicketBoard()}catch(t){if(t.message===Oh)return void Ah({message:Oh,theme:"error"});Ah({message:Bh("ticketFailed",this.language),theme:"error"})}finally{this.isSubmitLoading=!1,this.updateSaleStatistics(),this.fetchOddsData()}}async getOddsData(t){var e;try{const{drawId:i}=this,s=Object.assign({gameId:this.rawGameConfig.type,drawId:i,bettingType:null!==(e=this.rawGameConfig.rules.poolGame.playTypes[0].bettingType)&&void 0!==e?e:""},t);return await Ch(`${this.endpoint}/poolgames/statistic/realtime/odds${function(t){const e={};Object.entries(t).forEach((([t,i])=>{Th(i,!0)||(e[t]=i)}));const i=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return i?`?${i}`:""}(s)}`,"GET")}catch(t){}}handleOpenOddsChart(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0}),this.fetchOddsData(),setTimeout((()=>{this.childRef?this.childRef.initOddsChart():console.warn("childRef is not defined")}),0)}handleCloseOddsChart(){var t;this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),null===(t=this.childRef)||void 0===t||t.closeOddsChart(),this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),{limit:10,offset:0,ascending:!0})}async handleOddsQueryChange(t){this.isLoadingOdds=!0;try{const e=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),e),this.oddsInfo=await this.getOddsData(this.oddsQuery)}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.isLoadingOdds=!1}}async handleOddsQueryLineChange(t){var e,i;this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!0});try{const s=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),s);const o=await this.getOddsData(this.oddsQuery);this.oddsData.filterdOdds=null===(i=null===(e=null==o?void 0:o.items)||void 0===e?void 0:e[0])||void 0===i?void 0:i.odds}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!1})}}render(){var t,i,s,o,r,n,a,l,h;return e("div",{key:"f0775a7c362a03a33ac20457188068aa0ce48354",class:"oddsbomTicketBet",ref:t=>this.stylingContainer=t},e("lottery-banner",{key:"d6295e570f3298edf45f350239801f8f063eff56","client-styling":this.customStyle+(this.clientStyling||""),"client-styling-Url":this.clientStylingUrl,stopTime:null===(i=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===i?void 0:i.wagerCloseTime,startTime:null===(o=null===(s=this.rawGameConfig)||void 0===s?void 0:s.currentDraw)||void 0===o?void 0:o.wagerStartTime,"banner-title":null===(r=this.rawGameConfig)||void 0===r?void 0:r.name,turnover:Dh(null===(a=null===(n=this.saleStatisticsInfo)||void 0===n?void 0:n.wagerSegment)||void 0===a?void 0:a.totalSalesCrossDraw),language:this.language,"translation-url":this.translationUrl,onLotteryBannerTimerStop:this.handleTimerStop.bind(this)}),e("div",{key:"d9bd489f7cf0ad9f73077b628bca44dfab2fc91d",class:"oddsbomTicketBet-content"},e("div",{key:"f5d3e4d4b65d7509d6bd6f814dac4647e80c50a6",class:"oddsbomTicketBet-info"},e("div",{key:"f0e1b67ceda9a38fb3138fb29f55b534214b5795",class:"oddsbomTicketBet-info-game"},e("div",{key:"ada63d0ab805b54a226b62715c7672374a83ed61",class:"oddsbomTicketBet-info--item"},e("div",{key:"92ff6de719be487a56f08bc48d62f291fc8b79a1",class:"oddsbomTicketBet-info--key"},Bh("stakePerLine",this.language)),e("div",{key:"3722dd3ab9776baa3bfbf647aa40eff95e007013",class:"oddsbomTicketBet-info--value"},e("vaadin-select",{key:"54d229c67a42553d2a0b5e0f96294e405131f6d0",items:this.gameConfig.stakes,value:this.gameInfo.stake,"on-value-changed":this.onStakeChange.bind(this),"no-vertical-overlap":!0,noVerticalOverlap:!0})))),e("div",{key:"7e80950d1226ff63e89fed209794c060d5176f3e",class:"oddsbomTicketBet-info-odds"},e("div",{key:"0f1a09ece238d93903cdb112288432a8a55bbd20",class:"oddsbomTicketBet-info--item"},e("div",{key:"4ec2924724a012dc7bed43894e6f7562421c1208",class:"oddsbomTicketBet-info--key"},Bh("lowestOdds",this.language)),e("div",{key:"d4f28da5c8e3f7610e4e1163782a36a4c777d480",class:"oddsbomTicketBet-info--value"},this.oddsData.lowest?Ih(this.oddsData.lowest):"-")),e("div",{key:"58fa14a7499a43abce8eca8f043d47e1ba22cabb",class:"oddsbomTicketBet-info--item"},e("div",{key:"a1b9f7833607fbc3ed55e314c38b33c38d34508c",class:"oddsbomTicketBet-info--key"},Bh("highestOdds",this.language)),e("div",{key:"d99b550f1ae3bf2011d57a67bde599c636d68664",class:"oddsbomTicketBet-info--value"},this.oddsData.highest?Ih(this.oddsData.highest):"-")),e("div",{key:"f6abd44cc6e1df99a697443924efc5e2ede2fcd6",class:"oddsbomTicketBet-info---chart"},e("lottery-oddsbom-ticket-button",{key:"d2d838ba7d84d329fd540b8859fb3570d6f005c5",onClick:this.handleOpenOddsChart.bind(this),text:Bh("oddsChart",this.language),variant:"outline",language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))),e("div",{key:"32aad7e0028be7758cc949f37a48e769bbaacd84",class:"oddsbomTicketBet-ticketArea"},e("div",{key:"c00815324856d997e9f4394d6addde25465fab9c",class:"oddsbomTicketBet-ticketArea--left"},this.isLoading?e("div",{class:"loading-wrap"},e("div",{class:"skeleton-content"},e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}))):e("div",null,e("lottery-oddsbom-ticket-board",{ticketBoardInfo:this.ticketBoardInfo,addSelectionConfig:this.addSelectionConfig,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))),e("div",{key:"93dab7abb5c4e9c082ab96926a5df1ceea61b64e",class:"oddsbomTicketBet-ticketArea--right"},e("div",{key:"ea281d41c59f3ceeb76a519bf524ce15c5a5a127",class:"oddsbomTicketBet-ticketArea--right-title"},Bh("orderSummary",this.language)),e("div",{key:"c1b1b412901c79563619d76266eff4467fd07164",class:"oddsbomTicketBet-ticketArea--right-info"},e("div",{key:"ef6f25d5645dcd4aa178239a3a4301705c66f3d4",class:"oddsbomTicketBet-ticketArea--right-ticketCount"},`${Bh("ticket",this.language)}: ${this.gameInfo.lines} ${Bh(this.gameInfo.lines>1?"lines":"line",this.language)} x ${this.gameInfo.stake} ${Bh("euro",this.language)}`," "),e("div",{key:"ac48136f5bc1a55fc9796e83e203e9aac4dddb6f",class:"oddsbomTicketBet-ticketArea--right-delimiter"}),e("div",{key:"230293f2cbcdc3962e1f6e98310bc40ed1f04b99",class:"oddsbomTicketBet-ticketArea--right-ticketTotal"},`${Bh("total",this.language)}: ${Number(this.gameInfo.stake)*this.gameInfo.lines} ${Bh("euro",this.language)}`),e("div",{key:"24a3a84176d72c8098a582134acefed43d48bafc",class:"oddsbomTicketBet-ticketArea--right-selection"},e("lottery-oddsbom-ticket-selection",{key:"22717285732f431ae675660ae250a92888e06b93",ticketBoardInfo:this.ticketBoardInfo,language:this.language}))),e("div",{key:"9ca871d783ca89fece97657f2a2e353514935ede",class:"oddsbomTicketBet-ticketArea--right-submitBtn"},e("lottery-oddsbom-ticket-button",{key:"15705cd9a0ecc16e60760cbd0d11bf9fd769e0db",text:Bh("submit",this.language),variant:"primary",size:"large",disabled:!this.canSubmit||!this.drawSubmitAvailable,loading:this.isSubmitLoading,onClick:this.handleSubmit.bind(this),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))),e("lottery-tipping-dialog",{key:"bb09bbdb10166ee77426e1588815b92a1beece8d",dialogTitle:this.dialogConfig.title,visible:this.dialogConfig.visible,onCancel:this.handleCloseOddsChart.bind(this),showFooter:!1,width:this.oddsChartDialogWidth},e("lottery-oddsbom-oddschart",{key:"923403e2949c98f6f1781ba40761dc3baccd3b56",ref:t=>this.childRef=t,matchInfo:this.matchInfo,oddsInfo:null===(l=this.oddsInfo)||void 0===l?void 0:l.items,curPage:this.oddsQuery.offset/this.oddsQuery.limit,total:null===(h=this.oddsInfo)||void 0===h?void 0:h.total,limit:this.oddsQuery.limit,offset:this.oddsQuery.offset,isLoading:this.isLoadingOdds,isSearching:this.oddsData.isSearching,filterdOdds:this.oddsData.filterdOdds,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}}};jh.style=":host {\n --vaadin-input-field-background: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-color: var(--emw--color-gray-100, #e6e6e6);\n --vaadin-input-field-invalid-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-width: 1px;\n}\n\n.oddsbomTicketBet {\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner {\n background-color: var(--emw--color-primary, #0d196e);\n height: 52px;\n padding: 0 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner-title {\n font-size: 22px;\n font-style: italic;\n font-weight: bold;\n}\n.oddsbomTicketBet-banner-info {\n position: absolute;\n right: 20px;\n display: flex;\n gap: 16px;\n align-items: center;\n}\n.oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n color: var(--emw--color-typography-inverse, #fff);\n background-color: var(--emw--color-secondary, #405c8b);\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding: 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n.oddsbomTicketBet-ticketArea {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding: 18px 0;\n}\n.oddsbomTicketBet-ticketArea--left {\n max-width: 60%;\n min-width: 50%;\n margin-bottom: 12px;\n}\n.oddsbomTicketBet-ticketArea--right {\n width: 40%;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbomTicketBet-ticketArea--right-title {\n font-size: 20px;\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-info {\n width: 96%;\n padding-left: 4%;\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount, .oddsbomTicketBet-ticketArea--right-ticketTotal {\n height: 40px;\n line-height: 40px;\n font-size: 18px;\n user-select: none;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount {\n margin-top: 40px;\n}\n.oddsbomTicketBet-ticketArea--right-delimiter {\n width: 100%;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBet-ticketArea--right-submitBtn {\n display: flex;\n align-items: center;\n margin-top: 20px;\n}\n.oddsbomTicketBet-info {\n margin-left: 5%;\n padding: 18px;\n}\n.oddsbomTicketBet-info-game, .oddsbomTicketBet-info-odds {\n display: flex;\n flex-wrap: wrap;\n}\n.oddsbomTicketBet-info-game {\n gap: 24px;\n margin-bottom: 20px;\n}\n.oddsbomTicketBet-info-odds {\n gap: 26px;\n}\n.oddsbomTicketBet-info--item {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBet-info--key {\n font-weight: bold;\n margin-right: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-info--value {\n color: var(--emw--color-typography, #000);\n}\n@container (max-width: 430px) {\n .oddsbomTicketBet-banner-title {\n font-size: 20px;\n position: absolute;\n left: 6px;\n }\n .oddsbomTicketBet-banner-info {\n right: 4px;\n gap: 4px;\n }\n .oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n height: 32px;\n line-height: 32px;\n font-weight: bold;\n font-size: 16px;\n }\n .oddsbomTicketBet-ticketArea {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--left {\n max-width: 100%;\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right-info {\n width: 90%;\n padding-left: unset;\n }\n}\n@container (min-width: 1680px) {\n .oddsbomTicketBet-ticketArea {\n width: 80%;\n }\n .oddsbomTicketBet-ticketArea--left {\n width: 50%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 50%;\n }\n .oddsbomTicketBet-info {\n margin-left: 10%;\n }\n}\n\n.loading-wrap {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n padding: 20px 0;\n}\n\n.skeleton-content {\n display: flex;\n flex-direction: column;\n gap: 29px;\n align-items: center;\n}\n\n.skeleton-item {\n background: var(--emw--color-gray-50, #f5f5f5);\n border-radius: 4px;\n}\n\n.skeleton-animated {\n animation: skeleton-shimmer 1.5s infinite linear;\n background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 37%, #f0f0f0 63%);\n background-size: 200% 100%;\n}\n\n@keyframes skeleton-shimmer {\n to {\n background-position: 100% 0;\n }\n}";export{jh as L,_h as M,vl as a,fl as b,Ah as c,Bh as d,zh as e,hh as f,Nh as g,Ih as h,dh as i,Ph as j,ch as p,yl as r,ml as s,wl as t}
6657
+ `}static get is(){return"vaadin-tabs"}}p(ul);const pl="__WIDGET_GLOBAL_STYLE_CACHE__";function ml(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function vl(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function fl(t,e,i,s=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!s)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[pl]||(window[pl]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{if(!t)return;const s=t.getRootNode(),o=window[pl];let r=o[e]&&o[e].sheet;r?o[e].refCount=o[e].refCount+1:(r=new CSSStyleSheet,r.replaceSync(i),o[e]={sheet:r,refCount:1});const n=s.adoptedStyleSheets||[];n.includes(r)||(s.adoptedStyleSheets=[...n,r])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[pl][e]){const t=window[pl][e];t.refCount>1?t.refCount=t.refCount-1:delete window[pl][e]}o()},i}function bl(t){return bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(t)}function gl(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function yl(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function wl(t){yl(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===bl(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var _l={};function xl(){return _l}function kl(t){yl(1,arguments);var e=wl(t);return e.setHours(0,0,0,0),e}var Cl=36e5;function Al(t){yl(1,arguments);var e=wl(t),i=e.getUTCDay(),s=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-s),e.setUTCHours(0,0,0,0),e}function Sl(t){yl(1,arguments);var e=wl(t),i=e.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var o=Al(s),r=new Date(0);r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0);var n=Al(r);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}function Tl(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=xl(),c=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.weekStartsOn)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:d.weekStartsOn)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=wl(t),p=u.getUTCDay(),m=(p<c?7:0)+p-c;return u.setUTCDate(u.getUTCDate()-m),u.setUTCHours(0,0,0,0),u}function zl(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=wl(t),c=d.getUTCFullYear(),u=xl(),p=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==s?s:null===(l=u.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(c+1,0,p),m.setUTCHours(0,0,0,0);var v=Tl(m,e),f=new Date(0);f.setUTCFullYear(c,0,p),f.setUTCHours(0,0,0,0);var b=Tl(f,e);return d.getTime()>=v.getTime()?c+1:d.getTime()>=b.getTime()?c:c-1}function Il(t,e){for(var i=t<0?"-":"",s=Math.abs(t).toString();s.length<e;)s="0"+s;return i+s}const Dl=function(t,e){var i=t.getUTCFullYear(),s=i>0?i:1-i;return Il("yy"===e?s%100:s,e.length)},Ol=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Il(i+1,2)},El=function(t,e){return Il(t.getUTCDate(),e.length)},Ml=function(t,e){return Il(t.getUTCHours()%12||12,e.length)},Bl=function(t,e){return Il(t.getUTCHours(),e.length)},Pl=function(t,e){return Il(t.getUTCMinutes(),e.length)},Nl=function(t,e){return Il(t.getUTCSeconds(),e.length)},jl=function(t,e){var i=e.length,s=t.getUTCMilliseconds();return Il(Math.floor(s*Math.pow(10,i-3)),e.length)};var Fl={G:function(t,e,i){var s=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});default:return i.era(s,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var s=t.getUTCFullYear();return i.ordinalNumber(s>0?s:1-s,{unit:"year"})}return Dl(t,e)},Y:function(t,e,i,s){var o=zl(t,s),r=o>0?o:1-o;return"YY"===e?Il(r%100,2):"Yo"===e?i.ordinalNumber(r,{unit:"year"}):Il(r,e.length)},R:function(t,e){return Il(Sl(t),e.length)},u:function(t,e){return Il(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(s);case"QQ":return Il(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,e,i){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(s);case"qq":return Il(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,e,i){var s=t.getUTCMonth();switch(e){case"M":case"MM":return Ol(t,e);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(t,e,i){var s=t.getUTCMonth();switch(e){case"L":return String(s+1);case"LL":return Il(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(t,e,i,s){var o=function(t,e){yl(1,arguments);var i=wl(t),s=Tl(i,e).getTime()-function(t,e){var i,s,o,r,n,a,l,h;yl(1,arguments);var d=xl(),c=gl(null!==(i=null!==(s=null!==(o=null!==(r=null==e?void 0:e.firstWeekContainsDate)&&void 0!==r?r:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==s?s:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),u=zl(t,e),p=new Date(0);return p.setUTCFullYear(u,0,c),p.setUTCHours(0,0,0,0),Tl(p,e)}(i,e).getTime();return Math.round(s/6048e5)+1}(t,s);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Il(o,e.length)},I:function(t,e,i){var s=function(t){yl(1,arguments);var e=wl(t),i=Al(e).getTime()-function(t){yl(1,arguments);var e=Sl(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Al(i)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(s,{unit:"week"}):Il(s,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):El(t,e)},D:function(t,e,i){var s=function(t){yl(1,arguments);var e=wl(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var s=e.getTime();return Math.floor((i-s)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(s,{unit:"dayOfYear"}):Il(s,e.length)},E:function(t,e,i){var s=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"e":return String(r);case"ee":return Il(r,2);case"eo":return i.ordinalNumber(r,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,s){var o=t.getUTCDay(),r=(o-s.weekStartsOn+8)%7||7;switch(e){case"c":return String(r);case"cc":return Il(r,e.length);case"co":return i.ordinalNumber(r,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var s=t.getUTCDay(),o=0===s?7:s;switch(e){case"i":return String(o);case"ii":return Il(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(t,e,i){var s=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,i){var s,o=t.getUTCHours();switch(s=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,i){var s,o=t.getUTCHours();switch(s=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(s,{width:"narrow",context:"formatting"});default:return i.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var s=t.getUTCHours()%12;return 0===s&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Ml(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bl(t,e)},K:function(t,e,i){var s=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},k:function(t,e,i){var s=t.getUTCHours();return 0===s&&(s=24),"ko"===e?i.ordinalNumber(s,{unit:"hour"}):Il(s,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Pl(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Nl(t,e)},S:function(t,e){return jl(t,e)},X:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return Ll(o);case"XXXX":case"XX":return Rl(o);default:return Rl(o,":")}},x:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"x":return Ll(o);case"xxxx":case"xx":return Rl(o);default:return Rl(o,":")}},O:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+$l(o,":");default:return"GMT"+Rl(o,":")}},z:function(t,e,i,s){var o=(s._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+$l(o,":");default:return"GMT"+Rl(o,":")}},t:function(t,e,i,s){return Il(Math.floor((s._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,s){return Il((s._originalDate||t).getTime(),e.length)}};function $l(t,e){var i=t>0?"-":"+",s=Math.abs(t),o=Math.floor(s/60),r=s%60;if(0===r)return i+String(o);var n=e||"";return i+String(o)+n+Il(r,2)}function Ll(t,e){return t%60==0?(t>0?"-":"+")+Il(Math.abs(t)/60,2):Rl(t,e)}function Rl(t,e){var i=e||"",s=t>0?"-":"+",o=Math.abs(t);return s+Il(Math.floor(o/60),2)+i+Il(o%60,2)}const Vl=Fl;var ql=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},Wl=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},Ul={p:Wl,P:function(t,e){var i,s=t.match(/(P+)(p+)?/)||[],o=s[1],r=s[2];if(!r)return ql(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",ql(o,e)).replace("{{time}}",Wl(r,e))}};const Hl=Ul;var Gl=["D","DD"],Yl=["YY","YYYY"];function Kl(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Jl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Xl(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var Ql,Zl={date:Xl({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Xl({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Xl({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},th={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function eh(t){return function(e,i){var s;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,r=null!=i&&i.width?String(i.width):o;s=t.formattingValues[r]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;s=t.values[a]||t.values[n]}return s[t.argumentCallback?t.argumentCallback(e):e]}}function ih(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=i.width,o=e.match(s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var r,n=o[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return r=t.valueCallback?t.valueCallback(l):l,{value:r=i.valueCallback?i.valueCallback(r):r,rest:e.slice(n.length)}}}const sh={code:"en-US",formatDistance:function(t,e,i){var s,o=Jl[t];return s="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},formatLong:Zl,formatRelative:function(t){return th[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:eh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:eh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:eh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:eh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:eh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Ql={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(Ql.matchPattern);if(!i)return null;var s=i[0],o=t.match(Ql.parsePattern);if(!o)return null;var r=Ql.valueCallback?Ql.valueCallback(o[0]):o[0];return{value:r=e.valueCallback?e.valueCallback(r):r,rest:t.slice(s.length)}}),era:ih({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ih({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ih({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ih({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ih({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var oh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,nh=/^'([^]*?)'?$/,ah=/''/g,lh=/[a-zA-Z]/;function hh(t,e,i){var s,o,r,n,a,l,h,d,c,u,p,m,v,f,b,g,y,w;yl(2,arguments);var _=String(e),x=xl(),k=null!==(s=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:x.locale)&&void 0!==s?s:sh,C=gl(null!==(r=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:x.firstWeekContainsDate)&&void 0!==n?n:null===(c=x.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==r?r:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=gl(null!==(p=null!==(m=null!==(v=null!==(f=null==i?void 0:i.weekStartsOn)&&void 0!==f?f:null==i||null===(b=i.locale)||void 0===b||null===(g=b.options)||void 0===g?void 0:g.weekStartsOn)&&void 0!==v?v:x.weekStartsOn)&&void 0!==m?m:null===(y=x.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!k.localize)throw new RangeError("locale must contain localize property");if(!k.formatLong)throw new RangeError("locale must contain formatLong property");var S=wl(t);if(!function(t){if(yl(1,arguments),!function(t){return yl(1,arguments),t instanceof Date||"object"===bl(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=wl(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var T=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(S),z=function(t,e){return yl(2,arguments),function(t,e){yl(2,arguments);var i=wl(t).getTime(),s=gl(e);return new Date(i+s)}(t,-gl(e))}(S,T),I={firstWeekContainsDate:C,weekStartsOn:A,locale:k,_originalDate:S};return _.match(rh).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,Hl[e])(t,k.formatLong):t})).join("").match(oh).map((function(s){if("''"===s)return"'";var o,r,n=s[0];if("'"===n)return(r=(o=s).match(nh))?r[1].replace(ah,"'"):o;var a=Vl[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||-1===Yl.indexOf(s)||Kl(s,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!(-1!==Gl.indexOf(s))||Kl(s,e,String(t)),a(z,s,k.localize,I);if(n.match(lh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return s})).join("")}function dh(t){return yl(1,arguments),function(t,e){yl(2,arguments);var i=kl(t),s=kl(e);return i.getTime()===s.getTime()}(t,Date.now())}function ch(t,e){var i;yl(1,arguments);var s=gl(null!==(i=null==e?void 0:e.additionalDigits)&&void 0!==i?i:2);if(2!==s&&1!==s&&0!==s)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,r=function(t){var e,i={},s=t.split(uh.dateTimeDelimiter);if(s.length>2)return i;if(/:/.test(s[0])?e=s[0]:(i.date=s[0],e=s[1],uh.timeZoneDelimiter.test(i.date)&&(i.date=t.split(uh.timeZoneDelimiter)[0],e=t.substr(i.date.length,t.length))),e){var o=uh.timezone.exec(e);o?(i.time=e.replace(o[1],""),i.timezone=o[1]):i.time=e}return i}(t);if(r.date){var n=function(t,e){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),s=t.match(i);if(!s)return{year:NaN,restDateString:""};var o=s[1]?parseInt(s[1]):null,r=s[2]?parseInt(s[2]):null;return{year:null===r?o:100*r,restDateString:t.slice((s[1]||s[2]).length)}}(r.date,s);o=function(t,e){if(null===e)return new Date(NaN);var i=t.match(ph);if(!i)return new Date(NaN);var s=!!i[4],o=fh(i[1]),r=fh(i[2])-1,n=fh(i[3]),a=fh(i[4]),l=fh(i[5])-1;if(s)return function(t,e,i){return e>=1&&e<=53&&i>=0&&i<=6}(0,a,l)?function(t,e,i){var s=new Date(0);s.setUTCFullYear(t,0,4);var o=7*(e-1)+i+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+o),s}(e,a,l):new Date(NaN);var h=new Date(0);return function(t,e,i){return e>=0&&e<=11&&i>=1&&i<=(yh[e]||(wh(t)?29:28))}(e,r,n)&&function(t,e){return e>=1&&e<=(wh(t)?366:365)}(e,o)?(h.setUTCFullYear(e,r,Math.max(o,n)),h):new Date(NaN)}(n.restDateString,n.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var a,l=o.getTime(),h=0;if(r.time&&(h=function(t){var e=t.match(mh);if(!e)return NaN;var i=bh(e[1]),s=bh(e[2]),o=bh(e[3]);return function(t,e,i){return 24===t?0===e&&0===i:i>=0&&i<60&&e>=0&&e<60&&t>=0&&t<25}(i,s,o)?i*Cl+6e4*s+1e3*o:NaN}(r.time),isNaN(h)))return new Date(NaN);if(!r.timezone){var d=new Date(l+h),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return a=function(t){if("Z"===t)return 0;var e=t.match(vh);if(!e)return 0;var i="+"===e[1]?-1:1,s=parseInt(e[2]),o=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,o)?i*(s*Cl+6e4*o):NaN}(r.timezone),isNaN(a)?new Date(NaN):new Date(l+h+a)}var uh={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},ph=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,mh=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,vh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function fh(t){return t?parseInt(t):1}function bh(t){return t&&parseFloat(t.replace(",","."))||0}var gh,yh=[31,null,31,30,31,30,31,31,30,31,30,31];function wh(t){return t%400==0||t%4==0&&t%100!=0}!function(t){t.OPEN="OPEN"}(gh||(gh={}));const _h=10;var xh;!function(t){t.Settled="Settled",t.Purchased="Purchased",t.Canceled="Canceled"}(xh||(xh={}));const kh=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}));function Ch(t,e="GET",i=null,s={}){return new Promise(((o,r)=>{const n=kh(),a=Object.assign({"Content-Type":"application/json"},s);"GET"!==e&&"HEAD"!==e&&(a["X-Idempotency-Key"]=n);const l={method:e,headers:a,body:null};i&&"GET"!==e&&"HEAD"!==e?l.body=JSON.stringify(i):delete l.body,fetch(t,l).then((t=>t.ok?t.json():t.json().then((e=>{r({status:t.status,statusText:t.statusText,code:e.code||"UNKNOWN_ERROR",message:e.message||"An unknown error occurred",data:e.data||null})}),(()=>r({status:t.status,statusText:t.statusText,code:"PARSE_ERROR",message:"Failed to parse error response"}))))).then((t=>o(t)),(t=>r(t)))}))}const Ah=({message:t,theme:e="success",renderOne:i=!1})=>{window.postMessage({type:"ShowNotificationToast",message:t,theme:e,renderOne:i})},Sh=({date:t,type:e="date",format:i})=>{try{const s=ch(t);if(isNaN(s.getTime()))throw new Error(`Invalid date: ${t}`);if(i)return hh(s,i);let o="dd/MM/yyyy";return"time"===e?o="dd/MM/yyyy HH:mm:ss":"week"===e&&(o="ccc dd/MM/yyyy HH:mm:ss"),hh(s,o)}catch(t){return console.error("Error formatting date:",t.message),""}};function Th(t,e){return null==t||""===t||(0!==t||!e)&&!1!==t&&(Array.isArray(t)?function(t){if(0===t.length)return!0;const e=t.length;let i=0;for(let s=0;s<e;s++){if(!Th(t[s]))return!1;i++}return i===e}(t):"[object Object]"===Object.prototype.toString.call(t)?function(t){if(0===Object.keys(t).length)return!0;const e=Object.keys(t).length;let i=0;for(const e of Object.values(t)){if(!Th(e))return!1;i++}return i===e}(t):!t)}function zh(t){return new Promise(((e,i)=>{try{const s=new Blob([t],{type:"text/plain;charset=utf-8"}),o=new FileReader;o.onload=()=>{if("string"==typeof o.result){const t=o.result.split(",")[1];e(t)}else i(new Error("无法转换为Base64编码"))},o.onerror=()=>i(o.error),o.readAsDataURL(s)}catch(t){i(t)}}))}function Ih(t,e=2){return Number(t).toFixed(e)}function Dh(t,e="€"){return null==t?"":`${e}${t?function(t){if(0===t)return"0";if(!t)return"";const e=(t=t.toString()).split(".");return e[0]=e[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),e.join(".")}(t):0}`}const Oh="TICKET_INVALID_TOKEN",Eh=["ro","en","fr","ar","hr","zh"],Mh={en:{noTicketBoard:"No ticket board available.",selectionCleared:"Your selection has been cleared.",clearAll:"Clear All",stopAt:"Stop at",turnover:"Turnover: ",pleaseFillIn:"Please fill in all the selection input!",fillIn:"Fill in",noBets:"Sorry. No bets have been placed so far. Check back later!",search:"Search",clear:"Clear",oddsChart:"Odds Chart",ticketSuccess:"Ticket purchased successfully.",ticketFailed:"Failed to submit tickets.",stakePerLine:"Stake per Line:",lowestOdds:"Lowest Odds:",highestOdds:"Highest Odds:",orderSummary:"ORDER SUMMARY",ticket:"Ticket",lines:"Lines",line:"Line",total:"Total",submit:"Submit",loading:"Loading",enterValidNumber:"Please enter a valid number.",enterNumberBetween:"Please enter a number between {min} and {max}.",numberAlreadySelected:"This number has already been selected.",enterScoreUpTo:"Please enter the score (Up to {maxScore})",myChoices:"My Choices",teams:"Teams",scores:"Scores",euro:"Euro",cancel:"Cancel",confirm:"Confirm"},ro:{},fr:{},ar:{},hr:{}},Bh=(t,e,i)=>{const s=e;let o=Mh[void 0!==s&&Eh.includes(s)?s:"en"][t];return i&&Object.keys(i).forEach((t=>{o=o.replace(`{${t}}`,i[t])})),o},Ph=t=>{Object.keys(t).forEach((e=>{for(let i in t[e])Mh[e][i]=t[e][i]}))},Nh=async t=>{if(t)try{const e=await fetch(t);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const i=await e.json();Ph(i)}catch(t){console.error("Failed to fetch or parse translations from URL:",t)}},jh=class{constructor(e){t(this,e),this.onStakeChange=t=>{this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{stake:t.detail.value})},this.generateSelection=()=>this.ticketBoardInfo.map((t=>{const e=t.addSelections[0].map((t=>String(t))),i=t.selections[0].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(e),s=t.addSelections[1].map((t=>String(t))),o=((t,e)=>{const i=[];for(const s of t)for(const t of e)i.push(`${s}:${t}`);return i})(i,t.selections[1].filter((t=>t.isSelected)).map((t=>String(t.text))).concat(s));return[[...o]]})),this.customStyle="\n :host{\n --lottery-banner-info-label-color: var(--emw--color-typography-inverse, #fff);\n --lottery-banner-info-value-color: var(--emw--color-typography-inverse, #fff);\n \n .lottery-banner__title{\n color: var(--emw--color-typography-inverse, #fff);\n }\n }\n",this.endpoint=void 0,this.gameId=void 0,this.sessionId=void 0,this.drawId=void 0,this.playerId="",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.isLoading=!1,this.isLoadingOdds=!1,this.isSubmitLoading=!1,this.drawSubmitAvailable=!1,this.matchInfo=void 0,this.ticketBoardInfo=[],this.gameConfig={minScore:0,maxScore:10,minCount:1,maxCount:10,stopTime:"",gameBackEndId:"",stakes:[{label:"1",value:"1"}]},this.addSelectionConfig={needAddMoreBtn:!1,maxOverScore:0,maxScore:0},this.gameInfo={stake:1,quickPick:2,lines:0},this.dialogConfig={title:"",visible:!1},this.oddsData={highest:"",lowest:"",filterdOdds:"",isSearching:!1},this.oddsInfo={count:0,items:[],total:0},this.oddsQuery={limit:10,offset:0,ascending:!0},this.saleStatisticsInfo={}}handleClientStylingChange(t,e){t!=e&&ml(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&vl(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&fl(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleTimerStop(){this.drawSubmitAvailable=!0}componentWillLoad(){this.translationUrl&&Nh(this.translationUrl),this.initData()}async initData(){await this.fetchGameData(),await this.fetchOddsData()}async fetchGameData(){this.isLoading=!0;try{await this.getGameConfig(),await this.getDrawEventData(),this.initTicketBoard()}catch(t){}finally{this.isLoading=!1}}async fetchOddsData(){this.isLoadingOdds=!0;try{const t=await this.getOddsData({ascending:!0,limit:10,offset:0});this.oddsData.lowest=t.minItem.odds,this.oddsData.highest=t.maxItem.odds,this.oddsInfo=t}catch(t){}finally{this.isLoadingOdds=!1}}async componentDidLoad(){this.stylingContainer&&(this.mbSource&&fl(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&ml(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&vl(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}get canSubmit(){return this.ticketBoardInfo.every((t=>t.selections.every(((e,i)=>e.filter((t=>t.isSelected)).length+t.addSelections[i].length>=this.gameConfig.minCount))))}get oddsChartDialogWidth(){var t;return 0==(null===(t=this.oddsInfo)||void 0===t?void 0:t.total)?"480px":this.ticketBoardInfo.length<=2?"360px":180*this.ticketBoardInfo.length+48+"px"}formattedStopTime(t){let e="";return t?(e=Sh({date:t,format:"dd/MM/yyyy HH:mm"}),dh(new Date(t))&&(e=Sh({date:t,format:"HH:mm"})),e):e}updateBulletDisabledState(t,e,i,s){const o=t[e],r=o.selections[i],n=o.addSelections[i],a=r.filter((t=>t.isSelected)).length+n.length,l=r.map((t=>t.isSelected?t:Object.assign(Object.assign({},t),{isDisabled:a===s})));return t[e].selections[i]=l,t}getMatchCombinationCount(t){return(t.selections[0].filter((t=>t.isSelected)).length+t.addSelections[0].length)*(t.selections[1].filter((t=>t.isSelected)).length+t.addSelections[1].length)}calculateTotalLines(){return this.canSubmit?this.ticketBoardInfo.reduce(((t,e)=>t*this.getMatchCombinationCount(e)),1):0}updateLines(){const t=this.calculateTotalLines();this.gameInfo=Object.assign(Object.assign({},this.gameInfo),{lines:t})}handleTicketBoardInfoChange(){this.updateLines()}handleCanSubmitChange(){this.updateLines()}initTicketBoard(){const{minScore:t,maxScore:e}=this.gameConfig;e-t+1>10&&(this.addSelectionConfig.needAddMoreBtn=!0,this.addSelectionConfig.maxOverScore=t+10,this.addSelectionConfig.maxScore=e),this.ticketBoardInfo=this.matchInfo.map((t=>({matchId:t.eventId,matchName:t.eventName,minScore:0,maxScore:0,selections:[[],[]],addSelections:[[],[]]}))),this.ticketBoardInfo=this.ticketBoardInfo.map((i=>{let s=new Array(e-t+1).fill(0).map(((e,i)=>({text:i+t,idx:i,isSelected:!1,isDisabled:!1,isAddMoreBtn:!1})));return this.addSelectionConfig.needAddMoreBtn&&(s=s.slice(0,10),s.push({text:this.addSelectionConfig.maxOverScore,idx:-1,isSelected:!1,isDisabled:!1,isAddMoreBtn:!0})),Object.assign(Object.assign({},i),{minScore:t,maxScore:e,selections:[s,s]})}))}async getGameConfig(){var t,e,i,s,o,r,n,a,l,h,d,c;try{const u=await Ch(`${this.endpoint}/games/${this.gameId}`,"GET");this.rawGameConfig=u,console.log("in getgameconfig",u,this.rawGameConfig);const{minRow:p=0,maxRow:m=0}=null!==(r=null===(o=null===(s=null===(i=null===(e=null===(t=null==u?void 0:u.rules)||void 0===t?void 0:t.poolGame)||void 0===e?void 0:e.outcomeRanges)||void 0===i?void 0:i[0])||void 0===s?void 0:s.bettingType)||void 0===o?void 0:o[0])&&void 0!==r?r:{},{minCount:v=0,maxCount:f=0}=null!==(c=null===(d=null===(h=null===(l=null===(a=null===(n=null==u?void 0:u.rules)||void 0===n?void 0:n.poolGame)||void 0===a?void 0:a.outcomeRanges)||void 0===l?void 0:l[0])||void 0===h?void 0:h.selectRule)||void 0===d?void 0:d[0])&&void 0!==c?c:{},b=p,g=m;this.gameConfig=Object.assign(Object.assign({},this.gameConfig),{minScore:b,maxScore:g,minCount:v,maxCount:f,gameBackEndId:u.type}),this.gameConfig.stakes=u.rules.stakes.map((t=>({value:t.value,label:t.value}))),this.gameConfig.stopTime=u.currentDraw.wagerCloseTime,this.dialogConfig.title=`${u.name} - ${Bh("oddsChart",this.language)}`,this.updateSaleStatistics()}catch(t){}}async updateSaleStatistics(){var t;this.saleStatisticsInfo=await async function({endpoint:t,gameId:e,drawId:i}){try{return await Ch(`${t}/games/${e}/draws/${i}/saleStatistics`)}catch(t){return Promise.reject(t)}}({endpoint:this.endpoint,gameId:null===(t=this.rawGameConfig)||void 0===t?void 0:t.type,drawId:this.drawId})}async getDrawEventData(){try{const t=await Ch(`${this.endpoint}/poolgames/${this.rawGameConfig.type}/draws/${this.drawId}/matchConfig`,"GET");this.matchInfo=t}catch(t){}}handleOddsBomBulletGroupToggle(t){const{bulletSelctionArr:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].selections[s]=e,o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBulletAddedByMoreBtnDelete(t){const{delText:e,matchIdx:i,selectionIdx:s}=t.detail;let o=[...this.ticketBoardInfo];o[i].addSelections[s]=o[i].addSelections[s].filter((t=>t!==e)),o=this.updateBulletDisabledState(o,i,s,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomAddMoreToMatch(t){const{matchIdx:e,selectionIdx:i,value:s}=t.detail;let o=[...this.ticketBoardInfo];const r=[...o[e].addSelections[i],s].sort(((t,e)=>t-e));o[e].addSelections[i]=r,o=this.updateBulletDisabledState(o,e,i,this.gameConfig.maxCount),this.ticketBoardInfo=[...o]}handleOddsBomBoardClear(){this.initTicketBoard()}handleOddsChartFillIn(t){const{fillInNums:e}=t.detail,i=e.map((t=>t.split(":")[0])).map((t=>Number(t))),s=e.map((t=>t.split(":")[1])).map((t=>Number(t)));let o=[...this.ticketBoardInfo];o=this.ticketBoardInfo.map(((t,e)=>{let o=[...t.addSelections[0]],r=[...t.addSelections[1]];return i[e]>=this.addSelectionConfig.maxOverScore&&(o=[...o,i[e]]),s[e]>=this.addSelectionConfig.maxOverScore&&(r=[...r,s[e]]),Object.assign(Object.assign({},t),{selections:[t.selections[0].map((t=>i[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t)),t.selections[1].map((t=>s[e]==Number(t.text)?Object.assign(Object.assign({},t),{isSelected:!0}):t))],addSelections:[o,r]})})),this.ticketBoardInfo=[...o]}async handleSubmit(){var t,e;const i=this.generateSelection(),s={playerId:this.playerId,tickets:[{startingDrawId:null===(e=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===e?void 0:e.id,addon:!1,amount:String(Number(this.gameInfo.stake)*this.gameInfo.lines),currency:this.rawGameConfig.rules.stakes[0].currency,selection:[{poolGameSelections:i,multiplier:!1,quickPick:!1,betType:this.rawGameConfig.rules.poolGame.playTypes[0].betTypeId,betName:this.rawGameConfig.rules.betTypes[0].name,stake:Number(this.gameInfo.stake)}],multiplier:!1,multipierNum:1,quickPick:!1,gameName:this.rawGameConfig.name}]};try{this.isSubmitLoading=!0;const t=new URL(`${this.endpoint}/tickets`);await(({body:t,sessionId:e,url:i})=>{const s={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${e}`,"X-Idempotency-Key":kh()},body:JSON.stringify(t)};return fetch(i,s).then((t=>{if(401===t.status)throw new Error(Oh);if(t.status>300)throw new Error(t.statusText);return t.json().then((e=>{if(!(i=e.tickets)||!i.length||i.some((t=>t.state!==xh.Purchased)))throw new Error(t.statusText);var i;return e}))}))})({body:s,sessionId:this.sessionId,url:t.href}),Ah({message:Bh("ticketSuccess",this.language)}),this.initTicketBoard()}catch(t){if(t.message===Oh)return void Ah({message:Oh,theme:"error"});Ah({message:Bh("ticketFailed",this.language),theme:"error"})}finally{this.isSubmitLoading=!1,this.updateSaleStatistics(),this.fetchOddsData()}}async getOddsData(t){var e;try{const{drawId:i}=this,s=Object.assign({gameId:this.rawGameConfig.type,drawId:i,bettingType:null!==(e=this.rawGameConfig.rules.poolGame.playTypes[0].bettingType)&&void 0!==e?e:""},t);return await Ch(`${this.endpoint}/poolgames/statistic/realtime/odds${function(t){const e={};Object.entries(t).forEach((([t,i])=>{Th(i,!0)||(e[t]=i)}));const i=Object.entries(e).map((([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`)).join("&");return i?`?${i}`:""}(s)}`,"GET")}catch(t){}}handleOpenOddsChart(){this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!0}),this.fetchOddsData(),setTimeout((()=>{this.childRef?this.childRef.initOddsChart():console.warn("childRef is not defined")}),0)}handleCloseOddsChart(){var t;this.dialogConfig=Object.assign(Object.assign({},this.dialogConfig),{visible:!1}),null===(t=this.childRef)||void 0===t||t.closeOddsChart(),this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),{limit:10,offset:0,ascending:!0})}async handleOddsQueryChange(t){this.isLoadingOdds=!0;try{const e=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),e),this.oddsInfo=await this.getOddsData(this.oddsQuery)}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.isLoadingOdds=!1}}async handleOddsQueryLineChange(t){var e,i;this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!0});try{const s=t.detail;this.oddsQuery=Object.assign(Object.assign({},this.oddsQuery),s);const o=await this.getOddsData(this.oddsQuery);this.oddsData.filterdOdds=null===(i=null===(e=null==o?void 0:o.items)||void 0===e?void 0:e[0])||void 0===i?void 0:i.odds}catch(t){console.error("Failed to fetch odds data:",t)}finally{this.oddsData=Object.assign(Object.assign({},this.oddsData),{isSearching:!1})}}render(){var t,i,s,o,r,n,a,l,h;return e("div",{key:"f0775a7c362a03a33ac20457188068aa0ce48354",class:"oddsbomTicketBet",ref:t=>this.stylingContainer=t},e("lottery-banner",{key:"d6295e570f3298edf45f350239801f8f063eff56","client-styling":this.customStyle+(this.clientStyling||""),"client-styling-Url":this.clientStylingUrl,stopTime:null===(i=null===(t=this.rawGameConfig)||void 0===t?void 0:t.currentDraw)||void 0===i?void 0:i.wagerCloseTime,startTime:null===(o=null===(s=this.rawGameConfig)||void 0===s?void 0:s.currentDraw)||void 0===o?void 0:o.wagerStartTime,"banner-title":null===(r=this.rawGameConfig)||void 0===r?void 0:r.name,turnover:Dh(null===(a=null===(n=this.saleStatisticsInfo)||void 0===n?void 0:n.wagerSegment)||void 0===a?void 0:a.totalSalesCrossDraw),language:this.language,"translation-url":this.translationUrl,onLotteryBannerTimerStop:this.handleTimerStop.bind(this)}),e("div",{key:"d9bd489f7cf0ad9f73077b628bca44dfab2fc91d",class:"oddsbomTicketBet-content"},e("div",{key:"f5d3e4d4b65d7509d6bd6f814dac4647e80c50a6",class:"oddsbomTicketBet-info"},e("div",{key:"f0e1b67ceda9a38fb3138fb29f55b534214b5795",class:"oddsbomTicketBet-info-game"},e("div",{key:"ada63d0ab805b54a226b62715c7672374a83ed61",class:"oddsbomTicketBet-info--item"},e("div",{key:"92ff6de719be487a56f08bc48d62f291fc8b79a1",class:"oddsbomTicketBet-info--key"},Bh("stakePerLine",this.language)),e("div",{key:"3722dd3ab9776baa3bfbf647aa40eff95e007013",class:"oddsbomTicketBet-info--value"},e("vaadin-select",{key:"54d229c67a42553d2a0b5e0f96294e405131f6d0",items:this.gameConfig.stakes,value:this.gameInfo.stake,"on-value-changed":this.onStakeChange.bind(this),"no-vertical-overlap":!0,noVerticalOverlap:!0})))),e("div",{key:"7e80950d1226ff63e89fed209794c060d5176f3e",class:"oddsbomTicketBet-info-odds"},e("div",{key:"0f1a09ece238d93903cdb112288432a8a55bbd20",class:"oddsbomTicketBet-info--item"},e("div",{key:"4ec2924724a012dc7bed43894e6f7562421c1208",class:"oddsbomTicketBet-info--key"},Bh("lowestOdds",this.language)),e("div",{key:"d4f28da5c8e3f7610e4e1163782a36a4c777d480",class:"oddsbomTicketBet-info--value"},this.oddsData.lowest?Ih(this.oddsData.lowest):"-")),e("div",{key:"58fa14a7499a43abce8eca8f043d47e1ba22cabb",class:"oddsbomTicketBet-info--item"},e("div",{key:"a1b9f7833607fbc3ed55e314c38b33c38d34508c",class:"oddsbomTicketBet-info--key"},Bh("highestOdds",this.language)),e("div",{key:"d99b550f1ae3bf2011d57a67bde599c636d68664",class:"oddsbomTicketBet-info--value"},this.oddsData.highest?Ih(this.oddsData.highest):"-")),e("div",{key:"f6abd44cc6e1df99a697443924efc5e2ede2fcd6",class:"oddsbomTicketBet-info---chart"},e("lottery-oddsbom-ticket-button",{key:"d2d838ba7d84d329fd540b8859fb3570d6f005c5",onClick:this.handleOpenOddsChart.bind(this),text:Bh("oddsChart",this.language),variant:"outline",language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))),e("div",{key:"32aad7e0028be7758cc949f37a48e769bbaacd84",class:"oddsbomTicketBet-ticketArea"},e("div",{key:"c00815324856d997e9f4394d6addde25465fab9c",class:"oddsbomTicketBet-ticketArea--left"},this.isLoading?e("div",{class:"loading-wrap"},e("div",{class:"skeleton-content"},e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}),e("div",{class:"skeleton-item skeleton-animated",style:{height:"32px",width:"94%"}}))):e("div",null,e("lottery-oddsbom-ticket-board",{ticketBoardInfo:this.ticketBoardInfo,addSelectionConfig:this.addSelectionConfig,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))),e("div",{key:"93dab7abb5c4e9c082ab96926a5df1ceea61b64e",class:"oddsbomTicketBet-ticketArea--right"},e("div",{key:"ea281d41c59f3ceeb76a519bf524ce15c5a5a127",class:"oddsbomTicketBet-ticketArea--right-title"},Bh("orderSummary",this.language)),e("div",{key:"c1b1b412901c79563619d76266eff4467fd07164",class:"oddsbomTicketBet-ticketArea--right-info"},e("div",{key:"ef6f25d5645dcd4aa178239a3a4301705c66f3d4",class:"oddsbomTicketBet-ticketArea--right-ticketCount"},`${Bh("ticket",this.language)}: ${this.gameInfo.lines} ${Bh(this.gameInfo.lines>1?"lines":"line",this.language)} x ${this.gameInfo.stake} ${Bh("euro",this.language)}`," "),e("div",{key:"ac48136f5bc1a55fc9796e83e203e9aac4dddb6f",class:"oddsbomTicketBet-ticketArea--right-delimiter"}),e("div",{key:"230293f2cbcdc3962e1f6e98310bc40ed1f04b99",class:"oddsbomTicketBet-ticketArea--right-ticketTotal"},`${Bh("total",this.language)}: ${Number(this.gameInfo.stake)*this.gameInfo.lines} ${Bh("euro",this.language)}`),e("div",{key:"24a3a84176d72c8098a582134acefed43d48bafc",class:"oddsbomTicketBet-ticketArea--right-selection"},e("lottery-oddsbom-ticket-selection",{key:"22717285732f431ae675660ae250a92888e06b93",ticketBoardInfo:this.ticketBoardInfo,language:this.language}))),e("div",{key:"9ca871d783ca89fece97657f2a2e353514935ede",class:"oddsbomTicketBet-ticketArea--right-submitBtn"},e("lottery-oddsbom-ticket-button",{key:"15705cd9a0ecc16e60760cbd0d11bf9fd769e0db",text:Bh("submit",this.language),variant:"primary",size:"large",disabled:!this.canSubmit||!this.drawSubmitAvailable,loading:this.isSubmitLoading,onClick:this.handleSubmit.bind(this),language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl}))))),e("lottery-tipping-dialog",{key:"bb09bbdb10166ee77426e1588815b92a1beece8d",dialogTitle:this.dialogConfig.title,visible:this.dialogConfig.visible,onCancel:this.handleCloseOddsChart.bind(this),showFooter:!1,width:this.oddsChartDialogWidth},e("lottery-oddsbom-oddschart",{key:"923403e2949c98f6f1781ba40761dc3baccd3b56",ref:t=>this.childRef=t,matchInfo:this.matchInfo,oddsInfo:null===(l=this.oddsInfo)||void 0===l?void 0:l.items,curPage:this.oddsQuery.offset/this.oddsQuery.limit,total:null===(h=this.oddsInfo)||void 0===h?void 0:h.total,limit:this.oddsQuery.limit,offset:this.oddsQuery.offset,isLoading:this.isLoadingOdds,isSearching:this.oddsData.isSearching,filterdOdds:this.oddsData.filterdOdds,language:this.language,"translation-url":this.translationUrl,"client-styling":this.clientStyling,"client-styling-Url":this.clientStylingUrl})))}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],ticketBoardInfo:["handleTicketBoardInfoChange"],canSubmit:["handleCanSubmitChange"]}}};jh.style=":host {\n --vaadin-input-field-background: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-color: var(--emw--color-gray-100, #e6e6e6);\n --vaadin-input-field-invalid-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-hover-highlight: var(--emw--color-gray-50, #f5f5f5);\n --vaadin-input-field-border-width: 1px;\n}\n\n.oddsbomTicketBet {\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner {\n background-color: var(--emw--color-primary, #0d196e);\n height: 52px;\n padding: 0 12px;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--emw--color-background, #fff);\n}\n.oddsbomTicketBet-banner-title {\n font-size: 22px;\n font-style: italic;\n font-weight: bold;\n}\n.oddsbomTicketBet-banner-info {\n position: absolute;\n right: 20px;\n display: flex;\n gap: 16px;\n align-items: center;\n}\n.oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n color: var(--emw--color-typography-inverse, #fff);\n background-color: var(--emw--color-secondary, #405c8b);\n height: 36px;\n line-height: 36px;\n border-radius: 4px;\n padding: 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n.oddsbomTicketBet-ticketArea {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding: 18px 0;\n}\n.oddsbomTicketBet-ticketArea--left {\n max-width: 60%;\n min-width: 50%;\n margin-bottom: 12px;\n}\n.oddsbomTicketBet-ticketArea--right {\n width: 40%;\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.oddsbomTicketBet-ticketArea--right-title {\n font-size: 20px;\n font-weight: bold;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-info {\n width: 96%;\n padding-left: 4%;\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount, .oddsbomTicketBet-ticketArea--right-ticketTotal {\n height: 40px;\n line-height: 40px;\n font-size: 18px;\n user-select: none;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-ticketArea--right-ticketCount {\n margin-top: 40px;\n}\n.oddsbomTicketBet-ticketArea--right-delimiter {\n width: 100%;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n.oddsbomTicketBet-ticketArea--right-submitBtn {\n display: flex;\n align-items: center;\n margin-top: 20px;\n}\n.oddsbomTicketBet-info {\n margin-left: 5%;\n padding: 18px;\n}\n.oddsbomTicketBet-info-game, .oddsbomTicketBet-info-odds {\n display: flex;\n flex-wrap: wrap;\n}\n.oddsbomTicketBet-info-game {\n gap: 24px;\n margin-bottom: 20px;\n}\n.oddsbomTicketBet-info-odds {\n gap: 26px;\n}\n.oddsbomTicketBet-info--item {\n display: flex;\n align-items: center;\n}\n.oddsbomTicketBet-info--key {\n font-weight: bold;\n margin-right: 12px;\n color: var(--emw--color-typography, #000);\n}\n.oddsbomTicketBet-info--value {\n color: var(--emw--color-typography, #000);\n}\n@container (max-width: 430px) {\n .oddsbomTicketBet-banner-title {\n font-size: 20px;\n position: absolute;\n left: 6px;\n }\n .oddsbomTicketBet-banner-info {\n right: 4px;\n gap: 4px;\n }\n .oddsbomTicketBet-banner-info-stoptime, .oddsbomTicketBet-banner-info-turnover {\n height: 32px;\n line-height: 32px;\n font-weight: bold;\n font-size: 16px;\n }\n .oddsbomTicketBet-ticketArea {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--left {\n max-width: 100%;\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 100%;\n }\n .oddsbomTicketBet-ticketArea--right-info {\n width: 90%;\n padding-left: unset;\n }\n}\n@container (min-width: 1680px) {\n .oddsbomTicketBet-ticketArea {\n width: 80%;\n }\n .oddsbomTicketBet-ticketArea--left {\n width: 50%;\n }\n .oddsbomTicketBet-ticketArea--right {\n width: 50%;\n }\n .oddsbomTicketBet-info {\n margin-left: 10%;\n }\n}\n\n.loading-wrap {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n border-radius: 4px;\n padding: 20px 0;\n}\n\n.skeleton-content {\n display: flex;\n flex-direction: column;\n gap: 29px;\n align-items: center;\n}\n\n.skeleton-item {\n background: var(--emw--color-gray-50, #f5f5f5);\n border-radius: 4px;\n}\n\n.skeleton-animated {\n animation: skeleton-shimmer 1.5s infinite linear;\n background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 37%, #f0f0f0 63%);\n background-size: 200% 100%;\n}\n\n@keyframes skeleton-shimmer {\n to {\n background-position: 100% 0;\n }\n}";export{jh as L,_h as M,vl as a,fl as b,Ah as c,Bh as d,zh as e,hh as f,Nh as g,Ih as h,dh as i,Ph as j,ch as p,yl as r,ml as s,wl as t}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/lottery-oddsbom-ticket-bet",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",