@everymatrix/lottery-hakuna-ticket-history 0.0.13 → 0.0.14
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/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/lottery-button_8.cjs.entry.js +108 -27
- package/dist/cjs/{lottery-hakuna-ticket-history-155db5ed.js → lottery-hakuna-ticket-history-ec8bf5d5.js} +1 -1
- package/dist/cjs/lottery-hakuna-ticket-history.cjs.js +1 -1
- package/dist/collection/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.js +1 -1
- package/dist/collection/components/lottery-infinite-scroll/locale.utils.js +43 -0
- package/dist/collection/components/lottery-infinite-scroll/lottery-infinite-scroll.js +136 -4
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/lottery-button_8.entry.js +109 -28
- package/dist/esm/{lottery-hakuna-ticket-history-4cb107bf.js → lottery-hakuna-ticket-history-35d86d50.js} +1 -1
- package/dist/esm/lottery-hakuna-ticket-history.js +1 -1
- package/dist/lottery-hakuna-ticket-history/index.esm.js +1 -1
- package/dist/lottery-hakuna-ticket-history/lottery-button_8.entry.js +1 -1
- package/dist/lottery-hakuna-ticket-history/{lottery-hakuna-ticket-history-4cb107bf.js → lottery-hakuna-ticket-history-35d86d50.js} +1 -1
- package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.esm.js +1 -1
- package/dist/types/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.d.ts +2 -2
- package/dist/types/components/lottery-infinite-scroll/locale.utils.d.ts +3 -0
- package/dist/types/components/lottery-infinite-scroll/lottery-infinite-scroll.d.ts +25 -0
- package/dist/types/components.d.ts +40 -0
- package/package.json +1 -1
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
|
|
3
|
+
import { resolveTranslationUrl, translate } from "./locale.utils";
|
|
2
4
|
export class LotteryInfiniteScroll {
|
|
3
5
|
constructor() {
|
|
4
6
|
// Touch event vars
|
|
@@ -43,6 +45,11 @@ export class LotteryInfiniteScroll {
|
|
|
43
45
|
this.pullDistance = 0;
|
|
44
46
|
}
|
|
45
47
|
};
|
|
48
|
+
this.mbSource = undefined;
|
|
49
|
+
this.clientStyling = undefined;
|
|
50
|
+
this.clientStylingUrl = undefined;
|
|
51
|
+
this.language = 'en';
|
|
52
|
+
this.translationUrl = '';
|
|
46
53
|
this.items = [];
|
|
47
54
|
this.hasMore = false;
|
|
48
55
|
this.isLoading = false;
|
|
@@ -59,6 +66,32 @@ export class LotteryInfiniteScroll {
|
|
|
59
66
|
}
|
|
60
67
|
componentDidLoad() {
|
|
61
68
|
this.initObserver();
|
|
69
|
+
if (this.scrollContainer) {
|
|
70
|
+
if (this.mbSource)
|
|
71
|
+
setStreamStyling(this.scrollContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
72
|
+
if (this.clientStyling)
|
|
73
|
+
setClientStyling(this.scrollContainer, this.clientStyling);
|
|
74
|
+
if (this.clientStylingUrl)
|
|
75
|
+
setClientStylingURL(this.scrollContainer, this.clientStylingUrl);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
79
|
+
if (newValue != oldValue) {
|
|
80
|
+
setClientStyling(this.scrollContainer, this.clientStyling);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
84
|
+
if (newValue != oldValue) {
|
|
85
|
+
setClientStylingURL(this.scrollContainer, this.clientStylingUrl);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
89
|
+
if (newValue != oldValue) {
|
|
90
|
+
setStreamStyling(this.scrollContainer, `${this.mbSource}.Style`, this.stylingSubscription);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
componentWillLoad() {
|
|
94
|
+
resolveTranslationUrl(this.translationUrl);
|
|
62
95
|
}
|
|
63
96
|
componentDidUpdate() {
|
|
64
97
|
if (this.hasMore && !this.isLoading) {
|
|
@@ -67,6 +100,7 @@ export class LotteryInfiniteScroll {
|
|
|
67
100
|
}
|
|
68
101
|
disconnectedCallback() {
|
|
69
102
|
this.disconnectObserver();
|
|
103
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
70
104
|
}
|
|
71
105
|
handleRefreshingChange(newValue) {
|
|
72
106
|
if (!newValue) {
|
|
@@ -109,16 +143,18 @@ export class LotteryInfiniteScroll {
|
|
|
109
143
|
gap: `${gridGap}px`,
|
|
110
144
|
boxSizing: 'border-box'
|
|
111
145
|
};
|
|
112
|
-
return (h("div", { key: '
|
|
146
|
+
return (h("div", { key: '5f9372a0c2d0cdf00685cbedf062fb333d1e5348', class: "lottery-infinite-scroll__container", style: {
|
|
113
147
|
height: this.containerHeight,
|
|
114
148
|
overflowY: 'auto',
|
|
115
149
|
position: 'relative'
|
|
116
|
-
}, ref: (el) => (this.scrollContainer = el), onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd }, h("div", { key: '
|
|
150
|
+
}, ref: (el) => (this.scrollContainer = el), onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd }, h("div", { key: 'c43a2673188fbb50c93637f766f1926301ba08e9', class: "ptr-indicator", style: Object.assign(Object.assign({}, contentTransform), { position: 'absolute', top: '0', left: '0', width: '100%', height: `${this.pullTriggerDistance}px`, display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: `-${this.pullTriggerDistance}px`, pointerEvents: 'none' }) }, this.isRefreshing ? (h("slot", { name: "refresh-loading" }, translate('refreshing', this.language))) : (h("slot", { name: "pull-hint" }, this.pullDistance > this.pullTriggerDistance
|
|
151
|
+
? translate('release', this.language)
|
|
152
|
+
: translate('pull', this.language)))), h("div", { key: 'b6a6334401bb3c0ea8d776e028f57836ee0d36ac', class: "scroll-content-wrapper", style: contentTransform }, h("div", { key: '16f58f44ce104fbdc4eacb2c3dfa9d3c7c7e6bdb', class: "list-content", style: listStyle }, listToRender.map((item, index) => (h("div", { key: index, class: "list-item-wrapper" }, showSkeleton ? this.renderSkeleton(index) : this.renderItem(item, index))))), h("div", { key: '1ed8b2ce72d85a68a48e9330ad2b9b9194346dfb', class: "lottery-infinite-scroll__sentinel", ref: (el) => (this.sentinel = el), style: {
|
|
117
153
|
height: '20px',
|
|
118
154
|
display: 'flex',
|
|
119
155
|
justifyContent: 'center',
|
|
120
|
-
visibility:
|
|
121
|
-
} }, this.isLoading ? h("slot", { name: "loading-more" },
|
|
156
|
+
visibility: this.hasMore || (this.isLoading && !showSkeleton) ? 'visible' : 'hidden'
|
|
157
|
+
} }, this.isLoading ? h("slot", { name: "loading-more" }, translate('loading', this.language)) : null), !this.hasMore && !this.isLoading && items.length > 0 && (h("div", { key: '3b8207a9dc1451c683eb1920b798574be4fbd975', class: "end-message", style: { textAlign: 'center', padding: '10px' } }, h("slot", { key: '157e109d933e5613cf882c5dd01212647bfeba79', name: "end-message" }, translate('noMoreData', this.language)))))));
|
|
122
158
|
}
|
|
123
159
|
static get is() { return "lottery-infinite-scroll"; }
|
|
124
160
|
static get encapsulation() { return "shadow"; }
|
|
@@ -134,6 +170,93 @@ export class LotteryInfiniteScroll {
|
|
|
134
170
|
}
|
|
135
171
|
static get properties() {
|
|
136
172
|
return {
|
|
173
|
+
"mbSource": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "string",
|
|
178
|
+
"resolved": "string",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "The source for stream styling via a service."
|
|
186
|
+
},
|
|
187
|
+
"attribute": "mb-source",
|
|
188
|
+
"reflect": true
|
|
189
|
+
},
|
|
190
|
+
"clientStyling": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "string",
|
|
195
|
+
"resolved": "string",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": "Custom CSS styles to apply to the component."
|
|
203
|
+
},
|
|
204
|
+
"attribute": "client-styling",
|
|
205
|
+
"reflect": true
|
|
206
|
+
},
|
|
207
|
+
"clientStylingUrl": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"mutable": false,
|
|
210
|
+
"complexType": {
|
|
211
|
+
"original": "string",
|
|
212
|
+
"resolved": "string",
|
|
213
|
+
"references": {}
|
|
214
|
+
},
|
|
215
|
+
"required": false,
|
|
216
|
+
"optional": false,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": "URL to a custom CSS file for additional styling."
|
|
220
|
+
},
|
|
221
|
+
"attribute": "client-styling-url",
|
|
222
|
+
"reflect": true
|
|
223
|
+
},
|
|
224
|
+
"language": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"mutable": false,
|
|
227
|
+
"complexType": {
|
|
228
|
+
"original": "string",
|
|
229
|
+
"resolved": "string",
|
|
230
|
+
"references": {}
|
|
231
|
+
},
|
|
232
|
+
"required": false,
|
|
233
|
+
"optional": false,
|
|
234
|
+
"docs": {
|
|
235
|
+
"tags": [],
|
|
236
|
+
"text": "The language code to use for translations. Defaults to 'en'."
|
|
237
|
+
},
|
|
238
|
+
"attribute": "language",
|
|
239
|
+
"reflect": true,
|
|
240
|
+
"defaultValue": "'en'"
|
|
241
|
+
},
|
|
242
|
+
"translationUrl": {
|
|
243
|
+
"type": "string",
|
|
244
|
+
"mutable": false,
|
|
245
|
+
"complexType": {
|
|
246
|
+
"original": "string",
|
|
247
|
+
"resolved": "string",
|
|
248
|
+
"references": {}
|
|
249
|
+
},
|
|
250
|
+
"required": false,
|
|
251
|
+
"optional": false,
|
|
252
|
+
"docs": {
|
|
253
|
+
"tags": [],
|
|
254
|
+
"text": "URL to fetch custom translation data from."
|
|
255
|
+
},
|
|
256
|
+
"attribute": "translation-url",
|
|
257
|
+
"reflect": true,
|
|
258
|
+
"defaultValue": "''"
|
|
259
|
+
},
|
|
137
260
|
"items": {
|
|
138
261
|
"type": "unknown",
|
|
139
262
|
"mutable": false,
|
|
@@ -412,6 +535,15 @@ export class LotteryInfiniteScroll {
|
|
|
412
535
|
static get elementRef() { return "el"; }
|
|
413
536
|
static get watchers() {
|
|
414
537
|
return [{
|
|
538
|
+
"propName": "clientStyling",
|
|
539
|
+
"methodName": "handleClientStylingChange"
|
|
540
|
+
}, {
|
|
541
|
+
"propName": "clientStylingUrl",
|
|
542
|
+
"methodName": "handleClientStylingUrlChange"
|
|
543
|
+
}, {
|
|
544
|
+
"propName": "mbSource",
|
|
545
|
+
"methodName": "handleMbSourceChange"
|
|
546
|
+
}, {
|
|
415
547
|
"propName": "isRefreshing",
|
|
416
548
|
"methodName": "handleRefreshingChange"
|
|
417
549
|
}];
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { L as LotteryHakunaTicketHistory } from './lottery-hakuna-ticket-history-
|
|
1
|
+
export { L as LotteryHakunaTicketHistory } from './lottery-hakuna-ticket-history-35d86d50.js';
|
|
2
2
|
import './index-50addd47.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["lottery-button_8",[[1,"lottery-hakuna-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"scrollThreshold":[1,"scroll-threshold"],"scrollContainerHeight":[2,"scroll-container-height"],"ticketHistoryTitle":[1,"ticket-history-title"],"ticketHistoryItemImageSrc":[1,"ticket-history-item-image-src"],"ticketHistoryItemName":[1,"ticket-history-item-name"],"ticketHistoryItemCurrency":[1,"ticket-history-item-currency"],"listLoadingText":[1,"list-loading-text"],"listRefreshingText":[1,"list-refreshing-text"],"listEndText":[1,"list-end-text"],"limit":[2],"minItemWidth":[2,"min-item-width"],"showSkeleton":[4,"show-skeleton"],"visibleTickets":[32],"hasMore":[32],"isLoading":[32],"isRefreshing":[32],"errorMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-hakuna-ticket-history-item",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"historyItemName":[1,"history-item-name"],"historyItemImageSrc":[1,"history-item-image-src"],"ticketId":[8,"ticket-id"],"totalAmount":[1,"total-amount"],"date":[1],"time":[1],"selectedNumbers":[1,"selected-numbers"],"showSkeleton":[4,"show-skeleton"],"selectedNumbersCount":[2,"selected-numbers-count"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-infinite-scroll",{"items":[16],"hasMore":[4,"has-more"],"isLoading":[4,"is-loading"],"isRefreshing":[4,"is-refreshing"],"threshold":[1],"containerHeight":[1,"container-height"],"renderItem":[16],"renderSkeleton":[16],"skeletonCount":[2,"skeleton-count"],"pullTriggerDistance":[2,"pull-trigger-distance"],"minItemWidth":[2,"min-item-width"],"gridGap":[2,"grid-gap"],"pullDistance":[32]},null,{"isRefreshing":["handleRefreshingChange"]}],[1,"lottery-selection-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"splitToken":[513,"split-token"],"selectionGroupId":[513,"selection-group-id"],"selectionGroupLabel":[513,"selection-group-label"],"type":[513],"selectedBulletTexts":[513,"selected-bullet-texts"],"maxSelectedCount":[514,"max-selected-count"],"maxDisplayBulletsCount":[514,"max-display-bullets-count"],"bulletTexts":[513,"bullet-texts"],"maxIntegerBulletText":[514,"max-integer-bullet-text"],"minIntegerBulletText":[514,"min-integer-bullet-text"],"bulletTextType":[513,"bullet-text-type"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"dialogTitle":[513,"dialog-title"],"dialogInputPlaceholder":[513,"dialog-input-placeholder"],"dialogConfig":[32],"inputInfo":[32]},[[0,"lotteryBulletClick","lotteryBulletClickHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-selection",{"value":[520],"text":[513],"idx":[514],"type":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"deleteIconSvg":[513,"delete-icon-svg"],"deleteIconWidth":[513,"delete-icon-width"],"deleteIconHeight":[513,"delete-icon-height"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["lottery-button_8",[[1,"lottery-hakuna-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"scrollThreshold":[1,"scroll-threshold"],"scrollContainerHeight":[2,"scroll-container-height"],"ticketHistoryTitle":[1,"ticket-history-title"],"ticketHistoryItemImageSrc":[1,"ticket-history-item-image-src"],"ticketHistoryItemName":[1,"ticket-history-item-name"],"ticketHistoryItemCurrency":[1,"ticket-history-item-currency"],"listLoadingText":[1,"list-loading-text"],"listRefreshingText":[1,"list-refreshing-text"],"listEndText":[1,"list-end-text"],"limit":[2],"minItemWidth":[2,"min-item-width"],"showSkeleton":[4,"show-skeleton"],"visibleTickets":[32],"hasMore":[32],"isLoading":[32],"isRefreshing":[32],"errorMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-hakuna-ticket-history-item",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"historyItemName":[1,"history-item-name"],"historyItemImageSrc":[1,"history-item-image-src"],"ticketId":[8,"ticket-id"],"totalAmount":[1,"total-amount"],"date":[1],"time":[1],"selectedNumbers":[1,"selected-numbers"],"showSkeleton":[4,"show-skeleton"],"selectedNumbersCount":[2,"selected-numbers-count"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-infinite-scroll",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"items":[16],"hasMore":[4,"has-more"],"isLoading":[4,"is-loading"],"isRefreshing":[4,"is-refreshing"],"threshold":[1],"containerHeight":[1,"container-height"],"renderItem":[16],"renderSkeleton":[16],"skeletonCount":[2,"skeleton-count"],"pullTriggerDistance":[2,"pull-trigger-distance"],"minItemWidth":[2,"min-item-width"],"gridGap":[2,"grid-gap"],"pullDistance":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isRefreshing":["handleRefreshingChange"]}],[1,"lottery-selection-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"splitToken":[513,"split-token"],"selectionGroupId":[513,"selection-group-id"],"selectionGroupLabel":[513,"selection-group-label"],"type":[513],"selectedBulletTexts":[513,"selected-bullet-texts"],"maxSelectedCount":[514,"max-selected-count"],"maxDisplayBulletsCount":[514,"max-display-bullets-count"],"bulletTexts":[513,"bullet-texts"],"maxIntegerBulletText":[514,"max-integer-bullet-text"],"minIntegerBulletText":[514,"min-integer-bullet-text"],"bulletTextType":[513,"bullet-text-type"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"dialogTitle":[513,"dialog-title"],"dialogInputPlaceholder":[513,"dialog-input-placeholder"],"dialogConfig":[32],"inputInfo":[32]},[[0,"lotteryBulletClick","lotteryBulletClickHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-selection",{"value":[520],"text":[513],"idx":[514],"type":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"deleteIconSvg":[513,"delete-icon-svg"],"deleteIconWidth":[513,"delete-icon-width"],"deleteIconHeight":[513,"delete-icon-height"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement, c as createEvent, H as Host } from './index-50addd47.js';
|
|
2
|
-
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, r as renderIconDefinitionToSVGElement } from './lottery-hakuna-ticket-history-
|
|
3
|
-
export { L as lottery_hakuna_ticket_history } from './lottery-hakuna-ticket-history-
|
|
2
|
+
import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling, r as renderIconDefinitionToSVGElement } from './lottery-hakuna-ticket-history-35d86d50.js';
|
|
3
|
+
export { L as lottery_hakuna_ticket_history } from './lottery-hakuna-ticket-history-35d86d50.js';
|
|
4
4
|
|
|
5
5
|
// This icon file is generated automatically.
|
|
6
6
|
var DeleteFilled = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-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-32zm-200 0H360v-72h304v72z" } }] }, "name": "delete", "theme": "filled" };
|
|
7
7
|
const DeleteFilled$1 = DeleteFilled;
|
|
8
8
|
|
|
9
|
-
const DEFAULT_LANGUAGE$
|
|
10
|
-
const SUPPORTED_LANGUAGES$
|
|
11
|
-
const TRANSLATIONS$
|
|
9
|
+
const DEFAULT_LANGUAGE$4 = 'en';
|
|
10
|
+
const SUPPORTED_LANGUAGES$4 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
|
|
11
|
+
const TRANSLATIONS$4 = {
|
|
12
12
|
en: {
|
|
13
13
|
loading: 'Loading'
|
|
14
14
|
},
|
|
@@ -17,9 +17,9 @@ const TRANSLATIONS$3 = {
|
|
|
17
17
|
ar: {},
|
|
18
18
|
hr: {}
|
|
19
19
|
};
|
|
20
|
-
const translate$
|
|
20
|
+
const translate$4 = (key, customLang, replacements) => {
|
|
21
21
|
const lang = customLang;
|
|
22
|
-
let translation = TRANSLATIONS$
|
|
22
|
+
let translation = TRANSLATIONS$4[lang !== undefined && SUPPORTED_LANGUAGES$4.includes(lang) ? lang : DEFAULT_LANGUAGE$4][key];
|
|
23
23
|
if (replacements) {
|
|
24
24
|
Object.keys(replacements).forEach((placeholder) => {
|
|
25
25
|
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
@@ -27,14 +27,14 @@ const translate$3 = (key, customLang, replacements) => {
|
|
|
27
27
|
}
|
|
28
28
|
return translation;
|
|
29
29
|
};
|
|
30
|
-
const getTranslations$
|
|
30
|
+
const getTranslations$4 = (data) => {
|
|
31
31
|
Object.keys(data).forEach((item) => {
|
|
32
32
|
for (let key in data[item]) {
|
|
33
|
-
TRANSLATIONS$
|
|
33
|
+
TRANSLATIONS$4[item][key] = data[item][key];
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
const resolveTranslationUrl$
|
|
37
|
+
const resolveTranslationUrl$3 = async (translationUrl) => {
|
|
38
38
|
if (translationUrl) {
|
|
39
39
|
try {
|
|
40
40
|
const response = await fetch(translationUrl);
|
|
@@ -42,7 +42,7 @@ const resolveTranslationUrl$2 = async (translationUrl) => {
|
|
|
42
42
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
43
43
|
}
|
|
44
44
|
const translations = await response.json();
|
|
45
|
-
getTranslations$
|
|
45
|
+
getTranslations$4(translations);
|
|
46
46
|
}
|
|
47
47
|
catch (error) {
|
|
48
48
|
console.error('Failed to fetch or parse translations from URL:', error);
|
|
@@ -120,7 +120,7 @@ const LotteryButton = class {
|
|
|
120
120
|
}
|
|
121
121
|
componentWillLoad() {
|
|
122
122
|
if (this.translationUrl) {
|
|
123
|
-
resolveTranslationUrl$
|
|
123
|
+
resolveTranslationUrl$3(this.translationUrl);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
@@ -160,7 +160,7 @@ const LotteryButton = class {
|
|
|
160
160
|
[`btn--${variant}`]: true,
|
|
161
161
|
[`btn--${size}`]: true,
|
|
162
162
|
'btn--loading': this.loading
|
|
163
|
-
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (h("div", { class: "loading-container" }, h("span", { class: "content" }, this.text || translate$
|
|
163
|
+
}, style: color ? buttonStyles : undefined, disabled: isDisabled, onClick: this.handleClick, ref: (el) => (this.stylingContainer = el) }, this.loading ? (h("div", { class: "loading-container" }, h("span", { class: "content" }, this.text || translate$4('loading', this.language)), h("span", { class: "spinner" }))) : (h("span", { class: "content" }, h("slot", { name: "icon-left" }), this.text || h("slot", null), h("slot", { name: "icon-right" }))), h("div", { key: '302ea02be395bb24989d4abc040a513e23fa029a', class: "ripple-container" }, this.ripples.map((ripple, index) => (h("span", { key: index, class: "ripple", style: {
|
|
164
164
|
top: `${ripple.top}px`,
|
|
165
165
|
left: `${ripple.left}px`,
|
|
166
166
|
width: `${ripple.size}px`,
|
|
@@ -176,16 +176,16 @@ const LotteryButton = class {
|
|
|
176
176
|
};
|
|
177
177
|
LotteryButton.style = LotteryButtonStyle0;
|
|
178
178
|
|
|
179
|
-
const DEFAULT_LANGUAGE$
|
|
180
|
-
const SUPPORTED_LANGUAGES$
|
|
181
|
-
const TRANSLATIONS$
|
|
179
|
+
const DEFAULT_LANGUAGE$3 = 'en';
|
|
180
|
+
const SUPPORTED_LANGUAGES$3 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
181
|
+
const TRANSLATIONS$3 = {
|
|
182
182
|
en: {
|
|
183
183
|
total: 'Total:',
|
|
184
184
|
},
|
|
185
185
|
};
|
|
186
|
-
const translate$
|
|
186
|
+
const translate$3 = (key, customLang, replacements) => {
|
|
187
187
|
const lang = customLang;
|
|
188
|
-
let translation = TRANSLATIONS$
|
|
188
|
+
let translation = TRANSLATIONS$3[lang !== undefined && SUPPORTED_LANGUAGES$3.includes(lang) ? lang : DEFAULT_LANGUAGE$3][key];
|
|
189
189
|
if (replacements) {
|
|
190
190
|
Object.keys(replacements).forEach((placeholder) => {
|
|
191
191
|
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
@@ -193,14 +193,14 @@ const translate$2 = (key, customLang, replacements) => {
|
|
|
193
193
|
}
|
|
194
194
|
return translation;
|
|
195
195
|
};
|
|
196
|
-
const getTranslations$
|
|
196
|
+
const getTranslations$3 = (data) => {
|
|
197
197
|
Object.keys(data).forEach((item) => {
|
|
198
198
|
for (let key in data[item]) {
|
|
199
|
-
TRANSLATIONS$
|
|
199
|
+
TRANSLATIONS$3[item][key] = data[item][key];
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
|
-
const resolveTranslationUrl$
|
|
203
|
+
const resolveTranslationUrl$2 = async (translationUrl) => {
|
|
204
204
|
if (translationUrl) {
|
|
205
205
|
try {
|
|
206
206
|
const response = await fetch(translationUrl);
|
|
@@ -208,7 +208,7 @@ const resolveTranslationUrl$1 = async (translationUrl) => {
|
|
|
208
208
|
throw new Error(`HTTP error! status: ${response.status}`);
|
|
209
209
|
}
|
|
210
210
|
const translations = await response.json();
|
|
211
|
-
getTranslations$
|
|
211
|
+
getTranslations$3(translations);
|
|
212
212
|
}
|
|
213
213
|
catch (error) {
|
|
214
214
|
console.error('Failed to fetch or parse translations from URL:', error);
|
|
@@ -253,7 +253,7 @@ const LotteryHakunaTicketHistoryItem = class {
|
|
|
253
253
|
return (h("div", { class: "lottery-hakuna-ticket-history-item__container" }, h("div", { class: "lottery-hakuna-ticket-history-item__top" }, h("div", { class: "lottery-hakuna-ticket-history-item__country-wrapper" }, h("ui-skeleton", { structure: "image", width: "30px", height: "20px" }), h("ui-skeleton", { structure: "title", width: "86px", height: "17px", marginBottom: 0 })), h("div", { class: "lottery-hakuna-ticket-history-item__details" }, h("ui-skeleton", { structure: "text", width: "60%", height: "20px" }))), h("div", { class: "lottery-hakuna-ticket-history-item__bottom" }, h("div", { class: "lottery-hakuna-ticket-history-item__numbers-wrapper" }, new Array(this.selectedNumbersCount).fill(h("ui-skeleton", { borderRadius: "8px", structure: "rectangle", width: "24px", height: "24px" }))), h("div", { class: "lottery-hakuna-ticket-history-item__date-wrapper" }, h("ui-skeleton", { structure: "text", width: "180px", height: "14px" })))));
|
|
254
254
|
};
|
|
255
255
|
this.renderMain = () => {
|
|
256
|
-
return (h("div", { class: "lottery-hakuna-ticket-history-item__container" }, h("div", { class: "lottery-hakuna-ticket-history-item__top" }, h("div", { class: "lottery-hakuna-ticket-history-item__country-wrapper" }, this.historyItemImageSrc && (h("img", { src: this.historyItemImageSrc, alt: this.historyItemName, class: "lottery-hakuna-ticket-history-item__country-flag" })), h("span", { class: "lottery-hakuna-ticket-history-item__country-name" }, this.historyItemName)), h("div", { class: "lottery-hakuna-ticket-history-item__details" }, h("span", { class: "lottery-hakuna-ticket-history-item__meta" }, translate$
|
|
256
|
+
return (h("div", { class: "lottery-hakuna-ticket-history-item__container" }, h("div", { class: "lottery-hakuna-ticket-history-item__top" }, h("div", { class: "lottery-hakuna-ticket-history-item__country-wrapper" }, this.historyItemImageSrc && (h("img", { src: this.historyItemImageSrc, alt: this.historyItemName, class: "lottery-hakuna-ticket-history-item__country-flag" })), h("span", { class: "lottery-hakuna-ticket-history-item__country-name" }, this.historyItemName)), h("div", { class: "lottery-hakuna-ticket-history-item__details" }, h("span", { class: "lottery-hakuna-ticket-history-item__meta" }, translate$3('total', this.language), h("span", { class: "lottery-hakuna-ticket-history-item__meta-value" }, this.totalAmount)))), h("div", { class: "lottery-hakuna-ticket-history-item__bottom" }, h("div", { class: "lottery-hakuna-ticket-history-item__numbers-wrapper" }, this.selectedNumbers && (h("lottery-selection-group", { type: "preview", bulletTexts: this.selectedNumbers, clientStyling: this.selectionGroupStyle + (this.clientStyling || ''), clientStylingUrl: this.clientStylingUrl, mbSource: this.mbSource, hasBorder: true, hasBackground: false, selectionGroupId: this.ticketId ? this.ticketId.toString() : undefined }))), h("div", { class: "lottery-hakuna-ticket-history-item__date-wrapper" }, this.date && h("div", null, this.date), this.time && h("div", null, this.time)))));
|
|
257
257
|
};
|
|
258
258
|
this.mbSource = undefined;
|
|
259
259
|
this.clientStyling = undefined;
|
|
@@ -286,7 +286,7 @@ const LotteryHakunaTicketHistoryItem = class {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
async componentWillLoad() {
|
|
289
|
-
resolveTranslationUrl$
|
|
289
|
+
resolveTranslationUrl$2(this.translationUrl);
|
|
290
290
|
}
|
|
291
291
|
componentDidLoad() {
|
|
292
292
|
if (this.stylingContainer) {
|
|
@@ -312,6 +312,50 @@ const LotteryHakunaTicketHistoryItem = class {
|
|
|
312
312
|
};
|
|
313
313
|
LotteryHakunaTicketHistoryItem.style = LotteryHakunaTicketHistoryItemStyle0;
|
|
314
314
|
|
|
315
|
+
const DEFAULT_LANGUAGE$2 = 'en';
|
|
316
|
+
const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
|
|
317
|
+
const TRANSLATIONS$2 = {
|
|
318
|
+
en: {
|
|
319
|
+
noMoreData: 'No more data',
|
|
320
|
+
loading: 'Loading...',
|
|
321
|
+
release: 'Release',
|
|
322
|
+
refreshing: 'Refreshing...',
|
|
323
|
+
pull: 'Pull'
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
const translate$2 = (key, customLang, replacements) => {
|
|
327
|
+
const lang = customLang;
|
|
328
|
+
let translation = TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
|
|
329
|
+
if (replacements) {
|
|
330
|
+
Object.keys(replacements).forEach((placeholder) => {
|
|
331
|
+
translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
return translation;
|
|
335
|
+
};
|
|
336
|
+
const getTranslations$2 = (data) => {
|
|
337
|
+
Object.keys(data).forEach((item) => {
|
|
338
|
+
for (let key in data[item]) {
|
|
339
|
+
TRANSLATIONS$2[item][key] = data[item][key];
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
};
|
|
343
|
+
const resolveTranslationUrl$1 = async (translationUrl) => {
|
|
344
|
+
if (translationUrl) {
|
|
345
|
+
try {
|
|
346
|
+
const response = await fetch(translationUrl);
|
|
347
|
+
if (!response.ok) {
|
|
348
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
349
|
+
}
|
|
350
|
+
const translations = await response.json();
|
|
351
|
+
getTranslations$2(translations);
|
|
352
|
+
}
|
|
353
|
+
catch (error) {
|
|
354
|
+
console.error('Failed to fetch or parse translations from URL:', error);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
|
|
315
359
|
const lotteryInfiniteScrollCss = ":host{display:block;width:100%}.lottery-infinite-scroll__container{display:block;width:100%;overflow-x:hidden;-webkit-overflow-scrolling:touch;padding-right:10px;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--emw-hakuna-bg-secondary, #120505) var(--lottery-infinite-scroll-scrollbar-track-background, transparent);}.lottery-infinite-scroll__container::-webkit-scrollbar{width:var(--lottery-infinite-scroll-scrollbar-width, 2px)}.lottery-infinite-scroll__container::-webkit-scrollbar-track{background:var(--lottery-infinite-scroll-scrollbar-track-background, transparent)}.lottery-infinite-scroll__container::-webkit-scrollbar-thumb{background:var(--emw-hakuna-bg-secondary, #120505);border-radius:var(--lottery-infinite-scroll-scrollbar-thumb-border-radius, 2px)}.lottery-infinite-scroll__sentinel{width:100%;display:block;text-align:center;}.lottery-infinite-scroll__sentinel.virtual-scroll-sentinel{height:1px;pointer-events:none;opacity:0;position:absolute;width:100%}.lottery-infinite-scroll__sentinel:not(.virtual-scroll-sentinel){height:1px;}.lottery-infinite-scroll__end-message{width:100%;display:block;text-align:center;}.lottery-infinite-scroll__end-message.virtual-scroll-end-message{position:absolute;width:100%}.ptr-indicator{height:var(--pull-trigger-distance, 60px);margin-top:calc(-1 * var(--pull-trigger-distance, 60px));display:flex;align-items:center;justify-content:center;position:absolute;top:0;width:100%;z-index:10;font-size:14px;color:#666;}";
|
|
316
360
|
const LotteryInfiniteScrollStyle0 = lotteryInfiniteScrollCss;
|
|
317
361
|
|
|
@@ -362,6 +406,11 @@ const LotteryInfiniteScroll = class {
|
|
|
362
406
|
this.pullDistance = 0;
|
|
363
407
|
}
|
|
364
408
|
};
|
|
409
|
+
this.mbSource = undefined;
|
|
410
|
+
this.clientStyling = undefined;
|
|
411
|
+
this.clientStylingUrl = undefined;
|
|
412
|
+
this.language = 'en';
|
|
413
|
+
this.translationUrl = '';
|
|
365
414
|
this.items = [];
|
|
366
415
|
this.hasMore = false;
|
|
367
416
|
this.isLoading = false;
|
|
@@ -378,6 +427,32 @@ const LotteryInfiniteScroll = class {
|
|
|
378
427
|
}
|
|
379
428
|
componentDidLoad() {
|
|
380
429
|
this.initObserver();
|
|
430
|
+
if (this.scrollContainer) {
|
|
431
|
+
if (this.mbSource)
|
|
432
|
+
setStreamStyling(this.scrollContainer, `${this.mbSource}.Style`);
|
|
433
|
+
if (this.clientStyling)
|
|
434
|
+
setClientStyling(this.scrollContainer, this.clientStyling);
|
|
435
|
+
if (this.clientStylingUrl)
|
|
436
|
+
setClientStylingURL(this.scrollContainer, this.clientStylingUrl);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
handleClientStylingChange(newValue, oldValue) {
|
|
440
|
+
if (newValue != oldValue) {
|
|
441
|
+
setClientStyling(this.scrollContainer, this.clientStyling);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
handleClientStylingUrlChange(newValue, oldValue) {
|
|
445
|
+
if (newValue != oldValue) {
|
|
446
|
+
setClientStylingURL(this.scrollContainer, this.clientStylingUrl);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
handleMbSourceChange(newValue, oldValue) {
|
|
450
|
+
if (newValue != oldValue) {
|
|
451
|
+
setStreamStyling(this.scrollContainer, `${this.mbSource}.Style`);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
componentWillLoad() {
|
|
455
|
+
resolveTranslationUrl$1(this.translationUrl);
|
|
381
456
|
}
|
|
382
457
|
componentDidUpdate() {
|
|
383
458
|
if (this.hasMore && !this.isLoading) {
|
|
@@ -386,6 +461,7 @@ const LotteryInfiniteScroll = class {
|
|
|
386
461
|
}
|
|
387
462
|
disconnectedCallback() {
|
|
388
463
|
this.disconnectObserver();
|
|
464
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
389
465
|
}
|
|
390
466
|
handleRefreshingChange(newValue) {
|
|
391
467
|
if (!newValue) {
|
|
@@ -428,19 +504,24 @@ const LotteryInfiniteScroll = class {
|
|
|
428
504
|
gap: `${gridGap}px`,
|
|
429
505
|
boxSizing: 'border-box'
|
|
430
506
|
};
|
|
431
|
-
return (h("div", { key: '
|
|
507
|
+
return (h("div", { key: '5f9372a0c2d0cdf00685cbedf062fb333d1e5348', class: "lottery-infinite-scroll__container", style: {
|
|
432
508
|
height: this.containerHeight,
|
|
433
509
|
overflowY: 'auto',
|
|
434
510
|
position: 'relative'
|
|
435
|
-
}, ref: (el) => (this.scrollContainer = el), onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd }, h("div", { key: '
|
|
511
|
+
}, ref: (el) => (this.scrollContainer = el), onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd }, h("div", { key: 'c43a2673188fbb50c93637f766f1926301ba08e9', class: "ptr-indicator", style: Object.assign(Object.assign({}, contentTransform), { position: 'absolute', top: '0', left: '0', width: '100%', height: `${this.pullTriggerDistance}px`, display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: `-${this.pullTriggerDistance}px`, pointerEvents: 'none' }) }, this.isRefreshing ? (h("slot", { name: "refresh-loading" }, translate$2('refreshing', this.language))) : (h("slot", { name: "pull-hint" }, this.pullDistance > this.pullTriggerDistance
|
|
512
|
+
? translate$2('release', this.language)
|
|
513
|
+
: translate$2('pull', this.language)))), h("div", { key: 'b6a6334401bb3c0ea8d776e028f57836ee0d36ac', class: "scroll-content-wrapper", style: contentTransform }, h("div", { key: '16f58f44ce104fbdc4eacb2c3dfa9d3c7c7e6bdb', class: "list-content", style: listStyle }, listToRender.map((item, index) => (h("div", { key: index, class: "list-item-wrapper" }, showSkeleton ? this.renderSkeleton(index) : this.renderItem(item, index))))), h("div", { key: '1ed8b2ce72d85a68a48e9330ad2b9b9194346dfb', class: "lottery-infinite-scroll__sentinel", ref: (el) => (this.sentinel = el), style: {
|
|
436
514
|
height: '20px',
|
|
437
515
|
display: 'flex',
|
|
438
516
|
justifyContent: 'center',
|
|
439
|
-
visibility:
|
|
440
|
-
} }, this.isLoading ? h("slot", { name: "loading-more" },
|
|
517
|
+
visibility: this.hasMore || (this.isLoading && !showSkeleton) ? 'visible' : 'hidden'
|
|
518
|
+
} }, this.isLoading ? h("slot", { name: "loading-more" }, translate$2('loading', this.language)) : null), !this.hasMore && !this.isLoading && items.length > 0 && (h("div", { key: '3b8207a9dc1451c683eb1920b798574be4fbd975', class: "end-message", style: { textAlign: 'center', padding: '10px' } }, h("slot", { key: '157e109d933e5613cf882c5dd01212647bfeba79', name: "end-message" }, translate$2('noMoreData', this.language)))))));
|
|
441
519
|
}
|
|
442
520
|
get el() { return getElement(this); }
|
|
443
521
|
static get watchers() { return {
|
|
522
|
+
"clientStyling": ["handleClientStylingChange"],
|
|
523
|
+
"clientStylingUrl": ["handleClientStylingUrlChange"],
|
|
524
|
+
"mbSource": ["handleMbSourceChange"],
|
|
444
525
|
"isRefreshing": ["handleRefreshingChange"]
|
|
445
526
|
}; }
|
|
446
527
|
};
|
|
@@ -2677,7 +2677,7 @@ const LotteryHakunaTicketHistory = class {
|
|
|
2677
2677
|
return (h("svg", { width: "45", height: "45", viewBox: "0 0 45 45", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", fill: "currentColor", d: "M22.5 5.625C13.1802 5.625 5.625 13.1802 5.625 22.5C5.625 31.8198 13.1802 39.375 22.5 39.375C31.8198 39.375 39.375 31.8198 39.375 22.5C39.375 13.1802 31.8198 5.625 22.5 5.625ZM1.875 22.5C1.875 11.1091 11.1091 1.875 22.5 1.875C33.8909 1.875 43.125 11.1091 43.125 22.5C43.125 33.8909 33.8909 43.125 22.5 43.125C11.1091 43.125 1.875 33.8909 1.875 22.5ZM22.5 13.125C23.5355 13.125 24.375 13.9645 24.375 15V22.5C24.375 23.5355 23.5355 24.375 22.5 24.375C21.4645 24.375 20.625 23.5355 20.625 22.5V15C20.625 13.9645 21.4645 13.125 22.5 13.125ZM20.625 30C20.625 28.9645 21.4645 28.125 22.5 28.125H22.5188C23.5543 28.125 24.3938 28.9645 24.3938 30C24.3938 31.0355 23.5543 31.875 22.5188 31.875H22.5C21.4645 31.875 20.625 31.0355 20.625 30Z" })));
|
|
2678
2678
|
}
|
|
2679
2679
|
render() {
|
|
2680
|
-
return (h("div", { key: '
|
|
2680
|
+
return (h("div", { key: '53855de1d22947533c4573d78309a9b00f0f21af', class: "lottery-hakuna-ticket-history__container", ref: (el) => (this.stylingContainer = el) }, h("div", { key: '6b8183876d82fa7ee1283be91642dbc6d75ece8b', class: "lottery-hakuna-ticket-history__title" }, this.ticketHistoryTitle), this.errorMessage && (h("div", { key: '96d7bd606994bb7a9518c559a485aa475e082177', class: "lottery-hakuna-ticket-history__error-message" }, this.renderInfoIcon(), h("span", { key: '8ab84918a1a4db13e9de321b223553cf1ad05fd4' }, this.errorMessage))), h("lottery-infinite-scroll", { key: '0fb1e884533627ebf5b9563e2628d823f39f8ff7', "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "mb-source": this.mbSource, translationUrl: this.translationUrl, language: this.language, hasMore: this.hasMore, items: [...this.visibleTickets], minItemWidth: this.minItemWidth, threshold: this.scrollThreshold, gridGap: 10, isLoading: this.isLoading, isRefreshing: this.isRefreshing, onLoadMore: this.handleLoadMore, onRefresh: this.handleRefresh, renderItem: this.renderItem, renderSkeleton: this.showSkeleton ? this.renderSkeleton : null, skeletonCount: this.limit }, h("div", { key: '8091dce7a4322f4918b2087ebbf6813a1b5f3a6b', slot: "loading-more", class: "lottery-hakuna-ticket-history__loading-more" }, h("span", { key: '44fdefc0599b3c52db7ae9b4e9e8b73193dc315c', class: "loading-spinner", innerHTML: loadingOutLinedSvg })), h("div", { key: '657b6539e005df3dad4b478533e6724445394ce8', slot: "refresh-loading", class: "lottery-hakuna-ticket-history__refresh-loading" }, this.listRefreshingText || translate('releaseToRefresh', this.language)), h("div", { key: '8b857eee10585f0fc31f26bf0a3ef2d0b28b16b6', slot: "end-message", class: "lottery-hakuna-ticket-history__end-message" }, this.listEndText || translate('youHaveReachedTheEnd', this.language)))));
|
|
2681
2681
|
}
|
|
2682
2682
|
static get watchers() { return {
|
|
2683
2683
|
"clientStyling": ["handleClientStylingChange"],
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["lottery-button_8",[[1,"lottery-hakuna-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"scrollThreshold":[1,"scroll-threshold"],"scrollContainerHeight":[2,"scroll-container-height"],"ticketHistoryTitle":[1,"ticket-history-title"],"ticketHistoryItemImageSrc":[1,"ticket-history-item-image-src"],"ticketHistoryItemName":[1,"ticket-history-item-name"],"ticketHistoryItemCurrency":[1,"ticket-history-item-currency"],"listLoadingText":[1,"list-loading-text"],"listRefreshingText":[1,"list-refreshing-text"],"listEndText":[1,"list-end-text"],"limit":[2],"minItemWidth":[2,"min-item-width"],"showSkeleton":[4,"show-skeleton"],"visibleTickets":[32],"hasMore":[32],"isLoading":[32],"isRefreshing":[32],"errorMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-hakuna-ticket-history-item",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"historyItemName":[1,"history-item-name"],"historyItemImageSrc":[1,"history-item-image-src"],"ticketId":[8,"ticket-id"],"totalAmount":[1,"total-amount"],"date":[1],"time":[1],"selectedNumbers":[1,"selected-numbers"],"showSkeleton":[4,"show-skeleton"],"selectedNumbersCount":[2,"selected-numbers-count"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-infinite-scroll",{"items":[16],"hasMore":[4,"has-more"],"isLoading":[4,"is-loading"],"isRefreshing":[4,"is-refreshing"],"threshold":[1],"containerHeight":[1,"container-height"],"renderItem":[16],"renderSkeleton":[16],"skeletonCount":[2,"skeleton-count"],"pullTriggerDistance":[2,"pull-trigger-distance"],"minItemWidth":[2,"min-item-width"],"gridGap":[2,"grid-gap"],"pullDistance":[32]},null,{"isRefreshing":["handleRefreshingChange"]}],[1,"lottery-selection-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"splitToken":[513,"split-token"],"selectionGroupId":[513,"selection-group-id"],"selectionGroupLabel":[513,"selection-group-label"],"type":[513],"selectedBulletTexts":[513,"selected-bullet-texts"],"maxSelectedCount":[514,"max-selected-count"],"maxDisplayBulletsCount":[514,"max-display-bullets-count"],"bulletTexts":[513,"bullet-texts"],"maxIntegerBulletText":[514,"max-integer-bullet-text"],"minIntegerBulletText":[514,"min-integer-bullet-text"],"bulletTextType":[513,"bullet-text-type"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"dialogTitle":[513,"dialog-title"],"dialogInputPlaceholder":[513,"dialog-input-placeholder"],"dialogConfig":[32],"inputInfo":[32]},[[0,"lotteryBulletClick","lotteryBulletClickHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-selection",{"value":[520],"text":[513],"idx":[514],"type":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"deleteIconSvg":[513,"delete-icon-svg"],"deleteIconWidth":[513,"delete-icon-width"],"deleteIconHeight":[513,"delete-icon-height"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
19
|
+
return bootstrapLazy([["lottery-button_8",[[1,"lottery-hakuna-ticket-history",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"endpoint":[513],"gameId":[513,"game-id"],"playerId":[514,"player-id"],"sessionId":[513,"session-id"],"scrollThreshold":[1,"scroll-threshold"],"scrollContainerHeight":[2,"scroll-container-height"],"ticketHistoryTitle":[1,"ticket-history-title"],"ticketHistoryItemImageSrc":[1,"ticket-history-item-image-src"],"ticketHistoryItemName":[1,"ticket-history-item-name"],"ticketHistoryItemCurrency":[1,"ticket-history-item-currency"],"listLoadingText":[1,"list-loading-text"],"listRefreshingText":[1,"list-refreshing-text"],"listEndText":[1,"list-end-text"],"limit":[2],"minItemWidth":[2,"min-item-width"],"showSkeleton":[4,"show-skeleton"],"visibleTickets":[32],"hasMore":[32],"isLoading":[32],"isRefreshing":[32],"errorMessage":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-hakuna-ticket-history-item",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"historyItemName":[1,"history-item-name"],"historyItemImageSrc":[1,"history-item-image-src"],"ticketId":[8,"ticket-id"],"totalAmount":[1,"total-amount"],"date":[1],"time":[1],"selectedNumbers":[1,"selected-numbers"],"showSkeleton":[4,"show-skeleton"],"selectedNumbersCount":[2,"selected-numbers-count"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-infinite-scroll",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"items":[16],"hasMore":[4,"has-more"],"isLoading":[4,"is-loading"],"isRefreshing":[4,"is-refreshing"],"threshold":[1],"containerHeight":[1,"container-height"],"renderItem":[16],"renderSkeleton":[16],"skeletonCount":[2,"skeleton-count"],"pullTriggerDistance":[2,"pull-trigger-distance"],"minItemWidth":[2,"min-item-width"],"gridGap":[2,"grid-gap"],"pullDistance":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"],"isRefreshing":["handleRefreshingChange"]}],[1,"lottery-selection-group",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"splitToken":[513,"split-token"],"selectionGroupId":[513,"selection-group-id"],"selectionGroupLabel":[513,"selection-group-label"],"type":[513],"selectedBulletTexts":[513,"selected-bullet-texts"],"maxSelectedCount":[514,"max-selected-count"],"maxDisplayBulletsCount":[514,"max-display-bullets-count"],"bulletTexts":[513,"bullet-texts"],"maxIntegerBulletText":[514,"max-integer-bullet-text"],"minIntegerBulletText":[514,"min-integer-bullet-text"],"bulletTextType":[513,"bullet-text-type"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"dialogTitle":[513,"dialog-title"],"dialogInputPlaceholder":[513,"dialog-input-placeholder"],"dialogConfig":[32],"inputInfo":[32]},[[0,"lotteryBulletClick","lotteryBulletClickHandler"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}],[1,"lottery-button",{"variant":[513],"size":[513],"color":[513],"disabled":[516],"loading":[516],"text":[513],"mbSource":[513,"mb-source"],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"ripples":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-selection",{"value":[520],"text":[513],"idx":[514],"type":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"hasBorder":[516,"has-border"],"hasBackground":[516,"has-background"],"deleteIconSvg":[513,"delete-icon-svg"],"deleteIconWidth":[513,"delete-icon-width"],"deleteIconHeight":[513,"delete-icon-height"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"lottery-tipping-dialog",{"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"visible":[516],"dialogTitle":[1,"dialog-title"],"width":[1],"closable":[4],"mask":[4],"maskClosable":[4,"mask-closable"],"animationDuration":[2,"animation-duration"],"fullscreen":[4],"showFooter":[4,"show-footer"],"showCancelBtn":[4,"show-cancel-btn"],"language":[513],"translationUrl":[520,"translation-url"],"dialogClass":[1,"dialog-class"],"dialogStyle":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{L as LotteryHakunaTicketHistory}from"./lottery-hakuna-ticket-history-
|
|
1
|
+
export{L as LotteryHakunaTicketHistory}from"./lottery-hakuna-ticket-history-35d86d50.js";import"./index-50addd47.js";
|