@everymatrix/casino-header-controller 1.90.37 → 1.91.1
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/{CasinoHamburgerMenu-eKlF8MeQ.js → CasinoHamburgerMenu-C0VTwICg.js} +1 -1
- package/components/{CasinoHamburgerMenu-lnMLzEIR.js → CasinoHamburgerMenu-DQcLlHLc.js} +1 -1
- package/components/{CasinoHamburgerMenu-CHeXjQef.cjs → CasinoHamburgerMenu-m315Pv6W.cjs} +1 -1
- package/components/{CasinoHeaderController-DNe7Ax48.js → CasinoHeaderController-BSF_iIlc.js} +5 -5
- package/components/{CasinoHeaderController-DueIkbKK.cjs → CasinoHeaderController-Bz511gHv.cjs} +2 -2
- package/components/{CasinoHeaderController-D3crqrEb.js → CasinoHeaderController-U2mk40Zx.js} +5 -5
- package/components/{CasinoSlider-IB09yl6r.cjs → CasinoSlider-CZEJ4Vho.cjs} +1 -1
- package/components/{CasinoSlider-OnxqsaMH.js → CasinoSlider-CvAVhaNm.js} +1 -1
- package/components/{CasinoSlider-ClpW8ymK.js → CasinoSlider-Dq5ZEepQ.js} +1 -1
- package/components/{PlayerAccountBalanceModal-DOzLv9cj.js → PlayerAccountBalanceModal-GIS5jiqN.js} +1 -1
- package/components/{PlayerAccountBalanceModal-DPhtBmMn.cjs → PlayerAccountBalanceModal-HVwCqqju.cjs} +1 -1
- package/components/{PlayerAccountBalanceModal-Cgq_lodr.js → PlayerAccountBalanceModal-s7rFWKr6.js} +1 -1
- package/components/{PlayerDeposit-XupkzXWO.cjs → PlayerDeposit-Ceh-E42n.cjs} +1 -1
- package/components/{PlayerDeposit-CjSv25ic.js → PlayerDeposit-D_jA84vh.js} +1 -1
- package/components/{PlayerDeposit-8454g--D.js → PlayerDeposit-MOAtCQJZ.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-DSE_lpH9.js → gamification-dropdown-CSyPPMuc.js} +1 -1
- package/stencil/{gamification-dropdown-CZF5qed-.cjs → gamification-dropdown-CY65haMO.cjs} +1 -1
- package/stencil/{gamification-dropdown-D9jqVo7w.js → gamification-dropdown-DG7xq-Ym.js} +1 -1
- package/stencil/{gamification-dropdown-f0760153-K-eenscf.js → gamification-dropdown-f0760153-BY0gVpRj.js} +1 -1
- package/stencil/{gamification-dropdown-f0760153-CRhTFG-Y.cjs → gamification-dropdown-f0760153-C_0soonT.cjs} +1 -1
- package/stencil/{gamification-dropdown-f0760153-zJC8b1gN.js → gamification-dropdown-f0760153-CzTobtLE.js} +1 -1
- package/stencil/{gamification-dropdown_4-CSakqeKb.js → gamification-dropdown_4-CkzND1nq.js} +5 -5
- package/stencil/{gamification-dropdown_4-C1S-kug8.cjs → gamification-dropdown_4-Lm-DAarD.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-Sh5SD8AV.js → gamification-dropdown_4-t4Un5KRQ.js} +5 -5
- package/stencil/{index-71b1bdfa-CtRJq3ig.cjs → index-71b1bdfa-02c9WqTY.cjs} +1 -1
- package/stencil/{index-71b1bdfa-B-OeN7nu.js → index-71b1bdfa-Bvo8qJYL.js} +4 -4
- package/stencil/{index-71b1bdfa-l3Xk4raZ.js → index-71b1bdfa-DALpnrPg.js} +4 -4
- package/stencil/{player-elevate-card-BJ-LV6F8.js → player-elevate-card-BCrXqLKv.js} +7 -7
- package/stencil/{player-elevate-card-BFbPL87o.cjs → player-elevate-card-Bv5ISI8b.cjs} +2 -2
- package/stencil/{player-elevate-card-L8ZqnVBk.js → player-elevate-card-hhb-Basj.js} +7 -7
- package/stencil/{player-elevate-card-items-b4571def-D4w0PDog.js → player-elevate-card-items-b4571def-Bfy3ze3i.js} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-CgOcC8Y3.cjs → player-elevate-card-items-b4571def-C3w8k5xM.cjs} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-BgDj5KLs.js → player-elevate-card-items-b4571def-DBwPNsPC.js} +1 -1
- package/stencil/{player-elevate-pointcard-CO-lIs9Y.cjs → player-elevate-pointcard-B7L0c4H7.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-CBsoo3XH.js → player-elevate-pointcard-BhpetM_Z.js} +4 -4
- package/stencil/{player-elevate-pointcard-Dh4qmcOc.js → player-elevate-pointcard-BxUciUFR.js} +4 -4
- package/stencil/{player-rakeback-card-CzlkKaxP.cjs → player-rakeback-card-B9mwNP11.cjs} +1 -1
- package/stencil/{player-rakeback-card-CWDB_bNr.js → player-rakeback-card-Be-3-iW3.js} +2 -2
- package/stencil/{player-rakeback-card-BSQ9O-U9.js → player-rakeback-card-C3wWUW7r.js} +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=(a,t,e)=>new Promise((o,i)=>{var c=r=>{try{s(e.next(r))}catch(b){i(b)}},d=r=>{try{s(e.throw(r))}catch(b){i(b)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(c,d);s((e=e.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-
|
|
1
|
+
"use strict";var l=(a,t,e)=>new Promise((o,i)=>{var c=r=>{try{s(e.next(r))}catch(b){i(b)}},d=r=>{try{s(e.throw(r))}catch(b){i(b)}},s=r=>r.done?o(r.value):Promise.resolve(r.value).then(c,d);s((e=e.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-71b1bdfa-02c9WqTY.cjs"),k=require("./locale-m6IHPAzW.cjs"),f=":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}",m=f,h=class{constructor(a){n.registerInstance(this,a),this.truncateNumber=(t,e=2)=>{const o=t.toString(),[i,c=""]=o.split(".");return e>0?`${i}.${c?c.slice(0,e):"00"}`:`${i}`},this.sendRakebackClaimedEvent=()=>{!this.endpoint||!this.session||!this.rakebackInfo.claimable||this.isLoading||window.postMessage({type:"RakebackClaimTrigger",points:this.rakebackInfo.points},window.location.href)},this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.language="en",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.show=!0,this.rakebackInfo={hasRakebackWallet:!1,points:0,currency:"TRY",claimable:!1,minutesCanClaim:0,showCanClaim:!1},this.isLoading=!1,this.coolingOffPeriod=!1,this.showTheWidget=!1}onSessionOrEndpointChange(){return l(this,null,function*(){yield this.loadRakebackInfo()})}onShowOrHasRakebackWalletChange(){return l(this,null,function*(){this.showTheWidget=this.show&&this.rakebackInfo.hasRakebackWallet})}handleMessage(a){const{type:t}=a==null?void 0:a.data;t==="RakebackClaimConfirmed"&&this.claimRakeback()}loadRakebackInfo(){return l(this,null,function*(){if(!(!this.endpoint||!this.session)){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/playerInfo?language=${this.language}`),t=yield fetch(a.href,{method:"GET",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const e=yield t.json();if(!e.success)throw new Error(e.errorMessage||"Failed to load rakeback info");const{rakebackWallet:o}=e==null?void 0:e.data;if(!o){window.postMessage({type:"RakebackWalletMissing"},window.location.href);return}const{total:i,claimable:c,currency:d,minutesCanClaim:s}=o||{};this.rakebackInfo={hasRakebackWallet:!0,points:(i==null?void 0:i.points)<=0?"0.00":this.truncateNumber(i.points,2),currency:d||"",claimable:c||!1,showCanClaim:!!(s&&s>0),minutesCanClaim:s?s<=1&&s>0?1:this.truncateNumber(s,0):0}}catch(a){console.error("Error loading rakeback info:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}}})}claimRakeback(){return l(this,null,function*(){this.isLoading=!0;try{const a=new URL(`${this.endpoint}/v1/elevate/rakeback/claim`),t=yield fetch(a.href,{method:"PUT",headers:{"X-Sessionid":this.session,"Content-Type":"application/json"},body:JSON.stringify({})});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);const e=yield t.json();if(!e.success)throw new Error(e.errorMessage||"Failed to claim rakeback");yield this.loadRakebackInfo(),window.postMessage({type:"RakebackClaimed",points:this.rakebackInfo.points},window.location.href)}catch(a){console.error("Error claiming rakeback:",a),window.postMessage({type:"RakebackClaimError",message:a.message},window.location.href)}finally{this.isLoading=!1}})}componentWillLoad(){return l(this,null,function*(){yield this.loadRakebackInfo(),yield this.onShowOrHasRakebackWalletChange()})}render(){return this.showTheWidget?n.h("div",{class:"RakebackCard"},n.h("general-styling-wrapper",{clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:k.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),n.h("div",{class:"RakebackCardContent"},n.h("div",{class:"RakebackTitle"},k.translate("rakebackTitle",this.language)),n.h("div",{class:"RakebackDetails"},n.h("div",{class:"RakebackInfo"},n.h("div",{class:"RakebackNumContainer"},n.h("span",{class:"RakebackNum"},this.rakebackInfo.points),n.h("span",{class:"RakebackCurrency"},this.rakebackInfo.currency))),n.h("div",{class:`RakebackButton ${this.isLoading||!this.rakebackInfo.claimable?"disabled":""}`,onClick:this.sendRakebackClaimedEvent},k.translate("claim",this.language))),!this.rakebackInfo.claimable&&this.rakebackInfo.showCanClaim&&n.h("div",{class:"RakebackCoolOff"},k.translateWithParams("minutesCanClaim",{lang:this.language,minutes:this.rakebackInfo.minutesCanClaim})))):null}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}}};h.style=m;exports.player_rakeback_card=h;
|
|
@@ -14,7 +14,7 @@ var l = (a, t, e) => new Promise((o, i) => {
|
|
|
14
14
|
}, s = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(c, k);
|
|
15
15
|
s((e = e.apply(a, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as h, h as n } from "./index-71b1bdfa-
|
|
17
|
+
import { r as h, h as n } from "./index-71b1bdfa-DALpnrPg.js";
|
|
18
18
|
import { t as b, a as f, T as m } from "./locale-Dq9tsc1e.js";
|
|
19
19
|
const g = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}", R = g, p = class {
|
|
20
20
|
constructor(a) {
|
|
@@ -71,7 +71,7 @@ const g = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}t
|
|
|
71
71
|
const { total: i, claimable: c, currency: k, minutesCanClaim: s } = o || {};
|
|
72
72
|
this.rakebackInfo = {
|
|
73
73
|
hasRakebackWallet: !0,
|
|
74
|
-
points: i
|
|
74
|
+
points: (i == null ? void 0 : i.points) <= 0 ? "0.00" : this.truncateNumber(i.points, 2),
|
|
75
75
|
currency: k || "",
|
|
76
76
|
claimable: c || !1,
|
|
77
77
|
showCanClaim: !!(s && s > 0),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as k, h as n } from "./index-71b1bdfa-
|
|
1
|
+
import { r as k, h as n } from "./index-71b1bdfa-Bvo8qJYL.js";
|
|
2
2
|
import { t as c, a as d, T as b } from "./locale-Dq9tsc1e.js";
|
|
3
3
|
const h = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}", f = h, m = class {
|
|
4
4
|
constructor(a) {
|
|
@@ -50,7 +50,7 @@ const h = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}t
|
|
|
50
50
|
const { total: i, claimable: o, currency: l, minutesCanClaim: s } = r || {};
|
|
51
51
|
this.rakebackInfo = {
|
|
52
52
|
hasRakebackWallet: !0,
|
|
53
|
-
points: i?.points ? this.truncateNumber(i.points, 2)
|
|
53
|
+
points: i?.points <= 0 ? "0.00" : this.truncateNumber(i.points, 2),
|
|
54
54
|
currency: l || "",
|
|
55
55
|
claimable: o || !1,
|
|
56
56
|
showCanClaim: !!(s && s > 0),
|