@everymatrix/casino-header-controller-nd 1.76.11 → 1.76.13
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-A1rbyIlh.js → CasinoHamburgerMenuNd-C3tiFapV.js} +4 -4
- package/components/{CasinoHamburgerMenuNd-BbLVzDLA.js → CasinoHamburgerMenuNd-Cyp_3Pjq.js} +4 -4
- package/components/{CasinoHeaderControllerNd-Y0iH2fty.js → CasinoHeaderControllerNd-BPvvFK6c.js} +1110 -1080
- package/components/{CasinoHeaderControllerNd-DIWidaLF.js → CasinoHeaderControllerNd-Cd99fvmP.js} +838 -858
- package/components/CasinoHeaderControllerNd-Dcbs-iwq.cjs +1 -0
- package/components/{PlayerAccountBalanceModalNd-Cygfal3S.js → PlayerAccountBalanceModalNd-BjLh8BEP.js} +1 -1
- package/components/{PlayerAccountBalanceModalNd-ggP_eQuJ.js → PlayerAccountBalanceModalNd-BrobHqbV.js} +10 -10
- package/components/{PlayerDeposit-DcwySzWb.js → PlayerDeposit-BHLSR7a_.js} +24 -24
- package/components/{PlayerDeposit-BPhFbd8a.js → PlayerDeposit-COiRRSRi.js} +17 -17
- 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/package.json +1 -1
- package/stencil/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/{gamification-dropdown-60536faa-CdoDh_iS.js → gamification-dropdown-60536faa-BfbbIH0h.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-ByoQkowS.js → gamification-dropdown-60536faa-CYPNS2SA.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-jADsXxs4.cjs → gamification-dropdown-60536faa-iwjy04Fm.cjs} +1 -1
- package/stencil/{gamification-dropdown-DSqqyaTZ.js → gamification-dropdown-CE2Ixn-O.js} +6 -2
- package/stencil/{gamification-dropdown-CMVnOpVS.js → gamification-dropdown-CPL2IUzf.js} +6 -2
- package/stencil/gamification-dropdown-Gjtwk9m4.cjs +1 -0
- package/stencil/{gamification-dropdown_4-0STJmTu3.js → gamification-dropdown_4-CRTLR4sa.js} +4 -4
- package/stencil/{gamification-dropdown_4-wVf8PnId.cjs → gamification-dropdown_4-DXq-uIzD.cjs} +1 -1
- package/stencil/{gamification-dropdown_4-Cn2nDa12.js → gamification-dropdown_4-DcFpqFzH.js} +4 -4
- package/stencil/index-1ef3a64c-B1UltD4v.cjs +1 -0
- package/stencil/index-1ef3a64c-Bl471LIY.js +557 -0
- package/stencil/index-1ef3a64c-DqwB8Beo.js +573 -0
- package/stencil/{index-71b1bdfa-aT2URAOG.cjs → index-71b1bdfa-BPY14JfC.cjs} +1 -1
- package/stencil/{index-71b1bdfa-CqsRB5Zq.js → index-71b1bdfa-CWc2W3-h.js} +57 -56
- package/stencil/{index-71b1bdfa-DWJfvSms.js → index-71b1bdfa-CmeNKkYZ.js} +53 -52
- package/stencil/{player-elevate-card-C_bGjWZ4.cjs → player-elevate-card-BVfbuUjE.cjs} +1 -1
- package/stencil/{player-elevate-card-D_AqKh09.js → player-elevate-card-Bw41M29a.js} +2 -2
- package/stencil/{player-elevate-card-DV79k_97.js → player-elevate-card-Cuz2sCRr.js} +2 -2
- package/stencil/{player-elevate-card-items-08c6fbd8-DDaPFpxz.js → player-elevate-card-items-08c6fbd8-B5WzXPPY.js} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-CkxD6Q5o.cjs → player-elevate-card-items-08c6fbd8-BxOi7rN2.cjs} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-CKjKj8rt.js → player-elevate-card-items-08c6fbd8-Do1JLWE6.js} +1 -1
- package/stencil/{player-elevate-pointcard-BXLJdcos.js → player-elevate-pointcard-26tN2vbt.js} +2 -2
- package/stencil/{player-elevate-pointcard-vC-WI2he.cjs → player-elevate-pointcard-DGwp0CGN.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-BAE3Vgzi.js → player-elevate-pointcard-FWrlCaYU.js} +2 -2
- package/stencil/{player-rakeback-card-Ca3Pjwd4.js → player-rakeback-card-B1GwlpBH.js} +1 -1
- package/stencil/{player-rakeback-card-DZVQyKwK.cjs → player-rakeback-card-D8Maf2AC.cjs} +1 -1
- package/stencil/{player-rakeback-card-Cj3yH6EJ.js → player-rakeback-card-DCf88R_2.js} +1 -1
- package/stencil/user-deposit-withdrawal-Cvki4Kek.js +721 -0
- package/stencil/user-deposit-withdrawal-H3FmzEfw.cjs +72 -0
- package/stencil/user-deposit-withdrawal-YcDyePCz.js +699 -0
- package/components/CasinoHeaderControllerNd-BZ4hl5VU.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/gamification-dropdown-aHzwtOKn.cjs +0 -1
|
@@ -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-BPY14JfC.cjs"),k=require("./locale-B_6Rn5-v.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&&i.points?this.truncateNumber(i.points,2):"0.00",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;
|
|
@@ -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-CmeNKkYZ.js";
|
|
2
2
|
import { a as c, t as d, T as b } from "./locale-TxlOHoKi.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) {
|