@everymatrix/player-limit-notification-nd 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 (61) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-8f6e611d.js +1261 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/player-limit-notification-nd-c65673d9.js +7505 -0
  6. package/dist/cjs/player-limit-notification-nd.cjs.entry.js +10 -0
  7. package/dist/cjs/player-limit-notification-nd.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/player-limit-notification-nd/index.js +1 -0
  10. package/dist/collection/components/player-limit-notification-nd/limitConfig.js +50 -0
  11. package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.css +315 -0
  12. package/dist/collection/components/player-limit-notification-nd/player-limit-notification-nd.js +815 -0
  13. package/dist/collection/index.js +1 -0
  14. package/dist/collection/utils/locale.utils.js +131 -0
  15. package/dist/collection/utils/types.js +19 -0
  16. package/dist/collection/utils/utils.js +3 -0
  17. package/dist/esm/app-globals-0f993ce5.js +3 -0
  18. package/dist/esm/index-92f4161f.js +1234 -0
  19. package/dist/esm/index.js +2 -0
  20. package/dist/esm/loader.js +11 -0
  21. package/dist/esm/player-limit-notification-nd-c9cf02e4.js +7503 -0
  22. package/dist/esm/player-limit-notification-nd.entry.js +2 -0
  23. package/dist/esm/player-limit-notification-nd.js +20 -0
  24. package/dist/index.cjs.js +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/player-limit-notification-nd/app-globals-0f993ce5.js +1 -0
  27. package/dist/player-limit-notification-nd/index-92f4161f.js +2 -0
  28. package/dist/player-limit-notification-nd/index.esm.js +1 -0
  29. package/dist/player-limit-notification-nd/player-limit-notification-nd-c9cf02e4.js +6657 -0
  30. package/dist/player-limit-notification-nd/player-limit-notification-nd.entry.js +1 -0
  31. package/dist/player-limit-notification-nd/player-limit-notification-nd.esm.js +1 -0
  32. package/dist/stencil.config.dev.js +19 -0
  33. package/dist/stencil.config.js +19 -0
  34. package/dist/storybook/main.js +43 -0
  35. package/dist/storybook/preview.js +9 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/stencil.config.d.ts +2 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/stencil.config.dev.d.ts +2 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/storybook/main.d.ts +3 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/packages/stencil/player-limit-notification-nd/storybook/preview.d.ts +70 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/index.d.ts +4 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +12 -0
  43. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  44. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  45. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/player-limit-notification-nd/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  46. package/dist/types/components/player-limit-notification-nd/index.d.ts +1 -0
  47. package/dist/types/components/player-limit-notification-nd/limitConfig.d.ts +50 -0
  48. package/dist/types/components/player-limit-notification-nd/player-limit-notification-nd.d.ts +71 -0
  49. package/dist/types/components.d.ts +61 -0
  50. package/dist/types/index.d.ts +1 -0
  51. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  52. package/dist/types/utils/locale.utils.d.ts +2 -0
  53. package/dist/types/utils/types.d.ts +69 -0
  54. package/dist/types/utils/utils.d.ts +1 -0
  55. package/loader/cdn.js +1 -0
  56. package/loader/index.cjs.js +1 -0
  57. package/loader/index.d.ts +24 -0
  58. package/loader/index.es2017.js +1 -0
  59. package/loader/index.js +2 -0
  60. package/loader/package.json +11 -0
  61. package/package.json +27 -0
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const playerLimitNotificationNd = require('./player-limit-notification-nd-c65673d9.js');
6
+ require('./index-8f6e611d.js');
7
+
8
+
9
+
10
+ exports.player_limit_notification_nd = playerLimitNotificationNd.PlayerLimitNotificationNd;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-8f6e611d.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('player-limit-notification-nd.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([["player-limit-notification-nd.cjs",[[1,"player-limit-notification-nd",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"session":[513],"userid":[513],"language":[513],"endpoint":[513],"limitsamount":[513],"limitsperiods":[513],"currency":[513],"customcurrencysymbols":[513],"translationurl":[513],"limitItems":[32],"limitTypeOptions":[32],"skipLimit":[32],"loading":[32],"confirmPopupVisibility":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}]]]], options);
23
+ });
24
+
25
+ exports.setNonce = index.setNonce;
@@ -0,0 +1,12 @@
1
+ {
2
+ "entries": [
3
+ "components/player-limit-notification-nd/player-limit-notification-nd.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 { PlayerLimitNotificationNd } from './player-limit-notification-nd';
@@ -0,0 +1,50 @@
1
+ export const DefaultLimitConfig = {
2
+ lugas: {
3
+ title: 'Deposit Limit',
4
+ value: 'lugas',
5
+ callValue: 'lugasLimit',
6
+ callValue16: 'Lugas',
7
+ },
8
+ deposit: {
9
+ title: 'Deposit Limit',
10
+ value: 'deposit',
11
+ callValue: 'depositLimits',
12
+ callValue16: 'Deposit',
13
+ },
14
+ loss: {
15
+ title: 'Loss Limit',
16
+ value: 'loss',
17
+ callValue: 'lossLimits',
18
+ callValue16: 'Loss',
19
+ },
20
+ wager: {
21
+ title: 'Wager Limit',
22
+ value: 'wager',
23
+ callValue: 'wageringLimits',
24
+ callValue16: 'Wagering',
25
+ },
26
+ stake: {
27
+ title: 'Stake Limit',
28
+ value: 'stake',
29
+ callValue: 'maxStake',
30
+ callValue16: 'MaxStake',
31
+ },
32
+ sessionLimit: {
33
+ title: 'Single Session Time Limit',
34
+ value: 'sessionLimit',
35
+ callValue: 'sessionLimits',
36
+ callValue16: 'sessionLimit',
37
+ },
38
+ cumulativeSession: {
39
+ title: 'Cumulative Session Time Limit',
40
+ value: 'cumulativeSession',
41
+ callValue: 'cumulativeSessionLimits',
42
+ callValue16: 'cumulativeSession',
43
+ },
44
+ netdeposit: {
45
+ title: 'Net Deposit Limit',
46
+ value: 'netdeposit',
47
+ callValue: 'netDepositLimits',
48
+ callValue16: 'NetDeposit',
49
+ },
50
+ };
@@ -0,0 +1,315 @@
1
+ @charset "UTF-8";
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ padding: 0;
6
+ margin: 0;
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ :host {
11
+ --vaadin-input-field-invalid-hover-highlight: transparent;
12
+ --vaadin-input-field-label-color: var(--emw--modal-label-color, #ababab);
13
+ --vaadin-input-field-background: var(--emw--modal-input-bg, #4f4f4f);
14
+ --vaadin-input-field-hovered-label-color: var(--emw--modal-label-color, #ababab);
15
+ --vaadin-input-field-value-color: var(--emw--modal-label-color, #ababab);
16
+ --vaadin-input-field-focused-label-color: var(--emw--modal-label-color, #ababab);
17
+ --vaadin-input-field-placeholder-color: var(--emw--modal-label-color, #ababab);
18
+ }
19
+
20
+ vaadin-combo-box {
21
+ border: none;
22
+ width: 100%;
23
+ background-color: transparent;
24
+ }
25
+ vaadin-combo-box::part(input-field) {
26
+ padding-left: 15px;
27
+ height: 40px;
28
+ }
29
+
30
+ input[type=number]::-webkit-outer-spin-button,
31
+ input[type=number]::-webkit-inner-spin-button {
32
+ -webkit-appearance: none;
33
+ margin: 0;
34
+ }
35
+
36
+ /* Firefox */
37
+ input[type=number] {
38
+ -moz-appearance: textfield;
39
+ }
40
+
41
+ .type-select-label,
42
+ .limit-period-label,
43
+ .amount-input-label {
44
+ display: inline-block;
45
+ font-size: 14px;
46
+ color: var(--emw--modal-label-color, #ababab);
47
+ margin: 0;
48
+ padding-bottom: 8px;
49
+ font-weight: 400;
50
+ }
51
+
52
+ .player-limit-modal {
53
+ display: flex;
54
+ position: fixed;
55
+ align-items: center;
56
+ justify-content: center;
57
+ width: 100%;
58
+ height: 100%;
59
+ z-index: 200;
60
+ top: 0;
61
+ left: 0;
62
+ padding: 0 10px;
63
+ background-color: rgba(0, 0, 0, 0.7);
64
+ }
65
+ .player-limit-modal .limit-modal-container {
66
+ color: var(--emw--modal-font-color, #fff);
67
+ padding: 15px;
68
+ max-width: 700px;
69
+ min-width: 300px;
70
+ max-height: 90vh;
71
+ overflow-y: auto;
72
+ position: relative;
73
+ min-height: 200px;
74
+ border-radius: 4px;
75
+ background-color: var(--emw--color-modal-background, #353535);
76
+ }
77
+ .player-limit-modal .limit-modal-container .limit-modal-content.disable-content {
78
+ pointer-events: none;
79
+ cursor: not-allowed;
80
+ opacity: 0.4;
81
+ }
82
+ .player-limit-modal .limit-modal-container .error-message {
83
+ display: block;
84
+ color: var(--emw--color-error, red);
85
+ min-height: 16px;
86
+ }
87
+ .player-limit-modal .limit-modal-container .limit-modal-title h2 {
88
+ font-size: 16px;
89
+ font-weight: 500;
90
+ margin-top: 15px;
91
+ margin-bottom: 15px;
92
+ }
93
+ .player-limit-modal .limit-modal-container .limit-item:nth-of-type(1) .remove-limit-button {
94
+ display: none;
95
+ }
96
+ .player-limit-modal .limit-modal-container .limit-item:not(:nth-of-type(1)) {
97
+ padding: 9px;
98
+ margin: 14px 0;
99
+ border-radius: 6px;
100
+ border: 1px solid #6a6a6a;
101
+ }
102
+ .player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper {
103
+ display: flex;
104
+ flex-wrap: nowrap;
105
+ justify-content: flex-start;
106
+ align-items: center;
107
+ gap: 4px;
108
+ }
109
+ .player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option {
110
+ flex-grow: 1;
111
+ border: 1px solid transparent;
112
+ cursor: pointer;
113
+ background: var(--emw--modal-input-bg, #4f4f4f);
114
+ width: 100px;
115
+ height: 40px;
116
+ font-size: 14px;
117
+ border-radius: 4px;
118
+ color: var(--emw--modal-font-color, #fff);
119
+ transition: 0.5s;
120
+ }
121
+ .player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option:disabled {
122
+ cursor: not-allowed;
123
+ opacity: 0.4;
124
+ }
125
+ .player-limit-modal .limit-modal-container .limit-item-period .limit-period-wrapper .limit-period-option.selected {
126
+ border-color: var(--emw--color-primary, #ffe30c);
127
+ }
128
+ .player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-wrapper {
129
+ display: flex;
130
+ flex-wrap: nowrap;
131
+ }
132
+ .player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content {
133
+ position: relative;
134
+ flex: 1;
135
+ margin-right: 6px;
136
+ }
137
+ .player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-inner {
138
+ padding-right: 30px;
139
+ padding-left: 15px;
140
+ outline: none;
141
+ border: none;
142
+ height: 40px;
143
+ color: var(--emw--modal-label-color, #ababab);
144
+ background-color: var(--emw--modal-input-bg, #4f4f4f);
145
+ width: 100%;
146
+ border-radius: 4px;
147
+ }
148
+ .player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix {
149
+ width: 20px;
150
+ height: 20px;
151
+ background-color: var(--emw--modal-label-color, #ababab);
152
+ border-radius: 50%;
153
+ position: absolute;
154
+ right: 0px;
155
+ transform: translate(-50%, -50%);
156
+ top: 50%;
157
+ text-align: center;
158
+ pointer-events: none;
159
+ }
160
+ .player-limit-modal .limit-modal-container .limit-item-amount .amount-input .amount-input-content .amount-input-suffix i {
161
+ color: var(--emw--modal-input-bg, #4f4f4f);
162
+ }
163
+ .player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button {
164
+ width: 40px;
165
+ height: 40px;
166
+ border: none;
167
+ border-radius: 4px;
168
+ cursor: pointer;
169
+ background-color: color-mix(in srgb, var(--emw--color-primary, #ffe30c) 20%, transparent 80%);
170
+ transition: 2s;
171
+ }
172
+ .player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button:hover {
173
+ background-color: color-mix(in srgb, var(--emw--color-primary, #ffe30c) 50%, white 50%);
174
+ }
175
+ .player-limit-modal .limit-modal-container .limit-item-amount .remove-limit-button svg {
176
+ fill: var(--emw--color-primary, #ffe30c);
177
+ }
178
+ .player-limit-modal .limit-modal-container .checkbox-container label {
179
+ display: flex;
180
+ align-items: center;
181
+ gap: 6px;
182
+ }
183
+ .player-limit-modal .limit-modal-container .checkbox-container .checkbox-original {
184
+ opacity: 0;
185
+ width: 0;
186
+ height: 0;
187
+ z-index: -1;
188
+ position: absolute;
189
+ }
190
+ .player-limit-modal .limit-modal-container .checkbox-container .checkbox-original:checked + .checkbox-custom::after {
191
+ opacity: 1;
192
+ }
193
+ .player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom {
194
+ display: inline-block;
195
+ width: 18px;
196
+ height: 18px;
197
+ background: var(--emw--modal-input-bg, #4f4f4f);
198
+ border-radius: 3px;
199
+ position: relative;
200
+ transition: 0.2s;
201
+ }
202
+ .player-limit-modal .limit-modal-container .checkbox-container .checkbox-custom::after {
203
+ content: "✔";
204
+ position: absolute;
205
+ top: 50%;
206
+ left: 50%;
207
+ transform: translate(-50%, -50%);
208
+ color: var(--emw--modal-font-color, #fff);
209
+ font-size: 12px;
210
+ opacity: 0;
211
+ transition: opacity 0.2s;
212
+ }
213
+ .player-limit-modal .limit-modal-container .checkbox-container .checkbox-label {
214
+ color: var(--emw--modal-label-color, #ababab);
215
+ font-size: 14px;
216
+ cursor: pointer;
217
+ user-select: none;
218
+ }
219
+ .player-limit-modal .limit-modal-container .limit-buttons {
220
+ display: flex;
221
+ justify-content: space-around;
222
+ align-items: center;
223
+ gap: 10px;
224
+ margin-top: 10px;
225
+ }
226
+ .player-limit-modal .limit-modal-container .limit-buttons .add-limit {
227
+ display: inline-flex;
228
+ align-items: center;
229
+ justify-content: center;
230
+ gap: 5px;
231
+ cursor: pointer;
232
+ border: 1px solid var(--emw--modal-font-color, #fff);
233
+ width: 150px;
234
+ height: 40px;
235
+ background: transparent;
236
+ border-radius: 6px;
237
+ color: var(--emw--modal-font-color, #fff);
238
+ }
239
+ .player-limit-modal .limit-modal-container .limit-buttons .add-limit:disabled {
240
+ cursor: not-allowed;
241
+ opacity: 0.4;
242
+ }
243
+ .player-limit-modal .limit-modal-container .limit-buttons .add-limit .add-limit-mark {
244
+ text-align: center;
245
+ font-size: 14px;
246
+ fill: var(--emw--modal-font-color, #fff);
247
+ }
248
+ .player-limit-modal .limit-modal-container .limit-buttons .save-limit {
249
+ cursor: pointer;
250
+ border: 1px solid var(--emw--color-primary, #ffe30c);
251
+ background: var(--emw--color-primary, #ffe30c);
252
+ width: 150px;
253
+ height: 40px;
254
+ border-radius: 6px;
255
+ color: var(--emw--color-black, black);
256
+ }
257
+ .player-limit-modal .limit-modal-container .limit-buttons .save-limit:disabled {
258
+ cursor: not-allowed;
259
+ opacity: 0.4;
260
+ }
261
+ .player-limit-modal .confirm-modal {
262
+ background-color: rgba(0, 0, 0, 0.7);
263
+ position: fixed;
264
+ z-index: 210;
265
+ top: 0;
266
+ left: 0;
267
+ padding: 0 10px;
268
+ width: 100%;
269
+ height: 100%;
270
+ display: flex;
271
+ align-items: center;
272
+ justify-content: center;
273
+ }
274
+ .player-limit-modal .confirm-modal .confirm-modal-content {
275
+ color: var(--emw--modal-font-color, #fff);
276
+ padding: 15px;
277
+ padding-top: 10px;
278
+ box-sizing: padding-box;
279
+ width: 336px;
280
+ overflow-y: auto;
281
+ position: relative;
282
+ border-radius: 4px;
283
+ background-color: var(--emw--color-modal-background, #353535);
284
+ }
285
+ .player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-title {
286
+ font-size: 16px;
287
+ font-weight: 500;
288
+ margin-top: 15px;
289
+ margin-bottom: 15px;
290
+ }
291
+ .player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons {
292
+ display: flex;
293
+ justify-content: space-around;
294
+ align-items: center;
295
+ gap: 10px;
296
+ margin-top: 10px;
297
+ }
298
+ .player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-close {
299
+ cursor: pointer;
300
+ border: 1px solid var(--emw--modal-font-color, #fff);
301
+ width: 150px;
302
+ height: 40px;
303
+ background: transparent;
304
+ border-radius: 6px;
305
+ color: var(--emw--modal-font-color, #fff);
306
+ }
307
+ .player-limit-modal .confirm-modal .confirm-modal-content .confirm-modal-buttons .confirm-limit-save {
308
+ cursor: pointer;
309
+ border: 1px solid var(--emw--color-primary, #ffe30c);
310
+ background: var(--emw--color-primary, #ffe30c);
311
+ width: 150px;
312
+ height: 40px;
313
+ border-radius: 6px;
314
+ color: var(--emw--color-black, black);
315
+ }