@everymatrix/player-rglimits 1.31.2 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/player-rglimits.js +36 -34
- package/dist/player-rglimits.js.map +1 -1
- package/package.json +2 -2
- package/src/PlayerRglimits.svelte +30 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
| Version | Release date | Impacted areas | Changes |
|
|
5
5
|
| ------- | ------------ | ----------------------------- | --------------------------------------- |
|
|
6
|
+
| 1.32.0 | Tue Jun 04 2024 | player-rglimits | fix(UBO-3021)(player-rglimits): get into consideration other selected options <br /> fix(UBO-3018)(player-rglimits): sort products <br /> fix(UBO-3017)(player-rglimits): period options ordering fix |
|
|
7
|
+
| 1.31.2 | Thu May 30 2024 | player-rglimits | fix(UBO-3018)(player-rglimits): sort products <br /> fix(UBO-3017)(player-rglimits): period options ordering fix <br /> feat(UBO-3005)(player-rglimits): add getutctime parameter |
|
|
8
|
+
| 1.31.2 | Thu May 30 2024 | player-rglimits | fix(UBO-3018)(player-rglimits): sort products <br /> fix(UBO-3017)(player-rglimits): period options ordering fix <br /> feat(UBO-3005)(player-rglimits): add getutctime parameter |
|
|
6
9
|
| 1.30.0 | Thu May 16 2024 | player-rglimits | fix(UBO-2663)(player-rglimits): Order limitPeriodList; Code cleanup |
|
|
7
10
|
| 1.29.7 | Thu May 09 2024 | player-rglimits | fix(UBO-2958)(player-rglimits): fix gauge fill and preserve period when change limit type |
|
|
8
11
|
| 1.29.0 | Wed Apr 10 2024 | player-rglimits | feat(UBO-2859)(player-rglimits): Improve widget functionality |
|
package/dist/player-rglimits.js
CHANGED
|
@@ -1191,66 +1191,66 @@ function Ni(t){let i;return{c(){i=m("div"),i.innerHTML='<section class="LoaderCo
|
|
|
1191
1191
|
/*div5_binding*/t[3](i)},p:e,i:e,o:e,d(e){e&&d(i)
|
|
1192
1192
|
/*div5_binding*/,t[3](null)}}}function Bi(e,t,i){let n,{clientstyling:r=""}=t,{clientstylingurl:a=""}=t;return e.$$set=e=>{"clientstyling"in e&&i(1,r=e.clientstyling),"clientstylingurl"in e&&i(2,a=e.clientstylingurl)},e.$$.update=()=>{/*clientstyling, customStylingContainer*/3&e.$$.dirty&&r&&n&&(()=>{let e=document.createElement("style");e.innerHTML=r,n.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/5&e.$$.dirty&&a&&n&&(()=>{let e=new URL(a),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{n.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[n,r,a,function(e){A[e?"unshift":"push"]((()=>{n=e,i(0,n)}))}]}customElements.define("plus-icon",class extends F{constructor(e){super(),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},null,Ri,a,{},null),e&&e.target&&c(e.target,this,e.anchor)}});
|
|
1193
1193
|
/* src/PlayerRglimits.svelte generated by Svelte v3.59.2 */
|
|
1194
|
-
function Ui(e,t,i){const n=e.slice();return n[
|
|
1195
|
-
// (
|
|
1194
|
+
function Ui(e,t,i){const n=e.slice();return n[74]=t[i],n}function Yi(e,t,i){const n=e.slice();return n[74]=t[i],n}function Ii(e,t,i){const n=e.slice();return n[79]=t[i],n}
|
|
1195
|
+
// (567:4) {:else}
|
|
1196
1196
|
function ji(e){let t,i,n,r,a,o,s,l,h,f,y,b=/*getWidgetTitle*/e[26](/*selectedLimitType*/e[18])+"";function _(e,t){/*isLoading*/
|
|
1197
1197
|
return e[10]?zi:$i}let w=_(e),T=w(e),E=/*limitPeriodList*/e[15].length>0&&tn(e),S=/*limitTypeList*/e[16].length>0&&rn(e),k=/*limitTypeList*/e[16].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]&&on(e);function M(e,t){/*isGaugeLoading*/
|
|
1198
1198
|
return e[11]?hn:dn}let D=M(e),A=D(e);return{c(){t=m("div"),i=m("h2"),n=m("currency-icon"),r=p(b),a=g(),T.c(),o=g(),s=m("div"),l=m("div"),E&&E.c(),h=g(),S&&S.c(),f=g(),k&&k.c(),y=g(),A.c(),v(i,"class","LimitTypeHeader"),v(t,"class","ContentLeft"),v(l,"class","WidgetControls"),v(s,"class","ContentRight")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(i,r),u(t,a),T.m(t,null),c(e,o,d),c(e,s,d),u(s,l),E&&E.m(l,null),u(l,h),S&&S.m(l,null),u(l,f),k&&k.m(l,null),u(s,y),A.m(s,null)},p(e,i){/*selectedLimitType*/262144&i[0]&&b!==(b=/*getWidgetTitle*/e[26](/*selectedLimitType*/e[18])+"")&&L(r,b),w===(w=_(e))&&T?T.p(e,i):(T.d(1),T=w(e),T&&(T.c(),T.m(t,null))),/*limitPeriodList*/e[15].length>0?E?E.p(e,i):(E=tn(e),E.c(),E.m(l,h)):E&&(E.d(1),E=null),/*limitTypeList*/e[16].length>0?S?S.p(e,i):(S=rn(e),S.c(),S.m(l,f)):S&&(S.d(1),S=null),/*limitTypeList*/e[16].length>0&&/*sessiontype*/"admin"===e[0]&&/*displayedLimit*/e[14]?k?k.p(e,i):(k=on(e),k.c(),k.m(l,null)):k&&(k.d(1),k=null),D===(D=M(e))&&A?A.p(e,i):(A.d(1),A=D(e),A&&(A.c(),A.m(s,null)))},d(e){e&&d(t),T.d(),e&&d(o),e&&d(s),E&&E.d(),S&&S.d(),k&&k.d(),A.d()}}}
|
|
1199
|
-
// (
|
|
1199
|
+
// (563:27)
|
|
1200
1200
|
function Gi(e){let t,i,n;return{c(){t=m("div"),i=m("strong"),n=p(/*errorMessage*/e[22]),v(i,"class","ErrorMessage"),v(t,"class","ContainerCenter")},m(e,r){c(e,t,r),u(t,i),u(i,n)},p(e,t){/*errorMessage*/4194304&t[0]&&L(n,/*errorMessage*/e[22])},d(e){e&&d(t)}}}
|
|
1201
|
-
// (
|
|
1201
|
+
// (553:4) {#if noLimitToDisplay}
|
|
1202
1202
|
function Fi(e){let t,i,n,r,a=/*$_*/e[23]("noLimitToDisplay")+"",o=/*editlimitaction*/"true"===e[5]&&mn(e);return{c(){t=m("div"),i=m("p"),n=p(a),r=g(),o&&o.c(),v(t,"class","ContainerCenter")},m(e,a){c(e,t,a),u(t,i),u(i,n),u(t,r),o&&o.m(t,null)},p(e,i){/*$_*/8388608&i[0]&&a!==(a=/*$_*/e[23]("noLimitToDisplay")+"")&&L(n,a),/*editlimitaction*/"true"===e[5]?o?o.p(e,i):(o=mn(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&d(t),o&&o.d()}}}
|
|
1203
|
-
// (
|
|
1203
|
+
// (572:8) {:else}
|
|
1204
1204
|
function $i(e){let t,i,n,r,a,o,s,l,f,y,b,_,w,T,E,S,k,M,D,A,P,H,C,x,O,R,N,B,U,Y,I,j,G,F,$,z,V,W,Z,q,X,K,J,Q,ee,te,ie,ne,re,ae,oe,se,le,ue,ce,de,he,me,fe,pe,ge,ye,be,ve,_e=/*selectedProduct*/"All"===e[19]?`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletsLabel")}`:`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletLabel")}`,Le=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"",we=/*displayedLimit*/e[14].limitCurrency+"",Te=/*$_*/e[23]("spentAmount")+"",Ee=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"",Se=/*displayedLimit*/e[14].limitCurrency+"",ke=/*$_*/e[23]("remainingAmount")+"",Me=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].remainingAmount)+"",De=/*displayedLimit*/e[14].limitCurrency+"",Ae=/*$_*/e[23]("startLabel")+"",Pe=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].from)+"",He=/*$_*/e[23]("resetLabel")+"",Ce=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].to)+"",xe=/*productList*/e[20].length>1&&Vi(e),Oe=/*productList*/e[20],Re=[];for(let t=0;t<Oe.length;t+=1)Re[t]=Wi(Ii(e,Oe,t));let Ne=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Zi(e),Be=/*displayedLimit*/(!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&qi(e),Ue=/*sessiontype*/"admin"===e[0]&&Ji(e);return{c(){t=m("div"),i=m("div"),n=m("span"),r=p(_e),a=g(),o=m("span"),s=p(Le),l=g(),f=m("span"),y=p(we),_=g(),xe&&xe.c(),w=g(),T=m("div");for(let e=0;e<Re.length;e+=1)Re[e].c();S=g(),k=m("div"),M=m("div"),D=m("div"),A=p(Te),P=g(),H=m("div"),C=m("span"),x=m("caret-right"),O=g(),R=p(Ee),N=g(),B=p(Se),U=g(),Y=m("div"),I=m("div"),j=p(ke),G=g(),F=m("div"),$=m("span"),z=m("caret-right"),V=g(),W=p(Me),Z=g(),q=p(De),X=g(),Ne&&Ne.c(),K=g(),J=m("div"),Q=m("div"),ee=p(Ae),te=g(),ie=m("div"),ne=m("span"),re=m("caret-right"),ae=g(),oe=p(Pe),se=g(),le=m("div"),ue=m("div"),ce=p(He),de=g(),he=m("div"),me=m("span"),fe=m("caret-right"),pe=g(),ge=p(Ce),ye=g(),Be&&Be.c(),be=g(),Ue&&Ue.c(),ve=p(""),v(n,"class","SelectedProduct"),v(f,"class","Currency"),v(o,"class","TotalAmount"),v(o,"title",b=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),v(i,"class","DisplayContainer"),v(T,"class",E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":"")),v(t,"class","ProductSelector"),v(D,"class","Col"),v(H,"class","Col"),v(M,"class","Row"),v(I,"class","Col"),v(F,"class","Col"),v(Y,"class","Row"),v(Q,"class","Col"),v(ie,"class","Col"),v(J,"class","Row"),v(ue,"class","Col"),v(he,"class","Col"),v(le,"class","Row"),v(k,"class","DetailsContainer Entries")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(n,r),u(i,a),u(i,o),u(o,s),u(o,l),u(o,f),u(f,y),u(i,_),xe&&xe.m(i,null),u(t,w),u(t,T);for(let e=0;e<Re.length;e+=1)Re[e]&&Re[e].m(T,null);c(e,S,d),c(e,k,d),u(k,M),u(M,D),u(D,A),u(M,P),u(M,H),u(H,C),u(C,x),u(C,O),u(C,R),u(C,N),u(C,B),u(k,U),u(k,Y),u(Y,I),u(I,j),u(Y,G),u(Y,F),u(F,$),u($,z),u($,V),u($,W),u($,Z),u($,q),u(k,X),Ne&&Ne.m(k,null),u(k,K),u(k,J),u(J,Q),u(Q,ee),u(J,te),u(J,ie),u(ie,ne),u(ne,re),u(ne,ae),u(ne,oe),u(k,se),u(k,le),u(le,ue),u(ue,ce),u(le,de),u(le,he),u(he,me),u(me,fe),u(me,pe),u(me,ge),c(e,ye,d),Be&&Be.m(e,d),c(e,be,d),Ue&&Ue.m(e,d),c(e,ve,d)},p(e,t){if(/*selectedProduct, $_*/8912896&t[0]&&_e!==(_e=/*selectedProduct*/"All"===e[19]?`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletsLabel")}`:`${/*selectedProduct*/e[19]} ${/*$_*/e[23]("walletLabel")}`)&&L(r,_e),/*displayedLimit*/16384&t[0]&&Le!==(Le=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"")&&L(s,Le),/*displayedLimit*/16384&t[0]&&we!==(we=/*displayedLimit*/e[14].limitCurrency+"")&&L(y,we),/*displayedLimit*/16384&t[0]&&b!==(b=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(o,"title",b),/*productList*/e[20].length>1?xe?xe.p(e,t):(xe=Vi(e),xe.c(),xe.m(i,null)):xe&&(xe.d(1),xe=null),/*handleProductChange, productList, $_*/277872640&t[0]){let i;for(Oe=/*productList*/e[20],i=0;i<Oe.length;i+=1){const n=Ii(e,Oe,i);Re[i]?Re[i].p(n,t):(Re[i]=Wi(n),Re[i].c(),Re[i].m(T,null))}for(;i<Re.length;i+=1)Re[i].d(1);Re.length=Oe.length}/*showDropdown*/8192&t[0]&&E!==(E="ProductsDropdown "+(/*showDropdown*/e[13]?"Show":""))&&v(T,"class",E),/*$_*/8388608&t[0]&&Te!==(Te=/*$_*/e[23]("spentAmount")+"")&&L(A,Te),/*displayedLimit*/16384&t[0]&&Ee!==(Ee=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"")&&L(R,Ee),/*displayedLimit*/16384&t[0]&&Se!==(Se=/*displayedLimit*/e[14].limitCurrency+"")&&L(B,Se),/*$_*/8388608&t[0]&&ke!==(ke=/*$_*/e[23]("remainingAmount")+"")&&L(j,ke),/*displayedLimit*/16384&t[0]&&Me!==(Me=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].remainingAmount)+"")&&L(W,Me),/*displayedLimit*/16384&t[0]&&De!==(De=/*displayedLimit*/e[14].limitCurrency+"")&&L(q,De),/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Ne?Ne.p(e,t):(Ne=Zi(e),Ne.c(),Ne.m(k,K)):Ne&&(Ne.d(1),Ne=null),/*$_*/8388608&t[0]&&Ae!==(Ae=/*$_*/e[23]("startLabel")+"")&&L(ee,Ae),/*displayedLimit*/16384&t[0]&&Pe!==(Pe=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].from)+"")&&L(oe,Pe),/*$_*/8388608&t[0]&&He!==(He=/*$_*/e[23]("resetLabel")+"")&&L(ce,He),/*displayedLimit*/16384&t[0]&&Ce!==(Ce=/*dateToReadableString*/e[25](/*displayedLimit*/e[14].to)+"")&&L(ge,Ce),/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?Be?Be.p(e,t):(Be=qi(e),Be.c(),Be.m(be.parentNode,be)):Be&&(Be.d(1),Be=null),/*sessiontype*/"admin"===e[0]?Ue?Ue.p(e,t):(Ue=Ji(e),Ue.c(),Ue.m(ve.parentNode,ve)):Ue&&(Ue.d(1),Ue=null)},d(e){e&&d(t),xe&&xe.d(),h(Re,e),e&&d(S),e&&d(k),Ne&&Ne.d(),e&&d(ye),Be&&Be.d(e),e&&d(be),Ue&&Ue.d(e),e&&d(ve)}}}
|
|
1205
|
-
// (
|
|
1205
|
+
// (570:8) {#if isLoading}
|
|
1206
1206
|
function zi(e){let t;return{c(){t=m("general-animation-loading"),_(t,"clientstyling",/*clientstyling*/e[3]),_(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&_(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1207
|
-
// (
|
|
1207
|
+
// (577:14) {#if productList.length > 1}
|
|
1208
1208
|
function Vi(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("caret-select"),v(t,"class",n="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_1*/e[46])),r=!0)},p(e,i){/*showDropdown*/8192&i[0]&&n!==(n="DropdownToggle "+(/*showDropdown*/e[13]?"Active":""))&&v(t,"class",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1209
|
-
// (
|
|
1210
|
-
function Wi(e){let t,i,n,r,a,o=/*product*/"All"===e[
|
|
1211
|
-
return e[47](/*product*/e[
|
|
1212
|
-
// (
|
|
1209
|
+
// (584:14) {#each productList as product}
|
|
1210
|
+
function Wi(e){let t,i,n,r,a,o=/*product*/"All"===e[79]?`${/*product*/e[79]} ${/*$_*/e[23]("walletsLabel")}`:`${/*product*/e[79]} ${/*$_*/e[23]("walletLabel")}`;function s(){/*click_handler_2*/
|
|
1211
|
+
return e[47](/*product*/e[79])}return{c(){t=m("button"),i=p(o),n=g()},m(e,o){c(e,t,o),u(t,i),u(t,n),r||(a=y(t,"click",s),r=!0)},p(t,n){e=t,/*productList, $_*/9437184&n[0]&&o!==(o=/*product*/"All"===e[79]?`${/*product*/e[79]} ${/*$_*/e[23]("walletsLabel")}`:`${/*product*/e[79]} ${/*$_*/e[23]("walletLabel")}`)&&L(i,o)},d(e){e&&d(t),r=!1,a()}}}
|
|
1212
|
+
// (600:12) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1213
1213
|
function Zi(e){let t,i,n,r,a,o,s,l,h,f,y,b=/*$_*/e[23]("futureAmount")+"",_=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"",w=/*displayedLimit*/e[14].limitCurrency+"";return{c(){t=m("div"),i=m("div"),n=p(b),r=g(),a=m("div"),o=m("span"),s=m("caret-right"),l=g(),h=p(_),f=g(),y=p(w),v(i,"class","Col"),v(a,"class","Col"),v(t,"class","Row")},m(e,d){c(e,t,d),u(t,i),u(i,n),u(t,r),u(t,a),u(a,o),u(o,s),u(o,l),u(o,h),u(o,f),u(o,y)},p(e,t){/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("futureAmount")+"")&&L(n,b),/*displayedLimit*/16384&t[0]&&_!==(_=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].formattedSchedule.updateAmount)+"")&&L(h,_),/*displayedLimit*/16384&t[0]&&w!==(w=/*displayedLimit*/e[14].limitCurrency+"")&&L(y,w)},d(e){e&&d(t)}}}
|
|
1214
|
-
// (
|
|
1214
|
+
// (615:10) {#if displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true }
|
|
1215
1215
|
function qi(e){let t,i,n=/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved&&Xi(e),r=/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated&&Ki(e);return{c(){t=m("div"),n&&n.c(),i=g(),r&&r.c(),v(t,"class","ExtraInfoContainer")},m(e,a){c(e,t,a),n&&n.m(t,null),u(t,i),r&&r.m(t,null)},p(e,a){/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved?n?n.p(e,a):(n=Xi(e),n.c(),n.m(t,i)):n&&(n.d(1),n=null),/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated?r?r.p(e,a):(r=Ki(e),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(e){e&&d(t),n&&n.d(),r&&r.d()}}}
|
|
1216
|
-
// (
|
|
1216
|
+
// (617:14) {#if displayedLimit.formattedSchedule.isRemoved === true}
|
|
1217
1217
|
function Xi(e){let t,i,n,r,a=/*$_*/e[23]("limitRemoved")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/8388608&t[0]&&a!==(a=/*$_*/e[23]("limitRemoved")+"")&&L(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&L(r,o)},d(e){e&&d(t)}}}
|
|
1218
|
-
// (
|
|
1218
|
+
// (620:14) {#if displayedLimit.formattedSchedule.isUpdated === true}
|
|
1219
1219
|
function Ki(e){let t,i,n,r,a=/*$_*/e[23]("limitUpdated")+"",o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"";return{c(){t=m("span"),i=p(a),n=p(": "),r=p(o)},m(e,a){c(e,t,a),u(t,i),u(t,n),u(t,r)},p(e,t){/*$_*/8388608&t[0]&&a!==(a=/*$_*/e[23]("limitUpdated")+"")&&L(i,a),/*displayedLimit*/16384&t[0]&&o!==(o=/*displayedLimit*/e[14].formattedSchedule.expiresString+"")&&L(r,o)},d(e){e&&d(t)}}}
|
|
1220
|
-
// (
|
|
1220
|
+
// (625:10) {#if sessiontype === 'admin'}
|
|
1221
1221
|
function Ji(e){let t;function i(e,t){/*transdetailsurl*/
|
|
1222
1222
|
return e[1]?en:/*transactionspageurl*/e[2]?Qi:void 0}let n=i(e),r=n&&n(e);return{c(){t=m("div"),r&&r.c(),v(t,"class","UsefulLinksSection")},m(e,i){c(e,t,i),r&&r.m(t,null)},p(e,a){n===(n=i(e))&&r?r.p(e,a):(r&&r.d(1),r=n&&n(e),r&&(r.c(),r.m(t,null)))},d(e){e&&d(t),r&&r.d()}}}
|
|
1223
|
-
// (
|
|
1223
|
+
// (629:44)
|
|
1224
1224
|
function Qi(e){let t,i,n=/*$_*/e[23]("additionalLink2")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*getTransactionsUrl*/e[31]()),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,t){/*$_*/8388608&t[0]&&n!==(n=/*$_*/e[23]("additionalLink2")+"")&&L(i,n)},d(e){e&&d(t)}}}
|
|
1225
|
-
// (
|
|
1225
|
+
// (627:14) {#if transdetailsurl}
|
|
1226
1226
|
function en(e){let t,i,n=/*$_*/e[23]("additionalLink1")+"";return{c(){t=m("a"),i=p(n),v(t,"href",/*transdetailsurl*/e[1]),v(t,"target","_blank")},m(e,n){c(e,t,n),u(t,i)},p(e,r){/*$_*/8388608&r[0]&&n!==(n=/*$_*/e[23]("additionalLink1")+"")&&L(i,n),/*transdetailsurl*/2&r[0]&&v(t,"href",/*transdetailsurl*/e[1])},d(e){e&&d(t)}}}
|
|
1227
|
-
// (
|
|
1227
|
+
// (638:10) {#if limitPeriodList.length > 0}
|
|
1228
1228
|
function tn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[23]("changeLimitLabel")+"",_=/*limitPeriodList*/e[15],w=[];for(let t=0;t<_.length;t+=1)w[t]=nn(Yi(e,_,t));return{c(){t=m("div"),i=m("label"),r=p(b),a=p(":"),o=g(),s=m("select");for(let e=0;e<w.length;e+=1)w[e].c();v(i,"for","LimitPeriod"),v(s,"id","LimitPeriod"),/*selectedLimitPeriod*/void 0===e[17]&&O((()=>/*select_change_handler*/e[48].call(s))),v(t,"class","ControlContainer")},m(n,d){c(n,t,d),u(t,i),u(i,r),u(i,a),u(t,o),u(t,s);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(s,null);T(s,/*selectedLimitPeriod*/e[17],!0),l||(f=[y(s,"change",/*select_change_handler*/e[48]),y(s,"change",/*handlePeriodChange*/e[27])],l=!0)},p(e,t){if(/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("changeLimitLabel")+"")&&L(r,b),/*limitPeriodList*/32768&t[0]){let i;for(_=/*limitPeriodList*/e[15],i=0;i<_.length;i+=1){const n=Yi(e,_,i);w[i]?w[i].p(n,t):(w[i]=nn(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=_.length}/*selectedLimitPeriod, limitPeriodList*/163840&t[0]&&T(s,/*selectedLimitPeriod*/e[17])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1229
|
-
// (
|
|
1230
|
-
function nn(e){let t,i,n,r,a=/*value*/e[
|
|
1231
|
-
// (
|
|
1229
|
+
// (642:16) {#each limitPeriodList as value}
|
|
1230
|
+
function nn(e){let t,i,n,r,a=/*value*/e[74]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[74],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitPeriodList*/32768&n[0]&&a!==(a=/*value*/e[74]+"")&&L(i,a),/*limitPeriodList*/32768&n[0]&&r!==(r=/*value*/e[74])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1231
|
+
// (650:10) {#if limitTypeList.length > 0}
|
|
1232
1232
|
function rn(e){let t,i,r,a,o,s,l,f,b=/*$_*/e[23]("limitTypeLabel")+"",_=/*limitTypeList*/e[16],w=[];for(let t=0;t<_.length;t+=1)w[t]=an(Ui(e,_,t));return{c(){t=m("div"),i=m("label"),r=p(b),a=p(":"),o=g(),s=m("select");for(let e=0;e<w.length;e+=1)w[e].c();v(i,"for","LimitType"),v(s,"id","LimitType"),/*selectedLimitType*/void 0===e[18]&&O((()=>/*select_change_handler_1*/e[49].call(s))),v(t,"class","ControlContainer")},m(n,d){c(n,t,d),u(t,i),u(i,r),u(i,a),u(t,o),u(t,s);for(let e=0;e<w.length;e+=1)w[e]&&w[e].m(s,null);T(s,/*selectedLimitType*/e[18],!0),l||(f=[y(s,"change",/*select_change_handler_1*/e[49]),y(s,"change",/*getLimitBalance*/e[24])],l=!0)},p(e,t){if(/*$_*/8388608&t[0]&&b!==(b=/*$_*/e[23]("limitTypeLabel")+"")&&L(r,b),/*limitTypeList*/65536&t[0]){let i;for(_=/*limitTypeList*/e[16],i=0;i<_.length;i+=1){const n=Ui(e,_,i);w[i]?w[i].p(n,t):(w[i]=an(n),w[i].c(),w[i].m(s,null))}for(;i<w.length;i+=1)w[i].d(1);w.length=_.length}/*selectedLimitType, limitTypeList*/327680&t[0]&&T(s,/*selectedLimitType*/e[18])},d(e){e&&d(t),h(w,e),l=!1,n(f)}}}
|
|
1233
|
-
// (
|
|
1234
|
-
function an(e){let t,i,n,r,a=/*value*/e[
|
|
1235
|
-
// (
|
|
1233
|
+
// (654:16) {#each limitTypeList as value}
|
|
1234
|
+
function an(e){let t,i,n,r,a=/*value*/e[74]+"";return{c(){t=m("option"),i=p(a),n=g(),t.__value=r=/*value*/e[74],t.value=t.__value},m(e,r){c(e,t,r),u(t,i),u(t,n)},p(e,n){/*limitTypeList*/65536&n[0]&&a!==(a=/*value*/e[74]+"")&&L(i,a),/*limitTypeList*/65536&n[0]&&r!==(r=/*value*/e[74])&&(t.__value=r,t.value=t.__value)},d(e){e&&d(t)}}}
|
|
1235
|
+
// (662:10) {#if limitTypeList.length > 0 && sessiontype === 'admin' && displayedLimit}
|
|
1236
1236
|
function on(e){let t,i,n,r,a=/*editlimitaction*/"true"===e[5]&&sn(e),o=/*editlimitaction*/"true"===e[5]&&ln(e),s=/*deletelimitaction*/"true"===e[6]&&un(e),l=/*cancelimitscheduleaction*/"true"===e[7]&&/*displayedLimit*/e[14].formattedSchedule&&(/*displayedLimit*/!0===e[14].formattedSchedule.isRemoved||/*displayedLimit*/!0===e[14].formattedSchedule.isUpdated)&&cn(e);return{c(){t=m("div"),a&&a.c(),i=g(),o&&o.c(),n=g(),s&&s.c(),r=g(),l&&l.c(),v(t,"class","ControlContainer")},m(e,d){c(e,t,d),a&&a.m(t,null),u(t,i),o&&o.m(t,null),u(t,n),s&&s.m(t,null),u(t,r),l&&l.m(t,null)},p(e,u){/*editlimitaction*/"true"===e[5]?a?a.p(e,u):(a=sn(e),a.c(),a.m(t,i)):a&&(a.d(1),a=null),/*editlimitaction*/"true"===e[5]?o?o.p(e,u):(o=ln(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),/*deletelimitaction*/"true"===e[6]?s?s.p(e,u):(s=un(e),s.c(),s.m(t,r)):s&&(s.d(1),s=null),/*cancelimitscheduleaction*/"true"!==e[7]||/*displayedLimit*/!e[14].formattedSchedule||/*displayedLimit*/!0!==e[14].formattedSchedule.isRemoved&&/*displayedLimit*/!0!==e[14].formattedSchedule.isUpdated?l&&(l.d(1),l=null):l?l.p(e,u):(l=cn(e),l.c(),l.m(t,null))},d(e){e&&d(t),a&&a.d(),o&&o.d(),s&&s.d(),l&&l.d()}}}
|
|
1237
|
-
// (
|
|
1237
|
+
// (664:14) {#if editlimitaction === 'true'}
|
|
1238
1238
|
function sn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("plus-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("addLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_3*/e[50])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("addLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1239
|
-
// (
|
|
1239
|
+
// (669:14) {#if editlimitaction === 'true'}
|
|
1240
1240
|
function ln(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("pencil-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("editLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_4*/e[51])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("editLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1241
|
-
// (
|
|
1241
|
+
// (674:14) {#if deletelimitaction === 'true'}
|
|
1242
1242
|
function un(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("cancel-limit-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("deleteLimitTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_5*/e[52])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("deleteLimitTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1243
|
-
// (
|
|
1243
|
+
// (679:14) {#if cancelimitscheduleaction === 'true' && (displayedLimit.formattedSchedule && (displayedLimit.formattedSchedule.isRemoved === true || displayedLimit.formattedSchedule.isUpdated === true))}
|
|
1244
1244
|
function cn(e){let t,i,n,r,a;return{c(){t=m("button"),i=m("calendar-times-icon"),_(i,"class","ActionsSvg"),v(t,"class","ActionButton"),v(t,"title",n=/*$_*/e[23]("cancelScheduleTitle"))},m(n,o){c(n,t,o),u(t,i),r||(a=y(t,"click",b(/*click_handler_6*/e[53])),r=!0)},p(e,i){/*$_*/8388608&i[0]&&n!==(n=/*$_*/e[23]("cancelScheduleTitle"))&&v(t,"title",n)},d(e){e&&d(t),r=!1,a()}}}
|
|
1245
|
-
// (
|
|
1245
|
+
// (689:8) {:else}
|
|
1246
1246
|
function dn(e){let t,i,n,r,a,s,l,h,f,y,b,_,T,E,S,k,M,D,A,P,H,C,x,O,R,N,B,U,Y,I,j=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"",G=/*displayedLimit*/e[14].limitCurrency+"",F=/*displayedLimit*/e[14].limitCurrency+"",$=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"",z=/*displayedLimit*/e[14].limitCurrency+"";return{c(){var u,c;t=m("div"),i=m("div"),n=m("img"),a=g(),s=m("div"),l=g(),h=m("div"),f=p(j),y=g(),b=p(G),T=g(),E=m("div"),S=g(),k=m("div"),M=g(),D=m("div"),A=m("div"),P=m("strong"),P.textContent="0",H=g(),C=m("span"),x=p(F),O=g(),R=m("div"),N=m("strong"),B=p($),U=g(),Y=m("span"),I=p(z),v(n,"class","Archbg"),u=n.src,c=r=Di,o||(o=document.createElement("a")),o.href=c,u!==o.href&&v(n,"src",r),v(n,"alt","arch"),v(s,"class","GaugeFill"),w(s,"--p",/*gaugeValue*/e[21]+"deg"),v(h,"class","GaugeCover"),v(h,"title",_=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`),v(E,"class","GaugeNeedleCover"),v(k,"class","GaugeNeedle"),w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[21]-90)+"deg)"),v(i,"class","GaugeBody"),v(P,"class","MinContent"),v(C,"class","MinContentCurrency"),v(A,"class","Min"),v(N,"class","MaxContent"),v(Y,"class","MaxContentCurrency"),v(R,"class","Max"),v(D,"class","MinMaxContainer"),v(t,"class","Gauge")},m(e,r){c(e,t,r),u(t,i),u(i,n),u(i,a),u(i,s),u(i,l),u(i,h),u(h,f),u(h,y),u(h,b),u(i,T),u(i,E),u(i,S),u(i,k),u(t,M),u(t,D),u(D,A),u(A,P),u(A,H),u(A,C),u(C,x),u(D,O),u(D,R),u(R,N),u(N,B),u(R,U),u(R,Y),u(Y,I)},p(e,t){/*gaugeValue*/2097152&t[0]&&w(s,"--p",/*gaugeValue*/e[21]+"deg"),/*displayedLimit*/16384&t[0]&&j!==(j=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)+"")&&L(f,j),/*displayedLimit*/16384&t[0]&&G!==(G=/*displayedLimit*/e[14].limitCurrency+"")&&L(b,G),/*displayedLimit*/16384&t[0]&&_!==(_=`${/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].spentAmount)} ${/*displayedLimit*/e[14].limitCurrency}`)&&v(h,"title",_),/*gaugeValue*/2097152&t[0]&&w(k,"--transform-needle-value","rotate("+(/*gaugeValue*/e[21]-90)+"deg)"),/*displayedLimit*/16384&t[0]&&F!==(F=/*displayedLimit*/e[14].limitCurrency+"")&&L(x,F),/*displayedLimit*/16384&t[0]&&$!==($=/*formatWithSeparator*/e[30](/*displayedLimit*/e[14].totalAmount)+"")&&L(B,$),/*displayedLimit*/16384&t[0]&&z!==(z=/*displayedLimit*/e[14].limitCurrency+"")&&L(I,z)},d(e){e&&d(t)}}}
|
|
1247
|
-
// (
|
|
1247
|
+
// (687:8) {#if isGaugeLoading}
|
|
1248
1248
|
function hn(e){let t;return{c(){t=m("general-animation-loading"),_(t,"clientstyling",/*clientstyling*/e[3]),_(t,"clientstylingurl",/*clientstylingurl*/e[4])},m(e,i){c(e,t,i)},p(e,i){/*clientstyling*/8&i[0]&&_(t,"clientstyling",/*clientstyling*/e[3]),/*clientstylingurl*/16&i[0]&&_(t,"clientstylingurl",/*clientstylingurl*/e[4])},d(e){e&&d(t)}}}
|
|
1249
|
-
// (
|
|
1249
|
+
// (556:8) {#if editlimitaction === 'true'}
|
|
1250
1250
|
function mn(e){let t,i,n,r,a,o,s,l,h=/*$_*/e[23]("addLimitText")+"";return{c(){t=m("button"),i=m("plus-icon"),n=g(),r=m("span"),a=p(h),_(i,"class","ActionsSvg"),v(t,"class","AddLimitControl"),v(t,"title",o=/*$_*/e[23]("addLimitTitle"))},m(o,d){c(o,t,d),u(t,i),u(t,n),u(t,r),u(r,a),s||(l=y(t,"click",b(/*click_handler*/e[45])),s=!0)},p(e,i){/*$_*/8388608&i[0]&&h!==(h=/*$_*/e[23]("addLimitText")+"")&&L(a,h),/*$_*/8388608&i[0]&&o!==(o=/*$_*/e[23]("addLimitTitle"))&&v(t,"title",o)},d(e){e&&d(t),s=!1,l()}}}function fn(t){let i,n,r;function a(e,t){/*noLimitToDisplay*/
|
|
1251
1251
|
return e[12]?Fi:/*errorMessage*/e[22]?Gi:ji}let o=a(t),s=o(t);return{c(){i=m("div"),n=m("div"),s.c(),this.c=e,v(n,"class","LimitsContainer"),v(i,"class",r=/*displayNone*/t[9]?"DisplayNone":"")},m(e,r){c(e,i,r),u(i,n),s.m(n,null),
|
|
1252
1252
|
/*div0_binding*/t[54](n)},p(e,t){o===(o=a(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(n,null))),/*displayNone*/512&t[0]&&r!==(r=/*displayNone*/e[9]?"DisplayNone":"")&&v(i,"class",r)},i:e,o:e,d(e){e&&d(i),s.d(),
|
|
1253
|
-
/*div0_binding*/t[54](null)}}}function pn(e,t,i){let n;var r,a;r=Si,a=e=>i(23,n=e),e.$$.on_destroy.push(l(r,a));let o,s,{session:u=""}=t,{sessiontype:c=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{transdetailsurl:m=""}=t,{transactionspageurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{lang:y="en"}=t,{translationurl:b=""}=t,{datetimeformat:v=""}=t,{editlimitaction:_=""}=t,{deletelimitaction:L=""}=t,{cancelimitscheduleaction:w=""}=t,{getutctime:T=""}=t,S=!1,k=!1,D=!1,P="",H="",C=!0,x=!0,O=!1,R={id:"",totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},N=[],B=[],U="",Y="",I="",j=[],G=[],F=0,$="";const V={
|
|
1253
|
+
/*div0_binding*/t[54](null)}}}function pn(e,t,i){let n;var r,a;r=Si,a=e=>i(23,n=e),e.$$.on_destroy.push(l(r,a));let o,s,{session:u=""}=t,{sessiontype:c=""}=t,{userid:d=""}=t,{endpoint:h=""}=t,{transdetailsurl:m=""}=t,{transactionspageurl:f=""}=t,{clientstyling:p=""}=t,{clientstylingurl:g=""}=t,{lang:y="en"}=t,{translationurl:b=""}=t,{datetimeformat:v=""}=t,{editlimitaction:_=""}=t,{deletelimitaction:L=""}=t,{cancelimitscheduleaction:w=""}=t,{getutctime:T=""}=t,S=!1,k=!1,D=!1,P="",H="",C=!0,x=!0,O=!1,R={id:"",totalAmount:null,spentAmount:"",limitCurrency:"EUR",remainingAmount:"",limitPeriod:"",limitProducts:"",from:"",to:""},N=[],B=[],U="",Y="",I="",j=[],G=[],F=0,$="";const V={Daily:0,Weekly:1,Monthly:2};Object.keys(Mi).forEach((e=>{ki(e,Mi[e])})),
|
|
1254
1254
|
/**
|
|
1255
1255
|
* Sets the isMounted flag after a short delay when the component is first rendered.
|
|
1256
1256
|
*/
|
|
@@ -1267,7 +1267,9 @@ return window.addEventListener("click",e),()=>{window.removeEventListener("click
|
|
|
1267
1267
|
/**
|
|
1268
1268
|
* Sets the session information upon login.
|
|
1269
1269
|
*/
|
|
1270
|
-
const W=e=>{i(22,$=e)},Z=async()=>{i(13,O=!1);try{if(j=await q(),0===j.length)return i(10,C=!1),void i(12,s=!0);i(15,N=[...new Set(j.map((e=>e.period)))].sort(((e,t)=>V[e]-V[t])))
|
|
1270
|
+
const W=e=>{i(22,$=e)},Z=async()=>{i(13,O=!1);try{if(j=await q(),0===j.length)return i(10,C=!1),void i(12,s=!0);i(15,N=[...new Set(j.map((e=>e.period)))].sort(((e,t)=>V[e]-V[t])));const e=U||j[0].period;i(20,G=X(e)),G.includes(I)||i(19,I=G[0]);const t=(()=>{let e=j;
|
|
1271
|
+
// Return the first matching limit or the first limit in the list if no matches are found
|
|
1272
|
+
return U&&(e=e.filter((e=>e.period===U))),Y&&(e=e.filter((e=>e.type===Y))),I&&(e=e.filter((e=>e.products.includes(I)))),e[0]||j[0]})();K(t)}catch(e){return i(10,C=!1),void W(n("fetchLimitBalanceError"))}},q=async()=>{try{const e=new URL(`${h}/v1/player/${H}/limits/monetary/`),t={method:"GET",headers:{"X-SessionId":P,"X-Session-Type":c}},r=await fetch(e,t);if(!r.ok)throw new Error(n("fetchLimitDefError"));const a=await r.json(),o=["Deposit","Loss","Wagering"],s=a.limits.map((e=>e.type));i(16,B=Array.from(new Set(s)).filter((e=>o.includes(e)))),Y||i(18,Y=B[0]);const l=a.limits.filter((e=>e.type===Y));return l.length>0?l:[]}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}},X=e=>{const t=j.filter((t=>t.period===e)),i=[];return t.forEach((e=>{e.products.forEach((e=>{-1===i.indexOf(e)&&i.push(e)}))})),i.sort()},K=async e=>{try{i(10,C=!0);const t=new URL(`${h}/v1/player/${H}/limits/monetary/balance`);t.searchParams.append("limitDefinitionId",e.id);const r={method:"GET",headers:{"X-SessionId":P,"X-Session-Type":c}},a=await fetch(t,r);if(!a.ok)throw new Error(n("fetchLimitBalanceError"));const o=await a.json();J(o.limitBalances[0],e)}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}finally{i(10,C=!1)}},J=(e,t)=>{i(17,U=e.limitPeriod),i(19,I=e.limitProducts[0]);const n=Q(t.id,t.schedules);i(14,R={id:t.id,totalAmount:e.limitAmount,spentAmount:e.spentBalance.amount.toFixed(2),limitCurrency:e.limitCurrency,remainingAmount:(e.limitAmount-e.spentBalance.amount).toFixed(2),limitPeriod:e.limitPeriod,limitProducts:I,from:e.from,to:e.to}),n&&i(14,R.formattedSchedule=n,R),te(R)},Q=(e,t)=>{const i=t.find((t=>t.playerLimitId===e));return i?{updateAmount:i.updateAmount,expires:i.applyAt,expiresString:ee(i.applyAt),id:i.id,isRemoved:i.updateAmount<1,isUpdated:i.updateAmount>0}:{updateAmount:"",expires:"",expiresString:"",id:"",isRemoved:!1,isUpdated:!1}},ee=e=>{const t="true"===T;return z(e).utc(t).format(v||"DD/MM/YYYY HH:mm:ss")},te=e=>{
|
|
1271
1273
|
// Calculate newGaugeValue within [0, 180]
|
|
1272
1274
|
let t=180/e.totalAmount*parseFloat(e.spentAmount);t=Math.min(180,Math.max(0,t));const n=setInterval((()=>{i(21,F+=F<t?1.5:-1.5),Math.abs(F-t)<=1.5&&(i(21,F=t),clearInterval(n))}));// Step size for increasing/decreasing gaugeValue
|
|
1273
1275
|
i(11,x=!1)},ie=e=>{const t=j.find((t=>t.period===U&&t.products.includes(e)));i(14,R.limitProducts=e,R),i(13,O=!1),t&&K(t)},ne=()=>{var e;e=y,ai.set(e)},re=()=>{i(13,O=!O)},ae=(e,t)=>new Date(e.getTime()-24*t*60*60*1e3),oe=()=>{window.postMessage({type:"RGW:EditLimit",payload:{id:R.id}},window.location.href)},se=()=>{window.postMessage({type:"RGW:DeleteLimit",payload:{id:R.id}},window.location.href)},le=()=>{R&&R.formattedSchedule&&window.postMessage({type:"RGW:CancelLimitSchedule",payload:{limitId:R.id,scheduleId:R.formattedSchedule.id}},window.location.href)},ue=()=>{window.postMessage({type:"RGW:AddNewLimit"},window.location.href)};
|
|
@@ -1275,5 +1277,5 @@ i(11,x=!1)},ie=e=>{const t=j.find((t=>t.period===U&&t.products.includes(e)));i(1
|
|
|
1275
1277
|
* Handles errors by updating the error message.
|
|
1276
1278
|
*
|
|
1277
1279
|
* @param error - The error message to be handled.
|
|
1278
|
-
*/return e.$$set=e=>{"session"in e&&i(36,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(37,d=e.userid),"endpoint"in e&&i(38,h=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(39,y=e.lang),"translationurl"in e&&i(40,b=e.translationurl),"datetimeformat"in e&&i(41,v=e.datetimeformat),"editlimitaction"in e&&i(5,_=e.editlimitaction),"deletelimitaction"in e&&i(6,L=e.deletelimitaction),"cancelimitscheduleaction"in e&&i(7,w=e.cancelimitscheduleaction),"getutctime"in e&&i(42,T=e.getutctime)},e.$$.update=()=>{/*isMounted, session, userid*/4192&e.$$.dirty[1]&&k&&u&&d&&(i(44,D=!0),P=u,H=d),/*isMounted, isLoggedIn*/12288&e.$$.dirty[1]&&k&&D&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&(i(18,Y=""),Z())})),/*isMounted, isLoggedIn*/12288&e.$$.dirty[1]&&k&&D&&Z(),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&o&&(()=>{let e=document.createElement("style");e.innerHTML=p,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&o&&(()=>{try{i(9,S=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1),setTimeout((()=>{i(9,S=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}})(),/*lang*/256&e.$$.dirty[1]&&y&&ne(),/*translationurl*/512&e.$$.dirty[1]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ki(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,_,L,w,o,S,C,x,s,O,R,N,B,U,Y,I,G,F,$,n,Z,ee,e=>{switch(e){case"Deposit":return n("depositLimitHeader");case"Loss":return n("lossLimitHeader");case"Wagering":return n("wageringLimitHeader");default:return""}},e=>{const t=e.currentTarget;i(17,U=t.value),i(20,G=X(U)),i(13,O=!1),G.includes(I)||i(19,I=G[0]);const n=j.find((e=>e.period===U&&e.products.includes(I)));n&&K(n)},ie,re,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===Y?"payment-transactions":"gaming-transactions",i=ae(new Date(R.to),{Daily:1,Weekly:7,Monthly:30}[U]);try{const n=new URL(`${e}/gammatrix/gmwi/${t}`);switch(n.searchParams.append("transStatuses","2"),n.searchParams.append("startTime",i.toISOString()),n.searchParams.append("endTime",(new Date).toISOString()),n.searchParams.append("dateOption","Select custom dates"),n.searchParams.append("userId",d),Y){case"Deposit":n.searchParams.append("transTypes","1");break;case"Wagering":n.searchParams.append("transTypes","12");break;case"Loss":n.searchParams.append("transTypes","8")}return n.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}},oe,se,le,ue,u,d,h,y,b,v,T,k,D,()=>ue(),()=>re(),e=>ie(e),function(){U=E(this),i(17,U),i(15,N)},function(){Y=E(this),i(18,Y),i(16,B)},()=>ue(),()=>oe(),()=>se(),()=>le(),function(e){A[e?"unshift":"push"]((()=>{o=e,i(8,o)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends F{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Bi,Ni,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}});class gn extends F{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ContainerCenter p{padding:6px}.ErrorMessage{margin:0 15px;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:20px;overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:700}caret-right{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius:0.3rem;min-height:1rem;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-primary, #307fe2);padding:0.3rem;cursor:pointer;min-width:10rem;display:flex;flex-direction:row;align-items:center;justify-content:center}.WidgetControls{display:flex;width:100%;justify-content:end;gap:20px}.ControlContainer label{display:block;width:100%;font-size:12px;font-weight:bold;margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:5px;width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:5px;width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.AddLimitControl .ActionsSvg{height:2em;width:2em;display:flex;justify-content:center;cursor:pointer;padding:5px;margin-right:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:4px;background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:black;margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b:26px;border-radius:500px 500px 0 0;background:var(--emw--gauge-fill-bg, var(--emw--color-primary, #307fe2));mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;-webkit-mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;mask-composite:intersect;-webkit-mask-composite:destination-in}.GaugeFill::before{content:"";display:block;padding-top:50%}.GaugeCover{position:absolute;left:50%;transform:translateX(-50%);top:50%;font-size:large;white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:#f5f5f5;border-radius:13px;box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:700;text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:36px;align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:24px}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:#F5F5F5;width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:700}.ProductsDropdown button:hover{background-color:var(--emw--color-primary, #307fe2);color:#fff}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},pn,fn,a,{session:36,sessiontype:0,userid:37,endpoint:38,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:39,translationurl:40,datetimeformat:41,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7,getutctime:42},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat","editlimitaction","deletelimitaction","cancelimitscheduleaction","getutctime"]}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),B()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),B()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),B()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),B()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),B()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),B()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}get lang(){return this.$$.ctx[39]}set lang(e){this.$$set({lang:e}),B()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),B()}get datetimeformat(){return this.$$.ctx[41]}set datetimeformat(e){this.$$set({datetimeformat:e}),B()}get editlimitaction(){return this.$$.ctx[5]}set editlimitaction(e){this.$$set({editlimitaction:e}),B()}get deletelimitaction(){return this.$$.ctx[6]}set deletelimitaction(e){this.$$set({deletelimitaction:e}),B()}get cancelimitscheduleaction(){return this.$$.ctx[7]}set cancelimitscheduleaction(e){this.$$set({cancelimitscheduleaction:e}),B()}get getutctime(){return this.$$.ctx[42]}set getutctime(e){this.$$set({getutctime:e}),B()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",gn),gn}));
|
|
1280
|
+
*/return e.$$set=e=>{"session"in e&&i(36,u=e.session),"sessiontype"in e&&i(0,c=e.sessiontype),"userid"in e&&i(37,d=e.userid),"endpoint"in e&&i(38,h=e.endpoint),"transdetailsurl"in e&&i(1,m=e.transdetailsurl),"transactionspageurl"in e&&i(2,f=e.transactionspageurl),"clientstyling"in e&&i(3,p=e.clientstyling),"clientstylingurl"in e&&i(4,g=e.clientstylingurl),"lang"in e&&i(39,y=e.lang),"translationurl"in e&&i(40,b=e.translationurl),"datetimeformat"in e&&i(41,v=e.datetimeformat),"editlimitaction"in e&&i(5,_=e.editlimitaction),"deletelimitaction"in e&&i(6,L=e.deletelimitaction),"cancelimitscheduleaction"in e&&i(7,w=e.cancelimitscheduleaction),"getutctime"in e&&i(42,T=e.getutctime)},e.$$.update=()=>{/*isMounted, session, userid*/4192&e.$$.dirty[1]&&k&&u&&d&&(i(44,D=!0),P=u,H=d),/*isMounted, isLoggedIn*/12288&e.$$.dirty[1]&&k&&D&&window.addEventListener("message",(e=>{"RGW:RefreshLimits"===e.data.type&&Z()})),/*isMounted, isLoggedIn*/12288&e.$$.dirty[1]&&k&&D&&Z(),/*clientstyling, customStylingContainer*/264&e.$$.dirty[0]&&p&&o&&(()=>{let e=document.createElement("style");e.innerHTML=p,o.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/272&e.$$.dirty[0]&&g&&o&&(()=>{try{i(9,S=!0);let e=new URL(g),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{o.appendChild(t)}),1),setTimeout((()=>{i(9,S=!1)}),500)}))}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}})(),/*lang*/256&e.$$.dirty[1]&&y&&ne(),/*translationurl*/512&e.$$.dirty[1]&&b&&(()=>{let e=new URL(b);fetch(e.href).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ki(t,e[t])}))})).catch((e=>{console.log(e)}))})()},[c,m,f,p,g,_,L,w,o,S,C,x,s,O,R,N,B,U,Y,I,G,F,$,n,Z,ee,e=>{switch(e){case"Deposit":return n("depositLimitHeader");case"Loss":return n("lossLimitHeader");case"Wagering":return n("wageringLimitHeader");default:return""}},e=>{const t=e.currentTarget;i(17,U=t.value),i(20,G=X(U)),i(13,O=!1),G.includes(I)||i(19,I=G[0]);const n=j.find((e=>e.period===U&&e.products.includes(I)));n&&K(n)},ie,re,e=>e.toString().replace(/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g," "),()=>{const e=f,t="Deposit"===Y?"payment-transactions":"gaming-transactions",i=ae(new Date(R.to),{Daily:1,Weekly:7,Monthly:30}[U]);try{const n=new URL(`${e}/gammatrix/gmwi/${t}`);switch(n.searchParams.append("transStatuses","2"),n.searchParams.append("startTime",i.toISOString()),n.searchParams.append("endTime",(new Date).toISOString()),n.searchParams.append("dateOption","Select custom dates"),n.searchParams.append("userId",d),Y){case"Deposit":n.searchParams.append("transTypes","1");break;case"Wagering":n.searchParams.append("transTypes","12");break;case"Loss":n.searchParams.append("transTypes","8")}return n.toString()}catch(e){const t=e instanceof TypeError?n("invalidUrl"):e.message;W(t)}},oe,se,le,ue,u,d,h,y,b,v,T,k,D,()=>ue(),()=>re(),e=>ie(e),function(){U=E(this),i(17,U),i(15,N)},function(){Y=E(this),i(18,Y),i(16,B)},()=>ue(),()=>oe(),()=>se(),()=>le(),function(e){A[e?"unshift":"push"]((()=>{o=e,i(8,o)}))}]}!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",class extends F{constructor(e){super();const t=document.createElement("style");t.textContent=".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}",this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},Bi,Ni,a,{clientstyling:1,clientstylingurl:2},null),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["clientstyling","clientstylingurl"]}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}});class gn extends F{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.DisplayNone{display:none}.ContainerCenter{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ContainerCenter p{padding:6px}.ErrorMessage{margin:0 15px;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.LimitsContainer{display:flex;width:100%;max-width:700px;min-height:150px;border:1px solid var(--emw--color-primary, #307fe2);border-radius:20px;overflow:hidden;box-shadow:14px 26px 19.7px 0px var(--emw--color-gray-150, #76768B);gap:25px;padding:25px}.ContentLeft{line-height:20px;flex:1}.LimitTypeHeader{display:flex;align-items:center;color:var(--emw--color-gray-150, #76768B);margin-bottom:20px;gap:5px}.DetailsContainer{margin-bottom:15px;display:inline}.DetailsContainer span{font-weight:700}caret-right{color:var(--emw--color-primary, #307fe2)}.ContentRight{min-width:300px;display:flex;justify-content:center;flex-direction:column}.ExtraInfoContainer{padding:1rem 0;color:var(--emfe-w-color-red, #ed0909)}.UsefulLinksSection{padding-top:5px}.UsefulLinksSection a{color:var(--emw--color-primary, #307fe2);text-decoration:underline}.AddLimitControl{border:0.1rem solid var(--emw--color-primary, #307fe2);border-radius:0.3rem;min-height:1rem;color:var(--emw--color-white, #FFFFFF);background:var(--emw--color-primary, #307fe2);padding:0.3rem;cursor:pointer;min-width:10rem;display:flex;flex-direction:row;align-items:center;justify-content:center}.WidgetControls{display:flex;width:100%;justify-content:end;gap:20px}.ControlContainer label{display:block;width:100%;font-size:12px;font-weight:bold;margin-bottom:5px}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:5px;width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.ControlContainer button{padding:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:5px;width:25px;cursor:pointer;display:flex;flex-direction:column;margin-bottom:4px}.ControlContainer .ActionsSvg{height:1em;width:1em;display:flex;justify-content:center;cursor:pointer}.AddLimitControl .ActionsSvg{height:2em;width:2em;display:flex;justify-content:center;cursor:pointer;padding:5px;margin-right:5px;border:1px solid var(--emw--color-contrast, #07072A);border-radius:4px;background:var(--emw--color-white, #FFFFFF)}.Gauge{width:100%;font-family:"Roboto", sans-serif;color:black;margin:1rem 0;flex:1;align-content:center}.GaugeBody{width:100%;position:relative;text-align:center;padding:23px;padding-bottom:0}.Archbg{position:absolute;right:0;bottom:0}.GaugeFill{--p:0deg;--b:26px;border-radius:500px 500px 0 0;background:var(--emw--gauge-fill-bg, var(--emw--color-primary, #307fe2));mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;-webkit-mask:radial-gradient(farthest-side at bottom, transparent calc(100% - var(--b) - 1px), #fff calc(100% - var(--b))), linear-gradient(var(--p), #fff 50%, transparent 0) top/100% 200%;mask-composite:intersect;-webkit-mask-composite:destination-in}.GaugeFill::before{content:"";display:block;padding-top:50%}.GaugeCover{position:absolute;left:50%;transform:translateX(-50%);top:50%;font-size:large;white-space:nowrap;width:130px;max-width:200px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none}.GaugeNeedle{width:0.2rem;height:3.5rem;background:linear-gradient(0deg, #000000 0, #000000 55%, #c5c5c5 55%, #c5c5c5 90%, #000000 90%, #000000 100%);display:inline-block;left:49.5%;position:absolute;bottom:0.1rem;transform:var(--transform-needle-value);transform-origin:bottom}.GaugeNeedleCover{width:60px;height:30px;border-radius:150px 150px 0 0;background:var(--emw--color-black, #000000);background:radial-gradient(circle at 50% 100%, var(--emw--color-black, #000000) 0%, var(--emw--color-black, #000000) 25%, #fff 25%, #fff 40%, var(--emw--color-primary, #307fe2) 40%);position:absolute;bottom:0;left:50%;border:4px solid var(--emw--color-white, #FFFFFF);border-bottom:0;transform:translateX(-50%)}.MinMaxContainer{display:flex;justify-content:space-between;margin-top:10px}.ProductSelector{position:relative;margin-bottom:20px}.DisplayContainer{border:1px solid var(--emw--color-primary, #307fe2);background-color:#f5f5f5;border-radius:13px;box-shadow:4px 4px 4px 0px rgba(0, 0, 0, 0.25);padding:9px;display:flex;align-items:center;justify-content:space-between;color:var(--emw--color-contrast, #07072A);gap:5px;margin-top:20px}.SelectedProduct{font-weight:700;text-align:center;width:70px;color:var(--emw--color-gray-150, #76768B)}.TotalAmount{font-size:36px;align-items:baseline;gap:5px;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;line-height:normal;justify-content:center;white-space:nowrap;max-width:188px;flex:1;text-align:center}.TotalAmount .Currency{font-size:24px}.TotalAmount::-webkit-scrollbar{display:none}.ProductsDropdown{display:none;position:absolute;background-color:#F5F5F5;width:100%;box-shadow:0 8px 16px 0 rgba(0, 0, 0, 0.2);z-index:1;border:1px solid var(--emw--color-primary, #307fe2)}.ProductsDropdown.Show{display:block}.ProductsDropdown button{background-color:transparent;border:none;outline:none;cursor:pointer;padding:10px;width:100%;text-align:left;font-weight:700}.ProductsDropdown button:hover{background-color:var(--emw--color-primary, #307fe2);color:#fff}.DropdownToggle{width:35px;height:35px;display:flex;justify-content:center;align-items:center;background:none;border:none;cursor:pointer;color:var(--emw--color-primary, #307fe2);line-height:0}.DropdownToggle.Active{transform:rotate(90deg)}.Row{display:flex}.Col{flex:1}',this.shadowRoot.appendChild(t),G(this,{target:this.shadowRoot,props:S(this.attributes),customElement:!0},pn,fn,a,{session:36,sessiontype:0,userid:37,endpoint:38,transdetailsurl:1,transactionspageurl:2,clientstyling:3,clientstylingurl:4,lang:39,translationurl:40,datetimeformat:41,editlimitaction:5,deletelimitaction:6,cancelimitscheduleaction:7,getutctime:42},null,[-1,-1,-1]),e&&(e.target&&c(e.target,this,e.anchor),e.props&&(this.$set(e.props),B()))}static get observedAttributes(){return["session","sessiontype","userid","endpoint","transdetailsurl","transactionspageurl","clientstyling","clientstylingurl","lang","translationurl","datetimeformat","editlimitaction","deletelimitaction","cancelimitscheduleaction","getutctime"]}get session(){return this.$$.ctx[36]}set session(e){this.$$set({session:e}),B()}get sessiontype(){return this.$$.ctx[0]}set sessiontype(e){this.$$set({sessiontype:e}),B()}get userid(){return this.$$.ctx[37]}set userid(e){this.$$set({userid:e}),B()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),B()}get transdetailsurl(){return this.$$.ctx[1]}set transdetailsurl(e){this.$$set({transdetailsurl:e}),B()}get transactionspageurl(){return this.$$.ctx[2]}set transactionspageurl(e){this.$$set({transactionspageurl:e}),B()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(e){this.$$set({clientstyling:e}),B()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),B()}get lang(){return this.$$.ctx[39]}set lang(e){this.$$set({lang:e}),B()}get translationurl(){return this.$$.ctx[40]}set translationurl(e){this.$$set({translationurl:e}),B()}get datetimeformat(){return this.$$.ctx[41]}set datetimeformat(e){this.$$set({datetimeformat:e}),B()}get editlimitaction(){return this.$$.ctx[5]}set editlimitaction(e){this.$$set({editlimitaction:e}),B()}get deletelimitaction(){return this.$$.ctx[6]}set deletelimitaction(e){this.$$set({deletelimitaction:e}),B()}get cancelimitscheduleaction(){return this.$$.ctx[7]}set cancelimitscheduleaction(e){this.$$set({cancelimitscheduleaction:e}),B()}get getutctime(){return this.$$.ctx[42]}set getutctime(e){this.$$set({getutctime:e}),B()}}return!customElements.get("player-rglimits")&&customElements.define("player-rglimits",gn),gn}));
|
|
1279
1281
|
//# sourceMappingURL=player-rglimits.js.map
|