@everymatrix/lottery-tipping-entrance 1.85.15 → 1.85.16

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.
@@ -853,7 +853,7 @@ const TRANSLATIONS$6 = {
853
853
  en: {
854
854
  weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
855
855
  bettingType: 'Betting Type:',
856
- prizeAllocation: 'Prize Allocation (Turnover: {turnover})',
856
+ prizeAllocation: 'Prize Allocation (Turnover: {turnover})',
857
857
  prizes: 'Prizes',
858
858
  numberOfWinners: 'Number of Winners',
859
859
  prizeMoney: 'Prize Money',
@@ -1984,15 +1984,15 @@ const LotteryTippingPage = class {
1984
1984
  }
1985
1985
  renderContent() {
1986
1986
  if (this.activeTab === Tab.BuyTickets) {
1987
- return (index.h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStylingUrl, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl, "logo-url": this.logoUrl }));
1987
+ return (index.h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl, "logo-url": this.logoUrl }));
1988
1988
  }
1989
1989
  if (this.activeTab === Tab.MyTickets) {
1990
- return (index.h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStylingUrl, "translation-url": this.translationUrl }));
1990
+ return (index.h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling, "translation-url": this.translationUrl }));
1991
1991
  }
1992
1992
  return null;
1993
1993
  }
1994
1994
  render() {
1995
- return (index.h("div", { key: '25d9a739d9040f9b79d9652b8cef03cf72a1d8e6', class: "lottery-tipping-page", ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: 'a94afa5201c3b6ccbe7edf59cdd04251ef280713', class: "lottery-tipping-page-header" }, index.h("slot", { key: 'ca7b177f464fbae1a54cae96a9ddad5bc50c5f9c', name: "backBtn" }), this.renderTabs(), index.h("div", { key: '28cd52ce3161d7da7136adc41fb021967a4a2ae9', class: "lottery-tipping-page-header-operation" }, index.h("slot", { key: '4caab039d48ecaf202a2d993ca2b1b46f3291804', name: "themeBtn" }), index.h("slot", { key: '5ab4e60d657bf0b945afd87f7778fb1d57b8f69b', name: "logoutBtn" }))), index.h("div", { key: '31e2e35380bde69f1e5b65cf9841f856fe6e9ed2', class: "lottery-tipping-content" }, this.renderContent())));
1995
+ return (index.h("div", { key: 'be4093871beefe4952d084d39741636aed4d7142', class: "lottery-tipping-page", ref: (el) => (this.stylingContainer = el) }, index.h("div", { key: 'b5474516d39cdb4f91d69ae5fc1eb61b09f39497', class: "lottery-tipping-page-header" }, index.h("slot", { key: 'd250e3ac32fb3aa422a90abc7a053aff5f79efd8', name: "backBtn" }), this.renderTabs(), index.h("div", { key: '0e166025dec63f28eb60a3bbd2c8fdd444bc0398', class: "lottery-tipping-page-header-operation" }, index.h("slot", { key: 'acb092a029939d5b7da51b19b67037b78abb702b', name: "themeBtn" }), index.h("slot", { key: '6a57fa8c4c8e4f2a97cce90eefa2e65d245ad9b6', name: "logoutBtn" }))), index.h("div", { key: 'efe72105b6a4fadf6a970e8226568caa495e4ce7', class: "lottery-tipping-content" }, this.renderContent())));
1996
1996
  }
