@everymatrix/gamification-dropdown 1.56.0 → 1.56.3
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.
- package/dist/cjs/{gamification-dropdown-b8288984.js → gamification-dropdown-b61f6455.js} +11 -23
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +18 -34
- package/dist/cjs/{index-ec2fd1aa.js → index-9f57df89.js} +135 -288
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-elevate-card-items-a73ef8aa.js → player-elevate-card-items-a64a5a53.js} +1 -1
- package/dist/cjs/player-elevate-card.cjs.entry.js +9 -21
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +12 -29
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +10 -36
- package/dist/esm/{gamification-dropdown-246b88da.js → gamification-dropdown-9a68cf16.js} +11 -23
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +18 -34
- package/dist/esm/{index-30fda5fb.js → index-da41a34a.js} +135 -288
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-elevate-card-items-be1e68f1.js → player-elevate-card-items-6cc8ac45.js} +1 -1
- package/dist/esm/player-elevate-card.entry.js +9 -21
- package/dist/esm/player-elevate-pointcard.entry.js +12 -29
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-9a95eec2.entry.js +1 -0
- package/dist/gamification-dropdown/p-a653bfbd.entry.js +1 -0
- package/dist/gamification-dropdown/{p-c3422048.js → p-c36d41e2.js} +1 -1
- package/dist/gamification-dropdown/p-d55c742c.entry.js +1 -0
- package/dist/gamification-dropdown/p-e2b2faba.js +2 -0
- package/dist/gamification-dropdown/p-fcccda48.js +1 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -6
- package/package.json +1 -1
- package/dist/gamification-dropdown/p-750bfdce.entry.js +0 -1
- package/dist/gamification-dropdown/p-9ccf7a30.js +0 -1
- package/dist/gamification-dropdown/p-b06e6dd1.entry.js +0 -1
- package/dist/gamification-dropdown/p-d3088e7c.entry.js +0 -1
- package/dist/gamification-dropdown/p-dec0ad6f.js +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
- /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const gamificationDropdown = require('./gamification-dropdown-
|
|
6
|
-
require('./index-
|
|
5
|
+
const gamificationDropdown = require('./gamification-dropdown-b61f6455.js');
|
|
6
|
+
require('./index-9f57df89.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9f57df89.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-9f57df89.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-a64a5a53.js');
|
|
7
7
|
|
|
8
8
|
const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\n .Inner .Row .ExpirationPoints {\n order: 1;\n }\n}\n.Card .PlayerImg {\n order: 0;\n}\n.Card .ExpirationPoints {\n order: 3;\n}\n.Card .LevelInfo {\n order: 2;\n}\n.Card .Inner .Row .PlayerImg {\n flex-direction: column;\n}\n.Card .Inner .Row .PointsInfo {\n width: 100%;\n text-align: center;\n display: flex;\n flex-direction: column;\n max-height: 50%;\n}\n.Card .Inner .PlayerAvatar .Badge {\n background-size: contain;\n background-repeat: no-repeat;\n position: absolute;\n right: 5px;\n bottom: -5px;\n width: 40%;\n height: 40%;\n overflow: visible;\n}\n.Card .Inner .Row .ExpirationPoints {\n text-align: left;\n color: var(--emw--color-red, red);\n}\n.Card .Inner .Row .Points {\n text-wrap: nowrap;\n}\n.Card .Inner .LevelInfo .ElevateLevel {\n flex-direction: column;\n}\n.Card .Inner .LevelInfo .ElevateLevel .LevelName {\n width: calc(100% - 20px);\n text-align: left;\n font-size: 13px;\n padding-left: 20px;\n margin: 10px 0;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpirationDate {\n text-align: center;\n font-size: smaller;\n}\n.Card .Inner .LevelInfo .ElevateLevel .ExpireTime {\n margin-left: 5px;\n}";
|
|
9
9
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -11,32 +11,20 @@ const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
|
11
11
|
const PlayerElevateCard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
15
|
-
* The style that widget shows,available value: Dark, Light
|
|
16
|
-
* Default: Dark
|
|
17
|
-
*/
|
|
14
|
+
this.endpoint = undefined;
|
|
18
15
|
this.theme = 'Dark';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
16
|
+
this.session = undefined;
|
|
17
|
+
this.playerAvatarUrl = undefined;
|
|
22
18
|
this.language = 'en';
|
|
23
|
-
|
|
24
|
-
* datePattern
|
|
25
|
-
*/
|
|
19
|
+
this.playerName = undefined;
|
|
26
20
|
this.dateFormat = 'yyyy-MM-dd';
|
|
27
|
-
/**
|
|
28
|
-
* Client custom styling via inline styles
|
|
29
|
-
*/
|
|
30
21
|
this.clientStyling = '';
|
|
31
|
-
/**
|
|
32
|
-
* Client custom styling via url
|
|
33
|
-
*/
|
|
34
22
|
this.clientStylingUrl = '';
|
|
35
|
-
/**
|
|
36
|
-
* Translation via url
|
|
37
|
-
*/
|
|
38
23
|
this.translationUrl = '';
|
|
24
|
+
this.pointExpireString = undefined;
|
|
39
25
|
this.playerLevelFlag = 0;
|
|
26
|
+
this.playerElevateLevel = undefined;
|
|
27
|
+
this.elevateWalletTotal = undefined;
|
|
40
28
|
}
|
|
41
29
|
onSessionOrEndpointChange() {
|
|
42
30
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const playerElevateCardItems = require('./player-elevate-card-items-
|
|
5
|
+
const index = require('./index-9f57df89.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-a64a5a53.js');
|
|
7
7
|
|
|
8
8
|
const playerElevatePointcardCss = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}";
|
|
9
9
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
@@ -11,40 +11,23 @@ const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
|
11
11
|
const PlayerElevatePointcard = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* Default: Dark
|
|
17
|
-
*/
|
|
14
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
15
|
+
this.endpoint = undefined;
|
|
18
16
|
this.theme = 'Dark';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
17
|
+
this.session = undefined;
|
|
18
|
+
this.playerAvatarUrl = undefined;
|
|
22
19
|
this.language = 'en';
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
* value: 'details'/'earningRule'
|
|
26
|
-
* It effected the button in card
|
|
27
|
-
* 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
|
|
28
|
-
* 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
|
|
29
|
-
*/
|
|
20
|
+
this.playerName = undefined;
|
|
21
|
+
this.cardTitle = undefined;
|
|
30
22
|
this.buttonType = 'earningRule';
|
|
31
|
-
/**
|
|
32
|
-
* datePattern
|
|
33
|
-
*/
|
|
34
23
|
this.dateFormat = 'yyyy-MM-dd';
|
|
35
|
-
/**
|
|
36
|
-
* Client custom styling via inline styles
|
|
37
|
-
*/
|
|
38
24
|
this.clientStyling = '';
|
|
39
|
-
/**
|
|
40
|
-
* Client custom styling via url
|
|
41
|
-
*/
|
|
42
25
|
this.clientStylingUrl = '';
|
|
43
|
-
/**
|
|
44
|
-
* Translation via url
|
|
45
|
-
*/
|
|
46
26
|
this.translationUrl = '';
|
|
47
|
-
this.
|
|
27
|
+
this.pointExpireString = undefined;
|
|
28
|
+
this.playerElevateLevel = undefined;
|
|
29
|
+
this.elevateWalletTotal = undefined;
|
|
30
|
+
this.elevateSPTotal = undefined;
|
|
48
31
|
}
|
|
49
32
|
onSessionOrEndpointChange() {
|
|
50
33
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|
|
@@ -4,28 +4,6 @@ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../.
|
|
|
4
4
|
import "../../../../../player-elevate-card/dist/types/index";
|
|
5
5
|
export class GamificationDropdown {
|
|
6
6
|
constructor() {
|
|
7
|
-
/**
|
|
8
|
-
* Language of the widget
|
|
9
|
-
*/
|
|
10
|
-
this.language = 'en';
|
|
11
|
-
/**
|
|
12
|
-
* Session of the user
|
|
13
|
-
*/
|
|
14
|
-
this.session = '';
|
|
15
|
-
/**
|
|
16
|
-
* Client custom styling via string
|
|
17
|
-
*/
|
|
18
|
-
this.clientStyling = '';
|
|
19
|
-
/**
|
|
20
|
-
* Client custom styling via url
|
|
21
|
-
*/
|
|
22
|
-
this.clientStylingUrl = '';
|
|
23
|
-
/**
|
|
24
|
-
* Translations via URL
|
|
25
|
-
*/
|
|
26
|
-
this.translationUrl = '';
|
|
27
|
-
this.isOpen = false;
|
|
28
|
-
this.isLoading = false;
|
|
29
7
|
this.navigateToGamification = () => {
|
|
30
8
|
window.postMessage({ type: 'NavigateToGamification' }, window.location.href);
|
|
31
9
|
this.isOpen = false;
|
|
@@ -47,6 +25,16 @@ export class GamificationDropdown {
|
|
|
47
25
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
48
26
|
}
|
|
49
27
|
};
|
|
28
|
+
this.endpoint = undefined;
|
|
29
|
+
this.language = 'en';
|
|
30
|
+
this.session = '';
|
|
31
|
+
this.mbSource = undefined;
|
|
32
|
+
this.clientStyling = '';
|
|
33
|
+
this.clientStylingUrl = '';
|
|
34
|
+
this.translationUrl = '';
|
|
35
|
+
this.isOpen = false;
|
|
36
|
+
this.isLoading = false;
|
|
37
|
+
this.loyaltyPoints = undefined;
|
|
50
38
|
}
|
|
51
39
|
handleNewTranslations() {
|
|
52
40
|
this.isLoading = true;
|
|
@@ -154,8 +142,6 @@ export class GamificationDropdown {
|
|
|
154
142
|
"tags": [],
|
|
155
143
|
"text": "Endpoint URL for the source of data"
|
|
156
144
|
},
|
|
157
|
-
"getter": false,
|
|
158
|
-
"setter": false,
|
|
159
145
|
"attribute": "endpoint",
|
|
160
146
|
"reflect": true
|
|
161
147
|
},
|
|
@@ -173,8 +159,6 @@ export class GamificationDropdown {
|
|
|
173
159
|
"tags": [],
|
|
174
160
|
"text": "Language of the widget"
|
|
175
161
|
},
|
|
176
|
-
"getter": false,
|
|
177
|
-
"setter": false,
|
|
178
162
|
"attribute": "language",
|
|
179
163
|
"reflect": true,
|
|
180
164
|
"defaultValue": "'en'"
|
|
@@ -193,8 +177,6 @@ export class GamificationDropdown {
|
|
|
193
177
|
"tags": [],
|
|
194
178
|
"text": "Session of the user"
|
|
195
179
|
},
|
|
196
|
-
"getter": false,
|
|
197
|
-
"setter": false,
|
|
198
180
|
"attribute": "session",
|
|
199
181
|
"reflect": true,
|
|
200
182
|
"defaultValue": "''"
|
|
@@ -213,8 +195,6 @@ export class GamificationDropdown {
|
|
|
213
195
|
"tags": [],
|
|
214
196
|
"text": "Client custom styling via streamStyling"
|
|
215
197
|
},
|
|
216
|
-
"getter": false,
|
|
217
|
-
"setter": false,
|
|
218
198
|
"attribute": "mb-source",
|
|
219
199
|
"reflect": true
|
|
220
200
|
},
|
|
@@ -232,8 +212,6 @@ export class GamificationDropdown {
|
|
|
232
212
|
"tags": [],
|
|
233
213
|
"text": "Client custom styling via string"
|
|
234
214
|
},
|
|
235
|
-
"getter": false,
|
|
236
|
-
"setter": false,
|
|
237
215
|
"attribute": "client-styling",
|
|
238
216
|
"reflect": true,
|
|
239
217
|
"defaultValue": "''"
|
|
@@ -252,8 +230,6 @@ export class GamificationDropdown {
|
|
|
252
230
|
"tags": [],
|
|
253
231
|
"text": "Client custom styling via url"
|
|
254
232
|
},
|
|
255
|
-
"getter": false,
|
|
256
|
-
"setter": false,
|
|
257
233
|
"attribute": "client-styling-url",
|
|
258
234
|
"reflect": true,
|
|
259
235
|
"defaultValue": "''"
|
|
@@ -272,8 +248,6 @@ export class GamificationDropdown {
|
|
|
272
248
|
"tags": [],
|
|
273
249
|
"text": "Translations via URL"
|
|
274
250
|
},
|
|
275
|
-
"getter": false,
|
|
276
|
-
"setter": false,
|
|
277
251
|
"attribute": "translation-url",
|
|
278
252
|
"reflect": true,
|
|
279
253
|
"defaultValue": "''"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement } from './index-da41a34a.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
let TRANSLATIONS = {
|
|
@@ -106,28 +106,6 @@ const GamificationDropdownStyle0 = gamificationDropdownCss;
|
|
|
106
106
|
const GamificationDropdown = class {
|
|
107
107
|
constructor(hostRef) {
|
|
108
108
|
registerInstance(this, hostRef);
|
|
109
|
-
/**
|
|
110
|
-
* Language of the widget
|
|
111
|
-
*/
|
|
112
|
-
this.language = 'en';
|
|
113
|
-
/**
|
|
114
|
-
* Session of the user
|
|
115
|
-
*/
|
|
116
|
-
this.session = '';
|
|
117
|
-
/**
|
|
118
|
-
* Client custom styling via string
|
|
119
|
-
*/
|
|
120
|
-
this.clientStyling = '';
|
|
121
|
-
/**
|
|
122
|
-
* Client custom styling via url
|
|
123
|
-
*/
|
|
124
|
-
this.clientStylingUrl = '';
|
|
125
|
-
/**
|
|
126
|
-
* Translations via URL
|
|
127
|
-
*/
|
|
128
|
-
this.translationUrl = '';
|
|
129
|
-
this.isOpen = false;
|
|
130
|
-
this.isLoading = false;
|
|
131
109
|
this.navigateToGamification = () => {
|
|
132
110
|
window.postMessage({ type: 'NavigateToGamification' }, window.location.href);
|
|
133
111
|
this.isOpen = false;
|
|
@@ -149,6 +127,16 @@ const GamificationDropdown = class {
|
|
|
149
127
|
document.removeEventListener('click', this.handleOutsideClick);
|
|
150
128
|
}
|
|
151
129
|
};
|
|
130
|
+
this.endpoint = undefined;
|
|
131
|
+
this.language = 'en';
|
|
132
|
+
this.session = '';
|
|
133
|
+
this.mbSource = undefined;
|
|
134
|
+
this.clientStyling = '';
|
|
135
|
+
this.clientStylingUrl = '';
|
|
136
|
+
this.translationUrl = '';
|
|
137
|
+
this.isOpen = false;
|
|
138
|
+
this.isLoading = false;
|
|
139
|
+
this.loyaltyPoints = undefined;
|
|
152
140
|
}
|
|
153
141
|
handleNewTranslations() {
|
|
154
142
|
this.isLoading = true;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-da41a34a.js';
|
|
2
|
+
export { s as setNonce } from './index-da41a34a.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { G as gamification_dropdown } from './gamification-dropdown-
|
|
2
|
-
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-
|
|
3
|
-
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-
|
|
1
|
+
export { G as gamification_dropdown } from './gamification-dropdown-9a68cf16.js';
|
|
2
|
+
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-da41a34a.js';
|
|
3
|
+
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, a as translateWithParams, T as TRANSLATIONS, P as PlayerAvatar, b as PlayerElevateLoyaltyLevel, c as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items-6cc8ac45.js';
|
|
4
4
|
|
|
5
5
|
const mergeTranslations = (url, target) => {
|
|
6
6
|
return new Promise((resolve) => {
|
|
@@ -24,18 +24,6 @@ const GeneralStylingWrapperStyle0 = generalStylingWrapperCss;
|
|
|
24
24
|
const GeneralStylingWrapper = class {
|
|
25
25
|
constructor(hostRef) {
|
|
26
26
|
registerInstance(this, hostRef);
|
|
27
|
-
/**
|
|
28
|
-
* Client custom styling via inline styles
|
|
29
|
-
*/
|
|
30
|
-
this.clientStyling = '';
|
|
31
|
-
/**
|
|
32
|
-
* Client custom styling via url
|
|
33
|
-
*/
|
|
34
|
-
this.clientStylingUrl = '';
|
|
35
|
-
/**
|
|
36
|
-
* Translation via url
|
|
37
|
-
*/
|
|
38
|
-
this.translationUrl = '';
|
|
39
27
|
this.stylingAppends = false;
|
|
40
28
|
this.setClientStyling = () => {
|
|
41
29
|
let sheet = document.createElement('style');
|
|
@@ -57,6 +45,10 @@ const GeneralStylingWrapper = class {
|
|
|
57
45
|
console.log('error ', err);
|
|
58
46
|
});
|
|
59
47
|
};
|
|
48
|
+
this.clientStyling = '';
|
|
49
|
+
this.clientStylingUrl = '';
|
|
50
|
+
this.translationUrl = '';
|
|
51
|
+
this.targetTranslations = undefined;
|
|
60
52
|
}
|
|
61
53
|
componentDidRender() {
|
|
62
54
|
// start custom styling area
|
|
@@ -374,6 +366,9 @@ const PlayerElevateCardData = class {
|
|
|
374
366
|
constructor(hostRef) {
|
|
375
367
|
registerInstance(this, hostRef);
|
|
376
368
|
this.playerElevateLeveLoaded = createEvent(this, "playerElevateLeveLoaded", 7);
|
|
369
|
+
this.params = undefined;
|
|
370
|
+
this.playerElevateLevel = undefined;
|
|
371
|
+
this.pointExpireString = undefined;
|
|
377
372
|
}
|
|
378
373
|
handleWindowResizs() {
|
|
379
374
|
this.initLevelProgressbar();
|
|
@@ -541,31 +536,20 @@ const PlayerElevateLoyaltycardStyle0 = playerElevateLoyaltycardCss;
|
|
|
541
536
|
const PlayerElevateLoyaltycard = class {
|
|
542
537
|
constructor(hostRef) {
|
|
543
538
|
registerInstance(this, hostRef);
|
|
544
|
-
|
|
545
|
-
* The style that widget shows,available value: Dark, Light
|
|
546
|
-
* Default: Dark
|
|
547
|
-
*/
|
|
539
|
+
this.endpoint = undefined;
|
|
548
540
|
this.theme = 'Dark';
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
*/
|
|
541
|
+
this.session = undefined;
|
|
542
|
+
this.playerAvatarUrl = undefined;
|
|
552
543
|
this.language = 'en';
|
|
553
|
-
|
|
554
|
-
* datePattern
|
|
555
|
-
*/
|
|
544
|
+
this.playerName = undefined;
|
|
556
545
|
this.dateFormat = 'yyyy-MM-dd';
|
|
557
|
-
|
|
558
|
-
* Client custom styling via inline styles
|
|
559
|
-
*/
|
|
546
|
+
this.mbSource = undefined;
|
|
560
547
|
this.clientStyling = '';
|
|
561
|
-
/**
|
|
562
|
-
* Client custom styling via url
|
|
563
|
-
*/
|
|
564
548
|
this.clientStylingUrl = '';
|
|
565
|
-
/**
|
|
566
|
-
* Translation via url
|
|
567
|
-
*/
|
|
568
549
|
this.translationUrl = '';
|
|
550
|
+
this.pointExpireString = undefined;
|
|
551
|
+
this.playerElevateLevel = undefined;
|
|
552
|
+
this.elevateWalletTotal = undefined;
|
|
569
553
|
}
|
|
570
554
|
onSessionOrEndpointChange() {
|
|
571
555
|
this.paramProxy = Object.assign(Object.assign({}, this.paramProxy), { session: this.session, endpoint: this.endpoint, language: this.language });
|