@everymatrix/lottery-tipping-ticket-controller 0.1.0

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.
Files changed (74) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/general-tooltip_6.cjs.entry.js +8888 -0
  3. package/dist/cjs/index-db2858c7.js +1376 -0
  4. package/dist/cjs/index.cjs.js +10 -0
  5. package/dist/cjs/loader.cjs.js +15 -0
  6. package/dist/cjs/lottery-tipping-ticket-controller-0f34247f.js +3081 -0
  7. package/dist/cjs/lottery-tipping-ticket-controller.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +28 -0
  9. package/dist/collection/components/lottery-tipping-ticket-banner/index.js +1 -0
  10. package/dist/collection/components/lottery-tipping-ticket-banner/locale.utils.js +35 -0
  11. package/dist/collection/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.css +68 -0
  12. package/dist/collection/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.js +224 -0
  13. package/dist/collection/components/lottery-tipping-ticket-controller/index.js +1 -0
  14. package/dist/collection/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.css +198 -0
  15. package/dist/collection/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.js +570 -0
  16. package/dist/collection/components/static/loading.svg +10 -0
  17. package/dist/collection/components/static/tipping-full-color.svg +15 -0
  18. package/dist/collection/index.js +1 -0
  19. package/dist/collection/models/index.js +11 -0
  20. package/dist/collection/utils/locale.utils.js +105 -0
  21. package/dist/collection/utils/utils.js +130 -0
  22. package/dist/esm/app-globals-0f993ce5.js +3 -0
  23. package/dist/esm/general-tooltip_6.entry.js +8880 -0
  24. package/dist/esm/index-f0e9db16.js +1347 -0
  25. package/dist/esm/index.js +2 -0
  26. package/dist/esm/loader.js +11 -0
  27. package/dist/esm/lottery-tipping-ticket-controller-f0dd1981.js +3070 -0
  28. package/dist/esm/lottery-tipping-ticket-controller.js +20 -0
  29. package/dist/index.cjs.js +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/lottery-tipping-ticket-controller/app-globals-0f993ce5.js +1 -0
  32. package/dist/lottery-tipping-ticket-controller/general-tooltip_6.entry.js +7975 -0
  33. package/dist/lottery-tipping-ticket-controller/index-f0e9db16.js +2 -0
  34. package/dist/lottery-tipping-ticket-controller/index.esm.js +1 -0
  35. package/dist/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller-f0dd1981.js +1 -0
  36. package/dist/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.esm.js +1 -0
  37. package/dist/static/add.svg +8 -0
  38. package/dist/static/delete.svg +37 -0
  39. package/dist/static/info.svg +6 -0
  40. package/dist/static/left-arrow.svg +15 -0
  41. package/dist/static/loading.svg +10 -0
  42. package/dist/static/right-arrow.svg +15 -0
  43. package/dist/static/tipping-full-color.svg +15 -0
  44. package/dist/stencil.config.dev.js +19 -0
  45. package/dist/stencil.config.js +19 -0
  46. package/dist/storybook/main.js +43 -0
  47. package/dist/storybook/preview.js +9 -0
  48. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  49. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/packages/stencil/lottery-tipping-ticket-controller/stencil.config.d.ts +2 -0
  50. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/packages/stencil/lottery-tipping-ticket-controller/stencil.config.dev.d.ts +2 -0
  51. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/packages/stencil/lottery-tipping-ticket-controller/storybook/main.d.ts +3 -0
  52. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/packages/stencil/lottery-tipping-ticket-controller/storybook/preview.d.ts +70 -0
  53. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/tools/plugins/index.d.ts +3 -0
  54. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  55. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  56. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-tipping-ticket-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  57. package/dist/types/components/lottery-tipping-ticket-banner/index.d.ts +1 -0
  58. package/dist/types/components/lottery-tipping-ticket-banner/locale.utils.d.ts +2 -0
  59. package/dist/types/components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.d.ts +22 -0
  60. package/dist/types/components/lottery-tipping-ticket-controller/index.d.ts +1 -0
  61. package/dist/types/components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.d.ts +113 -0
  62. package/dist/types/components.d.ts +180 -0
  63. package/dist/types/index.d.ts +1 -0
  64. package/dist/types/models/index.d.ts +14 -0
  65. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  66. package/dist/types/utils/locale.utils.d.ts +3 -0
  67. package/dist/types/utils/utils.d.ts +50 -0
  68. package/loader/cdn.js +1 -0
  69. package/loader/index.cjs.js +1 -0
  70. package/loader/index.d.ts +24 -0
  71. package/loader/index.es2017.js +1 -0
  72. package/loader/index.js +2 -0
  73. package/loader/package.json +11 -0
  74. package/package.json +27 -0
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-db2858c7.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-tipping-ticket-controller.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["general-tooltip_6.cjs",[[1,"lottery-tipping-ticket-controller",{"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"],"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],"dialogConfig":[32]},[[0,"lotteryTippingBulletBetSelect","lotteryTippingBulletGroupSelectionHandler"]],{"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],"limitStylingAppends":[32],"clientStylingUrlContent":[32],"bulletConfigLineGroup":[32],"currentPage":[32],"isLoading":[32],"hasErrors":[32],"dialogConfig":[32],"ticketDataSource":[32],"resetBulletConfig":[64],"getData":[64]},[[0,"lotteryTippingBulletGroupToggle","lotteryTippingBulletGroupSelectionHandler"]],{"translationUrl":["handleNewTranslations"],"gameId":["fetchMatchData"],"sessionId":["fetchMatchData"],"drawId":["fetchMatchData"],"currentPage":["handleCurrentPageChange"]}],[1,"lottery-tipping-ticket-banner",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"stopTime":[1,"stop-time"],"period":[1]},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);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,28 @@
1
+ {
2
+ "entries": [
3
+ "components/lottery-tipping-ticket-controller/lottery-tipping-ticket-controller.js",
4
+ "components/lottery-tipping-ticket-banner/lottery-tipping-ticket-banner.js"
5
+ ],
6
+ "compiler": {
7
+ "name": "@stencil/core",
8
+ "version": "4.19.2",
9
+ "typescriptVersion": "5.4.5"
10
+ },
11
+ "collections": [
12
+ {
13
+ "name": "@everymatrix/lottery-tipping-bullet-group",
14
+ "tags": [
15
+ "lottery-tipping-bullet",
16
+ "lottery-tipping-bullet-group"
17
+ ]
18
+ },
19
+ {
20
+ "name": "@everymatrix/lottery-tipping-ticket-bet",
21
+ "tags": [
22
+ "general-tooltip",
23
+ "lottery-tipping-ticket-bet"
24
+ ]
25
+ }
26
+ ],
27
+ "bundles": []
28
+ }
@@ -0,0 +1 @@
1
+ export { LotteryTippingTicketBanner } from './lottery-tipping-ticket-banner';
@@ -0,0 +1,35 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'fr', 'ar', 'hr'];
3
+ const TRANSLATIONS = {
4
+ en: {
5
+ stop: 'Stop',
6
+ at: 'at'
7
+ },
8
+ ro: {
9
+ stop: 'Oprește',
10
+ at: 'la'
11
+ },
12
+ fr: {
13
+ stop: 'Arrêtez',
14
+ at: 'à'
15
+ },
16
+ ar: {
17
+ stop: 'توقف',
18
+ at: 'في'
19
+ },
20
+ hr: {
21
+ stop: 'Stop',
22
+ at: 'u'
23
+ }
24
+ };
25
+ export const translate = (key, customLang) => {
26
+ const lang = customLang;
27
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
28
+ };
29
+ export const getTranslations = (data) => {
30
+ Object.keys(data).forEach((item) => {
31
+ for (let key in data[item]) {
32
+ TRANSLATIONS[item][key] = data[item][key];
33
+ }
34
+ });
35
+ };
@@ -0,0 +1,68 @@
1
+ .lottery-tipping-ticket-banner__container {
2
+ font-family: system-ui, sans-serif;
3
+ font-size: 14px;
4
+ container-type: inline-size;
5
+ }
6
+
7
+ .banner {
8
+ display: flex;
9
+ flex-wrap: wrap;
10
+ align-items: center;
11
+ justify-content: space-between;
12
+ padding: 0.5rem 1rem;
13
+ background: var(--emw--color-primary, #fed275);
14
+ border-top: 2px solid var(--emw--color-primary-variant, #ffe66f);
15
+ border-bottom: 2px solid var(--emw--color-primary-variant, #ffe66f);
16
+ gap: 0.5rem;
17
+ white-space: nowrap;
18
+ }
19
+
20
+ .left {
21
+ flex: 1;
22
+ gap: 0.4rem;
23
+ }
24
+
25
+ .brand {
26
+ font-weight: 700;
27
+ color: var(--emw--color-gray-400, #000);
28
+ }
29
+
30
+ .mid {
31
+ flex: 1;
32
+ font-size: 1.5rem;
33
+ font-weight: 800;
34
+ font-style: italic;
35
+ letter-spacing: 0.04em;
36
+ color: var(--emw--color-gray-400, #000);
37
+ text-align: center;
38
+ }
39
+
40
+ .right {
41
+ flex: 1;
42
+ display: flex;
43
+ gap: 0.4rem;
44
+ flex-wrap: wrap;
45
+ justify-content: flex-end;
46
+ }
47
+
48
+ @container (max-width: 420px) {
49
+ .mid {
50
+ text-align: right;
51
+ }
52
+ .right {
53
+ justify-content: center;
54
+ }
55
+ }
56
+ .pill {
57
+ border: 2px solid var(--emw--color-gray-150, #6f6f6f);
58
+ border-radius: 0.4rem;
59
+ padding: 0.25rem 0.7rem;
60
+ font-size: 0.9rem;
61
+ color: var(--emw--color-gray-300, #333);
62
+ display: inline-flex;
63
+ align-items: baseline;
64
+ }
65
+
66
+ .pill > strong {
67
+ font-weight: 700;
68
+ }
@@ -0,0 +1,224 @@
1
+ import { getAssetPath, h } from "@stencil/core";
2
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
+ import { isToday } from "date-fns";
4
+ import { formatDate } from "../../utils/utils";
5
+ import { translate } from "./locale.utils";
6
+ import { resolveTranslationUrl } from "../../utils/locale.utils";
7
+ export class LotteryTippingTicketBanner {
8
+ constructor() {
9
+ this.mbSource = undefined;
10
+ this.clientStyling = undefined;
11
+ this.clientStylingUrl = undefined;
12
+ this.language = 'en';
13
+ this.translationUrl = '';
14
+ this.stopTime = '';
15
+ this.period = undefined;
16
+ }
17
+ get formattedStopTime() {
18
+ let _temp = '';
19
+ if (!this.stopTime) {
20
+ return _temp;
21
+ }
22
+ _temp = formatDate({ date: this.stopTime, format: 'dd/MM/yyyy HH:mm' });
23
+ if (isToday(new Date(this.stopTime))) {
24
+ _temp = formatDate({ date: this.stopTime, format: 'HH:mm' });
25
+ }
26
+ return _temp;
27
+ }
28
+ get formattedPeriod() {
29
+ let _temp = '';
30
+ _temp = formatDate({ date: this.period, format: 'EEEE' });
31
+ if (_temp.toLowerCase() === 'wednesday') {
32
+ _temp = 'MIDWEEK';
33
+ }
34
+ return _temp.toUpperCase();
35
+ }
36
+ handleClientStylingChange(newValue, oldValue) {
37
+ if (newValue != oldValue) {
38
+ setClientStyling(this.stylingContainer, this.clientStyling);
39
+ }
40
+ }
41
+ handleClientStylingUrlChange(newValue, oldValue) {
42
+ if (newValue != oldValue) {
43
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
44
+ }
45
+ }
46
+ handleMbSourceChange(newValue, oldValue) {
47
+ if (newValue != oldValue) {
48
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
49
+ }
50
+ }
51
+ async componentWillLoad() {
52
+ if (this.translationUrl) {
53
+ resolveTranslationUrl(this.translationUrl);
54
+ }
55
+ }
56
+ componentDidLoad() {
57
+ if (this.stylingContainer) {
58
+ if (this.mbSource)
59
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
60
+ if (this.clientStyling)
61
+ setClientStyling(this.stylingContainer, this.clientStyling);
62
+ if (this.clientStylingUrl)
63
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
64
+ }
65
+ }
66
+ disconnectedCallback() {
67
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
68
+ }
69
+ render() {
70
+ const backgroundImagePath = getAssetPath('../static/tipping-full-color.svg');
71
+ return (h("div", { key: 'eb93e7946631d234963d841df9e8b753b651c795', ref: (el) => (this.stylingContainer = el), class: "lottery-tipping-ticket-banner__container" }, h("section", { key: '0133e845df14caa912b18e1734ad16c584b7359f', class: "banner" }, h("div", { key: '23bc3b34011dc5533bf70397f974936e238f04fe', class: "left" }, h("img", { key: '52110de0807e79c02d7934ec8a37c1322b73fe84', alt: "Betting", src: backgroundImagePath, class: "logo" })), h("div", { key: 'b5deae59d09b870777c913c5ebfca43886c3cf95', class: "mid period" }, this.formattedPeriod), h("div", { key: 'b404e474850233e2d5e139077fd774f178bc40fa', class: "right" }, h("span", { key: '3b9072c2165a033d17c9572c7cafe2a2c699447b', class: "pill" }, h("strong", { key: 'c560c2c27dc930a963b992c07e02745b18d0002f' }, translate('stop', this.language)), "\u00A0", translate('at', this.language), "\u00A0", this.formattedStopTime)))));
72
+ }
73
+ static get is() { return "lottery-tipping-ticket-banner"; }
74
+ static get encapsulation() { return "shadow"; }
75
+ static get originalStyleUrls() {
76
+ return {
77
+ "$": ["lottery-tipping-ticket-banner.scss"]
78
+ };
79
+ }
80
+ static get styleUrls() {
81
+ return {
82
+ "$": ["lottery-tipping-ticket-banner.css"]
83
+ };
84
+ }
85
+ static get assetsDirs() { return ["../static"]; }
86
+ static get properties() {
87
+ return {
88
+ "mbSource": {
89
+ "type": "string",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "string",
93
+ "resolved": "string",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": false,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": ""
101
+ },
102
+ "attribute": "mb-source",
103
+ "reflect": true
104
+ },
105
+ "clientStyling": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": ""
118
+ },
119
+ "attribute": "client-styling",
120
+ "reflect": true
121
+ },
122
+ "clientStylingUrl": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "string",
127
+ "resolved": "string",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": ""
135
+ },
136
+ "attribute": "client-styling-url",
137
+ "reflect": true
138
+ },
139
+ "language": {
140
+ "type": "string",
141
+ "mutable": false,
142
+ "complexType": {
143
+ "original": "string",
144
+ "resolved": "string",
145
+ "references": {}
146
+ },
147
+ "required": false,
148
+ "optional": false,
149
+ "docs": {
150
+ "tags": [],
151
+ "text": ""
152
+ },
153
+ "attribute": "language",
154
+ "reflect": true,
155
+ "defaultValue": "'en'"
156
+ },
157
+ "translationUrl": {
158
+ "type": "string",
159
+ "mutable": false,
160
+ "complexType": {
161
+ "original": "string",
162
+ "resolved": "string",
163
+ "references": {}
164
+ },
165
+ "required": false,
166
+ "optional": false,
167
+ "docs": {
168
+ "tags": [],
169
+ "text": ""
170
+ },
171
+ "attribute": "translation-url",
172
+ "reflect": true,
173
+ "defaultValue": "''"
174
+ },
175
+ "stopTime": {
176
+ "type": "string",
177
+ "mutable": false,
178
+ "complexType": {
179
+ "original": "string",
180
+ "resolved": "string",
181
+ "references": {}
182
+ },
183
+ "required": false,
184
+ "optional": false,
185
+ "docs": {
186
+ "tags": [],
187
+ "text": "draw stop time"
188
+ },
189
+ "attribute": "stop-time",
190
+ "reflect": false,
191
+ "defaultValue": "''"
192
+ },
193
+ "period": {
194
+ "type": "string",
195
+ "mutable": false,
196
+ "complexType": {
197
+ "original": "string",
198
+ "resolved": "string",
199
+ "references": {}
200
+ },
201
+ "required": false,
202
+ "optional": false,
203
+ "docs": {
204
+ "tags": [],
205
+ "text": "draw period"
206
+ },
207
+ "attribute": "period",
208
+ "reflect": false
209
+ }
210
+ };
211
+ }
212
+ static get watchers() {
213
+ return [{
214
+ "propName": "clientStyling",
215
+ "methodName": "handleClientStylingChange"
216
+ }, {
217
+ "propName": "clientStylingUrl",
218
+ "methodName": "handleClientStylingUrlChange"
219
+ }, {
220
+ "propName": "mbSource",
221
+ "methodName": "handleMbSourceChange"
222
+ }];
223
+ }
224
+ }
@@ -0,0 +1 @@
1
+ export { LotteryTippingTicketController } from './lottery-tipping-ticket-controller';
@@ -0,0 +1,198 @@
1
+ .lottery-tipping-ticket-controller__container {
2
+ display: block;
3
+ box-sizing: border-box;
4
+ font-size: 14px;
5
+ container-type: inline-size;
6
+ }
7
+ @container (max-width: 375px) {
8
+ .lottery-tipping-ticket-controller__container {
9
+ font-size: 12px;
10
+ }
11
+ }
12
+
13
+ .LotteryTippingTicketController__top {
14
+ padding: 1.8rem;
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: 2rem;
18
+ margin: 0 auto;
19
+ max-width: 800px;
20
+ }
21
+ .LotteryTippingTicketController__row {
22
+ display: flex;
23
+ align-items: center;
24
+ gap: 1rem;
25
+ justify-content: space-between;
26
+ flex-wrap: wrap;
27
+ }
28
+ .LotteryTippingTicketController__section {
29
+ display: flex;
30
+ align-items: center;
31
+ gap: 12px;
32
+ }
33
+ .LotteryTippingTicketController__label {
34
+ font-weight: 500;
35
+ white-space: nowrap;
36
+ width: 6rem;
37
+ }
38
+ .LotteryTippingTicketController__segmented-control {
39
+ height: 2.2rem;
40
+ display: inline-flex;
41
+ background-color: var(--emw--color-gray-100, #e6e6e6);
42
+ border-radius: 2rem;
43
+ padding: 0.2rem;
44
+ }
45
+ .LotteryTippingTicketController__segment {
46
+ background-color: transparent;
47
+ border: none;
48
+ padding: 0.3rem 0.8rem;
49
+ cursor: pointer;
50
+ font-weight: 500;
51
+ border-radius: 2rem;
52
+ outline: none;
53
+ transition: background-color 0.25s ease, color 0.25s ease;
54
+ white-space: nowrap;
55
+ }
56
+ .LotteryTippingTicketController__segment--active {
57
+ background-color: var(--emw--color-background, #ffffff);
58
+ color: var(--emw--color-gray-400, #000);
59
+ font-weight: 600;
60
+ }
61
+ .LotteryTippingTicketController__segment--disabled:hover {
62
+ cursor: not-allowed !important;
63
+ }
64
+ .LotteryTippingTicketController__segment:not(.LotteryTippingTicketController__segment--active):hover {
65
+ background-color: var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
66
+ }
67
+
68
+ .flex {
69
+ display: flex;
70
+ }
71
+
72
+ .flex-wrap {
73
+ flex-wrap: wrap;
74
+ }
75
+
76
+ .align-center {
77
+ align-items: center;
78
+ }
79
+
80
+ .gap-1 {
81
+ gap: 4px;
82
+ }
83
+
84
+ .LotteryTippingTicketController__main {
85
+ align-items: flex-start;
86
+ justify-content: center;
87
+ gap: 2rem;
88
+ max-width: 1200px;
89
+ margin: 0 auto;
90
+ padding: 0 20px;
91
+ flex-wrap: wrap;
92
+ }
93
+ .LotteryTippingTicketController__main--left {
94
+ border: 1px solid var(--emw--color-gray-50, #f5f5f5);
95
+ padding: 1rem;
96
+ border-radius: 1rem;
97
+ flex: 1.5;
98
+ }
99
+ .LotteryTippingTicketController__main--right {
100
+ padding: 1rem;
101
+ border-radius: 1rem;
102
+ flex: 1;
103
+ }
104
+
105
+ .order-summary {
106
+ max-width: 360px;
107
+ width: 100%;
108
+ background: var(--emw--color-background, #fff);
109
+ }
110
+
111
+ .order-summary__title {
112
+ margin-bottom: 16px;
113
+ text-align: center;
114
+ color: var(--emw--color-gray-400, #000);
115
+ text-transform: uppercase;
116
+ }
117
+
118
+ .order-summary__ticket-info {
119
+ display: flex;
120
+ align-items: center;
121
+ margin-bottom: 16px;
122
+ gap: 10px;
123
+ }
124
+
125
+ .order-summary__ticket {
126
+ font-weight: 500;
127
+ width: 50px;
128
+ text-align: right;
129
+ }
130
+
131
+ .order-summary__details {
132
+ display: flex;
133
+ align-items: center;
134
+ }
135
+
136
+ .order-summary__multiplier {
137
+ color: var(--emw--color-gray-150, #6f6f6f);
138
+ margin: 0 8px;
139
+ }
140
+
141
+ .order-summary__divider {
142
+ border: none;
143
+ border-top: 1px solid var(--emw--color-gray-100, #e6e6e6);
144
+ margin: 20px 0;
145
+ }
146
+
147
+ .order-summary__button-wrapper {
148
+ display: flex;
149
+ justify-content: center;
150
+ }
151
+
152
+ .order-summary__button {
153
+ cursor: pointer;
154
+ padding: 0.5rem 4rem;
155
+ background: var(--emw--color-primary, #fed275);
156
+ color: var(--emw--color-gray-400, #000);
157
+ border-radius: var(--emw--button-border-radius, 4px);
158
+ border: 1px solid var(--emw--color-primary, #fed275);
159
+ }
160
+
161
+ .order-summary__button:not(.order-summary__button--disabled):not(.order-summary__button--loading):hover {
162
+ transform: translateY(-1px);
163
+ box-shadow: 0 4px 8px var(--emw--button-box-shadow-color-secondary, rgba(0, 0, 0, 0.15));
164
+ background: var(--emw--color-primary-variant, #ffe66f);
165
+ }
166
+
167
+ .order-summary__button--disabled {
168
+ background: var(--emw--color-gray-100, #e6e6e6);
169
+ color: var(--emw--color-typography, #555);
170
+ cursor: not-allowed;
171
+ border: 1px solid var(--emw--color-gray-100, #e6e6e6);
172
+ }
173
+
174
+ .skeleton-content {
175
+ display: flex;
176
+ flex-direction: column;
177
+ gap: 29px;
178
+ align-items: center;
179
+ }
180
+
181
+ .skeleton-item {
182
+ background: var(--emw--color-gray-50, #f5f5f5);
183
+ border-radius: 4px;
184
+ height: 40px;
185
+ width: 200px;
186
+ }
187
+
188
+ .skeleton-animated {
189
+ animation: skeleton-shimmer 1.5s infinite linear;
190
+ background: linear-gradient(90deg, var(--emw--color-gray-100, #e6e6e6) 25%, var(--emw--color-gray-50, #f5f5f5) 37%, var(--emw--color-gray-100, #e6e6e6) 63%);
191
+ background-size: 200% 100%;
192
+ }
193
+
194
+ @keyframes skeleton-shimmer {
195
+ to {
196
+ background-position: 100% 0;
197
+ }
198
+ }