1997
1997
  static get watchers() { return {
1998
1998
  "clientStyling": ["handleClientStylingChange"],
@@ -2375,7 +2375,8 @@ const TRANSLATIONS$2 = {
2375
2375
  orderSummaryTotal: 'Total',
2376
2376
  orderSummarySubmit: 'Submit',
2377
2377
  cancel: 'Cancel',
2378
- confirm: 'Confirm'
2378
+ confirm: 'Confirm',
2379
+ stakePerLine: 'Stake per Line:'
2379
2380
  },
2380
2381
  ro: {
2381
2382
  selectionCleared: 'Selecția dvs. va fi ștearsă.',
@@ -2587,6 +2588,7 @@ const getPlayTypeConfig = ({ rawData, selectedBettingType, selectedPlayingMode }
2587
2588
  const betType = (_f = (_e = rawData === null || rawData === void 0 ? void 0 : rawData.rules) === null || _e === void 0 ? void 0 : _e.betTypes) === null || _f === void 0 ? void 0 : _f.find((i) => i.id === betTypeId);
2588
2589
  return { betTypeId, betType };
2589
2590
  };
2591
+ const getMinValue = (arr) => (arr.length ? Math.min.apply(null, arr) : undefined);
2590
2592
 
2591
2593
  const DEFAULT_LANGUAGE$1 = 'en';
2592
2594
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
@@ -3224,6 +3226,9 @@ const LotteryTippingTicketController = class {
3224
3226
  index.registerInstance(this, hostRef);
3225
3227
  this.logoutEventHandler = index.createEvent(this, "logout", 7);
3226
3228
  this.bothBettingTypeMultiplier = 2;
3229
+ this.onStakeChange = (e) => {
3230
+ this.currentStake = this.getCurrentStakeByValue(e.detail.value);
3231
+ };
3227
3232
  this.mbSource = undefined;
3228
3233
  this.clientStyling = undefined;
3229
3234
  this.clientStylingUrl = undefined;
@@ -3248,6 +3253,7 @@ const LotteryTippingTicketController = class {
3248
3253
  this.submitLoading = undefined;
3249
3254
  this.rawData = {};
3250
3255
  this.saleStatisticsInfo = {};
3256
+ this.currentStake = undefined;
3251
3257
  this.dialogConfig = { visible: false };
3252
3258
  }
3253
3259
  async getLotteryTippingBulletResults() {
@@ -3275,9 +3281,28 @@ const LotteryTippingTicketController = class {
3275
3281
  get isBothBettingType() {
3276
3282
  return this.selectedBettingType === BettingTypeEnum.Both;
3277
3283
  }
3278
- get currentStake() {
3284
+ get stakeOptions() {
3279
3285
  var _a, _b, _c;
3280
- return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c[0];
3286
+ return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c.map((item) => {
3287
+ var _a;
3288
+ return { value: (_a = item.value) === null || _a === void 0 ? void 0 : _a.toString(), label: item.value, currency: item.currency };
3289
+ });
3290
+ }
3291
+ getCurrentStakeByValue(value) {
3292
+ var _a;
3293
+ return (_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.find((item) => +item.value === +value);
3294
+ }
3295
+ initiateCurrentStake() {
3296
+ var _a, _b;
3297
+ // if only one option, default to the first one
3298
+ if (((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) === 1) {
3299
+ this.currentStake = this.stakeOptions[0];
3300
+ }
3301
+ else {
3302
+ // otherwise, default to the smallest stake option from the config
3303
+ const minValue = getMinValue(((_b = this.stakeOptions) === null || _b === void 0 ? void 0 : _b.map((i) => i.value)) || []);
3304
+ this.currentStake = this.getCurrentStakeByValue(minValue);
3305
+ }
3281
3306
  }
3282
3307
  handleBettingTypeChange(type) {
3283
3308
  var _a, _b, _c, _d;
@@ -3345,7 +3370,7 @@ const LotteryTippingTicketController = class {
3345
3370
  if (!stake) {
3346
3371
  return 0;
3347
3372
  }
3348
- let totalAmount = stake.value * this.totalLineCombination;
3373
+ let totalAmount = +stake.value * this.totalLineCombination;
3349
3374
  if (this.isBothBettingType)
3350
3375
  totalAmount = this.bothBettingTypeMultiplier * totalAmount;
3351
3376
  return totalAmount;
@@ -3424,6 +3449,7 @@ const LotteryTippingTicketController = class {
3424
3449
  this.rawData = res;
3425
3450
  this.bettingTypeOptions = getEnableOptions(((_b = (_a = res === null || res === void 0 ? void 0 : res.rules) === null || _a === void 0 ? void 0 : _a.poolGame) === null || _b === void 0 ? void 0 : _b.bettingTypes) || []);
3426
3451
  this.playingModeOptions = getEnableOptions(((_d = (_c = res === null || res === void 0 ? void 0 : res.rules) === null || _c === void 0 ? void 0 : _c.poolGame) === null || _d === void 0 ? void 0 : _d.playModes) || []);
3452
+ this.initiateCurrentStake();
3427
3453
  // default: select the first one
3428
3454
  const { bettingType, playMode } = getDefaultType({
3429
3455
  playTypeConfig: (_f = (_e = res === null || res === void 0 ? void 0 : res.rules) === null || _e === void 0 ? void 0 : _e.poolGame) === null || _f === void 0 ? void 0 : _f.playTypes,
@@ -3468,7 +3494,7 @@ const LotteryTippingTicketController = class {
3468
3494
  tickets: []
3469
3495
  };
3470
3496
  const selections = formatResultsToWinningNumbers(rawResults);
3471
- const stake = this.currentStake || {};
3497
+ const stake = (this.currentStake || {});
3472
3498
  body.tickets.push({
3473
3499
  startingDrawId: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.id,
3474
3500
  amount: this.calculateTotalAmount().toString(),
@@ -3517,6 +3543,7 @@ const LotteryTippingTicketController = class {
3517
3543
  return _ + ' ' + unit;
3518
3544
  }
3519
3545
  renderBettingControls() {
3546
+ var _a;
3520
3547
  const renderSkeleton = () => (index.h("div", { class: "skeleton-content" }, index.h("div", { class: "skeleton-item skeleton-animated" })));
3521
3548
  const renderBettingTypeOptions = () => (index.h("div", { class: "LotteryTippingTicketController__segmented-control" }, this.bettingTypeOptions.map((item) => (index.h("button", { class: {
3522
3549
  LotteryTippingTicketController__segment: true,
@@ -3526,10 +3553,15 @@ const LotteryTippingTicketController = class {
3526
3553
  LotteryTippingTicketController__segment: true,
3527
3554
  'LotteryTippingTicketController__segment--active': this.selectedPlayingMode === item.code
3528
3555
  }, onClick: this.handlePlayingModeChange.bind(this, item.code) }, item.name)))));
3529
- return (index.h("div", { class: "LotteryTippingTicketController__top" }, index.h("div", { class: "LotteryTippingTicketController__row" }, index.h("div", { class: "LotteryTippingTicketController__section" }, index.h("span", { class: "LotteryTippingTicketController__label" }, translate$2('bettingType', this.language)), !!this.bettingTypeOptions.length ? renderBettingTypeOptions() : renderSkeleton()), index.h("div", { class: "LotteryTippingTicketController__section" }, index.h("span", { class: "LotteryTippingTicketController__label" }, translate$2('playingMode', this.language)), !!this.playingModeOptions.length ? renderPlayingModeOptions() : renderSkeleton()))));
3556
+ const renderingStakeOptions = () => {
3557
+ var _a;
3558
+ return (index.h("div", null, index.h("vaadin-select", { items: this.stakeOptions || [], value: ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) || '', "on-value-changed": this.onStakeChange.bind(this), "no-vertical-overlap": true })));
3559
+ };
3560
+ return (index.h("div", { class: "LotteryTippingTicketController__top" }, index.h("div", { class: "LotteryTippingTicketController__row" }, index.h("div", { class: "LotteryTippingTicketController__section" }, index.h("span", { class: "LotteryTippingTicketController__label" }, translate$2('bettingType', this.language)), !!this.bettingTypeOptions.length ? renderBettingTypeOptions() : renderSkeleton()), index.h("div", { class: "LotteryTippingTicketController__section" }, index.h("span", { class: "LotteryTippingTicketController__label" }, translate$2('playingMode', this.language)), !!this.playingModeOptions.length ? renderPlayingModeOptions() : renderSkeleton()), ((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (index.h("div", { class: "LotteryTippingTicketController__section" }, index.h("span", { class: "LotteryTippingTicketController__label" }, translate$2('stakePerLine', this.language)), renderingStakeOptions())))));
3530
3561
  }
3531
3562
  renderOrderSummary() {
3532
- return (index.h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, index.h("h3", { class: "order-summary__title" }, translate$2('orderSummaryTitle', this.language)), index.h("div", { class: "order-summary__ticket-info" }, index.h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTickets', this.language), ":"), index.h("div", { class: "order-summary__details" }, index.h("span", { class: "order-summary__line-count" }, this.lineCountRender), index.h("div", null, this.currentStake && index.h("span", { class: "order-summary__multiplier" }, "x"), index.h("span", { class: "order-summary__stake" }, this.currentStakeFormatted)), this.isBothBettingType && (index.h("div", null, index.h("span", { class: "order-summary__multiplier" }, "x"), index.h("span", { class: "order-summary__stake" }, this.bothBettingTypeMultiplier))))), index.h("hr", { class: "order-summary__divider" }), index.h("div", { class: "order-summary__ticket-info" }, index.h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTotal', this.language), ":"), index.h("span", { class: "order-summary__details" }, this.totalAmountFormatted)), index.h("div", { class: "order-summary__button-wrapper" }, index.h("lottery-button", { onClick: this.handleSubmit.bind(this), loading: this.submitLoading, disabled: !this.hasSelectAllBullet || this.submitLoading, text: translate$2('orderSummarySubmit', this.language) }))));
3563
+ var _a;
3564
+ return (index.h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, index.h("h3", { class: "order-summary__title" }, translate$2('orderSummaryTitle', this.language)), index.h("div", { class: "order-summary__ticket-info" }, index.h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTickets', this.language), ":"), index.h("div", { class: "order-summary__details" }, index.h("span", { class: "order-summary__line-count" }, this.lineCountRender), index.h("div", null, this.currentStake && index.h("span", { class: "order-summary__multiplier" }, "x"), index.h("span", { class: "order-summary__stake" }, this.currentStakeFormatted)), this.isBothBettingType && (index.h("div", null, index.h("span", { class: "order-summary__multiplier" }, "x"), index.h("span", { class: "order-summary__stake" }, this.bothBettingTypeMultiplier))))), index.h("hr", { class: "order-summary__divider" }), index.h("div", { class: "order-summary__ticket-info" }, index.h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTotal', this.language), ":"), index.h("span", { class: "order-summary__details" }, this.totalAmountFormatted)), index.h("div", { class: "order-summary__button-wrapper" }, index.h("lottery-button", { onClick: this.handleSubmit.bind(this), loading: this.submitLoading, disabled: !this.hasSelectAllBullet || this.submitLoading || ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) === undefined, text: translate$2('orderSummarySubmit', this.language) }))));
3533
3565
  }
3534
3566
  get formattedTurnover() {
3535
3567
  var _a, _b;
@@ -3541,7 +3573,7 @@ const LotteryTippingTicketController = class {
3541
3573
  }
3542
3574
  render() {
3543
3575
  var _a, _b, _c, _d, _e, _f, _g;
3544
- return (index.h("div", { key: 'a849624b0fe5fae436bec3e42836d4dc30074539', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, index.h("lottery-tipping-ticket-banner", { key: 'dde87c0980564b39eb882121911125f630994369', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, stopTime: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.wagerCloseTime, period: (_d = (_c = this.rawData) === null || _c === void 0 ? void 0 : _c.currentDraw) === null || _d === void 0 ? void 0 : _d.date, "formatted-turnover": this.formattedTurnover, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), index.h("div", { key: 'b8cfcea8d213bd0275ab9f1a3a164ebcaa629f71', class: "flex flex-wrap LotteryTippingTicketController__main" }, index.h("div", { key: '9fec0554e90804ae4b261d5facc28de4d242524d', class: "LotteryTippingTicketController__main--left" }, index.h("lottery-tipping-ticket-bet", { key: '7d36a1095dba6541b480a989e6b1661b576963bb', ref: (el) => (this.childRef = el), endpoint: this.endpoint, "session-id": this.sessionId, "game-id": (_e = this.rawData) === null || _e === void 0 ? void 0 : _e.type, "draw-id": this.drawId, language: this.language, "translation-url": this.translationUrl, "max-total-pages": this.lineNumberRange.maxLineNumber, "min-total-pages": this.lineNumberRange.minLineNumber, "total-pages": this.lineNumberRange.defaultBoards, mode: this.selectedPlayingMode === PlayModeEnum.SingleBet ? 'single' : 'multi', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl })), this.renderOrderSummary()), this.dialogConfig.visible && (index.h("vaadin-confirm-dialog", { key: 'c7935460a02c65697f30dd3da5e2886cec75f3fb', rejectButtonVisible: true, rejectText: translate$2('cancel', this.language), confirmText: translate$2('confirm', this.language), opened: (_f = this.dialogConfig) === null || _f === void 0 ? void 0 : _f.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_g = this.dialogConfig) === null || _g === void 0 ? void 0 : _g.content))));
3576
+ return (index.h("div", { key: 'bc9858c6923707b9d5e4fca7b57e272143f895aa', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, index.h("lottery-tipping-ticket-banner", { key: '2a220d90a4ab73f220d9d47db47e10749cb33cdd', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, stopTime: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.wagerCloseTime, period: (_d = (_c = this.rawData) === null || _c === void 0 ? void 0 : _c.currentDraw) === null || _d === void 0 ? void 0 : _d.date, "formatted-turnover": this.formattedTurnover, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), index.h("div", { key: '9d548c6d3d01ee4ed2e68481a00f4667e50a418b', class: "flex flex-wrap LotteryTippingTicketController__main" }, index.h("div", { key: '647ff830980982139f270f12a5286eb80a2f7b9e', class: "LotteryTippingTicketController__main--left" }, index.h("lottery-tipping-ticket-bet", { key: '0151d3830fcec76574016a97a953a12817450280', ref: (el) => (this.childRef = el), endpoint: this.endpoint, "session-id": this.sessionId, "game-id": (_e = this.rawData) === null || _e === void 0 ? void 0 : _e.type, "draw-id": this.drawId, language: this.language, "translation-url": this.translationUrl, "max-total-pages": this.lineNumberRange.maxLineNumber, "min-total-pages": this.lineNumberRange.minLineNumber, "total-pages": this.lineNumberRange.defaultBoards, mode: this.selectedPlayingMode === PlayModeEnum.SingleBet ? 'single' : 'multi', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl })), this.renderOrderSummary()), this.dialogConfig.visible && (index.h("vaadin-confirm-dialog", { key: '5153f04448556bca403aeadfca6b573e0dc9b832', rejectButtonVisible: true, rejectText: translate$2('cancel', this.language), confirmText: translate$2('confirm', this.language), opened: (_f = this.dialogConfig) === null || _f === void 0 ? void 0 : _f.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_g = this.dialogConfig) === null || _g === void 0 ? void 0 : _g.content))));
3545
3577
  }
3546
3578
  static get assetsDirs() { return ["../static"]; }
3547
3579
  static get watchers() { return {
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"draw-selection_18.cjs\",[[1,\"lottery-tipping-entrance\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"logoUrl\":[513,\"logo-url\"],\"date\":[32],\"drawId\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"isLoading\":[32],\"selectedTabIndex\":[32],\"showSelectDrawPage\":[32],\"gameInfo\":[32],\"saleStatisticsInfo\":[32],\"handleClosePoolGamePage\":[64]},[[0,\"selectDraw\",\"handleSelectDraw\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"endpoint\":[\"onPropsChange\"],\"gameId\":[\"onPropsChange\"]}],[1,\"lottery-tipping-page\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"logoUrl\":[513,\"logo-url\"],\"activeTab\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-latest-result\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"hasDrawDates\":[32],\"lastestDate\":[32],\"drawList\":[32],\"curDrawItem\":[32],\"curDrawItemIdx\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32],\"curPrizes\":[32],\"curPrizeMap\":[32],\"curTurnOver\":[32],\"isLoading\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"vendorGameId\":[32]},[[0,\"changeDate\",\"handleChangeDate\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"draw-selection\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"infoImageUrl\":[513,\"info-image-url\"],\"date\":[1],\"isLoading\":[4,\"is-loading\"],\"turnover\":[1]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-history\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"ticketHistory\":[32],\"activeStatus\":[32],\"statusOptions\":[32],\"isLoading\":[32],\"rawData\":[32],\"filterData\":[32],\"paginationInfo\":[32],\"quickFiltersActive\":[32],\"showCurrentTicketLine\":[32],\"curTicketItem\":[32],\"curSelection\":[32],\"curSelectionIdx\":[32],\"showCurrentDrawResult\":[32],\"curDrawItem\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32]},[[0,\"pageSizeChange\",\"handlePageSizeChange\"],[0,\"pageChange\",\"handlePageChange\"],[0,\"filterChange\",\"handleFilterChange\"],[0,\"filterClear\",\"handleFilterClear\"],[0,\"poolGameCurrentPageChange\",\"handlePoolGameCurrentPageChange\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"handleGameInfoChange\"],\"endpoint\":[\"handleGameInfoChange\"],\"endpointTicket\":[\"handleTicketInfoChange\"],\"playerId\":[\"handleTicketInfoChange\"],\"sessionId\":[\"handleTicketInfoChange\"]}],[1,\"lottery-tipping-ticket-controller\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"logoUrl\":[513,\"logo-url\"],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"sessionId\":[513,\"session-id\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"drawId\":[513,\"draw-id\"],\"isLoading\":[32],\"bettingTypeOptions\":[32],\"playingModeOptions\":[32],\"selectedBettingType\":[32],\"selectedPlayingMode\":[32],\"hasSelectBullet\":[32],\"hasSelectAllBullet\":[32],\"totalLineCombination\":[32],\"submitLoading\":[32],\"rawData\":[32],\"saleStatisticsInfo\":[32],\"dialogConfig\":[32]},[[0,\"lotteryTippingBulletBetSelect\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-calendar\",{\"date\":[1],\"highLightDates\":[16],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"weeks\":[32],\"days\":[32],\"alterDate\":[32],\"curDate\":[32],\"recordInfo\":[32],\"showCalendar\":[32]},null,{\"date\":[\"handleDateChange\"]}],[1,\"lottery-tipping-filter\",{\"quickFiltersActive\":[516,\"quick-filters-active\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"isOpen\":[32],\"filterData\":[32],\"ticketTypeList\":[32],\"showClearButton\":[32]},[[0,\"modalCloseEvent\",\"handleModalClose\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-button\",{\"variant\":[513],\"size\":[513],\"disabled\":[516],\"loading\":[516],\"text\":[513],\"mbSource\":[513,\"mb-source\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"ripples\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-pagination\",{\"total\":[2],\"pageSizeOptions\":[16],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"current\":[2],\"pageSize\":[32],\"totalPages\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"total\":[\"updateTotalPages\"],\"pageSize\":[\"updateTotalPages\"]}],[1,\"lottery-tipping-panel\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"headerTitle\":[1,\"header-title\"],\"expanded\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-banner\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"logoUrl\":[513,\"logo-url\"],\"stopTime\":[1,\"stop-time\"],\"period\":[1],\"formattedTurnover\":[1,\"formatted-turnover\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-multi-select\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"options\":[16],\"maxVisibleChips\":[2,\"max-visible-chips\"],\"placeholder\":[1],\"selectedValues\":[32],\"dropdownOpen\":[32],\"overflowOpen\":[32],\"popoverStyle\":[32],\"clear\":[64]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-dialog\",{\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"visible\":[516],\"dialogTitle\":[1,\"dialog-title\"],\"width\":[1],\"closable\":[4],\"mask\":[4],\"maskClosable\":[4,\"mask-closable\"],\"animationDuration\":[2,\"animation-duration\"],\"fullscreen\":[4],\"showFooter\":[4,\"show-footer\"],\"showCancelBtn\":[4,\"show-cancel-btn\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-bet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"sessionId\":[513,\"session-id\"],\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"drawId\":[513,\"draw-id\"],\"totalPages\":[1538,\"total-pages\"],\"minTotalPages\":[514,\"min-total-pages\"],\"maxTotalPages\":[514,\"max-total-pages\"],\"mode\":[513],\"readPretty\":[516,\"read-pretty\"],\"defaultBulletConfigLineGroup\":[513,\"default-bullet-config-line-group\"],\"translationData\":[32],\"clientStylingUrlContent\":[32],\"bulletConfigLineGroup\":[32],\"currentPage\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"dialogConfig\":[32],\"ticketDataSource\":[32],\"resetBulletConfig\":[64],\"getData\":[64]},[[0,\"lotteryTippingBulletGroupToggle\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"translationUrl\":[\"handleNewTranslations\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"fetchMatchData\"],\"sessionId\":[\"fetchMatchData\"],\"drawId\":[\"fetchMatchData\"],\"defaultBulletConfigLineGroup\":[\"fetchMatchData\"],\"currentPage\":[\"handleCurrentPageChange\"]}],[1,\"lottery-tipping-bullet-group\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[513,\"position-idx\"],\"theme\":[513],\"mode\":[513],\"bulletConfigContent\":[513,\"bullet-config-content\"]},[[0,\"lotteryTippingBulletToggle\",\"lotteryTippingBulletSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-tooltip\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"position\":[1],\"delay\":[2],\"isVisible\":[32],\"_tooltipId\":[32]},[[1,\"mouseenter\",\"handleMouseEnterOrFocus\"],[0,\"focusin\",\"handleMouseEnterOrFocus\"],[1,\"mouseleave\",\"handleMouseLeaveOrBlur\"],[0,\"focusout\",\"handleMouseLeaveOrBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-bullet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[514,\"position-idx\"],\"theme\":[513],\"value\":[513],\"disabled\":[516],\"isSelected\":[516,\"is-selected\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}]]]]"), options);
11
+ return index.bootstrapLazy(JSON.parse("[[\"draw-selection_18.cjs\",[[1,\"lottery-tipping-entrance\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"logoUrl\":[513,\"logo-url\"],\"date\":[32],\"drawId\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"isLoading\":[32],\"selectedTabIndex\":[32],\"showSelectDrawPage\":[32],\"gameInfo\":[32],\"saleStatisticsInfo\":[32],\"handleClosePoolGamePage\":[64]},[[0,\"selectDraw\",\"handleSelectDraw\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"endpoint\":[\"onPropsChange\"],\"gameId\":[\"onPropsChange\"]}],[1,\"lottery-tipping-page\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"logoUrl\":[513,\"logo-url\"],\"activeTab\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-latest-result\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"hasDrawDates\":[32],\"lastestDate\":[32],\"drawList\":[32],\"curDrawItem\":[32],\"curDrawItemIdx\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32],\"curPrizes\":[32],\"curPrizeMap\":[32],\"curTurnOver\":[32],\"isLoading\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"vendorGameId\":[32]},[[0,\"changeDate\",\"handleChangeDate\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"draw-selection\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"infoImageUrl\":[513,\"info-image-url\"],\"date\":[1],\"isLoading\":[4,\"is-loading\"],\"turnover\":[1]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-history\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"ticketHistory\":[32],\"activeStatus\":[32],\"statusOptions\":[32],\"isLoading\":[32],\"rawData\":[32],\"filterData\":[32],\"paginationInfo\":[32],\"quickFiltersActive\":[32],\"showCurrentTicketLine\":[32],\"curTicketItem\":[32],\"curSelection\":[32],\"curSelectionIdx\":[32],\"showCurrentDrawResult\":[32],\"curDrawItem\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32]},[[0,\"pageSizeChange\",\"handlePageSizeChange\"],[0,\"pageChange\",\"handlePageChange\"],[0,\"filterChange\",\"handleFilterChange\"],[0,\"filterClear\",\"handleFilterClear\"],[0,\"poolGameCurrentPageChange\",\"handlePoolGameCurrentPageChange\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"handleGameInfoChange\"],\"endpoint\":[\"handleGameInfoChange\"],\"endpointTicket\":[\"handleTicketInfoChange\"],\"playerId\":[\"handleTicketInfoChange\"],\"sessionId\":[\"handleTicketInfoChange\"]}],[1,\"lottery-tipping-ticket-controller\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"logoUrl\":[513,\"logo-url\"],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"sessionId\":[513,\"session-id\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"drawId\":[513,\"draw-id\"],\"isLoading\":[32],\"bettingTypeOptions\":[32],\"playingModeOptions\":[32],\"selectedBettingType\":[32],\"selectedPlayingMode\":[32],\"hasSelectBullet\":[32],\"hasSelectAllBullet\":[32],\"totalLineCombination\":[32],\"submitLoading\":[32],\"rawData\":[32],\"saleStatisticsInfo\":[32],\"currentStake\":[32],\"dialogConfig\":[32]},[[0,\"lotteryTippingBulletBetSelect\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-calendar\",{\"date\":[1],\"highLightDates\":[16],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"weeks\":[32],\"days\":[32],\"alterDate\":[32],\"curDate\":[32],\"recordInfo\":[32],\"showCalendar\":[32]},null,{\"date\":[\"handleDateChange\"]}],[1,\"lottery-tipping-filter\",{\"quickFiltersActive\":[516,\"quick-filters-active\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"isOpen\":[32],\"filterData\":[32],\"ticketTypeList\":[32],\"showClearButton\":[32]},[[0,\"modalCloseEvent\",\"handleModalClose\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-button\",{\"variant\":[513],\"size\":[513],\"disabled\":[516],\"loading\":[516],\"text\":[513],\"mbSource\":[513,\"mb-source\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"ripples\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-pagination\",{\"total\":[2],\"pageSizeOptions\":[16],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"current\":[2],\"pageSize\":[32],\"totalPages\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"total\":[\"updateTotalPages\"],\"pageSize\":[\"updateTotalPages\"]}],[1,\"lottery-tipping-panel\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"headerTitle\":[1,\"header-title\"],\"expanded\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-banner\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"logoUrl\":[513,\"logo-url\"],\"stopTime\":[1,\"stop-time\"],\"period\":[1],\"formattedTurnover\":[1,\"formatted-turnover\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-multi-select\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"options\":[16],\"maxVisibleChips\":[2,\"max-visible-chips\"],\"placeholder\":[1],\"selectedValues\":[32],\"dropdownOpen\":[32],\"overflowOpen\":[32],\"popoverStyle\":[32],\"clear\":[64]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-dialog\",{\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"visible\":[516],\"dialogTitle\":[1,\"dialog-title\"],\"width\":[1],\"closable\":[4],\"mask\":[4],\"maskClosable\":[4,\"mask-closable\"],\"animationDuration\":[2,\"animation-duration\"],\"fullscreen\":[4],\"showFooter\":[4,\"show-footer\"],\"showCancelBtn\":[4,\"show-cancel-btn\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-bet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"sessionId\":[513,\"session-id\"],\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"drawId\":[513,\"draw-id\"],\"totalPages\":[1538,\"total-pages\"],\"minTotalPages\":[514,\"min-total-pages\"],\"maxTotalPages\":[514,\"max-total-pages\"],\"mode\":[513],\"readPretty\":[516,\"read-pretty\"],\"defaultBulletConfigLineGroup\":[513,\"default-bullet-config-line-group\"],\"translationData\":[32],\"clientStylingUrlContent\":[32],\"bulletConfigLineGroup\":[32],\"currentPage\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"dialogConfig\":[32],\"ticketDataSource\":[32],\"resetBulletConfig\":[64],\"getData\":[64]},[[0,\"lotteryTippingBulletGroupToggle\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"translationUrl\":[\"handleNewTranslations\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"fetchMatchData\"],\"sessionId\":[\"fetchMatchData\"],\"drawId\":[\"fetchMatchData\"],\"defaultBulletConfigLineGroup\":[\"fetchMatchData\"],\"currentPage\":[\"handleCurrentPageChange\"]}],[1,\"lottery-tipping-bullet-group\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[513,\"position-idx\"],\"theme\":[513],\"mode\":[513],\"bulletConfigContent\":[513,\"bullet-config-content\"]},[[0,\"lotteryTippingBulletToggle\",\"lotteryTippingBulletSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-tooltip\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"position\":[1],\"delay\":[2],\"isVisible\":[32],\"_tooltipId\":[32]},[[1,\"mouseenter\",\"handleMouseEnterOrFocus\"],[0,\"focusin\",\"handleMouseEnterOrFocus\"],[1,\"mouseleave\",\"handleMouseLeaveOrBlur\"],[0,\"focusout\",\"handleMouseLeaveOrBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-bullet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[514,\"position-idx\"],\"theme\":[513],\"value\":[513],\"disabled\":[516],\"isSelected\":[516,\"is-selected\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}]]]]"), options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy(JSON.parse("[[\"draw-selection_18.cjs\",[[1,\"lottery-tipping-entrance\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"logoUrl\":[513,\"logo-url\"],\"date\":[32],\"drawId\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"isLoading\":[32],\"selectedTabIndex\":[32],\"showSelectDrawPage\":[32],\"gameInfo\":[32],\"saleStatisticsInfo\":[32],\"handleClosePoolGamePage\":[64]},[[0,\"selectDraw\",\"handleSelectDraw\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"endpoint\":[\"onPropsChange\"],\"gameId\":[\"onPropsChange\"]}],[1,\"lottery-tipping-page\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"logoUrl\":[513,\"logo-url\"],\"activeTab\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-latest-result\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"hasDrawDates\":[32],\"lastestDate\":[32],\"drawList\":[32],\"curDrawItem\":[32],\"curDrawItemIdx\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32],\"curPrizes\":[32],\"curPrizeMap\":[32],\"curTurnOver\":[32],\"isLoading\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"vendorGameId\":[32]},[[0,\"changeDate\",\"handleChangeDate\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"draw-selection\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"infoImageUrl\":[513,\"info-image-url\"],\"date\":[1],\"isLoading\":[4,\"is-loading\"],\"turnover\":[1]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-history\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"ticketHistory\":[32],\"activeStatus\":[32],\"statusOptions\":[32],\"isLoading\":[32],\"rawData\":[32],\"filterData\":[32],\"paginationInfo\":[32],\"quickFiltersActive\":[32],\"showCurrentTicketLine\":[32],\"curTicketItem\":[32],\"curSelection\":[32],\"curSelectionIdx\":[32],\"showCurrentDrawResult\":[32],\"curDrawItem\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32]},[[0,\"pageSizeChange\",\"handlePageSizeChange\"],[0,\"pageChange\",\"handlePageChange\"],[0,\"filterChange\",\"handleFilterChange\"],[0,\"filterClear\",\"handleFilterClear\"],[0,\"poolGameCurrentPageChange\",\"handlePoolGameCurrentPageChange\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"handleGameInfoChange\"],\"endpoint\":[\"handleGameInfoChange\"],\"endpointTicket\":[\"handleTicketInfoChange\"],\"playerId\":[\"handleTicketInfoChange\"],\"sessionId\":[\"handleTicketInfoChange\"]}],[1,\"lottery-tipping-ticket-controller\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"logoUrl\":[513,\"logo-url\"],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"sessionId\":[513,\"session-id\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"drawId\":[513,\"draw-id\"],\"isLoading\":[32],\"bettingTypeOptions\":[32],\"playingModeOptions\":[32],\"selectedBettingType\":[32],\"selectedPlayingMode\":[32],\"hasSelectBullet\":[32],\"hasSelectAllBullet\":[32],\"totalLineCombination\":[32],\"submitLoading\":[32],\"rawData\":[32],\"saleStatisticsInfo\":[32],\"dialogConfig\":[32]},[[0,\"lotteryTippingBulletBetSelect\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-calendar\",{\"date\":[1],\"highLightDates\":[16],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"weeks\":[32],\"days\":[32],\"alterDate\":[32],\"curDate\":[32],\"recordInfo\":[32],\"showCalendar\":[32]},null,{\"date\":[\"handleDateChange\"]}],[1,\"lottery-tipping-filter\",{\"quickFiltersActive\":[516,\"quick-filters-active\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"isOpen\":[32],\"filterData\":[32],\"ticketTypeList\":[32],\"showClearButton\":[32]},[[0,\"modalCloseEvent\",\"handleModalClose\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-button\",{\"variant\":[513],\"size\":[513],\"disabled\":[516],\"loading\":[516],\"text\":[513],\"mbSource\":[513,\"mb-source\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"ripples\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-pagination\",{\"total\":[2],\"pageSizeOptions\":[16],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"current\":[2],\"pageSize\":[32],\"totalPages\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"total\":[\"updateTotalPages\"],\"pageSize\":[\"updateTotalPages\"]}],[1,\"lottery-tipping-panel\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"headerTitle\":[1,\"header-title\"],\"expanded\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-banner\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"logoUrl\":[513,\"logo-url\"],\"stopTime\":[1,\"stop-time\"],\"period\":[1],\"formattedTurnover\":[1,\"formatted-turnover\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-multi-select\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"options\":[16],\"maxVisibleChips\":[2,\"max-visible-chips\"],\"placeholder\":[1],\"selectedValues\":[32],\"dropdownOpen\":[32],\"overflowOpen\":[32],\"popoverStyle\":[32],\"clear\":[64]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-dialog\",{\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"visible\":[516],\"dialogTitle\":[1,\"dialog-title\"],\"width\":[1],\"closable\":[4],\"mask\":[4],\"maskClosable\":[4,\"mask-closable\"],\"animationDuration\":[2,\"animation-duration\"],\"fullscreen\":[4],\"showFooter\":[4,\"show-footer\"],\"showCancelBtn\":[4,\"show-cancel-btn\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-bet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"sessionId\":[513,\"session-id\"],\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"drawId\":[513,\"draw-id\"],\"totalPages\":[1538,\"total-pages\"],\"minTotalPages\":[514,\"min-total-pages\"],\"maxTotalPages\":[514,\"max-total-pages\"],\"mode\":[513],\"readPretty\":[516,\"read-pretty\"],\"defaultBulletConfigLineGroup\":[513,\"default-bullet-config-line-group\"],\"translationData\":[32],\"clientStylingUrlContent\":[32],\"bulletConfigLineGroup\":[32],\"currentPage\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"dialogConfig\":[32],\"ticketDataSource\":[32],\"resetBulletConfig\":[64],\"getData\":[64]},[[0,\"lotteryTippingBulletGroupToggle\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"translationUrl\":[\"handleNewTranslations\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"fetchMatchData\"],\"sessionId\":[\"fetchMatchData\"],\"drawId\":[\"fetchMatchData\"],\"defaultBulletConfigLineGroup\":[\"fetchMatchData\"],\"currentPage\":[\"handleCurrentPageChange\"]}],[1,\"lottery-tipping-bullet-group\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[513,\"position-idx\"],\"theme\":[513],\"mode\":[513],\"bulletConfigContent\":[513,\"bullet-config-content\"]},[[0,\"lotteryTippingBulletToggle\",\"lotteryTippingBulletSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-tooltip\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"position\":[1],\"delay\":[2],\"isVisible\":[32],\"_tooltipId\":[32]},[[1,\"mouseenter\",\"handleMouseEnterOrFocus\"],[0,\"focusin\",\"handleMouseEnterOrFocus\"],[1,\"mouseleave\",\"handleMouseLeaveOrBlur\"],[0,\"focusout\",\"handleMouseLeaveOrBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-bullet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[514,\"position-idx\"],\"theme\":[513],\"value\":[513],\"disabled\":[516],\"isSelected\":[516,\"is-selected\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}]]]]"), options);
22
+ return index.bootstrapLazy(JSON.parse("[[\"draw-selection_18.cjs\",[[1,\"lottery-tipping-entrance\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"logoUrl\":[513,\"logo-url\"],\"date\":[32],\"drawId\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"isLoading\":[32],\"selectedTabIndex\":[32],\"showSelectDrawPage\":[32],\"gameInfo\":[32],\"saleStatisticsInfo\":[32],\"handleClosePoolGamePage\":[64]},[[0,\"selectDraw\",\"handleSelectDraw\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"endpoint\":[\"onPropsChange\"],\"gameId\":[\"onPropsChange\"]}],[1,\"lottery-tipping-page\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"logoUrl\":[513,\"logo-url\"],\"activeTab\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-latest-result\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"hasDrawDates\":[32],\"lastestDate\":[32],\"drawList\":[32],\"curDrawItem\":[32],\"curDrawItemIdx\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32],\"curPrizes\":[32],\"curPrizeMap\":[32],\"curTurnOver\":[32],\"isLoading\":[32],\"playTypes\":[32],\"bettingTypes\":[32],\"vendorGameId\":[32]},[[0,\"changeDate\",\"handleChangeDate\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"draw-selection\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"infoImageUrl\":[513,\"info-image-url\"],\"date\":[1],\"isLoading\":[4,\"is-loading\"],\"turnover\":[1]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-history\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"gameId\":[1537,\"game-id\"],\"playerId\":[1538,\"player-id\"],\"sessionId\":[1537,\"session-id\"],\"drawId\":[513,\"draw-id\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"ticketHistory\":[32],\"activeStatus\":[32],\"statusOptions\":[32],\"isLoading\":[32],\"rawData\":[32],\"filterData\":[32],\"paginationInfo\":[32],\"quickFiltersActive\":[32],\"showCurrentTicketLine\":[32],\"curTicketItem\":[32],\"curSelection\":[32],\"curSelectionIdx\":[32],\"showCurrentDrawResult\":[32],\"curDrawItem\":[32],\"curDrawSelection\":[32],\"curDrawSelectionBettingType\":[32],\"curDrawSelectionMap\":[32]},[[0,\"pageSizeChange\",\"handlePageSizeChange\"],[0,\"pageChange\",\"handlePageChange\"],[0,\"filterChange\",\"handleFilterChange\"],[0,\"filterClear\",\"handleFilterClear\"],[0,\"poolGameCurrentPageChange\",\"handlePoolGameCurrentPageChange\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"handleGameInfoChange\"],\"endpoint\":[\"handleGameInfoChange\"],\"endpointTicket\":[\"handleTicketInfoChange\"],\"playerId\":[\"handleTicketInfoChange\"],\"sessionId\":[\"handleTicketInfoChange\"]}],[1,\"lottery-tipping-ticket-controller\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"logoUrl\":[513,\"logo-url\"],\"endpoint\":[513],\"endpointLotteryBe\":[513,\"endpoint-lottery-be\"],\"endpointTicket\":[513,\"endpoint-ticket\"],\"sessionId\":[513,\"session-id\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"drawId\":[513,\"draw-id\"],\"isLoading\":[32],\"bettingTypeOptions\":[32],\"playingModeOptions\":[32],\"selectedBettingType\":[32],\"selectedPlayingMode\":[32],\"hasSelectBullet\":[32],\"hasSelectAllBullet\":[32],\"totalLineCombination\":[32],\"submitLoading\":[32],\"rawData\":[32],\"saleStatisticsInfo\":[32],\"currentStake\":[32],\"dialogConfig\":[32]},[[0,\"lotteryTippingBulletBetSelect\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-calendar\",{\"date\":[1],\"highLightDates\":[16],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"weeks\":[32],\"days\":[32],\"alterDate\":[32],\"curDate\":[32],\"recordInfo\":[32],\"showCalendar\":[32]},null,{\"date\":[\"handleDateChange\"]}],[1,\"lottery-tipping-filter\",{\"quickFiltersActive\":[516,\"quick-filters-active\"],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"isOpen\":[32],\"filterData\":[32],\"ticketTypeList\":[32],\"showClearButton\":[32]},[[0,\"modalCloseEvent\",\"handleModalClose\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-button\",{\"variant\":[513],\"size\":[513],\"disabled\":[516],\"loading\":[516],\"text\":[513],\"mbSource\":[513,\"mb-source\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"ripples\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-pagination\",{\"total\":[2],\"pageSizeOptions\":[16],\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"current\":[2],\"pageSize\":[32],\"totalPages\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"total\":[\"updateTotalPages\"],\"pageSize\":[\"updateTotalPages\"]}],[1,\"lottery-tipping-panel\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"headerTitle\":[1,\"header-title\"],\"expanded\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-banner\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"language\":[513],\"translationUrl\":[513,\"translation-url\"],\"logoUrl\":[513,\"logo-url\"],\"stopTime\":[1,\"stop-time\"],\"period\":[1],\"formattedTurnover\":[1,\"formatted-turnover\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-multi-select\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"options\":[16],\"maxVisibleChips\":[2,\"max-visible-chips\"],\"placeholder\":[1],\"selectedValues\":[32],\"dropdownOpen\":[32],\"overflowOpen\":[32],\"popoverStyle\":[32],\"clear\":[64]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-dialog\",{\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"visible\":[516],\"dialogTitle\":[1,\"dialog-title\"],\"width\":[1],\"closable\":[4],\"mask\":[4],\"maskClosable\":[4,\"mask-closable\"],\"animationDuration\":[2,\"animation-duration\"],\"fullscreen\":[4],\"showFooter\":[4,\"show-footer\"],\"showCancelBtn\":[4,\"show-cancel-btn\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-ticket-bet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"language\":[513],\"sessionId\":[513,\"session-id\"],\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"drawId\":[513,\"draw-id\"],\"totalPages\":[1538,\"total-pages\"],\"minTotalPages\":[514,\"min-total-pages\"],\"maxTotalPages\":[514,\"max-total-pages\"],\"mode\":[513],\"readPretty\":[516,\"read-pretty\"],\"defaultBulletConfigLineGroup\":[513,\"default-bullet-config-line-group\"],\"translationData\":[32],\"clientStylingUrlContent\":[32],\"bulletConfigLineGroup\":[32],\"currentPage\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"dialogConfig\":[32],\"ticketDataSource\":[32],\"resetBulletConfig\":[64],\"getData\":[64]},[[0,\"lotteryTippingBulletGroupToggle\",\"lotteryTippingBulletGroupSelectionHandler\"]],{\"translationUrl\":[\"handleNewTranslations\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"],\"gameId\":[\"fetchMatchData\"],\"sessionId\":[\"fetchMatchData\"],\"drawId\":[\"fetchMatchData\"],\"defaultBulletConfigLineGroup\":[\"fetchMatchData\"],\"currentPage\":[\"handleCurrentPageChange\"]}],[1,\"lottery-tipping-bullet-group\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[513,\"position-idx\"],\"theme\":[513],\"mode\":[513],\"bulletConfigContent\":[513,\"bullet-config-content\"]},[[0,\"lotteryTippingBulletToggle\",\"lotteryTippingBulletSelectionHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"general-tooltip\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"position\":[1],\"delay\":[2],\"isVisible\":[32],\"_tooltipId\":[32]},[[1,\"mouseenter\",\"handleMouseEnterOrFocus\"],[0,\"focusin\",\"handleMouseEnterOrFocus\"],[1,\"mouseleave\",\"handleMouseLeaveOrBlur\"],[0,\"focusout\",\"handleMouseLeaveOrBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}],[1,\"lottery-tipping-bullet\",{\"mbSource\":[513,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"positionIdx\":[514,\"position-idx\"],\"theme\":[513],\"value\":[513],\"disabled\":[516],\"isSelected\":[516,\"is-selected\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingUrlChange\"],\"mbSource\":[\"handleMbSourceChange\"]}]]]]"), options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -850,7 +850,7 @@ const TRANSLATIONS$6 = {
850
850
  en: {
851
851
  weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
852
852
  bettingType: 'Betting Type:',
853
- prizeAllocation: 'Prize Allocation (Turnover: {turnover})',
853
+ prizeAllocation: 'Prize Allocation (Turnover: {turnover})',
854
854
  prizes: 'Prizes',
855
855
  numberOfWinners: 'Number of Winners',
856
856
  prizeMoney: 'Prize Money',
@@ -1981,15 +1981,15 @@ const LotteryTippingPage = class {
1981
1981
  }
1982
1982
  renderContent() {
1983
1983
  if (this.activeTab === Tab.BuyTickets) {
1984
- return (h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStylingUrl, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl, "logo-url": this.logoUrl }));
1984
+ return (h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl, "logo-url": this.logoUrl }));
1985
1985
  }
1986
1986
  if (this.activeTab === Tab.MyTickets) {
1987
- return (h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStylingUrl, "translation-url": this.translationUrl }));
1987
+ return (h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling, "translation-url": this.translationUrl }));
1988
1988
  }
1989
1989
  return null;
1990
1990
  }
1991
1991
  render() {
1992
- return (h("div", { key: '25d9a739d9040f9b79d9652b8cef03cf72a1d8e6', class: "lottery-tipping-page", ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'a94afa5201c3b6ccbe7edf59cdd04251ef280713', class: "lottery-tipping-page-header" }, h("slot", { key: 'ca7b177f464fbae1a54cae96a9ddad5bc50c5f9c', name: "backBtn" }), this.renderTabs(), h("div", { key: '28cd52ce3161d7da7136adc41fb021967a4a2ae9', class: "lottery-tipping-page-header-operation" }, h("slot", { key: '4caab039d48ecaf202a2d993ca2b1b46f3291804', name: "themeBtn" }), h("slot", { key: '5ab4e60d657bf0b945afd87f7778fb1d57b8f69b', name: "logoutBtn" }))), h("div", { key: '31e2e35380bde69f1e5b65cf9841f856fe6e9ed2', class: "lottery-tipping-content" }, this.renderContent())));
1992
+ return (h("div", { key: 'be4093871beefe4952d084d39741636aed4d7142', class: "lottery-tipping-page", ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'b5474516d39cdb4f91d69ae5fc1eb61b09f39497', class: "lottery-tipping-page-header" }, h("slot", { key: 'd250e3ac32fb3aa422a90abc7a053aff5f79efd8', name: "backBtn" }), this.renderTabs(), h("div", { key: '0e166025dec63f28eb60a3bbd2c8fdd444bc0398', class: "lottery-tipping-page-header-operation" }, h("slot", { key: 'acb092a029939d5b7da51b19b67037b78abb702b', name: "themeBtn" }), h("slot", { key: '6a57fa8c4c8e4f2a97cce90eefa2e65d245ad9b6', name: "logoutBtn" }))), h("div", { key: 'efe72105b6a4fadf6a970e8226568caa495e4ce7', class: "lottery-tipping-content" }, this.renderContent())));
1993
1993
  }
1994
1994
  static get watchers() { return {
1995
1995
  "clientStyling": ["handleClientStylingChange"],
@@ -2372,7 +2372,8 @@ const TRANSLATIONS$2 = {
2372
2372
  orderSummaryTotal: 'Total',
2373
2373
  orderSummarySubmit: 'Submit',
2374
2374
  cancel: 'Cancel',
2375
- confirm: 'Confirm'
2375
+ confirm: 'Confirm',
2376
+ stakePerLine: 'Stake per Line:'
2376
2377
  },
2377
2378
  ro: {
2378
2379
  selectionCleared: 'Selecția dvs. va fi ștearsă.',
@@ -2584,6 +2585,7 @@ const getPlayTypeConfig = ({ rawData, selectedBettingType, selectedPlayingMode }
2584
2585
  const betType = (_f = (_e = rawData === null || rawData === void 0 ? void 0 : rawData.rules) === null || _e === void 0 ? void 0 : _e.betTypes) === null || _f === void 0 ? void 0 : _f.find((i) => i.id === betTypeId);
2585
2586
  return { betTypeId, betType };
2586
2587
  };
2588
+ const getMinValue = (arr) => (arr.length ? Math.min.apply(null, arr) : undefined);
2587
2589
 
2588
2590
  const DEFAULT_LANGUAGE$1 = 'en';
2589
2591
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
@@ -3221,6 +3223,9 @@ const LotteryTippingTicketController = class {
3221
3223
  registerInstance(this, hostRef);
3222
3224
  this.logoutEventHandler = createEvent(this, "logout", 7);
3223
3225
  this.bothBettingTypeMultiplier = 2;
3226
+ this.onStakeChange = (e) => {
3227
+ this.currentStake = this.getCurrentStakeByValue(e.detail.value);
3228
+ };
3224
3229
  this.mbSource = undefined;
3225
3230
  this.clientStyling = undefined;
3226
3231
  this.clientStylingUrl = undefined;
@@ -3245,6 +3250,7 @@ const LotteryTippingTicketController = class {
3245
3250
  this.submitLoading = undefined;
3246
3251
  this.rawData = {};
3247
3252
  this.saleStatisticsInfo = {};
3253
+ this.currentStake = undefined;
3248
3254
  this.dialogConfig = { visible: false };
3249
3255
  }
3250
3256
  async getLotteryTippingBulletResults() {
@@ -3272,9 +3278,28 @@ const LotteryTippingTicketController = class {
3272
3278
  get isBothBettingType() {
3273
3279
  return this.selectedBettingType === BettingTypeEnum.Both;
3274
3280
  }
3275
- get currentStake() {
3281
+ get stakeOptions() {
3276
3282
  var _a, _b, _c;
3277
- return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c[0];
3283
+ return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c.map((item) => {
3284
+ var _a;
3285
+ return { value: (_a = item.value) === null || _a === void 0 ? void 0 : _a.toString(), label: item.value, currency: item.currency };
3286
+ });
3287
+ }
3288
+ getCurrentStakeByValue(value) {
3289
+ var _a;
3290
+ return (_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.find((item) => +item.value === +value);
3291
+ }
3292
+ initiateCurrentStake() {
3293
+ var _a, _b;
3294
+ // if only one option, default to the first one
3295
+ if (((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) === 1) {
3296
+ this.currentStake = this.stakeOptions[0];
3297
+ }
3298
+ else {
3299
+ // otherwise, default to the smallest stake option from the config
3300
+ const minValue = getMinValue(((_b = this.stakeOptions) === null || _b === void 0 ? void 0 : _b.map((i) => i.value)) || []);
3301
+ this.currentStake = this.getCurrentStakeByValue(minValue);
3302
+ }
3278
3303
  }
3279
3304
  handleBettingTypeChange(type) {
3280
3305
  var _a, _b, _c, _d;
@@ -3342,7 +3367,7 @@ const LotteryTippingTicketController = class {
3342
3367
  if (!stake) {
3343
3368
  return 0;
3344
3369
  }
3345
- let totalAmount = stake.value * this.totalLineCombination;
3370
+ let totalAmount = +stake.value * this.totalLineCombination;
3346
3371
  if (this.isBothBettingType)
3347
3372
  totalAmount = this.bothBettingTypeMultiplier * totalAmount;
3348
3373
  return totalAmount;
@@ -3421,6 +3446,7 @@ const LotteryTippingTicketController = class {
3421
3446
  this.rawData = res;
3422
3447
  this.bettingTypeOptions = getEnableOptions(((_b = (_a = res === null || res === void 0 ? void 0 : res.rules) === null || _a === void 0 ? void 0 : _a.poolGame) === null || _b === void 0 ? void 0 : _b.bettingTypes) || []);
3423
3448
  this.playingModeOptions = getEnableOptions(((_d = (_c = res === null || res === void 0 ? void 0 : res.rules) === null || _c === void 0 ? void 0 : _c.poolGame) === null || _d === void 0 ? void 0 : _d.playModes) || []);
3449
+ this.initiateCurrentStake();
3424
3450
  // default: select the first one
3425
3451
  const { bettingType, playMode } = getDefaultType({
3426
3452
  playTypeConfig: (_f = (_e = res === null || res === void 0 ? void 0 : res.rules) === null || _e === void 0 ? void 0 : _e.poolGame) === null || _f === void 0 ? void 0 : _f.playTypes,
@@ -3465,7 +3491,7 @@ const LotteryTippingTicketController = class {
3465
3491
  tickets: []
3466
3492
  };
3467
3493
  const selections = formatResultsToWinningNumbers(rawResults);
3468
- const stake = this.currentStake || {};
3494
+ const stake = (this.currentStake || {});
3469
3495
  body.tickets.push({
3470
3496
  startingDrawId: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.id,
3471
3497
  amount: this.calculateTotalAmount().toString(),
@@ -3514,6 +3540,7 @@ const LotteryTippingTicketController = class {
3514
3540
  return _ + ' ' + unit;
3515
3541
  }
3516
3542
  renderBettingControls() {
3543
+ var _a;
3517
3544
  const renderSkeleton = () => (h("div", { class: "skeleton-content" }, h("div", { class: "skeleton-item skeleton-animated" })));
3518
3545
  const renderBettingTypeOptions = () => (h("div", { class: "LotteryTippingTicketController__segmented-control" }, this.bettingTypeOptions.map((item) => (h("button", { class: {
3519
3546
  LotteryTippingTicketController__segment: true,
@@ -3523,10 +3550,15 @@ const LotteryTippingTicketController = class {
3523
3550
  LotteryTippingTicketController__segment: true,
3524
3551
  'LotteryTippingTicketController__segment--active': this.selectedPlayingMode === item.code
3525
3552
  }, onClick: this.handlePlayingModeChange.bind(this, item.code) }, item.name)))));
3526
- return (h("div", { class: "LotteryTippingTicketController__top" }, h("div", { class: "LotteryTippingTicketController__row" }, h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('bettingType', this.language)), !!this.bettingTypeOptions.length ? renderBettingTypeOptions() : renderSkeleton()), h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('playingMode', this.language)), !!this.playingModeOptions.length ? renderPlayingModeOptions() : renderSkeleton()))));
3553
+ const renderingStakeOptions = () => {
3554
+ var _a;
3555
+ return (h("div", null, h("vaadin-select", { items: this.stakeOptions || [], value: ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) || '', "on-value-changed": this.onStakeChange.bind(this), "no-vertical-overlap": true })));
3556
+ };
3557
+ return (h("div", { class: "LotteryTippingTicketController__top" }, h("div", { class: "LotteryTippingTicketController__row" }, h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('bettingType', this.language)), !!this.bettingTypeOptions.length ? renderBettingTypeOptions() : renderSkeleton()), h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('playingMode', this.language)), !!this.playingModeOptions.length ? renderPlayingModeOptions() : renderSkeleton()), ((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('stakePerLine', this.language)), renderingStakeOptions())))));
3527
3558
  }
3528
3559
  renderOrderSummary() {
3529
- return (h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, h("h3", { class: "order-summary__title" }, translate$2('orderSummaryTitle', this.language)), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTickets', this.language), ":"), h("div", { class: "order-summary__details" }, h("span", { class: "order-summary__line-count" }, this.lineCountRender), h("div", null, this.currentStake && h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.currentStakeFormatted)), this.isBothBettingType && (h("div", null, h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.bothBettingTypeMultiplier))))), h("hr", { class: "order-summary__divider" }), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTotal', this.language), ":"), h("span", { class: "order-summary__details" }, this.totalAmountFormatted)), h("div", { class: "order-summary__button-wrapper" }, h("lottery-button", { onClick: this.handleSubmit.bind(this), loading: this.submitLoading, disabled: !this.hasSelectAllBullet || this.submitLoading, text: translate$2('orderSummarySubmit', this.language) }))));
3560
+ var _a;
3561
+ return (h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, h("h3", { class: "order-summary__title" }, translate$2('orderSummaryTitle', this.language)), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTickets', this.language), ":"), h("div", { class: "order-summary__details" }, h("span", { class: "order-summary__line-count" }, this.lineCountRender), h("div", null, this.currentStake && h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.currentStakeFormatted)), this.isBothBettingType && (h("div", null, h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.bothBettingTypeMultiplier))))), h("hr", { class: "order-summary__divider" }), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTotal', this.language), ":"), h("span", { class: "order-summary__details" }, this.totalAmountFormatted)), h("div", { class: "order-summary__button-wrapper" }, h("lottery-button", { onClick: this.handleSubmit.bind(this), loading: this.submitLoading, disabled: !this.hasSelectAllBullet || this.submitLoading || ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) === undefined, text: translate$2('orderSummarySubmit', this.language) }))));
3530
3562
  }
3531
3563
  get formattedTurnover() {
3532
3564
  var _a, _b;
@@ -3538,7 +3570,7 @@ const LotteryTippingTicketController = class {
3538
3570
  }
3539
3571
  render() {
3540
3572
  var _a, _b, _c, _d, _e, _f, _g;
3541
- return (h("div", { key: 'a849624b0fe5fae436bec3e42836d4dc30074539', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, h("lottery-tipping-ticket-banner", { key: 'dde87c0980564b39eb882121911125f630994369', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, stopTime: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.wagerCloseTime, period: (_d = (_c = this.rawData) === null || _c === void 0 ? void 0 : _c.currentDraw) === null || _d === void 0 ? void 0 : _d.date, "formatted-turnover": this.formattedTurnover, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), h("div", { key: 'b8cfcea8d213bd0275ab9f1a3a164ebcaa629f71', class: "flex flex-wrap LotteryTippingTicketController__main" }, h("div", { key: '9fec0554e90804ae4b261d5facc28de4d242524d', class: "LotteryTippingTicketController__main--left" }, h("lottery-tipping-ticket-bet", { key: '7d36a1095dba6541b480a989e6b1661b576963bb', ref: (el) => (this.childRef = el), endpoint: this.endpoint, "session-id": this.sessionId, "game-id": (_e = this.rawData) === null || _e === void 0 ? void 0 : _e.type, "draw-id": this.drawId, language: this.language, "translation-url": this.translationUrl, "max-total-pages": this.lineNumberRange.maxLineNumber, "min-total-pages": this.lineNumberRange.minLineNumber, "total-pages": this.lineNumberRange.defaultBoards, mode: this.selectedPlayingMode === PlayModeEnum.SingleBet ? 'single' : 'multi', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl })), this.renderOrderSummary()), this.dialogConfig.visible && (h("vaadin-confirm-dialog", { key: 'c7935460a02c65697f30dd3da5e2886cec75f3fb', rejectButtonVisible: true, rejectText: translate$2('cancel', this.language), confirmText: translate$2('confirm', this.language), opened: (_f = this.dialogConfig) === null || _f === void 0 ? void 0 : _f.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_g = this.dialogConfig) === null || _g === void 0 ? void 0 : _g.content))));
3573
+ return (h("div", { key: 'bc9858c6923707b9d5e4fca7b57e272143f895aa', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, h("lottery-tipping-ticket-banner", { key: '2a220d90a4ab73f220d9d47db47e10749cb33cdd', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, stopTime: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.wagerCloseTime, period: (_d = (_c = this.rawData) === null || _c === void 0 ? void 0 : _c.currentDraw) === null || _d === void 0 ? void 0 : _d.date, "formatted-turnover": this.formattedTurnover, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), h("div", { key: '9d548c6d3d01ee4ed2e68481a00f4667e50a418b', class: "flex flex-wrap LotteryTippingTicketController__main" }, h("div", { key: '647ff830980982139f270f12a5286eb80a2f7b9e', class: "LotteryTippingTicketController__main--left" }, h("lottery-tipping-ticket-bet", { key: '0151d3830fcec76574016a97a953a12817450280', ref: (el) => (this.childRef = el), endpoint: this.endpoint, "session-id": this.sessionId, "game-id": (_e = this.rawData) === null || _e === void 0 ? void 0 : _e.type, "draw-id": this.drawId, language: this.language, "translation-url": this.translationUrl, "max-total-pages": this.lineNumberRange.maxLineNumber, "min-total-pages": this.lineNumberRange.minLineNumber, "total-pages": this.lineNumberRange.defaultBoards, mode: this.selectedPlayingMode === PlayModeEnum.SingleBet ? 'single' : 'multi', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl })), this.renderOrderSummary()), this.dialogConfig.visible && (h("vaadin-confirm-dialog", { key: '5153f04448556bca403aeadfca6b573e0dc9b832', rejectButtonVisible: true, rejectText: translate$2('cancel', this.language), confirmText: translate$2('confirm', this.language), opened: (_f = this.dialogConfig) === null || _f === void 0 ? void 0 : _f.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_g = this.dialogConfig) === null || _g === void 0 ? void 0 : _g.content))));
3542
3574
  }
3543
3575
  static get assetsDirs() { return ["../static"]; }
3544
3576
  static get watchers() { return {