@everymatrix/casino-challenges-overlay-modal 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 (58) hide show
  1. package/dist/casino-challenges-overlay-modal/app-globals-0f993ce5.js +1 -0
  2. package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal-adbcc8e1.js +1 -0
  3. package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal.entry.js +1 -0
  4. package/dist/casino-challenges-overlay-modal/casino-challenges-overlay-modal.esm.js +1 -0
  5. package/dist/casino-challenges-overlay-modal/index-a967bd6f.js +2 -0
  6. package/dist/casino-challenges-overlay-modal/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-challenges-overlay-modal-44704916.js +174 -0
  9. package/dist/cjs/casino-challenges-overlay-modal.cjs.entry.js +10 -0
  10. package/dist/cjs/casino-challenges-overlay-modal.cjs.js +25 -0
  11. package/dist/cjs/index-bba4fd5c.js +1200 -0
  12. package/dist/cjs/index.cjs.js +10 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/assets/giftbox.svg +9 -0
  15. package/dist/collection/collection-manifest.json +12 -0
  16. package/dist/collection/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.css +138 -0
  17. package/dist/collection/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.js +382 -0
  18. package/dist/collection/components/casino-challenges-overlay-modal/index.js +1 -0
  19. package/dist/collection/index.js +1 -0
  20. package/dist/collection/utils/locale.utils.js +36 -0
  21. package/dist/collection/utils/utils.js +3 -0
  22. package/dist/esm/app-globals-0f993ce5.js +3 -0
  23. package/dist/esm/casino-challenges-overlay-modal-adbcc8e1.js +172 -0
  24. package/dist/esm/casino-challenges-overlay-modal.entry.js +2 -0
  25. package/dist/esm/casino-challenges-overlay-modal.js +20 -0
  26. package/dist/esm/index-a967bd6f.js +1174 -0
  27. package/dist/esm/index.js +2 -0
  28. package/dist/esm/loader.js +11 -0
  29. package/dist/index.cjs.js +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/stencil.config.dev.js +19 -0
  32. package/dist/stencil.config.js +19 -0
  33. package/dist/storybook/main.js +43 -0
  34. package/dist/storybook/preview.js +9 -0
  35. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/packages/stencil/casino-challenges-overlay-modal/stencil.config.d.ts +2 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/packages/stencil/casino-challenges-overlay-modal/stencil.config.dev.d.ts +2 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/packages/stencil/casino-challenges-overlay-modal/storybook/main.d.ts +3 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/packages/stencil/casino-challenges-overlay-modal/storybook/preview.d.ts +70 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/tools/plugins/index.d.ts +4 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-overlay-modal/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  45. package/dist/types/components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.d.ts +27 -0
  46. package/dist/types/components/casino-challenges-overlay-modal/index.d.ts +1 -0
  47. package/dist/types/components.d.ts +69 -0
  48. package/dist/types/index.d.ts +1 -0
  49. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  50. package/dist/types/utils/locale.utils.d.ts +3 -0
  51. package/dist/types/utils/utils.d.ts +1 -0
  52. package/loader/cdn.js +1 -0
  53. package/loader/index.cjs.js +1 -0
  54. package/loader/index.d.ts +24 -0
  55. package/loader/index.es2017.js +1 -0
  56. package/loader/index.js +2 -0
  57. package/loader/package.json +11 -0
  58. package/package.json +27 -0
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const casinoChallengesOverlayModal = require('./casino-challenges-overlay-modal-44704916.js');
6
+ require('./index-bba4fd5c.js');
7
+
8
+
9
+
10
+ exports.CasinoChallengesOverlayModal = casinoChallengesOverlayModal.CasinoChallengesOverlayModal;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bba4fd5c.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([["casino-challenges-overlay-modal.cjs",[[1,"casino-challenges-overlay-modal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[1],"isOpen":[4,"is-open"],"showIcon":[4,"show-icon"],"showButton":[4,"show-button"],"header":[1],"subtitle":[1],"reward":[1],"addition":[1],"additionLinkUrl":[1,"addition-link-url"],"additionLinkText":[1,"addition-link-text"],"actionText":[1,"action-text"],"translationUrl":[513,"translation-url"],"handleClick":[16]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
12
+ };
13
+
14
+ exports.setNonce = index.setNonce;
15
+ exports.defineCustomElements = defineCustomElements;
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="22" height="23" viewBox="0 0 22 23" fill="none">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.46429 2.5C7.21442 2.5 6.97106 2.6009 6.78878 2.78649C6.6059 2.9727 6.50001 3.22903 6.50001 3.5C6.50001 3.77097 6.6059 4.0273 6.78878 4.21351C6.97106 4.3991 7.21442 4.5 7.46429 4.5H9.63425C9.56187 4.32865 9.47857 4.15116 9.38356 3.97527C8.89769 3.07581 8.27398 2.5 7.46429 2.5ZM10 6.5V9.5L2.60001 9.5C2.30348 9.5 2.14122 9.49922 2.02464 9.4897C2.02 9.48932 2.0156 9.48893 2.01145 9.48855C2.01107 9.4844 2.01069 9.48001 2.01031 9.47537C2.00078 9.35878 2.00001 9.19653 2.00001 8.9V7.1C2.00001 6.80347 2.00078 6.64122 2.01031 6.52463C2.01069 6.51999 2.01107 6.5156 2.01145 6.51145C2.0156 6.51107 2.02 6.51068 2.02464 6.5103C2.14122 6.50078 2.30348 6.5 2.60001 6.5H10ZM4.66953 4.5C4.55822 4.18133 4.50001 3.84339 4.50001 3.5C4.50001 2.71011 4.80802 1.94902 5.36188 1.38508C5.91635 0.820531 6.67224 0.5 7.46429 0.5C9.259 0.5 10.3725 1.71845 11 2.77223C11.6275 1.71845 12.741 0.5 14.5357 0.5C15.3278 0.5 16.0837 0.820531 16.6381 1.38508C17.192 1.94902 17.5 2.71011 17.5 3.5C17.5 3.84339 17.4418 4.18133 17.3305 4.5L19.4319 4.5C19.6843 4.49997 19.9301 4.49994 20.1382 4.51695C20.3668 4.53562 20.6366 4.57969 20.908 4.71799C21.2843 4.90973 21.5903 5.2157 21.782 5.59202C21.9203 5.86344 21.9644 6.13318 21.9831 6.36177C22.0001 6.56992 22 6.81571 22 7.06808V8.93192C22 9.18429 22.0001 9.43008 21.9831 9.63823C21.9644 9.86682 21.9203 10.1366 21.782 10.408C21.5903 10.7843 21.2843 11.0903 20.908 11.282C20.6366 11.4203 20.3668 11.4644 20.1382 11.4831C20.0938 11.4867 20.0476 11.4895 20 11.4918V18.3386C20 18.8657 20 19.3205 19.9694 19.695C19.9371 20.0904 19.8658 20.4836 19.673 20.862C19.3854 21.4265 18.9265 21.8854 18.362 22.173C17.9836 22.3658 17.5904 22.4371 17.195 22.4694C16.8205 22.5 16.3657 22.5 15.8386 22.5H11.0014H11L10.9986 22.5H6.16144C5.6343 22.5 5.17954 22.5 4.80498 22.4694C4.40963 22.4371 4.01641 22.3658 3.63803 22.173C3.07355 21.8854 2.6146 21.4265 2.32699 20.862C2.13419 20.4836 2.06288 20.0904 2.03057 19.695C1.99997 19.3205 1.99999 18.8657 2 18.3385L2.00001 11.4918C1.95241 11.4895 1.90624 11.4867 1.86178 11.4831C1.63318 11.4644 1.36345 11.4203 1.09202 11.282C0.715701 11.0903 0.409739 10.7843 0.217992 10.408C0.0796947 10.1366 0.0356271 9.86682 0.0169504 9.63823C-5.6861e-05 9.43007 -2.74161e-05 9.18428 2.50544e-06 8.9319L5.24726e-06 7.1C5.24726e-06 7.08936 3.93595e-06 7.07872 2.62465e-06 7.0681C-2.72969e-05 6.81572 -5.67418e-05 6.56993 0.0169505 6.36177C0.0356274 6.13318 0.079695 5.86344 0.217992 5.59202C0.409739 5.21569 0.7157 4.90973 1.09202 4.71799C1.36345 4.57969 1.63318 4.53562 1.86178 4.51695C2.06993 4.49994 2.31573 4.49997 2.56811 4.5C2.57873 4.5 2.58936 4.5 2.60001 4.5H4.66953ZM4.00001 11.5V18.3C4.00001 18.8766 4.00078 19.2488 4.02393 19.5322C4.04613 19.8038 4.08381 19.9045 4.109 19.954C4.20487 20.1421 4.35785 20.2951 4.54601 20.391C4.59546 20.4162 4.69618 20.4539 4.96784 20.4761C5.25118 20.4992 5.62345 20.5 6.20001 20.5H10V11.5H4.00001ZM12 11.5V20.5H15.8C16.3766 20.5 16.7488 20.4992 17.0322 20.4761C17.3038 20.4539 17.4046 20.4162 17.454 20.391C17.6422 20.2951 17.7951 20.1422 17.891 19.954C17.9162 19.9045 17.9539 19.8038 17.9761 19.5322C17.9992 19.2488 18 18.8766 18 18.3V11.5H12ZM19.4 9.5C19.6965 9.5 19.8588 9.49922 19.9754 9.4897C19.98 9.48932 19.9844 9.48893 19.9886 9.48854C19.9889 9.4844 19.9893 9.48001 19.9897 9.47537C19.9992 9.35878 20 9.19653 20 8.9V7.1C20 6.80347 19.9992 6.64122 19.9897 6.52463C19.9893 6.51999 19.9889 6.5156 19.9885 6.51145C19.9844 6.51107 19.98 6.51068 19.9754 6.5103C19.8588 6.50078 19.6965 6.5 19.4 6.5H12V9.5H19.4ZM14.5357 4.5C14.7856 4.5 15.0289 4.3991 15.2112 4.21351C15.3941 4.0273 15.5 3.77097 15.5 3.5C15.5 3.22903 15.3941 2.9727 15.2112 2.78649C15.0289 2.6009 14.7856 2.5 14.5357 2.5C13.726 2.5 13.1023 3.07581 12.6165 3.97527C12.5214 4.15116 12.4381 4.32865 12.3658 4.5H14.5357Z" fill="url(#paint0_linear_2051_439)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_2051_439" x1="0" y1="11.5" x2="22" y2="11.5" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#1E654F"/>
6
+ <stop offset="1" stop-color="#1C8D56"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/casino-challenges-overlay-modal/casino-challenges-overlay-modal.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,138 @@
1
+ :host {
2
+ display: block;
3
+ font-family: inherit;
4
+ }
5
+
6
+ * {
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+
12
+ button {
13
+ border: none;
14
+ background: none;
15
+ cursor: pointer;
16
+ touch-action: manipulation;
17
+ }
18
+ button:focus {
19
+ outline: none;
20
+ }
21
+
22
+ .ModalOverlay {
23
+ display: none;
24
+ position: fixed;
25
+ top: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ background-color: rgba(0, 0, 0, 0);
30
+ justify-content: center;
31
+ align-items: center;
32
+ z-index: 1;
33
+ }
34
+
35
+ .ModalOverlay.Open {
36
+ display: flex;
37
+ }
38
+
39
+ .ModalContent {
40
+ display: flex;
41
+ flex-direction: column;
42
+ align-items: center;
43
+ position: relative;
44
+ background: linear-gradient(90deg, var(--emw--color-background, #003E5C) 0.05%, var(--emw--color-background-secondary, #113B21) 87.69%);
45
+ padding: 26px;
46
+ border-radius: 26px;
47
+ border: 2px solid var(--emw--color-primary-variant, #1E654F);
48
+ width: 450px;
49
+ max-width: 100%;
50
+ text-align: center;
51
+ max-height: 90dvh;
52
+ min-height: 100px;
53
+ }
54
+
55
+ .InnerContainer {
56
+ border-radius: 20px;
57
+ background: #F9F8F8;
58
+ padding: 25px;
59
+ width: 100%;
60
+ }
61
+
62
+ .ImageWrapper {
63
+ margin-bottom: 6px;
64
+ }
65
+
66
+ .ModalHeader {
67
+ color: var(--emw--color-typography, #212529);
68
+ text-align: center;
69
+ font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);
70
+ margin: 0 0 10px;
71
+ font-size: 16px;
72
+ font-style: normal;
73
+ font-weight: 700;
74
+ line-height: normal;
75
+ text-transform: uppercase;
76
+ letter-spacing: 1px;
77
+ }
78
+
79
+ .ModalSubtitle {
80
+ color: var(--emw--color-gray-300, #212529);
81
+ text-align: center;
82
+ font-family: "Roboto", sans-serif;
83
+ font-size: 14px;
84
+ font-style: normal;
85
+ font-weight: 400;
86
+ margin-bottom: 10px;
87
+ }
88
+
89
+ .ModalReward {
90
+ background: linear-gradient(90deg, var(--emw--color-primary, #24AA4D) 0%, var(--emw--color-background-secondary, #113F21) 100%);
91
+ background-clip: text;
92
+ -webkit-background-clip: text;
93
+ -webkit-text-fill-color: transparent;
94
+ font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);
95
+ font-size: 14px;
96
+ font-style: normal;
97
+ font-weight: 700;
98
+ margin-bottom: 10px;
99
+ }
100
+
101
+ .ModalAddition {
102
+ color: var(--emw--color-gray-100, #727672);
103
+ text-align: center;
104
+ font-family: var(--emw--button-typography, "Roboto", sans-serif);
105
+ font-size: 12px;
106
+ font-style: normal;
107
+ font-weight: 400;
108
+ margin-bottom: 10px;
109
+ }
110
+
111
+ .ModalAddition a {
112
+ background: linear-gradient(90deg, var(--emw--color-primary, #24AA4D) 0%, var(--emw--color-background-secondary, #113F21) 100%);
113
+ background-clip: text;
114
+ -webkit-background-clip: text;
115
+ -webkit-text-fill-color: transparent;
116
+ font-size: 12px;
117
+ font-style: normal;
118
+ font-weight: 700;
119
+ line-height: 15px;
120
+ text-decoration: none;
121
+ margin-left: 8px;
122
+ }
123
+
124
+ .ModalAction {
125
+ border-radius: var(--emw--button-border-radius, 99px);
126
+ border: 2px solid var(--emw--button-border-color, #083B17);
127
+ background: linear-gradient(90deg, var(--emw--color-primary, #24AA4D) 0%, var(--emw--color-background-secondary, #113F21) 100%);
128
+ padding: 14px 20px;
129
+ margin-top: 20px;
130
+ text-transform: uppercase;
131
+ color: var(--emw--button-text-color, #FFF);
132
+ text-align: center;
133
+ font-family: var(--emw--button-typography, "PF BeauSans Pro", sans-serif);
134
+ font-size: 12px;
135
+ font-style: normal;
136
+ font-weight: 700;
137
+ letter-spacing: 1px;
138
+ }
@@ -0,0 +1,382 @@
1
+ import { h } from "@stencil/core";
2
+ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../../../../../../../libs/common/src/styling/index";
3
+ import giftBox from "../../assets/giftbox.svg";
4
+ import { resolveTranslationUrl, translate } from "../../utils/locale.utils";
5
+ export class CasinoChallengesOverlayModal {
6
+ constructor() {
7
+ this.mbSource = undefined;
8
+ this.clientStyling = undefined;
9
+ this.clientStylingUrl = undefined;
10
+ this.language = 'en';
11
+ this.isOpen = false;
12
+ this.showIcon = true;
13
+ this.showButton = true;
14
+ this.header = '';
15
+ this.subtitle = '';
16
+ this.reward = '';
17
+ this.addition = '';
18
+ this.additionLinkUrl = '';
19
+ this.additionLinkText = '';
20
+ this.actionText = '';
21
+ this.translationUrl = '';
22
+ this.handleClick = () => { };
23
+ }
24
+ handleClientStylingChange(newValue, oldValue) {
25
+ if (newValue != oldValue) {
26
+ setClientStyling(this.stylingContainer, this.clientStyling);
27
+ }
28
+ }
29
+ handleClientStylingUrlChange(newValue, oldValue) {
30
+ if (newValue != oldValue) {
31
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
32
+ }
33
+ }
34
+ handleMbSourceChange(newValue, oldValue) {
35
+ if (newValue != oldValue) {
36
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
37
+ }
38
+ }
39
+ componentWillLoad() {
40
+ if (this.translationUrl) {
41
+ resolveTranslationUrl(this.translationUrl);
42
+ }
43
+ }
44
+ componentDidLoad() {
45
+ if (this.stylingContainer) {
46
+ if (this.mbSource)
47
+ setStreamStyling(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription);
48
+ if (this.clientStyling)
49
+ setClientStyling(this.stylingContainer, this.clientStyling);
50
+ if (this.clientStylingUrl)
51
+ setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
52
+ }
53
+ }
54
+ disconnectedCallback() {
55
+ this.stylingSubscription && this.stylingSubscription.unsubscribe();
56
+ }
57
+ render() {
58
+ return (h("div", { key: '2824c43ba2f3d5f9d1f4aca77dcdebce527edcb8', ref: (el) => (this.stylingContainer = el), class: `ModalOverlay ${this.isOpen && 'Open'}` }, h("div", { key: '479ba71d1d2c081b3d3cc93f52bd1848e299279b', class: "ModalWinAnimation" }), h("div", { key: 'c0e45b25e7a66438bca3f24dc8e9fd93e1da8b8f', class: "ModalContent GradientBorder" }, h("div", { key: '5d258e3480b8aeec879a15f5d063a8a4295575e0', class: 'InnerContainer' }, this.showIcon &&
59
+ h("div", { key: '7cfdec9f66854d92adf8dc7f023d7d17fd53ab25', class: "ImageWrapper" }, h("img", { key: '32e1a43bbfbca465b229fe3fd2a47be5ffae14e1', src: giftBox, alt: "gift-box-icon" })), h("h1", { key: '0236d690962bf8e6ec0722061198eebe22993963', class: "ModalHeader", innerHTML: this.header || translate('congrats', this.language) }), this.subtitle &&
60
+ h("div", { key: 'd76af009535ecf94808bdddc1d39cb5e6eb2ec8f', class: "ModalSubtitle", innerHTML: this.subtitle }), this.reward &&
61
+ h("div", { key: 'cf41803c33862996e57469dedd8e29c9ce1b03b4', class: "ModalReward", innerHTML: this.reward }), this.addition &&
62
+ h("div", { key: 'd6907547a7158d7d4e25b8445ce7da061999fb49', class: "ModalAddition" }, h("span", { key: 'dbf44912dbf402d392d063c2c4db7eec637f782d', innerHTML: this.addition }), this.additionLinkUrl && this.additionLinkText &&
63
+ h("a", { key: '19df109759ff7b92587e8f6a4cd9ec181d2ee694', href: this.additionLinkText }, this.additionLinkText)), this.showButton &&
64
+ h("button", { key: '290969fe58fff0df3b7f59231151c0a8e5d39cc4', class: "ModalAction", onClick: this.handleClick, innerHTML: this.actionText ? this.actionText : translate("continue", this.language) })))));
65
+ }
66
+ static get is() { return "casino-challenges-overlay-modal"; }
67
+ static get encapsulation() { return "shadow"; }
68
+ static get originalStyleUrls() {
69
+ return {
70
+ "$": ["casino-challenges-overlay-modal.scss"]
71
+ };
72
+ }
73
+ static get styleUrls() {
74
+ return {
75
+ "$": ["casino-challenges-overlay-modal.css"]
76
+ };
77
+ }
78
+ static get properties() {
79
+ return {
80
+ "mbSource": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "string",
85
+ "resolved": "string",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": ""
93
+ },
94
+ "attribute": "mb-source",
95
+ "reflect": true
96
+ },
97
+ "clientStyling": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string",
102
+ "resolved": "string",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "attribute": "client-styling",
112
+ "reflect": true
113
+ },
114
+ "clientStylingUrl": {
115
+ "type": "string",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "string",
119
+ "resolved": "string",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "client-styling-url",
129
+ "reflect": true
130
+ },
131
+ "language": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "language",
146
+ "reflect": false,
147
+ "defaultValue": "'en'"
148
+ },
149
+ "isOpen": {
150
+ "type": "boolean",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "boolean",
154
+ "resolved": "boolean",
155
+ "references": {}
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": ""
162
+ },
163
+ "attribute": "is-open",
164
+ "reflect": false,
165
+ "defaultValue": "false"
166
+ },
167
+ "showIcon": {
168
+ "type": "boolean",
169
+ "mutable": false,
170
+ "complexType": {
171
+ "original": "boolean",
172
+ "resolved": "boolean",
173
+ "references": {}
174
+ },
175
+ "required": false,
176
+ "optional": false,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "attribute": "show-icon",
182
+ "reflect": false,
183
+ "defaultValue": "true"
184
+ },
185
+ "showButton": {
186
+ "type": "boolean",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "boolean",
190
+ "resolved": "boolean",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": ""
198
+ },
199
+ "attribute": "show-button",
200
+ "reflect": false,
201
+ "defaultValue": "true"
202
+ },
203
+ "header": {
204
+ "type": "string",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "string",
208
+ "resolved": "string",
209
+ "references": {}
210
+ },
211
+ "required": false,
212
+ "optional": false,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": ""
216
+ },
217
+ "attribute": "header",
218
+ "reflect": false,
219
+ "defaultValue": "''"
220
+ },
221
+ "subtitle": {
222
+ "type": "string",
223
+ "mutable": false,
224
+ "complexType": {
225
+ "original": "string",
226
+ "resolved": "string",
227
+ "references": {}
228
+ },
229
+ "required": false,
230
+ "optional": false,
231
+ "docs": {
232
+ "tags": [],
233
+ "text": ""
234
+ },
235
+ "attribute": "subtitle",
236
+ "reflect": false,
237
+ "defaultValue": "''"
238
+ },
239
+ "reward": {
240
+ "type": "string",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "string",
244
+ "resolved": "string",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": ""
252
+ },
253
+ "attribute": "reward",
254
+ "reflect": false,
255
+ "defaultValue": "''"
256
+ },
257
+ "addition": {
258
+ "type": "string",
259
+ "mutable": false,
260
+ "complexType": {
261
+ "original": "string",
262
+ "resolved": "string",
263
+ "references": {}
264
+ },
265
+ "required": false,
266
+ "optional": false,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "attribute": "addition",
272
+ "reflect": false,
273
+ "defaultValue": "''"
274
+ },
275
+ "additionLinkUrl": {
276
+ "type": "string",
277
+ "mutable": false,
278
+ "complexType": {
279
+ "original": "string",
280
+ "resolved": "string",
281
+ "references": {}
282
+ },
283
+ "required": false,
284
+ "optional": false,
285
+ "docs": {
286
+ "tags": [],
287
+ "text": ""
288
+ },
289
+ "attribute": "addition-link-url",
290
+ "reflect": false,
291
+ "defaultValue": "''"
292
+ },
293
+ "additionLinkText": {
294
+ "type": "string",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "string",
298
+ "resolved": "string",
299
+ "references": {}
300
+ },
301
+ "required": false,
302
+ "optional": false,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": ""
306
+ },
307
+ "attribute": "addition-link-text",
308
+ "reflect": false,
309
+ "defaultValue": "''"
310
+ },
311
+ "actionText": {
312
+ "type": "string",
313
+ "mutable": false,
314
+ "complexType": {
315
+ "original": "string",
316
+ "resolved": "string",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": false,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": ""
324
+ },
325
+ "attribute": "action-text",
326
+ "reflect": false,
327
+ "defaultValue": "''"
328
+ },
329
+ "translationUrl": {
330
+ "type": "string",
331
+ "mutable": false,
332
+ "complexType": {
333
+ "original": "string",
334
+ "resolved": "string",
335
+ "references": {}
336
+ },
337
+ "required": false,
338
+ "optional": false,
339
+ "docs": {
340
+ "tags": [],
341
+ "text": ""
342
+ },
343
+ "attribute": "translation-url",
344
+ "reflect": true,
345
+ "defaultValue": "''"
346
+ },
347
+ "handleClick": {
348
+ "type": "unknown",
349
+ "mutable": false,
350
+ "complexType": {
351
+ "original": "(event: MouseEvent) => void",
352
+ "resolved": "(event: MouseEvent) => void",
353
+ "references": {
354
+ "MouseEvent": {
355
+ "location": "global",
356
+ "id": "global::MouseEvent"
357
+ }
358
+ }
359
+ },
360
+ "required": false,
361
+ "optional": false,
362
+ "docs": {
363
+ "tags": [],
364
+ "text": ""
365
+ },
366
+ "defaultValue": "() => {}"
367
+ }
368
+ };
369
+ }
370
+ static get watchers() {
371
+ return [{
372
+ "propName": "clientStyling",
373
+ "methodName": "handleClientStylingChange"
374
+ }, {
375
+ "propName": "clientStylingUrl",
376
+ "methodName": "handleClientStylingUrlChange"
377
+ }, {
378
+ "propName": "mbSource",
379
+ "methodName": "handleMbSourceChange"
380
+ }];
381
+ }
382
+ }
@@ -0,0 +1 @@
1
+ export { CasinoChallengesOverlayModal } from './casino-challenges-overlay-modal';
@@ -0,0 +1 @@
1
+ export * from './components/casino-challenges-overlay-modal';
@@ -0,0 +1,36 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const TRANSLATIONS = {
3
+ en: {
4
+ congrats: 'Congratulations!',
5
+ continue: 'Continue',
6
+ }
7
+ };
8
+ export const translate = (key, customLang) => {
9
+ const lang = customLang;
10
+ return TRANSLATIONS[lang ? lang : DEFAULT_LANGUAGE][key];
11
+ };
12
+ export const getTranslations = (data) => {
13
+ Object.keys(data).forEach((item) => {
14
+ for (let key in data[item]) {
15
+ if (!TRANSLATIONS[item]) {
16
+ TRANSLATIONS[item] = {};
17
+ }
18
+ TRANSLATIONS[item][key] = data[item][key];
19
+ }
20
+ });
21
+ };
22
+ export const resolveTranslationUrl = async (translationUrl) => {
23
+ if (translationUrl) {
24
+ try {
25
+ const response = await fetch(translationUrl);
26
+ if (!response.ok) {
27
+ throw new Error(`HTTP error! status: ${response.status}`);
28
+ }
29
+ const translations = await response.json();
30
+ getTranslations(translations);
31
+ }
32
+ catch (error) {
33
+ console.error('Failed to fetch or parse translations from URL:', error);
34
+ }
35
+ }
36
+ };
@@ -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 };