@everymatrix/lottery-game-page 0.1.2 → 0.1.6

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 (153) hide show
  1. package/dist/cjs/helper-accordion_2.cjs.entry.js +126 -0
  2. package/dist/cjs/helper-accordion_2.cjs.entry.js.map +1 -0
  3. package/dist/cjs/helper-filters_2.cjs.entry.js +85 -22255
  4. package/dist/cjs/helper-filters_2.cjs.entry.js.map +1 -0
  5. package/dist/cjs/helper-modal.cjs.entry.js +3 -1
  6. package/dist/cjs/helper-modal.cjs.entry.js.map +1 -0
  7. package/dist/cjs/helper-pagination.cjs.entry.js +3 -1
  8. package/dist/cjs/helper-pagination.cjs.entry.js.map +1 -0
  9. package/dist/cjs/helper-tab.cjs.entry.js +13 -8
  10. package/dist/cjs/helper-tab.cjs.entry.js.map +1 -0
  11. package/dist/cjs/{index-e5770ba2.js → index-65086a23.js} +7 -38
  12. package/dist/cjs/index-65086a23.js.map +1 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/index.cjs.js.map +1 -0
  15. package/dist/cjs/loader.cjs.js +4 -2
  16. package/dist/cjs/loader.cjs.js.map +1 -0
  17. package/dist/cjs/lottery-draw-results-history.cjs.entry.js +67 -27
  18. package/dist/cjs/lottery-draw-results-history.cjs.entry.js.map +1 -0
  19. package/dist/cjs/lottery-game-details.cjs.entry.js +3 -1
  20. package/dist/cjs/lottery-game-details.cjs.entry.js.map +1 -0
  21. package/dist/cjs/lottery-game-page.cjs.entry.js +52 -13
  22. package/dist/cjs/lottery-game-page.cjs.entry.js.map +1 -0
  23. package/dist/cjs/lottery-game-page.cjs.js +4 -2
  24. package/dist/cjs/lottery-game-page.cjs.js.map +1 -0
  25. package/dist/collection/collection-manifest.json +0 -24
  26. package/dist/collection/components/lottery-game-page/lottery-game-page.css +27 -7
  27. package/dist/collection/components/lottery-game-page/lottery-game-page.js +22 -5
  28. package/dist/collection/components/lottery-game-page/lottery-game-page.js.map +1 -0
  29. package/dist/collection/index.js +1 -0
  30. package/dist/collection/index.js.map +1 -0
  31. package/dist/collection/utils/locale.utils.js +34 -6
  32. package/dist/collection/utils/locale.utils.js.map +1 -0
  33. package/dist/collection/utils/utils.js +1 -0
  34. package/dist/collection/utils/utils.js.map +1 -0
  35. package/dist/components/helper-accordion.js +2 -0
  36. package/dist/components/helper-accordion.js.map +1 -0
  37. package/dist/components/helper-accordion2.js +9 -2
  38. package/dist/components/helper-accordion2.js.map +1 -0
  39. package/dist/components/helper-filters.js +2 -0
  40. package/dist/components/helper-filters.js.map +1 -0
  41. package/dist/components/helper-filters2.js +31 -22211
  42. package/dist/components/helper-filters2.js.map +1 -0
  43. package/dist/components/helper-modal.js +2 -0
  44. package/dist/components/helper-modal.js.map +1 -0
  45. package/dist/components/helper-modal2.js +2 -0
  46. package/dist/components/helper-modal2.js.map +1 -0
  47. package/dist/components/helper-pagination.js +2 -0
  48. package/dist/components/helper-pagination.js.map +1 -0
  49. package/dist/components/helper-tab.js +2 -0
  50. package/dist/components/helper-tab.js.map +1 -0
  51. package/dist/components/helper-tab2.js +14 -8
  52. package/dist/components/helper-tab2.js.map +1 -0
  53. package/dist/components/helper-tabs.js +2 -0
  54. package/dist/components/helper-tabs.js.map +1 -0
  55. package/dist/components/helper-tabs2.js +3 -1
  56. package/dist/components/helper-tabs2.js.map +1 -0
  57. package/dist/components/index.js +2 -0
  58. package/dist/components/index.js.map +1 -0
  59. package/dist/components/lottery-draw-results-history.js +2 -0
  60. package/dist/components/lottery-draw-results-history.js.map +1 -0
  61. package/dist/components/lottery-draw-results-history2.js +78 -46
  62. package/dist/components/lottery-draw-results-history2.js.map +1 -0
  63. package/dist/components/lottery-draw-results.js +2 -0
  64. package/dist/components/lottery-draw-results.js.map +1 -0
  65. package/dist/components/lottery-draw-results2.js +64 -59
  66. package/dist/components/lottery-draw-results2.js.map +1 -0
  67. package/dist/components/lottery-game-details.js +2 -0
  68. package/dist/components/lottery-game-details.js.map +1 -0
  69. package/dist/components/lottery-game-details2.js +2 -0
  70. package/dist/components/lottery-game-details2.js.map +1 -0
  71. package/dist/components/lottery-game-page.js +70 -53
  72. package/dist/components/lottery-game-page.js.map +1 -0
  73. package/dist/esm/helper-accordion_2.entry.js +121 -0
  74. package/dist/esm/helper-accordion_2.entry.js.map +1 -0
  75. package/dist/esm/helper-filters_2.entry.js +89 -22259
  76. package/dist/esm/helper-filters_2.entry.js.map +1 -0
  77. package/dist/esm/helper-modal.entry.js +3 -1
  78. package/dist/esm/helper-modal.entry.js.map +1 -0
  79. package/dist/esm/helper-pagination.entry.js +3 -1
  80. package/dist/esm/helper-pagination.entry.js.map +1 -0
  81. package/dist/esm/helper-tab.entry.js +13 -8
  82. package/dist/esm/helper-tab.entry.js.map +1 -0
  83. package/dist/esm/{index-8f308493.js → index-11dea618.js} +7 -38
  84. package/dist/esm/index-11dea618.js.map +1 -0
  85. package/dist/esm/index.js +2 -0
  86. package/dist/esm/index.js.map +1 -0
  87. package/dist/esm/loader.js +4 -2
  88. package/dist/esm/loader.js.map +1 -0
  89. package/dist/esm/lottery-draw-results-history.entry.js +67 -27
  90. package/dist/esm/lottery-draw-results-history.entry.js.map +1 -0
  91. package/dist/esm/lottery-game-details.entry.js +3 -1
  92. package/dist/esm/lottery-game-details.entry.js.map +1 -0
  93. package/dist/esm/lottery-game-page.entry.js +52 -13
  94. package/dist/esm/lottery-game-page.entry.js.map +1 -0
  95. package/dist/esm/lottery-game-page.js +4 -2
  96. package/dist/esm/lottery-game-page.js.map +1 -0
  97. package/dist/lottery-game-page/index.esm.js +2 -0
  98. package/dist/lottery-game-page/index.esm.js.map +1 -0
  99. package/dist/lottery-game-page/lottery-game-page.esm.js +2 -1
  100. package/dist/lottery-game-page/lottery-game-page.esm.js.map +1 -0
  101. package/dist/lottery-game-page/p-0ffa81cc.entry.js +2 -0
  102. package/dist/lottery-game-page/p-0ffa81cc.entry.js.map +1 -0
  103. package/dist/lottery-game-page/p-3a9ad86b.js +2 -0
  104. package/dist/lottery-game-page/p-3a9ad86b.js.map +1 -0
  105. package/dist/lottery-game-page/p-3e00e24b.entry.js +2 -0
  106. package/dist/lottery-game-page/p-3e00e24b.entry.js.map +1 -0
  107. package/dist/lottery-game-page/p-4a79f68c.entry.js +2 -0
  108. package/dist/lottery-game-page/p-4a79f68c.entry.js.map +1 -0
  109. package/dist/lottery-game-page/p-978fd922.entry.js +2 -0
  110. package/dist/lottery-game-page/p-978fd922.entry.js.map +1 -0
  111. package/dist/lottery-game-page/p-bd53d31a.entry.js +2 -0
  112. package/dist/lottery-game-page/p-bd53d31a.entry.js.map +1 -0
  113. package/dist/lottery-game-page/p-bfa5e84c.entry.js +2 -0
  114. package/dist/lottery-game-page/p-bfa5e84c.entry.js.map +1 -0
  115. package/dist/lottery-game-page/p-dedb92e5.entry.js +2 -0
  116. package/dist/lottery-game-page/p-dedb92e5.entry.js.map +1 -0
  117. package/dist/lottery-game-page/p-f4592d65.entry.js +2 -0
  118. package/dist/lottery-game-page/p-f4592d65.entry.js.map +1 -0
  119. package/dist/stencil.config.js +13 -2
  120. package/dist/stencil.config.js.map +1 -0
  121. package/dist/types/components/lottery-game-page/lottery-game-page.d.ts +3 -0
  122. package/package.json +2 -2
  123. package/dist/cjs/helper-accordion.cjs.entry.js +0 -88
  124. package/dist/cjs/helper-tabs.cjs.entry.js +0 -38
  125. package/dist/cjs/lottery-bullet_2.cjs.entry.js +0 -202
  126. package/dist/cjs/lottery-ticket-controller.cjs.entry.js +0 -69
  127. package/dist/cjs/lottery-ticket.cjs.entry.js +0 -146
  128. package/dist/components/lottery-bullet.js +0 -6
  129. package/dist/components/lottery-bullet2.js +0 -57
  130. package/dist/components/lottery-grid.js +0 -6
  131. package/dist/components/lottery-grid2.js +0 -197
  132. package/dist/components/lottery-ticket-controller.js +0 -6
  133. package/dist/components/lottery-ticket-controller2.js +0 -118
  134. package/dist/components/lottery-ticket.js +0 -6
  135. package/dist/components/lottery-ticket2.js +0 -184
  136. package/dist/esm/helper-accordion.entry.js +0 -84
  137. package/dist/esm/helper-tabs.entry.js +0 -34
  138. package/dist/esm/lottery-bullet_2.entry.js +0 -197
  139. package/dist/esm/lottery-ticket-controller.entry.js +0 -65
  140. package/dist/esm/lottery-ticket.entry.js +0 -142
  141. package/dist/lottery-game-page/p-037dd940.js +0 -1
  142. package/dist/lottery-game-page/p-12251772.entry.js +0 -1
  143. package/dist/lottery-game-page/p-324c7edd.entry.js +0 -2849
  144. package/dist/lottery-game-page/p-43400250.entry.js +0 -1
  145. package/dist/lottery-game-page/p-43f7fac4.entry.js +0 -1
  146. package/dist/lottery-game-page/p-55338096.entry.js +0 -1
  147. package/dist/lottery-game-page/p-581bdfc2.entry.js +0 -1
  148. package/dist/lottery-game-page/p-6977f833.entry.js +0 -1
  149. package/dist/lottery-game-page/p-85f4e95b.entry.js +0 -1
  150. package/dist/lottery-game-page/p-99a61a44.entry.js +0 -1
  151. package/dist/lottery-game-page/p-af9a2dde.entry.js +0 -1
  152. package/dist/lottery-game-page/p-bf66e969.entry.js +0 -1
  153. package/dist/lottery-game-page/p-d1b9da94.entry.js +0 -1
