@everymatrix/lottery-tipping-page 1.77.30 → 1.77.32
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 +179 -140
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{lottery-tipping-page-12eecd1a.js → lottery-tipping-page-288fd924.js} +3 -2
- package/dist/cjs/lottery-tipping-page.cjs.js +1 -1
- package/dist/collection/components/lottery-tipping-page/lottery-tipping-page.js +20 -2
- package/dist/esm/general-multi-select_13.entry.js +180 -141
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{lottery-tipping-page-7f79b61d.js → lottery-tipping-page-b611e76d.js} +3 -2
- package/dist/esm/lottery-tipping-page.js +1 -1
- package/dist/lottery-tipping-page/general-multi-select_13.entry.js +58 -58
- package/dist/lottery-tipping-page/index.esm.js +1 -1
- package/dist/lottery-tipping-page/lottery-tipping-page-b611e76d.js +1 -0
- package/dist/lottery-tipping-page/lottery-tipping-page.esm.js +1 -1
- package/dist/types/components/lottery-tipping-page/lottery-tipping-page.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/lottery-tipping-page/lottery-tipping-page-7f79b61d.js +0 -1
- package/dist/static/add.svg +0 -8
- package/dist/static/delete.svg +0 -37
- package/dist/static/info.svg +0 -6
- package/dist/static/left-arrow.svg +0 -15
- package/dist/static/loading.svg +0 -10
- package/dist/static/right-arrow.svg +0 -15
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './lottery-tipping-page-b611e76d.js';
|
|
3
|
+
export { L as lottery_tipping_page } from './lottery-tipping-page-b611e76d.js';
|
|
4
4
|
|
|
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-typography, #
|
|
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}";
|
|
6
6
|
const GeneralMultiSelectStyle0 = generalMultiSelectCss;
|
|
7
7
|
|
|
8
8
|
const GeneralMultiSelect = class {
|
|
@@ -437,7 +437,7 @@ const getTranslations$3 = (data) => {
|
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
439
|
|
|
440
|
-
const lotteryTippingDialogCss = ".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-dialog-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;min-height:200px;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-dialog-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));color:var(--emw--color-gray-300, #333);background:var(--emw--color-gray-400, #fff)}.dialog-footer .cancel-btn:hover{border-color:var(--emw--color-gray-100, #e6e6e6)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-gray-400, #fff);background:var(--emw-
|
|
440
|
+
const lotteryTippingDialogCss = ".dialog-wrapper{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:1;z-index:199}.dialog-wrapper-visible{visibility:visible}.mask{position:fixed;inset:0;background-color:rgba(0, 0, 0, 0.5);opacity:0;z-index:1000;transition:opacity var(--duration) linear}.mask-enter{opacity:1}.mask-leave{opacity:0}.dialog{position:relative;background:var(--emw--color-dialog-background, #fff);border-radius:12px;box-shadow:0 4px 32px rgba(0, 0, 0, 0.15);opacity:0;transform:scale(0.9);transition:all var(--duration) linear;width:100%;max-width:100vw;min-height:200px;overflow:hidden;z-index:1000}.dialog-enter{opacity:1;transform:scale(1)}.dialog-leave{opacity:0}.dialog.fullscreen{width:100vw !important;height:100vh;overflow:auto;max-height:none;border-radius:0;overflow:hidden}.dialog-header{padding:16px 16px 0 16px;display:flex;justify-content:space-between;align-items:center}.dialog-header .dialog-title{margin:0;font-size:1.25rem;font-weight:500;color:var(--emw--color-dialog-typography, #000)}.dialog-header .close-btn{background:transparent;border:none;font-size:1.5rem;width:2rem;height:2rem;color:var(--emw--color-gray-150, #6f6f6f);cursor:pointer;border-radius:4px}.dialog-header .close-btn:hover{background:var(--emw--color-gray-50, #f5f5f5);color:var(--emw--color-gray-300, #333)}.dialog-content{padding:24px;font-size:0.95rem;line-height:1.6;color:var(--emw--color-dialog-typography, #000);flex:1;overflow-y:auto;max-height:calc(100vh - 200px)}.dialog.fullscreen .dialog-content{max-height:none}.dialog-footer{padding:0 16px 16px 16px;display:flex;justify-content:center;gap:12px}.dialog-footer .cancel-btn,.dialog-footer .confirm-btn{padding:10px 24px;border-radius:6px;font-size:0.9rem;cursor:pointer;transition:all 0.3s linear}.dialog-footer .cancel-btn{border:var(--emw--button-border, 1px solid rgba(221, 221, 221, 0.8666666667));color:var(--emw--color-gray-300, #333);background:var(--emw--color-gray-400, #fff)}.dialog-footer .cancel-btn:hover{border-color:var(--emw--color-gray-100, #e6e6e6)}.dialog-footer .confirm-btn{border:none;color:var(--emw--color-gray-400, #fff);background:var(--emw--color-primary, #009993)}.dialog-footer .confirm-btn:hover{background:var(--emw--color-primary-variant, #004d4a)}@media screen and (max-width: 480px){.dialog.fullscreen .dialog-content{padding:12px}}";
|
|
441
441
|
const LotteryTippingDialogStyle0 = lotteryTippingDialogCss;
|
|
442
442
|
|
|
443
443
|
const LotteryTippingDialog = class {
|
|
@@ -10268,10 +10268,34 @@ const LotteryTippingPagination = class {
|
|
|
10268
10268
|
};
|
|
10269
10269
|
LotteryTippingPagination.style = LotteryTippingPaginationStyle0;
|
|
10270
10270
|
|
|
10271
|
+
// This icon file is generated automatically.
|
|
10272
|
+
var DeleteOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, "name": "delete", "theme": "outlined" };
|
|
10273
|
+
const DeleteOutlined$1 = DeleteOutlined;
|
|
10274
|
+
|
|
10271
10275
|
// This icon file is generated automatically.
|
|
10272
10276
|
var DownOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
|
10273
10277
|
const DownOutlined$1 = DownOutlined;
|
|
10274
10278
|
|
|
10279
|
+
// This icon file is generated automatically.
|
|
10280
|
+
var EllipsisOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, "name": "ellipsis", "theme": "outlined" };
|
|
10281
|
+
const EllipsisOutlined$1 = EllipsisOutlined;
|
|
10282
|
+
|
|
10283
|
+
// This icon file is generated automatically.
|
|
10284
|
+
var InfoCircleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, "name": "info-circle", "theme": "outlined" };
|
|
10285
|
+
const InfoCircleOutlined$1 = InfoCircleOutlined;
|
|
10286
|
+
|
|
10287
|
+
// This icon file is generated automatically.
|
|
10288
|
+
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" };
|
|
10289
|
+
const LeftOutlined$1 = LeftOutlined;
|
|
10290
|
+
|
|
10291
|
+
// This icon file is generated automatically.
|
|
10292
|
+
var PlusSquareOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" } }, { "tag": "path", "attrs": { "d": "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" } }] }, "name": "plus-square", "theme": "outlined" };
|
|
10293
|
+
const PlusSquareOutlined$1 = PlusSquareOutlined;
|
|
10294
|
+
|
|
10295
|
+
// This icon file is generated automatically.
|
|
10296
|
+
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" };
|
|
10297
|
+
const RightOutlined$1 = RightOutlined;
|
|
10298
|
+
|
|
10275
10299
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
10276
10300
|
__assign = Object.assign || function(t) {
|
|
10277
10301
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -10321,7 +10345,7 @@ const lotteryTippingPanelCss = ".panel-container{border:2px solid var(--emw--col
|
|
|
10321
10345
|
const LotteryTippingPanelStyle0 = lotteryTippingPanelCss;
|
|
10322
10346
|
|
|
10323
10347
|
const downIcon = renderIconDefinitionToSVGElement(DownOutlined$1, {
|
|
10324
|
-
extraSVGAttrs: { width: '16px', height: '16px', fill: '' }
|
|
10348
|
+
extraSVGAttrs: { width: '16px', height: '16px', fill: 'currentColor' }
|
|
10325
10349
|
});
|
|
10326
10350
|
const lotteryTippingPanel = class {
|
|
10327
10351
|
constructor(hostRef) {
|
|
@@ -10364,7 +10388,7 @@ const lotteryTippingPanel = class {
|
|
|
10364
10388
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
10365
10389
|
}
|
|
10366
10390
|
render() {
|
|
10367
|
-
return (h("div", { key: '
|
|
10391
|
+
return (h("div", { key: 'a924b69afd386d9a4eea9cd7e68b7421dd3949fc', class: "panel-container", ref: (el) => (this.stylingContainer = el) }, h("div", { key: '250ffcdb2c188a099c3323b8bdb983cb01c56d66', class: { 'panel-header': true, active: this.expanded }, onClick: this.togglePanel }, h("div", { key: '09ff482c092c4bc534c9e053bd964ac8aad0311a', class: "header-content" }, h("slot", { key: 'eb463418cd334b070272d7f32edef2c63a2ad583', name: "header" }, h("span", { key: 'ca745afa0ee74494e17e10cf06430ecdaca04070' }, this.headerTitle))), h("span", { key: 'ff58468a38f1d37c9d4fe902e528584c8e43a721', class: `arrow ${this.expanded ? 'expanded' : ''}`, innerHTML: downIcon })), h("div", { key: '725f0bc8350e4cc5604b500384c1eca3196c60f3', class: `panel-body ${this.expanded ? 'open' : 'closed'}` }, h("slot", { key: 'a10bee4011b55784271817a396eaa8aad64c3c0e', name: "content" }))));
|
|
10368
10392
|
}
|
|
10369
10393
|
get el() { return getElement(this); }
|
|
10370
10394
|
static get watchers() { return {
|
|
@@ -10375,6 +10399,112 @@ const lotteryTippingPanel = class {
|
|
|
10375
10399
|
};
|
|
10376
10400
|
lotteryTippingPanel.style = LotteryTippingPanelStyle0;
|
|
10377
10401
|
|
|
10402
|
+
const DEFAULT_LANGUAGE$2 = 'en';
|
|
10403
|
+
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
10404
|
+
const TRANSLATIONS$2 = {
|
|
10405
|
+
en: {
|
|
10406
|
+
selectionCleared: 'Your selection will be cleared.',
|
|
10407
|
+
ticketSubmitted: 'Ticket submitted successfully.',
|
|
10408
|
+
ticketFailed: 'Failed to purchase the ticket. Please try again.',
|
|
10409
|
+
lines: 'Lines',
|
|
10410
|
+
line: 'Line',
|
|
10411
|
+
bettingType: 'Betting Type',
|
|
10412
|
+
playingMode: 'Playing Mode',
|
|
10413
|
+
orderSummaryTitle: 'Order Summary',
|
|
10414
|
+
orderSummaryTickets: 'Tickets',
|
|
10415
|
+
orderSummaryTotal: 'Total',
|
|
10416
|
+
orderSummarySubmit: 'Submit',
|
|
10417
|
+
cancel: 'Cancel',
|
|
10418
|
+
confirm: 'Confirm'
|
|
10419
|
+
},
|
|
10420
|
+
ro: {
|
|
10421
|
+
selectionCleared: 'Selecția dvs. va fi ștearsă.',
|
|
10422
|
+
ticketSubmitted: 'Bilet trimis cu succes.',
|
|
10423
|
+
ticketFailed: 'Nu s-a putut achiziționa biletul. Vă rugăm să încercați din nou.',
|
|
10424
|
+
lines: 'Linii',
|
|
10425
|
+
line: 'Linie',
|
|
10426
|
+
bettingType: 'Tip de pariu',
|
|
10427
|
+
playingMode: 'Mod de joc',
|
|
10428
|
+
orderSummaryTitle: 'Sumar comandă',
|
|
10429
|
+
orderSummaryTickets: 'Bilete',
|
|
10430
|
+
orderSummaryTotal: 'Total',
|
|
10431
|
+
orderSummarySubmit: 'Trimite',
|
|
10432
|
+
cancel: 'Anulează',
|
|
10433
|
+
confirm: 'Confirmă'
|
|
10434
|
+
},
|
|
10435
|
+
fr: {
|
|
10436
|
+
selectionCleared: 'Votre sélection sera effacée.',
|
|
10437
|
+
ticketSubmitted: 'Billet soumis avec succès.',
|
|
10438
|
+
ticketFailed: "Échec de l'achat du billet. Veuillez réessayer.",
|
|
10439
|
+
lines: 'Lignes',
|
|
10440
|
+
line: 'Ligne',
|
|
10441
|
+
bettingType: 'Type de pari',
|
|
10442
|
+
playingMode: 'Mode de jeu',
|
|
10443
|
+
orderSummaryTitle: 'Résumé de la commande',
|
|
10444
|
+
orderSummaryTickets: 'Billets',
|
|
10445
|
+
orderSummaryTotal: 'Total',
|
|
10446
|
+
orderSummarySubmit: 'Soumettre',
|
|
10447
|
+
cancel: 'Annuler',
|
|
10448
|
+
confirm: 'Confirmer'
|
|
10449
|
+
},
|
|
10450
|
+
ar: {
|
|
10451
|
+
selectionCleared: 'سيتم مسح اختيارك.',
|
|
10452
|
+
ticketSubmitted: 'تم إرسال التذكرة بنجاح.',
|
|
10453
|
+
ticketFailed: 'فشل شراء التذكرة. يرجى المحاولة مرة أخرى.',
|
|
10454
|
+
lines: 'خطوط',
|
|
10455
|
+
line: 'خط',
|
|
10456
|
+
bettingType: 'نوع الرهان',
|
|
10457
|
+
playingMode: 'وضع اللعب',
|
|
10458
|
+
orderSummaryTitle: 'ملخص الطلب',
|
|
10459
|
+
orderSummaryTickets: 'التذاكر',
|
|
10460
|
+
orderSummaryTotal: 'المجموع',
|
|
10461
|
+
orderSummarySubmit: 'إرسال',
|
|
10462
|
+
cancel: 'إلغاء',
|
|
10463
|
+
confirm: 'تأكيد'
|
|
10464
|
+
},
|
|
10465
|
+
hr: {
|
|
10466
|
+
selectionCleared: 'Vaš odabir bit će obrisan.',
|
|
10467
|
+
ticketSubmitted: 'Listić je uspješno predan.',
|
|
10468
|
+
ticketFailed: 'Kupnja listića nije uspjela. Molimo pokušajte ponovo.',
|
|
10469
|
+
lines: 'Linije',
|
|
10470
|
+
line: 'Linija',
|
|
10471
|
+
bettingType: 'Vrsta oklade',
|
|
10472
|
+
playingMode: 'Način igranja',
|
|
10473
|
+
orderSummaryTitle: 'Sažetak narudžbe',
|
|
10474
|
+
orderSummaryTickets: 'Listići',
|
|
10475
|
+
orderSummaryTotal: 'Ukupno',
|
|
10476
|
+
orderSummarySubmit: 'Pošalji',
|
|
10477
|
+
cancel: 'Odustani',
|
|
10478
|
+
confirm: 'Potvrdi'
|
|
10479
|
+
}
|
|
10480
|
+
};
|
|
10481
|
+
const translate$2 = (key, customLang) => {
|
|
10482
|
+
const lang = customLang;
|
|
10483
|
+
return TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
10484
|
+
};
|
|
10485
|
+
const getTranslations$1 = (data) => {
|
|
10486
|
+
Object.keys(data).forEach((item) => {
|
|
10487
|
+
for (let key in data[item]) {
|
|
10488
|
+
TRANSLATIONS$2[item][key] = data[item][key];
|
|
10489
|
+
}
|
|
10490
|
+
});
|
|
10491
|
+
};
|
|
10492
|
+
const resolveTranslationUrl = async (translationUrl) => {
|
|
10493
|
+
if (translationUrl) {
|
|
10494
|
+
try {
|
|
10495
|
+
const response = await fetch(translationUrl);
|
|
10496
|
+
if (!response.ok) {
|
|
10497
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
10498
|
+
}
|
|
10499
|
+
const translations = await response.json();
|
|
10500
|
+
getTranslations$1(translations);
|
|
10501
|
+
}
|
|
10502
|
+
catch (error) {
|
|
10503
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
10504
|
+
}
|
|
10505
|
+
}
|
|
10506
|
+
};
|
|
10507
|
+
|
|
10378
10508
|
const formatDate$1 = ({ date, type = 'date', format: format$1 }) => {
|
|
10379
10509
|
try {
|
|
10380
10510
|
const parsedDate = parseISO(date);
|
|
@@ -10502,9 +10632,9 @@ const getPlayTypeConfig = ({ rawData, selectedBettingType, selectedPlayingMode }
|
|
|
10502
10632
|
return { betTypeId, betType };
|
|
10503
10633
|
};
|
|
10504
10634
|
|
|
10505
|
-
const DEFAULT_LANGUAGE$
|
|
10506
|
-
const SUPPORTED_LANGUAGES$
|
|
10507
|
-
const TRANSLATIONS$
|
|
10635
|
+
const DEFAULT_LANGUAGE$1 = 'en';
|
|
10636
|
+
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
10637
|
+
const TRANSLATIONS$1 = {
|
|
10508
10638
|
en: {
|
|
10509
10639
|
stop: 'Stop',
|
|
10510
10640
|
at: 'at'
|
|
@@ -10526,118 +10656,12 @@ const TRANSLATIONS$2 = {
|
|
|
10526
10656
|
at: 'u'
|
|
10527
10657
|
}
|
|
10528
10658
|
};
|
|
10529
|
-
const translate$2 = (key, customLang) => {
|
|
10530
|
-
const lang = customLang;
|
|
10531
|
-
return TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
10532
|
-
};
|
|
10533
|
-
|
|
10534
|
-
const DEFAULT_LANGUAGE$1 = 'en';
|
|
10535
|
-
const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
10536
|
-
const TRANSLATIONS$1 = {
|
|
10537
|
-
en: {
|
|
10538
|
-
selectionCleared: 'Your selection will be cleared.',
|
|
10539
|
-
ticketSubmitted: 'Ticket submitted successfully.',
|
|
10540
|
-
ticketFailed: 'Failed to purchase the ticket. Please try again.',
|
|
10541
|
-
lines: 'Lines',
|
|
10542
|
-
line: 'Line',
|
|
10543
|
-
bettingType: 'Betting Type',
|
|
10544
|
-
playingMode: 'Playing Mode',
|
|
10545
|
-
orderSummaryTitle: 'Order Summary',
|
|
10546
|
-
orderSummaryTickets: 'Tickets',
|
|
10547
|
-
orderSummaryTotal: 'Total',
|
|
10548
|
-
orderSummarySubmit: 'Submit',
|
|
10549
|
-
cancel: 'Cancel',
|
|
10550
|
-
confirm: 'Confirm'
|
|
10551
|
-
},
|
|
10552
|
-
ro: {
|
|
10553
|
-
selectionCleared: 'Selecția dvs. va fi ștearsă.',
|
|
10554
|
-
ticketSubmitted: 'Bilet trimis cu succes.',
|
|
10555
|
-
ticketFailed: 'Nu s-a putut achiziționa biletul. Vă rugăm să încercați din nou.',
|
|
10556
|
-
lines: 'Linii',
|
|
10557
|
-
line: 'Linie',
|
|
10558
|
-
bettingType: 'Tip de pariu',
|
|
10559
|
-
playingMode: 'Mod de joc',
|
|
10560
|
-
orderSummaryTitle: 'Sumar comandă',
|
|
10561
|
-
orderSummaryTickets: 'Bilete',
|
|
10562
|
-
orderSummaryTotal: 'Total',
|
|
10563
|
-
orderSummarySubmit: 'Trimite',
|
|
10564
|
-
cancel: 'Anulează',
|
|
10565
|
-
confirm: 'Confirmă'
|
|
10566
|
-
},
|
|
10567
|
-
fr: {
|
|
10568
|
-
selectionCleared: 'Votre sélection sera effacée.',
|
|
10569
|
-
ticketSubmitted: 'Billet soumis avec succès.',
|
|
10570
|
-
ticketFailed: "Échec de l'achat du billet. Veuillez réessayer.",
|
|
10571
|
-
lines: 'Lignes',
|
|
10572
|
-
line: 'Ligne',
|
|
10573
|
-
bettingType: 'Type de pari',
|
|
10574
|
-
playingMode: 'Mode de jeu',
|
|
10575
|
-
orderSummaryTitle: 'Résumé de la commande',
|
|
10576
|
-
orderSummaryTickets: 'Billets',
|
|
10577
|
-
orderSummaryTotal: 'Total',
|
|
10578
|
-
orderSummarySubmit: 'Soumettre',
|
|
10579
|
-
cancel: 'Annuler',
|
|
10580
|
-
confirm: 'Confirmer'
|
|
10581
|
-
},
|
|
10582
|
-
ar: {
|
|
10583
|
-
selectionCleared: 'سيتم مسح اختيارك.',
|
|
10584
|
-
ticketSubmitted: 'تم إرسال التذكرة بنجاح.',
|
|
10585
|
-
ticketFailed: 'فشل شراء التذكرة. يرجى المحاولة مرة أخرى.',
|
|
10586
|
-
lines: 'خطوط',
|
|
10587
|
-
line: 'خط',
|
|
10588
|
-
bettingType: 'نوع الرهان',
|
|
10589
|
-
playingMode: 'وضع اللعب',
|
|
10590
|
-
orderSummaryTitle: 'ملخص الطلب',
|
|
10591
|
-
orderSummaryTickets: 'التذاكر',
|
|
10592
|
-
orderSummaryTotal: 'المجموع',
|
|
10593
|
-
orderSummarySubmit: 'إرسال',
|
|
10594
|
-
cancel: 'إلغاء',
|
|
10595
|
-
confirm: 'تأكيد'
|
|
10596
|
-
},
|
|
10597
|
-
hr: {
|
|
10598
|
-
selectionCleared: 'Vaš odabir bit će obrisan.',
|
|
10599
|
-
ticketSubmitted: 'Listić je uspješno predan.',
|
|
10600
|
-
ticketFailed: 'Kupnja listića nije uspjela. Molimo pokušajte ponovo.',
|
|
10601
|
-
lines: 'Linije',
|
|
10602
|
-
line: 'Linija',
|
|
10603
|
-
bettingType: 'Vrsta oklade',
|
|
10604
|
-
playingMode: 'Način igranja',
|
|
10605
|
-
orderSummaryTitle: 'Sažetak narudžbe',
|
|
10606
|
-
orderSummaryTickets: 'Listići',
|
|
10607
|
-
orderSummaryTotal: 'Ukupno',
|
|
10608
|
-
orderSummarySubmit: 'Pošalji',
|
|
10609
|
-
cancel: 'Odustani',
|
|
10610
|
-
confirm: 'Potvrdi'
|
|
10611
|
-
}
|
|
10612
|
-
};
|
|
10613
10659
|
const translate$1 = (key, customLang) => {
|
|
10614
10660
|
const lang = customLang;
|
|
10615
10661
|
return TRANSLATIONS$1[lang !== undefined && SUPPORTED_LANGUAGES$1.includes(lang) ? lang : DEFAULT_LANGUAGE$1][key];
|
|
10616
10662
|
};
|
|
10617
|
-
const getTranslations$1 = (data) => {
|
|
10618
|
-
Object.keys(data).forEach((item) => {
|
|
10619
|
-
for (let key in data[item]) {
|
|
10620
|
-
TRANSLATIONS$1[item][key] = data[item][key];
|
|
10621
|
-
}
|
|
10622
|
-
});
|
|
10623
|
-
};
|
|
10624
|
-
const resolveTranslationUrl = async (translationUrl) => {
|
|
10625
|
-
if (translationUrl) {
|
|
10626
|
-
try {
|
|
10627
|
-
const response = await fetch(translationUrl);
|
|
10628
|
-
if (!response.ok) {
|
|
10629
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
10630
|
-
}
|
|
10631
|
-
const translations = await response.json();
|
|
10632
|
-
getTranslations$1(translations);
|
|
10633
|
-
}
|
|
10634
|
-
catch (error) {
|
|
10635
|
-
console.error('Failed to fetch or parse translations from URL:', error);
|
|
10636
|
-
}
|
|
10637
|
-
}
|
|
10638
|
-
};
|
|
10639
10663
|
|
|
10640
|
-
const lotteryTippingTicketBannerCss = ".lottery-tipping-ticket-banner__container {\n font-family: system-ui, sans-serif;\n font-size: 14px;\n container-type: inline-size;\n}\n\n.banner {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n padding: 0 1rem;\n background: var(--emw--color-primary, #fed275);\n border-top: 2px solid var(--emw--color-primary, #fed275);\n border-bottom: 2px solid var(--emw--color-primary, #fed275);\n gap: 0.5rem;\n white-space: nowrap;\n position: relative;\n height: 46px;\n}\n\n.left {\n flex: 1;\n gap: 0.4rem;\n}\n.left .logo {\n width: 216px;\n position: absolute;\n top: -7px;\n}\n\n.brand {\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n\n.mid {\n flex: 1;\n font-size: 1.5rem;\n font-weight: 800;\n font-style: italic;\n letter-spacing: 0.04em;\n color: var(--emw--color-typography, #000);\n text-align: center;\n}\n\n.right {\n flex: 1;\n display: flex;\n gap: 0.4rem;\n flex-wrap: wrap;\n justify-content: flex-end;\n}\n\n@container (max-width: 420px) {\n .mid {\n text-align: right;\n }\n .right {\n justify-content: center;\n }\n}\n.pill {\n
|
|
10664
|
+
const lotteryTippingTicketBannerCss = ".lottery-tipping-ticket-banner__container {\n font-family: system-ui, sans-serif;\n font-size: 14px;\n container-type: inline-size;\n}\n\n.banner {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n padding: 0 1rem;\n background: var(--emw--color-primary, #fed275);\n border-top: 2px solid var(--emw--color-primary, #fed275);\n border-bottom: 2px solid var(--emw--color-primary, #fed275);\n gap: 0.5rem;\n white-space: nowrap;\n position: relative;\n height: 46px;\n}\n\n.left {\n flex: 1;\n gap: 0.4rem;\n}\n.left .logo {\n width: 216px;\n position: absolute;\n top: -7px;\n}\n\n.brand {\n font-weight: 700;\n color: var(--emw--color-typography, #000);\n}\n\n.mid {\n flex: 1;\n font-size: 1.5rem;\n font-weight: 800;\n font-style: italic;\n letter-spacing: 0.04em;\n color: var(--emw--color-typography, #000);\n text-align: center;\n}\n\n.right {\n flex: 1;\n display: flex;\n gap: 0.4rem;\n flex-wrap: wrap;\n justify-content: flex-end;\n}\n\n@container (max-width: 420px) {\n .mid {\n text-align: right;\n }\n .right {\n justify-content: center;\n }\n}\n.pill {\n padding: 0.25rem 0.7rem;\n font-size: 0.9rem;\n color: var(--emw--color-gray-400, #000);\n display: inline-flex;\n align-items: baseline;\n}\n\n.pill > strong {\n font-weight: 700;\n}";
|
|
10641
10665
|
const LotteryTippingTicketBannerStyle0 = lotteryTippingTicketBannerCss;
|
|
10642
10666
|
|
|
10643
10667
|
const LotteryTippingTicketBanner = class {
|
|
@@ -10648,6 +10672,7 @@ const LotteryTippingTicketBanner = class {
|
|
|
10648
10672
|
this.clientStylingUrl = undefined;
|
|
10649
10673
|
this.language = 'en';
|
|
10650
10674
|
this.translationUrl = '';
|
|
10675
|
+
this.logoUrl = undefined;
|
|
10651
10676
|
this.stopTime = '';
|
|
10652
10677
|
this.period = undefined;
|
|
10653
10678
|
}
|
|
@@ -10704,8 +10729,7 @@ const LotteryTippingTicketBanner = class {
|
|
|
10704
10729
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
10705
10730
|
}
|
|
10706
10731
|
render() {
|
|
10707
|
-
|
|
10708
|
-
return (h("div", { key: '07515ab821761d26edcc285f83f6e81dfab269ca', ref: (el) => (this.stylingContainer = el), class: "lottery-tipping-ticket-banner__container" }, h("section", { key: 'bbd8a3ae1b718f77b726dc89be4f901757579541', class: "banner" }, h("div", { key: '2b1883da2db0bfae83e5b4997c999fff433eb7a8', class: "left" }, h("img", { key: '54b482734d27bdfbbd2983bc95704273195fdd0d', alt: "Betting", src: backgroundImagePath, class: "logo" })), h("div", { key: '2a735ea687f0aaea72b0142f7026c9da0e15195d', class: "mid period" }, this.formattedPeriod), h("div", { key: '9c797b4a3bc6d2f0a69f4fd8af07f80eb765d0aa', class: "right" }, h("span", { key: '8c3abf153cf7f9ee1e2afcd42f67f7d90fe2f2a6', class: "pill" }, h("strong", { key: '4b3d99c269b4f494f62cbacc943f93f248004a96' }, translate$2('stop', this.language)), "\u00A0", translate$2('at', this.language), "\u00A0", this.formattedStopTime)))));
|
|
10732
|
+
return (h("div", { key: '8b8b9d66021090e8a4f566e11908341fb6a65bad', ref: (el) => (this.stylingContainer = el), class: "lottery-tipping-ticket-banner__container" }, h("section", { key: '37d23ad6aca6c4a02283a78e6011d0c6e4f81dff', class: "banner" }, h("div", { key: '919a9f7535468d5d75fa21e5c48c56c6c994aea7', class: "left" }, this.logoUrl && h("img", { key: '1d8e9f3e9ed7eaec36b604401c0a4045d735c209', alt: "Betting", src: this.logoUrl, class: "logo" })), h("div", { key: '3cdc189bcab34d964e6a17339c60e449ba4883d7', class: "mid period" }, this.formattedPeriod), h("div", { key: '526f90497ed8a14ba03d04cffbbe7c263b0bd23c', class: "right" }, h("span", { key: '00676d5b0fae7ad7b4d2cf549572ae7b3d3091c1', class: "pill" }, h("strong", { key: 'dde2bac5a9316cf97d34a19a433e6bcb74d50750' }, translate$1('stop', this.language)), "\u00A0", translate$1('at', this.language), "\u00A0", this.formattedStopTime)))));
|
|
10709
10733
|
}
|
|
10710
10734
|
static get assetsDirs() { return ["../static"]; }
|
|
10711
10735
|
static get watchers() { return {
|
|
@@ -10842,16 +10866,30 @@ const showNotification = ({ message, theme = 'success' }) => {
|
|
|
10842
10866
|
});
|
|
10843
10867
|
};
|
|
10844
10868
|
|
|
10845
|
-
const lotteryTippingTicketBetCss = ".LotteryTippingTicketBet__container {\n display: block; /* Or inline-block, depending on desired layout flow */\n font-size: 14px;\n line-height: 1.5715;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n overflow: hidden;\n min-width: 300px;\n container-type: inline-size;\n}\n@container (max-width: 375px) {\n .LotteryTippingTicketBet__container {\n font-size: 12px;\n }\n}\n\n.table-wrapper {\n overflow-x: auto; /* Handle horizontal scroll if content overflows */\n}\n\n.my-table-component {\n width: 100%;\n border-collapse: collapse; /* Important for borders */\n text-align: left;\n border-radius: 0.1rem; /* Ant Design like subtle rounding */\n border-spacing: 0;\n}\n\n/* Header */\n.my-table-component th {\n background: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n font-weight: 500;\n padding: 0.4rem 0.5rem;\n transition: background 0.3s ease;\n}\n\n/* Cells */\n.my-table-component td {\n padding: 0.4rem 0.5rem;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n transition: background 0.3s;\n}\n@container (max-width: 400px) {\n .my-table-component td {\n padding: 0.3rem 0.3rem;\n }\n}\n\n.my-table-component.bordered th,\n.my-table-component.bordered td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Bordered style */\n.my-table-component.grid th,\n.my-table-component.grid td {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid th {\n border-bottom-width: 1px; /* Ensure bottom border is consistent */\n}\n\n.my-table-component.grid {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6); /* Outer border */\n border-right-width: 0;\n border-bottom-width: 0;\n}\n\n.my-table-component.grid th:last-child,\n.my-table-component.grid td:last-child {\n border-right: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid tr:last-child td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Striped style */\n.my-table-component.striped tbody tr:nth-child(even) td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n/* Hover (optional, but nice) */\n.my-table-component tbody tr:hover td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.flex {\n display: flex;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 0.5rem;\n}\n\n.btn {\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n font-size: 14px;\n transition: all 0.2s ease;\n}\n.btn:hover {\n cursor: pointer;\n}\n\n.btn:hover {\n background-color: var(--emw--color-gray-100, #e6e6e6);\n}\n\n.btn.disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n.btn.disabled:hover {\n cursor: not-allowed !important;\n}\n\n.LotteryTippingTicketBet__tableToolbar {\n width: 100%;\n margin-bottom: 1rem;\n}\n\n.LotteryTippingTicketBet__tableToolbar--item {\n background-color: transparent;\n cursor: pointer;\n font-weight: 500;\n white-space: nowrap;\n display: inline-flex;\n border-radius: 1.6rem;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-right: 2rem;\n color: var(--emw--color-typography, #000);\n}\n.LotteryTippingTicketBet__tableToolbar--item.mr-0 {\n margin-right: 0rem !important;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup {\n flex-basis: 2rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 8px;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 2rem;\n height: 2rem;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n border-radius: 8px;\n transition: all 0.2s ease-in-out;\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item:hover {\n transform: scale(1.1);\n box-shadow: 0 6px 14px var(--emw-calender-curday-box-shadow, rgba(0, 0, 0, 0.09));\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item img {\n width: 20px;\n height: 20px;\n transition: filter 0.2s ease-in-out;\n filter: grayscale(0.3);\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item:hover img {\n filter: grayscale(0);\n transform: rotate(3deg);\n}\n\ndiv.border-line {\n margin-top: 1rem;\n height: 1px;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n transition: all 0.3s ease;\n}\n\n.LotteryTippingTicketBet__footer {\n padding: 0.5rem;\n}\n\n.my-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 1rem;\n font-size: 0.8rem;\n color: var(--emw--color-typography-secondary, #333);\n}\n\n.my-pagination span {\n font-weight: 500;\n user-select: none;\n}\n\n.my-pagination .btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n transition: all 0.3s ease;\n cursor: pointer;\n opacity: 0.9;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.my-pagination .btn img {\n width: 20px;\n height: 20px;\n transition: transform 0.2s ease;\n}\n\n.my-pagination .btn:hover {\n transform: scale(1.1);\n box-shadow: 0 6px 14px var(--emw-calender-curday-box-shadow, rgba(0, 0, 0, 0.09));\n}\n\n.my-pagination .btn.disabled {\n background-color: var(--emw--color-background-tertiary, #ccc);\n cursor: not-allowed;\n opacity: 0.5;\n transform: scale(1);\n}\n\n.match-info-item {\n display: flex;\n}\n\n.match-info-item-label {\n margin-right: 6px;\n}\n\n.info-icon:hover {\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__empty p {\n text-align: center;\n}\n\n.no-wrap {\n white-space: nowrap;\n overflow: hidden;\n}\n\n.eventNameContainer__item {\n line-height: 1rem;\n}\n.eventNameContainer__item--title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 300px;\n}\n@container (max-width: 600px) {\n .eventNameContainer__item--title {\n max-width: 180px;\n }\n}\n@container (max-width: 500px) {\n .eventNameContainer__item--title {\n max-width: 150px;\n }\n}\n@container (max-width: 400px) {\n .eventNameContainer__item--title {\n max-width: 100px;\n }\n}\n@container (max-width: 330px) {\n .eventNameContainer__item--title {\n max-width: 70px;\n }\n}\n\n.LotteryTippingTicketBet__main {\n perspective: 800px;\n will-change: transform, opacity;\n backface-visibility: hidden;\n}\n\n@container (max-width: 520px) {\n .LotteryTippingTicketBet__main {\n flex-wrap: wrap;\n justify-content: center;\n }\n .LotteryTippingTicketBet__tableToolbar--item {\n margin-right: 0 !important;\n }\n}\n/* Fade-In Keyframes */\n@keyframes fadeInLeft {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n/* Fade-Out Keyframes */\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n@keyframes fadeInRight {\n from {\n opacity: 0;\n transform: translateX(-100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes fadeInUp {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n@-webkit-keyframes slide-left {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n }\n 100% {\n -webkit-transform: translateX(-100px);\n transform: translateX(-100px);\n }\n}\n@keyframes slide-left {\n 0% {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n }\n 100% {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n }\n}\n@-webkit-keyframes slide-right {\n 0% {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n }\n 100% {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n }\n}\n@keyframes slide-right {\n 0% {\n -webkit-transform: translateX(-100px);\n transform: translateX(-100px);\n }\n 100% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n }\n}\n@-webkit-keyframes slide-top {\n 0% {\n -webkit-transform: translateY(-100px);\n transform: translateY(-100px);\n }\n 100% {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n }\n}\n@keyframes slide-top {\n 0% {\n -webkit-transform: translateY(-100px);\n transform: translateY(-100px);\n }\n 100% {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n }\n}\n/* Apply to your card classes */\n.card-in-left {\n -webkit-animation: slide-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-left {\n animation: fadeOut 0.2s ease-out both;\n}\n\n.card-in-right {\n -webkit-animation: slide-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-right {\n animation: fadeOut 0.2s ease-out both;\n}\n\n.card-in-up {\n -webkit-animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-down {\n animation: fadeOut 0.2s ease-out both;\n}";
|
|
10869
|
+
const lotteryTippingTicketBetCss = ".LotteryTippingTicketBet__container {\n display: block; /* Or inline-block, depending on desired layout flow */\n font-size: 14px;\n line-height: 1.5715;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n overflow: hidden;\n min-width: 300px;\n container-type: inline-size;\n}\n@container (max-width: 375px) {\n .LotteryTippingTicketBet__container {\n font-size: 12px;\n }\n}\n\n.table-wrapper {\n overflow-x: auto; /* Handle horizontal scroll if content overflows */\n}\n\n.my-table-component {\n width: 100%;\n border-collapse: collapse; /* Important for borders */\n text-align: left;\n border-radius: 0.1rem; /* Ant Design like subtle rounding */\n border-spacing: 0;\n}\n\n/* Header */\n.my-table-component th {\n background: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n font-weight: 500;\n padding: 0.4rem 0.5rem;\n transition: background 0.3s ease;\n}\n\n/* Cells */\n.my-table-component td {\n padding: 0.4rem 0.5rem;\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n transition: background 0.3s;\n}\n@container (max-width: 400px) {\n .my-table-component td {\n padding: 0.3rem 0.3rem;\n }\n}\n\n.my-table-component.bordered th,\n.my-table-component.bordered td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Bordered style */\n.my-table-component.grid th,\n.my-table-component.grid td {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid th {\n border-bottom-width: 1px; /* Ensure bottom border is consistent */\n}\n\n.my-table-component.grid {\n border: 1px solid var(--emw--color-gray-100, #e6e6e6); /* Outer border */\n border-right-width: 0;\n border-bottom-width: 0;\n}\n\n.my-table-component.grid th:last-child,\n.my-table-component.grid td:last-child {\n border-right: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n.my-table-component.grid tr:last-child td {\n border-bottom: 1px solid var(--emw--color-gray-100, #e6e6e6);\n}\n\n/* Striped style */\n.my-table-component.striped tbody tr:nth-child(even) td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n/* Hover (optional, but nice) */\n.my-table-component tbody tr:hover td {\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.flex {\n display: flex;\n}\n\n.justify-end {\n justify-content: flex-end;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.justify-between {\n justify-content: space-between;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 0.5rem;\n}\n\n.btn {\n color: var(--emw--color-typography, #000);\n background: var(--emw--color-background, #fff);\n font-size: 14px;\n transition: all 0.2s ease;\n}\n.btn:hover {\n cursor: pointer;\n}\n\n.btn:hover {\n background-color: var(--emw--color-gray-100, #e6e6e6);\n}\n\n.btn.disabled {\n opacity: 0.5;\n pointer-events: none;\n}\n.btn.disabled:hover {\n cursor: not-allowed !important;\n}\n\n.LotteryTippingTicketBet__tableToolbar {\n width: 100%;\n margin-bottom: 1rem;\n}\n\n.LotteryTippingTicketBet__tableToolbar--item {\n background-color: transparent;\n cursor: pointer;\n font-weight: 500;\n white-space: nowrap;\n display: inline-flex;\n border-radius: 1.6rem;\n border: 1px solid var(--emw--color-gray-100, #e6e6e6);\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n padding-left: 1rem;\n padding-right: 1rem;\n margin-right: 2rem;\n color: var(--emw--color-typography, #000);\n}\n.LotteryTippingTicketBet__tableToolbar--item.mr-0 {\n margin-right: 0rem !important;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup {\n flex-basis: 2rem;\n display: flex;\n flex-direction: column;\n gap: 1rem;\n border-radius: 8px;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 2rem;\n height: 2rem;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n border-radius: 8px;\n transition: all 0.2s ease-in-out;\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item:hover {\n transform: scale(1.1);\n box-shadow: 0 6px 14px var(--emw-calender-curday-box-shadow, rgba(0, 0, 0, 0.09));\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item .icon {\n width: 20px;\n height: 20px;\n transition: filter 0.2s ease-in-out;\n filter: grayscale(0.3);\n}\n\n.LotteryTippingTicketBet__lineOperatorGroup--item:hover .icon {\n filter: grayscale(0);\n transform: rotate(3deg);\n}\n\ndiv.border-line {\n margin-top: 1rem;\n height: 1px;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n transition: all 0.3s ease;\n}\n\n.LotteryTippingTicketBet__footer {\n padding: 0.5rem;\n}\n\n.my-pagination {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 1rem;\n font-size: 0.8rem;\n color: var(--emw--color-typography-secondary, #333);\n}\n\n.my-pagination span {\n font-weight: 500;\n user-select: none;\n}\n\n.my-pagination .btn {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n transition: all 0.3s ease;\n cursor: pointer;\n opacity: 0.9;\n color: var(--emw--color-typography, #000);\n background-color: var(--emw--color-background-secondary, #f5f5f5);\n}\n\n.my-pagination .btn .icon {\n width: 20px;\n height: 20px;\n transition: transform 0.2s ease;\n}\n\n.my-pagination .btn:hover {\n transform: scale(1.1);\n box-shadow: 0 6px 14px var(--emw-calender-curday-box-shadow, rgba(0, 0, 0, 0.09));\n}\n\n.my-pagination .btn.disabled {\n background-color: var(--emw--color-background-tertiary, #ccc);\n cursor: not-allowed;\n opacity: 0.5;\n transform: scale(1);\n}\n\n.match-info-item {\n display: flex;\n}\n\n.match-info-item-label {\n margin-right: 6px;\n}\n\n.info-icon:hover {\n cursor: pointer;\n}\n\n.LotteryTippingTicketBet__empty p {\n text-align: center;\n}\n\n.no-wrap {\n white-space: nowrap;\n overflow: hidden;\n}\n\n.eventNameContainer__item--title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n max-width: 300px;\n}\n@container (max-width: 600px) {\n .eventNameContainer__item--title {\n max-width: 180px;\n }\n}\n@container (max-width: 500px) {\n .eventNameContainer__item--title {\n max-width: 150px;\n }\n}\n@container (max-width: 400px) {\n .eventNameContainer__item--title {\n max-width: 100px;\n }\n}\n@container (max-width: 330px) {\n .eventNameContainer__item--title {\n max-width: 70px;\n }\n}\n\n.LotteryTippingTicketBet__main {\n perspective: 800px;\n will-change: transform, opacity;\n backface-visibility: hidden;\n}\n\n@container (max-width: 520px) {\n .LotteryTippingTicketBet__main {\n flex-wrap: wrap;\n justify-content: center;\n }\n .LotteryTippingTicketBet__tableToolbar--item {\n margin-right: 0 !important;\n }\n}\n/* Fade-In Keyframes */\n@keyframes fadeInLeft {\n from {\n opacity: 0;\n transform: translateX(100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n/* Fade-Out Keyframes */\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n@keyframes fadeInRight {\n from {\n opacity: 0;\n transform: translateX(-100%);\n }\n to {\n opacity: 1;\n transform: translateX(0);\n }\n}\n@keyframes fadeInUp {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n@-webkit-keyframes slide-left {\n 0% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n }\n 100% {\n -webkit-transform: translateX(-100px);\n transform: translateX(-100px);\n }\n}\n@keyframes slide-left {\n 0% {\n -webkit-transform: translateX(100%);\n transform: translateX(100%);\n }\n 100% {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n }\n}\n@-webkit-keyframes slide-right {\n 0% {\n -webkit-transform: translateX(-100%);\n transform: translateX(-100%);\n }\n 100% {\n -webkit-transform: translateX(0px);\n transform: translateX(0px);\n }\n}\n@keyframes slide-right {\n 0% {\n -webkit-transform: translateX(-100px);\n transform: translateX(-100px);\n }\n 100% {\n -webkit-transform: translateX(0);\n transform: translateX(0);\n }\n}\n@-webkit-keyframes slide-top {\n 0% {\n -webkit-transform: translateY(-100px);\n transform: translateY(-100px);\n }\n 100% {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n }\n}\n@keyframes slide-top {\n 0% {\n -webkit-transform: translateY(-100px);\n transform: translateY(-100px);\n }\n 100% {\n -webkit-transform: translateY(0px);\n transform: translateY(0px);\n }\n}\n/* Apply to your card classes */\n.card-in-left {\n -webkit-animation: slide-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-left 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-left {\n animation: fadeOut 0.2s ease-out both;\n}\n\n.card-in-right {\n -webkit-animation: slide-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-right {\n animation: fadeOut 0.2s ease-out both;\n}\n\n.card-in-up {\n -webkit-animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n animation: slide-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;\n}\n\n.card-out-down {\n animation: fadeOut 0.2s ease-out both;\n}\n\n.loading-wrap {\n margin: 20px 0;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 40vh;\n}\n.loading-wrap .dots-container {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n.loading-wrap .dot {\n height: 14px;\n width: 14px;\n margin-right: 14px;\n border-radius: 14px;\n background-color: var(--emw--color-gray-300, #333);\n animation: pulse 1.5s infinite ease-in-out;\n}\n.loading-wrap .dot:last-child {\n margin-right: 0;\n}\n.loading-wrap .dot:nth-child(1) {\n animation-delay: -0.3s;\n}\n.loading-wrap .dot:nth-child(2) {\n animation-delay: -0.1s;\n}\n.loading-wrap .dot:nth-child(3) {\n animation-delay: 0.1s;\n}\n@keyframes pulse {\n 0% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-300, #333);\n }\n 50% {\n transform: scale(1.2);\n background-color: var(--emw--color-gray-100, #e6e6e6);\n }\n 100% {\n transform: scale(0.8);\n background-color: var(--emw--color-gray-150, #6f6f6f);\n }\n}";
|
|
10846
10870
|
const LotteryTippingTicketBetStyle0 = lotteryTippingTicketBetCss;
|
|
10847
10871
|
|
|
10872
|
+
const addImagePath = renderIconDefinitionToSVGElement(PlusSquareOutlined$1, {
|
|
10873
|
+
extraSVGAttrs: { width: '20px', height: '20px', fill: 'currentColor' }
|
|
10874
|
+
});
|
|
10875
|
+
const deleteImagePath = renderIconDefinitionToSVGElement(DeleteOutlined$1, {
|
|
10876
|
+
extraSVGAttrs: { width: '20px', height: '20px', fill: 'currentColor' }
|
|
10877
|
+
});
|
|
10878
|
+
const infoImagePath = renderIconDefinitionToSVGElement(InfoCircleOutlined$1, {
|
|
10879
|
+
extraSVGAttrs: { width: '16px', height: '16px', fill: 'currentColor' }
|
|
10880
|
+
});
|
|
10881
|
+
const leftImagePath = renderIconDefinitionToSVGElement(LeftOutlined$1, {
|
|
10882
|
+
extraSVGAttrs: { width: '20px', height: '20px', fill: 'currentColor' }
|
|
10883
|
+
});
|
|
10884
|
+
const rightImagePath = renderIconDefinitionToSVGElement(RightOutlined$1, {
|
|
10885
|
+
extraSVGAttrs: { width: '20px', height: '20px', fill: 'currentColor' }
|
|
10886
|
+
});
|
|
10848
10887
|
const LotteryTippingTicketBet = class {
|
|
10849
10888
|
constructor(hostRef) {
|
|
10850
10889
|
registerInstance(this, hostRef);
|
|
10851
10890
|
this.lotteryTippingBulletBetEvent = createEvent(this, "lotteryTippingBulletBetSelect", 7);
|
|
10852
10891
|
this.lotteryTippingCurrentPageChangeEvent = createEvent(this, "lotteryTippingCurrentPageChange", 7);
|
|
10853
|
-
this.
|
|
10854
|
-
this.eventNameRender = (item, value) => (h("div", { class: "flex gap-1 eventNameContainer__item" }, h("span", { class: "eventNameContainer__item--title" }, value), h("general-tooltip", null, h("img", { slot: "trigger", class: "info-icon", src: this.infoImagePath, style: { width: '18px' } }), h("div", { slot: "content" }, h("div", { class: "match-info" }, h("div", { class: "match-info-item" }, h("div", { class: "match-info-item-label" }, translate('homeTeam', this.language)), h("div", { class: "match-info-item-value" }, item.homeName)), h("div", { class: "match-info-item" }, h("div", { class: "match-info-item-label" }, translate('awayTeam', this.language)), h("div", { class: "match-info-item-value" }, item.awayName)))))));
|
|
10892
|
+
this.eventNameRender = (item, value) => (h("div", { class: "flex gap-1 eventNameContainer__item" }, h("span", { class: "eventNameContainer__item--title" }, value), h("general-tooltip", null, h("span", { slot: "trigger", class: "icon info-icon", innerHTML: infoImagePath, style: { width: '18px' } }), h("div", { slot: "content" }, h("div", { class: "match-info" }, h("div", { class: "match-info-item" }, h("div", { class: "match-info-item-label" }, translate('homeTeam', this.language)), h("div", { class: "match-info-item-value" }, item.homeName)), h("div", { class: "match-info-item" }, h("div", { class: "match-info-item-label" }, translate('awayTeam', this.language)), h("div", { class: "match-info-item-value" }, item.awayName)))))));
|
|
10855
10893
|
this.columns = [
|
|
10856
10894
|
{ title: '', value: 'index', width: 3 },
|
|
10857
10895
|
{
|
|
@@ -11117,11 +11155,13 @@ const LotteryTippingTicketBet = class {
|
|
|
11117
11155
|
handleCurrentPageChange() {
|
|
11118
11156
|
this.lotteryTippingCurrentPageChangeEvent.emit({ currentPage: this.currentPage });
|
|
11119
11157
|
}
|
|
11158
|
+
renderLoading() {
|
|
11159
|
+
return (h("div", { class: "loading-wrap" }, h("section", { class: "dots-container" }, h("div", { class: "dot" }), h("div", { class: "dot" }), h("div", { class: "dot" }), h("div", { class: "dot" }), h("div", { class: "dot" }))));
|
|
11160
|
+
}
|
|
11120
11161
|
render() {
|
|
11121
11162
|
var _a, _b, _c, _d;
|
|
11122
|
-
const loadingImagePath = getAssetPath('../static/loading.svg');
|
|
11123
11163
|
if (this.isLoading) {
|
|
11124
|
-
return
|
|
11164
|
+
return this.renderLoading();
|
|
11125
11165
|
}
|
|
11126
11166
|
if (this.hasErrors) {
|
|
11127
11167
|
return (h("div", { ref: (el) => (this.stylingContainer = el), class: "LotteryTippingTicketBet__container" }, h("p", null, translate('error', this.language))));
|
|
@@ -11130,10 +11170,6 @@ const LotteryTippingTicketBet = class {
|
|
|
11130
11170
|
var _a;
|
|
11131
11171
|
return (h("th", { key: column.value, style: { width: column.width + '%', textAlign: column.align } }, typeof column.title === 'string' ? column.title : (_a = column.title) === null || _a === void 0 ? void 0 : _a.call(column)));
|
|
11132
11172
|
})))), h("tbody", null, dataSource.map((row, index) => (h("tr", { key: index }, columns.map((column) => (h("td", { key: column.value, style: { width: column.width + '%', textAlign: column.align }, class: { 'no-wrap': column.nowrap } }, column.render ? column.render(row, row[column.value], index) : row[column.value])))))))));
|
|
11133
|
-
const deleteImagePath = getAssetPath('../static/delete.svg');
|
|
11134
|
-
const addImagePath = getAssetPath('../static/add.svg');
|
|
11135
|
-
const leftImagePath = getAssetPath('../static/left-arrow.svg');
|
|
11136
|
-
const rightImagePath = getAssetPath('../static/right-arrow.svg');
|
|
11137
11173
|
const lineOperatorAddShow = this.totalPages < this.maxTotalPages && this.currentPage === this.totalPages ? true : false;
|
|
11138
11174
|
const lineOperatorRemoveShow = this.totalPages > this.minTotalPages ? true : false;
|
|
11139
11175
|
if (this.ticketDataSource.length === 0 || this.minTotalPages === 0 || this.maxTotalPages === 0) {
|
|
@@ -11143,16 +11179,16 @@ const LotteryTippingTicketBet = class {
|
|
|
11143
11179
|
return (h("div", { class: "LotteryTippingTicketBet__container", ref: (el) => (this.stylingContainer = el) }, h("div", { class: "LotteryTippingTicketBet__main", ref: (el) => (this.mainContainer = el) }, h(MyTable, { columns: this.columns, dataSource: ((_a = this.ticketDataSource) === null || _a === void 0 ? void 0 : _a.map((item, index) => (Object.assign(Object.assign({}, item), { index: index + 1 })))) || [], hideHead: false, grid: false, bordered: false }), this.totalPages > 1 && (h("div", null, h("div", { class: 'border-line' }), h("div", { class: "LotteryTippingTicketBet__footer" }, h("div", { class: "my-pagination flex justify-between" }, h("span", null, translate('lineInfo', this.language, {
|
|
11144
11180
|
currentPage: this.currentPage,
|
|
11145
11181
|
totalPages: this.totalPages
|
|
11146
|
-
})), h("div", { class: 'flex gap-1' }, h("span", { class: `btn ${this.currentPage === 1 ? 'disabled' : ''}`, onClick: this.prevPage.bind(this) }, h("
|
|
11182
|
+
})), h("div", { class: 'flex gap-1' }, h("span", { class: `btn ${this.currentPage === 1 ? 'disabled' : ''}`, onClick: this.prevPage.bind(this) }, h("span", { class: "icon", innerHTML: leftImagePath })), h("span", { class: `btn ${this.currentPage === this.totalPages ? 'disabled' : ''}`, onClick: this.nextPage.bind(this) }, h("span", { class: "icon", innerHTML: rightImagePath }))))))))));
|
|
11147
11183
|
}
|
|
11148
11184
|
return (h("div", { ref: (el) => (this.stylingContainer = el), class: "LotteryTippingTicketBet__container" }, h("div", { class: "LotteryTippingTicketBet__tableToolbar flex justify-end gap-1" }, h("button", { class: {
|
|
11149
11185
|
'LotteryTippingTicketBet__tableToolbar--item': true,
|
|
11150
11186
|
'mr-0': !(lineOperatorAddShow || lineOperatorRemoveShow)
|
|
11151
11187
|
}, onClick: this.handleClearAll.bind(this) }, translate('clearAll', this.language))), h("div", { class: "flex align-center LotteryTippingTicketBet__main", ref: (el) => (this.mainContainer = el) }, h(MyTable, { columns: this.columns, dataSource: ((_b = this.ticketDataSource) === null || _b === void 0 ? void 0 : _b.map((item, index) => (Object.assign(Object.assign({}, item), { index: index + 1 })))) || [], hideHead: false, grid: false, bordered: false }), (lineOperatorAddShow || lineOperatorRemoveShow) && (h("div", { class: "LotteryTippingTicketBet__lineOperatorGroup" }, lineOperatorAddShow && (h("div", { class: {
|
|
11152
11188
|
'LotteryTippingTicketBet__lineOperatorGroup--item': true
|
|
11153
|
-
}, onClick: this.handleAddLine.bind(this) }, h("
|
|
11189
|
+
}, onClick: this.handleAddLine.bind(this) }, h("span", { class: "icon", innerHTML: addImagePath }))), lineOperatorRemoveShow && (h("div", { class: {
|
|
11154
11190
|
'LotteryTippingTicketBet__lineOperatorGroup--item': true
|
|
11155
|
-
}, onClick: this.handleRemoveLine.bind(this) }, h("
|
|
11191
|
+
}, onClick: this.handleRemoveLine.bind(this) }, h("span", { class: "icon", innerHTML: deleteImagePath })))))), h("div", { class: 'border-line' }), h("div", { class: "LotteryTippingTicketBet__footer" }, h("div", { class: "my-pagination flex justify-between" }, h("span", null, translate('lineInfo', this.language, { currentPage: this.currentPage, totalPages: this.totalPages })), h("div", { class: 'flex gap-1' }, h("span", { class: `btn ${this.currentPage === 1 ? 'disabled' : ''}`, onClick: this.prevPage.bind(this) }, h("span", { class: "icon", innerHTML: leftImagePath })), h("span", { class: `btn ${this.currentPage === this.totalPages ? 'disabled' : ''}`, onClick: this.nextPage.bind(this) }, h("span", { class: "icon", innerHTML: rightImagePath }))))), this.dialogConfig.visible && (h("vaadin-confirm-dialog", { rejectButtonVisible: true, rejectText: translate('cancel', this.language), confirmText: translate('confirm', this.language), opened: (_c = this.dialogConfig) === null || _c === void 0 ? void 0 : _c.visible, onConfirm: this.dialogConfig.onConfirm, onReject: this.dialogConfig.onCancel }, (_d = this.dialogConfig) === null || _d === void 0 ? void 0 : _d.content))));
|
|
11156
11192
|
}
|
|
11157
11193
|
static get assetsDirs() { return ["../static"]; }
|
|
11158
11194
|
static get watchers() { return {
|
|
@@ -11180,19 +11216,22 @@ var BettingTypeEnum;
|
|
|
11180
11216
|
BettingTypeEnum["Both"] = "Both";
|
|
11181
11217
|
})(BettingTypeEnum || (BettingTypeEnum = {}));
|
|
11182
11218
|
|
|
11183
|
-
const lotteryTippingTicketControllerCss = ".lottery-tipping-ticket-controller__container {\n display: block;\n box-sizing: border-box;\n font-size: 14px;\n container-type: inline-size;\n background: var(--emw--color-background, #fff);\n}\n@container (max-width: 375px) {\n .lottery-tipping-ticket-controller__container {\n font-size: 12px;\n }\n}\n\n.LotteryTippingTicketController__top {\n padding: 1.8rem;\n display: flex;\n flex-direction: column;\n gap: 2rem;\n margin: 0 auto;\n max-width: 800px;\n}\n.LotteryTippingTicketController__row {\n display: flex;\n align-items: center;\n gap: 1rem;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n.LotteryTippingTicketController__section {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.LotteryTippingTicketController__label {\n font-weight: 500;\n white-space: nowrap;\n width: 6rem;\n color: var(--emw--color-typography-secondary, #333);\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, #ffffff);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment--disabled:hover {\n cursor: not-allowed !important;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n}\n\n.flex {\n display: flex;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.LotteryTippingTicketController__main {\n align-items: flex-start;\n justify-content: center;\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 20px;\n flex-wrap: wrap;\n}\n.LotteryTippingTicketController__main--left {\n border: 1px solid var(--emw--color-gray-50, #f5f5f5);\n padding: 1rem;\n border-radius: 1rem;\n flex: 1.5;\n}\n.LotteryTippingTicketController__main--right {\n padding: 1rem;\n border-radius: 1rem;\n flex: 1;\n}\n\n.order-summary {\n max-width: 360px;\n width: 100%;\n background: var(--emw--color-background, #fff);\n}\n\n.order-summary__title {\n margin-bottom: 16px;\n text-align: center;\n color: var(--emw--color-typography, #000);\n text-transform: uppercase;\n}\n\n.order-summary__ticket-info {\n display: flex;\n align-items: center;\n margin-bottom: 16px;\n gap: 10px;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__ticket {\n font-weight: 500;\n width: 50px;\n text-align: right;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__details {\n display: flex;\n align-items: center;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__multiplier {\n color: var(--emw--color-typography-secondary, #333);\n margin: 0 8px;\n}\n\n.order-summary__divider {\n border: none;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n margin: 20px 0;\n}\n\n.order-summary__button-wrapper {\n display: flex;\n justify-content: center;\n}\n\n.order-summary__button {\n cursor: pointer;\n padding: 0.
|
|
11219
|
+
const lotteryTippingTicketControllerCss = ".lottery-tipping-ticket-controller__container {\n display: block;\n box-sizing: border-box;\n font-size: 14px;\n container-type: inline-size;\n background: var(--emw--color-background, #fff);\n}\n@container (max-width: 375px) {\n .lottery-tipping-ticket-controller__container {\n font-size: 12px;\n }\n}\n\n.LotteryTippingTicketController__top {\n padding: 1.8rem;\n display: flex;\n flex-direction: column;\n gap: 2rem;\n margin: 0 auto;\n max-width: 800px;\n}\n.LotteryTippingTicketController__row {\n display: flex;\n align-items: center;\n gap: 1rem;\n justify-content: space-between;\n flex-wrap: wrap;\n}\n.LotteryTippingTicketController__section {\n display: flex;\n align-items: center;\n gap: 12px;\n}\n.LotteryTippingTicketController__label {\n font-weight: 500;\n white-space: nowrap;\n width: 6rem;\n color: var(--emw--color-typography-secondary, #333);\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, #ffffff);\n color: var(--emw--color-typography, #000);\n font-weight: 600;\n}\n.LotteryTippingTicketController__segment--disabled:hover {\n cursor: not-allowed !important;\n}\n.LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {\n background-color: var(--emw--color-background-tertiary, #ccc);\n}\n\n.flex {\n display: flex;\n}\n\n.flex-wrap {\n flex-wrap: wrap;\n}\n\n.align-center {\n align-items: center;\n}\n\n.gap-1 {\n gap: 4px;\n}\n\n.LotteryTippingTicketController__main {\n align-items: flex-start;\n justify-content: center;\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 20px;\n flex-wrap: wrap;\n}\n.LotteryTippingTicketController__main--left {\n border: 1px solid var(--emw--color-gray-50, #f5f5f5);\n padding: 1rem;\n border-radius: 1rem;\n flex: 1.5;\n}\n.LotteryTippingTicketController__main--right {\n padding: 1rem;\n border-radius: 1rem;\n flex: 1;\n}\n\n.order-summary {\n max-width: 360px;\n width: 100%;\n background: var(--emw--color-background, #fff);\n}\n\n.order-summary__title {\n margin-bottom: 16px;\n text-align: center;\n color: var(--emw--color-typography, #000);\n text-transform: uppercase;\n}\n\n.order-summary__ticket-info {\n display: flex;\n align-items: center;\n margin-bottom: 16px;\n gap: 10px;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__ticket {\n font-weight: 500;\n width: 50px;\n text-align: right;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__details {\n display: flex;\n align-items: center;\n color: var(--emw--color-typography, #000);\n}\n\n.order-summary__multiplier {\n color: var(--emw--color-typography-secondary, #333);\n margin: 0 8px;\n}\n\n.order-summary__divider {\n border: none;\n border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);\n margin: 20px 0;\n}\n\n.order-summary__button-wrapper {\n display: flex;\n justify-content: center;\n}\n\n.order-summary__button {\n cursor: pointer;\n padding: 0.8rem 4rem;\n background: var(--emw--color-primary, #fed275);\n color: var(--emw--color-typography, #000);\n border-radius: var(--emw--button-border-radius, 4px);\n border: none;\n position: relative;\n}\n\n.loading-icon {\n position: absolute;\n right: 40px;\n top: 10px;\n}\n\n.order-summary__button:not(.order-summary__button--disabled):not(.order-summary__button--loading):hover {\n transform: translateY(-1px);\n background: var(--emw--color-primary-variant, #ffe66f);\n}\n\n.order-summary__button--loading {\n background: var(--emw--color-primary-variant, #ffe66f);\n cursor: not-allowed;\n}\n\n.order-summary__button--disabled {\n background: var(--emw--color-background-secondary, #f5f5f5);\n color: var(--emw--color-typography, #000);\n cursor: not-allowed;\n}\n\n.skeleton-content {\n display: flex;\n flex-direction: column;\n gap: 29px;\n align-items: center;\n}\n\n.skeleton-item {\n background: var(--emw--color-background-secondary, #f5f5f5);\n border-radius: 4px;\n height: 40px;\n width: 200px;\n}\n\n.skeleton-animated {\n animation: skeleton-shimmer 1.5s infinite linear;\n background: linear-gradient(90deg, var(--emw--color-background-secondary, #f5f5f5) 25%, var(--emw--color-background-tertiary, #ccc) 37%, var(--emw--color-background-secondary, #f5f5f5) 63%);\n background-size: 200% 100%;\n}\n\n@keyframes skeleton-shimmer {\n to {\n background-position: 100% 0;\n }\n}\n.loading-icon.scale {\n animation: scale 1s infinite ease-in-out;\n}\n\n@keyframes scale {\n 0%, 100% {\n transform: scale(1);\n }\n 50% {\n transform: scale(1.2);\n }\n}";
|
|
11184
11220
|
const LotteryTippingTicketControllerStyle0 = lotteryTippingTicketControllerCss;
|
|
11185
11221
|
|
|
11222
|
+
const loadingImagePath = renderIconDefinitionToSVGElement(EllipsisOutlined$1, {
|
|
11223
|
+
extraSVGAttrs: { height: '20px', width: '20px', fill: 'currentColor' }
|
|
11224
|
+
});
|
|
11186
11225
|
const LotteryTippingTicketController = class {
|
|
11187
11226
|
constructor(hostRef) {
|
|
11188
11227
|
registerInstance(this, hostRef);
|
|
11189
11228
|
this.logoutEventHandler = createEvent(this, "logout", 7);
|
|
11190
|
-
this.loadingImagePath = getAssetPath('../static/loading.svg');
|
|
11191
11229
|
this.mbSource = undefined;
|
|
11192
11230
|
this.clientStyling = undefined;
|
|
11193
11231
|
this.clientStylingUrl = undefined;
|
|
11194
11232
|
this.translationUrl = '';
|
|
11195
11233
|
this.language = 'en';
|
|
11234
|
+
this.logoUrl = undefined;
|
|
11196
11235
|
this.endpoint = '';
|
|
11197
11236
|
this.endpointTicket = undefined;
|
|
11198
11237
|
this.sessionId = undefined;
|
|
@@ -11282,7 +11321,7 @@ const LotteryTippingTicketController = class {
|
|
|
11282
11321
|
};
|
|
11283
11322
|
this.dialogConfig = {
|
|
11284
11323
|
visible: true,
|
|
11285
|
-
content: translate$
|
|
11324
|
+
content: translate$2('selectionCleared', this.language),
|
|
11286
11325
|
onConfirm: onConfirm,
|
|
11287
11326
|
onCancel: closeDialog
|
|
11288
11327
|
};
|
|
@@ -11441,7 +11480,7 @@ const LotteryTippingTicketController = class {
|
|
|
11441
11480
|
this.submitLoading = true;
|
|
11442
11481
|
doSubmitTicket({ body, sessionId: this.sessionId, url: url.href })
|
|
11443
11482
|
.then(() => {
|
|
11444
|
-
showNotification$1({ message: translate$
|
|
11483
|
+
showNotification$1({ message: translate$2('ticketSubmitted', this.language) });
|
|
11445
11484
|
this.clearBulletConfig();
|
|
11446
11485
|
})
|
|
11447
11486
|
.catch((res) => {
|
|
@@ -11450,7 +11489,7 @@ const LotteryTippingTicketController = class {
|
|
|
11450
11489
|
showNotification$1({ message: TICKET_INVALID_TOKEN, theme: 'error' });
|
|
11451
11490
|
return;
|
|
11452
11491
|
}
|
|
11453
|
-
showNotification$1({ message: translate$
|
|
11492
|
+
showNotification$1({ message: translate$2('ticketFailed', this.language), theme: 'error' });
|
|
11454
11493
|
})
|
|
11455
11494
|
.finally(() => {
|
|
11456
11495
|
this.submitLoading = false;
|
|
@@ -11458,9 +11497,9 @@ const LotteryTippingTicketController = class {
|
|
|
11458
11497
|
}
|
|
11459
11498
|
get lineCountRender() {
|
|
11460
11499
|
const _ = thousandSeparator(this.totalLineCombination);
|
|
11461
|
-
let unit = translate$
|
|
11500
|
+
let unit = translate$2('lines', this.language);
|
|
11462
11501
|
if ([0, 1].includes(+_))
|
|
11463
|
-
unit = translate$
|
|
11502
|
+
unit = translate$2('line', this.language);
|
|
11464
11503
|
return _ + ' ' + unit;
|
|
11465
11504
|
}
|
|
11466
11505
|
renderBettingControls() {
|
|
@@ -11473,18 +11512,18 @@ const LotteryTippingTicketController = class {
|
|
|
11473
11512
|
LotteryTippingTicketController__segment: true,
|
|
11474
11513
|
'LotteryTippingTicketController__segment--active': this.selectedPlayingMode === item.code
|
|
11475
11514
|
}, onClick: this.handlePlayingModeChange.bind(this, item.code) }, item.name)))));
|
|
11476
|
-
return (h("div", { class: "LotteryTippingTicketController__top" }, h("div", { class: "LotteryTippingTicketController__row" }, h("div", { class: "LotteryTippingTicketController__section" }, h("span", { class: "LotteryTippingTicketController__label" }, translate$
|
|
11515
|
+
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()))));
|
|
11477
11516
|
}
|
|
11478
11517
|
renderOrderSummary() {
|
|
11479
|
-
return (h("div", { class: "LotteryTippingTicketController__main--right order-summary" }, h("h3", { class: "order-summary__title" }, translate$
|
|
11518
|
+
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" }, "2"))))), 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("button", { class: {
|
|
11480
11519
|
'order-summary__button': true,
|
|
11481
11520
|
'order-summary__button--disabled': !this.hasSelectAllBullet,
|
|
11482
11521
|
'order-summary__button--loading': this.submitLoading
|
|
11483
|
-
}, onClick: this.handleSubmit.bind(this), disabled: !this.hasSelectAllBullet || this.submitLoading }, h("
|
|
11522
|
+
}, onClick: this.handleSubmit.bind(this), disabled: !this.hasSelectAllBullet || this.submitLoading }, h("span", { class: "order-summary__button--text" }, translate$2('orderSummarySubmit', this.language)), this.submitLoading && h("span", { class: "loading-icon scale", innerHTML: loadingImagePath })))));
|
|
11484
11523
|
}
|
|
11485
11524
|
render() {
|
|
11486
11525
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
11487
|
-
return (h("div", { key: '
|
|
11526
|
+
return (h("div", { key: '6b7aee4aacf53744bed1b3f3064b3a8357806ce5', class: "lottery-tipping-ticket-controller__container", ref: (el) => (this.stylingContainer = el) }, h("lottery-tipping-ticket-banner", { key: '59907469fbee5440485938631bf311476d2649df', "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, language: this.language, "translation-url": this.translationUrl, "logo-url": this.logoUrl }), this.renderBettingControls(), h("div", { key: '891700a5bb16ce5ddb4be8a0c48c824a97710edd', class: "flex flex-wrap LotteryTippingTicketController__main" }, h("div", { key: 'bdc6509e6a560bfaa01a730c3967d3e26c3e9dc9', class: "LotteryTippingTicketController__main--left" }, h("lottery-tipping-ticket-bet", { key: '8fbfdf48b51ac3aa8faf51da106131d25ed99992', 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: 'a93fcec56f649438c6f0d3668d322885dd4da7dc', 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))));
|
|
11488
11527
|
}
|
|
11489
11528
|
static get assetsDirs() { return ["../static"]; }
|
|
11490
11529
|
static get watchers() { return {
|