@everymatrix/lottery-hakuna-ticket-history 0.0.23 → 0.0.24

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 (29) hide show
  1. package/dist/cjs/index-62b3d460.js +64 -0
  2. package/dist/cjs/index-dc95b9af.js +6 -2
  3. package/dist/cjs/index.cjs.js +2 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{lottery-button_8.cjs.entry.js → lottery-button_7.cjs.entry.js} +98 -268
  6. package/dist/cjs/{lottery-hakuna-ticket-history-ec8bf5d5.js → lottery-hakuna-ticket-history-49bed503.js} +51 -124
  7. package/dist/cjs/lottery-hakuna-ticket-history.cjs.js +1 -1
  8. package/dist/cjs/lottery-infinite-scroll.cjs.entry.js +223 -0
  9. package/dist/collection/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.css +8 -0
  10. package/dist/collection/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.js +51 -8
  11. package/dist/collection/components/lottery-infinite-scroll/lottery-infinite-scroll.js +4 -4
  12. package/dist/esm/index-30f31c84.js +60 -0
  13. package/dist/esm/index-50addd47.js +6 -2
  14. package/dist/esm/index.js +2 -1
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/{lottery-button_8.entry.js → lottery-button_7.entry.js} +71 -241
  17. package/dist/esm/{lottery-hakuna-ticket-history-35d86d50.js → lottery-hakuna-ticket-history-844d94d7.js} +46 -115
  18. package/dist/esm/lottery-hakuna-ticket-history.js +1 -1
  19. package/dist/esm/lottery-infinite-scroll.entry.js +219 -0
  20. package/dist/lottery-hakuna-ticket-history/index-30f31c84.js +1 -0
  21. package/dist/lottery-hakuna-ticket-history/index.esm.js +1 -1
  22. package/dist/lottery-hakuna-ticket-history/lottery-button_7.entry.js +1 -0
  23. package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history-844d94d7.js +1 -0
  24. package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.esm.js +1 -1
  25. package/dist/lottery-hakuna-ticket-history/lottery-infinite-scroll.entry.js +1 -0
  26. package/dist/types/components/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history.d.ts +5 -0
  27. package/package.json +1 -1
  28. package/dist/lottery-hakuna-ticket-history/lottery-button_8.entry.js +0 -1
  29. package/dist/lottery-hakuna-ticket-history/lottery-hakuna-ticket-history-35d86d50.js +0 -1
@@ -143,18 +143,18 @@ export class LotteryInfiniteScroll {
143
143
  gap: `${gridGap}px`,
144
144
  boxSizing: 'border-box'
145
145
  };
146
- return (h("div", { key: '5f9372a0c2d0cdf00685cbedf062fb333d1e5348', class: "lottery-infinite-scroll__container", style: {
146
+ return (h("div", { key: 'e47cafd444a010ce552fabd3c00722e32b1b3cd8', class: "lottery-infinite-scroll__container", style: {
147
147
  height: this.containerHeight,
148
148
  overflowY: 'auto',
149
149
  position: 'relative'
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
150
+ }, ref: (el) => (this.scrollContainer = el), onTouchStart: this.handleTouchStart, onTouchMove: this.handleTouchMove, onTouchEnd: this.handleTouchEnd }, h("div", { key: 'ee21b030a6f83432edfce4b6cf2719c045fde57f', 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
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: {
152
+ : translate('pull', this.language)))), h("div", { key: '15dd187e7683d16112b6366f94a840153c2c32a4', class: "scroll-content-wrapper", style: contentTransform }, h("div", { key: '241ba9f947b2846d78a0beae5806e60f0ac86c8f', 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: 'c014157ee2f47cc6020d8cffb06136c6e78e2323', class: "lottery-infinite-scroll__sentinel", ref: (el) => (this.sentinel = el), style: {
153
153
  height: '20px',
154
154
  display: 'flex',
155
155
  justifyContent: 'center',
156
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)))))));
157
+ } }, this.isLoading ? h("slot", { name: "loading-more" }, translate('loading', this.language)) : null), !this.hasMore && !this.isLoading && items.length > 0 && (h("div", { key: 'd363303795035f2f1a1bd8ace34999084171a866', class: "end-message", style: { textAlign: 'center', padding: '10px' } }, h("slot", { key: '1be1f840fa161f07a2ecd14c11d0168f5d1156c6', name: "end-message" }, translate('noMoreData', this.language)))))));
158
158
  }
159
159
  static get is() { return "lottery-infinite-scroll"; }
160
160
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @name setClientStyling
3
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
4
+ * @param {HTMLElement} stylingContainer The reference element of the widget
5
+ * @param {string} clientStyling The style content
6
+ */
7
+ function setClientStyling(stylingContainer, clientStyling) {
8
+ if (stylingContainer) {
9
+ const sheet = document.createElement('style');
10
+ sheet.innerHTML = clientStyling;
11
+ stylingContainer.appendChild(sheet);
12
+ }
13
+ }
14
+
15
+ /**
16
+ * @name setClientStylingURL
17
+ * @description Method used to create and append to the passed element of the widget a style element with the content fetched from a given URL
18
+ * @param {HTMLElement} stylingContainer The reference element of the widget
19
+ * @param {string} clientStylingUrl The URL of the style content
20
+ */
21
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
22
+ if (!stylingContainer || !clientStylingUrl) return;
23
+
24
+ const url = new URL(clientStylingUrl);
25
+
26
+ fetch(url.href)
27
+ .then((res) => res.text())
28
+ .then((data) => {
29
+ const cssFile = document.createElement('style');
30
+ cssFile.innerHTML = data;
31
+ if (stylingContainer) {
32
+ stylingContainer.appendChild(cssFile);
33
+ }
34
+ })
35
+ .catch((err) => {
36
+ console.error('There was an error while trying to load client styling from URL', err);
37
+ });
38
+ }
39
+
40
+ /**
41
+ * @name setStreamLibrary
42
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
43
+ * @param {HTMLElement} stylingContainer The highest element of the widget
44
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
45
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
46
+ */
47
+ function setStreamStyling(stylingContainer, domain, subscription) {
48
+ if (window.emMessageBus) {
49
+ const sheet = document.createElement('style');
50
+
51
+ window.emMessageBus.subscribe(domain, (data) => {
52
+ sheet.innerHTML = data;
53
+ if (stylingContainer) {
54
+ stylingContainer.appendChild(sheet);
55
+ }
56
+ });
57
+ }
58
+ }
59
+
60
+ export { setClientStylingURL as a, setStreamStyling as b, setClientStyling as s };
@@ -49,10 +49,14 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
49
49
  }
50
50
  switch(bundleId) {
51
51
 
52
- case 'lottery-button_8':
52
+ case 'lottery-button_7':
53
53
  return import(
54
54
  /* webpackMode: "lazy" */
55
- './lottery-button_8.entry.js').then(processMod, consoleError);
55
+ './lottery-button_7.entry.js').then(processMod, consoleError);
56
+ case 'lottery-infinite-scroll':
57
+ return import(
58
+ /* webpackMode: "lazy" */
59
+ './lottery-infinite-scroll.entry.js').then(processMod, consoleError);
56
60
  }
57
61
  }
