@everymatrix/lottery-tipping-latest-result 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/general-tooltip_6.cjs.entry.js +10 -6
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-tipping-latest-result-93f71dcc.js → lottery-tipping-latest-result-00419c54.js} +229 -211
- package/dist/cjs/lottery-tipping-latest-result.cjs.js +1 -1
- package/dist/collection/components/lottery-tipping-latest-result/lottery-tipping-latest-result.js +18 -6
- package/dist/collection/utils/locale.utils.js +2 -2
- package/dist/collection/utils/utils.js +6 -0
- package/dist/esm/general-tooltip_6.entry.js +11 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lottery-tipping-latest-result-3709c6a2.js → lottery-tipping-latest-result-92cd90b4.js} +229 -211
- package/dist/esm/lottery-tipping-latest-result.js +1 -1
- package/dist/lottery-tipping-latest-result/general-tooltip_6.entry.js +2 -2
- package/dist/lottery-tipping-latest-result/index.esm.js +1 -1
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-92cd90b4.js +1 -0
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result.esm.js +1 -1
- package/dist/types/components/lottery-tipping-latest-result/lottery-tipping-latest-result.d.ts +1 -0
- package/dist/types/models/index.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lottery-tipping-latest-result/lottery-tipping-latest-result-3709c6a2.js +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-2ca263e9.js');
|
|
6
|
-
const lotteryTippingLatestResult = require('./lottery-tipping-latest-result-
|
|
6
|
+
const lotteryTippingLatestResult = require('./lottery-tipping-latest-result-00419c54.js');
|
|
7
7
|
|
|
8
8
|
// This icon file is generated automatically.
|
|
9
9
|
var CalendarOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z" } }] }, "name": "calendar", "theme": "outlined" };
|
|
@@ -9791,11 +9791,7 @@ const LotteryTippingTicketBet = class {
|
|
|
9791
9791
|
.then((data) => {
|
|
9792
9792
|
this.ticketDataSource = data || [];
|
|
9793
9793
|
this.isLoading = false;
|
|
9794
|
-
|
|
9795
|
-
this.bulletConfigLineGroup = this.parsedDefaultBulletConfigLineGroup;
|
|
9796
|
-
else {
|
|
9797
|
-
this._resetBulletConfig();
|
|
9798
|
-
}
|
|
9794
|
+
this.updateBulletConfigLineGroup();
|
|
9799
9795
|
})
|
|
9800
9796
|
.catch((err) => {
|
|
9801
9797
|
this.isLoading = false;
|
|
@@ -9803,6 +9799,13 @@ const LotteryTippingTicketBet = class {
|
|
|
9803
9799
|
console.error('Error!', err);
|
|
9804
9800
|
});
|
|
9805
9801
|
}
|
|
9802
|
+
updateBulletConfigLineGroup() {
|
|
9803
|
+
if (this.parsedDefaultBulletConfigLineGroup && this.parsedDefaultBulletConfigLineGroup.length > 0)
|
|
9804
|
+
this.bulletConfigLineGroup = this.parsedDefaultBulletConfigLineGroup;
|
|
9805
|
+
else {
|
|
9806
|
+
this._resetBulletConfig();
|
|
9807
|
+
}
|
|
9808
|
+
}
|
|
9806
9809
|
connectedCallback() {
|
|
9807
9810
|
this.fetchMatchData();
|
|
9808
9811
|
}
|
|
@@ -9970,6 +9973,7 @@ const LotteryTippingTicketBet = class {
|
|
|
9970
9973
|
"gameId": ["fetchMatchData"],
|
|
9971
9974
|
"sessionId": ["fetchMatchData"],
|
|
9972
9975
|
"drawId": ["fetchMatchData"],
|
|
9976
|
+
"defaultBulletConfigLineGroup": ["fetchMatchData"],
|
|
9973
9977
|
"currentPage": ["handleCurrentPageChange"]
|
|
9974
9978
|
}; }
|
|
9975
9979
|
};
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const lotteryTippingLatestResult = require('./lottery-tipping-latest-result-
|
|
5
|
+
const lotteryTippingLatestResult = require('./lottery-tipping-latest-result-00419c54.js');
|
|
6
6
|
require('./index-2ca263e9.js');
|
|
7
7
|
|
|
8
8
|
|
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([["general-tooltip_6.cjs",[[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
11
|
+
return index.bootstrapLazy([["general-tooltip_6.cjs",[[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -2,6 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-2ca263e9.js');
|
|
4
4
|
|
|
5
|
+
// This icon file is generated automatically.
|
|
6
|
+
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
|
|
7
|
+
const LeftOutlined$1 = LeftOutlined;
|
|
8
|
+
|
|
9
|
+
// This icon file is generated automatically.
|
|
10
|
+
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
|
|
11
|
+
const RightOutlined$1 = RightOutlined;
|
|
12
|
+
|
|
13
|
+
var __assign = (undefined && undefined.__assign) || function () {
|
|
14
|
+
__assign = Object.assign || function(t) {
|
|
15
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
16
|
+
s = arguments[i];
|
|
17
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
18
|
+
t[p] = s[p];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
return __assign.apply(this, arguments);
|
|
23
|
+
};
|
|
24
|
+
var defaultColors = {
|
|
25
|
+
primaryColor: '#333',
|
|
26
|
+
secondaryColor: '#E6E6E6'
|
|
27
|
+
};
|
|
28
|
+
function renderIconDefinitionToSVGElement(icond, options) {
|
|
29
|
+
if (options === void 0) { options = {}; }
|
|
30
|
+
if (typeof icond.icon === 'function') {
|
|
31
|
+
// two-tone
|
|
32
|
+
var placeholders = options.placeholders || defaultColors;
|
|
33
|
+
return renderAbstractNodeToSVGElement(icond.icon(placeholders.primaryColor, placeholders.secondaryColor), options);
|
|
34
|
+
}
|
|
35
|
+
// fill, outline
|
|
36
|
+
return renderAbstractNodeToSVGElement(icond.icon, options);
|
|
37
|
+
}
|
|
38
|
+
function renderAbstractNodeToSVGElement(node, options) {
|
|
39
|
+
var targetAttrs = node.tag === 'svg'
|
|
40
|
+
? __assign(__assign({}, node.attrs), (options.extraSVGAttrs || {})) : node.attrs;
|
|
41
|
+
var attrs = Object.keys(targetAttrs).reduce(function (acc, nextKey) {
|
|
42
|
+
var key = nextKey;
|
|
43
|
+
var value = targetAttrs[key];
|
|
44
|
+
var token = "".concat(key, "=\"").concat(value, "\"");
|
|
45
|
+
acc.push(token);
|
|
46
|
+
return acc;
|
|
47
|
+
}, []);
|
|
48
|
+
var attrsToken = attrs.length ? ' ' + attrs.join(' ') : '';
|
|
49
|
+
var children = (node.children || [])
|
|
50
|
+
.map(function (child) { return renderAbstractNodeToSVGElement(child, options); })
|
|
51
|
+
.join('');
|
|
52
|
+
if (children && children.length) {
|
|
53
|
+
return "<".concat(node.tag).concat(attrsToken, ">").concat(children, "</").concat(node.tag, ">");
|
|
54
|
+
}
|
|
55
|
+
return "<".concat(node.tag).concat(attrsToken, " />");
|
|
56
|
+
}
|
|
57
|
+
|
|
5
58
|
/**
|
|
6
59
|
* @name setClientStyling
|
|
7
60
|
* @description Method used to create and append to the passed element of the widget a style element with the content received
|
|
@@ -59,59 +112,168 @@ function setStreamStyling(stylingContainer, domain, subscription) {
|
|
|
59
112
|
}
|
|
60
113
|
}
|
|
61
114
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const LeftOutlined$1 = LeftOutlined;
|
|
115
|
+
function _typeof(o) {
|
|
116
|
+
"@babel/helpers - typeof";
|
|
65
117
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
118
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
119
|
+
return typeof o;
|
|
120
|
+
} : function (o) {
|
|
121
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
122
|
+
}, _typeof(o);
|
|
123
|
+
}
|
|
69
124
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
75
|
-
t[p] = s[p];
|
|
76
|
-
}
|
|
77
|
-
return t;
|
|
78
|
-
};
|
|
79
|
-
return __assign.apply(this, arguments);
|
|
80
|
-
};
|
|
81
|
-
var defaultColors = {
|
|
82
|
-
primaryColor: '#333',
|
|
83
|
-
secondaryColor: '#E6E6E6'
|
|
84
|
-
};
|
|
85
|
-
function renderIconDefinitionToSVGElement(icond, options) {
|
|
86
|
-
if (options === void 0) { options = {}; }
|
|
87
|
-
if (typeof icond.icon === 'function') {
|
|
88
|
-
// two-tone
|
|
89
|
-
var placeholders = options.placeholders || defaultColors;
|
|
90
|
-
return renderAbstractNodeToSVGElement(icond.icon(placeholders.primaryColor, placeholders.secondaryColor), options);
|
|
91
|
-
}
|
|
92
|
-
// fill, outline
|
|
93
|
-
return renderAbstractNodeToSVGElement(icond.icon, options);
|
|
125
|
+
function requiredArgs(required, args) {
|
|
126
|
+
if (args.length < required) {
|
|
127
|
+
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
128
|
+
}
|
|
94
129
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @name toDate
|
|
133
|
+
* @category Common Helpers
|
|
134
|
+
* @summary Convert the given argument to an instance of Date.
|
|
135
|
+
*
|
|
136
|
+
* @description
|
|
137
|
+
* Convert the given argument to an instance of Date.
|
|
138
|
+
*
|
|
139
|
+
* If the argument is an instance of Date, the function returns its clone.
|
|
140
|
+
*
|
|
141
|
+
* If the argument is a number, it is treated as a timestamp.
|
|
142
|
+
*
|
|
143
|
+
* If the argument is none of the above, the function returns Invalid Date.
|
|
144
|
+
*
|
|
145
|
+
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
146
|
+
*
|
|
147
|
+
* @param {Date|Number} argument - the value to convert
|
|
148
|
+
* @returns {Date} the parsed date in the local time zone
|
|
149
|
+
* @throws {TypeError} 1 argument required
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* // Clone the date:
|
|
153
|
+
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
154
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* // Convert the timestamp to date:
|
|
158
|
+
* const result = toDate(1392098430000)
|
|
159
|
+
* //=> Tue Feb 11 2014 11:30:30
|
|
160
|
+
*/
|
|
161
|
+
function toDate(argument) {
|
|
162
|
+
requiredArgs(1, arguments);
|
|
163
|
+
var argStr = Object.prototype.toString.call(argument);
|
|
164
|
+
|
|
165
|
+
// Clone the date
|
|
166
|
+
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
167
|
+
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
168
|
+
return new Date(argument.getTime());
|
|
169
|
+
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
170
|
+
return new Date(argument);
|
|
171
|
+
} else {
|
|
172
|
+
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
173
|
+
// eslint-disable-next-line no-console
|
|
174
|
+
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
175
|
+
// eslint-disable-next-line no-console
|
|
176
|
+
console.warn(new Error().stack);
|
|
111
177
|
}
|
|
112
|
-
return
|
|
178
|
+
return new Date(NaN);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @name differenceInMilliseconds
|
|
184
|
+
* @category Millisecond Helpers
|
|
185
|
+
* @summary Get the number of milliseconds between the given dates.
|
|
186
|
+
*
|
|
187
|
+
* @description
|
|
188
|
+
* Get the number of milliseconds between the given dates.
|
|
189
|
+
*
|
|
190
|
+
* @param {Date|Number} dateLeft - the later date
|
|
191
|
+
* @param {Date|Number} dateRight - the earlier date
|
|
192
|
+
* @returns {Number} the number of milliseconds
|
|
193
|
+
* @throws {TypeError} 2 arguments required
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* // How many milliseconds are between
|
|
197
|
+
* // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
|
|
198
|
+
* const result = differenceInMilliseconds(
|
|
199
|
+
* new Date(2014, 6, 2, 12, 30, 21, 700),
|
|
200
|
+
* new Date(2014, 6, 2, 12, 30, 20, 600)
|
|
201
|
+
* )
|
|
202
|
+
* //=> 1100
|
|
203
|
+
*/
|
|
204
|
+
function differenceInMilliseconds(dateLeft, dateRight) {
|
|
205
|
+
requiredArgs(2, arguments);
|
|
206
|
+
return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
|
|
113
207
|
}
|
|
114
208
|
|
|
209
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
210
|
+
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
211
|
+
const TRANSLATIONS = {
|
|
212
|
+
en: {
|
|
213
|
+
weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
214
|
+
bettingType: 'Betting Type:',
|
|
215
|
+
prizeAllocation: 'Prize Allocation (Turnover: €{turnover})',
|
|
216
|
+
prizes: 'Prizes',
|
|
217
|
+
numberOfWinners: 'Number of Winners',
|
|
218
|
+
prizeMoney: 'Prize Money',
|
|
219
|
+
noLatestResult: 'No latest result.',
|
|
220
|
+
loading: 'Loading....'
|
|
221
|
+
},
|
|
222
|
+
ro: {
|
|
223
|
+
bettingType: 'Tip de pariu:',
|
|
224
|
+
prizeAllocation: 'Alocarea premiilor (Cifră de afaceri: €{turnover})',
|
|
225
|
+
prizes: 'Premii',
|
|
226
|
+
numberOfWinners: 'Număr de câștigători',
|
|
227
|
+
prizeMoney: 'Bani de premiu',
|
|
228
|
+
noLatestResult: 'Niciun rezultat recent.',
|
|
229
|
+
loading: 'Se încarcă....'
|
|
230
|
+
},
|
|
231
|
+
fr: {
|
|
232
|
+
bettingType: 'Type de pari:',
|
|
233
|
+
prizeAllocation: "Répartition des prix (Chiffre d'affaires: € {turnover})",
|
|
234
|
+
prizes: 'Prix',
|
|
235
|
+
numberOfWinners: 'Nombre de gagnants',
|
|
236
|
+
prizeMoney: 'Prix en argent',
|
|
237
|
+
noLatestResult: 'Aucun résultat récent.',
|
|
238
|
+
loading: 'Chargement....'
|
|
239
|
+
},
|
|
240
|
+
ar: {
|
|
241
|
+
bettingType: 'نوع الرهان:',
|
|
242
|
+
prizeAllocation: 'تخصيص الجائزة (دوران: € {turnover})',
|
|
243
|
+
prizes: 'الجوائز',
|
|
244
|
+
numberOfWinners: 'عدد الفائزين',
|
|
245
|
+
prizeMoney: 'أموال الجائزة',
|
|
246
|
+
noLatestResult: 'لا يوجد أحدث نتيجة.',
|
|
247
|
+
loading: 'جار التحميل....'
|
|
248
|
+
},
|
|
249
|
+
hr: {
|
|
250
|
+
bettingType: 'Vrsta oklade:',
|
|
251
|
+
prizeAllocation: 'Raspodjela nagrada (Promet: € {turnover})',
|
|
252
|
+
prizes: 'Nagrade',
|
|
253
|
+
numberOfWinners: 'Broj pobjednika',
|
|
254
|
+
prizeMoney: 'Novčana nagrada',
|
|
255
|
+
noLatestResult: 'Nema najnovijih rezultata.',
|
|
256
|
+
loading: 'Učitavanje....'
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
const translate = (key, customLang, replacements) => {
|
|
260
|
+
const lang = customLang;
|
|
261
|
+
let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
262
|
+
if (replacements) {
|
|
263
|
+
Object.keys(replacements).forEach((placeholder) => {
|
|
264
|
+
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return translation;
|
|
268
|
+
};
|
|
269
|
+
const getTranslations = (data) => {
|
|
270
|
+
Object.keys(data).forEach((item) => {
|
|
271
|
+
for (let key in data[item]) {
|
|
272
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
};
|
|
276
|
+
|
|
115
277
|
const generateUUID = () => {
|
|
116
278
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
117
279
|
var r = (Math.random() * 16) | 0, v = c == 'x' ? r : (r & 0x3) | 0x8;
|
|
@@ -258,6 +420,12 @@ function thousandSeperator(value) {
|
|
|
258
420
|
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
259
421
|
return parts.join('.');
|
|
260
422
|
}
|
|
423
|
+
function formattedTurnover(turnover) {
|
|
424
|
+
if (turnover === null || turnover === undefined)
|
|
425
|
+
return '';
|
|
426
|
+
const unit = '€';
|
|
427
|
+
return `${unit}${turnover ? thousandSeperator(turnover) : 0}`;
|
|
428
|
+
}
|
|
261
429
|
async function fetchGameInfo(endpoint, gameId) {
|
|
262
430
|
try {
|
|
263
431
|
const response = await fetchRequest(`${endpoint}/games/${gameId}`, 'GET', {});
|
|
@@ -269,168 +437,6 @@ async function fetchGameInfo(endpoint, gameId) {
|
|
|
269
437
|
}
|
|
270
438
|
}
|
|
271
439
|
|
|
272
|
-
function _typeof(o) {
|
|
273
|
-
"@babel/helpers - typeof";
|
|
274
|
-
|
|
275
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
276
|
-
return typeof o;
|
|
277
|
-
} : function (o) {
|
|
278
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
279
|
-
}, _typeof(o);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
function requiredArgs(required, args) {
|
|
283
|
-
if (args.length < required) {
|
|
284
|
-
throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @name toDate
|
|
290
|
-
* @category Common Helpers
|
|
291
|
-
* @summary Convert the given argument to an instance of Date.
|
|
292
|
-
*
|
|
293
|
-
* @description
|
|
294
|
-
* Convert the given argument to an instance of Date.
|
|
295
|
-
*
|
|
296
|
-
* If the argument is an instance of Date, the function returns its clone.
|
|
297
|
-
*
|
|
298
|
-
* If the argument is a number, it is treated as a timestamp.
|
|
299
|
-
*
|
|
300
|
-
* If the argument is none of the above, the function returns Invalid Date.
|
|
301
|
-
*
|
|
302
|
-
* **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
|
|
303
|
-
*
|
|
304
|
-
* @param {Date|Number} argument - the value to convert
|
|
305
|
-
* @returns {Date} the parsed date in the local time zone
|
|
306
|
-
* @throws {TypeError} 1 argument required
|
|
307
|
-
*
|
|
308
|
-
* @example
|
|
309
|
-
* // Clone the date:
|
|
310
|
-
* const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
|
|
311
|
-
* //=> Tue Feb 11 2014 11:30:30
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
* // Convert the timestamp to date:
|
|
315
|
-
* const result = toDate(1392098430000)
|
|
316
|
-
* //=> Tue Feb 11 2014 11:30:30
|
|
317
|
-
*/
|
|
318
|
-
function toDate(argument) {
|
|
319
|
-
requiredArgs(1, arguments);
|
|
320
|
-
var argStr = Object.prototype.toString.call(argument);
|
|
321
|
-
|
|
322
|
-
// Clone the date
|
|
323
|
-
if (argument instanceof Date || _typeof(argument) === 'object' && argStr === '[object Date]') {
|
|
324
|
-
// Prevent the date to lose the milliseconds when passed to new Date() in IE10
|
|
325
|
-
return new Date(argument.getTime());
|
|
326
|
-
} else if (typeof argument === 'number' || argStr === '[object Number]') {
|
|
327
|
-
return new Date(argument);
|
|
328
|
-
} else {
|
|
329
|
-
if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
|
|
330
|
-
// eslint-disable-next-line no-console
|
|
331
|
-
console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments");
|
|
332
|
-
// eslint-disable-next-line no-console
|
|
333
|
-
console.warn(new Error().stack);
|
|
334
|
-
}
|
|
335
|
-
return new Date(NaN);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* @name differenceInMilliseconds
|
|
341
|
-
* @category Millisecond Helpers
|
|
342
|
-
* @summary Get the number of milliseconds between the given dates.
|
|
343
|
-
*
|
|
344
|
-
* @description
|
|
345
|
-
* Get the number of milliseconds between the given dates.
|
|
346
|
-
*
|
|
347
|
-
* @param {Date|Number} dateLeft - the later date
|
|
348
|
-
* @param {Date|Number} dateRight - the earlier date
|
|
349
|
-
* @returns {Number} the number of milliseconds
|
|
350
|
-
* @throws {TypeError} 2 arguments required
|
|
351
|
-
*
|
|
352
|
-
* @example
|
|
353
|
-
* // How many milliseconds are between
|
|
354
|
-
* // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?
|
|
355
|
-
* const result = differenceInMilliseconds(
|
|
356
|
-
* new Date(2014, 6, 2, 12, 30, 21, 700),
|
|
357
|
-
* new Date(2014, 6, 2, 12, 30, 20, 600)
|
|
358
|
-
* )
|
|
359
|
-
* //=> 1100
|
|
360
|
-
*/
|
|
361
|
-
function differenceInMilliseconds(dateLeft, dateRight) {
|
|
362
|
-
requiredArgs(2, arguments);
|
|
363
|
-
return toDate(dateLeft).getTime() - toDate(dateRight).getTime();
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
367
|
-
const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
368
|
-
const TRANSLATIONS = {
|
|
369
|
-
en: {
|
|
370
|
-
weeks: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
|
|
371
|
-
bettingType: 'Betting Type:',
|
|
372
|
-
prizeAllocation: 'Prize Allocation (Turnover: € {turnover})',
|
|
373
|
-
prizes: 'Prizes',
|
|
374
|
-
numberOfWinners: 'Number of Winners',
|
|
375
|
-
prizeMoney: 'Prize Money',
|
|
376
|
-
noLatestResult: 'No latest result.',
|
|
377
|
-
loading: 'Loading....'
|
|
378
|
-
},
|
|
379
|
-
ro: {
|
|
380
|
-
bettingType: 'Tip de pariu:',
|
|
381
|
-
prizeAllocation: 'Alocarea premiilor (Cifră de afaceri: € {turnover})',
|
|
382
|
-
prizes: 'Premii',
|
|
383
|
-
numberOfWinners: 'Număr de câștigători',
|
|
384
|
-
prizeMoney: 'Bani de premiu',
|
|
385
|
-
noLatestResult: 'Niciun rezultat recent.',
|
|
386
|
-
loading: 'Se încarcă....'
|
|
387
|
-
},
|
|
388
|
-
fr: {
|
|
389
|
-
bettingType: 'Type de pari:',
|
|
390
|
-
prizeAllocation: "Répartition des prix (Chiffre d'affaires: € {turnover})",
|
|
391
|
-
prizes: 'Prix',
|
|
392
|
-
numberOfWinners: 'Nombre de gagnants',
|
|
393
|
-
prizeMoney: 'Prix en argent',
|
|
394
|
-
noLatestResult: 'Aucun résultat récent.',
|
|
395
|
-
loading: 'Chargement....'
|
|
396
|
-
},
|
|
397
|
-
ar: {
|
|
398
|
-
bettingType: 'نوع الرهان:',
|
|
399
|
-
prizeAllocation: 'تخصيص الجائزة (دوران: € {turnover})',
|
|
400
|
-
prizes: 'الجوائز',
|
|
401
|
-
numberOfWinners: 'عدد الفائزين',
|
|
402
|
-
prizeMoney: 'أموال الجائزة',
|
|
403
|
-
noLatestResult: 'لا يوجد أحدث نتيجة.',
|
|
404
|
-
loading: 'جار التحميل....'
|
|
405
|
-
},
|
|
406
|
-
hr: {
|
|
407
|
-
bettingType: 'Vrsta oklade:',
|
|
408
|
-
prizeAllocation: 'Raspodjela nagrada (Promet: € {turnover})',
|
|
409
|
-
prizes: 'Nagrade',
|
|
410
|
-
numberOfWinners: 'Broj pobjednika',
|
|
411
|
-
prizeMoney: 'Novčana nagrada',
|
|
412
|
-
noLatestResult: 'Nema najnovijih rezultata.',
|
|
413
|
-
loading: 'Učitavanje....'
|
|
414
|
-
}
|
|
415
|
-
};
|
|
416
|
-
const translate = (key, customLang, replacements) => {
|
|
417
|
-
const lang = customLang;
|
|
418
|
-
let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
419
|
-
if (replacements) {
|
|
420
|
-
Object.keys(replacements).forEach((placeholder) => {
|
|
421
|
-
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
return translation;
|
|
425
|
-
};
|
|
426
|
-
const getTranslations = (data) => {
|
|
427
|
-
Object.keys(data).forEach((item) => {
|
|
428
|
-
for (let key in data[item]) {
|
|
429
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
};
|
|
433
|
-
|
|
434
440
|
const lotteryTippingLatestResultCss = ".lottery-tipping-latest-result {\n padding: 16px;\n container-type: inline-size;\n background-color: var(--emw--color-background, #fff);\n}\n.lottery-tipping-latest-result .date-selection {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 24px;\n width: 400px;\n}\n.lottery-tipping-latest-result .date-selection-leftIcon, .lottery-tipping-latest-result .date-selection-rightIcon {\n cursor: pointer;\n}\n\n.LotteryTippingTicketController__segmented-control {\n height: 2.2rem;\n display: inline-flex;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n border-radius: 2rem;\n padding: 0.2rem;\n}\n.LotteryTippingTicketController__segment {\n background-color: transparent;\n border: none;\n padding: 0.3rem 0.8rem;\n cursor: pointer;\n font-weight: 500;\n border-radius: 2rem;\n outline: none;\n transition: background-color 0.25s ease, color 0.25s ease;\n white-space: nowrap;\n color: var(--emw--color-typography, #000);\n}\n.LotteryTippingTicketController__segment--active {\n background-color: var(--emw--color-background, #fff);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n}\n\n.betting-type {\n margin-bottom: 16px;\n display: flex;\n align-items: center;\n gap: 20px;\n}\n.betting-type-title {\n font-weight: 600;\n font-size: 16px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.betting-type-text {\n font-size: 16px;\n}\n\n.result-wrapper {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 60%;\n margin: 0 auto;\n}\n.result-wrapper .winning-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .prize-result {\n width: 100%;\n margin-top: 20px;\n}\n.result-wrapper .prize-result-title {\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 12px;\n color: var(--emw--color-typography-secondary, #333);\n}\n.result-wrapper .prize-result-table {\n width: 100%;\n}\n.result-wrapper .prize-result-table-row {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-evenly;\n}\n.result-wrapper .prize-result-table-column {\n text-align: left;\n padding: 12px 14px;\n width: 160px;\n font-size: 14px;\n width: calc((100% - 2px) / 3);\n color: var(--emw--color-typography, #000);\n}\n.result-wrapper .prize-result-table-header {\n width: 100%;\n background-color: var(--emw--color-background-secondary, #e6e6e6);\n border-radius: 4px;\n}\n.result-wrapper .prize-result-table-body {\n background-color: var(--emw--color-background-tertiary, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-header .prize-result-table-column {\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n border-right: 1px solid var(--emw--color-background, #fff);\n}\n.result-wrapper .prize-result-table .prize-result-table-body .prize-result-table-row:hover {\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n@container (max-width: 980px) and (min-width: 780px) {\n .result-wrapper {\n width: 84%;\n }\n}\n@container (max-width: 780px) and (min-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n}\n@container (max-width: 480px) {\n .result-wrapper {\n width: 100%;\n }\n .result-wrapper .winning-result {\n width: 100%;\n margin-top: 14px;\n }\n .result-wrapper .prize-result {\n width: 100%;\n }\n .result-wrapper .prize-result-table-column {\n padding: 6px;\n width: 100px;\n }\n}";
|
|
435
441
|
const LotteryTippingLatestResultStyle0 = lotteryTippingLatestResultCss;
|
|
436
442
|
|
|
@@ -576,6 +582,17 @@ const LotteryTippingLatestResult = class {
|
|
|
576
582
|
this.isLoading = false;
|
|
577
583
|
}
|
|
578
584
|
}
|
|
585
|
+
get displayedPrizes() {
|
|
586
|
+
const correctItems = this.curPrizes
|
|
587
|
+
.filter((item) => item.divisionDisplayName.includes('Correct'))
|
|
588
|
+
.sort((a, b) => {
|
|
589
|
+
const numA = Number(a.divisionDisplayName.match(/\d+/)[0]);
|
|
590
|
+
const numB = Number(b === null || b === void 0 ? void 0 : b.divisionDisplayName.match(/\d+/)[0]);
|
|
591
|
+
return numB - numA;
|
|
592
|
+
});
|
|
593
|
+
const bonusItems = this.curPrizes.filter((item) => item.divisionDisplayName === 'Bonus');
|
|
594
|
+
return [...correctItems, ...bonusItems];
|
|
595
|
+
}
|
|
579
596
|
changeCurDateItem(idx) {
|
|
580
597
|
this.lastestDate = this.hasDrawDates[idx];
|
|
581
598
|
this.curDrawItemIdx = idx;
|
|
@@ -617,6 +634,7 @@ const LotteryTippingLatestResult = class {
|
|
|
617
634
|
this.curDrawSelectionBettingType = bettingType;
|
|
618
635
|
this.curDrawSelection = this.curDrawSelectionMap[this.curDrawSelectionBettingType];
|
|
619
636
|
this.curPrizes = this.curPrizeMap[this.curDrawSelectionBettingType];
|
|
637
|
+
console.log('this.curPrizes', this.curPrizes);
|
|
620
638
|
this.curTurnOver = this.curPrizes.reduce((acc, cur) => acc + Number(cur.totalAmount.value), 0);
|
|
621
639
|
}
|
|
622
640
|
getBettingTypeName(bettingType) {
|
|
@@ -625,10 +643,10 @@ const LotteryTippingLatestResult = class {
|
|
|
625
643
|
return name !== null && name !== void 0 ? name : bettingType;
|
|
626
644
|
}
|
|
627
645
|
render() {
|
|
628
|
-
return (index.h("div", { key: '
|
|
646
|
+
return (index.h("div", { key: '896146c7c069e71fe6f652527c0086d942a23aa7', class: "lottery-tipping-latest-result", ref: (el) => (this.stylingContainer = el) }, this.curDrawSelection && this.curDrawSelection.length > 0 && (index.h("div", { key: '7098b4ad44e5ef8ca1b9c3df95dfccdb375a9867', class: "result-wrapper" }, index.h("div", { key: '14254a04b639a9ae0d8e7ee6fd8abb1938dc1c36', class: "date-selection" }, index.h("div", { key: '0f70418f699fa6884cd910ce46affd62e332267b', class: "date-selection-leftIcon", innerHTML: leftArrowIcon, onClick: this.preDraw.bind(this) }), index.h("div", { key: 'eb75d194c50a888a4ce2b57719da3d91b1718ea0', class: "date-selection-calendar" }, index.h("lottery-tipping-calendar", { key: 'feee855ed9c8e7afa3138c0bf92b821f6ab36421', date: this.lastestDate, highLightDates: this.hasDrawDates, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: '65c44ad37658cc2a523db08419ba7ea1d383840f', class: "date-selection-rightIcon", innerHTML: rightArrowIcon, onClick: this.nextDraw.bind(this) })), index.h("div", { key: '829ccba627f01454dc8eb307a6377c893bdea8c5', class: "winning-result" }, index.h("div", { key: '20952759d278b8727b4013e41f6227127a776ac7', class: "betting-type" }, index.h("div", { key: '802989e535ebdb2059681740587b476c812e35b4', class: "betting-type-title" }, translate('bettingType', this.language)), index.h("div", { key: 'aa69117cbb91fb269a66e2aab97309b06dfecd57', class: "betting-type-text" }, index.h("div", { key: '708ec51e5d307b1e27ff3ad4a2f0e43195e4a944', class: "LotteryTippingTicketController__segmented-control" }, Object.keys(this.curDrawSelectionMap).map((bettingType) => (index.h("button", { class: {
|
|
629
647
|
LotteryTippingTicketController__segment: true,
|
|
630
648
|
'LotteryTippingTicketController__segment--active': this.curDrawSelectionBettingType === bettingType
|
|
631
|
-
}, onClick: this.handleDrawBettingTypeChange.bind(this, bettingType) }, this.getBettingTypeName(bettingType))))))), index.h("lottery-tipping-ticket-bet", { key: '
|
|
649
|
+
}, onClick: this.handleDrawBettingTypeChange.bind(this, bettingType) }, this.getBettingTypeName(bettingType))))))), index.h("lottery-tipping-ticket-bet", { key: '8ee998390f5f9965d8a927231ab2f99ad552c5ba', "session-id": this.sessionId, endpoint: this.endpoint, "game-id": this.vendorGameId, "draw-id": this.curDrawItem.id, "default-bullet-config-line-group": JSON.stringify(this.curDrawSelection), "read-pretty": true, "total-pages": this.curDrawSelection.length, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: '10bdd643b69be187783ce4e2c50568ad1851be53', class: "prize-result" }, index.h("div", { key: '5c7466e02f8d0920dd7146d99f9360b66c6ee737', class: "prize-result-title" }, translate('prizeAllocation', this.language, { turnover: formattedTurnover(this.curTurnOver) })), index.h("div", { key: 'd37344089ddf988ea5093131c1ab3f56ff41fa5d', class: "prize-result-table" }, index.h("div", { key: '26f21fa18cc30e1981bd4d0c23ddfca123b65404', class: "prize-result-table-header" }, index.h("div", { key: 'f2f7fe64694c2a82bf5aec287a3349cd68221f07', class: "prize-result-table-row" }, index.h("div", { key: '7e6cf967655516f71d1a28209ddc3cc10ab0b246', class: "prize-result-table-column" }, translate('prizes', this.language)), index.h("div", { key: '420087a0cbf9ed50b764d8d05526f3f219539649', class: "prize-result-table-column" }, translate('numberOfWinners', this.language)), index.h("div", { key: 'df5fce05e03f48709ecd7f2f6f90e4408c4aa694', class: "prize-result-table-column" }, translate('prizeMoney', this.language)))), index.h("div", { key: '5ca663cc2a2d69124205158b90b82c2a299a45b3', class: "prize-result-table-body" }, this.displayedPrizes.map((prize) => (index.h("div", { class: "prize-result-table-row" }, index.h("div", { class: "prize-result-table-column" }, prize.divisionDisplayName), index.h("div", { class: "prize-result-table-column" }, prize.players), index.h("div", { class: "prize-result-table-column" }, thousandSeperator(prize.totalAmount.value)))))))))), this.curDrawSelection.length == 0 && !this.isLoading && (index.h("div", { key: '3efeea6a27837d8d4ea9c4a93bd225294a116ca6' }, translate('noLatestResult', this.language))), this.isLoading && index.h("div", { key: '6dbcdda8e4d044476f125fbf51dc6179b2eae8f1', class: "loading-wrap" }, translate('loading', this.language))));
|
|
632
650
|
}
|
|
633
651
|
static get watchers() { return {
|
|
634
652
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["general-tooltip_6.cjs",[[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
22
|
+
return index.bootstrapLazy([["general-tooltip_6.cjs",[[1,"lottery-tipping-latest-result",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"hasDrawDates":[32],"lastestDate":[32],"drawList":[32],"curDrawItem":[32],"curDrawItemIdx":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32],"curPrizes":[32],"curPrizeMap":[32],"curTurnOver":[32],"isLoading":[32],"playTypes":[32],"bettingTypes":[32],"vendorGameId":[32]},[[0,"changeDate","handleChangeDate"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-bet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"sessionId":[513,"session-id"],"endpoint":[513],"gameId":[513,"game-id"],"drawId":[513,"draw-id"],"totalPages":[1538,"total-pages"],"minTotalPages":[514,"min-total-pages"],"maxTotalPages":[514,"max-total-pages"],"mode":[513],"readPretty":[516,"read-pretty"],"defaultBulletConfigLineGroup":[513,"default-bullet-config-line-group"],"translationData":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"defaultBulletConfigLineGroup":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-calendar",{"date":[1],"highLightDates":[16],"language":[513],"translationUrl":[520,"translation-url"],"weeks":[32],"days":[32],"alterDate":[32],"curDate":[32],"recordInfo":[32],"showCalendar":[32]},null,{"date":["handleDateChange"]}],[1,"lottery-tipping-bullet-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[513,"position-idx"],"theme":[513],"mode":[513],"bulletConfigContent":[513,"bullet-config-content"]},[[0,"lotteryTippingBulletToggle","lotteryTippingBulletSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"general-tooltip",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"position":[1],"delay":[2],"isVisible":[32],"_tooltipId":[32]},[[1,"mouseenter","handleMouseEnterOrFocus"],[0,"focusin","handleMouseEnterOrFocus"],[1,"mouseleave","handleMouseLeaveOrBlur"],[0,"focusout","handleMouseLeaveOrBlur"],[0,"keydown","handleKeyDown"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-bullet",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"positionIdx":[514,"position-idx"],"theme":[513],"value":[513],"disabled":[516],"isSelected":[516,"is-selected"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|