@everymatrix/casino-header-controller-nd 1.85.16 → 1.85.18

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.
Files changed (59) hide show
  1. package/components/{CasinoHamburgerMenuNd-DEwyy8XP.cjs → CasinoHamburgerMenuNd-BWhQR6n1.cjs} +3 -3
  2. package/components/{CasinoHamburgerMenuNd--3syhwwg.js → CasinoHamburgerMenuNd-Djtdm8EV.js} +60 -57
  3. package/components/{CasinoHamburgerMenuNd-B1IPD-eW.js → CasinoHamburgerMenuNd-DqSrTenb.js} +3 -0
  4. package/components/{CasinoHeaderControllerNd-D1SmIATo.js → CasinoHeaderControllerNd--WCWhMwa.js} +6 -6
  5. package/components/{CasinoHeaderControllerNd-BBjI6Rzi.cjs → CasinoHeaderControllerNd-DOLTMzh0.cjs} +1 -1
  6. package/components/{CasinoHeaderControllerNd-DUH86n23.js → CasinoHeaderControllerNd-sEiDpmDd.js} +6 -6
  7. package/components/PlayerAccountBalanceModalNd-BxspHx1P.js +1564 -0
  8. package/components/PlayerAccountBalanceModalNd-C9GnwJNI.cjs +7 -0
  9. package/components/PlayerAccountBalanceModalNd-UlBTfRN6.js +1535 -0
  10. package/components/{PlayerDeposit-CqzO9rr7.cjs → PlayerDeposit-BDPi60xU.cjs} +1 -1
  11. package/components/{PlayerDeposit-JOeJjBA1.js → PlayerDeposit-C910Gf1y.js} +1 -1
  12. package/components/{PlayerDeposit-BJ1oYgWJ.js → PlayerDeposit-qsZYITrf.js} +1 -1
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/lazy/{casino-hamburger-menu-nd-CK8nZM9B.cjs → casino-hamburger-menu-nd-CAOIXMkM.cjs} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-BgPP8h7w.js → casino-hamburger-menu-nd-DWZz6hns.js} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-BVICOw-W.js → casino-hamburger-menu-nd-DrYJDNro.js} +1 -1
  19. package/lazy/{gamification-dropdown-B3HxrtUy.js → gamification-dropdown-92gu40Vl.js} +4 -4
  20. package/lazy/{gamification-dropdown-B0uRqHF5.cjs → gamification-dropdown-CmhvGtFZ.cjs} +1 -1
  21. package/lazy/{gamification-dropdown-BXn4YJ1N.js → gamification-dropdown-P2zG2HBt.js} +4 -4
  22. package/lazy/{player-account-balance-modal-nd-DM-WjKsO.js → player-account-balance-modal-nd-BY8xnPL2.js} +1 -1
  23. package/lazy/{player-account-balance-modal-nd-CVbcrLML.cjs → player-account-balance-modal-nd-CWxFg0Rd.cjs} +1 -1
  24. package/lazy/{player-account-balance-modal-nd-CWO5esSj.js → player-account-balance-modal-nd-D1AAY1_s.js} +1 -1
  25. package/lazy/{player-deposit-CWLwv7Bz.js → player-deposit-BZMECdu0.js} +1 -1
  26. package/lazy/{player-deposit-BHTi4hw-.cjs → player-deposit-CgdF-jd5.cjs} +1 -1
  27. package/lazy/{player-deposit-CursINzD.js → player-deposit-Mn3IRhQ6.js} +1 -1
  28. package/lazy/{user-deposit-withdrawal-BgmQ3jV2.cjs → user-deposit-withdrawal-CWhRaiMB.cjs} +1 -1
  29. package/lazy/{user-deposit-withdrawal-C-MW3Hfs.js → user-deposit-withdrawal-DS7RI4jZ.js} +1 -1
  30. package/lazy/{user-deposit-withdrawal-DnYmGle9.js → user-deposit-withdrawal-fYrP9plZ.js} +1 -1
  31. package/package.json +1 -1
  32. package/stencil/{gamification-dropdown-60536faa-BaZ65Kym.js → gamification-dropdown-92e6c856-AyLEePRL.js} +3 -1
  33. package/stencil/{gamification-dropdown-60536faa-Btk2lBsp.js → gamification-dropdown-92e6c856-B8vweing.js} +3 -1
  34. package/stencil/gamification-dropdown-92e6c856-BZ8VQIG4.cjs +1 -0
  35. package/stencil/{gamification-dropdown-CvPOzjV9.js → gamification-dropdown-CglkdhCZ.js} +2 -2
  36. package/stencil/{gamification-dropdown-8J8PxOuh.js → gamification-dropdown-Chg7QhVL.js} +2 -2
  37. package/stencil/{gamification-dropdown-Wyj17azl.cjs → gamification-dropdown-HmEzwf9M.cjs} +1 -1
  38. package/stencil/{gamification-dropdown_4-8aFyNwqe.js → gamification-dropdown_4-CDqbYkpV.js} +4 -4
  39. package/stencil/{gamification-dropdown_4-xEVOXclk.cjs → gamification-dropdown_4-Dm2tmI-r.cjs} +1 -1
  40. package/stencil/{gamification-dropdown_4-BDWTzE3w.js → gamification-dropdown_4-DxW8ztP7.js} +4 -4
  41. package/stencil/{player-elevate-card-L2dn16do.cjs → player-elevate-card-BXMauXgU.cjs} +1 -1
  42. package/stencil/{player-elevate-card-6r1cEI_B.js → player-elevate-card-BbWKuYfj.js} +2 -2
  43. package/stencil/{player-elevate-card-CJeovOge.js → player-elevate-card-D61zzjoE.js} +2 -2
  44. package/stencil/{player-elevate-card-items-08c6fbd8-cDevB0xr.js → player-elevate-card-items-08c6fbd8-BRpYa59u.js} +1 -1
  45. package/stencil/{player-elevate-card-items-08c6fbd8-DvFxvIKq.cjs → player-elevate-card-items-08c6fbd8-ChUSMyWt.cjs} +1 -1
  46. package/stencil/{player-elevate-card-items-08c6fbd8-B8m8Wk7Z.js → player-elevate-card-items-08c6fbd8-M94MmEsh.js} +1 -1
  47. package/stencil/{player-elevate-pointcard-BLmnotv_.js → player-elevate-pointcard-BL1XZLER.js} +2 -2
  48. package/stencil/{player-elevate-pointcard-DUipzlXL.cjs → player-elevate-pointcard-CIGh8PLS.cjs} +1 -1
  49. package/stencil/{player-elevate-pointcard-6Y0Wq9rs.js → player-elevate-pointcard-CnJ1h4uy.js} +2 -2
  50. package/stencil/{player-rakeback-card-DBPn2wfp.cjs → player-rakeback-card-B3uCylZm.cjs} +1 -1
  51. package/stencil/{player-rakeback-card-Cj366-ZL.js → player-rakeback-card-B_-fQFE_.js} +1 -1
  52. package/stencil/{player-rakeback-card-uw0ZOQ2u.js → player-rakeback-card-C79YOrb9.js} +1 -1
  53. package/stencil/{user-deposit-withdrawal-CxuwKB1b.js → user-deposit-withdrawal-Bgmu_v3L.js} +3 -1
  54. package/stencil/{user-deposit-withdrawal-CUJi0nvv.js → user-deposit-withdrawal-C1ZuOfGY.js} +3 -1
  55. package/stencil/{user-deposit-withdrawal-Bu0JjS9S.cjs → user-deposit-withdrawal-D-OTOuVZ.cjs} +1 -1
  56. package/components/PlayerAccountBalanceModalNd-B-VrSbkY.js +0 -1550
  57. package/components/PlayerAccountBalanceModalNd-CLE26haa.cjs +0 -7
  58. package/components/PlayerAccountBalanceModalNd-C_7-2Jk6.js +0 -1521
  59. package/stencil/gamification-dropdown-60536faa-bzjUnWRO.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";var f=(i,t,n)=>new Promise((e,o)=>{var s=r=>{try{l(n.next(r))}catch(d){o(d)}},c=r=>{try{l(n.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((n=n.apply(i,t)).next())});const a=require("../lazy/gamification-dropdown-B0uRqHF5.cjs"),w="en";let h={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const m=i=>new Promise(t=>{fetch(i).then(n=>n.json()).then(n=>{Object.keys(n).forEach(e=>{h[e]||(h[e]={});for(let o in n[e])h[e][o]=n[e][o]}),t(!0)})}),v=(i,t)=>{const n=t;return h[n!==void 0&&n in h?n:w][i]};function p(i,t){if(i){const n=document.createElement("style");n.innerHTML=t,i.appendChild(n)}}function g(i,t){const n=new URL(t);fetch(n.href).then(e=>e.text()).then(e=>{const o=document.createElement("style");o.innerHTML=e,i&&i.appendChild(o)}).catch(e=>{console.error("There was an error while trying to load client styling from URL",e)})}function y(i,t,n){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(t,o=>{e.innerHTML=o,i&&i.appendChild(e)})}}const S=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",C=S,u=class{constructor(i){a.registerInstance(this,i),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,m(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,t){i!=t&&p(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,t){i!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return f(this,null,function*(){if(this.translationUrl.length>2&&(yield m(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?y(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&p(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const n={method:"GET",headers:t};return new Promise((e,o)=>{this.isLoading=!0,fetch(i.href,n).then(s=>s.json()).then(s=>{var c,l;this.loyaltyPoints=(l=(c=s==null?void 0:s.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,e(!0)}).catch(s=>{console.error(s),o(s)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:a.h("div",{ref:i=>this.stylingContainer=i,class:"GamificationDropdownContainer"},a.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:i=>this.handleDropdownClick(i),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",a.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},a.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},a.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&a.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},a.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling,"mb-source":this.mbSource})))}get el(){return a.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};u.style=C;exports.GamificationDropdown=u;exports.setClientStyling=p;exports.setClientStylingURL=g;exports.setStreamStyling=y;