@everymatrix/lottery-tipping-page 1.85.15 → 1.85.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{general-multi-select_13.cjs.entry.js → general-multi-select_14.cjs.entry.js} +182 -10
- package/dist/cjs/index-9d5d8231.js +2 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-tipping-page-3acdd222.js → lottery-tipping-page-f861d64e.js} +3 -3
- package/dist/cjs/lottery-tipping-page.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/lottery-tipping-page/lottery-tipping-page.js +3 -3
- package/dist/esm/{general-multi-select_13.entry.js → general-multi-select_14.entry.js} +183 -12
- package/dist/esm/index-3be4f76e.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lottery-tipping-page-92169e63.js → lottery-tipping-page-9b2235d1.js} +3 -3
- package/dist/esm/lottery-tipping-page.js +1 -1
- package/dist/lottery-tipping-page/{general-multi-select_13.entry.js → general-multi-select_14.entry.js} +241 -241
- package/dist/lottery-tipping-page/index.esm.js +1 -1
- package/dist/lottery-tipping-page/{lottery-tipping-page-92169e63.js → lottery-tipping-page-9b2235d1.js} +1 -1
- package/dist/lottery-tipping-page/lottery-tipping-page.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, g as getAssetPath, h, a as getElement } from './index-3be4f76e.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './lottery-tipping-page-
|
|
3
|
-
export { L as lottery_tipping_page } from './lottery-tipping-page-
|
|
4
|
-
import '@everymatrix/lottery-button';
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './lottery-tipping-page-9b2235d1.js';
|
|
3
|
+
export { L as lottery_tipping_page } from './lottery-tipping-page-9b2235d1.js';
|
|
5
4
|
|
|
6
5
|
const generalMultiSelectCss = ".multi-select-container{position:relative;font-family:\"Inter\", sans-serif;margin-top:4px;width:100%}.flex-row{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;padding:8px 12px;padding-right:4px;border-radius:4px;background:var(--emw-selector-color-background, #e8ebef);cursor:pointer}.control{flex:1;display:flex;align-items:center;flex-wrap:nowrap;overflow:hidden}.control:focus-within{border-color:var(--emw--color-primary, #fed275);box-shadow:0 0 0 2px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15))}.chip{display:inline-flex;align-items:center;background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-dialog-typography, #000);border-radius:4px;padding:2px 8px;margin-right:6px;font-size:0.875rem;line-height:1.2;justify-content:space-between;flex:0 1 auto;min-width:0}.chip-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overflow-chip{background:var(--emw--color-gray-100, #e6e6e6);color:var(--emw--color-gray-300, #333);width:20px;text-align:center;display:block}.remove-btn{background:none;border:none;font-size:1rem;margin-left:6px;cursor:pointer;color:var(--emw--color-gray-150, #6f6f6f)}.remove-btn:hover{color:var(--emw--color-error, red)}.placeholder{color:var(--emw--color-gray-150, #6f6f6f);font-size:0.875rem;padding:3px 8px;line-height:1.2}.arrow{margin-left:auto;font-size:0.8rem;width:20px;color:var(--emw--color-gray-150, #6f6f6f)}.dropdown{position:absolute;top:calc(100% + 4px);left:0;width:100%;max-height:240px;overflow-y:auto;border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:6px;background:var(--emw--color-dialog-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:10}.dropdown-item{padding:10px 14px;cursor:pointer;font-size:0.875rem;line-height:1.4;transition:background 0.2s}.dropdown-item:hover{background:var(--emw--color-background-tertiary, #ccc);color:var(--emw--color-typography, #000)}.dropdown-item.selected{background:var(--emw--color-background-secondary, #f5f5f5);color:var(--emw--color-typography, #000);font-weight:500}.overflow-popover{position:absolute;top:var(--overflow-top, 0px);left:var(--overflow-left, 0px);max-width:200px;padding:12px;display:flex;flex-wrap:wrap;gap:6px;border:1px solid var(--emw--color-gray-100, #d0d5dd);border-radius:6px;background:var(--emw--color-background, #ffffff);box-shadow:0 4px 12px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));z-index:20}";
|
|
7
6
|
const GeneralMultiSelectStyle0 = generalMultiSelectCss;
|
|
@@ -233,6 +232,146 @@ const GeneralTooltip = class {
|
|
|
233
232
|
};
|
|
234
233
|
GeneralTooltip.style = GeneralTooltipStyle0;
|
|
235
234
|
|
|
235
|
+
const DEFAULT_LANGUAGE$5 = 'en';
|
|
236
|
+
const SUPPORTED_LANGUAGES$5 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
|
|
237
|
+
const TRANSLATIONS$5 = {
|
|
238
|
+
en: {
|
|
239
|
+
loading: 'Loading'
|
|
240
|
+
},
|
|
241
|
+
ro: {},
|
|
242
|
+
fr: {},
|
|
243
|
+
ar: {},
|
|
244
|
+
hr: {}
|
|
245
|
+
};
|
|
246
|
+
const translate$5 = (key, customLang, replacements) => {
|
|
247
|
+
const lang = customLang;
|
|
248
|
+
let translation = TRANSLATIONS$5[lang !== undefined && SUPPORTED_LANGUAGES$5.includes(lang) ? lang : DEFAULT_LANGUAGE$5][key];
|
|
249
|
+
if (replacements) {
|
|
250
|
+
Object.keys(replacements).forEach((placeholder) => {
|
|
251
|
+
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
return translation;
|
|
255
|
+
};
|
|
256
|
+
const getTranslations$4 = (data) => {
|
|
257
|
+
Object.keys(data).forEach((item) => {
|
|
258
|
+
for (let key in data[item]) {
|
|
259
|
+
TRANSLATIONS$5[item][key] = data[item][key];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
const resolveTranslationUrl$2 = async (translationUrl) => {
|
|
264
|
+
if (translationUrl) {
|
|
265
|
+
try {
|
|
266
|
+
const response = await fetch(translationUrl);
|
|
267
|
+
if (!response.ok) {
|
|
268
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
269
|
+
}
|
|
270
|
+
const translations = await response.json();
|
|
271
|
+
getTranslations$4(translations);
|
|
272
|
+
}
|
|
273
|
+
catch (error) {
|
|
274
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
const lotteryButtonCss = ":host{display:inline-block;font-family:\"PingFang SC\", \"Microsoft YaHei\", \"Helvetica Neue\", Helvetica, Arial, sans-serif}.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;font-weight:500;cursor:pointer;outline:none;overflow:hidden;transition:background-color 0.2s, border-color 0.2s, color 0.2s;user-select:none;-webkit-tap-highlight-color:transparent}.btn .content{position:relative}.btn:disabled{cursor:not-allowed;opacity:0.5}.btn .loading-container{display:flex;align-items:center}.btn--loading{position:relative}.btn .spinner{display:inline-block;width:1em;height:1em;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:white;animation:spin 1s ease-in-out infinite;margin-left:0.5em;vertical-align:middle}.btn--small .spinner{width:0.8em;height:0.8em}.btn--large .spinner{width:1.2em;height:1.2em}@keyframes spin{to{transform:rotate(360deg)}}.btn--primary{background-color:var(--emw--color-primary, #0d196e);color:var(--emw--color-typography-inverse, #fff)}.btn--primary:hover:not(:disabled){background-color:var(--emw--color-primary-variant, #1367e7)}.btn--primary:active:not(:disabled){background-color:#08104a}.btn--outline .spinner,.btn--dashed .spinner,.btn--text .spinner{border-top-color:currentColor;border-color:rgba(0, 0, 0, 0.2)}.btn--outline{background-color:var(--emw--color-background, #fff);border-color:#dcdcdc;color:var(--emw--color-typography, #000)}.btn--outline:hover:not(:disabled){background-color:var(--emw--color-background-tertiary, #ccc);border-color:#a6a6a6}.btn--outline:active:not(:disabled){background-color:#e6e6e6}.btn--dashed{background-color:transparent;border-style:dashed;border-color:#dcdcdc;color:#333}.btn--dashed:hover:not(:disabled){border-color:#a6a6a6;color:#0052d9}.btn--text{background-color:transparent;color:#0052d9;border-color:transparent}.btn--text:hover:not(:disabled){background-color:#f2f2f2}.btn--text:active:not(:disabled){background-color:#e6e6e6}.btn--small{height:28px;font-size:12px;padding:0 12px}.btn--medium{height:34px;font-size:14px;padding:0 18px}.btn--large{height:40px;font-size:16px;padding:0 24px}.ripple-container{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;pointer-events:none;border-radius:inherit}.ripple{position:absolute;border-radius:50%;background-color:rgba(255, 255, 255, 0.3);transform:scale(0);animation:ripple-animation 600ms linear}.btn--outline .ripple,.btn--dashed .ripple,.btn--text .ripple{background-color:rgba(0, 0, 0, 0.1)}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}";
|
|
280
|
+
const LotteryButtonStyle0 = lotteryButtonCss;
|
|
281
|
+
|
|
282
|
+
const LotteryButton = class {
|
|
283
|
+
constructor(hostRef) {
|
|
284
|
+
registerInstance(this, hostRef);
|
|
285
|
+
this.handleClick = (event) => {
|
|
286
|
+
if (this.disabled) {
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
// Get the button element from the shadow root
|
|
290
|
+
const button = this.host.shadowRoot.querySelector('.btn');
|
|
291
|
+
if (!button)
|
|
292
|
+
return;
|
|
293
|
+
const rect = button.getBoundingClientRect();
|
|
294
|
+
const size = Math.max(rect.width, rect.height);
|
|
295
|
+
const top = event.clientY - rect.top - size / 2;
|
|
296
|
+
const left = event.clientX - rect.left - size / 2;
|
|
297
|
+
// Add the new ripple to the state, triggering a re-render
|
|
298
|
+
const newRipple = { top, left, size };
|
|
299
|
+
this.ripples = [...this.ripples, newRipple];
|
|
300
|
+
// Set a timeout to clean up the ripple from the state after the animation ends
|
|
301
|
+
// This prevents the DOM from filling up with old ripple elements
|
|
302
|
+
setTimeout(() => {
|
|
303
|
+
this.ripples = this.ripples.filter((r) => r !== newRipple);
|
|
304
|
+
}, 600); // This duration should match the CSS animation duration
|
|
305
|
+
};
|
|
306
|
+
this.variant = 'primary';
|
|
307
|
+
this.size = 'medium';
|
|
308
|
+
this.disabled = false;
|
|
309
|
+
this.loading = false;
|
|
310
|
+
this.text = undefined;
|
|
311
|
+
this.mbSource = undefined;
|
|
312
|
+
this.language = 'en';
|
|
313
|
+
this.clientStyling = undefined;
|
|
314
|
+
this.clientStylingUrl = undefined;
|
|
315
|
+
this.translationUrl = '';
|
|
316
|
+
this.ripples = [];
|
|
317
|
+
}
|
|
318
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
319
|
+
if (newValue != oldValue) {
|
|
320
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
324
|
+
if (newValue != oldValue) {
|
|
325
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
329
|
+
if (newValue != oldValue) {
|
|
330
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
disconnectedCallback() {
|
|
334
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
335
|
+
}
|
|
336
|
+
componentDidLoad() {
|
|
337
|
+
if (this.stylingContainer) {
|
|
338
|
+
if (this.mbSource)
|
|
339
|
+
setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
|
|
340
|
+
if (this.clientStyling)
|
|
341
|
+
setClientStyling(this.stylingContainer, this.clientStyling);
|
|
342
|
+
if (this.clientStylingUrl)
|
|
343
|
+
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
componentWillLoad() {
|
|
347
|
+
if (this.translationUrl) {
|
|
348
|
+
resolveTranslationUrl$2(this.translationUrl);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
render() {
|
|
352
|
+
const { variant, disabled, size } = this;
|
|
353
|
+
const isDisabled = disabled || this.loading;
|
|
354
|
+
return (h("button", { key: '19094b8ffd0d13c7e3cdc7139d559214803f0e73', class: {
|
|
355
|
+
btn: true,
|
|
356
|
+
[`btn--${variant}`]: true,
|
|
357
|
+
[`btn--${size}`]: true,
|
|
358
|
+
'btn--loading': this.loading
|
|
359
|
+
}, disabled: isDisabled, onClick: this.handleClick }, this.loading ? (h("div", { class: "loading-container" }, h("span", { class: "content" }, this.text || translate$5('loading', this.language)), h("span", { class: "spinner" }))) : (h("span", { class: "content" }, this.text)), h("div", { key: 'e7e7542f0b79c5bf8e41969e23dd77d9fdec4462', class: "ripple-container" }, this.ripples.map((ripple, index) => (h("span", { key: index, class: "ripple", style: {
|
|
360
|
+
top: `${ripple.top}px`,
|
|
361
|
+
left: `${ripple.left}px`,
|
|
362
|
+
width: `${ripple.size}px`,
|
|
363
|
+
height: `${ripple.size}px`
|
|
364
|
+
} }))))));
|
|
365
|
+
}
|
|
366
|
+
get host() { return getElement(this); }
|
|
367
|
+
static get watchers() { return {
|
|
368
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
369
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
370
|
+
"mbSource": ["handleMbSourceChange"]
|
|
371
|
+
}; }
|
|
372
|
+
};
|
|
373
|
+
LotteryButton.style = LotteryButtonStyle0;
|
|
374
|
+
|
|
236
375
|
const lotteryTippingBulletCss = ".LotteryTippingBullet__segment{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:16px;line-height:1;font-weight:500;color:var(--emw--color-typography, #000);background:var(--emw--color-background, #fff);border:1px solid var(--emw--color-gray-100, #e6e6e6);border-radius:6px;cursor:pointer;transition:all 0.2s ease;user-select:none}.LotteryTippingBullet__segment:not(.LotteryTippingBullet__segment--disabled):hover{cursor:pointer;animation:jelly 0.3s ease-in-out;transform:scale(1.02)}.LotteryTippingBullet__segment--text{border:none;color:var(--emw--color-typography, #000);background:transparent;font-weight:400}.LotteryTippingBullet__segment--text:hover{cursor:not-allowed !important}.LotteryTippingBullet__segment--active{font-weight:600;background-color:var(--emw--color-background-inverse, #000);color:var(--emw--color-primary, #fed275)}.LotteryTippingBullet__segment--disabled:not(.LotteryTippingBullet__segment--active){background-color:var(--emw--color-background-tertiary, #ccc);color:var(--emw--color-gray-150, #6f6f6f);border-color:var(--emw--color-gray-100, #e6e6e6)}.LotteryTippingBullet__segment--disabled:hover{cursor:not-allowed}@keyframes jelly{0%{transform:translate(0, 0)}20%{transform:translate(-0.5px, -0.5px)}40%{transform:translate(0.5px, 0.5px)}60%{transform:translate(-0.25px, -0.25px)}80%{transform:translate(0.25px, 0.25px)}100%{transform:translate(0, 0)}}";
|
|
237
376
|
const LotteryTippingBulletStyle0 = lotteryTippingBulletCss;
|
|
238
377
|
|
|
@@ -10406,7 +10545,8 @@ const TRANSLATIONS$2 = {
|
|
|
10406
10545
|
orderSummaryTotal: 'Total',
|
|
10407
10546
|
orderSummarySubmit: 'Submit',
|
|
10408
10547
|
cancel: 'Cancel',
|
|
10409
|
-
confirm: 'Confirm'
|
|
10548
|
+
confirm: 'Confirm',
|
|
10549
|
+
stakePerLine: 'Stake per Line:'
|
|
10410
10550
|
},
|
|
10411
10551
|
ro: {
|
|
10412
10552
|
selectionCleared: 'Selecția dvs. va fi ștearsă.',
|
|
@@ -10618,6 +10758,7 @@ const getPlayTypeConfig = ({ rawData, selectedBettingType, selectedPlayingMode }
|
|
|
10618
10758
|
const betType = (_f = (_e = rawData === null || rawData === void 0 ? void 0 : rawData.rules) === null || _e === void 0 ? void 0 : _e.betTypes) === null || _f === void 0 ? void 0 : _f.find((i) => i.id === betTypeId);
|
|
10619
10759
|
return { betTypeId, betType };
|
|
10620
10760
|
};
|
|
10761
|
+
const getMinValue = (arr) => (arr.length ? Math.min.apply(null, arr) : undefined);
|
|
10621
10762
|
|
|
10622
10763
|
const DEFAULT_LANGUAGE$1 = 'en';
|
|
10623
10764
|
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
@@ -11255,6 +11396,9 @@ const LotteryTippingTicketController = class {
|
|
|
11255
11396
|
registerInstance(this, hostRef);
|
|
11256
11397
|
this.logoutEventHandler = createEvent(this, "logout", 7);
|
|
11257
11398
|
this.bothBettingTypeMultiplier = 2;
|
|
11399
|
+
this.onStakeChange = (e) => {
|
|
11400
|
+
this.currentStake = this.getCurrentStakeByValue(e.detail.value);
|
|
11401
|
+
};
|
|
11258
11402
|
this.mbSource = undefined;
|
|
11259
11403
|
this.clientStyling = undefined;
|
|
11260
11404
|
this.clientStylingUrl = undefined;
|
|
@@ -11279,6 +11423,7 @@ const LotteryTippingTicketController = class {
|
|
|
11279
11423
|
this.submitLoading = undefined;
|
|
11280
11424
|
this.rawData = {};
|
|
11281
11425
|
this.saleStatisticsInfo = {};
|
|
11426
|
+
this.currentStake = undefined;
|
|
11282
11427
|
this.dialogConfig = { visible: false };
|
|
11283
11428
|
}
|
|
11284
11429
|
async getLotteryTippingBulletResults() {
|
|
@@ -11306,9 +11451,28 @@ const LotteryTippingTicketController = class {
|
|
|
11306
11451
|
get isBothBettingType() {
|
|
11307
11452
|
return this.selectedBettingType === BettingTypeEnum.Both;
|
|
11308
11453
|
}
|
|
11309
|
-
get
|
|
11454
|
+
get stakeOptions() {
|
|
11310
11455
|
var _a, _b, _c;
|
|
11311
|
-
return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c
|
|
11456
|
+
return (_c = (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.rules) === null || _b === void 0 ? void 0 : _b.stakes) === null || _c === void 0 ? void 0 : _c.map((item) => {
|
|
11457
|
+
var _a;
|
|
11458
|
+
return { value: (_a = item.value) === null || _a === void 0 ? void 0 : _a.toString(), label: item.value, currency: item.currency };
|
|
11459
|
+
});
|
|
11460
|
+
}
|
|
11461
|
+
getCurrentStakeByValue(value) {
|
|
11462
|
+
var _a;
|
|
11463
|
+
return (_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.find((item) => +item.value === +value);
|
|
11464
|
+
}
|
|
11465
|
+
initiateCurrentStake() {
|
|
11466
|
+
var _a, _b;
|
|
11467
|
+
// if only one option, default to the first one
|
|
11468
|
+
if (((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
11469
|
+
this.currentStake = this.stakeOptions[0];
|
|
11470
|
+
}
|
|
11471
|
+
else {
|
|
11472
|
+
// otherwise, default to the smallest stake option from the config
|
|
11473
|
+
const minValue = getMinValue(((_b = this.stakeOptions) === null || _b === void 0 ? void 0 : _b.map((i) => i.value)) || []);
|
|
11474
|
+
this.currentStake = this.getCurrentStakeByValue(minValue);
|
|
11475
|
+
}
|
|
11312
11476
|
}
|
|
11313
11477
|
handleBettingTypeChange(type) {
|
|
11314
11478
|
var _a, _b, _c, _d;
|
|
@@ -11376,7 +11540,7 @@ const LotteryTippingTicketController = class {
|
|
|
11376
11540
|
if (!stake) {
|
|
11377
11541
|
return 0;
|
|
11378
11542
|
}
|
|
11379
|
-
let totalAmount = stake.value * this.totalLineCombination;
|
|
11543
|
+
let totalAmount = +stake.value * this.totalLineCombination;
|
|
11380
11544
|
if (this.isBothBettingType)
|
|
11381
11545
|
totalAmount = this.bothBettingTypeMultiplier * totalAmount;
|
|
11382
11546
|
return totalAmount;
|
|
@@ -11455,6 +11619,7 @@ const LotteryTippingTicketController = class {
|
|
|
11455
11619
|
this.rawData = res;
|
|
11456
11620
|
this.bettingTypeOptions = getEnableOptions(((_b = (_a = res === null || res === void 0 ? void 0 : res.rules) === null || _a === void 0 ? void 0 : _a.poolGame) === null || _b === void 0 ? void 0 : _b.bettingTypes) || []);
|
|
11457
11621
|
this.playingModeOptions = getEnableOptions(((_d = (_c = res === null || res === void 0 ? void 0 : res.rules) === null || _c === void 0 ? void 0 : _c.poolGame) === null || _d === void 0 ? void 0 : _d.playModes) || []);
|
|
11622
|
+
this.initiateCurrentStake();
|
|
11458
11623
|
// default: select the first one
|
|
11459
11624
|
const { bettingType, playMode } = getDefaultType({
|
|
11460
11625
|
playTypeConfig: (_f = (_e = res === null || res === void 0 ? void 0 : res.rules) === null || _e === void 0 ? void 0 : _e.poolGame) === null || _f === void 0 ? void 0 : _f.playTypes,
|
|
@@ -11499,7 +11664,7 @@ const LotteryTippingTicketController = class {
|
|
|
11499
11664
|
tickets: []
|
|
11500
11665
|
};
|
|
11501
11666
|
const selections = formatResultsToWinningNumbers(rawResults);
|
|
11502
|
-
const stake = this.currentStake || {};
|
|
11667
|
+
const stake = (this.currentStake || {});
|
|
11503
11668
|
body.tickets.push({
|
|
11504
11669
|
startingDrawId: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.id,
|
|
11505
11670
|
amount: this.calculateTotalAmount().toString(),
|
|
@@ -11548,6 +11713,7 @@ const LotteryTippingTicketController = class {
|
|
|
11548
11713
|
return _ + ' ' + unit;
|
|
11549
11714
|
}
|
|
11550
11715
|
renderBettingControls() {
|
|
11716
|
+
var _a;
|
|
11551
11717
|
const renderSkeleton = () => (h("div", { class: "skeleton-content" }, h("div", { class: "skeleton-item skeleton-animated" })));
|
|
11552
11718
|
const renderBettingTypeOptions = () => (h("div", { class: "LotteryTippingTicketController__segmented-control" }, this.bettingTypeOptions.map((item) => (h("button", { class: {
|
|
11553
11719
|
LotteryTippingTicketController__segment: true,
|
|
@@ -11557,10 +11723,15 @@ const LotteryTippingTicketController = class {
|
|
|
11557
11723
|
LotteryTippingTicketController__segment: true,
|
|
11558
11724
|
'LotteryTippingTicketController__segment--active': this.selectedPlayingMode === item.code
|
|
11559
11725
|
}, onClick: this.handlePlayingModeChange.bind(this, item.code) }, item.name)))));
|
|
11560
|
-
|
|
11726
|
+
const renderingStakeOptions = () => {
|
|
11727
|
+
var _a;
|
|
11728
|
+
return (h("div", null, h("vaadin-select", { items: this.stakeOptions || [], value: ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) || '', "on-value-changed": this.onStakeChange.bind(this), "no-vertical-overlap": true })));
|
|
11729
|
+
};
|
|
11730
|
+
return (h("div", { class: "LotteryTippingTicketController__top" }, h("div", { class: "LotteryTippingTicketController__row" }, h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('bettingType', this.language)), !!this.bettingTypeOptions.length ? renderBettingTypeOptions() : renderSkeleton()), h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('playingMode', this.language)), !!this.playingModeOptions.length ? renderPlayingModeOptions() : renderSkeleton()), ((_a = this.stakeOptions) === null || _a === void 0 ? void 0 : _a.length) > 1 && (h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$2('stakePerLine', this.language)), renderingStakeOptions())))));
|
|
11561
11731
|
}
|
|
11562
11732
|
renderOrderSummary() {
|
|
11563
|
-
|
|
11733
|
+
var _a;
|
|
11734
|
+
return (h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, h("h3", { class: "order-summary__title" }, translate$2('orderSummaryTitle', this.language)), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTickets', this.language), ":"), h("div", { class: "order-summary__details" }, h("span", { class: "order-summary__line-count" }, this.lineCountRender), h("div", null, this.currentStake && h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.currentStakeFormatted)), this.isBothBettingType && (h("div", null, h("span", { class: "order-summary__multiplier" }, "x"), h("span", { class: "order-summary__stake" }, this.bothBettingTypeMultiplier))))), h("hr", { class: "order-summary__divider" }), h("div", { class: "order-summary__ticket-info" }, h("div", { class: "order-summary__ticket" }, translate$2('orderSummaryTotal', this.language), ":"), h("span", { class: "order-summary__details" }, this.totalAmountFormatted)), h("div", { class: "order-summary__button-wrapper" }, h("lottery-button", { onClick: this.handleSubmit.bind(this), loading: this.submitLoading, disabled: !this.hasSelectAllBullet || this.submitLoading || ((_a = this.currentStake) === null || _a === void 0 ? void 0 : _a.value) === undefined, text: translate$2('orderSummarySubmit', this.language) }))));
|
|
11564
11735
|
}
|
|
11565
11736
|
get formattedTurnover() {
|
|
11566
11737
|
var _a, _b;
|
|
@@ -11572,7 +11743,7 @@ const LotteryTippingTicketController = class {
|
|
|
11572
11743
|
}
|
|
11573
11744
|
render() {
|
|
11574
11745
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
11575
|
-
return (h("div", { key: '
|
|
11746
|
+
return (h("div", { key: 'bc9858c6923707b9d5e4fca7b57e272143f895aa', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, h("lottery-tipping-ticket-banner", { key: '2a220d90a4ab73f220d9d47db47e10749cb33cdd', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl, stopTime: (_b = (_a = this.rawData) === null || _a === void 0 ? void 0 : _a.currentDraw) === null || _b === void 0 ? void 0 : _b.wagerCloseTime, period: (_d = (_c = this.rawData) === null || _c === void 0 ? void 0 : _c.currentDraw) === null || _d === void 0 ? void 0 : _d.date, "formatted-turnover": this.formattedTurnover, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), h("div", { key: '9d548c6d3d01ee4ed2e68481a00f4667e50a418b', class: "flex flex-wrap LotteryTippingTicketController__main" }, h("div", { key: '647ff830980982139f270f12a5286eb80a2f7b9e', class: "LotteryTippingTicketController__main--left" }, h("lottery-tipping-ticket-bet", { key: '0151d3830fcec76574016a97a953a12817450280', ref: (el) => (this.childRef = el), endpoint: this.endpoint, "session-id": this.sessionId, "game-id": (_e = this.rawData) === null || _e === void 0 ? void 0 : _e.type, "draw-id": this.drawId, language: this.language, "translation-url": this.translationUrl, "max-total-pages": this.lineNumberRange.maxLineNumber, "min-total-pages": this.lineNumberRange.minLineNumber, "total-pages": this.lineNumberRange.defaultBoards, mode: this.selectedPlayingMode === PlayModeEnum.SingleBet ? 'single' : 'multi', "client-styling": this.clientStyling, "client-styling-Url": this.clientStylingUrl })), this.renderOrderSummary()), this.dialogConfig.visible && (h("vaadin-confirm-dialog", { key: '5153f04448556bca403aeadfca6b573e0dc9b832', rejectButtonVisible: true, rejectText: translate$2('cancel', this.language), confirmText: translate$2('confirm', this.language), opened: (_f = this.dialogConfig) === null || _f === void 0 ? void 0 : _f.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_g = this.dialogConfig) === null || _g === void 0 ? void 0 : _g.content))));
|
|
11576
11747
|
}
|
|
11577
11748
|
static get assetsDirs() { return ["../static"]; }
|
|
11578
11749
|
static get watchers() { return {
|
|
@@ -11945,4 +12116,4 @@ const LotteryTippingTicketHistory = class {
|
|
|
11945
12116
|
};
|
|
11946
12117
|
LotteryTippingTicketHistory.style = LotteryTippingTicketHistoryStyle0;
|
|
11947
12118
|
|
|
11948
|
-
export { GeneralMultiSelect as general_multi_select, GeneralTooltip as general_tooltip, LotteryTippingBullet as lottery_tipping_bullet, LotteryTippingBulletGroup as lottery_tipping_bullet_group, LotteryTippingDialog as lottery_tipping_dialog, LotteryTippingFilter as lottery_tipping_filter, LotteryTippingPagination as lottery_tipping_pagination, lotteryTippingPanel as lottery_tipping_panel, LotteryTippingTicketBanner as lottery_tipping_ticket_banner, LotteryTippingTicketBet as lottery_tipping_ticket_bet, LotteryTippingTicketController as lottery_tipping_ticket_controller, LotteryTippingTicketHistory as lottery_tipping_ticket_history };
|
|
12119
|
+
export { GeneralMultiSelect as general_multi_select, GeneralTooltip as general_tooltip, LotteryButton as lottery_button, LotteryTippingBullet as lottery_tipping_bullet, LotteryTippingBulletGroup as lottery_tipping_bullet_group, LotteryTippingDialog as lottery_tipping_dialog, LotteryTippingFilter as lottery_tipping_filter, LotteryTippingPagination as lottery_tipping_pagination, lotteryTippingPanel as lottery_tipping_panel, LotteryTippingTicketBanner as lottery_tipping_ticket_banner, LotteryTippingTicketBet as lottery_tipping_ticket_bet, LotteryTippingTicketController as lottery_tipping_ticket_controller, LotteryTippingTicketHistory as lottery_tipping_ticket_history };
|
|
@@ -52,10 +52,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
52
52
|
}
|
|
53
53
|
switch(bundleId) {
|
|
54
54
|
|
|
55
|
-
case 'general-multi-
|
|
55
|
+
case 'general-multi-select_14':
|
|
56
56
|
return import(
|
|
57
57
|
/* webpackMode: "lazy" */
|
|
58
|
-
'./general-multi-
|
|
58
|
+
'./general-multi-select_14.entry.js').then(processMod, consoleError);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
return import(
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { L as LotteryTippingPage } from './lottery-tipping-page-
|
|
1
|
+
export { L as LotteryTippingPage } from './lottery-tipping-page-9b2235d1.js';
|
|
2
2
|
import './index-3be4f76e.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["general-multi-
|
|
8
|
+
return bootstrapLazy([["general-multi-select_14",[[1,"lottery-tipping-page",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointLotteryBe":[513,"endpoint-lottery-be"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"logoUrl":[513,"logo-url"],"activeTab":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"drawId":[513,"draw-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"ticketHistory":[32],"activeStatus":[32],"statusOptions":[32],"isLoading":[32],"rawData":[32],"filterData":[32],"paginationInfo":[32],"quickFiltersActive":[32],"showCurrentTicketLine":[32],"curTicketItem":[32],"curSelection":[32],"curSelectionIdx":[32],"showCurrentDrawResult":[32],"curDrawItem":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["handleGameInfoChange"],"endpoint":["handleGameInfoChange"],"endpointTicket":["handleTicketInfoChange"],"playerId":["handleTicketInfoChange"],"sessionId":["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"endpoint":[513],"endpointLotteryBe":[513,"endpoint-lottery-be"],"endpointTicket":[513,"endpoint-ticket"],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-filter",{"quickFiltersActive":[516,"quick-filters-active"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"isOpen":[32],"filterData":[32],"ticketTypeList":[32],"showClearButton":[32]},[[0,"modalCloseEvent","handleModalClose"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{"total":[2],"pageSizeOptions":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"current":[2],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-tipping-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"period":[1],"formattedTurnover":[1,"formatted-turnover"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"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,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-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);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -187,15 +187,15 @@ const LotteryTippingPage = class {
|
|
|
187
187
|
}
|
|
188
188
|
renderContent() {
|
|
189
189
|
if (this.activeTab === Tab.BuyTickets) {
|
|
190
|
-
return (h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.
|
|
190
|
+
return (h("lottery-tipping-ticket-controller", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, "endpoint-lottery-be": this.endpointLotteryBe, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl, "logo-url": this.logoUrl }));
|
|
191
191
|
}
|
|
192
192
|
if (this.activeTab === Tab.MyTickets) {
|
|
193
|
-
return (h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.
|
|
193
|
+
return (h("lottery-tipping-ticket-history", { endpoint: this.endpoint, endpointTicket: this.endpointTicket, gameId: this.gameId, playerId: this.playerId, sessionId: this.sessionId, drawId: this.drawId, language: this.language, "mb-source": this.mbSource, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling, "translation-url": this.translationUrl }));
|
|
194
194
|
}
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h("div", { key: '
|
|
198
|
+
return (h("div", { key: 'be4093871beefe4952d084d39741636aed4d7142', class: "lottery-tipping-page", ref: (el) => (this.stylingContainer = el) }, h("div", { key: 'b5474516d39cdb4f91d69ae5fc1eb61b09f39497', class: "lottery-tipping-page-header" }, h("slot", { key: 'd250e3ac32fb3aa422a90abc7a053aff5f79efd8', name: "backBtn" }), this.renderTabs(), h("div", { key: '0e166025dec63f28eb60a3bbd2c8fdd444bc0398', class: "lottery-tipping-page-header-operation" }, h("slot", { key: 'acb092a029939d5b7da51b19b67037b78abb702b', name: "themeBtn" }), h("slot", { key: '6a57fa8c4c8e4f2a97cce90eefa2e65d245ad9b6', name: "logoutBtn" }))), h("div", { key: 'efe72105b6a4fadf6a970e8226568caa495e4ce7', class: "lottery-tipping-content" }, this.renderContent())));
|
|
199
199
|
}
|
|
200
200
|
static get watchers() { return {
|
|
201
201
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["general-multi-
|
|
19
|
+
return bootstrapLazy([["general-multi-select_14",[[1,"lottery-tipping-page",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"endpointLotteryBe":[513,"endpoint-lottery-be"],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"drawId":[513,"draw-id"],"logoUrl":[513,"logo-url"],"activeTab":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-history",{"endpoint":[513],"endpointTicket":[513,"endpoint-ticket"],"gameId":[1537,"game-id"],"playerId":[1538,"player-id"],"sessionId":[1537,"session-id"],"drawId":[513,"draw-id"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"ticketHistory":[32],"activeStatus":[32],"statusOptions":[32],"isLoading":[32],"rawData":[32],"filterData":[32],"paginationInfo":[32],"quickFiltersActive":[32],"showCurrentTicketLine":[32],"curTicketItem":[32],"curSelection":[32],"curSelectionIdx":[32],"showCurrentDrawResult":[32],"curDrawItem":[32],"curDrawSelection":[32],"curDrawSelectionBettingType":[32],"curDrawSelectionMap":[32]},[[0,"pageSizeChange","handlePageSizeChange"],[0,"pageChange","handlePageChange"],[0,"filterChange","handleFilterChange"],[0,"filterClear","handleFilterClear"],[0,"poolGameCurrentPageChange","handlePoolGameCurrentPageChange"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"gameId":["handleGameInfoChange"],"endpoint":["handleGameInfoChange"],"endpointTicket":["handleTicketInfoChange"],"playerId":["handleTicketInfoChange"],"sessionId":["handleTicketInfoChange"]}],[1,"lottery-tipping-ticket-controller",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"logoUrl":[513,"logo-url"],"endpoint":[513],"endpointLotteryBe":[513,"endpoint-lottery-be"],"endpointTicket":[513,"endpoint-ticket"],"sessionId":[513,"session-id"],"gameId":[513,"game-id"],"playerId":[513,"player-id"],"drawId":[513,"draw-id"],"isLoading":[32],"bettingTypeOptions":[32],"playingModeOptions":[32],"selectedBettingType":[32],"selectedPlayingMode":[32],"hasSelectBullet":[32],"hasSelectAllBullet":[32],"totalLineCombination":[32],"submitLoading":[32],"rawData":[32],"saleStatisticsInfo":[32],"currentStake":[32],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-filter",{"quickFiltersActive":[516,"quick-filters-active"],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"isOpen":[32],"filterData":[32],"ticketTypeList":[32],"showClearButton":[32]},[[0,"modalCloseEvent","handleModalClose"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-pagination",{"total":[2],"pageSizeOptions":[16],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[520,"translation-url"],"current":[2],"pageSize":[32],"totalPages":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"total":["updateTotalPages"],"pageSize":["updateTotalPages"]}],[1,"lottery-tipping-panel",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[1,"header-title"],"expanded":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-ticket-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"logoUrl":[513,"logo-url"],"stopTime":[1,"stop-time"],"period":[1],"formattedTurnover":[1,"formatted-turnover"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"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,"general-multi-select",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"options":[16],"maxVisibleChips":[2,"max-visible-chips"],"placeholder":[1],"selectedValues":[32],"dropdownOpen":[32],"overflowOpen":[32],"popoverStyle":[32],"clear":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-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);
|
|
20
20
|
});
|