@everymatrix/lottery-ticket 1.83.4 → 1.83.6
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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-bullet_3.cjs.entry.js +18 -33
- package/dist/cjs/lottery-ticket.cjs.js +1 -1
- package/dist/collection/components/lottery-ticket/lottery-ticket.js +24 -33
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-bullet_3.entry.js +18 -33
- package/dist/esm/lottery-ticket.js +1 -1
- package/dist/lottery-ticket/lottery-bullet_3.entry.js +24 -24
- package/dist/lottery-ticket/lottery-ticket.esm.js +1 -1
- package/dist/types/components/lottery-ticket/lottery-ticket.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -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([["lottery-bullet_3.cjs",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["lottery-bullet_3.cjs",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"],[4,"resetAllTicketSelection","toggleResetAllSeletion"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -7220,7 +7220,7 @@ const LotteryTicket = class {
|
|
|
7220
7220
|
this.isLoading = false;
|
|
7221
7221
|
this.gameData = data;
|
|
7222
7222
|
this.amountInfo = this.gameData.rules.stakes[0];
|
|
7223
|
-
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed ===
|
|
7223
|
+
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed === 'INPUT' ? true : false;
|
|
7224
7224
|
const betTypes = this.gameData.rules.betTypes;
|
|
7225
7225
|
const result = betTypes.reduce((acc, betType) => {
|
|
7226
7226
|
if (betType.group) {
|
|
@@ -7242,20 +7242,20 @@ const LotteryTicket = class {
|
|
|
7242
7242
|
groupName,
|
|
7243
7243
|
betType: betTypes
|
|
7244
7244
|
}));
|
|
7245
|
-
this.groupType = [...result.noGroup, ...uniqueGroupsType
|
|
7245
|
+
this.groupType = [...result.noGroup, ...uniqueGroupsType];
|
|
7246
7246
|
this.playType = this.groupType[0].betType.map((v) => {
|
|
7247
7247
|
return Object.assign(Object.assign({}, v), { label: v.name || v.id, value: v.id });
|
|
7248
7248
|
});
|
|
7249
7249
|
this.partialQuickpickAvailable = this.gameData.rules.partialQuickpickAvailable;
|
|
7250
|
-
// init primary bet type 'Prima'
|
|
7250
|
+
// init primary bet type 'Prima'
|
|
7251
7251
|
this.boardsAllowed = (_a = this.gameData.rules.betTypes) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === 'Prima')[0].boardsAllowed;
|
|
7252
7252
|
this.lineMultiplier = this.boardsAllowed[0];
|
|
7253
7253
|
let selectionRules = this.gameData.rules.betTypes[0].selectionRules;
|
|
7254
7254
|
let secondarySelectionRules = this.gameData.rules.betTypes[0].secondarySelectionRules;
|
|
7255
|
-
this.numberRange = selectionRules.map(item => item.selectionCount);
|
|
7255
|
+
this.numberRange = selectionRules.map((item) => item.selectionCount);
|
|
7256
7256
|
this.maximumAllowed = Math.max(...this.numberRange);
|
|
7257
7257
|
this.minimumAllowed = Math.min(...this.numberRange);
|
|
7258
|
-
this.secondaryNumberRange = secondarySelectionRules.map(item => item.selectionCount);
|
|
7258
|
+
this.secondaryNumberRange = secondarySelectionRules.map((item) => item.selectionCount);
|
|
7259
7259
|
this.secondaryMaximumAllowed = Math.max(...this.secondaryNumberRange);
|
|
7260
7260
|
this.secondaryMinimumAllowed = Math.min(...this.secondaryNumberRange);
|
|
7261
7261
|
})
|
|
@@ -7281,7 +7281,9 @@ const LotteryTicket = class {
|
|
|
7281
7281
|
}
|
|
7282
7282
|
}
|
|
7283
7283
|
gridFilledHandler(event) {
|
|
7284
|
-
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
7284
|
+
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
7285
|
+
? this.playType.find((item) => item.value === this.selectedPlayTypeId).label
|
|
7286
|
+
: this.groupType[this.tabIndex].groupName });
|
|
7285
7287
|
this.ticketDone = [
|
|
7286
7288
|
...this.ticketDone.slice(0, event.detail.index),
|
|
7287
7289
|
true,
|
|
@@ -7291,19 +7293,11 @@ const LotteryTicket = class {
|
|
|
7291
7293
|
}
|
|
7292
7294
|
handleGridClearAllEvent(event) {
|
|
7293
7295
|
let index = event.detail;
|
|
7294
|
-
this.ticketDone = [
|
|
7295
|
-
...this.ticketDone.slice(0, index),
|
|
7296
|
-
false,
|
|
7297
|
-
...this.ticketDone.slice(index + 1)
|
|
7298
|
-
];
|
|
7296
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
7299
7297
|
this.quickPicks[index] = false;
|
|
7300
7298
|
}
|
|
7301
7299
|
toggleAutoSelection(index) {
|
|
7302
|
-
this.ticketDone = [
|
|
7303
|
-
...this.ticketDone.slice(0, index),
|
|
7304
|
-
true,
|
|
7305
|
-
...this.ticketDone.slice(index + 1)
|
|
7306
|
-
];
|
|
7300
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), true, ...this.ticketDone.slice(index + 1)];
|
|
7307
7301
|
this.autoSelection.emit({
|
|
7308
7302
|
ticketId: this.ticketId,
|
|
7309
7303
|
index
|
|
@@ -7311,17 +7305,18 @@ const LotteryTicket = class {
|
|
|
7311
7305
|
this.quickPicks[index] = true;
|
|
7312
7306
|
}
|
|
7313
7307
|
toggleResetSelection(index) {
|
|
7314
|
-
this.ticketDone = [
|
|
7315
|
-
...this.ticketDone.slice(0, index),
|
|
7316
|
-
false,
|
|
7317
|
-
...this.ticketDone.slice(index + 1)
|
|
7318
|
-
];
|
|
7308
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
7319
7309
|
this.resetSelection.emit({
|
|
7320
7310
|
ticketId: this.ticketId,
|
|
7321
7311
|
index
|
|
7322
7312
|
});
|
|
7323
7313
|
this.quickPicks[index] = false;
|
|
7324
7314
|
}
|
|
7315
|
+
toggleResetAllSeletion() {
|
|
7316
|
+
this.grids.forEach((_, index) => {
|
|
7317
|
+
this.toggleResetSelection(index);
|
|
7318
|
+
});
|
|
7319
|
+
}
|
|
7325
7320
|
changeStake(ticketid, amount) {
|
|
7326
7321
|
this.stakeChange.emit({
|
|
7327
7322
|
ticketId: ticketid,
|
|
@@ -7362,7 +7357,7 @@ const LotteryTicket = class {
|
|
|
7362
7357
|
this.isCustomSelectLine = false;
|
|
7363
7358
|
this.lineMultiplierChange.emit({
|
|
7364
7359
|
ticketId: this.ticketId,
|
|
7365
|
-
lineNum: item
|
|
7360
|
+
lineNum: item
|
|
7366
7361
|
});
|
|
7367
7362
|
}
|
|
7368
7363
|
setDrawMultiplier(item) {
|
|
@@ -7403,17 +7398,7 @@ const LotteryTicket = class {
|
|
|
7403
7398
|
}
|
|
7404
7399
|
else {
|
|
7405
7400
|
const { rules } = this.gameData;
|
|
7406
|
-
return (index.h("div", { class: "TicketContainer", ref: el => this.stylingContainer = el }, index.h("p", { class: "TicketTitle" }, this.gameData.name), index.h("div", { class: "TicketTabs" }, this.groupType.map((item, index$1) => index.h("div", { class: 'TabButton' + (this.tabIndex == index$1 ? ' Active' : ''), onClick: () => this.tabIndex = index$1 }, item.groupName))), this.playType.length > 1 &&
|
|
7407
|
-
index.h("div", null, index.h("label", { class: "Label" }, translate('playType', this.language), ": "), index.h("vaadin-select", { style: { 'width': '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) })), this.boardsAllowed.length > 1 &&
|
|
7408
|
-
index.h("div", null, index.h("label", { class: "Label" }, translate('lines', this.language), ": "), index.h("div", { class: "WagerInput" }, index.h("div", { ref: el => this.selectLineRef = el, class: this.isCustomSelectLine ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, index.h("span", null, this.lineMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => index.h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))), this.grids.map((_, index$1) => index.h("div", null, index.h("div", { class: "TicketGridHeader" }, index.h("div", null, translate('lineName', this.language), index$1 + 1), this.resetButton && this.ticketDone[index$1] &&
|
|
7409
|
-
index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index$1) }, translate('resetButton', this.language))), this.autoPick && !this.ticketDone[index$1] &&
|
|
7410
|
-
index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index$1) }, translate('autoButton', this.language)))), index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed &&
|
|
7411
|
-
index.h("div", { class: "SecondarySelectionWrapper" }, index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))), rules.stakeMultiplierAvailable &&
|
|
7412
|
-
index.h("div", null, index.h("label", { class: "Label" }, translate('multiplier', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ?
|
|
7413
|
-
(index.h("div", { ref: el => this.selectStakeRef = el, class: this.isCustomSelectStake ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, index.h("span", null, this.stakeMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => index.h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item)))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true }))))), rules.drawMultiplierAvailable &&
|
|
7414
|
-
index.h("div", null, index.h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.durations.length > 1 ?
|
|
7415
|
-
(index.h("div", { ref: el => this.selectDrawRef = el, class: this.isCustomSelectDraw ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, index.h("span", null, this.drawMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.durations.map((item) => index.h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item)))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true }))))), index.h("div", null, index.h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.stakes.length > 1 ?
|
|
7416
|
-
(index.h("div", { ref: el => this.selectRef = el, class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, index.h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, index.h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => index.h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency)))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), index.h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
7401
|
+
return (index.h("div", { class: "TicketContainer", ref: (el) => (this.stylingContainer = el) }, index.h("p", { class: "TicketTitle" }, this.gameData.name), index.h("div", { class: "TicketTabs" }, this.groupType.map((item, index$1) => (index.h("div", { class: 'TabButton' + (this.tabIndex == index$1 ? ' Active' : ''), onClick: () => (this.tabIndex = index$1) }, item.groupName)))), this.playType.length > 1 && (index.h("div", null, index.h("label", { class: "Label" }, translate('playType', this.language), ": "), index.h("vaadin-select", { style: { width: '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) }))), this.boardsAllowed.length > 1 && (index.h("div", null, index.h("label", { class: "Label" }, translate('lines', this.language), ": "), index.h("div", { class: "WagerInput" }, index.h("div", { ref: (el) => (this.selectLineRef = el), class: this.isCustomSelectLine ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, index.h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, index.h("span", null, this.lineMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => (index.h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))))), this.grids.map((_, index$1) => (index.h("div", null, index.h("div", { class: "TicketGridHeader" }, index.h("div", null, translate('lineName', this.language), index$1 + 1), this.resetButton && this.ticketDone[index$1] && (index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index$1) }, translate('resetButton', this.language)))), this.autoPick && !this.ticketDone[index$1] && (index.h("div", { class: "ButtonContainer" }, index.h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index$1) }, translate('autoButton', this.language))))), index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed && (index.h("div", { class: "SecondarySelectionWrapper" }, index.h("div", { class: "TicketGridBullets" }, index.h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), index.h("lottery-grid", { "grid-index": index$1, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))))), rules.stakeMultiplierAvailable && (index.h("div", null, index.h("label", { class: "Label" }, translate('multiplier', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ? (index.h("div", { ref: (el) => (this.selectStakeRef = el), class: this.isCustomSelectStake ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, index.h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, index.h("span", null, this.stakeMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => (index.h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item))))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true })))))), rules.drawMultiplierAvailable && (index.h("div", null, index.h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.durations.length > 1 ? (index.h("div", { ref: (el) => (this.selectDrawRef = el), class: this.isCustomSelectDraw ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, index.h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, index.h("span", null, this.drawMultiplier), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.durations.map((item) => (index.h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item))))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true })))))), index.h("div", null, index.h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), index.h("div", { class: "WagerInput" }, rules.stakes.length > 1 ? (index.h("div", { ref: (el) => (this.selectRef = el), class: this.isCustomSelect ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, index.h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, index.h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), index.h("span", { class: "SelectExpand" }, "\u25BC")), index.h("div", { class: "SelectContent" }, index.h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => (index.h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency))))))) : (index.h("div", null, index.h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), index.h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
7417
7402
|
}
|
|
7418
7403
|
}
|
|
7419
7404
|
}
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["lottery-bullet_3.cjs",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["lottery-bullet_3.cjs",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"],[4,"resetAllTicketSelection","toggleResetAllSeletion"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -126,7 +126,7 @@ export class LotteryTicket {
|
|
|
126
126
|
this.isLoading = false;
|
|
127
127
|
this.gameData = data;
|
|
128
128
|
this.amountInfo = this.gameData.rules.stakes[0];
|
|
129
|
-
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed ===
|
|
129
|
+
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed === 'INPUT' ? true : false;
|
|
130
130
|
const betTypes = this.gameData.rules.betTypes;
|
|
131
131
|
const result = betTypes.reduce((acc, betType) => {
|
|
132
132
|
if (betType.group) {
|
|
@@ -148,20 +148,20 @@ export class LotteryTicket {
|
|
|
148
148
|
groupName,
|
|
149
149
|
betType: betTypes
|
|
150
150
|
}));
|
|
151
|
-
this.groupType = [...result.noGroup, ...uniqueGroupsType
|
|
151
|
+
this.groupType = [...result.noGroup, ...uniqueGroupsType];
|
|
152
152
|
this.playType = this.groupType[0].betType.map((v) => {
|
|
153
153
|
return Object.assign(Object.assign({}, v), { label: v.name || v.id, value: v.id });
|
|
154
154
|
});
|
|
155
155
|
this.partialQuickpickAvailable = this.gameData.rules.partialQuickpickAvailable;
|
|
156
|
-
// init primary bet type 'Prima'
|
|
156
|
+
// init primary bet type 'Prima'
|
|
157
157
|
this.boardsAllowed = (_a = this.gameData.rules.betTypes) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === 'Prima')[0].boardsAllowed;
|
|
158
158
|
this.lineMultiplier = this.boardsAllowed[0];
|
|
159
159
|
let selectionRules = this.gameData.rules.betTypes[0].selectionRules;
|
|
160
160
|
let secondarySelectionRules = this.gameData.rules.betTypes[0].secondarySelectionRules;
|
|
161
|
-
this.numberRange = selectionRules.map(item => item.selectionCount);
|
|
161
|
+
this.numberRange = selectionRules.map((item) => item.selectionCount);
|
|
162
162
|
this.maximumAllowed = Math.max(...this.numberRange);
|
|
163
163
|
this.minimumAllowed = Math.min(...this.numberRange);
|
|
164
|
-
this.secondaryNumberRange = secondarySelectionRules.map(item => item.selectionCount);
|
|
164
|
+
this.secondaryNumberRange = secondarySelectionRules.map((item) => item.selectionCount);
|
|
165
165
|
this.secondaryMaximumAllowed = Math.max(...this.secondaryNumberRange);
|
|
166
166
|
this.secondaryMinimumAllowed = Math.min(...this.secondaryNumberRange);
|
|
167
167
|
})
|
|
@@ -187,7 +187,9 @@ export class LotteryTicket {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
gridFilledHandler(event) {
|
|
190
|
-
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
190
|
+
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
191
|
+
? this.playType.find((item) => item.value === this.selectedPlayTypeId).label
|
|
192
|
+
: this.groupType[this.tabIndex].groupName });
|
|
191
193
|
this.ticketDone = [
|
|
192
194
|
...this.ticketDone.slice(0, event.detail.index),
|
|
193
195
|
true,
|
|
@@ -197,19 +199,11 @@ export class LotteryTicket {
|
|
|
197
199
|
}
|
|
198
200
|
handleGridClearAllEvent(event) {
|
|
199
201
|
let index = event.detail;
|
|
200
|
-
this.ticketDone = [
|
|
201
|
-
...this.ticketDone.slice(0, index),
|
|
202
|
-
false,
|
|
203
|
-
...this.ticketDone.slice(index + 1)
|
|
204
|
-
];
|
|
202
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
205
203
|
this.quickPicks[index] = false;
|
|
206
204
|
}
|
|
207
205
|
toggleAutoSelection(index) {
|
|
208
|
-
this.ticketDone = [
|
|
209
|
-
...this.ticketDone.slice(0, index),
|
|
210
|
-
true,
|
|
211
|
-
...this.ticketDone.slice(index + 1)
|
|
212
|
-
];
|
|
206
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), true, ...this.ticketDone.slice(index + 1)];
|
|
213
207
|
this.autoSelection.emit({
|
|
214
208
|
ticketId: this.ticketId,
|
|
215
209
|
index
|
|
@@ -217,17 +211,18 @@ export class LotteryTicket {
|
|
|
217
211
|
this.quickPicks[index] = true;
|
|
218
212
|
}
|
|
219
213
|
toggleResetSelection(index) {
|
|
220
|
-
this.ticketDone = [
|
|
221
|
-
...this.ticketDone.slice(0, index),
|
|
222
|
-
false,
|
|
223
|
-
...this.ticketDone.slice(index + 1)
|
|
224
|
-
];
|
|
214
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
225
215
|
this.resetSelection.emit({
|
|
226
216
|
ticketId: this.ticketId,
|
|
227
217
|
index
|
|
228
218
|
});
|
|
229
219
|
this.quickPicks[index] = false;
|
|
230
220
|
}
|
|
221
|
+
toggleResetAllSeletion() {
|
|
222
|
+
this.grids.forEach((_, index) => {
|
|
223
|
+
this.toggleResetSelection(index);
|
|
224
|
+
});
|
|
225
|
+
}
|
|
231
226
|
changeStake(ticketid, amount) {
|
|
232
227
|
this.stakeChange.emit({
|
|
233
228
|
ticketId: ticketid,
|
|
@@ -268,7 +263,7 @@ export class LotteryTicket {
|
|
|
268
263
|
this.isCustomSelectLine = false;
|
|
269
264
|
this.lineMultiplierChange.emit({
|
|
270
265
|
ticketId: this.ticketId,
|
|
271
|
-
lineNum: item
|
|
266
|
+
lineNum: item
|
|
272
267
|
});
|
|
273
268
|
}
|
|
274
269
|
setDrawMultiplier(item) {
|
|
@@ -309,17 +304,7 @@ export class LotteryTicket {
|
|
|
309
304
|
}
|
|
310
305
|
else {
|
|
311
306
|
const { rules } = this.gameData;
|
|
312
|
-
return (h("div", { class: "TicketContainer", ref: el => this.stylingContainer = el }, h("p", { class: "TicketTitle" }, this.gameData.name), h("div", { class: "TicketTabs" }, this.groupType.map((item, index) => h("div", { class: 'TabButton' + (this.tabIndex == index ? ' Active' : ''), onClick: () => this.tabIndex = index }, item.groupName))), this.playType.length > 1 &&
|
|
313
|
-
h("div", null, h("label", { class: "Label" }, translate('playType', this.language), ": "), h("vaadin-select", { style: { 'width': '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) })), this.boardsAllowed.length > 1 &&
|
|
314
|
-
h("div", null, h("label", { class: "Label" }, translate('lines', this.language), ": "), h("div", { class: "WagerInput" }, h("div", { ref: el => this.selectLineRef = el, class: this.isCustomSelectLine ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, h("span", null, this.lineMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))), this.grids.map((_, index) => h("div", null, h("div", { class: "TicketGridHeader" }, h("div", null, translate('lineName', this.language), index + 1), this.resetButton && this.ticketDone[index] &&
|
|
315
|
-
h("div", { class: "ButtonContainer" }, h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index) }, translate('resetButton', this.language))), this.autoPick && !this.ticketDone[index] &&
|
|
316
|
-
h("div", { class: "ButtonContainer" }, h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index) }, translate('autoButton', this.language)))), h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed &&
|
|
317
|
-
h("div", { class: "SecondarySelectionWrapper" }, h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))), rules.stakeMultiplierAvailable &&
|
|
318
|
-
h("div", null, h("label", { class: "Label" }, translate('multiplier', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ?
|
|
319
|
-
(h("div", { ref: el => this.selectStakeRef = el, class: this.isCustomSelectStake ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, h("span", null, this.stakeMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item)))))) : (h("div", null, h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true }))))), rules.drawMultiplierAvailable &&
|
|
320
|
-
h("div", null, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), h("div", { class: "WagerInput" }, rules.durations.length > 1 ?
|
|
321
|
-
(h("div", { ref: el => this.selectDrawRef = el, class: this.isCustomSelectDraw ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, h("span", null, this.drawMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.durations.map((item) => h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item)))))) : (h("div", null, h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true }))))), h("div", null, h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakes.length > 1 ?
|
|
322
|
-
(h("div", { ref: el => this.selectRef = el, class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency)))))) : (h("div", null, h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
307
|
+
return (h("div", { class: "TicketContainer", ref: (el) => (this.stylingContainer = el) }, h("p", { class: "TicketTitle" }, this.gameData.name), h("div", { class: "TicketTabs" }, this.groupType.map((item, index) => (h("div", { class: 'TabButton' + (this.tabIndex == index ? ' Active' : ''), onClick: () => (this.tabIndex = index) }, item.groupName)))), this.playType.length > 1 && (h("div", null, h("label", { class: "Label" }, translate('playType', this.language), ": "), h("vaadin-select", { style: { width: '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) }))), this.boardsAllowed.length > 1 && (h("div", null, h("label", { class: "Label" }, translate('lines', this.language), ": "), h("div", { class: "WagerInput" }, h("div", { ref: (el) => (this.selectLineRef = el), class: this.isCustomSelectLine ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, h("span", null, this.lineMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => (h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))))), this.grids.map((_, index) => (h("div", null, h("div", { class: "TicketGridHeader" }, h("div", null, translate('lineName', this.language), index + 1), this.resetButton && this.ticketDone[index] && (h("div", { class: "ButtonContainer" }, h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index) }, translate('resetButton', this.language)))), this.autoPick && !this.ticketDone[index] && (h("div", { class: "ButtonContainer" }, h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index) }, translate('autoButton', this.language))))), h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed && (h("div", { class: "SecondarySelectionWrapper" }, h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))))), rules.stakeMultiplierAvailable && (h("div", null, h("label", { class: "Label" }, translate('multiplier', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ? (h("div", { ref: (el) => (this.selectStakeRef = el), class: this.isCustomSelectStake ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, h("span", null, this.stakeMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => (h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item))))))) : (h("div", null, h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true })))))), rules.drawMultiplierAvailable && (h("div", null, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), h("div", { class: "WagerInput" }, rules.durations.length > 1 ? (h("div", { ref: (el) => (this.selectDrawRef = el), class: this.isCustomSelectDraw ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, h("span", null, this.drawMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.durations.map((item) => (h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item))))))) : (h("div", null, h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true })))))), h("div", null, h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakes.length > 1 ? (h("div", { ref: (el) => (this.selectRef = el), class: this.isCustomSelect ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => (h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency))))))) : (h("div", null, h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
323
308
|
}
|
|
324
309
|
}
|
|
325
310
|
}
|
|
@@ -742,6 +727,12 @@ export class LotteryTicket {
|
|
|
742
727
|
"target": undefined,
|
|
743
728
|
"capture": false,
|
|
744
729
|
"passive": false
|
|
730
|
+
}, {
|
|
731
|
+
"name": "resetAllTicketSelection",
|
|
732
|
+
"method": "toggleResetAllSeletion",
|
|
733
|
+
"target": "document",
|
|
734
|
+
"capture": false,
|
|
735
|
+
"passive": false
|
|
745
736
|
}];
|
|
746
737
|
}
|
|
747
738
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"],[4,"resetAllTicketSelection","toggleResetAllSeletion"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -7216,7 +7216,7 @@ const LotteryTicket = class {
|
|
|
7216
7216
|
this.isLoading = false;
|
|
7217
7217
|
this.gameData = data;
|
|
7218
7218
|
this.amountInfo = this.gameData.rules.stakes[0];
|
|
7219
|
-
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed ===
|
|
7219
|
+
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed === 'INPUT' ? true : false;
|
|
7220
7220
|
const betTypes = this.gameData.rules.betTypes;
|
|
7221
7221
|
const result = betTypes.reduce((acc, betType) => {
|
|
7222
7222
|
if (betType.group) {
|
|
@@ -7238,20 +7238,20 @@ const LotteryTicket = class {
|
|
|
7238
7238
|
groupName,
|
|
7239
7239
|
betType: betTypes
|
|
7240
7240
|
}));
|
|
7241
|
-
this.groupType = [...result.noGroup, ...uniqueGroupsType
|
|
7241
|
+
this.groupType = [...result.noGroup, ...uniqueGroupsType];
|
|
7242
7242
|
this.playType = this.groupType[0].betType.map((v) => {
|
|
7243
7243
|
return Object.assign(Object.assign({}, v), { label: v.name || v.id, value: v.id });
|
|
7244
7244
|
});
|
|
7245
7245
|
this.partialQuickpickAvailable = this.gameData.rules.partialQuickpickAvailable;
|
|
7246
|
-
// init primary bet type 'Prima'
|
|
7246
|
+
// init primary bet type 'Prima'
|
|
7247
7247
|
this.boardsAllowed = (_a = this.gameData.rules.betTypes) === null || _a === void 0 ? void 0 : _a.filter((item) => item.id === 'Prima')[0].boardsAllowed;
|
|
7248
7248
|
this.lineMultiplier = this.boardsAllowed[0];
|
|
7249
7249
|
let selectionRules = this.gameData.rules.betTypes[0].selectionRules;
|
|
7250
7250
|
let secondarySelectionRules = this.gameData.rules.betTypes[0].secondarySelectionRules;
|
|
7251
|
-
this.numberRange = selectionRules.map(item => item.selectionCount);
|
|
7251
|
+
this.numberRange = selectionRules.map((item) => item.selectionCount);
|
|
7252
7252
|
this.maximumAllowed = Math.max(...this.numberRange);
|
|
7253
7253
|
this.minimumAllowed = Math.min(...this.numberRange);
|
|
7254
|
-
this.secondaryNumberRange = secondarySelectionRules.map(item => item.selectionCount);
|
|
7254
|
+
this.secondaryNumberRange = secondarySelectionRules.map((item) => item.selectionCount);
|
|
7255
7255
|
this.secondaryMaximumAllowed = Math.max(...this.secondaryNumberRange);
|
|
7256
7256
|
this.secondaryMinimumAllowed = Math.min(...this.secondaryNumberRange);
|
|
7257
7257
|
})
|
|
@@ -7277,7 +7277,9 @@ const LotteryTicket = class {
|
|
|
7277
7277
|
}
|
|
7278
7278
|
}
|
|
7279
7279
|
gridFilledHandler(event) {
|
|
7280
|
-
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
7280
|
+
this.ticket = Object.assign(Object.assign({}, event.detail), { drawCount: this.drawMultiplier, multiplierNum: Number(this.stakeMultiplier), multiplier: this.gameData.rules.stakeMultiplierAvailable, quickPicks: this.quickPicks, betName: this.playType.length > 1
|
|
7281
|
+
? this.playType.find((item) => item.value === this.selectedPlayTypeId).label
|
|
7282
|
+
: this.groupType[this.tabIndex].groupName });
|
|
7281
7283
|
this.ticketDone = [
|
|
7282
7284
|
...this.ticketDone.slice(0, event.detail.index),
|
|
7283
7285
|
true,
|
|
@@ -7287,19 +7289,11 @@ const LotteryTicket = class {
|
|
|
7287
7289
|
}
|
|
7288
7290
|
handleGridClearAllEvent(event) {
|
|
7289
7291
|
let index = event.detail;
|
|
7290
|
-
this.ticketDone = [
|
|
7291
|
-
...this.ticketDone.slice(0, index),
|
|
7292
|
-
false,
|
|
7293
|
-
...this.ticketDone.slice(index + 1)
|
|
7294
|
-
];
|
|
7292
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
7295
7293
|
this.quickPicks[index] = false;
|
|
7296
7294
|
}
|
|
7297
7295
|
toggleAutoSelection(index) {
|
|
7298
|
-
this.ticketDone = [
|
|
7299
|
-
...this.ticketDone.slice(0, index),
|
|
7300
|
-
true,
|
|
7301
|
-
...this.ticketDone.slice(index + 1)
|
|
7302
|
-
];
|
|
7296
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), true, ...this.ticketDone.slice(index + 1)];
|
|
7303
7297
|
this.autoSelection.emit({
|
|
7304
7298
|
ticketId: this.ticketId,
|
|
7305
7299
|
index
|
|
@@ -7307,17 +7301,18 @@ const LotteryTicket = class {
|
|
|
7307
7301
|
this.quickPicks[index] = true;
|
|
7308
7302
|
}
|
|
7309
7303
|
toggleResetSelection(index) {
|
|
7310
|
-
this.ticketDone = [
|
|
7311
|
-
...this.ticketDone.slice(0, index),
|
|
7312
|
-
false,
|
|
7313
|
-
...this.ticketDone.slice(index + 1)
|
|
7314
|
-
];
|
|
7304
|
+
this.ticketDone = [...this.ticketDone.slice(0, index), false, ...this.ticketDone.slice(index + 1)];
|
|
7315
7305
|
this.resetSelection.emit({
|
|
7316
7306
|
ticketId: this.ticketId,
|
|
7317
7307
|
index
|
|
7318
7308
|
});
|
|
7319
7309
|
this.quickPicks[index] = false;
|
|
7320
7310
|
}
|
|
7311
|
+
toggleResetAllSeletion() {
|
|
7312
|
+
this.grids.forEach((_, index) => {
|
|
7313
|
+
this.toggleResetSelection(index);
|
|
7314
|
+
});
|
|
7315
|
+
}
|
|
7321
7316
|
changeStake(ticketid, amount) {
|
|
7322
7317
|
this.stakeChange.emit({
|
|
7323
7318
|
ticketId: ticketid,
|
|
@@ -7358,7 +7353,7 @@ const LotteryTicket = class {
|
|
|
7358
7353
|
this.isCustomSelectLine = false;
|
|
7359
7354
|
this.lineMultiplierChange.emit({
|
|
7360
7355
|
ticketId: this.ticketId,
|
|
7361
|
-
lineNum: item
|
|
7356
|
+
lineNum: item
|
|
7362
7357
|
});
|
|
7363
7358
|
}
|
|
7364
7359
|
setDrawMultiplier(item) {
|
|
@@ -7399,17 +7394,7 @@ const LotteryTicket = class {
|
|
|
7399
7394
|
}
|
|
7400
7395
|
else {
|
|
7401
7396
|
const { rules } = this.gameData;
|
|
7402
|
-
return (h("div", { class: "TicketContainer", ref: el => this.stylingContainer = el }, h("p", { class: "TicketTitle" }, this.gameData.name), h("div", { class: "TicketTabs" }, this.groupType.map((item, index) => h("div", { class: 'TabButton' + (this.tabIndex == index ? ' Active' : ''), onClick: () => this.tabIndex = index }, item.groupName))), this.playType.length > 1 &&
|
|
7403
|
-
h("div", null, h("label", { class: "Label" }, translate('playType', this.language), ": "), h("vaadin-select", { style: { 'width': '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) })), this.boardsAllowed.length > 1 &&
|
|
7404
|
-
h("div", null, h("label", { class: "Label" }, translate('lines', this.language), ": "), h("div", { class: "WagerInput" }, h("div", { ref: el => this.selectLineRef = el, class: this.isCustomSelectLine ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, h("span", null, this.lineMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))), this.grids.map((_, index) => h("div", null, h("div", { class: "TicketGridHeader" }, h("div", null, translate('lineName', this.language), index + 1), this.resetButton && this.ticketDone[index] &&
|
|
7405
|
-
h("div", { class: "ButtonContainer" }, h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index) }, translate('resetButton', this.language))), this.autoPick && !this.ticketDone[index] &&
|
|
7406
|
-
h("div", { class: "ButtonContainer" }, h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index) }, translate('autoButton', this.language)))), h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed &&
|
|
7407
|
-
h("div", { class: "SecondarySelectionWrapper" }, h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))), rules.stakeMultiplierAvailable &&
|
|
7408
|
-
h("div", null, h("label", { class: "Label" }, translate('multiplier', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ?
|
|
7409
|
-
(h("div", { ref: el => this.selectStakeRef = el, class: this.isCustomSelectStake ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, h("span", null, this.stakeMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item)))))) : (h("div", null, h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true }))))), rules.drawMultiplierAvailable &&
|
|
7410
|
-
h("div", null, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), h("div", { class: "WagerInput" }, rules.durations.length > 1 ?
|
|
7411
|
-
(h("div", { ref: el => this.selectDrawRef = el, class: this.isCustomSelectDraw ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, h("span", null, this.drawMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.durations.map((item) => h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item)))))) : (h("div", null, h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true }))))), h("div", null, h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakes.length > 1 ?
|
|
7412
|
-
(h("div", { ref: el => this.selectRef = el, class: this.isCustomSelect ? "SelectWrapper SelectActive" : "SelectWrapper" }, h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency)))))) : (h("div", null, h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
7397
|
+
return (h("div", { class: "TicketContainer", ref: (el) => (this.stylingContainer = el) }, h("p", { class: "TicketTitle" }, this.gameData.name), h("div", { class: "TicketTabs" }, this.groupType.map((item, index) => (h("div", { class: 'TabButton' + (this.tabIndex == index ? ' Active' : ''), onClick: () => (this.tabIndex = index) }, item.groupName)))), this.playType.length > 1 && (h("div", null, h("label", { class: "Label" }, translate('playType', this.language), ": "), h("vaadin-select", { style: { width: '160px' }, items: this.playType, value: this.selectedPlayTypeId, "on-value-changed": (e) => this.handlePlayTypeChange(e.detail.value) }))), this.boardsAllowed.length > 1 && (h("div", null, h("label", { class: "Label" }, translate('lines', this.language), ": "), h("div", { class: "WagerInput" }, h("div", { ref: (el) => (this.selectLineRef = el), class: this.isCustomSelectLine ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleLineSelection() }, h("span", null, this.lineMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, this.boardsAllowed.map((item) => (h("li", { class: this.lineMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setLineMultiplier(item) }, item))))))))), this.grids.map((_, index) => (h("div", null, h("div", { class: "TicketGridHeader" }, h("div", null, translate('lineName', this.language), index + 1), this.resetButton && this.ticketDone[index] && (h("div", { class: "ButtonContainer" }, h("a", { class: "ResetButton", onClick: () => this.toggleResetSelection(index) }, translate('resetButton', this.language)))), this.autoPick && !this.ticketDone[index] && (h("div", { class: "ButtonContainer" }, h("a", { class: "AutoButton", onClick: () => this.toggleAutoSelection(index) }, translate('autoButton', this.language))))), h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].selectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.maximumAllowed, "minimum-allowed": this.minimumAllowed, "number-range": JSON.stringify(this.numberRange), "high-number": rules.boards[0].highNumber, "low-number": rules.boards[0].lowNumber, "total-numbers": rules.boards[0].highNumber - rules.boards[0].lowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'mainSelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource })), this.secondarySelectionAllowed && (h("div", { class: "SecondarySelectionWrapper" }, h("div", { class: "TicketGridBullets" }, h("p", { class: "TicketGridTitle" }, rules.boards[0].secondarySelectionName), h("lottery-grid", { "grid-index": index, "maximum-allowed": this.secondaryMaximumAllowed, "minimum-allowed": this.secondaryMinimumAllowed, "number-range": JSON.stringify(this.secondaryNumberRange), "high-number": rules.boards[0].secondaryHighNumber, "low-number": rules.boards[0].secondaryLowNumber, "total-numbers": rules.boards[0].secondaryHighNumber - rules.boards[0].secondaryLowNumber + 1, selectable: true, "reset-button": true, "auto-pick": true, "game-id": this.gameId, "ticket-id": this.ticketId, "partial-quickpick-available": this.partialQuickpickAvailable, language: this.language, "translation-url": this.translationUrl, "selection-type": 'secondarySelection', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource }))))))), rules.stakeMultiplierAvailable && (h("div", null, h("label", { class: "Label" }, translate('multiplier', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakeMultipliers.length > 1 ? (h("div", { ref: (el) => (this.selectStakeRef = el), class: this.isCustomSelectStake ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleSelection() }, h("span", null, this.stakeMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakeMultipliers.map((item) => (h("li", { class: this.stakeMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setStakeMultiplier(item) }, item))))))) : (h("div", null, h("input", { min: "1", value: rules.stakeMultipliers[0] || 1, type: "number", disabled: true })))))), rules.drawMultiplierAvailable && (h("div", null, h("label", { class: "Label" }, translate('numberOfDraws', this.language), ": "), h("div", { class: "WagerInput" }, rules.durations.length > 1 ? (h("div", { ref: (el) => (this.selectDrawRef = el), class: this.isCustomSelectDraw ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleDrawSelection() }, h("span", null, this.drawMultiplier), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.durations.map((item) => (h("li", { class: this.drawMultiplier == item ? 'SelectedValue' : '', value: item, onClick: () => this.setDrawMultiplier(item) }, item))))))) : (h("div", null, h("input", { min: "1", value: rules.durations[0] || 1, type: "number", disabled: true })))))), h("div", null, h("label", { class: "Label" }, translate('wagerPerDraw', this.language), ": "), h("div", { class: "WagerInput" }, rules.stakes.length > 1 ? (h("div", { ref: (el) => (this.selectRef = el), class: this.isCustomSelect ? 'SelectWrapper SelectActive' : 'SelectWrapper' }, h("div", { class: "SelectButton", onClick: () => this.toggleClass() }, h("span", null, this.amountInfo.value, " ", this.amountInfo.currency), h("span", { class: "SelectExpand" }, "\u25BC")), h("div", { class: "SelectContent" }, h("ul", { class: "SelectOptions" }, rules.stakes.map((item) => (h("li", { class: this.amountInfo.value == item.value ? 'SelectedValue' : '', value: item.value, onClick: () => this.setWagerPerDraw(item) }, item.value, " ", item.currency))))))) : (h("div", null, h("input", { min: "1", value: rules.stakes[0].value, type: "number", disabled: true }), h("span", { class: "WagerInputTitle" }, rules.stakes[0].currency)))))));
|
|
7413
7398
|
}
|
|
7414
7399
|
}
|
|
7415
7400
|
}
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["lottery-bullet_3",[[1,"lottery-ticket",{"endpoint":[513],"gameId":[513,"game-id"],"numberOfGrids":[514,"number-of-grids"],"multipleDraws":[516,"multiple-draws"],"ticketId":[514,"ticket-id"],"resetButton":[516,"reset-button"],"autoPick":[516,"auto-pick"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"stakeMultiplier":[32],"lineMultiplier":[32],"isCustomSelectStake":[32],"isCustomSelectDraw":[32],"isCustomSelectLine":[32],"drawMultiplier":[32],"secondarySelectionAllowed":[32],"partialQuickpickAvailable":[32],"boardsAllowed":[32],"tabIndex":[32],"groupType":[32],"playType":[32],"selectedPlayTypeId":[32],"maximumAllowed":[32],"numberRange":[32],"secondaryNumberRange":[32],"secondaryMaximumAllowed":[32],"minimumAllowed":[32],"secondaryMinimumAllowed":[32],"quickPicks":[32]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"],[4,"resetAllTicketSelection","toggleResetAllSeletion"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-grid",{"ticketId":[514,"ticket-id"],"totalNumbers":[514,"total-numbers"],"gameId":[513,"game-id"],"maximumAllowed":[514,"maximum-allowed"],"minimumAllowed":[514,"minimum-allowed"],"numberRange":[513,"number-range"],"selectable":[516],"selectedNumbers":[513,"selected-numbers"],"secondaryNumbers":[513,"secondary-numbers"],"displaySelected":[516,"display-selected"],"language":[513],"gridIndex":[514,"grid-index"],"gridType":[513,"grid-type"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
20
20
|
});
|