@everymatrix/casino-header-controller-nd 1.86.2 → 1.86.4
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/components/{CasinoHamburgerMenuNd-Djtdm8EV.js → CasinoHamburgerMenuNd-BNAIOl2X.js} +998 -1019
- package/components/CasinoHamburgerMenuNd-Ca3ViCCa.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-DqSrTenb.js → CasinoHamburgerMenuNd-ESbaCJ67.js} +1007 -1028
- package/components/{CasinoHeaderControllerNd-sEiDpmDd.js → CasinoHeaderControllerNd-C1O-84Ak.js} +98 -98
- package/components/{CasinoHeaderControllerNd--WCWhMwa.js → CasinoHeaderControllerNd-CnCcafEj.js} +94 -94
- package/components/{CasinoHeaderControllerNd-DOLTMzh0.cjs → CasinoHeaderControllerNd-Doy6dpQ5.cjs} +1 -1
- package/components/PlayerAccountBalanceModalNd-BOVCsk2w.js +1564 -0
- package/components/PlayerAccountBalanceModalNd-CZjcJwul.js +1535 -0
- package/components/PlayerAccountBalanceModalNd-Cj7-G7Z3.cjs +7 -0
- package/components/PlayerDeposit-D4d7MVd3.cjs +1 -0
- package/components/{PlayerDeposit-qsZYITrf.js → PlayerDeposit-D_Pd3fvu.js} +74 -74
- package/components/{PlayerDeposit-C910Gf1y.js → PlayerDeposit-DmubnzW9.js} +77 -77
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/{casino-hamburger-menu-nd-CAOIXMkM.cjs → casino-hamburger-menu-nd-CMEc__oS.cjs} +1 -1
- package/lazy/{casino-hamburger-menu-nd-DrYJDNro.js → casino-hamburger-menu-nd-DlmawdHt.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-DWZz6hns.js → casino-hamburger-menu-nd-ouF1QHns.js} +1 -1
- package/lazy/{gamification-dropdown-P2zG2HBt.js → gamification-dropdown-0spy0_Jv.js} +271 -267
- package/lazy/gamification-dropdown-BCWzT1QK.js +758 -0
- package/lazy/gamification-dropdown-D0wAisNS.cjs +1 -0
- package/lazy/{player-account-balance-modal-nd-BY8xnPL2.js → player-account-balance-modal-nd-Ci4Zg6Hh.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-D1AAY1_s.js → player-account-balance-modal-nd-rPH9AN9Y.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-CWxFg0Rd.cjs → player-account-balance-modal-nd-zGnJas1c.cjs} +1 -1
- package/lazy/{player-deposit-Mn3IRhQ6.js → player-deposit-CaMa6djz.js} +1 -1
- package/lazy/{player-deposit-BZMECdu0.js → player-deposit-CaycmoDv.js} +1 -1
- package/lazy/{player-deposit-CgdF-jd5.cjs → player-deposit-MHWzbfWP.cjs} +1 -1
- package/lazy/user-deposit-withdrawal-AwhSDCus.js +557 -0
- package/lazy/user-deposit-withdrawal-B_Nv4rDM.js +573 -0
- package/lazy/user-deposit-withdrawal-d-w0__HO.cjs +1 -0
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-92e6c856-B8vweing.js → gamification-dropdown-92e6c856-BAc7XsCF.js} +1 -1
- package/stencil/{gamification-dropdown-92e6c856-BZ8VQIG4.cjs → gamification-dropdown-92e6c856-Bcy-54uI.cjs} +1 -1
- package/stencil/{gamification-dropdown-92e6c856-AyLEePRL.js → gamification-dropdown-92e6c856-D4kHGze1.js} +1 -1
- package/stencil/{gamification-dropdown-CglkdhCZ.js → gamification-dropdown-BK7OkFdV.js} +2 -2
- package/stencil/{gamification-dropdown-HmEzwf9M.cjs → gamification-dropdown-BRlTQDui.cjs} +1 -1
- package/stencil/{gamification-dropdown-Chg7QhVL.js → gamification-dropdown-yJyqxtor.js} +2 -2
- package/stencil/{gamification-dropdown_4-CDqbYkpV.js → gamification-dropdown_4-B4cK84RN.js} +6 -6
- package/stencil/{gamification-dropdown_4-DxW8ztP7.js → gamification-dropdown_4-BLkHBk3K.js} +6 -6
- package/stencil/gamification-dropdown_4-D64dMPom.cjs +192 -0
- package/stencil/{locale-TxlOHoKi.js → locale-CIZHVMDe.js} +28 -22
- package/stencil/{locale-B_6Rn5-v.cjs → locale-m6IHPAzW.cjs} +1 -1
- package/stencil/{player-elevate-card-D61zzjoE.js → player-elevate-card-BA8G0Mqx.js} +3 -3
- package/stencil/{player-elevate-card-BbWKuYfj.js → player-elevate-card-BrJpawbF.js} +3 -3
- package/stencil/{player-elevate-card-BXMauXgU.cjs → player-elevate-card-DKW2eHTs.cjs} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-M94MmEsh.js → player-elevate-card-items-b4571def-B5YwItYc.js} +238 -236
- package/stencil/{player-elevate-card-items-08c6fbd8-BRpYa59u.js → player-elevate-card-items-b4571def-BCXN9g53.js} +238 -236
- package/stencil/player-elevate-card-items-b4571def-H9aHZjN2.cjs +102 -0
- package/stencil/{player-elevate-pointcard-CnJ1h4uy.js → player-elevate-pointcard-DJahPWy0.js} +3 -3
- package/stencil/{player-elevate-pointcard-BL1XZLER.js → player-elevate-pointcard-DP-ENbxI.js} +3 -3
- package/stencil/{player-elevate-pointcard-CIGh8PLS.cjs → player-elevate-pointcard-DyRqojWr.cjs} +1 -1
- package/stencil/{player-rakeback-card-B_-fQFE_.js → player-rakeback-card-5QTpE9MZ.js} +2 -2
- package/stencil/{player-rakeback-card-B3uCylZm.cjs → player-rakeback-card-CWJd5hs8.cjs} +1 -1
- package/stencil/{player-rakeback-card-C79YOrb9.js → player-rakeback-card-Cx54ZYxX.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Bgmu_v3L.js → user-deposit-withdrawal-BxOnNff1.js} +1 -1
- package/stencil/{user-deposit-withdrawal-D-OTOuVZ.cjs → user-deposit-withdrawal-DeaqutF7.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-C1ZuOfGY.js → user-deposit-withdrawal-iO3aTWUP.js} +1 -1
- package/components/CasinoHamburgerMenuNd-BWhQR6n1.cjs +0 -18
- package/components/PlayerAccountBalanceModalNd-BxspHx1P.js +0 -1564
- package/components/PlayerAccountBalanceModalNd-C9GnwJNI.cjs +0 -7
- package/components/PlayerAccountBalanceModalNd-UlBTfRN6.js +0 -1535
- package/components/PlayerDeposit-BDPi60xU.cjs +0 -1
- package/lazy/gamification-dropdown-92gu40Vl.js +0 -754
- package/lazy/gamification-dropdown-CmhvGtFZ.cjs +0 -1
- package/lazy/user-deposit-withdrawal-CWhRaiMB.cjs +0 -1
- package/lazy/user-deposit-withdrawal-DS7RI4jZ.js +0 -573
- package/lazy/user-deposit-withdrawal-fYrP9plZ.js +0 -557
- package/stencil/gamification-dropdown_4-Dm2tmI-r.cjs +0 -192
- package/stencil/player-elevate-card-items-08c6fbd8-ChUSMyWt.cjs +0 -102
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";var L=(e,t,a)=>new Promise((n,l)=>{var i=c=>{try{o(a.next(c))}catch(h){l(h)}},d=c=>{try{o(a.throw(c))}catch(h){l(h)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,d);o((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./gamification-dropdown-92e6c856-BZ8VQIG4.cjs"),r=require("../lazy/gamification-dropdown-CmhvGtFZ.cjs"),b=require("./locale-B_6Rn5-v.cjs"),s=require("./player-elevate-card-items-08c6fbd8-ChUSMyWt.cjs"),O=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]||{},Object.keys(n[l]).forEach(i=>{if(!t.en[i])return;const d=t.en[i];typeof n[l][i]=="object"?(t[l][i]=t[l][i]||Object.assign({},d),Object.keys(n[l][i]).forEach(o=>{t[l][i][o]=n[l][i][o]})):t[l][i]=n[l][i]||Object.assign({},d)})}),a(!0)}).catch(n=>{console.error("Failed to load translations:",n),a(!1)})}),M=":host{display:block}",R=M,I=class{constructor(e){r.registerInstance(this,e),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(window.emMessageBus!=null?p.setStreamStyling(this.el,`${this.mbSource}.Style`):(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&p.setClientStyling(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0)}componentWillLoad(){return L(this,null,function*(){const e=[];if(this.translationUrl){const t=O(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return r.h("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},r.h("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return r.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};I.style=R;function w(e){s.requiredArgs(1,arguments);var t=s.toDate(e);return t.setHours(0,0,0,0),t}var $=864e5;function U(e,t){s.requiredArgs(2,arguments);var a=w(e),n=w(t),l=a.getTime()-s.getTimezoneOffsetInMilliseconds(a),i=n.getTime()-s.getTimezoneOffsetInMilliseconds(n);return Math.round((l-i)/$)}var N=6e4,q=36e5;function S(e,t){return s.requiredArgs(2,arguments),s.toDate(e).getTime()-s.toDate(t).getTime()}var E={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W="trunc";function P(e){return e?E[e]:E[W]}function z(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/q;return P(a==null?void 0:a.roundingMethod)(n)}function j(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/N;return P(a==null?void 0:a.roundingMethod)(n)}function F(e,t){s.requiredArgs(2,arguments);var a=s.toDate(e),n=s.toDate(t);return a.getTime()<n.getTime()}function G(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,i=a.getBBox().width,d=t>1?1:t,o=d*i-n<0?0:d*i-n,c=e.querySelector("#current_level"),h=e.querySelector("#filter_current_level"),g=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${o} 28`),c.setAttribute("width",`${o}`),g.setAttribute("cx",`${o<l?l:o}`),h.setAttribute("x",`${o-8}`);const y=e.querySelector("#lock"),u=e.querySelector("#filter_heart_ball"),f=e.querySelector("#filter_ball"),T=e.querySelector("#filter_heart"),A=e.querySelector("#filter_lock"),x=e.querySelector("#paint0_linear_ball"),m=e.querySelector("#paint1_linear_lock"),D=e.querySelector("#lock_box"),_=e.querySelector("#heart_box"),B=10,v=i-B;y.setAttribute("cx",`${v}`),m.setAttribute("x1",`${v}`),m.setAttribute("x2",`${v}`),x.setAttribute("x1",`${v-6}`),x.setAttribute("x2",`${v-6+11.2}`),A.setAttribute("x",`${v-6}`),T.setAttribute("x",`${v-6-2}`),f.setAttribute("x",`${v-6-2-2}`),u.setAttribute("x",`${v-6-2-2-4}`),D.setAttribute("x",`${v-6}`),_.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const H=`:host {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 360px;
|
|
4
|
-
height: 230px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ElevateCardWrapper {
|
|
8
|
-
contain: layout inline-size;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: fit-content;
|
|
11
|
-
min-height: 218px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.Outer {
|
|
15
|
-
container-type: inline-size;
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
background-size: cover;
|
|
18
|
-
background-repeat: no-repeat;
|
|
19
|
-
line-height: initial;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Dark {
|
|
25
|
-
color: var(--emw--color-gray150, #efefef);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.Light {
|
|
29
|
-
color: var(--emw--color-black, #0e0e0e);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@container (min-width: 381px) {
|
|
33
|
-
.Outer {
|
|
34
|
-
background-size: cover;
|
|
35
|
-
}
|
|
36
|
-
.Outer .OuterCover {
|
|
37
|
-
min-height: 190px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
@container (min-width: 260px) {
|
|
41
|
-
.Outer {
|
|
42
|
-
background-size: contain;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
.OuterCover {
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 100%;
|
|
48
|
-
content: "";
|
|
49
|
-
background-repeat: no-repeat;
|
|
50
|
-
background-size: cover;
|
|
51
|
-
border-radius: 15px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.Inner {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
min-height: 158px;
|
|
58
|
-
}
|
|
59
|
-
.Inner .Content {
|
|
60
|
-
padding: 15px;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
gap: 8px;
|
|
63
|
-
}
|
|
64
|
-
.Inner .Row {
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: row;
|
|
67
|
-
}
|
|
68
|
-
.Inner .CardCell {
|
|
69
|
-
display: flex;
|
|
70
|
-
}
|
|
71
|
-
.Inner .LevelProgress svg {
|
|
72
|
-
transition: opacity 0.4s;
|
|
73
|
-
}
|
|
74
|
-
.Inner .LevelInfo {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
}
|
|
78
|
-
.Inner .LevelInfo .ElevateLevel .LevelName {
|
|
79
|
-
height: 28px;
|
|
80
|
-
border-radius: 5px;
|
|
81
|
-
line-height: 28px;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
text-overflow: ellipsis;
|
|
84
|
-
white-space: nowrap;
|
|
85
|
-
}
|
|
86
|
-
.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {
|
|
87
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));
|
|
88
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);
|
|
89
|
-
}
|
|
90
|
-
.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {
|
|
91
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));
|
|
92
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);
|
|
93
|
-
}
|
|
94
|
-
.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {
|
|
95
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));
|
|
96
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);
|
|
97
|
-
}
|
|
98
|
-
.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {
|
|
99
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));
|
|
100
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
101
|
-
}
|
|
102
|
-
.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {
|
|
103
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));
|
|
104
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
105
|
-
}
|
|
106
|
-
.Inner .LevelInfo .ElevateLevel {
|
|
107
|
-
display: flex;
|
|
108
|
-
}
|
|
109
|
-
.Inner .LevelInfo {
|
|
110
|
-
flex: 1;
|
|
111
|
-
flex-grow: 1;
|
|
112
|
-
min-width: 150px;
|
|
113
|
-
}
|
|
114
|
-
.Inner .PlayerImg {
|
|
115
|
-
width: 29%;
|
|
116
|
-
margin: auto;
|
|
117
|
-
max-width: 100px;
|
|
118
|
-
min-width: 30px;
|
|
119
|
-
order: 0;
|
|
120
|
-
}
|
|
121
|
-
.Inner .PlayerAvatar {
|
|
122
|
-
max-width: 100px;
|
|
123
|
-
flex-basis: 100px;
|
|
124
|
-
height: auto;
|
|
125
|
-
margin: auto;
|
|
126
|
-
padding-top: 10px;
|
|
127
|
-
}
|
|
128
|
-
.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {
|
|
129
|
-
width: 100%;
|
|
130
|
-
height: 100%;
|
|
131
|
-
}
|
|
132
|
-
.Inner .PlayerAvatar .Avatar {
|
|
133
|
-
border-radius: 50%;
|
|
134
|
-
background-size: contain;
|
|
135
|
-
background-repeat: no-repeat;
|
|
136
|
-
}
|
|
137
|
-
.Inner .ElevateLevel .ExpirationDate {
|
|
138
|
-
max-width: 138px;
|
|
139
|
-
min-width: 118px;
|
|
140
|
-
}
|
|
141
|
-
.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {
|
|
142
|
-
text-transform: capitalize;
|
|
143
|
-
width: 100%;
|
|
144
|
-
}
|
|
145
|
-
.Inner .PlayerName {
|
|
146
|
-
font-size: 16px;
|
|
147
|
-
}
|
|
148
|
-
.Inner .Row .PointsInfo {
|
|
149
|
-
display: table;
|
|
150
|
-
font-weight: 600;
|
|
151
|
-
}
|
|
152
|
-
.Inner .Row .Redeem {
|
|
153
|
-
justify-content: flex-end;
|
|
154
|
-
margin-left: auto;
|
|
155
|
-
}
|
|
156
|
-
.Inner .Row .Redeem:hover {
|
|
157
|
-
color: var(--emw--elevate-color-redeem-hover, #00ABA4);
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
}
|
|
160
|
-
.Inner .Row .RedeemButton:hover span {
|
|
161
|
-
color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);
|
|
162
|
-
font-weight: bold;
|
|
163
|
-
}
|
|
164
|
-
.Inner .Row .RedeemButton {
|
|
165
|
-
width: 95px;
|
|
166
|
-
height: 35px;
|
|
167
|
-
display: flex;
|
|
168
|
-
align-items: center;
|
|
169
|
-
border-radius: var(--emw--border-radius-medium, 10px);
|
|
170
|
-
background: var(--emw--elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);
|
|
171
|
-
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
|
172
|
-
}
|
|
173
|
-
.Inner .Row .RedeemButton span {
|
|
174
|
-
color: var(--emw--color-white, #fff);
|
|
175
|
-
line-height: 18px;
|
|
176
|
-
font-size: 15px;
|
|
177
|
-
text-align: center;
|
|
178
|
-
width: 100%;
|
|
179
|
-
}
|
|
180
|
-
.Inner .Row .Points {
|
|
181
|
-
font-size: large;
|
|
182
|
-
vertical-align: middle;
|
|
183
|
-
}
|
|
184
|
-
.Inner .Row .Points .XP {
|
|
185
|
-
font-size: x-small;
|
|
186
|
-
}
|
|
187
|
-
.Inner .Row .ExpirationPoints {
|
|
188
|
-
font-size: small;
|
|
189
|
-
text-align: right;
|
|
190
|
-
font-weight: bold;
|
|
191
|
-
color: var(--emw--color-red, #9e595f);
|
|
192
|
-
}`,X=H,C=class{constructor(e){r.registerInstance(this,e),this.playerElevateLeveLoaded=r.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>F(new Date(c.expireTime),new Date(h.expireTime))?-1:1);const n=e.aboutToExpire[0],l=U(new Date(n.expireTime),new Date);let i=0,d=0,o=l===0?`${t}Day`:t;return l<=0&&(i=z(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=i>1?`${t}Hours`:`${t}Hour`,i<=0&&(d=j(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=d>1?`${t}Minutes`:`${t}Minute`)),a=b.translateWithParams(o,{expirationPoints:n.points,expireDay:Math.max(l,i,d),lang:this.params.language}),a}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{var l,i,d,o,c;if(!n.success){console.error("Exception when fetch user elevateinfo, ",n.errorCode,n.errorMessage),a(!0);return}window.postMessage({type:"UpdateGamificationXp",points:(i=(l=n.data)===null||l===void 0?void 0:l.level)===null||i===void 0?void 0:i.loyaltyPoints},window.location.href);let h=n.data;this.playerElevateLevel=h.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=((d=h.spendableWallet)===null||d===void 0?void 0:d.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const g=(o=n.data.spendableWallet)===null||o===void 0?void 0:o.total,y=(c=n.data.loyaltyWallet)===null||c===void 0?void 0:c.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:g,loyaltyWalletTotal:y});let u=this.calcuatePointsToBeExpired(g,"coinsToBeExpired"),f=this.calcuatePointsToBeExpired(y,"pointsToBeExpired");(u||f)&&this.playerElevateLeveLoaded.emit({pointExpireString:u,xpExpireString:f}),t(this.playerElevateLevel)}).catch(n=>{console.log("error ",n),a(!0)}))}setLoyaltyProgress(e){G(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout(()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)},80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then(t=>{if(console.log("elevate-init",t),this.initLevelProgressbar(),!this.levels)return;this.levels.sort((l,i)=>l.firstEntryPoints>i.firstEntryPoints?1:-1);const a=this.playerElevateLevel.loyaltyPoints;let n=0;this.levels.forEach((l,i)=>{a>l.firstEntryPoints&&(n=i)}),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})})}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return r.getElement(this)}static get watchers(){return{params:["onParamsChanged"]}}};C.style=X;const Y=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@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.ExpirationPoints{text-align:left;color:var(--emw--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:0px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}",J=Y,k=class{constructor(e){r.registerInstance(this,e),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return!((e=this.playerElevateLevel)===null||e===void 0)&&e.nextLevel?(t=this.playerElevateLevel)===null||t===void 0?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=(e=this.playerElevateLevel)===null||e===void 0?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const a=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return b.translateWithParams("tipsForNextLevel",{pointsToReach:a,levelName:t.name,lang:this.language})}return""}render(){const e=r.getAssetPath("../static/card-ground.svg"),t=r.getAssetPath("../static/card-ground-over.svg");return r.h("div",{key:"aa8f0d13a1e1d26ea7307d05fc50cda507172949",class:`ElevateCardWrapper ${this.theme}`},r.h("div",{key:"485075740ced316bf89f69359bdc8642dbb2af8f",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},r.h("general-styling-wrapper",{key:"3648821972ac115a1c33705463cdc2cdb427a95b",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:b.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),r.h("player-elevate-card-data",{key:"7b36c46a869bd4b014d1f04dbb718445b23ec964",params:this.paramProxy}),r.h("div",{key:"f4e5aa453459f693e07c166028aec9b0b696c907",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},r.h("div",{key:"d5f1894120cba3e7cf3c54b838a025f469bc445e",class:"Content Row"},this.playerElevateLevel&&r.h(r.Fragment,{key:"112ee04598b23dda6911f043101c0c1631454d7f"},r.h("div",{key:"7af4b6e937bbe73cc00aae0f27f8c93da47bb626",class:"PlayerImg"},r.h(s.PlayerAvatar,{key:"1b5037bfa196063f56cccd947c988a3aca0781b0",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),r.h("div",{key:"7b714e446f4e01edd4f4aefcc035d070b7d6a47b",class:`LevelInfo ${this.playerElevateLevel.name}`},r.h("div",{key:"37ad8ce5dae374685e74f6772d28e79d251932e3",class:"CardCell ElevateLevel"},r.h("span",{key:"2d9dcf4b08fcecc927d3e8bdca74c75ff4336480",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),r.h("div",{key:"cc89cbaa70d9583b9626da15e98f9fd61d82f81f",class:"PointsRange"},r.h(s.PlayerPoints,{key:"32de4cac05a4fd5610af857b25e096a7cb9ba34d",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),r.h(s.PlayerPoints,{key:"298f492c8991384547c31396fc930b5c21f41501",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),r.h(s.PlayerLoyaltyProcess,{key:"aca4f5642c41db1c4b7fa04411331a5c25c655dd"}),r.h("div",{key:"d841c5df319de105376c6eee24bc685757916aae",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&r.h("div",{key:"774279829f3f52ee5696550a855a833b39df8c81",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&r.h(s.LoyaltyLevelExpireDay,{key:"3a4319e502e85b26cb220942492b161ad842be82",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};k.style=J;exports.gamification_dropdown=p.GamificationDropdown;exports.general_styling_wrapper=I;exports.player_elevate_card_data=C;exports.player_elevate_loyaltycard=k;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("../lazy/gamification-dropdown-CmhvGtFZ.cjs"),U=require("./locale-B_6Rn5-v.cjs");function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function p(r){h(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Y(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(r,e){h(2,arguments);var t=p(r).getTime(),a=M(e);return new Date(t+a)}var re={};function L(){return re}function X(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function ae(r){return h(1,arguments),r instanceof Date||Y(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ne(r){if(h(1,arguments),!ae(r)&&typeof r!="number")return!1;var e=p(r);return!isNaN(Number(e))}function ie(r,e){h(2,arguments);var t=M(e);return te(r,-t)}var oe=864e5;function le(r){h(1,arguments);var e=p(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/oe)+1}function B(r){h(1,arguments);var e=1,t=p(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Q(r){h(1,arguments);var e=p(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=B(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=B(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function se(r){h(1,arguments);var e=Q(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=B(t);return a}var ue=6048e5;function de(r){h(1,arguments);var e=p(r),t=B(e).getTime()-se(e).getTime();return Math.round(t/ue)+1}function F(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:m.weekStartsOn)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=p(r),v=g.getUTCDay(),y=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function V(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=p(r),f=m.getUTCFullYear(),g=L(),v=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,v),y.setUTCHours(0,0,0,0);var D=F(y,e),x=new Date(0);x.setUTCFullYear(f,0,v),x.setUTCHours(0,0,0,0);var N=F(x,e);return m.getTime()>=D.getTime()?f+1:m.getTime()>=N.getTime()?f:f-1}function ce(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),g=V(r,e),v=new Date(0);v.setUTCFullYear(g,0,f),v.setUTCHours(0,0,0,0);var y=F(v,e);return y}var fe=6048e5;function he(r,e){h(1,arguments);var t=p(r),a=F(t,e).getTime()-ce(t,e).getTime();return Math.round(a/fe)+1}function l(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var me={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return l(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):l(a+1,2)},d:function(e,t){return l(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return l(e.getUTCHours()%12||12,t.length)},H:function(e,t){return l(e.getUTCHours(),t.length)},m:function(e,t){return l(e.getUTCMinutes(),t.length)},s:function(e,t){return l(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return l(i,t.length)}};const C=me;var _={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ve={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return C.y(e,t)},Y:function(e,t,a,n){var i=V(e,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return l(u,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):l(o,t.length)},R:function(e,t){var a=Q(e);return l(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return l(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return l(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return l(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return l(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=he(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):l(i,t.length)},I:function(e,t,a){var n=de(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):l(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,a){var n=le(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):l(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return l(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return l(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return l(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return C.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):l(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):l(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return T(o);case"XXXXX":case"XXX":default:return T(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return T(o);case"xxxxx":case"xxx":default:return T(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+T(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+T(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return l(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return l(o,t.length)}};function A(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e;return t+String(n)+o+l(i,2)}function q(r,e){if(r%60===0){var t=r>0?"-":"+";return t+l(Math.abs(r)/60,2)}return T(r,e)}function T(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=l(Math.floor(n/60),2),o=l(n%60,2);return a+i+t+o}const ge=ve;var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},we=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return $(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$(n,t)).replace("{{time}}",j(i,t))},ye={p:j,P:we};const pe=ye;var be=["D","DD"],Ce=["YY","YYYY"];function xe(r){return be.indexOf(r)!==-1}function Te(r){return Ce.indexOf(r)!==-1}function R(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_e=function(e,t,a){var n,i=Me[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const De=_e;function I(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var Oe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ke={date:I({formats:Oe,defaultWidth:"full"}),time:I({formats:Pe,defaultWidth:"full"}),dateTime:I({formats:Se,defaultWidth:"full"})};const Ue=ke;var We={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=function(e,t,a,n){return We[e]};const Ye=Ee;function S(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var u=r.defaultWidth,c=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[c]||r.values[u]}var d=r.argumentCallback?r.argumentCallback(e):e;return n[d]}}var Be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Le={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},He={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ie=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ae={ordinalNumber:Ie,era:S({values:Be,defaultWidth:"wide"}),quarter:S({values:Fe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:S({values:Le,defaultWidth:"wide"}),day:S({values:Ne,defaultWidth:"wide"}),dayPeriod:S({values:Ge,defaultWidth:"wide",formattingValues:He,defaultFormattingWidth:"wide"})};const qe=Ae;function k(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(u)?Re(u,function(f){return f.test(o)}):$e(u,function(f){return f.test(o)}),d;d=r.valueCallback?r.valueCallback(c):c,d=t.valueCallback?t.valueCallback(d):d;var m=e.slice(o.length);return{value:d,rest:m}}}function $e(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Re(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Xe(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=e.slice(n.length);return{value:o,rest:u}}}var Qe=/^(\d+)(th|st|nd|rd)?/i,Ve=/\d+/i,je={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ze={any:[/^b/i,/^(a|c)/i]},Je={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ze={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},at={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},it={ordinalNumber:Xe({matchPattern:Qe,parsePattern:Ve,valueCallback:function(e){return parseInt(e,10)}}),era:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:k({matchPatterns:Je,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:k({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:et,defaultParseWidth:"any"}),day:k({matchPatterns:tt,defaultMatchWidth:"wide",parsePatterns:rt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:at,defaultMatchWidth:"any",parsePatterns:nt,defaultParseWidth:"any"})};const ot=it;var lt={code:"en-US",formatDistance:De,formatLong:Ue,formatRelative:Ye,localize:qe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};const st=lt;var ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ct=/^'([^]*?)'?$/,ft=/''/g,ht=/[a-zA-Z]/;function z(r,e,t){var a,n,i,o,u,c,d,m,f,g,v,y,D,x;h(2,arguments);var N=String(e),O=L(),P=(a=(n=void 0)!==null&&n!==void 0?n:O.locale)!==null&&a!==void 0?a:st,G=M((i=(o=(u=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&u!==void 0?u:O.firstWeekContainsDate)!==null&&o!==void 0?o:(d=O.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=M((f=(g=(v=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&v!==void 0?v:O.weekStartsOn)!==null&&g!==void 0?g:(D=O.locale)===null||D===void 0||(x=D.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&f!==void 0?f:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var W=p(r);if(!ne(W))throw new RangeError("Invalid time value");var J=X(W),K=ie(W,J),Z={firstWeekContainsDate:G,weekStartsOn:H,locale:P,_originalDate:W},ee=N.match(dt).map(function(w){var b=w[0];if(b==="p"||b==="P"){var E=pe[b];return E(w,P.formatLong)}return w}).join("").match(ut).map(function(w){if(w==="''")return"'";var b=w[0];if(b==="'")return mt(w);var E=ge[b];if(E)return Te(w)&&R(w,e,String(r)),xe(w)&&R(w,e,String(r)),E(K,w,P.localize,Z);if(b.match(ht))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return w}).join("");return ee}function mt(r){var e=r.match(ct);return e?e[1].replace(ft,"'"):r}const vt=`<svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect y="12" x="2" width="100%" id="total_level" height="5" rx="2.5" fill="white" fill-opacity="0.5"/>
|
|
3
|
-
<rect y="12" x="2" id="current_level" width="64" height="5" rx="2.5" fill="white"/>
|
|
4
|
-
<g filter="url(#filter_current_level)">
|
|
5
|
-
<circle id="circle_current_level" cx="74.5" cy="14.5" r="6.5" fill="white"/>
|
|
6
|
-
</g>
|
|
7
|
-
<g filter="url(#filter_heart_ball)">
|
|
8
|
-
<g filter="url(#filter_ball)">
|
|
9
|
-
<circle cx="169" cy="14" r="10" id="lock" fill="url(#paint0_linear_ball)"/>
|
|
10
|
-
</g>
|
|
11
|
-
<g filter="url(#filter_heart)">
|
|
12
|
-
<svg x="0" y="4" id="lock_box">
|
|
13
|
-
<path d="M10.217 6.42442c-0.713,-0.574,-1.304,-1.083,-1.928,-1.622c-0.348,-0.299,-0.707,-0.611,-1.101,-0.943l-0.013,-0.01c0,0,-0.023,-0.017,-0.04,-0.027l-0.167,-0.095l-0.15,0.12c0,0,-0.015,0.012,-0.024,0.02c-0.391,0.33,-0.749,0.64,-1.094,0.939c-0.622,0.539,-1.211,1.048,-1.924,1.624c-1.816,1.463,-3.598,3.263,-3.033,5.506c0.404,1.601,2.104,2.905,3.789,2.905c0.211,0,0.423,-0.02,0.626,-0.061c0.286,-0.058,0.572,-0.145,0.864,-0.265c-0.079,0.962,-0.413,1.864,-0.881,2.369l-0.423,0.459h0.633c0.633,0,1.018,-0.007,1.356,-0.013c0.248,-0.004,0.462,-0.008,0.72,-0.008c0.335,0,0.709,0.006,1.215,0.021l0.686,0.02l-0.474,-0.483c-0.504,-0.514,-0.847,-1.403,-0.923,-2.385c0.311,0.132,0.616,0.227,0.916,0.287c0.204,0.039,0.411,0.059,0.623,0.059c1.687,0,3.386,-1.304,3.789,-2.909c0.56,-2.243,-1.224,-4.041,-3.042,-5.504v-0.004z" fill="#933CBF"/>
|
|
14
|
-
<path d="M9.727,6.98459c-1.004,-0.83,-1.741,-1.515,-2.723,-2.365c-0.002,0,-0.004,-0.004,-0.007,-0.006c-0.002,0,-0.004,0.004,-0.006,0.006c-0.98,0.85,-1.715,1.537,-2.721,2.367c-1.455,1.202,-3.126,2.821,-2.638,4.81c0.37,1.511,2.091,2.751,3.665,2.43c0.389,-0.08,0.75,-0.224,1.094,-0.402c0,0.116,-0.004,0.233,-0.012,0.353c-0.064,0.991,-0.398,1.892,-0.86,2.401c1.481,0,1.481,-0.043,2.961,0c-0.481,-0.503,-0.834,-1.382,-0.9,-2.401c-0.008,-0.127,-0.012,-0.253,-0.012,-0.378c0.357,0.19,0.733,0.342,1.14,0.425c1.574,0.319,3.292,-0.922,3.661,-2.433c0.486,-1.992,-1.189,-3.609,-2.644,
|
|
15
|
-
-4.809l0.002,0.002z" fill="url(#paint1_linear_lock)"/>
|
|
16
|
-
<path d="M9.255,7.551c-0.844,-0.716,-1.462,-1.309,-2.286,-2.045c-0.002,0,-0.004,-0.004,-0.006,-0.006c0,0,-0.004,0.004,-0.006,0.006c-0.824,0.736,-1.44,1.329,-2.284,2.047c-0.919,0.782,-1.94,1.769,-2.214,2.943c-0.115,0.021,-0.914,0.044,-0.914,0.044l0.887,0.083c-0.039,0.206,-0.055,0.418,-0.041,0.638c0.087,-1.371,1.25,-2.507,2.282,-3.384c0.844,-0.718,1.462,-1.313,2.284,-2.047c0.002,-0.002,0.004,-0.004,0.006,-0.006c0.002,0,0.004,0.004,0.006,0.004c0.824,0.734,1.442,1.329,2.286,2.045c1.034,0.879,2.198,2.013,2.286,3.386c0.093,-1.517,-1.173,-2.761,-2.286,-3.708z" fill="#9040C9"/>
|
|
17
|
-
</svg>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
<g filter="url(#filter_lock)">
|
|
21
|
-
<svg x="100%" y="9" id="heart_box">
|
|
22
|
-
<path d="M7,6c-0.19,-0.002,-0.377,0.052,-0.534,0.154c-0.158,0.103,-0.278,0.25,-0.346,0.42c-0.069,0.171,-0.081,0.357,-0.035,0.535c0.046,0.177,0.147,0.337,0.29,0.457v0.834c0,0.159,0.066,0.312,0.183,0.424c0.117,0.113,0.276,0.176,0.442,0.176c0.166,0,0.325,-0.063,0.442,-0.176c0.117,-0.112,0.183,-0.265,0.183,-0.424v-0.834c0.143,-0.12,0.244,-0.28,0.29,-0.457c0.046,-0.178,0.034,-0.364,-0.035,-0.535c-0.068,-0.17,-0.188,-0.317,-0.346,-0.42c-0.157,-0.102,-0.344,-0.156,-0.534,-0.154zm3.125,-2.4v-1.2c0,-0.796,-0.329,-1.559,-0.915,-2.121c-0.586,-0.563,-1.381,-0.879,-2.21,-0.879c-0.829,0,-1.624,0.316,-2.21,0.879c-0.586,0.562,-0.915,1.325,-0.915,2.121v1.2c-0.497,0,-0.974,0.19,-1.326,0.527c-0.351,0.338,-0.549,0.796,-0.549,1.273v4.2c0,0.477,0.198,0.935,0.549,1.273c0.352,0.337,0.829,0.527,1.326,0.527h6.25c0.497,0,0.974,-0.19,1.326,-0.527c0.351,-0.338,0.549,-0.796,0.549,-1.273v-4.2c0,-0.477,-0.198,-0.935,-0.549,-1.273c-0.352,-0.337,-0.829,-0.527,-1.326,-0.527zm-5,-1.2c0,-0.477,0.198,-0.935,0.549,-1.273c0.352,-0.337,0.829,-0.527,1.326,-0.527c0.497,0,0.974,0.19,1.326,0.527c0.351,0.338,0.549,0.796,0.549,1.273v1.2h-3.75v-1.2zm5.625,7.2c0,0.159,-0.066,0.312,-0.183,0.424c-0.117,0.113,-0.276,0.176,-0.442,0.176h-6.25c-0.166,0,-0.325,-0.063,-0.442,-0.176c-0.117,-0.112,-0.183,-0.265,-0.183,-0.424v-4.2c0,-0.159,0.066,-0.312,0.183,-0.424c0.117,-0.113,0.276,-0.176,0.442,-0.176h6.25c0.166,0,0.325,0.063,0.442,0.176c0.117,0.112,0.183,0.265,0.183,0.424v4.2z" fill="white"/>
|
|
23
|
-
</svg>
|
|
24
|
-
</g>
|
|
25
|
-
<defs>
|
|
26
|
-
<filter id="filter_current_level" x="64" y="4" width="21" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
27
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
28
|
-
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
29
|
-
<feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_305_23"/>
|
|
30
|
-
</filter>
|
|
31
|
-
<filter id="filter_heart_ball" x="155" y="0" width="28" height="28" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
32
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
33
|
-
<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"/>
|
|
34
|
-
<feOffset/>
|
|
35
|
-
<feGaussianBlur stdDeviation="2"/>
|
|
36
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
37
|
-
<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"/>
|
|
38
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
|
|
39
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
|
|
40
|
-
</filter>
|
|
41
|
-
<filter id="filter_ball" x="159" y="4" width="20" height="21" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
42
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
43
|
-
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
44
|
-
<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"/>
|
|
45
|
-
<feOffset dy="1"/>
|
|
46
|
-
<feGaussianBlur stdDeviation="1"/>
|
|
47
|
-
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
|
|
48
|
-
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0"/>
|
|
49
|
-
<feBlend mode="normal" in2="shape" result="effect1_innerShadow_305_23"/>
|
|
50
|
-
</filter>
|
|
51
|
-
<filter id="filter_heart" x="161.636" y="5.72727" width="14.7271" height="15.6364" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
52
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
53
|
-
<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"/>
|
|
54
|
-
<feOffset/>
|
|
55
|
-
<feGaussianBlur stdDeviation="0.5"/>
|
|
56
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
57
|
-
<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"/>
|
|
58
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
|
|
59
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
|
|
60
|
-
</filter>
|
|
61
|
-
<filter id="filter_lock" x="50" y="7" width="12" height="14" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
62
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
63
|
-
<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"/>
|
|
64
|
-
<feOffset/>
|
|
65
|
-
<feGaussianBlur stdDeviation="0.5"/>
|
|
66
|
-
<feComposite in2="hardAlpha" operator="out"/>
|
|
67
|
-
<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"/>
|
|
68
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_305_23"/>
|
|
69
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_305_23" result="shape"/>
|
|
70
|
-
</filter>
|
|
71
|
-
<linearGradient id="paint0_linear_ball" x1="163" y1="6" x2="174.2" y2="22.6" gradientUnits="userSpaceOnUse">
|
|
72
|
-
<stop stop-color="#946AD7"/>
|
|
73
|
-
<stop offset="1" stop-color="#EFABEB"/>
|
|
74
|
-
</linearGradient>
|
|
75
|
-
<linearGradient id="paint1_linear_lock" x1="100%" y1="18.4056" x2="169.002" y2="10.2845" gradientUnits="userSpaceOnUse">
|
|
76
|
-
<stop stop-color="#814FD6"/>
|
|
77
|
-
<stop offset="1" stop-color="#D679D8"/>
|
|
78
|
-
</linearGradient>
|
|
79
|
-
</defs>
|
|
80
|
-
</svg>
|
|
81
|
-
`,gt=`<svg width="126" height="92" viewBox="0 0 126 92" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
82
|
-
<g filter="url(#filter0_d_242_4231)">
|
|
83
|
-
<rect x="24" y="20" width="78" height="36" rx="4" fill="white"/>
|
|
84
|
-
<path d="M24 24C24 21.7909 25.7909 20 28 20H64V56H28C25.7909 56 24 54.2091 24 52V24Z" fill="#464646"/>
|
|
85
|
-
<path d="M51 56H37L43.2474 63.1399C43.6458 63.5952 44.3542 63.5952 44.7526 63.1399L51 56Z" fill="#464646"/>
|
|
86
|
-
<circle cx="44" cy="38" r="7" fill="white"/>
|
|
87
|
-
<path d="M43.9405 34C44.5456 34 45.0362 34.4906 45.0362 35.0957C45.0362 35.7009 44.5456 36.1915 43.9405 36.1915C43.3353 36.1915 42.8447 35.7009 42.8447 35.0957C42.8447 34.4906 43.3353 34 43.9405 34Z" fill="#464646"/>
|
|
88
|
-
<path d="M45.8801 41.3737C45.8801 41.7617 45.5626 42.0791 45.1746 42.0791H44.3233H43.551H42.7055C42.3175 42.0791 42 41.7617 42 41.3737V41.3575C42 40.9695 42.3175 40.6521 42.7055 40.6521H42.8455V37.8714H42.3528C42.1588 37.8714 42 37.7127 42 37.5187V37.4936C42 37.2996 42.1588 37.1409 42.3528 37.1409H43.551H44.031H44.3233C44.7113 37.1409 45.0287 37.4583 45.0287 37.8463V40.6521H45.1746C45.5626 40.6521 45.8801 40.9696 45.8801 41.3576V41.3737Z" fill="#464646"/>
|
|
89
|
-
</g>
|
|
90
|
-
<defs>
|
|
91
|
-
<filter id="filter0_d_242_4231" x="0" y="0" width="126" height="91.4814" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
92
|
-
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
93
|
-
<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"/>
|
|
94
|
-
<feOffset dy="4"/>
|
|
95
|
-
<feGaussianBlur stdDeviation="12"/>
|
|
96
|
-
<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"/>
|
|
97
|
-
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_242_4231"/>
|
|
98
|
-
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_242_4231" result="shape"/>
|
|
99
|
-
</filter>
|
|
100
|
-
</defs>
|
|
101
|
-
</svg>
|
|
102
|
-
`,wt=()=>s.h("span",{class:"LevelProgress",id:"LevelProgress",innerHTML:vt}),yt=({loyaltyPoints:r,spendablePoints:e,pointExpireString:t,language:a})=>s.h("div",{class:"PointsInfo"},r&&r>=0&&s.h("div",{class:"Points"},r," ",s.h("sub",{class:"XP"},U.translate("xp",a))),e&&s.h("div",{class:"Points"},e," ",s.h("sub",{class:"XP"},U.translate("sp",a))),t&&s.h("div",{class:"ExpirationPoints"},t," ")),pt=({language:r,onRedeemClick:e})=>s.h("div",{class:"CardCell Redeem"},s.h("div",{class:"RedeemButton",onClick:()=>{e()}},s.h("span",null,U.translate("redeem",r)))),bt=r=>s.h("div",{class:"CardCell PlayerName Txt"},r.playerName),Ct=r=>s.h("div",{class:"CardCell ElevateLevel"},s.h("span",{class:"LevelName",title:r.level},r.level),r.expireTime&&s.h("div",{class:"CardCell ExpirationDate Txt"},U.translate("expireOn",r.language),s.h("span",{class:"ExpireTime"},z(new Date(r.expireTime),r.dateFormat||"yyyy-MM-dd")),!r.hideInfo&&s.h("span",{class:"fa Info",style:{background:`url(${s.getAssetPath("../static/info.svg")})`}},s.h("span",{class:"InfoTips",innerHTML:gt})))),xt=r=>s.h("div",{class:"CardCell ElevateLevel Expire"},s.h("div",{class:"CardCell ExpirationDate Txt"},U.translate("expireOn",r.language),s.h("span",{class:"ExpireTime"},z(new Date(r.expireTime),r.dateFormat||"yyyy-MM-dd")))),Tt=r=>{const e=r.loyaltyIconUrl?s.h("img",{class:"Badge",src:r.loyaltyIconUrl}):r.hideIfNull?"":s.h("div",{class:"Badge"}),t=r.playerAvatarUrl||s.getAssetPath("../static/user.svg");return s.h("div",{class:"PlayerAvatar",style:{position:`${r.onlyBadge?"":"relative"}`}},!r.onlyBadge&&s.h("img",{class:"Avatar",src:t}),e)};exports.LoyaltyLevelExpireDay=xt;exports.PlayerAvatar=Tt;exports.PlayerElevateCardRedeem=pt;exports.PlayerElevateLoyaltyLevel=Ct;exports.PlayerLoyaltyProcess=wt;exports.PlayerNameDiv=bt;exports.PlayerPoints=yt;exports.getTimezoneOffsetInMilliseconds=X;exports.requiredArgs=h;exports.toDate=p;
|