@everymatrix/bonus-elevate-shop 1.0.69
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/bonus-elevate-shop/bonus-elevate-shop.esm.js +1 -0
- package/dist/bonus-elevate-shop/index.esm.js +0 -0
- package/dist/bonus-elevate-shop/p-0b8ef56a.entry.js +1 -0
- package/dist/bonus-elevate-shop/p-248310cb.js +2 -0
- package/dist/bonus-elevate-shop/p-3feb3345.entry.js +1 -0
- package/dist/bonus-elevate-shop/p-5048c470.entry.js +1 -0
- package/dist/bonus-elevate-shop/p-e1255160.js +1 -0
- package/dist/bonus-elevate-shop/p-e5a4fd7f.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/bonus-elevate-shop.cjs.js +25 -0
- package/dist/cjs/bonus-elevate-shop_4.cjs.entry.js +730 -0
- package/dist/cjs/index-950597be.js +1650 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/player-elevate-card-items-94136a9c.js +2364 -0
- package/dist/cjs/player-elevate-card.cjs.entry.js +74 -0
- package/dist/cjs/player-elevate-loyaltycard.cjs.entry.js +81 -0
- package/dist/collection/collection-manifest.json +28 -0
- package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.css +92 -0
- package/dist/collection/components/bonus-elevate-shop/bonus-elevate-shop.js +247 -0
- package/dist/collection/components/bonus-elevate-shop/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/renders/renderGifts.js +30 -0
- package/dist/collection/static/avaliable.false.svg +47 -0
- package/dist/collection/static/avaliable.true.svg +47 -0
- package/dist/collection/utils/fetch.js +29 -0
- package/dist/collection/utils/translation.js +7 -0
- package/dist/collection/utils/types.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/bonus-elevate-shop.js +20 -0
- package/dist/esm/bonus-elevate-shop_4.entry.js +723 -0
- package/dist/esm/index-a343bbd8.js +1620 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/player-elevate-card-items-ea0abf0a.js +2351 -0
- package/dist/esm/player-elevate-card.entry.js +70 -0
- package/dist/esm/player-elevate-loyaltycard.entry.js +77 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/static/button-default.svg +42 -0
- package/dist/static/button-disabled.svg +4 -0
- package/dist/static/button-hover.svg +4 -0
- package/dist/static/button-level.svg +27 -0
- package/dist/static/button-pressed.svg +18 -0
- package/dist/static/button-redeem.svg +36 -0
- package/dist/static/card-ground-over.png +0 -0
- package/dist/static/card-ground-over.svg +903 -0
- package/dist/static/card-ground.png +0 -0
- package/dist/static/card-ground.svg +34 -0
- package/dist/static/info.svg +4 -0
- package/dist/static/level-badge.png +0 -0
- package/dist/static/level-percent.svg +80 -0
- package/dist/static/tips-info.svg +21 -0
- package/dist/static/user.svg +3 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/bonus-elevate-shop/.stencil/packages/stencil/bonus-elevate-shop/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/bonus-elevate-shop/.stencil/packages/stencil/bonus-elevate-shop/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/bonus-elevate-shop/bonus-elevate-shop.d.ts +45 -0
- package/dist/types/components/bonus-elevate-shop/index.d.ts +1 -0
- package/dist/types/components.d.ts +101 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/renders/renderGifts.d.ts +3 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/fetch.d.ts +3 -0
- package/dist/types/utils/translation.d.ts +8 -0
- package/dist/types/utils/types.d.ts +12 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +31 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<svg width="46" height="46" viewBox="0 0 46 46" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_bd_179_6145)">
|
|
3
|
+
<circle cx="23" cy="19" r="19" style="fill: var(--emfe-w-elevate-avaliable-button-enabled-color, #53B65C);" />
|
|
4
|
+
<circle cx="23" cy="19" r="18" stroke="url(#paint0_linear_179_6145)" stroke-opacity="0.6" stroke-width="2"/>
|
|
5
|
+
<circle cx="23" cy="19" r="18" stroke="url(#paint1_linear_179_6145)" stroke-width="2"/>
|
|
6
|
+
<circle cx="23" cy="19" r="18" stroke="url(#paint2_linear_179_6145)" stroke-width="2"/>
|
|
7
|
+
</g>
|
|
8
|
+
<g filter="url(#filter1_d_179_6145)">
|
|
9
|
+
<path d="M31.1977 11C31.7015 11 32.1279 11.1777 32.4767 11.5332C32.8256 11.8887 33 12.3203 33 12.8281V18.9102C33 20.2852 32.7364 21.5977 32.2093 22.8477C31.6822 24.0977 30.9748 25.1719 30.0872 26.0703C29.1996 26.9688 28.1376 27.6816 26.9012 28.209C25.6647 28.7363 24.3682 29 23.0116 29C21.6473 29 20.3469 28.7363 19.1105 28.209C17.874 27.6816 16.8101 26.9688 15.9186 26.0703C15.0271 25.1719 14.3178 24.0977 13.7907 22.8477C13.2636 21.5977 13 20.2852 13 18.9102V12.8281C13 12.3281 13.1783 11.8984 13.5349 11.5391C13.8915 11.1797 14.3178 11 14.814 11H31.1977ZM23.0116 23.4688C23.376 23.4688 23.6938 23.3398 23.9651 23.082L28.6628 18.5352C28.9496 18.2617 29.093 17.9297 29.093 17.5391C29.093 17.1562 28.9593 16.8301 28.6919 16.5605C28.4244 16.291 28.1008 16.1562 27.7209 16.1562C27.3566 16.1562 27.0388 16.2852 26.7674 16.543L23.0116 20.1758L19.2558 16.543C18.9845 16.2852 18.6705 16.1562 18.314 16.1562C17.9341 16.1562 17.6105 16.291 17.343 16.5605C17.0756 16.8301 16.9419 17.1562 16.9419 17.5391C16.9419 17.9375 17.0814 18.2695 17.3605 18.5352L22.0698 23.082C22.3256 23.3398 22.6395 23.4688 23.0116 23.4688Z" fill="white"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<filter id="filter0_bd_179_6145" x="-36" y="-40" width="118" height="118" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
13
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
14
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
|
|
15
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_179_6145"/>
|
|
16
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
17
|
+
<feOffset dy="4"/>
|
|
18
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
19
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
20
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
21
|
+
<feBlend mode="normal" in2="effect1_backgroundBlur_179_6145" result="effect2_dropShadow_179_6145"/>
|
|
22
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_179_6145" result="shape"/>
|
|
23
|
+
</filter>
|
|
24
|
+
<filter id="filter1_d_179_6145" x="11" y="10" width="24" height="22" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
25
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
26
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
27
|
+
<feOffset dy="1"/>
|
|
28
|
+
<feGaussianBlur stdDeviation="1"/>
|
|
29
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
30
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
31
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_179_6145"/>
|
|
32
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_179_6145" result="shape"/>
|
|
33
|
+
</filter>
|
|
34
|
+
<linearGradient id="paint0_linear_179_6145" x1="49.2869" y1="15.1911" x2="36.3103" y2="15.603" gradientUnits="userSpaceOnUse">
|
|
35
|
+
<stop stop-color="white"/>
|
|
36
|
+
<stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
|
|
37
|
+
</linearGradient>
|
|
38
|
+
<linearGradient id="paint1_linear_179_6145" x1="4" y1="0" x2="19.3776" y2="8.17396" gradientUnits="userSpaceOnUse">
|
|
39
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
40
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
41
|
+
</linearGradient>
|
|
42
|
+
<linearGradient id="paint2_linear_179_6145" x1="42" y1="38" x2="27.0558" y2="34.3156" gradientUnits="userSpaceOnUse">
|
|
43
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
44
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
45
|
+
</linearGradient>
|
|
46
|
+
</defs>
|
|
47
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const getUrl = (path, params = {}) => {
|
|
2
|
+
return path + '?' + Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
|
3
|
+
};
|
|
4
|
+
export const fetcher = async (input, init = {}) => {
|
|
5
|
+
let res;
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
res = await fetch(input, init);
|
|
8
|
+
res = await res.text();
|
|
9
|
+
try {
|
|
10
|
+
res = JSON.parse(res);
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
console.error(e);
|
|
14
|
+
}
|
|
15
|
+
return res;
|
|
16
|
+
};
|
|
17
|
+
export async function fetchNorwayApi(path, params = {}, init = {}) {
|
|
18
|
+
const { endpoint, language, session } = this;
|
|
19
|
+
const fetchParams = params;
|
|
20
|
+
if (!init.method || init.method === 'GET') {
|
|
21
|
+
fetchParams.language = language;
|
|
22
|
+
}
|
|
23
|
+
const url = getUrl(`${endpoint}${path}`, fetchParams);
|
|
24
|
+
if (!init.headers)
|
|
25
|
+
init.headers = {};
|
|
26
|
+
init.headers['x-SessionId'] = session;
|
|
27
|
+
const res = await fetcher(url, init);
|
|
28
|
+
return res;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-a343bbd8.js';
|
|
2
|
+
export { s as setNonce } from './index-a343bbd8.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["bonus-elevate-shop_4",[[1,"bonus-elevate-shop",{"session":[513],"endpoint":[513],"language":[513],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"locale":[32],"gifts":[32],"isLoading":[32]},null,{"endpoint":["updateGifts"],"language":["updateGifts"],"session":["updateGifts"]}],[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"]}],[4,"general-styling-wrapper",{"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"translationUrl":[1,"translation-url"],"targetTranslations":[16]}],[0,"player-elevate-card-data",{"params":[8],"playerElevateLevel":[32],"pointExpireString":[32]},[[9,"resize","handleWindowResizs"]],{"params":["onParamsChanged"]}]]],["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-loyaltycard",[[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"],"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"]}]]]], options);
|
|
20
|
+
});
|