@everymatrix/gamification-dropdown 1.56.2 → 1.57.0
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-b61f6455.js → gamification-dropdown-bacd4b01.js} +1 -1
- package/dist/cjs/gamification-dropdown.cjs.js +2 -2
- package/dist/cjs/gamification-dropdown_4.cjs.entry.js +7 -6
- package/dist/cjs/{index-9f57df89.js → index-43105bc3.js} +8 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/locale.utils-dc4c7c34.js +224 -0
- package/dist/cjs/{player-elevate-card-items-a64a5a53.js → player-elevate-card-items-432f3d1b.js} +6 -167
- package/dist/cjs/player-elevate-card.cjs.entry.js +4 -3
- package/dist/cjs/player-elevate-pointcard.cjs.entry.js +5 -4
- package/dist/cjs/player-rakeback-card.cjs.entry.js +162 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/gamification-dropdown/gamification-dropdown.stories.js +46 -0
- package/dist/esm/{gamification-dropdown-9a68cf16.js → gamification-dropdown-8eb8a896.js} +1 -1
- package/dist/esm/gamification-dropdown.js +3 -3
- package/dist/esm/gamification-dropdown_4.entry.js +4 -3
- package/dist/esm/{index-da41a34a.js → index-71b1bdfa.js} +8 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/esm/locale.utils-71f870a8.js +220 -0
- package/dist/esm/{player-elevate-card-items-6cc8ac45.js → player-elevate-card-items-66be34fb.js} +3 -161
- package/dist/esm/player-elevate-card.entry.js +3 -2
- package/dist/esm/player-elevate-pointcard.entry.js +3 -2
- package/dist/esm/player-rakeback-card.entry.js +158 -0
- package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
- package/dist/gamification-dropdown/index.esm.js +1 -1
- package/dist/gamification-dropdown/p-3070ff30.entry.js +1 -0
- package/dist/gamification-dropdown/p-39a3034e.entry.js +1 -0
- package/dist/gamification-dropdown/{p-fcccda48.js → p-8c3440cc.js} +1 -1
- package/dist/gamification-dropdown/p-a48fd792.entry.js +1 -0
- package/dist/gamification-dropdown/p-c3e53f66.js +1 -0
- package/dist/gamification-dropdown/p-cec5fb75.entry.js +1 -0
- package/dist/gamification-dropdown/{p-e2b2faba.js → p-f8b970c5.js} +1 -1
- package/dist/gamification-dropdown/p-fecbcc98.js +1 -0
- package/dist/storybook/main.js +47 -0
- package/dist/storybook/preview.js +9 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/storybook/main.d.ts +3 -0
- package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/storybook/preview.d.ts +70 -0
- package/dist/types/components/gamification-dropdown/gamification-dropdown.stories.d.ts +5 -0
- package/package.json +1 -1
- package/dist/gamification-dropdown/p-9a95eec2.entry.js +0 -1
- package/dist/gamification-dropdown/p-a653bfbd.entry.js +0 -1
- package/dist/gamification-dropdown/p-c36d41e2.js +0 -1
- package/dist/gamification-dropdown/p-d55c742c.entry.js +0 -1
package/dist/cjs/{player-elevate-card-items-a64a5a53.js → player-elevate-card-items-432f3d1b.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-43105bc3.js');
|
|
4
|
+
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
4
5
|
|
|
5
6
|
function _typeof(o) {
|
|
6
7
|
"@babel/helpers - typeof";
|
|
@@ -2198,178 +2199,19 @@ function cleanEscapedString(input) {
|
|
|
2198
2199
|
return matched[1].replace(doubleQuoteRegExp, "'");
|
|
2199
2200
|
}
|
|
2200
2201
|
|
|
2201
|
-
const DEFAULT_LANGUAGE = 'en';
|
|
2202
|
-
const SUPPORTED_LANGUAGES = ['en', 'zh-hk', 'it', 'fr', 'tr', 'hr'];
|
|
2203
|
-
const TRANSLATIONS = {
|
|
2204
|
-
en: {
|
|
2205
|
-
redeem: 'Redeem',
|
|
2206
|
-
expireOn: 'Expire on ',
|
|
2207
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2208
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2209
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2210
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2211
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2212
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2213
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2214
|
-
spendablePoints: 'Spendable Points:',
|
|
2215
|
-
details: 'Details',
|
|
2216
|
-
earningRules: 'Earning Rules',
|
|
2217
|
-
xp: 'XP',
|
|
2218
|
-
sp: 'Coins',
|
|
2219
|
-
termAndConditions: 'Term & Conditions',
|
|
2220
|
-
},
|
|
2221
|
-
'zh-hk': {
|
|
2222
|
-
redeem: '兑奖',
|
|
2223
|
-
expireOn: 'Expire on ',
|
|
2224
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2225
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2226
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2227
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2228
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2229
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2230
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2231
|
-
spendablePoints: 'Spendable Points:',
|
|
2232
|
-
details: '明细',
|
|
2233
|
-
earningRules: 'Earning Rules',
|
|
2234
|
-
xp: 'XP',
|
|
2235
|
-
sp: 'Coins',
|
|
2236
|
-
termAndConditions: 'Term & Conditions',
|
|
2237
|
-
},
|
|
2238
|
-
de: {
|
|
2239
|
-
redeem: 'Redeem',
|
|
2240
|
-
expireOn: 'Expire on ',
|
|
2241
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2242
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2243
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2244
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2245
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2246
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2247
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2248
|
-
spendablePoints: 'Spendable Points:',
|
|
2249
|
-
details: 'Details',
|
|
2250
|
-
earningRules: 'Earning Rules',
|
|
2251
|
-
xp: 'XP',
|
|
2252
|
-
sp: 'Coins',
|
|
2253
|
-
termAndConditions: 'Term & Conditions',
|
|
2254
|
-
},
|
|
2255
|
-
it: {
|
|
2256
|
-
redeem: 'Redeem',
|
|
2257
|
-
expireOn: 'Expire on ',
|
|
2258
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2259
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2260
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2261
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2262
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2263
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2264
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2265
|
-
spendablePoints: 'Spendable Points:',
|
|
2266
|
-
details: 'Details',
|
|
2267
|
-
earningRules: 'Earning Rules',
|
|
2268
|
-
xp: 'XP',
|
|
2269
|
-
sp: 'Coins',
|
|
2270
|
-
termAndConditions: 'Term & Conditions',
|
|
2271
|
-
},
|
|
2272
|
-
fr: {
|
|
2273
|
-
redeem: 'Redeem',
|
|
2274
|
-
expireOn: 'Expire on ',
|
|
2275
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2276
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2277
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2278
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2279
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2280
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2281
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2282
|
-
spendablePoints: 'Spendable Points:',
|
|
2283
|
-
details: 'Details',
|
|
2284
|
-
earningRules: 'Earning Rules',
|
|
2285
|
-
xp: 'XP',
|
|
2286
|
-
sp: 'Coins',
|
|
2287
|
-
termAndConditions: 'Term & Conditions',
|
|
2288
|
-
},
|
|
2289
|
-
es: {
|
|
2290
|
-
redeem: 'Redeem'
|
|
2291
|
-
},
|
|
2292
|
-
tr: {
|
|
2293
|
-
redeem: 'Redeem',
|
|
2294
|
-
expireOn: 'Expire on ',
|
|
2295
|
-
pointsToBeExpired: '${expirationPoints} points to expire in ${expireDay} days',
|
|
2296
|
-
pointsToBeExpiredDay: '${expirationPoints} points to expire in ${expireDay} day',
|
|
2297
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2298
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2299
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2300
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2301
|
-
tipsForNextLevel: 'Next level is ${levelName}. ${pointsToReach} XP to level up',
|
|
2302
|
-
spendablePoints: 'Spendable Points:',
|
|
2303
|
-
details: 'Details',
|
|
2304
|
-
earningRules: 'Earning Rules',
|
|
2305
|
-
xp: 'XP',
|
|
2306
|
-
sp: 'Coins',
|
|
2307
|
-
termAndConditions: 'Term & Conditions',
|
|
2308
|
-
},
|
|
2309
|
-
ru: {
|
|
2310
|
-
redeem: 'Redeem'
|
|
2311
|
-
},
|
|
2312
|
-
ro: {
|
|
2313
|
-
redeem: 'Redeem'
|
|
2314
|
-
},
|
|
2315
|
-
hr: {
|
|
2316
|
-
redeem: 'Otkupiti',
|
|
2317
|
-
expireOn: 'Istječe',
|
|
2318
|
-
pointsToBeExpired: '${expirationPoints} bodova ističe za ${expireDay} dana',
|
|
2319
|
-
pointsToBeExpiredHours: '${expirationPoints} points to expire in ${expireDay} hours',
|
|
2320
|
-
pointsToBeExpiredHour: '${expirationPoints} points to expire in ${expireDay} hour',
|
|
2321
|
-
pointsToBeExpiredMinutes: '${expirationPoints} points to expire in ${expireDay} minutes',
|
|
2322
|
-
pointsToBeExpiredMinute: '${expirationPoints} points to expire in ${expireDay} minute',
|
|
2323
|
-
tipsForNextLevel: 'Trebate ${pointsToReach} da dosegnete razinu ${levelName}',
|
|
2324
|
-
spendablePoints: 'Bodovi za potrošit:',
|
|
2325
|
-
details: 'Detalji',
|
|
2326
|
-
xp: 'XP',
|
|
2327
|
-
},
|
|
2328
|
-
hu: {
|
|
2329
|
-
redeem: 'Redeem'
|
|
2330
|
-
},
|
|
2331
|
-
pl: {
|
|
2332
|
-
redeem: 'Redeem'
|
|
2333
|
-
},
|
|
2334
|
-
pt: {
|
|
2335
|
-
redeem: 'Redeem'
|
|
2336
|
-
},
|
|
2337
|
-
sl: {
|
|
2338
|
-
redeem: 'Redeem'
|
|
2339
|
-
},
|
|
2340
|
-
sr: {
|
|
2341
|
-
redeem: 'Redeem'
|
|
2342
|
-
}
|
|
2343
|
-
};
|
|
2344
|
-
const translate = (key, customLang) => {
|
|
2345
|
-
const lang = customLang;
|
|
2346
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2347
|
-
};
|
|
2348
|
-
const translateWithParams = (key, params) => {
|
|
2349
|
-
const lang = params['lang'];
|
|
2350
|
-
let templateString = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2351
|
-
if (!params) {
|
|
2352
|
-
return TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
|
|
2353
|
-
}
|
|
2354
|
-
Object.keys(params).forEach((paramName) => {
|
|
2355
|
-
templateString = templateString.replace(new RegExp('\\$\{' + paramName + '\}', 'gm'), params[paramName]);
|
|
2356
|
-
});
|
|
2357
|
-
return templateString;
|
|
2358
|
-
};
|
|
2359
|
-
|
|
2360
2202
|
const levelPercentSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIyOCIgc3R5bGU9Im9wYWNpdHk6IDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8cmVjdCB5PSIxMiIgeD0iMiIgd2lkdGg9IjEwMCUiIGlkPSJ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5PSIwIiB3aWR0aD0iMTI2IiBoZWlnaHQ9IjkxLjQ4MTQiIGZpbHRlclVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgY29sb3ItaW50ZXJwb2xhdGlvbi1maWx0ZXJzPSJzUkdCIj4KPGZlRmxvb2QgZmxvb2Qtb3BhY2l0eT0iMCIgcmVzdWx0PSJCYWNrZ3JvdW5kSW1hZ2VGaXgiLz4KPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CjxmZU9mZnNldCBkeT0iNCIvPgo8ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSIxMiIvPgo8ZmVDb2xvck1hdHJpeCB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC4yNSAwIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW4yPSJCYWNrZ3JvdW5kSW1hZ2VGaXgiIHJlc3VsdD0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIi8+CjxmZUJsZW5kIG1vZGU9Im5vcm1hbCIgaW49IlNvdXJjZUdyYXBoaWMiIGluMj0iZWZmZWN0MV9kcm9wU2hhZG93XzI0Ml80MjMxIiByZXN1bHQ9InNoYXBlIi8+CjwvZmlsdGVyPgo8L2RlZnM+Cjwvc3ZnPgo=';
|
|
2363
2205
|
|
|
2364
2206
|
const PlayerLoyaltyProcess = () => (index.h("span", { class: "LevelProgress", id: 'LevelProgress', innerHTML: levelPercentSvg }));
|
|
2365
2207
|
const PlayerPoints = ({ loyaltyPoints, spendablePoints, pointExpireString, language, }) => (index.h("div", { class: "PointsInfo" }, (loyaltyPoints && loyaltyPoints >= 0) &&
|
|
2366
|
-
index.h("div", { class: 'Points' }, loyaltyPoints, " ", index.h("sub", { class: "XP" }, translate('xp', language))), spendablePoints &&
|
|
2367
|
-
index.h("div", { class: 'Points' }, spendablePoints, " ", index.h("sub", { class: "XP" }, translate('sp', language))), pointExpireString && (index.h("div", { class: 'ExpirationPoints' }, pointExpireString, " "))));
|
|
2208
|
+
index.h("div", { class: 'Points' }, loyaltyPoints, " ", index.h("sub", { class: "XP" }, locale_utils.translate('xp', language))), spendablePoints &&
|
|
2209
|
+
index.h("div", { class: 'Points' }, spendablePoints, " ", index.h("sub", { class: "XP" }, locale_utils.translate('sp', language))), pointExpireString && (index.h("div", { class: 'ExpirationPoints' }, pointExpireString, " "))));
|
|
2368
2210
|
const PlayerElevateCardRedeem = ({ language, onRedeemClick }) => (index.h("div", { class: "CardCell Redeem" }, index.h("div", { class: "RedeemButton", onClick: () => {
|
|
2369
2211
|
onRedeemClick();
|
|
2370
|
-
} }, index.h("span", null, translate('redeem', language)))));
|
|
2212
|
+
} }, index.h("span", null, locale_utils.translate('redeem', language)))));
|
|
2371
2213
|
const PlayerNameDiv = (props) => (index.h("div", { class: 'CardCell PlayerName Txt' }, props.playerName));
|
|
2372
|
-
const PlayerElevateLoyaltyLevel = (props) => (index.h("div", { class: 'CardCell ElevateLevel' }, index.h("span", { class: "LevelName", title: props.level }, props.level), props.expireTime && (index.h("div", { class: "CardCell ExpirationDate Txt" }, translate('expireOn', props.language), index.h("span", { class: "ExpireTime" }, format(new Date(props.expireTime), props.dateFormat || 'yyyy-MM-dd')), !props.hideInfo && (index.h("span", { class: "fa Info", style: { 'background': `url(${index.getAssetPath('../static/info.svg')})` } }, index.h("span", { class: "InfoTips", innerHTML: tipsInfoSvg })))))));
|
|
2214
|
+
const PlayerElevateLoyaltyLevel = (props) => (index.h("div", { class: 'CardCell ElevateLevel' }, index.h("span", { class: "LevelName", title: props.level }, props.level), props.expireTime && (index.h("div", { class: "CardCell ExpirationDate Txt" }, locale_utils.translate('expireOn', props.language), index.h("span", { class: "ExpireTime" }, format(new Date(props.expireTime), props.dateFormat || 'yyyy-MM-dd')), !props.hideInfo && (index.h("span", { class: "fa Info", style: { 'background': `url(${index.getAssetPath('../static/info.svg')})` } }, index.h("span", { class: "InfoTips", innerHTML: tipsInfoSvg })))))));
|
|
2373
2215
|
const PlayerAvatar = (props) => {
|
|
2374
2216
|
const badge = props.loyaltyIconUrl
|
|
2375
2217
|
? index.h("img", { class: "Badge", src: props.loyaltyIconUrl })
|
|
@@ -2384,9 +2226,6 @@ exports.PlayerElevateLoyaltyLevel = PlayerElevateLoyaltyLevel;
|
|
|
2384
2226
|
exports.PlayerLoyaltyProcess = PlayerLoyaltyProcess;
|
|
2385
2227
|
exports.PlayerNameDiv = PlayerNameDiv;
|
|
2386
2228
|
exports.PlayerPoints = PlayerPoints;
|
|
2387
|
-
exports.TRANSLATIONS = TRANSLATIONS;
|
|
2388
2229
|
exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds;
|
|
2389
2230
|
exports.requiredArgs = requiredArgs;
|
|
2390
2231
|
exports.toDate = toDate;
|
|
2391
|
-
exports.translate = translate;
|
|
2392
|
-
exports.translateWithParams = translateWithParams;
|
|
@@ -2,8 +2,9 @@
|
|
|
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-43105bc3.js');
|
|
6
|
+
const playerElevateCardItems = require('./player-elevate-card-items-432f3d1b.js');
|
|
7
|
+
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
7
8
|
|
|
8
9
|
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
10
|
const PlayerElevateCardStyle0 = playerElevateCardCss;
|
|
@@ -60,7 +61,7 @@ const PlayerElevateCard = class {
|
|
|
60
61
|
render() {
|
|
61
62
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
62
63
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
63
|
-
return (index.h("div", { key: '278a328dd084ee73b2707b93a57bccae64a2c9c7', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '68c885baf533447a7c77fd887bbec11e53768277', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '4066253a70cdd5e712ca244a708e7c1600c83071', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations:
|
|
64
|
+
return (index.h("div", { key: '278a328dd084ee73b2707b93a57bccae64a2c9c7', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: '68c885baf533447a7c77fd887bbec11e53768277', class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: '4066253a70cdd5e712ca244a708e7c1600c83071', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '64cda2a267c752056b3c7e3134cc324fa96bc261', params: this.paramProxy }), index.h("div", { key: 'c63ae83b401a35f5a78acd83dc3d7296c25141d7', class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (index.h(index.Fragment, { key: 'ba16e5bb54259c17fd9e5aa0e3c03c2ec5d4263c' }, index.h("div", { key: 'fa1bf74f45e28318c95266cc42c54541bde92718', class: 'Content Row' }, index.h("div", { key: '7ede46f91bcc0d894b2b633627a4ca97d15fbe90', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: 'b6d0bac085e0178512b8a63ba8fccae7d4cc8399', playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), index.h(playerElevateCardItems.PlayerPoints, { key: '88c445dbcd7dbe426a8de18beea02aecc03e26f3', loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (index.h("div", { key: '4d985e486ecb74a6c916b28e619de83cb3d77ac1', class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), index.h("div", { key: '34e051ee1ff79b825fca57db958e1e5684a0aca1', class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, index.h(playerElevateCardItems.PlayerNameDiv, { key: 'fa1b1f16e0b25c6adfba4c215e4ed377e05699b2', playerName: this.playerName }), index.h(playerElevateCardItems.PlayerElevateLoyaltyLevel, { key: '6d18b1422db202363ebcd56cc56946e0e071937b', hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), index.h(playerElevateCardItems.PlayerLoyaltyProcess, { key: '7dae355c4a5a9e28c70dced0ac061608f1753020' }), index.h(playerElevateCardItems.PlayerElevateCardRedeem, { key: '7e5f830b612c962a828c58f20a88dc97d315c910', onRedeemClick: this.onRedeemClick, language: this.language })))))))));
|
|
64
65
|
}
|
|
65
66
|
static get assetsDirs() { return ["../static"]; }
|
|
66
67
|
static get watchers() { return {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-43105bc3.js');
|
|
6
|
+
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
7
|
+
const playerElevateCardItems = require('./player-elevate-card-items-432f3d1b.js');
|
|
7
8
|
|
|
8
9
|
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
10
|
const PlayerElevatePointcardStyle0 = playerElevatePointcardCss;
|
|
@@ -61,9 +62,9 @@ const PlayerElevatePointcard = class {
|
|
|
61
62
|
render() {
|
|
62
63
|
const backgroundOuterImagePath = index.getAssetPath('../static/card-ground.svg');
|
|
63
64
|
const backgroundInnerImagePath = index.getAssetPath('../static/card-ground-over.svg');
|
|
64
|
-
return (index.h("div", { key: '4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations:
|
|
65
|
+
return (index.h("div", { key: '4e6e25bdd2a9f795369b39dbfd7e9adbd1523e17', class: `ElevateCardWrapper ${this.theme}` }, index.h("div", { key: 'ddeea1e67d51d5c0c8ed56edfd2d8d9c39e85253', class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, index.h("general-styling-wrapper", { key: 'c6d6e3a3bc9a54cb99b4268feb3c296527d1ba8c', clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("player-elevate-card-data", { key: '4371faac6967c5b3eced57f6251064ea4e1d6a65', params: this.paramProxy }), index.h("div", { key: 'c78235a6fdc2aed90df898f007b5ee091cece8dc', class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, index.h("div", { key: '025e779223c1c85c11998be8389a8ff836a31e6c', class: 'Content Row' }, this.playerElevateLevel && (index.h(index.Fragment, { key: '68daa6047dc93d2596d8b2309a26f56960737617' }, index.h("div", { key: '6a2d2b2e7d234bceaf3d9240c5d4f2eb80395319', class: "PlayerImg" }, index.h(playerElevateCardItems.PlayerAvatar, { key: 'aeaf35ad8055ad4f7312922c8600ea58d09be74f', onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), index.h("div", { key: 'bd51ce868b4d8a547f40ec55548bbf3cfa416534', class: `LevelInfo ${this.playerElevateLevel.name}` }, index.h("div", { key: '5f4d77a5b43c8efee850b9813bc1c8e61d27d45d', class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : locale_utils.translate('spendablePoints')), index.h("div", { key: 'bae5dc76d00c98aed803601c19fe3bf1aa4418d5', class: 'PointsTxt SPPoints' }, index.h(playerElevateCardItems.PlayerPoints, { key: '59d51bd37f44ed23108fc4356af41c01668354e3', spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }), index.h("a", { key: '3a923bea242ae5fa412f4448dca7277b3588621e', class: "TC", onClick: () => {
|
|
65
66
|
this.onDetailsClick();
|
|
66
|
-
} },
|
|
67
|
+
} }, locale_utils.translate('termAndConditions', this.language))), this.pointExpireString && (index.h("div", { key: '8803ae8d343885da58dfa04b9a4474ff473b5a74', class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
67
68
|
}
|
|
68
69
|
static get watchers() { return {
|
|
69
70
|
"session": ["onSessionOrEndpointChange"],
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-43105bc3.js');
|
|
6
|
+
const locale_utils = require('./locale.utils-dc4c7c34.js');
|
|
7
|
+
|
|
8
|
+
const playerRakebackCardCss = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}";
|
|
9
|
+
const PlayerRakebackCardStyle0 = playerRakebackCardCss;
|
|
10
|
+
|
|
11
|
+
const PlayerRakebackCard = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
/**
|
|
15
|
+
* Truncate number to specified decimal places (without rounding)
|
|
16
|
+
* @param num Number to be processed
|
|
17
|
+
* @param digits Number of decimal places to keep
|
|
18
|
+
*/
|
|
19
|
+
this.truncateNumber = (num, digits = 2) => {
|
|
20
|
+
const str = num.toString();
|
|
21
|
+
const [integer, decimal = ''] = str.split('.');
|
|
22
|
+
return digits > 0 ? `${integer}.${decimal ? decimal.slice(0, digits) : '00'}` : `${integer}`;
|
|
23
|
+
};
|
|
24
|
+
this.sendRakebackClaimedEvent = () => {
|
|
25
|
+
if (!this.endpoint || !this.session || !this.rakebackInfo.claimable || this.isLoading) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
window.postMessage({ type: 'RakebackClaimTrigger', points: this.rakebackInfo.points }, window.location.href);
|
|
29
|
+
};
|
|
30
|
+
this.endpoint = undefined;
|
|
31
|
+
this.theme = 'Dark';
|
|
32
|
+
this.session = undefined;
|
|
33
|
+
this.language = 'en';
|
|
34
|
+
this.clientStyling = '';
|
|
35
|
+
this.clientStylingUrl = '';
|
|
36
|
+
this.translationUrl = '';
|
|
37
|
+
this.show = true;
|
|
38
|
+
this.rakebackInfo = {
|
|
39
|
+
hasRakebackWallet: false,
|
|
40
|
+
points: 0.0,
|
|
41
|
+
currency: 'TRY',
|
|
42
|
+
claimable: false,
|
|
43
|
+
minutesCanClaim: 0,
|
|
44
|
+
showCanClaim: false
|
|
45
|
+
};
|
|
46
|
+
this.isLoading = false;
|
|
47
|
+
this.coolingOffPeriod = false;
|
|
48
|
+
this.showTheWidget = false;
|
|
49
|
+
}
|
|
50
|
+
async onSessionOrEndpointChange() {
|
|
51
|
+
await this.loadRakebackInfo();
|
|
52
|
+
}
|
|
53
|
+
async onShowOrHasRakebackWalletChange() {
|
|
54
|
+
this.showTheWidget = this.show && this.rakebackInfo.hasRakebackWallet;
|
|
55
|
+
}
|
|
56
|
+
handleMessage(event) {
|
|
57
|
+
const { type } = event === null || event === void 0 ? void 0 : event.data;
|
|
58
|
+
if (type === 'RakebackClaimConfirmed') {
|
|
59
|
+
this.claimRakeback();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
async loadRakebackInfo() {
|
|
63
|
+
if (!this.endpoint || !this.session) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.isLoading = true;
|
|
67
|
+
try {
|
|
68
|
+
const url = new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`);
|
|
69
|
+
const response = await fetch(url.href, {
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: {
|
|
72
|
+
'X-Sessionid': this.session,
|
|
73
|
+
'Content-Type': 'application/json'
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
if (!response.ok) {
|
|
77
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
78
|
+
}
|
|
79
|
+
const data = await response.json();
|
|
80
|
+
if (!data.success) {
|
|
81
|
+
throw new Error(data.errorMessage || 'Failed to load rakeback info');
|
|
82
|
+
}
|
|
83
|
+
const { rakebackWallet } = data === null || data === void 0 ? void 0 : data.data;
|
|
84
|
+
if (!rakebackWallet) {
|
|
85
|
+
window.postMessage({ type: 'RakebackWalletMissing' }, window.location.href);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const { total, claimable, currency, minutesCanClaim } = rakebackWallet || {};
|
|
89
|
+
this.rakebackInfo = {
|
|
90
|
+
hasRakebackWallet: true,
|
|
91
|
+
points: (total === null || total === void 0 ? void 0 : total.points) ? this.truncateNumber(total.points, 2) : `0.00`,
|
|
92
|
+
currency: currency || '',
|
|
93
|
+
claimable: claimable || false,
|
|
94
|
+
showCanClaim: Boolean(minutesCanClaim && minutesCanClaim > 0),
|
|
95
|
+
minutesCanClaim: minutesCanClaim
|
|
96
|
+
? minutesCanClaim <= 1 && minutesCanClaim > 0
|
|
97
|
+
? 1
|
|
98
|
+
: this.truncateNumber(minutesCanClaim, 0)
|
|
99
|
+
: 0
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
catch (err) {
|
|
103
|
+
console.error('Error loading rakeback info:', err);
|
|
104
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
105
|
+
}
|
|
106
|
+
finally {
|
|
107
|
+
this.isLoading = false;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async claimRakeback() {
|
|
111
|
+
this.isLoading = true;
|
|
112
|
+
try {
|
|
113
|
+
const url = new URL(`${this.endpoint}/v1/elevate/rakeback/claim`);
|
|
114
|
+
const response = await fetch(url.href, {
|
|
115
|
+
method: 'PUT',
|
|
116
|
+
headers: {
|
|
117
|
+
'X-Sessionid': this.session,
|
|
118
|
+
'Content-Type': 'application/json'
|
|
119
|
+
},
|
|
120
|
+
body: JSON.stringify({})
|
|
121
|
+
});
|
|
122
|
+
if (!response.ok) {
|
|
123
|
+
throw new Error(`HTTP error! status: ${response.status}`);
|
|
124
|
+
}
|
|
125
|
+
const data = await response.json();
|
|
126
|
+
if (!data.success) {
|
|
127
|
+
throw new Error(data.errorMessage || 'Failed to claim rakeback');
|
|
128
|
+
}
|
|
129
|
+
// Refresh rakeback information
|
|
130
|
+
await this.loadRakebackInfo();
|
|
131
|
+
// Send event notification for successful redemption
|
|
132
|
+
window.postMessage({ type: 'RakebackClaimed', points: this.rakebackInfo.points }, window.location.href);
|
|
133
|
+
}
|
|
134
|
+
catch (err) {
|
|
135
|
+
console.error('Error claiming rakeback:', err);
|
|
136
|
+
window.postMessage({ type: 'RakebackClaimError', message: err.message }, window.location.href);
|
|
137
|
+
}
|
|
138
|
+
finally {
|
|
139
|
+
this.isLoading = false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async componentWillLoad() {
|
|
143
|
+
await this.loadRakebackInfo();
|
|
144
|
+
await this.onShowOrHasRakebackWalletChange();
|
|
145
|
+
}
|
|
146
|
+
render() {
|
|
147
|
+
return this.showTheWidget ? (index.h("div", { class: "RakebackCard" }, index.h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: locale_utils.TRANSLATIONS, translationUrl: this.translationUrl }), index.h("div", { class: "RakebackCardContent" }, index.h("div", { class: "RakebackTitle" }, locale_utils.translate('rakebackTitle', this.language)), index.h("div", { class: "RakebackDetails" }, index.h("div", { class: "RakebackInfo" }, index.h("div", { class: "RakebackNumContainer" }, index.h("span", { class: "RakebackNum" }, this.rakebackInfo.points), index.h("span", { class: "RakebackCurrency" }, this.rakebackInfo.currency))), index.h("div", { class: `RakebackButton ${this.isLoading || !this.rakebackInfo.claimable ? 'disabled' : ''}`, onClick: this.sendRakebackClaimedEvent }, locale_utils.translate('claim', this.language))), !this.rakebackInfo.claimable && this.rakebackInfo.showCanClaim && (index.h("div", { class: "RakebackCoolOff" }, locale_utils.translateWithParams('minutesCanClaim', {
|
|
148
|
+
lang: this.language,
|
|
149
|
+
minutes: this.rakebackInfo.minutesCanClaim
|
|
150
|
+
})))))) : null;
|
|
151
|
+
}
|
|
152
|
+
static get watchers() { return {
|
|
153
|
+
"session": ["onSessionOrEndpointChange"],
|
|
154
|
+
"endpoint": ["onSessionOrEndpointChange"],
|
|
155
|
+
"language": ["onSessionOrEndpointChange"],
|
|
156
|
+
"show": ["onShowOrHasRakebackWalletChange"],
|
|
157
|
+
"rakebackInfo": ["onShowOrHasRakebackWalletChange"]
|
|
158
|
+
}; }
|
|
159
|
+
};
|
|
160
|
+
PlayerRakebackCard.style = PlayerRakebackCardStyle0;
|
|
161
|
+
|
|
162
|
+
exports.player_rakeback_card = PlayerRakebackCard;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import "@everymatrix/gamification-dropdown";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Gamification/Components/gamification-dropdown',
|
|
5
|
+
component: 'gamification-dropdown',
|
|
6
|
+
args: {
|
|
7
|
+
endpoint: "",
|
|
8
|
+
language: "en",
|
|
9
|
+
session: "",
|
|
10
|
+
mbSource: "",
|
|
11
|
+
clientStyling: "",
|
|
12
|
+
clientStylingUrl: "",
|
|
13
|
+
translationUrl: "",
|
|
14
|
+
},
|
|
15
|
+
argTypes: {
|
|
16
|
+
endpoint: { control: 'text', description: '' },
|
|
17
|
+
language: { control: 'text', description: '' },
|
|
18
|
+
session: { control: 'text', description: '' },
|
|
19
|
+
mbSource: { control: 'text', description: '' },
|
|
20
|
+
clientStyling: { control: 'text', description: '' },
|
|
21
|
+
clientStylingUrl: { control: 'text', description: '' },
|
|
22
|
+
translationUrl: { control: 'text', description: '' },
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
export default meta;
|
|
26
|
+
const Template = (args) => {
|
|
27
|
+
return html `<gamification-dropdown
|
|
28
|
+
endpoint="${args.endpoint}"
|
|
29
|
+
language="${args.language}"
|
|
30
|
+
session="${args.session}"
|
|
31
|
+
mbSource="${args.mbSource}"
|
|
32
|
+
clientStyling="${args.clientStyling}"
|
|
33
|
+
clientStylingUrl="${args.clientStylingUrl}"
|
|
34
|
+
translationUrl="${args.translationUrl}"
|
|
35
|
+
></gamification-dropdown>`;
|
|
36
|
+
};
|
|
37
|
+
export const Default = Template.bind({});
|
|
38
|
+
Default.args = {
|
|
39
|
+
endpoint: "",
|
|
40
|
+
language: "en",
|
|
41
|
+
session: "",
|
|
42
|
+
mbSource: "",
|
|
43
|
+
clientStyling: "",
|
|
44
|
+
clientStylingUrl: "",
|
|
45
|
+
translationUrl: "",
|
|
46
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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-71b1bdfa.js';
|
|
2
|
+
export { s as setNonce } from './index-71b1bdfa.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[
|
|
19
|
+
return bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{"endpoint":[513],"language":[513],"session":[513],"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"isOpen":[32],"isLoading":[32],"loyaltyPoints":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}],[1,"player-elevate-loyaltycard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"mbSource":[1,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{"params":["onParamsChanged"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}]]],["player-elevate-card",[[1,"player-elevate-card",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerLevelFlag":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard",[[1,"player-elevate-pointcard",{"endpoint":[513],"theme":[513],"session":[513],"playerAvatarUrl":[513,"player-avatar-url"],"language":[513],"playerName":[513,"player-name"],"cardTitle":[513,"card-title"],"buttonType":[513,"button-type"],"dateFormat":[513,"date-format"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"pointExpireString":[32],"playerElevateLevel":[32],"elevateWalletTotal":[32],"elevateSPTotal":[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"]}]]],["player-rakeback-card",[[1,"player-rakeback-card",{"endpoint":[513],"theme":[513],"session":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"show":[516],"rakebackInfo":[32],"isLoading":[32],"coolingOffPeriod":[32],"showTheWidget":[32]},[[8,"message","handleMessage"]],{"session":["onSessionOrEndpointChange"],"endpoint":["onSessionOrEndpointChange"],"language":["onSessionOrEndpointChange"],"show":["onShowOrHasRakebackWalletChange"],"rakebackInfo":["onShowOrHasRakebackWalletChange"]}]]]], options);
|
|
20
20
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
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 {
|
|
1
|
+
export { G as gamification_dropdown } from './gamification-dropdown-8eb8a896.js';
|
|
2
|
+
import { r as registerInstance, h, g as getElement, c as createEvent, a as getAssetPath, F as Fragment } from './index-71b1bdfa.js';
|
|
3
|
+
import { t as translateWithParams, T as TRANSLATIONS } from './locale.utils-71f870a8.js';
|
|
4
|
+
import { r as requiredArgs, t as toDate, g as getTimezoneOffsetInMilliseconds, P as PlayerAvatar, a as PlayerElevateLoyaltyLevel, b as PlayerPoints, c as PlayerLoyaltyProcess } from './player-elevate-card-items-66be34fb.js';
|
|
4
5
|
|
|
5
6
|
const mergeTranslations = (url, target) => {
|
|
6
7
|
return new Promise((resolve) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const NAMESPACE = 'gamification-dropdown';
|
|
2
|
-
const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean:
|
|
2
|
+
const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
5
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -61,6 +61,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
61
61
|
return import(
|
|
62
62
|
/* webpackMode: "lazy" */
|
|
63
63
|
'./player-elevate-pointcard.entry.js').then(processMod, consoleError);
|
|
64
|
+
case 'player-rakeback-card':
|
|
65
|
+
return import(
|
|
66
|
+
/* webpackMode: "lazy" */
|
|
67
|
+
'./player-rakeback-card.entry.js').then(processMod, consoleError);
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
return import(
|
|
@@ -352,6 +356,9 @@ var convertToPrivate = (node) => {
|
|
|
352
356
|
};
|
|
353
357
|
var parsePropertyValue = (propValue, propType) => {
|
|
354
358
|
if (propValue != null && !isComplexType(propValue)) {
|
|
359
|
+
if (propType & 4 /* Boolean */) {
|
|
360
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
361
|
+
}
|
|
355
362
|
if (propType & 1 /* String */) {
|
|
356
363
|
return String(propValue);
|
|
357
364
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { G as GamificationDropdown } from './gamification-dropdown-
|
|
2
|
-
import './index-
|
|
1
|
+
export { G as GamificationDropdown } from './gamification-dropdown-8eb8a896.js';
|
|
2
|
+
import './index-71b1bdfa.js';
|