@everymatrix/player-elevate-card 1.31.2
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/general-styling-wrapper_5.cjs.entry.js +3162 -0
- package/dist/cjs/index-234565f1.js +1645 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/cjs/player-elevate-card.cjs.js +19 -0
- package/dist/collection/collection-manifest.json +22 -0
- package/dist/collection/components/player-elevate-card/player-elevate-card-items.js +43 -0
- package/dist/collection/components/player-elevate-card/player-elevate-card.css +65 -0
- package/dist/collection/components/player-elevate-card/player-elevate-card.js +282 -0
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.css +189 -0
- package/dist/collection/components/player-elevate-card-data/player-elevate-card-data.js +208 -0
- package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.css +68 -0
- package/dist/collection/components/player-elevate-loyaltycard/player-elevate-loyaltycard.js +287 -0
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.css +70 -0
- package/dist/collection/components/player-elevate-pointcard/player-elevate-pointcard.js +323 -0
- package/dist/collection/components/static/button-default.svg +42 -0
- package/dist/collection/components/static/button-disabled.svg +4 -0
- package/dist/collection/components/static/button-hover.svg +4 -0
- package/dist/collection/components/static/button-level.svg +27 -0
- package/dist/collection/components/static/button-pressed.svg +18 -0
- package/dist/collection/components/static/button-redeem.svg +36 -0
- package/dist/collection/components/static/card-ground-over.png +0 -0
- package/dist/collection/components/static/card-ground-over.svg +903 -0
- package/dist/collection/components/static/card-ground.png +0 -0
- package/dist/collection/components/static/card-ground.svg +34 -0
- package/dist/collection/components/static/info.svg +4 -0
- package/dist/collection/components/static/level-badge.png +0 -0
- package/dist/collection/components/static/level-percent.svg +80 -0
- package/dist/collection/components/static/tips-info.svg +21 -0
- package/dist/collection/components/static/user.svg +3 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/models/player-elevate.js +1 -0
- package/dist/collection/utils/locale.utils.js +144 -0
- package/dist/collection/utils/utils.js +47 -0
- package/dist/components/general-styling-wrapper.js +6 -0
- package/dist/components/general-styling-wrapper2.js +103 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/player-elevate-card-data.d.ts +11 -0
- package/dist/components/player-elevate-card-data.js +6 -0
- package/dist/components/player-elevate-card-data2.js +624 -0
- package/dist/components/player-elevate-card-items.js +2250 -0
- package/dist/components/player-elevate-card.d.ts +11 -0
- package/dist/components/player-elevate-card.js +118 -0
- package/dist/components/player-elevate-loyaltycard.d.ts +11 -0
- package/dist/components/player-elevate-loyaltycard.js +124 -0
- package/dist/components/player-elevate-pointcard.d.ts +11 -0
- package/dist/components/player-elevate-pointcard.js +127 -0
- package/dist/components/static/button-default.svg +42 -0
- package/dist/components/static/button-disabled.svg +4 -0
- package/dist/components/static/button-hover.svg +4 -0
- package/dist/components/static/button-level.svg +27 -0
- package/dist/components/static/button-pressed.svg +18 -0
- package/dist/components/static/button-redeem.svg +36 -0
- package/dist/components/static/card-ground-over.png +0 -0
- package/dist/components/static/card-ground-over.svg +903 -0
- package/dist/components/static/card-ground.png +0 -0
- package/dist/components/static/card-ground.svg +34 -0
- package/dist/components/static/info.svg +4 -0
- package/dist/components/static/level-badge.png +0 -0
- package/dist/components/static/level-percent.svg +80 -0
- package/dist/components/static/tips-info.svg +21 -0
- package/dist/components/static/user.svg +3 -0
- package/dist/esm/general-styling-wrapper_5.entry.js +3154 -0
- package/dist/esm/index-747197fd.js +1616 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/player-elevate-card.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-elevate-card/index.esm.js +0 -0
- package/dist/player-elevate-card/p-56620f7c.entry.js +1 -0
- package/dist/player-elevate-card/p-afe7b72e.js +1 -0
- package/dist/player-elevate-card/player-elevate-card.esm.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.js +32 -0
- package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/player-elevate-card/.stencil/packages/player-elevate-card/stencil.config.d.ts +2 -0
- package/dist/types/components/player-elevate-card/player-elevate-card-items.d.ts +19 -0
- package/dist/types/components/player-elevate-card/player-elevate-card.d.ts +53 -0
- package/dist/types/components/player-elevate-card-data/player-elevate-card-data.d.ts +22 -0
- package/dist/types/components/player-elevate-loyaltycard/player-elevate-loyaltycard.d.ts +53 -0
- package/dist/types/components/player-elevate-pointcard/player-elevate-pointcard.d.ts +66 -0
- package/dist/types/components.d.ts +335 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/player-elevate.d.ts +40 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/utils/locale.utils.d.ts +15 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +24 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PlayerElevateCard extends Components.PlayerElevateCard, HTMLElement {}
|
|
4
|
+
export const PlayerElevateCard: {
|
|
5
|
+
prototype: PlayerElevateCard;
|
|
6
|
+
new (): PlayerElevateCard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, getAssetPath, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { P as PlayerAvatar, a as PlayerPoints, b as PlayerNameDiv, c as PlayerElevateLoyaltyLevel, d as PlayerLoyaltyProcess, e as PlayerElevateCardRedeem } from './player-elevate-card-items.js';
|
|
3
|
+
import { T as TRANSLATIONS, d as defineCustomElement$2 } from './player-elevate-card-data2.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './general-styling-wrapper2.js';
|
|
5
|
+
|
|
6
|
+
const playerElevateCardCss = "@container (max-width: 270px) {\n .Card .Inner {\n flex-direction: column;\n }\n .Card .Inner .Content {\n padding: 9px;\n }\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(--emfe-w-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}";
|
|
7
|
+
|
|
8
|
+
const PlayerElevateCard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
/**
|
|
14
|
+
* The style that widget shows,available value: Dark, Light
|
|
15
|
+
* Default: Dark
|
|
16
|
+
*/
|
|
17
|
+
this.theme = 'Dark';
|
|
18
|
+
/**
|
|
19
|
+
* Widget Language to show
|
|
20
|
+
*/
|
|
21
|
+
this.language = 'en';
|
|
22
|
+
/**
|
|
23
|
+
* datePattern
|
|
24
|
+
*/
|
|
25
|
+
this.dateFormat = 'yyyy-MM-dd';
|
|
26
|
+
/**
|
|
27
|
+
* Client custom styling via inline styles
|
|
28
|
+
*/
|
|
29
|
+
this.clientStyling = '';
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via url
|
|
32
|
+
*/
|
|
33
|
+
this.clientStylingUrl = '';
|
|
34
|
+
/**
|
|
35
|
+
* Translation via url
|
|
36
|
+
*/
|
|
37
|
+
this.translationUrl = '';
|
|
38
|
+
this.playerLevelFlag = 0;
|
|
39
|
+
}
|
|
40
|
+
playerElevateLeveLoadedHandler(event) {
|
|
41
|
+
if (!event.detail) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
if (event.detail['elevateLevelWalletTotal']) {
|
|
45
|
+
this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
|
|
46
|
+
}
|
|
47
|
+
if (event.detail['elevateLevel']) {
|
|
48
|
+
this.playerElevateLevel = event.detail['elevateLevel'];
|
|
49
|
+
}
|
|
50
|
+
if (event.detail['pointExpireString']) {
|
|
51
|
+
this.pointExpireString = event.detail.xpExpireString;
|
|
52
|
+
}
|
|
53
|
+
if (event.detail.calculatedLevelFlag) {
|
|
54
|
+
this.playerLevelFlag = event.detail.calculatedLevelFlag;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
onRedeemClick() {
|
|
58
|
+
window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
|
|
59
|
+
}
|
|
60
|
+
componentWillLoad() {
|
|
61
|
+
this.paramProxy = {
|
|
62
|
+
endpoint: this.endpoint,
|
|
63
|
+
session: this.session,
|
|
64
|
+
language: this.language,
|
|
65
|
+
calculateLevelFlag: true,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
|
|
70
|
+
const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
|
|
71
|
+
return (h("div", { class: `ElevateCardWrapper ${this.theme}` }, h("div", { class: "Card Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { params: this.paramProxy }), h("div", { class: "OuterCover Inner", style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, this.playerElevateLevel && (h(Fragment, null, h("div", { class: 'Content Row' }, h("div", { class: "PlayerImg" }, h(PlayerAvatar, { playerAvatarUrl: this.playerAvatarUrl, loyaltyIconUrl: this.playerElevateLevel.presentation.asset }), h(PlayerPoints, { loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language })), this.pointExpireString && (h("div", { class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), h("div", { class: `LevelInfo Level${this.playerLevelFlag} ${this.playerElevateLevel.presentation.displayName}` }, h(PlayerNameDiv, { playerName: this.playerName }), h(PlayerElevateLoyaltyLevel, { hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h(PlayerLoyaltyProcess, null), h(PlayerElevateCardRedeem, { onRedeemClick: this.onRedeemClick, language: this.language })))))))));
|
|
72
|
+
}
|
|
73
|
+
static get assetsDirs() { return ["../static"]; }
|
|
74
|
+
static get style() { return playerElevateCardCss; }
|
|
75
|
+
}, [1, "player-elevate-card", {
|
|
76
|
+
"endpoint": [513],
|
|
77
|
+
"theme": [513],
|
|
78
|
+
"session": [513],
|
|
79
|
+
"playerAvatarUrl": [513, "player-avatar-url"],
|
|
80
|
+
"language": [513],
|
|
81
|
+
"playerName": [513, "player-name"],
|
|
82
|
+
"dateFormat": [513, "date-format"],
|
|
83
|
+
"clientStyling": [513, "client-styling"],
|
|
84
|
+
"clientStylingUrl": [513, "client-styling-url"],
|
|
85
|
+
"translationUrl": [513, "translation-url"],
|
|
86
|
+
"pointExpireString": [32],
|
|
87
|
+
"playerLevelFlag": [32],
|
|
88
|
+
"playerElevateLevel": [32],
|
|
89
|
+
"elevateWalletTotal": [32]
|
|
90
|
+
}, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]]]);
|
|
91
|
+
function defineCustomElement$1() {
|
|
92
|
+
if (typeof customElements === "undefined") {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const components = ["player-elevate-card", "general-styling-wrapper", "player-elevate-card-data"];
|
|
96
|
+
components.forEach(tagName => { switch (tagName) {
|
|
97
|
+
case "player-elevate-card":
|
|
98
|
+
if (!customElements.get(tagName)) {
|
|
99
|
+
customElements.define(tagName, PlayerElevateCard$1);
|
|
100
|
+
}
|
|
101
|
+
break;
|
|
102
|
+
case "general-styling-wrapper":
|
|
103
|
+
if (!customElements.get(tagName)) {
|
|
104
|
+
defineCustomElement$3();
|
|
105
|
+
}
|
|
106
|
+
break;
|
|
107
|
+
case "player-elevate-card-data":
|
|
108
|
+
if (!customElements.get(tagName)) {
|
|
109
|
+
defineCustomElement$2();
|
|
110
|
+
}
|
|
111
|
+
break;
|
|
112
|
+
} });
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const PlayerElevateCard = PlayerElevateCard$1;
|
|
116
|
+
const defineCustomElement = defineCustomElement$1;
|
|
117
|
+
|
|
118
|
+
export { PlayerElevateCard, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PlayerElevateLoyaltycard extends Components.PlayerElevateLoyaltycard, HTMLElement {}
|
|
4
|
+
export const PlayerElevateLoyaltycard: {
|
|
5
|
+
prototype: PlayerElevateLoyaltycard;
|
|
6
|
+
new (): PlayerElevateLoyaltycard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, getAssetPath, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { P as PlayerAvatar, c as PlayerElevateLoyaltyLevel, a as PlayerPoints, d as PlayerLoyaltyProcess } from './player-elevate-card-items.js';
|
|
3
|
+
import { b as translateWithParams, T as TRANSLATIONS, d as defineCustomElement$2 } from './player-elevate-card-data2.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './general-styling-wrapper2.js';
|
|
5
|
+
|
|
6
|
+
const playerElevateLoyaltycardCss = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo{width:100%}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emfe-w-color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emfe-w-elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emfe-w-elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emfe-w-color-black, #000);opacity:0.8;font-weight:bold}";
|
|
7
|
+
|
|
8
|
+
const PlayerElevateLoyaltycard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
/**
|
|
14
|
+
* The style that widget shows,available value: Dark, Light
|
|
15
|
+
* Default: Dark
|
|
16
|
+
*/
|
|
17
|
+
this.theme = 'Dark';
|
|
18
|
+
/**
|
|
19
|
+
* Widget Language to show
|
|
20
|
+
*/
|
|
21
|
+
this.language = 'en';
|
|
22
|
+
/**
|
|
23
|
+
* datePattern
|
|
24
|
+
*/
|
|
25
|
+
this.dateFormat = 'yyyy-MM-dd';
|
|
26
|
+
/**
|
|
27
|
+
* Client custom styling via inline styles
|
|
28
|
+
*/
|
|
29
|
+
this.clientStyling = '';
|
|
30
|
+
/**
|
|
31
|
+
* Client custom styling via url
|
|
32
|
+
*/
|
|
33
|
+
this.clientStylingUrl = '';
|
|
34
|
+
/**
|
|
35
|
+
* Translation via url
|
|
36
|
+
*/
|
|
37
|
+
this.translationUrl = '';
|
|
38
|
+
}
|
|
39
|
+
playerElevateLeveLoadedHandler(event) {
|
|
40
|
+
if (!event.detail) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (event.detail['elevateLevelWalletTotal']) {
|
|
44
|
+
this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
|
|
45
|
+
}
|
|
46
|
+
if (event.detail['elevateLevel']) {
|
|
47
|
+
this.playerElevateLevel = event.detail['elevateLevel'];
|
|
48
|
+
}
|
|
49
|
+
if (event.detail['pointExpireString']) {
|
|
50
|
+
this.pointExpireString = event.detail.xpExpireString;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
onRedeemClick() {
|
|
54
|
+
window.postMessage({ type: 'BEERedeemClicked' }, window.location.href);
|
|
55
|
+
}
|
|
56
|
+
componentWillLoad() {
|
|
57
|
+
this.paramsProxy = {
|
|
58
|
+
endpoint: this.endpoint,
|
|
59
|
+
session: this.session,
|
|
60
|
+
language: this.language,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
getNextLevelTips() {
|
|
64
|
+
var _a;
|
|
65
|
+
//need xx to reach Diamond
|
|
66
|
+
let nextLevel = (_a = this.playerElevateLevel) === null || _a === void 0 ? void 0 : _a.nextLevel;
|
|
67
|
+
if (this.playerElevateLevel && nextLevel) {
|
|
68
|
+
const pointsToReach = (nextLevel.entryPoints - this.playerElevateLevel.loyaltyPoints).toFixed(2);
|
|
69
|
+
return translateWithParams('tipsForNextLevel', {
|
|
70
|
+
pointsToReach,
|
|
71
|
+
levelName: nextLevel.name,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
return '';
|
|
75
|
+
}
|
|
76
|
+
render() {
|
|
77
|
+
const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
|
|
78
|
+
const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
|
|
79
|
+
return (h("div", { class: `ElevateCardWrapper ${this.theme}` }, h("div", { class: "LoyaltyCard Outer", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { params: this.paramsProxy }), h("div", { class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, null, h("div", { class: "PlayerImg" }, h(PlayerAvatar, { onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { class: `LevelInfo ${this.playerElevateLevel.name}` }, h(PlayerElevateLoyaltyLevel, { hideInfo: true, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), h(PlayerPoints, { loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), this.pointExpireString && (h("div", { class: 'PointsInfo ExpirationPoints' }, this.pointExpireString, " ")), h(PlayerLoyaltyProcess, null), h("div", { class: "NextLevelTip" }, this.getNextLevelTips())))))))));
|
|
80
|
+
}
|
|
81
|
+
static get style() { return playerElevateLoyaltycardCss; }
|
|
82
|
+
}, [1, "player-elevate-loyaltycard", {
|
|
83
|
+
"endpoint": [513],
|
|
84
|
+
"theme": [513],
|
|
85
|
+
"session": [513],
|
|
86
|
+
"playerAvatarUrl": [513, "player-avatar-url"],
|
|
87
|
+
"language": [513],
|
|
88
|
+
"playerName": [513, "player-name"],
|
|
89
|
+
"dateFormat": [513, "date-format"],
|
|
90
|
+
"clientStyling": [513, "client-styling"],
|
|
91
|
+
"clientStylingUrl": [513, "client-styling-url"],
|
|
92
|
+
"translationUrl": [513, "translation-url"],
|
|
93
|
+
"pointExpireString": [32],
|
|
94
|
+
"playerElevateLevel": [32],
|
|
95
|
+
"elevateWalletTotal": [32]
|
|
96
|
+
}, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]]]);
|
|
97
|
+
function defineCustomElement$1() {
|
|
98
|
+
if (typeof customElements === "undefined") {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const components = ["player-elevate-loyaltycard", "general-styling-wrapper", "player-elevate-card-data"];
|
|
102
|
+
components.forEach(tagName => { switch (tagName) {
|
|
103
|
+
case "player-elevate-loyaltycard":
|
|
104
|
+
if (!customElements.get(tagName)) {
|
|
105
|
+
customElements.define(tagName, PlayerElevateLoyaltycard$1);
|
|
106
|
+
}
|
|
107
|
+
break;
|
|
108
|
+
case "general-styling-wrapper":
|
|
109
|
+
if (!customElements.get(tagName)) {
|
|
110
|
+
defineCustomElement$3();
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case "player-elevate-card-data":
|
|
114
|
+
if (!customElements.get(tagName)) {
|
|
115
|
+
defineCustomElement$2();
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
} });
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const PlayerElevateLoyaltycard = PlayerElevateLoyaltycard$1;
|
|
122
|
+
const defineCustomElement = defineCustomElement$1;
|
|
123
|
+
|
|
124
|
+
export { PlayerElevateLoyaltycard, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PlayerElevatePointcard extends Components.PlayerElevatePointcard, HTMLElement {}
|
|
4
|
+
export const PlayerElevatePointcard: {
|
|
5
|
+
prototype: PlayerElevatePointcard;
|
|
6
|
+
new (): PlayerElevatePointcard;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, getAssetPath, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { T as TRANSLATIONS, a as translate, d as defineCustomElement$2 } from './player-elevate-card-data2.js';
|
|
3
|
+
import { P as PlayerAvatar, a as PlayerPoints } from './player-elevate-card-items.js';
|
|
4
|
+
import { d as defineCustomElement$3 } from './general-styling-wrapper2.js';
|
|
5
|
+
|
|
6
|
+
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(--emfe-w-color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emfe-w-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}";
|
|
7
|
+
|
|
8
|
+
const PlayerElevatePointcard$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
/**
|
|
14
|
+
* The style that widget shows,available value: Dark, Light
|
|
15
|
+
* Default: Dark
|
|
16
|
+
*/
|
|
17
|
+
this.theme = 'Dark';
|
|
18
|
+
/**
|
|
19
|
+
* Widget Language to show
|
|
20
|
+
*/
|
|
21
|
+
this.language = 'en';
|
|
22
|
+
/**
|
|
23
|
+
* Check if the card used in points details widget, default: 'earningRule'
|
|
24
|
+
* value: 'details'/'earningRule'
|
|
25
|
+
* It effected the button in card
|
|
26
|
+
* 'earningRule': button text, 'earning rules', post 'BEEPointRulesClicked' when clicked
|
|
27
|
+
* 'details': button text, 'details', post 'BEEDetailsClicked' when clicked
|
|
28
|
+
*/
|
|
29
|
+
this.buttonType = 'earningRule';
|
|
30
|
+
/**
|
|
31
|
+
* datePattern
|
|
32
|
+
*/
|
|
33
|
+
this.dateFormat = 'yyyy-MM-dd';
|
|
34
|
+
/**
|
|
35
|
+
* Client custom styling via inline styles
|
|
36
|
+
*/
|
|
37
|
+
this.clientStyling = '';
|
|
38
|
+
/**
|
|
39
|
+
* Client custom styling via url
|
|
40
|
+
*/
|
|
41
|
+
this.clientStylingUrl = '';
|
|
42
|
+
/**
|
|
43
|
+
* Translation via url
|
|
44
|
+
*/
|
|
45
|
+
this.translationUrl = '';
|
|
46
|
+
this.isPointDetailCard = this.buttonType === 'earningRule';
|
|
47
|
+
}
|
|
48
|
+
playerElevateLeveLoadedHandler(event) {
|
|
49
|
+
if (!event.detail) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (event.detail['elevateLevelWalletTotal']) {
|
|
53
|
+
this.elevateWalletTotal = event.detail['elevateLevelWalletTotal'];
|
|
54
|
+
this.elevateSPTotal = event.detail['loyaltyWalletTotal'];
|
|
55
|
+
}
|
|
56
|
+
if (event.detail['elevateLevel']) {
|
|
57
|
+
this.playerElevateLevel = event.detail['elevateLevel'];
|
|
58
|
+
}
|
|
59
|
+
if (event.detail['pointExpireString']) {
|
|
60
|
+
this.pointExpireString = event.detail.pointExpireString;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
onDetailsClick() {
|
|
64
|
+
window.postMessage({ type: this.isPointDetailCard ? 'BEEPointRulesClicked' : 'BEEDetailsClicked',
|
|
65
|
+
path: this.isPointDetailCard ? 'player-elevate-level' : 'player-elevate-point-details' }, window.location.href);
|
|
66
|
+
}
|
|
67
|
+
componentWillLoad() {
|
|
68
|
+
this.paramProxy = {
|
|
69
|
+
endpoint: this.endpoint,
|
|
70
|
+
session: this.session,
|
|
71
|
+
language: this.language,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
render() {
|
|
75
|
+
const backgroundOuterImagePath = getAssetPath('../static/card-ground.svg');
|
|
76
|
+
const backgroundInnerImagePath = getAssetPath('../static/card-ground-over.svg');
|
|
77
|
+
return (h("div", { class: `ElevateCardWrapper ${this.theme}` }, h("div", { class: "PointsCard Outer ", style: { 'backgroundImage': `url(${backgroundOuterImagePath}` } }, h("general-styling-wrapper", { clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: TRANSLATIONS, translationUrl: this.translationUrl }), h("player-elevate-card-data", { params: this.paramProxy }), h("div", { class: 'OuterCover Inner', style: { 'backgroundImage': `url(${backgroundInnerImagePath}` } }, h("div", { class: 'Content Row' }, this.playerElevateLevel && (h(Fragment, null, h("div", { class: "PlayerImg" }, h(PlayerAvatar, { onlyBadge: true, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), h("div", { class: `LevelInfo ${this.playerElevateLevel.name}` }, h("div", { class: "PointsTxt Label" }, this.cardTitle ? this.cardTitle : translate('spendablePoints')), h("div", { class: 'PointsTxt SPPoints' }, h(PlayerPoints, { spendablePoints: this.playerElevateLevel.spendablePoints, language: this.language }), h("a", { class: "TC", onClick: () => {
|
|
78
|
+
this.onDetailsClick();
|
|
79
|
+
} }, translate('termAndConditions', this.language))), this.pointExpireString && (h("div", { class: 'ExpirationPoints' }, this.pointExpireString, " "))))))))));
|
|
80
|
+
}
|
|
81
|
+
static get style() { return playerElevatePointcardCss; }
|
|
82
|
+
}, [1, "player-elevate-pointcard", {
|
|
83
|
+
"endpoint": [513],
|
|
84
|
+
"theme": [513],
|
|
85
|
+
"session": [513],
|
|
86
|
+
"playerAvatarUrl": [513, "player-avatar-url"],
|
|
87
|
+
"language": [513],
|
|
88
|
+
"playerName": [513, "player-name"],
|
|
89
|
+
"cardTitle": [513, "card-title"],
|
|
90
|
+
"buttonType": [513, "button-type"],
|
|
91
|
+
"dateFormat": [513, "date-format"],
|
|
92
|
+
"clientStyling": [513, "client-styling"],
|
|
93
|
+
"clientStylingUrl": [513, "client-styling-url"],
|
|
94
|
+
"translationUrl": [513, "translation-url"],
|
|
95
|
+
"pointExpireString": [32],
|
|
96
|
+
"playerElevateLevel": [32],
|
|
97
|
+
"elevateWalletTotal": [32],
|
|
98
|
+
"elevateSPTotal": [32]
|
|
99
|
+
}, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]]]);
|
|
100
|
+
function defineCustomElement$1() {
|
|
101
|
+
if (typeof customElements === "undefined") {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
const components = ["player-elevate-pointcard", "general-styling-wrapper", "player-elevate-card-data"];
|
|
105
|
+
components.forEach(tagName => { switch (tagName) {
|
|
106
|
+
case "player-elevate-pointcard":
|
|
107
|
+
if (!customElements.get(tagName)) {
|
|
108
|
+
customElements.define(tagName, PlayerElevatePointcard$1);
|
|
109
|
+
}
|
|
110
|
+
break;
|
|
111
|
+
case "general-styling-wrapper":
|
|
112
|
+
if (!customElements.get(tagName)) {
|
|
113
|
+
defineCustomElement$3();
|
|
114
|
+
}
|
|
115
|
+
break;
|
|
116
|
+
case "player-elevate-card-data":
|
|
117
|
+
if (!customElements.get(tagName)) {
|
|
118
|
+
defineCustomElement$2();
|
|
119
|
+
}
|
|
120
|
+
break;
|
|
121
|
+
} });
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const PlayerElevatePointcard = PlayerElevatePointcard$1;
|
|
125
|
+
const defineCustomElement = defineCustomElement$1;
|
|
126
|
+
|
|
127
|
+
export { PlayerElevatePointcard, defineCustomElement };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<svg width="95" height="51" viewBox="0 0 95 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_bd_169_22604)">
|
|
3
|
+
<rect x="4" width="87" height="43" rx="14" fill="#26CC37" shape-rendering="crispEdges"/>
|
|
4
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint0_linear_169_22604)" stroke-opacity="0.6"
|
|
5
|
+
stroke-width="2" shape-rendering="crispEdges"/>
|
|
6
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint1_linear_169_22604)" stroke-width="2"
|
|
7
|
+
shape-rendering="crispEdges"/>
|
|
8
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="url(#paint2_linear_169_22604)" stroke-width="2"
|
|
9
|
+
shape-rendering="crispEdges"/>
|
|
10
|
+
</g>
|
|
11
|
+
<defs>
|
|
12
|
+
<filter id="filter0_bd_169_22604" x="-36" y="-40" width="167" height="123" filterUnits="userSpaceOnUse"
|
|
13
|
+
color-interpolation-filters="sRGB">
|
|
14
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
15
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
|
|
16
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_169_22604"/>
|
|
17
|
+
<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"
|
|
18
|
+
result="hardAlpha"/>
|
|
19
|
+
<feOffset dy="4"/>
|
|
20
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
21
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
22
|
+
<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"/>
|
|
23
|
+
<feBlend mode="normal" in2="effect1_backgroundBlur_169_22604" result="effect2_dropShadow_169_22604"/>
|
|
24
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_169_22604" result="shape"/>
|
|
25
|
+
</filter>
|
|
26
|
+
<linearGradient id="paint0_linear_169_22604" x1="107.683" y1="17.19" x2="78.0658" y2="19.0918"
|
|
27
|
+
gradientUnits="userSpaceOnUse">
|
|
28
|
+
<stop stop-color="white"/>
|
|
29
|
+
<stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
|
|
30
|
+
</linearGradient>
|
|
31
|
+
<linearGradient id="paint1_linear_169_22604" x1="4" y1="0" x2="24.9374" y2="22.5174"
|
|
32
|
+
gradientUnits="userSpaceOnUse">
|
|
33
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
34
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
35
|
+
</linearGradient>
|
|
36
|
+
<linearGradient id="paint2_linear_169_22604" x1="91" y1="43" x2="61.9374" y2="28.5031"
|
|
37
|
+
gradientUnits="userSpaceOnUse">
|
|
38
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
39
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
40
|
+
</linearGradient>
|
|
41
|
+
</defs>
|
|
42
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<svg width="190" height="75" viewBox="0 0 190 75" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_dd_179_4415)">
|
|
3
|
+
<path d="M16 20C16 15.5817 19.5817 12 24 12H151C155.418 12 159 15.5817 159 20V32C159 36.4183 155.418 40 151 40H24C19.5817 40 16 36.4183 16 32V20Z" fill="url(#paint0_linear_179_4415)" shape-rendering="crispEdges"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<filter id="filter0_dd_179_4415" x="0.842043" y="0.631533" width="188.474" height="73.4739" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
7
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
8
|
+
<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"/>
|
|
9
|
+
<feOffset dx="7.57898" dy="11.3685"/>
|
|
10
|
+
<feGaussianBlur stdDeviation="11.3685"/>
|
|
11
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
12
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.0862745 0 0 0 0 0.0980392 0 0 0 0 0.141176 0 0 0 0.25 0"/>
|
|
13
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_179_4415"/>
|
|
14
|
+
<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"/>
|
|
15
|
+
<feOffset dx="-2" dy="-2"/>
|
|
16
|
+
<feGaussianBlur stdDeviation="3.5"/>
|
|
17
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
18
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.74902 0 0 0 0 0.470588 0 0 0 0 0.0235294 0 0 0 0.75 0"/>
|
|
19
|
+
<feBlend mode="normal" in2="effect1_dropShadow_179_4415" result="effect2_dropShadow_179_4415"/>
|
|
20
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_179_4415" result="shape"/>
|
|
21
|
+
</filter>
|
|
22
|
+
<linearGradient id="paint0_linear_179_4415" x1="87.5" y1="12" x2="87.5" y2="40" gradientUnits="userSpaceOnUse">
|
|
23
|
+
<stop stop-color="#FCC410"/>
|
|
24
|
+
<stop offset="1" stop-color="#FFBD2B" stop-opacity="0"/>
|
|
25
|
+
</linearGradient>
|
|
26
|
+
</defs>
|
|
27
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg width="95" height="51" viewBox="0 0 95 51" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g filter="url(#filter0_d_169_22603)">
|
|
3
|
+
<rect x="4" width="87" height="43" rx="14" fill="#008B0E" shape-rendering="crispEdges"/>
|
|
4
|
+
<rect x="5" y="1" width="85" height="41" rx="13" stroke="#71FF7F" stroke-width="2" shape-rendering="crispEdges"/>
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<filter id="filter0_d_169_22603" x="0" y="0" width="95" height="51" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
8
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
9
|
+
<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"/>
|
|
10
|
+
<feOffset dy="4"/>
|
|
11
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
12
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
13
|
+
<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"/>
|
|
14
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_169_22603"/>
|
|
15
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_169_22603" result="shape"/>
|
|
16
|
+
</filter>
|
|
17
|
+
</defs>
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="106" height="51" viewBox="0 0 106 51" fill="none">
|
|
2
|
+
<g filter="url(#filter0_bd_169_22606)">
|
|
3
|
+
<rect x="4" width="98" height="43" rx="14" fill="#26CC37" shape-rendering="crispEdges"/>
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint0_linear_169_22606)" stroke-opacity="0.6" stroke-width="2" shape-rendering="crispEdges"/>
|
|
7
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint1_linear_169_22606)" stroke-width="2" shape-rendering="crispEdges"/>
|
|
8
|
+
<rect x="5" y="1" width="96" height="41" rx="13" stroke="url(#paint2_linear_169_22606)" stroke-width="2" shape-rendering="crispEdges"/>
|
|
9
|
+
</g>
|
|
10
|
+
<defs>
|
|
11
|
+
<filter id="filter0_bd_169_22606" x="-36" y="-40" width="178" height="123" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
12
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
13
|
+
<feGaussianBlur in="BackgroundImageFix" stdDeviation="20"/>
|
|
14
|
+
<feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_169_22606"/>
|
|
15
|
+
<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"/>
|
|
16
|
+
<feOffset dy="4"/>
|
|
17
|
+
<feGaussianBlur stdDeviation="2"/>
|
|
18
|
+
<feComposite in2="hardAlpha" operator="out"/>
|
|
19
|
+
<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"/>
|
|
20
|
+
<feBlend mode="normal" in2="effect1_backgroundBlur_169_22606" result="effect2_dropShadow_169_22606"/>
|
|
21
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_169_22606" result="shape"/>
|
|
22
|
+
</filter>
|
|
23
|
+
<linearGradient id="paint0_linear_169_22606" x1="120.793" y1="17.19" x2="87.4673" y2="19.6005" gradientUnits="userSpaceOnUse">
|
|
24
|
+
<stop stop-color="white"/>
|
|
25
|
+
<stop offset="1" stop-color="#EFEFEF" stop-opacity="0"/>
|
|
26
|
+
</linearGradient>
|
|
27
|
+
<linearGradient id="paint1_linear_169_22606" x1="4" y1="0" x2="24.6125" y2="24.9708" gradientUnits="userSpaceOnUse">
|
|
28
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
29
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
30
|
+
</linearGradient>
|
|
31
|
+
<linearGradient id="paint2_linear_169_22606" x1="102" y1="43" x2="70.9273" y2="25.5407" gradientUnits="userSpaceOnUse">
|
|
32
|
+
<stop stop-color="white" stop-opacity="0.5"/>
|
|
33
|
+
<stop offset="1" stop-color="white" stop-opacity="0"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
</defs>
|
|
36
|
+
</svg>
|
|
Binary file
|