@everymatrix/lottery-hakuna-collapse 0.0.1

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 (55) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-5647524d.js +1245 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/lottery-hakuna-collapse-e91d7dc9.js +128 -0
  6. package/dist/cjs/lottery-hakuna-collapse.cjs.entry.js +10 -0
  7. package/dist/cjs/lottery-hakuna-collapse.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/lottery-hakuna-collapse/index.js +1 -0
  10. package/dist/collection/components/lottery-hakuna-collapse/lottery-hakuna-collapse.css +48 -0
  11. package/dist/collection/components/lottery-hakuna-collapse/lottery-hakuna-collapse.js +197 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/utils.js +3 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/index-af1fac59.js +1218 -0
  16. package/dist/esm/index.js +2 -0
  17. package/dist/esm/loader.js +11 -0
  18. package/dist/esm/lottery-hakuna-collapse-e56904fa.js +126 -0
  19. package/dist/esm/lottery-hakuna-collapse.entry.js +2 -0
  20. package/dist/esm/lottery-hakuna-collapse.js +20 -0
  21. package/dist/index.cjs.js +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/lottery-hakuna-collapse/app-globals-0f993ce5.js +1 -0
  24. package/dist/lottery-hakuna-collapse/index-af1fac59.js +2 -0
  25. package/dist/lottery-hakuna-collapse/index.esm.js +1 -0
  26. package/dist/lottery-hakuna-collapse/lottery-hakuna-collapse-e56904fa.js +1 -0
  27. package/dist/lottery-hakuna-collapse/lottery-hakuna-collapse.entry.js +1 -0
  28. package/dist/lottery-hakuna-collapse/lottery-hakuna-collapse.esm.js +1 -0
  29. package/dist/stencil.config.dev.js +19 -0
  30. package/dist/stencil.config.js +19 -0
  31. package/dist/storybook/main.js +43 -0
  32. package/dist/storybook/preview.js +9 -0
  33. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  34. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/packages/stencil/lottery-hakuna-collapse/stencil.config.d.ts +2 -0
  35. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/packages/stencil/lottery-hakuna-collapse/stencil.config.dev.d.ts +2 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/packages/stencil/lottery-hakuna-collapse/storybook/main.d.ts +3 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/packages/stencil/lottery-hakuna-collapse/storybook/preview.d.ts +70 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/tools/plugins/index.d.ts +4 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-hakuna-collapse/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/lottery-hakuna-collapse/index.d.ts +1 -0
  44. package/dist/types/components/lottery-hakuna-collapse/lottery-hakuna-collapse.d.ts +21 -0
  45. package/dist/types/components.d.ts +48 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  48. package/dist/types/utils/utils.d.ts +1 -0
  49. package/loader/cdn.js +1 -0
  50. package/loader/index.cjs.js +1 -0
  51. package/loader/index.d.ts +24 -0
  52. package/loader/index.es2017.js +1 -0
  53. package/loader/index.js +2 -0
  54. package/loader/package.json +11 -0
  55. package/package.json +27 -0
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const lotteryHakunaCollapse = require('./lottery-hakuna-collapse-e91d7dc9.js');
6
+ require('./index-5647524d.js');
7
+
8
+
9
+
10
+ exports.LotteryHakunaCollapse = lotteryHakunaCollapse.LotteryHakunaCollapse;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5647524d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ const defineCustomElements = async (win, options) => {
9
+ if (typeof window === 'undefined') return undefined;
10
+ await appGlobals.globalScripts();
11
+ return index.bootstrapLazy([["lottery-hakuna-collapse.cjs",[[1,"lottery-hakuna-collapse",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[513,"header-title"],"collapsed":[516],"isOpen":[32],"hasSummary":[32],"toggle":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,128 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-5647524d.js');
4
+
5
+ /**
6
+ * @name setClientStyling
7
+ * @description Method used to create and append to the passed element of the widget a style element with the content received
8
+ * @param {HTMLElement} stylingContainer The reference element of the widget
9
+ * @param {string} clientStyling The style content
10
+ */
11
+ function setClientStyling(stylingContainer, clientStyling) {
12
+ if (stylingContainer) {
13
+ const sheet = document.createElement('style');
14
+ sheet.innerHTML = clientStyling;
15
+ stylingContainer.appendChild(sheet);
16
+ }
17
+ }
18
+
19
+ /**
20
+ * @name setClientStylingURL
21
+ * @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
22
+ * @param {HTMLElement} stylingContainer The reference element of the widget
23
+ * @param {string} clientStylingUrl The URL of the style content
24
+ */
25
+ function setClientStylingURL(stylingContainer, clientStylingUrl) {
26
+ if (!stylingContainer || !clientStylingUrl) return;
27
+
28
+ const url = new URL(clientStylingUrl);
29
+
30
+ fetch(url.href)
31
+ .then((res) => res.text())
32
+ .then((data) => {
33
+ const cssFile = document.createElement('style');
34
+ cssFile.innerHTML = data;
35
+ if (stylingContainer) {
36
+ stylingContainer.appendChild(cssFile);
37
+ }
38
+ })
39
+ .catch((err) => {
40
+ console.error('There was an error while trying to load client styling from URL', err);
41
+ });
42
+ }
43
+
44
+ /**
45
+ * @name setStreamLibrary
46
+ * @description Method used to create and append to the passed element of the widget a style element with content fetched from the MessageBus
47
+ * @param {HTMLElement} stylingContainer The highest element of the widget
48
+ * @param {string} domain The domain from where the content should be fetched (e.g. 'Casino.Style', 'App.Style', 'casino-footer.style', etc.)
49
+ * @param {ref} subscription A reference to a variable where the subscription should be saved for unsubscribing when no longer needed
50
+ */
51
+ function setStreamStyling(stylingContainer, domain, subscription) {
52
+ if (window.emMessageBus) {
53
+ const sheet = document.createElement('style');
54
+
55
+ window.emMessageBus.subscribe(domain, (data) => {
56
+ sheet.innerHTML = data;
57
+ if (stylingContainer) {
58
+ stylingContainer.appendChild(sheet);
59
+ }
60
+ });
61
+ }
62
+ }
63
+
64
+ const lotteryHakunaCollapseCss = ":host{display:block;width:100%;box-sizing:border-box}.lottery-hakuna-collapse{border:var(--lottery-hakuna-collapse-border-width, 1px) solid transparent;border-radius:var(--lottery-hakuna-collapse-border-radius, 12px);background-origin:border-box;background-clip:padding-box, border-box;background-image:linear-gradient(var(--lottery-hakuna-collapse-bg, #120505), var(--lottery-hakuna-collapse-bg, #120505)), linear-gradient(to top left, var(--lottery-hakuna-collapse-border-gradient-start, #c52217) var(--lottery-hakuna-collapse-border-gradient-start-stop, 32%), var(--lottery-hakuna-collapse-border-gradient-end, #2c2525) var(--lottery-hakuna-collapse-border-gradient-end-stop, 68%));overflow:hidden;margin-bottom:var(--lottery-hakuna-collapse-margin-bottom, 10px)}.lottery-hakuna-collapse .header{display:flex;justify-content:space-between;align-items:center;padding:var(--lottery-hakuna-collapse-header-padding, 20px);cursor:pointer;user-select:none}.lottery-hakuna-collapse .header .header-content{display:flex;align-items:center;flex:1;gap:var(--lottery-hakuna-collapse-header-gap, 8px)}.lottery-hakuna-collapse .header .title{font-size:var(--lottery-hakuna-collapse-title-size, 16px);font-weight:var(--lottery-hakuna-collapse-title-weight, 600);color:var(--lottery-hakuna-collapse-title-color, #fff)}.lottery-hakuna-collapse .header .icon{color:var(--lottery-hakuna-collapse-icon-color, #fff);font-size:var(--lottery-hakuna-collapse-icon-size, 12px);transition:transform 0.3s ease}.lottery-hakuna-collapse .header .icon.is-open{transform:rotate(180deg)}.lottery-hakuna-collapse .content{padding:var(--lottery-hakuna-collapse-content-padding, 0 20px 20px 20px);color:var(--lottery-hakuna-collapse-content-color, #fff);font-size:var(--lottery-hakuna-collapse-content-size, 14px);line-height:var(--lottery-hakuna-collapse-content-line-height, 1.5)}";
65
+ const LotteryHakunaCollapseStyle0 = lotteryHakunaCollapseCss;
66
+
67
+ const LotteryHakunaCollapse = class {
68
+ constructor(hostRef) {
69
+ index.registerInstance(this, hostRef);
70
+ this.mbSource = undefined;
71
+ this.clientStyling = undefined;
72
+ this.clientStylingUrl = undefined;
73
+ this.headerTitle = '';
74
+ this.collapsed = true;
75
+ this.isOpen = false;
76
+ this.hasSummary = false;
77
+ }
78
+ handleClientStylingChange(newValue, oldValue) {
79
+ if (newValue != oldValue) {
80
+ setClientStyling(this.stylingContainer, this.clientStyling);
81
+ }
82
+ }
83
+ handleClientStylingUrlChange(newValue, oldValue) {
84
+ if (newValue != oldValue) {
85
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
86
+ }
87
+ }
88
+ handleMbSourceChange(newValue, oldValue) {
89
+ if (newValue != oldValue) {
90
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
91
+ }
92
+ }
93
+ componentWillLoad() {
94
+ this.isOpen = !this.collapsed;
95
+ }
96
+ componentWillRender() {
97
+ this.hasSummary = !!this.el.querySelector('[slot="summary"]');
98
+ }
99
+ componentDidLoad() {
100
+ if (this.stylingContainer) {
101
+ if (this.mbSource)
102
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`);
103
+ if (this.clientStyling)
104
+ setClientStyling(this.stylingContainer, this.clientStyling);
105
+ if (this.clientStylingUrl)
106
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
107
+ }
108
+ }
109
+ disconnectedCallback() {
110
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
111
+ }
112
+ async toggle() {
113
+ this.isOpen = !this.isOpen;
114
+ }
115
+ render() {
116
+ const showContent = this.isOpen || this.hasSummary;
117
+ return (index.h("div", { key: '5e28ba28bf46f6a22f749bbd878aef8972bb7eeb', ref: (el) => (this.stylingContainer = el), class: "lottery-hakuna-collapse" }, index.h("div", { key: 'ec42a23932c7e0652476743c1cafcfe7e411c2aa', class: "header", onClick: () => this.toggle() }, index.h("div", { key: '152e98bb7fc69274d61ffff0d6de9f76a1df90f8', class: "header-content" }, this.headerTitle && index.h("span", { key: '0acc51d711ca12fa1a666dbe1678071a37fa0aff', class: "title" }, this.headerTitle)), index.h("span", { key: 'ad31e6e3a249a9dca394e725e805422297811f85', class: { icon: true, 'is-open': this.isOpen } }, index.h("svg", { key: '14bc41acc77204fcb1966f8966dc6feb49730518', xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, index.h("path", { key: 'bac152fc477b275a1792264a35dba2765cf2687f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.96967 6.21967C4.26256 5.92678 4.73744 5.92678 5.03033 6.21967L9 10.1893L12.9697 6.21967C13.2626 5.92678 13.7374 5.92678 14.0303 6.21967C14.3232 6.51256 14.3232 6.98744 14.0303 7.28033L9.53033 11.7803C9.23744 12.0732 8.76256 12.0732 8.46967 11.7803L3.96967 7.28033C3.67678 6.98744 3.67678 6.51256 3.96967 6.21967Z", fill: "currentColor" })))), showContent && index.h("div", { key: '0358ec8ccc21286a31f6ffcb770efa6c1bcc36ea', class: "content" }, this.isOpen ? index.h("slot", null) : index.h("slot", { name: "summary" }))));
118
+ }
119
+ get el() { return index.getElement(this); }
120
+ static get watchers() { return {
121
+ "clientStyling": ["handleClientStylingChange"],
122
+ "clientStylingUrl": ["handleClientStylingUrlChange"],
123
+ "mbSource": ["handleMbSourceChange"]
124
+ }; }
125
+ };
126
+ LotteryHakunaCollapse.style = LotteryHakunaCollapseStyle0;
127
+
128
+ exports.LotteryHakunaCollapse = LotteryHakunaCollapse;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const lotteryHakunaCollapse = require('./lottery-hakuna-collapse-e91d7dc9.js');
6
+ require('./index-5647524d.js');
7
+
8
+
9
+
10
+ exports.lottery_hakuna_collapse = lotteryHakunaCollapse.LotteryHakunaCollapse;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-5647524d.js');
6
+ const appGlobals = require('./app-globals-3a1e7e63.js');
7
+
8
+ /*
9
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
10
+ */
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-hakuna-collapse.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
18
+ };
19
+
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["lottery-hakuna-collapse.cjs",[[1,"lottery-hakuna-collapse",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"headerTitle":[513,"header-title"],"collapsed":[516],"isOpen":[32],"hasSummary":[32],"toggle":[64]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/lottery-hakuna-collapse/lottery-hakuna-collapse.js"
4
+ ],
5
+ "compiler": {
6
+ "name": "@stencil/core",
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
+ },
10
+ "collections": [],
11
+ "bundles": []
12
+ }
@@ -0,0 +1 @@
1
+ export { LotteryHakunaCollapse } from './lottery-hakuna-collapse';
@@ -0,0 +1,48 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ .lottery-hakuna-collapse {
8
+ border: var(--lottery-hakuna-collapse-border-width, 1px) solid transparent;
9
+ border-radius: var(--lottery-hakuna-collapse-border-radius, 12px);
10
+ background-origin: border-box;
11
+ background-clip: padding-box, border-box;
12
+ background-image: linear-gradient(var(--lottery-hakuna-collapse-bg, #120505), var(--lottery-hakuna-collapse-bg, #120505)), linear-gradient(to top left, var(--lottery-hakuna-collapse-border-gradient-start, #c52217) var(--lottery-hakuna-collapse-border-gradient-start-stop, 32%), var(--lottery-hakuna-collapse-border-gradient-end, #2c2525) var(--lottery-hakuna-collapse-border-gradient-end-stop, 68%));
13
+ overflow: hidden;
14
+ margin-bottom: var(--lottery-hakuna-collapse-margin-bottom, 10px);
15
+ }
16
+ .lottery-hakuna-collapse .header {
17
+ display: flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ padding: var(--lottery-hakuna-collapse-header-padding, 20px);
21
+ cursor: pointer;
22
+ user-select: none;
23
+ }
24
+ .lottery-hakuna-collapse .header .header-content {
25
+ display: flex;
26
+ align-items: center;
27
+ flex: 1;
28
+ gap: var(--lottery-hakuna-collapse-header-gap, 8px);
29
+ }
30
+ .lottery-hakuna-collapse .header .title {
31
+ font-size: var(--lottery-hakuna-collapse-title-size, 16px);
32
+ font-weight: var(--lottery-hakuna-collapse-title-weight, 600);
33
+ color: var(--lottery-hakuna-collapse-title-color, #fff);
34
+ }
35
+ .lottery-hakuna-collapse .header .icon {
36
+ color: var(--lottery-hakuna-collapse-icon-color, #fff);
37
+ font-size: var(--lottery-hakuna-collapse-icon-size, 12px);
38
+ transition: transform 0.3s ease;
39
+ }
40
+ .lottery-hakuna-collapse .header .icon.is-open {
41
+ transform: rotate(180deg);
42
+ }
43
+ .lottery-hakuna-collapse .content {
44
+ padding: var(--lottery-hakuna-collapse-content-padding, 0 20px 20px 20px);
45
+ color: var(--lottery-hakuna-collapse-content-color, #fff);
46
+ font-size: var(--lottery-hakuna-collapse-content-size, 14px);
47
+ line-height: var(--lottery-hakuna-collapse-content-line-height, 1.5);
48
+ }
@@ -0,0 +1,197 @@
1
+ import { h } from "@stencil/core";
2
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
+ export class LotteryHakunaCollapse {
4
+ constructor() {
5
+ this.mbSource = undefined;
6
+ this.clientStyling = undefined;
7
+ this.clientStylingUrl = undefined;
8
+ this.headerTitle = '';
9
+ this.collapsed = true;
10
+ this.isOpen = false;
11
+ this.hasSummary = false;
12
+ }
13
+ handleClientStylingChange(newValue, oldValue) {
14
+ if (newValue != oldValue) {
15
+ setClientStyling(this.stylingContainer, this.clientStyling);
16
+ }
17
+ }
18
+ handleClientStylingUrlChange(newValue, oldValue) {
19
+ if (newValue != oldValue) {
20
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
21
+ }
22
+ }
23
+ handleMbSourceChange(newValue, oldValue) {
24
+ if (newValue != oldValue) {
25
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
26
+ }
27
+ }
28
+ componentWillLoad() {
29
+ this.isOpen = !this.collapsed;
30
+ }
31
+ componentWillRender() {
32
+ this.hasSummary = !!this.el.querySelector('[slot="summary"]');
33
+ }
34
+ componentDidLoad() {
35
+ if (this.stylingContainer) {
36
+ if (this.mbSource)
37
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
38
+ if (this.clientStyling)
39
+ setClientStyling(this.stylingContainer, this.clientStyling);
40
+ if (this.clientStylingUrl)
41
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
42
+ }
43
+ }
44
+ disconnectedCallback() {
45
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
46
+ }
47
+ async toggle() {
48
+ this.isOpen = !this.isOpen;
49
+ }
50
+ render() {
51
+ const showContent = this.isOpen || this.hasSummary;
52
+ return (h("div", { key: '5e28ba28bf46f6a22f749bbd878aef8972bb7eeb', ref: (el) => (this.stylingContainer = el), class: "lottery-hakuna-collapse" }, h("div", { key: 'ec42a23932c7e0652476743c1cafcfe7e411c2aa', class: "header", onClick: () => this.toggle() }, h("div", { key: '152e98bb7fc69274d61ffff0d6de9f76a1df90f8', class: "header-content" }, this.headerTitle && h("span", { key: '0acc51d711ca12fa1a666dbe1678071a37fa0aff', class: "title" }, this.headerTitle)), h("span", { key: 'ad31e6e3a249a9dca394e725e805422297811f85', class: { icon: true, 'is-open': this.isOpen } }, h("svg", { key: '14bc41acc77204fcb1966f8966dc6feb49730518', xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none" }, h("path", { key: 'bac152fc477b275a1792264a35dba2765cf2687f', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M3.96967 6.21967C4.26256 5.92678 4.73744 5.92678 5.03033 6.21967L9 10.1893L12.9697 6.21967C13.2626 5.92678 13.7374 5.92678 14.0303 6.21967C14.3232 6.51256 14.3232 6.98744 14.0303 7.28033L9.53033 11.7803C9.23744 12.0732 8.76256 12.0732 8.46967 11.7803L3.96967 7.28033C3.67678 6.98744 3.67678 6.51256 3.96967 6.21967Z", fill: "currentColor" })))), showContent && h("div", { key: '0358ec8ccc21286a31f6ffcb770efa6c1bcc36ea', class: "content" }, this.isOpen ? h("slot", null) : h("slot", { name: "summary" }))));
53
+ }
54
+ static get is() { return "lottery-hakuna-collapse"; }
55
+ static get encapsulation() { return "shadow"; }
56
+ static get originalStyleUrls() {
57
+ return {
58
+ "$": ["lottery-hakuna-collapse.scss"]
59
+ };
60
+ }
61
+ static get styleUrls() {
62
+ return {
63
+ "$": ["lottery-hakuna-collapse.css"]
64
+ };
65
+ }
66
+ static get properties() {
67
+ return {
68
+ "mbSource": {
69
+ "type": "string",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "string",
73
+ "resolved": "string",
74
+ "references": {}
75
+ },
76
+ "required": false,
77
+ "optional": false,
78
+ "docs": {
79
+ "tags": [],
80
+ "text": ""
81
+ },
82
+ "attribute": "mb-source",
83
+ "reflect": true
84
+ },
85
+ "clientStyling": {
86
+ "type": "string",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "string",
90
+ "resolved": "string",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": ""
98
+ },
99
+ "attribute": "client-styling",
100
+ "reflect": true
101
+ },
102
+ "clientStylingUrl": {
103
+ "type": "string",
104
+ "mutable": false,
105
+ "complexType": {
106
+ "original": "string",
107
+ "resolved": "string",
108
+ "references": {}
109
+ },
110
+ "required": false,
111
+ "optional": false,
112
+ "docs": {
113
+ "tags": [],
114
+ "text": ""
115
+ },
116
+ "attribute": "client-styling-url",
117
+ "reflect": true
118
+ },
119
+ "headerTitle": {
120
+ "type": "string",
121
+ "mutable": false,
122
+ "complexType": {
123
+ "original": "string",
124
+ "resolved": "string",
125
+ "references": {}
126
+ },
127
+ "required": false,
128
+ "optional": false,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": ""
132
+ },
133
+ "attribute": "header-title",
134
+ "reflect": true,
135
+ "defaultValue": "''"
136
+ },
137
+ "collapsed": {
138
+ "type": "boolean",
139
+ "mutable": false,
140
+ "complexType": {
141
+ "original": "boolean",
142
+ "resolved": "boolean",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": ""
150
+ },
151
+ "attribute": "collapsed",
152
+ "reflect": true,
153
+ "defaultValue": "true"
154
+ }
155
+ };
156
+ }
157
+ static get states() {
158
+ return {
159
+ "isOpen": {},
160
+ "hasSummary": {}
161
+ };
162
+ }
163
+ static get methods() {
164
+ return {
165
+ "toggle": {
166
+ "complexType": {
167
+ "signature": "() => Promise<void>",
168
+ "parameters": [],
169
+ "references": {
170
+ "Promise": {
171
+ "location": "global",
172
+ "id": "global::Promise"
173
+ }
174
+ },
175
+ "return": "Promise<void>"
176
+ },
177
+ "docs": {
178
+ "text": "",
179
+ "tags": []
180
+ }
181
+ }
182
+ };
183
+ }
184
+ static get elementRef() { return "el"; }
185
+ static get watchers() {
186
+ return [{
187
+ "propName": "clientStyling",
188
+ "methodName": "handleClientStylingChange"
189
+ }, {
190
+ "propName": "clientStylingUrl",
191
+ "methodName": "handleClientStylingUrlChange"
192
+ }, {
193
+ "propName": "mbSource",
194
+ "methodName": "handleMbSourceChange"
195
+ }];
196
+ }
197
+ }
@@ -0,0 +1 @@
1
+ export * from './components/lottery-hakuna-collapse';
@@ -0,0 +1,3 @@
1
+ export function format(first, middle, last) {
2
+ return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
3
+ }
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };