@everymatrix/lottery-game-page 1.65.1 → 1.65.2
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/helper-accordion_15.cjs.entry.js +11054 -0
- package/dist/cjs/index-bc91a30a.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-game-page.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/lottery-game-page/lottery-game-page.js +187 -43
- package/dist/collection/utils/utils.js +22 -0
- package/dist/esm/helper-accordion_15.entry.js +11036 -0
- package/dist/esm/index-1df2d78b.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-game-page.js +1 -1
- package/dist/lottery-game-page/lottery-game-page.esm.js +1 -1
- package/dist/lottery-game-page/p-300478d6.entry.js +5614 -0
- package/dist/types/components/lottery-game-page/lottery-game-page.d.ts +18 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/helper-accordion_14.cjs.entry.js +0 -29037
- package/dist/esm/helper-accordion_14.entry.js +0 -29020
- package/dist/lottery-game-page/p-d5801627.entry.js +0 -3899
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'helper-
|
|
74
|
+
case 'helper-accordion_15.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./helper-
|
|
77
|
+
'./helper-accordion_15.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
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([["helper-accordion_14.cjs",[[1,"lottery-game-page",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"language":[513],"backgroundUrl":[513,"background-url"],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"translationUrl":[513,"translation-url"],"clientStylingUrlContent":[32],"tickets":[32],"mainTickets":[32],"secondaryTickets":[32],"tabIndex":[32],"hasErrors":[32],"totalAmount":[32],"successVisible":[32],"daysRemaining":[32],"hoursRemaining":[32],"minutesRemaining":[32],"secondsRemaining":[32],"nextDate":[32],"isLoggedIn":[32],"loginModalVisible":[32],"limitStylingAppends":[32],"isLoading":[32],"showSubmitError":[32],"submitError":[32],"showApiError":[32],"apiError":[32],"translationData":[32]},[[0,"ticketCompleted","gridFilledHandler"],[0,"gridDirty","gridDirtyHandler"],[0,"modalCloseEvent","modalCloseEvent"],[0,"stakeChange","stakeChangeHandler"],[0,"multiplierChange","multiplierChangeHandler"],[0,"drawMultiplierChange","drawMultiplierChangeHandler"],[0,"lineMultiplierChange","lineMultiplierChangeHandler"],[0,"betTypeChange","betTypeChangeHandler"]],{"translationUrl":["handleNewTranslations"]}],[1,"lottery-draw-results-history",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"drawData":[32],"winningDataSetsData":[32],"dateFiltersFrom":[32],"dateFiltersTo":[32],"isLoading":[32],"noResults":[32],"limitStylingAppends":[32],"activeIndex":[32],"totalResults":[32],"limit":[32],"offset":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"],[0,"hpPageChange","hpPageChange"]]],[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"ticketDrawData":[513,"ticket-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"limitStylingAppends":[32],"drawData":[32]}],[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"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[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]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-filters",{"showFilterId":[516,"show-filter-id"],"activateTicketSearch":[516,"activate-ticket-search"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"session":[513],"postMessage":[516,"post-message"],"language":[513],"quickFiltersActive":[516,"quick-filters-active"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"translationUrl":[520,"translation-url"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"helper-accordion_15.cjs\",[[1,\"lottery-game-page\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointSubscription\":[513,\"endpoint-subscription\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"language\":[513],\"backgroundUrl\":[513,\"background-url\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingurl\":[513,\"client-stylingurl\"],\"translationUrl\":[513,\"translation-url\"],\"clientStylingUrlContent\":[32],\"tickets\":[32],\"mainTickets\":[32],\"secondaryTickets\":[32],\"tabIndex\":[32],\"hasErrors\":[32],\"totalAmount\":[32],\"successVisible\":[32],\"daysRemaining\":[32],\"hoursRemaining\":[32],\"minutesRemaining\":[32],\"secondsRemaining\":[32],\"nextDate\":[32],\"isLoggedIn\":[32],\"loginModalVisible\":[32],\"limitStylingAppends\":[32],\"isLoading\":[32],\"showSubmitError\":[32],\"submitError\":[32],\"showApiError\":[32],\"apiError\":[32],\"translationData\":[32],\"isSubscription\":[32],\"subscriptionParam\":[32],\"showSubscriptionError\":[32],\"subscriptionError\":[32],\"isSubscribed\":[32]},[[0,\"ticketCompleted\",\"gridFilledHandler\"],[0,\"gridDirty\",\"gridDirtyHandler\"],[0,\"modalCloseEvent\",\"modalCloseEvent\"],[0,\"stakeChange\",\"stakeChangeHandler\"],[0,\"multiplierChange\",\"multiplierChangeHandler\"],[0,\"drawMultiplierChange\",\"drawMultiplierChangeHandler\"],[0,\"lineMultiplierChange\",\"lineMultiplierChangeHandler\"],[0,\"betTypeChange\",\"betTypeChangeHandler\"],[0,\"subscriptionCompleted\",\"handleSubscriptionReady\"],[0,\"subscriptionCheckChange\",\"handleSubscriptionCheckChange\"]],{\"translationUrl\":[\"handleNewTranslations\"]}],[1,\"lottery-draw-results-history\",{\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"drawData\":[32],\"winningDataSetsData\":[32],\"dateFiltersFrom\":[32],\"dateFiltersTo\":[32],\"isLoading\":[32],\"noResults\":[32],\"limitStylingAppends\":[32],\"activeIndex\":[32],\"totalResults\":[32],\"limit\":[32],\"offset\":[32]},[[0,\"filterSelection\",\"filtersHandler\"],[0,\"filterSelectionReset\",\"clearFiltersHandler\"],[0,\"hpPageChange\",\"hpPageChange\"]]],[1,\"lottery-ticket-controller\",{\"endpoint\":[513],\"ticketId\":[514,\"ticket-id\"],\"ticketDescription\":[513,\"ticket-description\"],\"gameId\":[513,\"game-id\"],\"postMessage\":[516,\"post-message\"],\"eventName\":[513,\"event-name\"],\"collapsed\":[516],\"numberOfGrids\":[514,\"number-of-grids\"],\"last\":[516],\"language\":[513],\"autoPick\":[516,\"auto-pick\"],\"resetButton\":[516,\"reset-button\"],\"totalControllers\":[514,\"total-controllers\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"limitStylingAppends\":[32]},[[0,\"helperAccordionAction\",\"helperAccordionActionHandler\"]]],[1,\"lottery-game-details\",{\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"limitStylingAppends\":[32]}],[1,\"lottery-subscription\",{\"translationUrl\":[520,\"translation-url\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointSubscription\":[513,\"endpoint-subscription\"],\"language\":[513],\"gameName\":[513,\"game-name\"],\"isSubscribed\":[32],\"frequenceList\":[32],\"frequenceState\":[32],\"filterData\":[32],\"subscriptionCode\":[32],\"conditionId\":[32],\"paramId\":[32],\"conditionRule\":[32],\"paramRule\":[32],\"peroidRule\":[32],\"startDateRule\":[32],\"endDateRule\":[32],\"gameNameRule\":[32],\"ruleType\":[32],\"limitStylingAppends\":[32]}],[1,\"lottery-draw-results\",{\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"language\":[513],\"playerId\":[513,\"player-id\"],\"drawMode\":[516,\"draw-mode\"],\"drawId\":[513,\"draw-id\"],\"gameName\":[513,\"game-name\"],\"ticketDate\":[513,\"ticket-date\"],\"ticketStatus\":[513,\"ticket-status\"],\"ticketId\":[513,\"ticket-id\"],\"ticketType\":[513,\"ticket-type\"],\"ticketAmount\":[513,\"ticket-amount\"],\"ticketCurrency\":[513,\"ticket-currency\"],\"ticketMultiplier\":[516,\"ticket-multiplier\"],\"ticketMultiplierNum\":[514,\"ticket-multiplier-num\"],\"ticketDrawCount\":[514,\"ticket-draw-count\"],\"ticketNumbers\":[513,\"ticket-numbers\"],\"sessionId\":[513,\"session-id\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"ticketDrawData\":[513,\"ticket-draw-data\"],\"historyDrawData\":[513,\"history-draw-data\"],\"tabValue\":[513,\"tab-value\"],\"translationUrl\":[520,\"translation-url\"],\"multiplier\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"errorText\":[32],\"ticketData\":[32],\"ticketDataLoaded\":[32],\"ticketDraws\":[32],\"toggleDrawer\":[32],\"limitStylingAppends\":[32],\"drawData\":[32],\"resultMap\":[32]}],[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\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"isLoading\":[32],\"hasErrors\":[32],\"ticketDone\":[32],\"isCustomSelect\":[32],\"amountInfo\":[32],\"limitStylingAppends\":[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\"]}],[1,\"helper-filters\",{\"activateTicketSearch\":[516,\"activate-ticket-search\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"session\":[513],\"postMessage\":[516,\"post-message\"],\"language\":[513],\"quickFiltersActive\":[516,\"quick-filters-active\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"showFilterModal\":[32],\"showClearButton\":[32],\"filterData\":[32],\"filterDataReset\":[32],\"limitStylingAppends\":[32],\"ticketTypeList\":[32]},[[0,\"modalCloseEvent\",\"modalCloseEvent\"]]],[1,\"helper-tabs\",{\"disabled\":[516],\"label\":[513],\"selected\":[516],\"cmsEndpoint\":[513,\"cms-endpoint\"],\"selectedIndex\":[1538,\"selected-index\"],\"tabs\":[16],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingurl\":[513,\"client-stylingurl\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"lottery-pagination\",{\"nextPage\":[1540,\"next-page\"],\"prevPage\":[1540,\"prev-page\"],\"offset\":[1538],\"limit\":[1538],\"total\":[1538],\"language\":[1537],\"clientStyling\":[1537,\"client-styling\"],\"clientStylingUrlContent\":[1537,\"client-styling-url-content\"],\"arrowsActive\":[1540,\"arrows-active\"],\"secondaryArrowsActive\":[1540,\"secondary-arrows-active\"],\"numberedNavActive\":[1540,\"numbered-nav-active\"],\"isReset\":[1540,\"is-reset\"],\"translationUrl\":[520,\"translation-url\"],\"offsetInt\":[32],\"lastPage\":[32],\"previousPage\":[32],\"limitInt\":[32],\"totalInt\":[32],\"pagesArray\":[32],\"endInt\":[32],\"limitStylingAppends\":[32]}],[1,\"helper-accordion\",{\"ticketHistoryFlag\":[516,\"ticket-history-flag\"],\"headerTitle\":[513,\"header-title\"],\"headerSubtitle\":[513,\"header-subtitle\"],\"description\":[513],\"footer\":[516],\"deleteTab\":[516,\"delete-tab\"],\"postMessage\":[516,\"post-message\"],\"eventName\":[513,\"event-name\"],\"collapsed\":[516],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"showContent\":[32],\"limitStylingAppends\":[32]}],[1,\"helper-modal\",{\"titleModal\":[513,\"title-modal\"],\"visible\":[1540],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"limitStylingAppends\":[32]}],[1,\"helper-tab\",{\"selectedIndex\":[514,\"selected-index\"],\"cmsEndpoint\":[513,\"cms-endpoint\"],\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"tabContent\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[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\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"highNumber\":[514,\"high-number\"],\"lowNumber\":[514,\"low-number\"],\"selectionType\":[513,\"selection-type\"],\"partialQuickpickAvailable\":[516,\"partial-quickpick-available\"],\"numbers\":[32],\"bonusNumbers\":[32],\"limitStylingAppends\":[32]},[[0,\"lotteryBulletSelection\",\"lotteryBulletSelectionHandler\"],[4,\"resetSelection\",\"resetSelectionHandler\"],[4,\"autoSelection\",\"autoSelectionHandler\"]]],[1,\"lottery-bullet\",{\"value\":[513],\"selectable\":[516],\"isSelected\":[516,\"is-selected\"],\"isBonus\":[516,\"is-bonus\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"limitStylingAppends\":[32]}]]]]"), 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([["helper-accordion_14.cjs",[[1,"lottery-game-page",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"language":[513],"backgroundUrl":[513,"background-url"],"clientStyling":[513,"client-styling"],"clientStylingurl":[513,"client-stylingurl"],"translationUrl":[513,"translation-url"],"clientStylingUrlContent":[32],"tickets":[32],"mainTickets":[32],"secondaryTickets":[32],"tabIndex":[32],"hasErrors":[32],"totalAmount":[32],"successVisible":[32],"daysRemaining":[32],"hoursRemaining":[32],"minutesRemaining":[32],"secondsRemaining":[32],"nextDate":[32],"isLoggedIn":[32],"loginModalVisible":[32],"limitStylingAppends":[32],"isLoading":[32],"showSubmitError":[32],"submitError":[32],"showApiError":[32],"apiError":[32],"translationData":[32]},[[0,"ticketCompleted","gridFilledHandler"],[0,"gridDirty","gridDirtyHandler"],[0,"modalCloseEvent","modalCloseEvent"],[0,"stakeChange","stakeChangeHandler"],[0,"multiplierChange","multiplierChangeHandler"],[0,"drawMultiplierChange","drawMultiplierChangeHandler"],[0,"lineMultiplierChange","lineMultiplierChangeHandler"],[0,"betTypeChange","betTypeChangeHandler"]],{"translationUrl":["handleNewTranslations"]}],[1,"lottery-draw-results-history",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"drawData":[32],"winningDataSetsData":[32],"dateFiltersFrom":[32],"dateFiltersTo":[32],"isLoading":[32],"noResults":[32],"limitStylingAppends":[32],"activeIndex":[32],"totalResults":[32],"limit":[32],"offset":[32]},[[0,"filterSelection","filtersHandler"],[0,"filterSelectionReset","clearFiltersHandler"],[0,"hpPageChange","hpPageChange"]]],[1,"lottery-ticket-controller",{"endpoint":[513],"ticketId":[514,"ticket-id"],"ticketDescription":[513,"ticket-description"],"gameId":[513,"game-id"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"numberOfGrids":[514,"number-of-grids"],"last":[516],"language":[513],"autoPick":[516,"auto-pick"],"resetButton":[516,"reset-button"],"totalControllers":[514,"total-controllers"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]},[[0,"helperAccordionAction","helperAccordionActionHandler"]]],[1,"lottery-game-details",{"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"limitStylingAppends":[32]}],[1,"lottery-draw-results",{"endpoint":[513],"gameId":[513,"game-id"],"language":[513],"playerId":[513,"player-id"],"drawMode":[516,"draw-mode"],"drawId":[513,"draw-id"],"gameName":[513,"game-name"],"ticketDate":[513,"ticket-date"],"ticketStatus":[513,"ticket-status"],"ticketId":[513,"ticket-id"],"ticketAmount":[513,"ticket-amount"],"ticketCurrency":[513,"ticket-currency"],"ticketMultiplier":[516,"ticket-multiplier"],"ticketMultiplierNum":[514,"ticket-multiplier-num"],"ticketDrawCount":[514,"ticket-draw-count"],"ticketNumbers":[513,"ticket-numbers"],"sessionId":[513,"session-id"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"ticketDrawData":[513,"ticket-draw-data"],"tabValue":[513,"tab-value"],"translationUrl":[520,"translation-url"],"multiplier":[32],"isLoading":[32],"hasErrors":[32],"errorText":[32],"ticketData":[32],"ticketDataLoaded":[32],"ticketDraws":[32],"toggleDrawer":[32],"limitStylingAppends":[32],"drawData":[32]}],[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"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"isLoading":[32],"hasErrors":[32],"ticketDone":[32],"isCustomSelect":[32],"amountInfo":[32],"limitStylingAppends":[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]},[[8,"click","checkForClickOutside"],[0,"gridFilled","gridFilledHandler"],[0,"gridClearAllEvent","handleGridClearAllEvent"]],{"lineMultiplier":["handleLineMultiplierChange"],"tabIndex":["handleTabIndexChange"]}],[1,"helper-filters",{"showFilterId":[516,"show-filter-id"],"activateTicketSearch":[516,"activate-ticket-search"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"session":[513],"postMessage":[516,"post-message"],"language":[513],"quickFiltersActive":[516,"quick-filters-active"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showFilterModal":[32],"showClearButton":[32],"filterData":[32],"filterDataReset":[32],"limitStylingAppends":[32]},[[0,"modalCloseEvent","modalCloseEvent"]]],[1,"helper-tabs",{"disabled":[516],"label":[513],"selected":[516],"cmsEndpoint":[513,"cms-endpoint"],"selectedIndex":[1538,"selected-index"],"tabs":[16],"clientStyling":[513,"client-styling"],"mbSource":[1,"mb-source"],"clientStylingurl":[513,"client-stylingurl"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"lottery-pagination",{"nextPage":[1540,"next-page"],"prevPage":[1540,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"isReset":[1540,"is-reset"],"translationUrl":[520,"translation-url"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}],[1,"helper-accordion",{"ticketHistoryFlag":[516,"ticket-history-flag"],"headerTitle":[513,"header-title"],"headerSubtitle":[513,"header-subtitle"],"description":[513],"footer":[516],"deleteTab":[516,"delete-tab"],"postMessage":[516,"post-message"],"eventName":[513,"event-name"],"collapsed":[516],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"translationUrl":[520,"translation-url"],"showContent":[32],"limitStylingAppends":[32]}],[1,"helper-modal",{"titleModal":[513,"title-modal"],"visible":[1540],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}],[1,"helper-tab",{"selectedIndex":[514,"selected-index"],"cmsEndpoint":[513,"cms-endpoint"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"lowNumber":[514,"low-number"],"highNumber":[514,"high-number"],"minimumAllowed":[514,"minimum-allowed"],"maxinumAllowed":[514,"maxinum-allowed"],"language":[513],"translationUrl":[520,"translation-url"],"tabContent":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[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"],"clientStylingUrlContent":[513,"client-styling-url-content"],"highNumber":[514,"high-number"],"lowNumber":[514,"low-number"],"selectionType":[513,"selection-type"],"partialQuickpickAvailable":[516,"partial-quickpick-available"],"numbers":[32],"bonusNumbers":[32],"limitStylingAppends":[32]},[[0,"lotteryBulletSelection","lotteryBulletSelectionHandler"],[4,"resetSelection","resetSelectionHandler"],[4,"autoSelection","autoSelectionHandler"]]],[1,"lottery-bullet",{"value":[513],"selectable":[516],"isSelected":[516,"is-selected"],"isBonus":[516,"is-bonus"],"clientStyling":[513,"client-styling"],"clientStylingUrlContent":[513,"client-styling-url-content"],"limitStylingAppends":[32]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy(JSON.parse("[[\"helper-accordion_15.cjs\",[[1,\"lottery-game-page\",{\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointSubscription\":[513,\"endpoint-subscription\"],\"gameId\":[513,\"game-id\"],\"playerId\":[514,\"player-id\"],\"sessionId\":[513,\"session-id\"],\"language\":[513],\"backgroundUrl\":[513,\"background-url\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingurl\":[513,\"client-stylingurl\"],\"translationUrl\":[513,\"translation-url\"],\"clientStylingUrlContent\":[32],\"tickets\":[32],\"mainTickets\":[32],\"secondaryTickets\":[32],\"tabIndex\":[32],\"hasErrors\":[32],\"totalAmount\":[32],\"successVisible\":[32],\"daysRemaining\":[32],\"hoursRemaining\":[32],\"minutesRemaining\":[32],\"secondsRemaining\":[32],\"nextDate\":[32],\"isLoggedIn\":[32],\"loginModalVisible\":[32],\"limitStylingAppends\":[32],\"isLoading\":[32],\"showSubmitError\":[32],\"submitError\":[32],\"showApiError\":[32],\"apiError\":[32],\"translationData\":[32],\"isSubscription\":[32],\"subscriptionParam\":[32],\"showSubscriptionError\":[32],\"subscriptionError\":[32],\"isSubscribed\":[32]},[[0,\"ticketCompleted\",\"gridFilledHandler\"],[0,\"gridDirty\",\"gridDirtyHandler\"],[0,\"modalCloseEvent\",\"modalCloseEvent\"],[0,\"stakeChange\",\"stakeChangeHandler\"],[0,\"multiplierChange\",\"multiplierChangeHandler\"],[0,\"drawMultiplierChange\",\"drawMultiplierChangeHandler\"],[0,\"lineMultiplierChange\",\"lineMultiplierChangeHandler\"],[0,\"betTypeChange\",\"betTypeChangeHandler\"],[0,\"subscriptionCompleted\",\"handleSubscriptionReady\"],[0,\"subscriptionCheckChange\",\"handleSubscriptionCheckChange\"]],{\"translationUrl\":[\"handleNewTranslations\"]}],[1,\"lottery-draw-results-history\",{\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"drawData\":[32],\"winningDataSetsData\":[32],\"dateFiltersFrom\":[32],\"dateFiltersTo\":[32],\"isLoading\":[32],\"noResults\":[32],\"limitStylingAppends\":[32],\"activeIndex\":[32],\"totalResults\":[32],\"limit\":[32],\"offset\":[32]},[[0,\"filterSelection\",\"filtersHandler\"],[0,\"filterSelectionReset\",\"clearFiltersHandler\"],[0,\"hpPageChange\",\"hpPageChange\"]]],[1,\"lottery-ticket-controller\",{\"endpoint\":[513],\"ticketId\":[514,\"ticket-id\"],\"ticketDescription\":[513,\"ticket-description\"],\"gameId\":[513,\"game-id\"],\"postMessage\":[516,\"post-message\"],\"eventName\":[513,\"event-name\"],\"collapsed\":[516],\"numberOfGrids\":[514,\"number-of-grids\"],\"last\":[516],\"language\":[513],\"autoPick\":[516,\"auto-pick\"],\"resetButton\":[516,\"reset-button\"],\"totalControllers\":[514,\"total-controllers\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"limitStylingAppends\":[32]},[[0,\"helperAccordionAction\",\"helperAccordionActionHandler\"]]],[1,\"lottery-game-details\",{\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"limitStylingAppends\":[32]}],[1,\"lottery-subscription\",{\"translationUrl\":[520,\"translation-url\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"endpoint\":[513],\"endpointTicket\":[513,\"endpoint-ticket\"],\"endpointSubscription\":[513,\"endpoint-subscription\"],\"language\":[513],\"gameName\":[513,\"game-name\"],\"isSubscribed\":[32],\"frequenceList\":[32],\"frequenceState\":[32],\"filterData\":[32],\"subscriptionCode\":[32],\"conditionId\":[32],\"paramId\":[32],\"conditionRule\":[32],\"paramRule\":[32],\"peroidRule\":[32],\"startDateRule\":[32],\"endDateRule\":[32],\"gameNameRule\":[32],\"ruleType\":[32],\"limitStylingAppends\":[32]}],[1,\"lottery-draw-results\",{\"endpoint\":[513],\"gameId\":[513,\"game-id\"],\"language\":[513],\"playerId\":[513,\"player-id\"],\"drawMode\":[516,\"draw-mode\"],\"drawId\":[513,\"draw-id\"],\"gameName\":[513,\"game-name\"],\"ticketDate\":[513,\"ticket-date\"],\"ticketStatus\":[513,\"ticket-status\"],\"ticketId\":[513,\"ticket-id\"],\"ticketType\":[513,\"ticket-type\"],\"ticketAmount\":[513,\"ticket-amount\"],\"ticketCurrency\":[513,\"ticket-currency\"],\"ticketMultiplier\":[516,\"ticket-multiplier\"],\"ticketMultiplierNum\":[514,\"ticket-multiplier-num\"],\"ticketDrawCount\":[514,\"ticket-draw-count\"],\"ticketNumbers\":[513,\"ticket-numbers\"],\"sessionId\":[513,\"session-id\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"ticketDrawData\":[513,\"ticket-draw-data\"],\"historyDrawData\":[513,\"history-draw-data\"],\"tabValue\":[513,\"tab-value\"],\"translationUrl\":[520,\"translation-url\"],\"multiplier\":[32],\"isLoading\":[32],\"hasErrors\":[32],\"errorText\":[32],\"ticketData\":[32],\"ticketDataLoaded\":[32],\"ticketDraws\":[32],\"toggleDrawer\":[32],\"limitStylingAppends\":[32],\"drawData\":[32],\"resultMap\":[32]}],[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\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"isLoading\":[32],\"hasErrors\":[32],\"ticketDone\":[32],\"isCustomSelect\":[32],\"amountInfo\":[32],\"limitStylingAppends\":[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\"]}],[1,\"helper-filters\",{\"activateTicketSearch\":[516,\"activate-ticket-search\"],\"gameId\":[513,\"game-id\"],\"playerId\":[513,\"player-id\"],\"session\":[513],\"postMessage\":[516,\"post-message\"],\"language\":[513],\"quickFiltersActive\":[516,\"quick-filters-active\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"showFilterModal\":[32],\"showClearButton\":[32],\"filterData\":[32],\"filterDataReset\":[32],\"limitStylingAppends\":[32],\"ticketTypeList\":[32]},[[0,\"modalCloseEvent\",\"modalCloseEvent\"]]],[1,\"helper-tabs\",{\"disabled\":[516],\"label\":[513],\"selected\":[516],\"cmsEndpoint\":[513,\"cms-endpoint\"],\"selectedIndex\":[1538,\"selected-index\"],\"tabs\":[16],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingurl\":[513,\"client-stylingurl\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"lottery-pagination\",{\"nextPage\":[1540,\"next-page\"],\"prevPage\":[1540,\"prev-page\"],\"offset\":[1538],\"limit\":[1538],\"total\":[1538],\"language\":[1537],\"clientStyling\":[1537,\"client-styling\"],\"clientStylingUrlContent\":[1537,\"client-styling-url-content\"],\"arrowsActive\":[1540,\"arrows-active\"],\"secondaryArrowsActive\":[1540,\"secondary-arrows-active\"],\"numberedNavActive\":[1540,\"numbered-nav-active\"],\"isReset\":[1540,\"is-reset\"],\"translationUrl\":[520,\"translation-url\"],\"offsetInt\":[32],\"lastPage\":[32],\"previousPage\":[32],\"limitInt\":[32],\"totalInt\":[32],\"pagesArray\":[32],\"endInt\":[32],\"limitStylingAppends\":[32]}],[1,\"helper-accordion\",{\"ticketHistoryFlag\":[516,\"ticket-history-flag\"],\"headerTitle\":[513,\"header-title\"],\"headerSubtitle\":[513,\"header-subtitle\"],\"description\":[513],\"footer\":[516],\"deleteTab\":[516,\"delete-tab\"],\"postMessage\":[516,\"post-message\"],\"eventName\":[513,\"event-name\"],\"collapsed\":[516],\"language\":[513],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"translationUrl\":[520,\"translation-url\"],\"showContent\":[32],\"limitStylingAppends\":[32]}],[1,\"helper-modal\",{\"titleModal\":[513,\"title-modal\"],\"visible\":[1540],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"limitStylingAppends\":[32]}],[1,\"helper-tab\",{\"selectedIndex\":[514,\"selected-index\"],\"cmsEndpoint\":[513,\"cms-endpoint\"],\"mbSource\":[1,\"mb-source\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"lowNumber\":[514,\"low-number\"],\"highNumber\":[514,\"high-number\"],\"minimumAllowed\":[514,\"minimum-allowed\"],\"maxinumAllowed\":[514,\"maxinum-allowed\"],\"language\":[513],\"translationUrl\":[520,\"translation-url\"],\"tabContent\":[32]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[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\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"highNumber\":[514,\"high-number\"],\"lowNumber\":[514,\"low-number\"],\"selectionType\":[513,\"selection-type\"],\"partialQuickpickAvailable\":[516,\"partial-quickpick-available\"],\"numbers\":[32],\"bonusNumbers\":[32],\"limitStylingAppends\":[32]},[[0,\"lotteryBulletSelection\",\"lotteryBulletSelectionHandler\"],[4,\"resetSelection\",\"resetSelectionHandler\"],[4,\"autoSelection\",\"autoSelectionHandler\"]]],[1,\"lottery-bullet\",{\"value\":[513],\"selectable\":[516],\"isSelected\":[516,\"is-selected\"],\"isBonus\":[516,\"is-bonus\"],\"clientStyling\":[513,\"client-styling\"],\"clientStylingUrlContent\":[513,\"client-styling-url-content\"],\"limitStylingAppends\":[32]}]]]]"), options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { h, getAssetPath } from "@stencil/core";
|
|
2
2
|
import { translate, getTranslations } from "../../utils/locale.utils";
|
|
3
|
-
import { isMobile, generateUUID } from "../../utils/utils";
|
|
3
|
+
import { isMobile, generateUUID, fetchRequest } from "../../utils/utils";
|
|
4
4
|
import "../../../../../lottery-ticket-controller/dist/types/index";
|
|
5
5
|
import "../../../../../helper-modal/dist/types/index";
|
|
6
6
|
import "../../../../../lottery-game-details/dist/types/index";
|
|
7
7
|
import "../../../../../lottery-draw-results-history/dist/types/index";
|
|
8
8
|
import "../../../../../lottery-draw-results/dist/types/index";
|
|
9
|
+
import "../../../../../lottery-subscription/dist/types/index";
|
|
10
|
+
import { format } from "date-fns";
|
|
11
|
+
import "../../../../../../../libs/vaadin-facade/index";
|
|
9
12
|
export class LotteryGamePage {
|
|
10
13
|
constructor() {
|
|
11
14
|
// @TODO fix any type
|
|
@@ -33,8 +36,21 @@ export class LotteryGamePage {
|
|
|
33
36
|
console.log('error ', err);
|
|
34
37
|
});
|
|
35
38
|
};
|
|
39
|
+
this.thousandSeperator = (value) => {
|
|
40
|
+
if (value === 0) {
|
|
41
|
+
return '0';
|
|
42
|
+
}
|
|
43
|
+
if (!value) {
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
value = value.toString();
|
|
47
|
+
const parts = value.split(".");
|
|
48
|
+
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
49
|
+
return parts.join(".");
|
|
50
|
+
};
|
|
36
51
|
this.endpoint = undefined;
|
|
37
52
|
this.endpointTicket = undefined;
|
|
53
|
+
this.endpointSubscription = undefined;
|
|
38
54
|
this.gameId = undefined;
|
|
39
55
|
this.playerId = undefined;
|
|
40
56
|
this.sessionId = undefined;
|
|
@@ -65,6 +81,11 @@ export class LotteryGamePage {
|
|
|
65
81
|
this.showApiError = false;
|
|
66
82
|
this.apiError = '';
|
|
67
83
|
this.translationData = undefined;
|
|
84
|
+
this.isSubscription = false;
|
|
85
|
+
this.subscriptionParam = null;
|
|
86
|
+
this.showSubscriptionError = false;
|
|
87
|
+
this.subscriptionError = '';
|
|
88
|
+
this.isSubscribed = false;
|
|
68
89
|
}
|
|
69
90
|
handleNewTranslations() {
|
|
70
91
|
this.isLoading = true;
|
|
@@ -103,12 +124,14 @@ export class LotteryGamePage {
|
|
|
103
124
|
// end custom styling area
|
|
104
125
|
}
|
|
105
126
|
countdownLogic(date) {
|
|
106
|
-
|
|
127
|
+
const setTime = () => {
|
|
107
128
|
this.daysRemaining = Math.floor((Date.parse(date) - new Date().getTime()) / (1000 * 60 * 60 * 24));
|
|
108
129
|
this.hoursRemaining = Math.floor((Date.parse(date) - new Date().getTime()) / (1000 * 60 * 60) - this.daysRemaining * 24);
|
|
109
130
|
this.minutesRemaining = Math.floor((Date.parse(date) - new Date().getTime()) / (1000 * 60) - this.daysRemaining * 24 * 60 - this.hoursRemaining * 60);
|
|
110
131
|
this.secondsRemaining = Math.floor((Date.parse(date) - new Date().getTime()) / 1000 - this.daysRemaining * 24 * 60 * 60 - this.hoursRemaining * 60 * 60 - this.minutesRemaining * 60);
|
|
111
|
-
}
|
|
132
|
+
};
|
|
133
|
+
setTime();
|
|
134
|
+
this.interval = setInterval(setTime, 1000);
|
|
112
135
|
}
|
|
113
136
|
disconnectedCallback() {
|
|
114
137
|
clearInterval(this.interval);
|
|
@@ -133,6 +156,7 @@ export class LotteryGamePage {
|
|
|
133
156
|
this.nextDate && this.countdownLogic(this.nextDate);
|
|
134
157
|
this.secondarySelectionAllowed = this.gameData.rules.secondarySelectionAllowed === "INPUT" ? true : false;
|
|
135
158
|
this.quickPick = this.gameData.rules.quickPickAvailable;
|
|
159
|
+
this.isSubscription = this.gameData.rules.wagerTypes && this.gameData.rules.wagerTypes.includes("Subscription");
|
|
136
160
|
let draws = this.gameData.draws ? this.gameData.draws.filter((item) => !item.winningNumbers) : [];
|
|
137
161
|
draws.length > 0 && (this.nextDraw = draws[0].id);
|
|
138
162
|
this.createNewTicket();
|
|
@@ -174,6 +198,8 @@ export class LotteryGamePage {
|
|
|
174
198
|
multiplier: event.detail.multiplier,
|
|
175
199
|
lineNum: item.lineNum,
|
|
176
200
|
betType: item.betType,
|
|
201
|
+
quickPicks: event.detail.quickPicks,
|
|
202
|
+
betName: event.detail.betName
|
|
177
203
|
};
|
|
178
204
|
}
|
|
179
205
|
return item;
|
|
@@ -207,6 +233,8 @@ export class LotteryGamePage {
|
|
|
207
233
|
multiplier: item.multiplier,
|
|
208
234
|
lineNum: item.lineNum,
|
|
209
235
|
betType: item.betType,
|
|
236
|
+
quickPicks: item.quickPicks,
|
|
237
|
+
betName: item.betName
|
|
210
238
|
};
|
|
211
239
|
}
|
|
212
240
|
else {
|
|
@@ -246,6 +274,7 @@ export class LotteryGamePage {
|
|
|
246
274
|
this.mainTickets[ticketId - 1].lineNum = lineNum;
|
|
247
275
|
this.mainTickets[ticketId - 1].completed = Array.from({ length: lineNum }, (_) => false);
|
|
248
276
|
this.mainTickets[ticketId - 1].selectedNumbers = [];
|
|
277
|
+
this.mainTickets[ticketId - 1].quickPicks = [];
|
|
249
278
|
}
|
|
250
279
|
betTypeChangeHandler(event) {
|
|
251
280
|
const { ticketId, betType } = event.detail;
|
|
@@ -254,7 +283,7 @@ export class LotteryGamePage {
|
|
|
254
283
|
createNewTicket() {
|
|
255
284
|
this.mainTickets = [
|
|
256
285
|
...this.mainTickets,
|
|
257
|
-
{ gameId: this.gameId, ticketId: this.mainTickets.length + 1, drawCount: 1, multiplierNum: 1, completed: [false], stake: this.basicStake, betType: this.basicBetType, lineNum: this.basicLine }
|
|
286
|
+
{ gameId: this.gameId, ticketId: this.mainTickets.length + 1, drawCount: 1, multiplierNum: 1, completed: [false], stake: this.basicStake, betType: this.basicBetType, lineNum: this.basicLine, quickPicks: [false], betName: '' }
|
|
258
287
|
];
|
|
259
288
|
this.secondaryTickets = [
|
|
260
289
|
...this.secondaryTickets,
|
|
@@ -264,9 +293,13 @@ export class LotteryGamePage {
|
|
|
264
293
|
showLoginModal() {
|
|
265
294
|
this.loginModalVisible = true;
|
|
266
295
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
296
|
+
handleSubscriptionReady(event) {
|
|
297
|
+
this.subscriptionParam = event.detail;
|
|
298
|
+
}
|
|
299
|
+
handleSubscriptionCheckChange(event) {
|
|
300
|
+
this.isSubscribed = event.detail;
|
|
301
|
+
}
|
|
302
|
+
buildTicketParam() {
|
|
270
303
|
let body = {
|
|
271
304
|
playerId: this.playerId.toString(),
|
|
272
305
|
tickets: []
|
|
@@ -296,7 +329,7 @@ export class LotteryGamePage {
|
|
|
296
329
|
setTimeout(() => {
|
|
297
330
|
this.showSubmitError = false;
|
|
298
331
|
}, 3000);
|
|
299
|
-
return;
|
|
332
|
+
return null;
|
|
300
333
|
}
|
|
301
334
|
this.mainTickets.forEach((item, index) => {
|
|
302
335
|
var _a;
|
|
@@ -312,7 +345,9 @@ export class LotteryGamePage {
|
|
|
312
345
|
betType: ((_a = item.betType) === null || _a === void 0 ? void 0 : _a.id) || this.gameData.rules.defaultBetType,
|
|
313
346
|
stake: item.stake,
|
|
314
347
|
selections: v,
|
|
315
|
-
secondarySelections: this.secondarySelectionAllowed ? this.secondaryTickets[index].selectedNumbers[i] : []
|
|
348
|
+
secondarySelections: this.secondarySelectionAllowed ? this.secondaryTickets[index].selectedNumbers[i] : [],
|
|
349
|
+
quickPick: item.quickPicks[i],
|
|
350
|
+
betName: item.betName
|
|
316
351
|
};
|
|
317
352
|
}),
|
|
318
353
|
multiplier: item.multiplier,
|
|
@@ -321,40 +356,114 @@ export class LotteryGamePage {
|
|
|
321
356
|
quickPick: this.quickPick,
|
|
322
357
|
});
|
|
323
358
|
});
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
'Accept': 'application/json',
|
|
331
|
-
'Authorization': `Bearer ${this.sessionId}`,
|
|
332
|
-
'X-Idempotency-Key': uuid
|
|
333
|
-
},
|
|
334
|
-
body: JSON.stringify(body)
|
|
359
|
+
return body;
|
|
360
|
+
}
|
|
361
|
+
showNotification(message, theme = '', position = 'top-end') {
|
|
362
|
+
const notification = document.createElement('vaadin-notification');
|
|
363
|
+
notification.renderer = (root) => {
|
|
364
|
+
root.textContent = message;
|
|
335
365
|
};
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
.
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
366
|
+
notification.duration = 5000;
|
|
367
|
+
if (theme) {
|
|
368
|
+
notification.setAttribute('theme', theme);
|
|
369
|
+
}
|
|
370
|
+
notification.setAttribute('position', position);
|
|
371
|
+
document.body.appendChild(notification);
|
|
372
|
+
notification.opened = true;
|
|
373
|
+
}
|
|
374
|
+
handleSubmitTickets() {
|
|
375
|
+
if (this.isSubscription && this.isSubscribed) {
|
|
376
|
+
this.submitTickets();
|
|
377
|
+
this.submitSubscriptionTickets();
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
this.submitTickets();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
async submitSubscriptionTickets() {
|
|
384
|
+
try {
|
|
385
|
+
let bodyParam = await this.buildTicketParam();
|
|
386
|
+
if (!bodyParam) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
if (!this.subscriptionParam || typeof this.subscriptionParam === 'string') {
|
|
390
|
+
if (typeof this.subscriptionParam === 'string') {
|
|
391
|
+
this.subscriptionError = this.subscriptionParam;
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
this.subscriptionError = 'Ouccurence is required.';
|
|
395
|
+
}
|
|
396
|
+
this.showSubscriptionError = true;
|
|
342
397
|
setTimeout(() => {
|
|
343
|
-
this.
|
|
398
|
+
this.showSubscriptionError = false;
|
|
344
399
|
}, 3000);
|
|
345
|
-
|
|
400
|
+
return;
|
|
346
401
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this.
|
|
351
|
-
|
|
352
|
-
.
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
402
|
+
this.isLoading = true;
|
|
403
|
+
const playerId = this.playerId.toString();
|
|
404
|
+
const crateRuleUrl = `${this.endpointSubscription}/player/${playerId}/ruleDefinition`;
|
|
405
|
+
this.subscriptionParam.playerId = playerId;
|
|
406
|
+
const timeStamp = format(new Date(), 'yyyyMMddHHMMSS');
|
|
407
|
+
this.subscriptionParam.name = `${this.subscriptionParam.ruleType}_${playerId}_${timeStamp}`;
|
|
408
|
+
const { id } = await fetchRequest(crateRuleUrl, 'POST', this.subscriptionParam, {
|
|
409
|
+
'Authorization': `Bearer ${this.sessionId}`,
|
|
410
|
+
});
|
|
411
|
+
if (bodyParam) {
|
|
412
|
+
const body = Object.assign(Object.assign({}, bodyParam), { ruleDefinitionId: id });
|
|
413
|
+
const createTicketId = `${this.endpointTicket}/subscription`;
|
|
414
|
+
await fetchRequest(createTicketId, 'POST', body, {
|
|
415
|
+
'Authorization': `Bearer ${this.sessionId}`,
|
|
416
|
+
});
|
|
417
|
+
this.showNotification('Subscription rule created successfully.', 'success');
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
catch (err) {
|
|
421
|
+
this.showNotification('Failed to create the subscription rule. Please try again.', 'error');
|
|
422
|
+
}
|
|
423
|
+
this.isLoading = false;
|
|
424
|
+
}
|
|
425
|
+
submitTickets() {
|
|
426
|
+
let url = new URL(`${this.endpointTicket}/tickets`);
|
|
427
|
+
// @TODO Body TS type
|
|
428
|
+
const body = this.buildTicketParam();
|
|
429
|
+
if (body) {
|
|
430
|
+
const uuid = generateUUID();
|
|
431
|
+
// @TODO Options TS type
|
|
432
|
+
let options = {
|
|
433
|
+
method: 'POST',
|
|
434
|
+
headers: {
|
|
435
|
+
'Content-Type': 'application/json',
|
|
436
|
+
'Accept': 'application/json',
|
|
437
|
+
'Authorization': `Bearer ${this.sessionId}`,
|
|
438
|
+
'X-Idempotency-Key': uuid
|
|
439
|
+
},
|
|
440
|
+
body: JSON.stringify(body)
|
|
441
|
+
};
|
|
442
|
+
this.isLoading = true;
|
|
443
|
+
fetch(url.href, options)
|
|
444
|
+
.then((res) => {
|
|
445
|
+
if (res.status > 300) {
|
|
446
|
+
this.apiError = res.statusText + '.';
|
|
447
|
+
this.showApiError = true;
|
|
448
|
+
setTimeout(() => {
|
|
449
|
+
this.showApiError = false;
|
|
450
|
+
}, 3000);
|
|
451
|
+
throw new Error(res.statusText);
|
|
452
|
+
}
|
|
453
|
+
return res.json();
|
|
454
|
+
})
|
|
455
|
+
.then(() => {
|
|
456
|
+
// this.successVisible = true;
|
|
457
|
+
this.showNotification('Ticket submitted successfully.', 'success');
|
|
458
|
+
})
|
|
459
|
+
.catch((err) => {
|
|
460
|
+
console.log('Error ', err);
|
|
461
|
+
this.showNotification('Failed to purchase the ticket. Please try again.', 'error');
|
|
462
|
+
})
|
|
463
|
+
.finally(() => {
|
|
464
|
+
this.isLoading = false;
|
|
465
|
+
});
|
|
466
|
+
}
|
|
358
467
|
}
|
|
359
468
|
goBack() {
|
|
360
469
|
this.goBackEvent.emit();
|
|
@@ -375,11 +484,12 @@ export class LotteryGamePage {
|
|
|
375
484
|
h("div", { class: "GamePageContent" }, h("div", { class: "GameDetails" }, h("lottery-game-details", { "low-number": (_b = (_a = this.gameData.rules) === null || _a === void 0 ? void 0 : _a.boards[0]) === null || _b === void 0 ? void 0 : _b.lowNumber, "high-number": (_d = (_c = this.gameData.rules) === null || _c === void 0 ? void 0 : _c.boards[0]) === null || _d === void 0 ? void 0 : _d.highNumber, "minimum-allowed": (_f = (_e = this.gameData.rules) === null || _e === void 0 ? void 0 : _e.boards[0]) === null || _f === void 0 ? void 0 : _f.minimumAllowed, "maxinum-allowed": (_h = (_g = this.gameData.rules) === null || _g === void 0 ? void 0 : _g.boards[0]) === null || _h === void 0 ? void 0 : _h.maxinumAllowed, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent, "translation-url": this.translationData })), h("div", { class: "TicketsWrapper" }, this.mainTickets.map((item) => {
|
|
376
485
|
var _a, _b;
|
|
377
486
|
return h("lottery-ticket-controller", { endpoint: this.endpoint, "ticket-id": item.ticketId, "game-id": item.gameId, collapsed: false, last: true, language: this.language, "auto-pick": (_a = this.gameData.rules) === null || _a === void 0 ? void 0 : _a.quickPickAvailable, "reset-button": (_b = this.gameData.rules) === null || _b === void 0 ? void 0 : _b.quickPickAvailable, "total-controllers": this.mainTickets.length, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent });
|
|
378
|
-
})), h("div", { class: "OrderSummary" }, h("h3", { class: "OrderSummaryTitle" }, translate('orderSummaryTitle', this.language)), h("div", { class: "OrderTicketInfo" }, h("div", { class: "Ticket" }, translate('orderSummaryTickets', this.language), ": ", h("span", null, this.mainTickets.length)), h("div", null, h("span", null, ((_k = (_j = this.mainTickets[0]) === null || _j === void 0 ? void 0 : _j.betType) === null || _k === void 0 ? void 0 : _k.combinations) * ((_l = this.mainTickets[0]) === null || _l === void 0 ? void 0 : _l.lineNum)), h("span", { class: "Multiplier" }, "x"), ((_m = this.gameData.rules) === null || _m === void 0 ? void 0 : _m.stakeMultiplierAvailable) &&
|
|
487
|
+
})), h("div", { class: "OrderSummary" }, h("h3", { class: "OrderSummaryTitle" }, translate('orderSummaryTitle', this.language)), h("div", { class: "OrderTicketInfo" }, h("div", { class: "Ticket" }, translate('orderSummaryTickets', this.language), ": ", h("span", null, this.mainTickets.length)), h("div", null, h("span", null, this.thousandSeperator(((_k = (_j = this.mainTickets[0]) === null || _j === void 0 ? void 0 : _j.betType) === null || _k === void 0 ? void 0 : _k.combinations) * ((_l = this.mainTickets[0]) === null || _l === void 0 ? void 0 : _l.lineNum))), h("span", { class: "Multiplier" }, "x"), ((_m = this.gameData.rules) === null || _m === void 0 ? void 0 : _m.stakeMultiplierAvailable) &&
|
|
379
488
|
h("span", null, h("span", null, ((_o = this.mainTickets[0]) === null || _o === void 0 ? void 0 : _o.multiplierNum) === 1 ? `${(_p = this.mainTickets[0]) === null || _p === void 0 ? void 0 : _p.multiplierNum} Multiplier` : `${(_q = this.mainTickets[0]) === null || _q === void 0 ? void 0 : _q.multiplierNum} Multipliers`), h("span", { class: "Multiplier" }, "x")), h("span", null, `${(_r = this.mainTickets[0]) === null || _r === void 0 ? void 0 : _r.stake} EUR`), ((_s = this.gameData.rules) === null || _s === void 0 ? void 0 : _s.drawMultiplierAvailable) &&
|
|
380
|
-
h("span", null, h("span", { class: "Multiplier" }, "x"), h("span", null, ((_t = this.mainTickets[0]) === null || _t === void 0 ? void 0 : _t.drawCount) === 1 ? `${(_u = this.mainTickets[0]) === null || _u === void 0 ? void 0 : _u.drawCount} Draw` : `${(_v = this.mainTickets[0]) === null || _v === void 0 ? void 0 : _v.drawCount} Draws`)))), h("hr", null), h("div", { class: "Total" }, translate('orderSummaryTotal', this.language), ": ", h("span", null, this.totalAmount, " ", this.currency)),
|
|
489
|
+
h("span", null, h("span", { class: "Multiplier" }, "x"), h("span", null, ((_t = this.mainTickets[0]) === null || _t === void 0 ? void 0 : _t.drawCount) === 1 ? `${(_u = this.mainTickets[0]) === null || _u === void 0 ? void 0 : _u.drawCount} Draw` : `${(_v = this.mainTickets[0]) === null || _v === void 0 ? void 0 : _v.drawCount} Draws`)))), h("hr", null), h("div", { class: "Total" }, translate('orderSummaryTotal', this.language), ": ", h("span", null, this.thousandSeperator(this.totalAmount), " ", this.currency)), this.isSubscription &&
|
|
490
|
+
h("div", { class: "SubscriptionWrapper" }, h("lottery-subscription", { endpoint: this.endpoint, endpointSubscription: this.endpointSubscription, language: this.language, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent, gameName: this.gameData.name })), h("div", { class: "ButtonWrapper" }, this.isLoggedIn &&
|
|
381
491
|
h("div", null, !this.isLoading &&
|
|
382
|
-
h("div", { class: "submitWrap" }, h("div", { class: "Button", onClick: () => this.
|
|
492
|
+
h("div", { class: "submitWrap" }, h("div", { class: "Button", onClick: () => this.handleSubmitTickets() }, translate('orderSummarySubmit', this.language)), this.showSubmitError && h("div", { class: 'submitError' }, this.submitError), this.showApiError && h("div", { class: 'submitError' }, this.apiError), this.showSubscriptionError && h("div", { class: 'submitError' }, this.subscriptionError)), this.isLoading && h("span", { class: "Button", style: { "cursor": "default" } }, translate('loading', this.language))), !this.isLoggedIn &&
|
|
383
493
|
h("div", null, h("span", { class: "Button", onClick: () => this.showLoginModal() }, translate('orderSummarySubmit', this.language)), h("helper-modal", { "title-modal": "Success", visible: this.loginModalVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("p", { class: "SubmitModalSuccess" }, translate('modalLogin', this.language))))))), this.tabIndex == 1 &&
|
|
384
494
|
h("div", null, h("lottery-draw-results-history", { endpoint: this.endpoint, "game-id": this.gameId, language: this.language, "translation-url": this.translationData, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent })), h("helper-modal", { "title-modal": "Success", visible: this.successVisible, "client-styling": this.clientStyling, "client-styling-url-content": this.clientStylingUrlContent }, h("p", { class: "SubmitModalSuccess" }, translate('submitSuccess', this.language)))));
|
|
385
495
|
}
|
|
@@ -432,6 +542,23 @@ export class LotteryGamePage {
|
|
|
432
542
|
"attribute": "endpoint-ticket",
|
|
433
543
|
"reflect": true
|
|
434
544
|
},
|
|
545
|
+
"endpointSubscription": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"mutable": false,
|
|
548
|
+
"complexType": {
|
|
549
|
+
"original": "string",
|
|
550
|
+
"resolved": "string",
|
|
551
|
+
"references": {}
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"optional": false,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": "Endpoint URL for the source of subscription data"
|
|
558
|
+
},
|
|
559
|
+
"attribute": "endpoint-subscription",
|
|
560
|
+
"reflect": true
|
|
561
|
+
},
|
|
435
562
|
"gameId": {
|
|
436
563
|
"type": "string",
|
|
437
564
|
"mutable": false,
|
|
@@ -597,7 +724,12 @@ export class LotteryGamePage {
|
|
|
597
724
|
"submitError": {},
|
|
598
725
|
"showApiError": {},
|
|
599
726
|
"apiError": {},
|
|
600
|
-
"translationData": {}
|
|
727
|
+
"translationData": {},
|
|
728
|
+
"isSubscription": {},
|
|
729
|
+
"subscriptionParam": {},
|
|
730
|
+
"showSubscriptionError": {},
|
|
731
|
+
"subscriptionError": {},
|
|
732
|
+
"isSubscribed": {}
|
|
601
733
|
};
|
|
602
734
|
}
|
|
603
735
|
static get events() {
|
|
@@ -689,6 +821,18 @@ export class LotteryGamePage {
|
|
|
689
821
|
"target": undefined,
|
|
690
822
|
"capture": false,
|
|
691
823
|
"passive": false
|
|
824
|
+
}, {
|
|
825
|
+
"name": "subscriptionCompleted",
|
|
826
|
+
"method": "handleSubscriptionReady",
|
|
827
|
+
"target": undefined,
|
|
828
|
+
"capture": false,
|
|
829
|
+
"passive": false
|
|
830
|
+
}, {
|
|
831
|
+
"name": "subscriptionCheckChange",
|
|
832
|
+
"method": "handleSubscriptionCheckChange",
|
|
833
|
+
"target": undefined,
|
|
834
|
+
"capture": false,
|
|
835
|
+
"passive": false
|
|
692
836
|
}];
|
|
693
837
|
}
|
|
694
838
|
}
|
|
@@ -16,3 +16,25 @@ export const generateUUID = () => {
|
|
|
16
16
|
return v.toString(16);
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
|
+
export function fetchRequest(url, method = 'GET', body = null, headers = {}) {
|
|
20
|
+
return new Promise((resolve, reject) => {
|
|
21
|
+
const uuid = generateUUID();
|
|
22
|
+
const options = {
|
|
23
|
+
method,
|
|
24
|
+
headers: Object.assign({ 'Content-Type': 'application/json', 'X-Idempotency-Key': uuid }, headers),
|
|
25
|
+
body: null
|
|
26
|
+
};
|
|
27
|
+
if (body) {
|
|
28
|
+
options.body = JSON.stringify(body);
|
|
29
|
+
}
|
|
30
|
+
fetch(url, options)
|
|
31
|
+
.then(response => {
|
|
32
|
+
if (!response.ok) {
|
|
33
|
+
throw new Error(`HTTP error! Status: ${response.status}`);
|
|
34
|
+
}
|
|
35
|
+
return response.json();
|
|
36
|
+
})
|
|
37
|
+
.then(data => resolve(data))
|
|
38
|
+
.catch(error => reject(error));
|
|
39
|
+
});
|
|
40
|
+
}
|