@@ -0,0 +1,126 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-65086a23.js');
6
+
7
+ const DEFAULT_LANGUAGE = 'en';
8
+ const SUPPORTED_LANGUAGES = ['ro', 'en'];
9
+ const TRANSLATIONS = {
10
+ en: {
11
+ deleteTicket: 'Delete ticket'
12
+ },
13
+ ro: {
14
+ deleteTicket: 'Sterge biletul'
15
+ },
16
+ };
17
+ const translate = (key, customLang) => {
18
+ const lang = customLang;
19
+ return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
20
+ };
21
+
22
+ const helperAccordionCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Header{border-radius:4px 4px 0 0;background:#009993;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none}.Header:hover{background:#00ABA4}.Header .Title,.Header .Subtitle,.Header .Description{margin:0;font-size:14px;color:#fff}.Header .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.HeaderTicketHistory{border-radius:4px;background:#F1F1F1;display:flex;gap:30px;border:1px solid #009993;padding:8px 10px;user-select:none;margin-bottom:5px}.HeaderTicketHistory:hover{background:#00ABA4}.HeaderTicketHistory .Title,.HeaderTicketHistory .Subtitle,.HeaderTicketHistory .Description{margin:0;font-size:14px;color:#000}.HeaderTicketHistory .Expand{margin-left:auto;color:#FFF;width:17px;height:17px;cursor:pointer;text-align:center;transform:rotate(90deg);font-size:20px;user-select:none}.Content{border-radius:0 0 4px 4px;background:#fff;border:1px solid #009993;padding:10px 15px;user-select:none;color:#000;margin-bottom:10px}.ActionButton{cursor:pointer;display:inline-block;border-radius:4px;margin:20px 0 10px;text-transform:uppercase;font-size:12px;text-align:center;padding:8px 20px;min-width:80px;background:#FF3D00;border:1px solid #FF3D00;color:#FFF}.ActionButton:hover{background:#FF6536;border:1px solid #FF3D00}";
23
+
24
+ const Accordion = class {
25
+ constructor(hostRef) {
26
+ index.registerInstance(this, hostRef);
27
+ this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
28
+ /**
29
+ * Flag for ticket history
30
+ */
31
+ this.ticketHistoryFlag = false;
32
+ /**
33
+ * Title (top header)
34
+ */
35
+ this.headerTitle = '';
36
+ /**
37
+ * SubTitle (top header)
38
+ */
39
+ this.headerSubtitle = '';
40
+ /**
41
+ * Description
42
+ */
43
+ this.description = '';
44
+ /**
45
+ * Enables footer content
46
+ */
47
+ this.footer = false;
48
+ /**
49
+ * Enables footer button for tab deletion
50
+ */
51
+ this.deleteTab = false;
52
+ /**
53
+ * Activates postMessages as events for actions from the widget
54
+ */
55
+ this.postMessage = false;
56
+ /**
57
+ * Name of the event emitter by the action button
58
+ */
59
+ this.eventName = 'helperAccordionAction';
60
+ /**
61
+ * Collapsed
62
+ */
63
+ this.collapsed = true;
64
+ /**
65
+ * Language
66
+ */
67
+ this.language = 'en';
68
+ }
69
+ // @TODO fix the `any` type :)
70
+ connectedCallback() {
71
+ this.showContent = !this.collapsed;
72
+ }
73
+ toggleContent() {
74
+ this.showContent = !this.showContent;
75
+ }
76
+ deleteAction() {
77
+ if (this.postMessage) {
78
+ // @TODO maybe change the name type, this one sucks
79
+ window.postMessage({ type: this.eventName }, window.location.href);
80
+ }
81
+ this.accordionEvent.emit();
82
+ }
83
+ render() {
84
+ return (index.h("div", { class: "Wrapper" }, index.h("div", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' }, index.h("p", { class: "Title" }, this.headerTitle), index.h("p", { class: "Subtitle" }, this.headerSubtitle), index.h("p", { class: "Subtitle" }, this.description), index.h("span", { class: "Expand", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')), this.showContent &&
85
+ index.h("div", null, index.h("div", { class: "Content" }, index.h("slot", { name: 'accordionContent' }), this.footer && this.showContent &&
86
+ index.h("div", null, this.deleteTab &&
87
+ index.h("span", { class: "ActionButton", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));
88
+ }
89
+ };
90
+ Accordion.style = helperAccordionCss;
91
+
92
+ const helperTabsCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}.Tabs{display:flex;gap:10px;overflow-x:auto}.TabButton{cursor:pointer;width:auto;border-radius:4px;padding:8px 15px;margin:5px 0 10px;border:1px solid #009993;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0;white-space:nowrap}.TabButton:hover{background:#F1F1F1}.TabButton.Active{background:#009993;color:#FFF}";
93
+
94
+ const HelperTabs = class {
95
+ constructor(hostRef) {
96
+ index.registerInstance(this, hostRef);
97
+ /**
98
+ * Tell me if it is disabled
99
+ */
100
+ this.disabled = false;
101
+ /**
102
+ * Tell me what tab is selected
103
+ */
104
+ this.selected = false;
105
+ /**
106
+ * Default selected index
107
+ */
108
+ this.selectedIndex = 0;
109
+ /**
110
+ * Tabs details
111
+ */
112
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
113
+ }
114
+ connectedCallback() {
115
+ }
116
+ render() {
117
+ return (index.h("div", null, index.h("div", { class: "Tabs" }, this.tabs.map((tab, index$1) => index.h("button", { class: 'TabButton' + (this.selectedIndex == index$1 ? ' Active' : ''), onClick: () => this.selectedIndex = index$1 }, tab.label))), index.h("div", null, index.h("helper-tab", { selectedIndex: this.selectedIndex }))));
118
+ }
119
+ get host() { return index.getElement(this); }
120
+ };
121
+ HelperTabs.style = helperTabsCss;
122
+
123
+ exports.helper_accordion = Accordion;
124
+ exports.helper_tabs = HelperTabs;
125
+
126
+ //# sourceMappingURL=helper-accordion_2.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"helper-accordion.helper-tabs.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG;AACrB,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,eAAe;AACjC,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,YAAY,EAAE,gBAAgB;AAClC,GAAG;AACH,CAAC,CAAC;AACK,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK;AAC9C,EAAE,MAAM,IAAI,GAAG,UAAU,CAAC;AAC1B,EAAE,OAAO,YAAY,CAAC,IAAI,KAAK,SAAS,IAAI,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,gBAAgB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC/G,CAAC;;ACbD,MAAM,kBAAkB,GA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CAAC,KAAK,EAAE,IAAI,EACnBA,OAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAEC,OAAK,KAAKD,OAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,IAAI,IAAI,CAAC,aAAa,IAAIC,OAAK,GAAG,SAAS,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,GAAGA,OAAK,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EACtMD,OAAC,CAAC,KAAK,EAAE,IAAI,EACXA,OAAC,CAAC,YAAY,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE;GAC/D;;;;;;;;","names":["h","index"],"sources":["../helper-accordion/dist/collection/utils/locale.utils.js","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.css?tag=helper-accordion&encapsulation=shadow","../helper-accordion/dist/collection/components/helper-accordion/helper-accordion.js","../helper-tabs/dist/collection/components/helper-tabs/helper-tabs.css?tag=helper-tabs&encapsulation=shadow","../helper-tabs/dist/collection/components/helper-tabs/helper-tabs.js"],"sourcesContent":["const DEFAULT_LANGUAGE = 'en';\nconst SUPPORTED_LANGUAGES = ['ro', 'en'];\nconst TRANSLATIONS = {\n en: {\n deleteTicket: 'Delete ticket'\n },\n ro: {\n deleteTicket: 'Sterge biletul'\n },\n};\nexport const translate = (key, customLang) => {\n const lang = customLang;\n return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];\n};\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.Header {\n border-radius: 4px 4px 0 0;\n background: #009993;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n}\n.Header:hover {\n background: #00ABA4;\n}\n.Header .Title,\n.Header .Subtitle,\n.Header .Description {\n margin: 0;\n font-size: 14px;\n color: #fff;\n}\n.Header .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.HeaderTicketHistory {\n border-radius: 4px;\n background: #F1F1F1;\n display: flex;\n gap: 30px;\n border: 1px solid #009993;\n padding: 8px 10px;\n user-select: none;\n margin-bottom: 5px;\n}\n.HeaderTicketHistory:hover {\n background: #00ABA4;\n}\n.HeaderTicketHistory .Title,\n.HeaderTicketHistory .Subtitle,\n.HeaderTicketHistory .Description {\n margin: 0;\n font-size: 14px;\n color: #000;\n}\n.HeaderTicketHistory .Expand {\n margin-left: auto;\n color: #FFF;\n width: 17px;\n height: 17px;\n cursor: pointer;\n text-align: center;\n transform: rotate(90deg);\n font-size: 20px;\n user-select: none;\n}\n\n.Content {\n border-radius: 0 0 4px 4px;\n background: #fff;\n border: 1px solid #009993;\n padding: 10px 15px;\n user-select: none;\n color: #000;\n margin-bottom: 10px;\n}\n\n.ActionButton {\n cursor: pointer;\n display: inline-block;\n border-radius: 4px;\n margin: 20px 0 10px;\n text-transform: uppercase;\n font-size: 12px;\n text-align: center;\n padding: 8px 20px;\n min-width: 80px;\n background: #FF3D00;\n border: 1px solid #FF3D00;\n color: #FFF;\n}\n.ActionButton:hover {\n background: #FF6536;\n border: 1px solid #FF3D00;\n}","import { Component, Prop, h, State, Event } from '@stencil/core';\nimport { translate } from '../../utils/locale.utils';\nexport class Accordion {\n constructor() {\n /**\n * Flag for ticket history\n */\n this.ticketHistoryFlag = false;\n /**\n * Title (top header)\n */\n this.headerTitle = '';\n /**\n * SubTitle (top header)\n */\n this.headerSubtitle = '';\n /**\n * Description\n */\n this.description = '';\n /**\n * Enables footer content\n */\n this.footer = false;\n /**\n * Enables footer button for tab deletion\n */\n this.deleteTab = false;\n /**\n * Activates postMessages as events for actions from the widget\n */\n this.postMessage = false;\n /**\n * Name of the event emitter by the action button\n */\n this.eventName = 'helperAccordionAction';\n /**\n * Collapsed\n */\n this.collapsed = true;\n /**\n * Language\n */\n this.language = 'en';\n }\n // @TODO fix the `any` type :)\n connectedCallback() {\n this.showContent = !this.collapsed;\n }\n toggleContent() {\n this.showContent = !this.showContent;\n }\n deleteAction() {\n if (this.postMessage) {\n // @TODO maybe change the name type, this one sucks\n window.postMessage({ type: this.eventName }, window.location.href);\n }\n this.accordionEvent.emit();\n }\n render() {\n return (h(\"div\", { class: \"Wrapper\" },\n h(\"div\", { class: this.ticketHistoryFlag === true ? 'HeaderTicketHistory' : 'Header' },\n h(\"p\", { class: \"Title\" }, this.headerTitle),\n h(\"p\", { class: \"Subtitle\" }, this.headerSubtitle),\n h(\"p\", { class: \"Subtitle\" }, this.description),\n h(\"span\", { class: \"Expand\", onClick: () => this.toggleContent() }, this.showContent ? '<' : '>')),\n this.showContent &&\n h(\"div\", null,\n h(\"div\", { class: \"Content\" },\n h(\"slot\", { name: 'accordionContent' }),\n this.footer && this.showContent &&\n h(\"div\", null, this.deleteTab &&\n h(\"span\", { class: \"ActionButton\", onClick: () => this.deleteAction() }, translate('deleteTicket', this.language)))))));\n }\n static get is() { return \"helper-accordion\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-accordion.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-accordion.css\"]\n }; }\n static get properties() { return {\n \"ticketHistoryFlag\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Flag for ticket history\"\n },\n \"attribute\": \"ticket-history-flag\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"headerTitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Title (top header)\"\n },\n \"attribute\": \"header-title\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"headerSubtitle\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"SubTitle (top header)\"\n },\n \"attribute\": \"header-subtitle\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"description\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Description\"\n },\n \"attribute\": \"description\",\n \"reflect\": false,\n \"defaultValue\": \"''\"\n },\n \"footer\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer content\"\n },\n \"attribute\": \"footer\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"deleteTab\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Enables footer button for tab deletion\"\n },\n \"attribute\": \"delete-tab\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"postMessage\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Activates postMessages as events for actions from the widget\"\n },\n \"attribute\": \"post-message\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"eventName\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Name of the event emitter by the action button\"\n },\n \"attribute\": \"event-name\",\n \"reflect\": false,\n \"defaultValue\": \"'helperAccordionAction'\"\n },\n \"collapsed\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Collapsed\"\n },\n \"attribute\": \"collapsed\",\n \"reflect\": false,\n \"defaultValue\": \"true\"\n },\n \"language\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Language\"\n },\n \"attribute\": \"language\",\n \"reflect\": false,\n \"defaultValue\": \"'en'\"\n }\n }; }\n static get states() { return {\n \"showContent\": {}\n }; }\n static get events() { return [{\n \"method\": \"accordionEvent\",\n \"name\": \"helperAccordionAction\",\n \"bubbles\": true,\n \"cancelable\": true,\n \"composed\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Action event\"\n },\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n }\n }]; }\n}\n","@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");\n:host {\n display: block;\n font-family: \"Roboto\", sans-serif;\n}\n\n.Tabs {\n display: flex;\n gap: 10px;\n overflow-x: auto;\n}\n\n.TabButton {\n cursor: pointer;\n width: auto;\n border-radius: 4px;\n padding: 8px 15px;\n margin: 5px 0 10px;\n border: 1px solid #009993;\n background: #FFF;\n color: #000;\n font-size: 12px;\n transition: all 0.2s linear;\n text-align: center;\n letter-spacing: 0;\n white-space: nowrap;\n}\n.TabButton:hover {\n background: #F1F1F1;\n}\n.TabButton.Active {\n background: #009993;\n color: #FFF;\n}","import { Component, Prop, Element, h } from '@stencil/core';\nexport class HelperTabs {\n constructor() {\n /**\n * Tell me if it is disabled\n */\n this.disabled = false;\n /**\n * Tell me what tab is selected\n */\n this.selected = false;\n /**\n * Default selected index\n */\n this.selectedIndex = 0;\n /**\n * Tabs details\n */\n this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];\n }\n connectedCallback() {\n if (this.tabs.length == 0) {\n // fetch CMS data\n }\n }\n render() {\n return (h(\"div\", null,\n h(\"div\", { class: \"Tabs\" }, this.tabs.map((tab, index) => h(\"button\", { class: 'TabButton' + (this.selectedIndex == index ? ' Active' : ''), onClick: () => this.selectedIndex = index }, tab.label))),\n h(\"div\", null,\n h(\"helper-tab\", { selectedIndex: this.selectedIndex }))));\n }\n static get is() { return \"helper-tabs\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() { return {\n \"$\": [\"helper-tabs.scss\"]\n }; }\n static get styleUrls() { return {\n \"$\": [\"helper-tabs.css\"]\n }; }\n static get properties() { return {\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tell me if it is disabled\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Gimme names or you die\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"selected\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tell me what tab is selected\"\n },\n \"attribute\": \"selected\",\n \"reflect\": false,\n \"defaultValue\": \"false\"\n },\n \"cmsEndpoint\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Endpoing for CMS\"\n },\n \"attribute\": \"cms-endpoint\",\n \"reflect\": false\n },\n \"selectedIndex\": {\n \"type\": \"number\",\n \"mutable\": true,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Default selected index\"\n },\n \"attribute\": \"selected-index\",\n \"reflect\": true,\n \"defaultValue\": \"0\"\n },\n \"tabs\": {\n \"type\": \"unknown\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Array<Object>\",\n \"resolved\": \"Object[]\",\n \"references\": {\n \"Array\": {\n \"location\": \"global\"\n },\n \"Object\": {\n \"location\": \"global\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Tabs details\"\n },\n \"defaultValue\": \"[{label: 'How to Play'}, {label: 'About'}, {label: 'FAQs'}]\"\n }\n }; }\n static get elementRef() { return \"host\"; }\n}\n"],"version":3}