58
62
  return import(
package/dist/esm/index.js CHANGED
@@ -1,2 +1,3 @@
1
- export { L as LotteryHakunaTicketHistory } from './lottery-hakuna-ticket-history-35d86d50.js';
1
+ export { L as LotteryHakunaTicketHistory } from './lottery-hakuna-ticket-history-844d94d7.js';
2
2
  import './index-50addd47.js';
3
+ import './index-30f31c84.js';
@@ -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",{"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);
8
+ return bootstrapLazy([["lottery-infinite-scroll",[[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"]}]]],["lottery-button_7",[[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],"ticketList":[32],"isLoadingList":[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-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,10 @@
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-35d86d50.js';
3
- export { L as lottery_hakuna_ticket_history } from './lottery-hakuna-ticket-history-35d86d50.js';
2
+ import { s as setClientStyling, a as setClientStylingURL, b as setStreamStyling } from './index-30f31c84.js';
3
+ export { L as lottery_hakuna_ticket_history } from './lottery-hakuna-ticket-history-844d94d7.js';
4
4
 
5
- // This icon file is generated automatically.
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
- const DeleteFilled$1 = DeleteFilled;
8
-
9
- const DEFAULT_LANGUAGE$4 = 'en';
10
- const SUPPORTED_LANGUAGES$4 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
11
- const TRANSLATIONS$4 = {
5
+ const DEFAULT_LANGUAGE$3 = 'en';
6
+ const SUPPORTED_LANGUAGES$3 = ['ro', 'en', 'fr', 'ar', 'hr', 'zh'];
7
+ const TRANSLATIONS$3 = {
12
8
  en: {
13
9
  loading: 'Loading'
14
10
  },
@@ -17,9 +13,9 @@ const TRANSLATIONS$4 = {
17
13
  ar: {},
18
14
  hr: {}
19
15
  };
20
- const translate$4 = (key, customLang, replacements) => {
16
+ const translate$3 = (key, customLang, replacements) => {
21
17
  const lang = customLang;
22
- let translation = TRANSLATIONS$4[lang !== undefined && SUPPORTED_LANGUAGES$4.includes(lang) ? lang : DEFAULT_LANGUAGE$4][key];
18
+ let translation = TRANSLATIONS$3[lang !== undefined && SUPPORTED_LANGUAGES$3.includes(lang) ? lang : DEFAULT_LANGUAGE$3][key];
23
19
  if (replacements) {
24
20
  Object.keys(replacements).forEach((placeholder) => {
25
21
  translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
@@ -27,14 +23,14 @@ const translate$4 = (key, customLang, replacements) => {
27
23
  }
28
24
  return translation;
29
25
  };
30
- const getTranslations$4 = (data) => {
26
+ const getTranslations$3 = (data) => {
31
27
  Object.keys(data).forEach((item) => {
32
28
  for (let key in data[item]) {
33
- TRANSLATIONS$4[item][key] = data[item][key];
29
+ TRANSLATIONS$3[item][key] = data[item][key];
34
30
  }
35
31
  });
36
32
  };
37
- const resolveTranslationUrl$3 = async (translationUrl) => {
33
+ const resolveTranslationUrl$2 = async (translationUrl) => {
38
34
  if (translationUrl) {
39
35
  try {
40
36
  const response = await fetch(translationUrl);
@@ -42,7 +38,7 @@ const resolveTranslationUrl$3 = async (translationUrl) => {
42
38
  throw new Error(`HTTP error! status: ${response.status}`);
43
39
  }
44
40
  const translations = await response.json();
45
- getTranslations$4(translations);
41
+ getTranslations$3(translations);
46
42
  }
47
43
  catch (error) {
48
44
  console.error('Failed to fetch or parse translations from URL:', error);
@@ -120,7 +116,7 @@ const LotteryButton = class {
120
116
  }
121
117
  componentWillLoad() {
122
118
  if (this.translationUrl) {
123
- resolveTranslationUrl$3(this.translationUrl);
119
+ resolveTranslationUrl$2(this.translationUrl);
124
120
  }
125
121
  }
126
122
  render() {
@@ -160,7 +156,7 @@ const LotteryButton = class {
160
156
  [`btn--${variant}`]: true,
161
157
  [`btn--${size}`]: true,
162
158
  '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$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: {
159
+ }, 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$3('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
160
  top: `${ripple.top}px`,
165
161
  left: `${ripple.left}px`,
166
162
  width: `${ripple.size}px`,
@@ -176,16 +172,16 @@ const LotteryButton = class {
176
172
  };
177
173
  LotteryButton.style = LotteryButtonStyle0;
178
174
 
179
- const DEFAULT_LANGUAGE$3 = 'en';
180
- const SUPPORTED_LANGUAGES$3 = ['ro', 'en', 'fr', 'ar', 'hr'];
181
- const TRANSLATIONS$3 = {
175
+ const DEFAULT_LANGUAGE$2 = 'en';
176
+ const SUPPORTED_LANGUAGES$2 = ['ro', 'en', 'fr', 'ar', 'hr'];
177
+ const TRANSLATIONS$2 = {
182
178
  en: {
183
179
  total: 'Total:',
184
180
  },
185
181
  };
186
- const translate$3 = (key, customLang, replacements) => {
182
+ const translate$2 = (key, customLang, replacements) => {
187
183
  const lang = customLang;
188
- let translation = TRANSLATIONS$3[lang !== undefined && SUPPORTED_LANGUAGES$3.includes(lang) ? lang : DEFAULT_LANGUAGE$3][key];
184
+ let translation = TRANSLATIONS$2[lang !== undefined && SUPPORTED_LANGUAGES$2.includes(lang) ? lang : DEFAULT_LANGUAGE$2][key];
189
185
  if (replacements) {
190
186
  Object.keys(replacements).forEach((placeholder) => {
191
187
  translation = translation.replace(`{${placeholder}}`, replacements[placeholder]);
@@ -193,14 +189,14 @@ const translate$3 = (key, customLang, replacements) => {
193
189
  }
194
190
  return translation;
195
191
  };
196
- const getTranslations$3 = (data) => {
192
+ const getTranslations$2 = (data) => {
197
193
  Object.keys(data).forEach((item) => {
198
194
  for (let key in data[item]) {
199
- TRANSLATIONS$3[item][key] = data[item][key];
195
+ TRANSLATIONS$2[item][key] = data[item][key];
200
196
  }
201
197
  });
202
198
  };
203
- const resolveTranslationUrl$2 = async (translationUrl) => {
199
+ const resolveTranslationUrl$1 = async (translationUrl) => {
204
200
  if (translationUrl) {
205
201
  try {
206
202
  const response = await fetch(translationUrl);
@@ -208,7 +204,7 @@ const resolveTranslationUrl$2 = async (translationUrl) => {
208
204
  throw new Error(`HTTP error! status: ${response.status}`);
209
205
  }
210
206
  const translations = await response.json();
211
- getTranslations$3(translations);
207
+ getTranslations$2(translations);
212
208
  }
213
209
  catch (error) {
214
210
  console.error('Failed to fetch or parse translations from URL:', error);
@@ -253,7 +249,7 @@ const LotteryHakunaTicketHistoryItem = class {
253
249
  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
250
  };
255
251
  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$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)))));
252
+ 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$2('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
253
  };
258
254
  this.mbSource = undefined;
259
255
  this.clientStyling = undefined;
@@ -286,7 +282,7 @@ const LotteryHakunaTicketHistoryItem = class {
286
282
  }
287
283
  }
288
284
  async componentWillLoad() {
289
- resolveTranslationUrl$2(this.translationUrl);
285
+ resolveTranslationUrl$1(this.translationUrl);
290
286
  }
291
287
  componentDidLoad() {
292
288
  if (this.stylingContainer) {
@@ -312,220 +308,54 @@ const LotteryHakunaTicketHistoryItem = class {
312
308
  };
313
309
  LotteryHakunaTicketHistoryItem.style = LotteryHakunaTicketHistoryItemStyle0;
314
310
 
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
-
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;}";
360
- const LotteryInfiniteScrollStyle0 = lotteryInfiniteScrollCss;
311
+ // This icon file is generated automatically.
312
+ 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" };
313
+ const DeleteFilled$1 = DeleteFilled;
361
314
 
362
- const LotteryInfiniteScroll = class {
363
- constructor(hostRef) {
364
- registerInstance(this, hostRef);
365
- this.loadMore = createEvent(this, "loadMore", 7);
366
- this.refresh = createEvent(this, "refresh", 7);
367
- // Touch event vars
368
- this.startY = 0;
369
- this.isTouching = false;
370
- // --- Pull to Refresh Logic (Touch handling) ---
371
- this.handleTouchStart = (e) => {
372
- // Only allow pull-down when scrollbar is at the top
373
- if (this.scrollContainer.scrollTop <= 0) {
374
- this.startY = e.touches[0].clientY;
375
- this.isTouching = true;
376
- }
377
- };
378
- this.handleTouchMove = (e) => {
379
- if (!this.isTouching || this.isRefreshing)
380
- return;
381
- const currentY = e.touches[0].clientY;
382
- const distance = currentY - this.startY;
383
- // Only process pull-down and when scrollbar is at the top
384
- if (distance > 0 && this.scrollContainer.scrollTop <= 0) {
385
- // Prevent default scroll behavior (prevents entire page from being dragged)
386
- if (e.cancelable)
387
- e.preventDefault();
388
- // Add damping effect (harder to pull further)
389
- this.pullDistance = Math.pow(distance, 0.8);
390
- }
391
- else {
392
- // If user pushes up, or already scrolled, reset
393
- this.isTouching = false;
394
- this.pullDistance = 0;
395
- }
396
- };
397
- this.handleTouchEnd = () => {
398
- this.isTouching = false;
399
- if (this.pullDistance >= this.pullTriggerDistance) {
400
- // Trigger refresh
401
- this.pullDistance = this.pullTriggerDistance; // Stay in loading area
402
- this.refresh.emit();
403
- }
404
- else {
405
- // Not reached threshold, bounce back
406
- this.pullDistance = 0;
407
- }
408
- };
409
- this.mbSource = undefined;
410
- this.clientStyling = undefined;
411
- this.clientStylingUrl = undefined;
412
- this.language = 'en';
413
- this.translationUrl = '';
414
- this.items = [];
415
- this.hasMore = false;
416
- this.isLoading = false;
417
- this.isRefreshing = false;
418
- this.threshold = '0px 0px 200px 0px';
419
- this.containerHeight = '100%';
420
- this.renderItem = undefined;
421
- this.renderSkeleton = undefined;
422
- this.skeletonCount = 6;
423
- this.pullTriggerDistance = 60;
424
- this.minItemWidth = 340;
425
- this.gridGap = 10;
426
- this.pullDistance = 0;
427
- }
428
- componentDidLoad() {
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);
456
- }
457
- componentDidUpdate() {
458
- if (this.hasMore && !this.isLoading) {
459
- this.initObserver();
460
- }
461
- }
462
- disconnectedCallback() {
463
- this.disconnectObserver();
464
- this.stylingSubscription && this.stylingSubscription.unsubscribe();
465
- }
466
- handleRefreshingChange(newValue) {
467
- if (!newValue) {
468
- this.pullDistance = 0;
469
- }
470
- }
471
- disconnectObserver() {
472
- if (this.observer) {
473
- this.observer.disconnect();
474
- this.observer = null;
475
- }
476
- }
477
- initObserver() {
478
- this.disconnectObserver();
479
- if (!this.hasMore || this.isLoading || !this.sentinel)
480
- return;
481
- const options = {
482
- root: this.scrollContainer,
483
- rootMargin: this.threshold,
484
- threshold: 0.1
485
- };
486
- this.observer = new IntersectionObserver((entries) => {
487
- if (entries[0].isIntersecting && this.hasMore && !this.isLoading) {
488
- this.loadMore.emit();
489
- }
490
- }, options);
491
- this.observer.observe(this.sentinel);
492
- }
493
- render() {
494
- const { items, minItemWidth, gridGap } = this;
495
- const showSkeleton = items.length === 0 && !!this.renderSkeleton && this.isLoading;
496
- const listToRender = showSkeleton ? new Array(this.skeletonCount).fill(null) : items;
497
- const contentTransform = {
498
- transform: `translateY(${this.pullDistance}px)`,
499
- transition: this.isTouching ? 'none' : 'transform 0.3s ease-out'
500
- };
501
- const listStyle = {
502
- display: 'grid',
503
- gridTemplateColumns: `repeat(auto-fill, minmax(${minItemWidth}px, 1fr))`,
504
- gap: `${gridGap}px`,
505
- boxSizing: 'border-box'
506
- };
507
- return (h("div", { key: '5f9372a0c2d0cdf00685cbedf062fb333d1e5348', class: "lottery-infinite-scroll__container", style: {
508
- height: this.containerHeight,
509
- overflowY: 'auto',
510
- position: 'relative'
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: {
514
- height: '20px',
515
- display: 'flex',
516
- justifyContent: 'center',
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)))))));
519
- }
520
- get el() { return getElement(this); }
521
- static get watchers() { return {
522
- "clientStyling": ["handleClientStylingChange"],
523
- "clientStylingUrl": ["handleClientStylingUrlChange"],
524
- "mbSource": ["handleMbSourceChange"],
525
- "isRefreshing": ["handleRefreshingChange"]
526
- }; }
315
+ var __assign = (undefined && undefined.__assign) || function () {
316
+ __assign = Object.assign || function(t) {
317
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
318
+ s = arguments[i];
319
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
320
+ t[p] = s[p];
321
+ }
322
+ return t;
323
+ };
324
+ return __assign.apply(this, arguments);
325
+ };
326
+ var defaultColors = {
327
+ primaryColor: '#333',
328
+ secondaryColor: '#E6E6E6'
527
329
  };
528
- LotteryInfiniteScroll.style = LotteryInfiniteScrollStyle0;
330
+ function renderIconDefinitionToSVGElement(icond, options) {
331
+ if (options === void 0) { options = {}; }
332
+ if (typeof icond.icon === 'function') {
333
+ // two-tone
334
+ var placeholders = options.placeholders || defaultColors;
335
+ return renderAbstractNodeToSVGElement(icond.icon(placeholders.primaryColor, placeholders.secondaryColor), options);
336
+ }
337
+ // fill, outline
338
+ return renderAbstractNodeToSVGElement(icond.icon, options);
339
+ }
340
+ function renderAbstractNodeToSVGElement(node, options) {
341
+ var targetAttrs = node.tag === 'svg'
342
+ ? __assign(__assign({}, node.attrs), (options.extraSVGAttrs || {})) : node.attrs;
343
+ var attrs = Object.keys(targetAttrs).reduce(function (acc, nextKey) {
344
+ var key = nextKey;
345
+ var value = targetAttrs[key];
346
+ var token = "".concat(key, "=\"").concat(value, "\"");
347
+ acc.push(token);
348
+ return acc;
349
+ }, []);
350
+ var attrsToken = attrs.length ? ' ' + attrs.join(' ') : '';
351
+ var children = (node.children || [])
352
+ .map(function (child) { return renderAbstractNodeToSVGElement(child, options); })
353
+ .join('');
354
+ if (children && children.length) {
355
+ return "<".concat(node.tag).concat(attrsToken, ">").concat(children, "</").concat(node.tag, ">");
356
+ }
357
+ return "<".concat(node.tag).concat(attrsToken, " />");
358
+ }
529
359
 
530
360
  // Basic sanitization method for SVG content
531
361
  // This is NOT a complete XSS prevention for SVG, but prevents common attacks.
@@ -1372,4 +1202,4 @@ const UiSkeleton = class {
1372
1202
  };
1373
1203
  UiSkeleton.style = UiSkeletonStyle0;
1374
1204
 
1375
- export { LotteryButton as lottery_button, LotteryHakunaTicketHistoryItem as lottery_hakuna_ticket_history_item, LotteryInfiniteScroll as lottery_infinite_scroll, LotterySelection as lottery_selection, LotterySelectionGroup as lottery_selection_group, LotteryTippingDialog as lottery_tipping_dialog, UiSkeleton as ui_skeleton };
1205
+ export { LotteryButton as lottery_button, LotteryHakunaTicketHistoryItem as lottery_hakuna_ticket_history_item, LotterySelection as lottery_selection, LotterySelectionGroup as lottery_selection_group, LotteryTippingDialog as lottery_tipping_dialog, UiSkeleton as ui_skeleton };