@everymatrix/casino-header-controller 1.65.1 → 1.65.2
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/{CasinoHeaderController-DNNqI5-z.cjs → CasinoHeaderController-B0lLuqqY.cjs} +1 -1
- package/components/{CasinoHeaderController-Bqi_UEZi.js → CasinoHeaderController-CGZStHGm.js} +1 -1
- package/components/{CasinoHeaderController-CvgFMlA6.js → CasinoHeaderController-Cspimubt.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-8eb8a896-Dpy7kYRl.js → gamification-dropdown-8eb8a896-Bcdjx9jM.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-wUq7QkNM.cjs → gamification-dropdown-8eb8a896-CJqychmF.cjs} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B80HjrXs.js → gamification-dropdown-8eb8a896-zfRPKKB2.js} +1 -1
- package/stencil/{gamification-dropdown-BKLERBkj.js → gamification-dropdown-Dv6JCzCW.js} +1 -1
- package/stencil/{gamification-dropdown-DoTceze_.cjs → gamification-dropdown-DztjiKq7.cjs} +1 -1
- package/stencil/{gamification-dropdown-Ctny0vqq.js → gamification-dropdown-TiS6_s4J.js} +1 -1
- package/stencil/{gamification-dropdown_4-CcWOoutw.js → gamification-dropdown_4-BUCLkjbf.js} +58 -55
- package/stencil/{gamification-dropdown_4-CmDM3hBS.js → gamification-dropdown_4-SROB8ZNq.js} +59 -56
- package/stencil/gamification-dropdown_4-_zijAT3T.cjs +192 -0
- package/stencil/{index-71b1bdfa-BeszNvNP.cjs → index-71b1bdfa-CSjh2jcj.cjs} +1 -1
- package/stencil/{index-71b1bdfa-DBUT8z-D.js → index-71b1bdfa-DL3YG9Ud.js} +4 -4
- package/stencil/{index-71b1bdfa-BWeAgaw2.js → index-71b1bdfa-DdHPuS3A.js} +4 -4
- package/stencil/locale-B_6Rn5-v.cjs +1 -0
- package/stencil/{locale-DuSXBQwH.js → locale-TxlOHoKi.js} +11 -5
- package/stencil/{player-elevate-card-DqZR4w--.js → player-elevate-card-CRl63tuY.js} +3 -3
- package/stencil/{player-elevate-card-B70rn287.js → player-elevate-card-DX8jjll6.js} +3 -3
- package/stencil/{player-elevate-card-W6LcGGe8.cjs → player-elevate-card-DtTKg95m.cjs} +1 -1
- package/stencil/player-elevate-card-items-5071deed-A_RG9TpE.cjs +102 -0
- package/stencil/player-elevate-card-items-5071deed-Ce0Sstbi.js +1391 -0
- package/stencil/player-elevate-card-items-5071deed-DG6rUxm1.js +1391 -0
- package/stencil/{player-elevate-pointcard-DREgIjCm.js → player-elevate-pointcard-Bcq1MXZc.js} +3 -3
- package/stencil/{player-elevate-pointcard-DwDhlXwq.cjs → player-elevate-pointcard-CEXHhV9c.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-CBapQeNI.js → player-elevate-pointcard-hzoziusU.js} +3 -3
- package/stencil/{player-rakeback-card-B0P7gHIA.cjs → player-rakeback-card-BwjstuRr.cjs} +1 -1
- package/stencil/{player-rakeback-card-tP823Fs8.js → player-rakeback-card-DYjFUdkd.js} +2 -2
- package/stencil/{player-rakeback-card-z_ugBu0q.js → player-rakeback-card-Dtat6ZLL.js} +2 -2
- package/stencil/gamification-dropdown_4-B2a2BjCo.cjs +0 -192
- package/stencil/locale-DHn5ZpQu.cjs +0 -1
- package/stencil/player-elevate-card-items-66be34fb-D7zHppoa.js +0 -1290
- package/stencil/player-elevate-card-items-66be34fb-DBIZuvGZ.cjs +0 -1
- package/stencil/player-elevate-card-items-66be34fb-aPLlnN0e.js +0 -1290
package/components/{CasinoHeaderController-DNNqI5-z.cjs → CasinoHeaderController-B0lLuqqY.cjs}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var Ie=(a,t,n)=>new Promise((l,s)=>{var i=u=>{try{_(n.next(u))}catch(d){s(d)}},r=u=>{try{_(n.throw(u))}catch(d){s(d)}},_=u=>u.done?l(u.value):Promise.resolve(u.value).then(i,r);_((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CrZ5l9tM.cjs");require("../stencil/user-deposit-withdrawal-BRpNiBnR.cjs");require("../stencil/gamification-dropdown-DoTceze_.cjs");const Ot=(a,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:a,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)};function zt({withLocale:a,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function He(a,t){e.addMessages(a,t)}function Dt(a){e.$locale.set(a)}const Ae={en:{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金",promotions:"促销活动"},fr:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt",promotions:"Promotions"},tr:{login:"Giriş",register:"Kayıt",deposit:"Yatır",promotions:"Promosyonlar"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit",promotions:"Promotii"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita",promotions:"Promociones"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata",promotions:"Promocije"},"pt-br":{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},"es-mx":{login:"Ingresar",register:"Registro",deposit:"Depósito",promotions:"Promociones"},"en-us":{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-DqTtsMWh.cjs")).then(({default:t})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoHamburgerMenu-CrZ5l9tM.cjs")).then(t=>t.CasinoHamburgerMenu_ce).then(({default:t})=>{!customElements.get("casino-hamburger-menu")&&customElements.define("casino-hamburger-menu",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountBalanceModal-BFDpI9Sy.cjs")).then(({default:t})=>{!customElements.get("player-account-balance-modal")&&customElements.define("player-account-balance-modal",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./PlayerDeposit-BXwT7NVp.cjs")).then(({default:t})=>{!customElements.get("player-deposit")&&customElements.define("player-deposit",t.element)})}const ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Wt(a){e.append_styles(a,"svelte-ho1ide",`*,*::before,*::after{font-family:inherit}:host{font-family:inherit}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}input,textarea,button{font-family:inherit}.HeaderSlider{width:100%;height:400px}.LanguageDropdown{margin-right:16px;position:relative;display:inline-block}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapper{position:relative;animation:ModalBounce 0.5s forwards;z-index:17;right:60%}.ShortCashierContainer{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:360px;top:16px;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainer:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.GamificationWrapper{margin-right:16px}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;right:110%;z-index:17}.ShortCashierContainerMobile{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:80vw;top:14px;left:50%;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.SelectedOption,.OptionList{border:1px solid var(--emw--header-color-primary);padding:8px;cursor:pointer;width:76px;border-radius:4px}.SelectedOption{display:flex;align-items:center}.FlagIcon img{width:20px;height:14px;margin-right:8px;border-radius:2px}.OptionList{position:absolute;z-index:1;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--header-color-secondary-menu-bg, var(--emw--color-background-secondary, #050518));max-height:150px;overflow-y:auto}.LanguageOption{display:flex;align-items:center;padding:4px}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 10px;transition:all 0.5s}.TriangleInactive svg{margin:2px 0px}.TriangleActive{transform:rotate(180deg);position:relative}.TriangleActive svg{margin:2px 0px}.LanguageOption:hover{background-color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:2px}.HeaderWrapper{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518))}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}@media only screen and (max-width: 360px){.HeaderBranding{margin-right:0}}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emw--header-color-secondary-menu-bg, var(--emw--color-background-secondary, #050518));border-top:1px solid var(--emw--color-gray-300, #58586B)}.HeaderItemsMenu{gap:8px;display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:16px;align-items:center}.HeaderItemsMenu .Item:hover .HeaderSecondaryNav{display:block}.HeaderItemsMenu .Item{gap:2px;padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.Item a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;border-top:1px solid transparent}.Item a:hover{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-top:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));padding-top:5px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emw--header-typography, var(--emw--color-white, #FFFFFF));height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.ItemLanguage{height:44px;width:74px;text-align:center;line-height:44px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ItemLanguage option{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.ItemLanguage.NoFlag{background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518));background-position:calc(100% - 0.75rem) center;width:90px;margin-right:6px}.ItemBalance{background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:0}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{width:auto;height:100%;display:flex;justify-content:center;padding:0 15px;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));outline:none}.HeaderItemsMenuSecondary .ItemSecondary.active{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderSliderMobile{background-position:bottom}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}@media only screen and (max-width: 360px){.HeaderMobileWrapper .HeaderContainer{padding:0 5px}}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemBalance{font-size:12px}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}`)}function Ce(a,t,n){const l=a.slice();return l[113]=t[n],l}function Se(a,t,n){const l=a.slice();return l[116]=t[n],l}function Le(a,t,n){const l=a.slice();return l[116]=t[n],l}function Ee(a,t,n){const l=a.slice();return l[113]=t[n],l}function Re(a,t,n){const l=a.slice();return l[116]=t[n],l}function Be(a,t,n){const l=a.slice();return l[116]=t[n],l}function Tt(a){let t,n,l,s,i,r,_,u,d,o=a[49]("login")+"",m,p,h,k=a[49]("register")+"",B,S,L,b,M,F,z;function O(f,H){return f[41]?Gt:Zt}let E=O(a),I=E(a),g=!a[35]&&Ne(a),v=a[45].length>1&&Pe(a),R=e.ensure_array_like(a[38]),y=[];for(let f=0;f<R.length;f+=1)y[f]=We(Ce(a,R,f));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),I.c(),s=e.space(),i=e.element("nav"),g&&g.c(),r=e.space(),_=e.element("div"),u=e.element("div"),d=e.element("div"),m=e.text(o),p=e.space(),h=e.element("div"),B=e.text(k),S=e.space(),v&&v.c(),L=e.space(),b=e.element("nav"),M=e.element("ul");for(let f=0;f<y.length;f+=1)y[f].c();e.attr(l,"class","HeaderBranding"),e.attr(i,"class","HeaderMainNav"),e.attr(d,"class","Item ItemLogin"),e.attr(d,"tabindex","0"),e.attr(h,"class","Item ItemRegister"),e.attr(h,"tabindex","0"),e.attr(u,"class","HeaderItemsMenu"),e.attr(_,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(M,"class","HeaderItemsMenuSecondary"),e.attr(b,"class","HeaderSecondaryNav"),e.attr(t,"class","HeaderWrapper")},m(f,H){e.insert(f,t,H),e.append(t,n),e.append(n,l),I.m(l,null),e.append(n,s),e.append(n,i),g&&g.m(i,null),e.append(n,r),e.append(n,_),e.append(_,u),e.append(u,d),e.append(d,m),e.append(u,p),e.append(u,h),e.append(h,B),e.append(u,S),v&&v.m(u,null),e.append(t,L),e.append(t,b),e.append(b,M);for(let A=0;A<y.length;A+=1)y[A]&&y[A].m(M,null);a[92](t),F||(z=[e.listen(l,"click",a[84]),e.listen(d,"click",a[85]),e.listen(h,"click",a[86])],F=!0)},p(f,H){if(E===(E=O(f))&&I?I.p(f,H):(I.d(1),I=E(f),I&&(I.c(),I.m(l,null))),f[35]?g&&(g.d(1),g=null):g?g.p(f,H):(g=Ne(f),g.c(),g.m(i,null)),H[1]&262144&&o!==(o=f[49]("login")+"")&&e.set_data(m,o),H[1]&262144&&k!==(k=f[49]("register")+"")&&e.set_data(B,k),f[45].length>1?v?v.p(f,H):(v=Pe(f),v.c(),v.m(u,null)):v&&(v.d(1),v=null),H[1]&8388800){R=e.ensure_array_like(f[38]);let A;for(A=0;A<R.length;A+=1){const j=Ce(f,R,A);y[A]?y[A].p(j,H):(y[A]=We(j),y[A].c(),y[A].m(M,null))}for(;A<y.length;A+=1)y[A].d(1);y.length=R.length}},d(f){f&&e.detach(t),I.d(),g&&g.d(),v&&v.d(),e.destroy_each(y,f),a[92](null),F=!1,e.run_all(z)}}}function Ut(a){let t,n,l,s,i,r,_,u,d,o,m,p,h,k,B,S,L,b=a[49]("login")+"",M,F,z,O=a[49]("register")+"",E,I,g;function v(f,H){return f[41]?Qt:Jt}let R=v(a),y=R(a);return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),s=e.svg_element("svg"),i=e.svg_element("defs"),r=e.svg_element("style"),_=e.text(`.a {
|
1
|
+
"use strict";var Ie=(a,t,n)=>new Promise((l,s)=>{var i=u=>{try{_(n.next(u))}catch(d){s(d)}},r=u=>{try{_(n.throw(u))}catch(d){s(d)}},_=u=>u.done?l(u.value):Promise.resolve(u.value).then(i,r);_((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CrZ5l9tM.cjs");require("../stencil/user-deposit-withdrawal-BRpNiBnR.cjs");require("../stencil/gamification-dropdown-DztjiKq7.cjs");const Ot=(a,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:a,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)};function zt({withLocale:a,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function He(a,t){e.addMessages(a,t)}function Dt(a){e.$locale.set(a)}const Ae={en:{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金",promotions:"促销活动"},fr:{login:"Connexion",register:"Enregistrer",deposit:"Dépôt",promotions:"Promotions"},tr:{login:"Giriş",register:"Kayıt",deposit:"Yatır",promotions:"Promosyonlar"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit",promotions:"Promotii"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita",promotions:"Promociones"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata",promotions:"Promocije"},"pt-br":{login:"Entrar",register:"Registro",deposit:"Depósito",promotions:"Promoções"},"es-mx":{login:"Ingresar",register:"Registro",deposit:"Depósito",promotions:"Promociones"},"en-us":{login:"Login",register:"Register",deposit:"Deposit",promotions:"Promotions"}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-DqTtsMWh.cjs")).then(({default:t})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoHamburgerMenu-CrZ5l9tM.cjs")).then(t=>t.CasinoHamburgerMenu_ce).then(({default:t})=>{!customElements.get("casino-hamburger-menu")&&customElements.define("casino-hamburger-menu",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountBalanceModal-BFDpI9Sy.cjs")).then(({default:t})=>{!customElements.get("player-account-balance-modal")&&customElements.define("player-account-balance-modal",t.element)})}if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./PlayerDeposit-BXwT7NVp.cjs")).then(({default:t})=>{!customElements.get("player-deposit")&&customElements.define("player-deposit",t.element)})}const ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Wt(a){e.append_styles(a,"svelte-ho1ide",`*,*::before,*::after{font-family:inherit}:host{font-family:inherit}@keyframes ModalBounce{0%{opacity:0;transform:translateY(20px)}50%{transform:translateY(-6px);opacity:0.8}100%{transform:translateY(0);opacity:1}}input,textarea,button{font-family:inherit}.HeaderSlider{width:100%;height:400px}.LanguageDropdown{margin-right:16px;position:relative;display:inline-block}.ClosePopUpButtonShortCashier{margin-left:auto;cursor:pointer}.ClosePopUpButtonShortCashier svg{position:absolute;top:10px;right:10px}.ShortCashierWindow{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}.ShortCashierContainerWrapper{position:relative;animation:ModalBounce 0.5s forwards;z-index:17;right:60%}.ShortCashierContainer{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:360px;top:16px;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainer:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.GamificationWrapper{margin-right:16px}.ShortCashierContainerWrapperMobile{position:relative;animation:ModalBounce 0.5s forwards;right:110%;z-index:17}.ShortCashierContainerMobile{background-color:var(--emw--color-white, #FFFFFF);position:absolute;width:80vw;top:14px;left:50%;transform:translateX(-60%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.ShortCashierContainerMobile:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:84%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.SelectedOption,.OptionList{border:1px solid var(--emw--header-color-primary);padding:8px;cursor:pointer;width:76px;border-radius:4px}.SelectedOption{display:flex;align-items:center}.FlagIcon img{width:20px;height:14px;margin-right:8px;border-radius:2px}.OptionList{position:absolute;z-index:1;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--header-color-secondary-menu-bg, var(--emw--color-background-secondary, #050518));max-height:150px;overflow-y:auto}.LanguageOption{display:flex;align-items:center;padding:4px}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 10px;transition:all 0.5s}.TriangleInactive svg{margin:2px 0px}.TriangleActive{transform:rotate(180deg);position:relative}.TriangleActive svg{margin:2px 0px}.LanguageOption:hover{background-color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:2px}.HeaderWrapper{background:var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518))}.HeaderContainer{max-width:1300px;display:flex;flex-direction:row;align-items:center;height:84px;margin:0 auto}.HeaderMobileMainNav{display:flex;align-items:center}.HeaderBranding{width:140px;margin-right:15px;cursor:pointer}.HeaderBranding img{width:100%}@media only screen and (max-width: 360px){.HeaderBranding{margin-right:0}}.HeaderMainNav{text-align:left}.HeaderTopActions{text-align:right;margin-left:auto}.HeaderSecondaryNav{flex-direction:row;width:100%;background:var(--emw--header-color-secondary-menu-bg, var(--emw--color-background-secondary, #050518));border-top:1px solid var(--emw--color-gray-300, #58586B)}.HeaderItemsMenu{gap:8px;display:flex;align-content:flex-start;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:16px;align-items:center}.HeaderItemsMenu .Item:hover .HeaderSecondaryNav{display:block}.HeaderItemsMenu .Item{gap:2px;padding:0 12px;display:flex;align-items:center}.HeaderItemsMenu.PrimaryMenu{gap:10px}.Item a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;border-top:1px solid transparent}.Item a:hover{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-top:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));padding-top:5px}.ItemLogin{border-radius:5px;background:transparent;font-size:14px;font-weight:600;border:solid 1px var(--emw--header-typography, var(--emw--color-white, #FFFFFF));height:44px;text-align:center;line-height:44px;margin-right:10px;cursor:pointer}.ItemRegister,.ItemDeposit{border-radius:5px;background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:14px;height:44px;text-align:center;line-height:44px;cursor:pointer}.ItemDeposit{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.ItemLanguage{height:44px;width:74px;text-align:center;line-height:44px;background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:none;cursor:pointer;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.ItemLanguage option{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.ItemLanguage.NoFlag{background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--header-color-menu-bg, var(--emw--color-background-secondary, #050518));background-position:calc(100% - 0.75rem) center;width:90px;margin-right:6px}.ItemBalance{background:transparent;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));border:0}.ItemAccount{cursor:pointer}.ItemAccount svg{width:20px;height:20px}.HeaderItemsMenuSecondary{display:flex;flex-direction:row;align-content:flex-start;align-items:center;height:60px;list-style:none;text-transform:uppercase;color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));font-size:14px;max-width:1280px;margin:0 auto;overflow-y:hidden;overflow-x:auto;padding:0}.HeaderItemsMenuSecondary .ItemSecondary{width:auto;height:100%;display:flex;justify-content:center;padding:0 15px;font-weight:600;transition-duration:0.15s}.HeaderItemsMenuSecondary .ItemSecondary button{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;border:none;background:none;font-size:14px;font-weight:600;text-transform:uppercase;cursor:pointer}.HeaderItemsMenuSecondary .ItemSecondary button:hover{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:focus{color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderItemsMenuSecondary .ItemSecondary button:visited{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF))}.HeaderItemsMenuSecondary .ItemSecondary button:focus-visible{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));outline:none}.HeaderItemsMenuSecondary .ItemSecondary.active{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.HeaderSliderMobile{background-position:bottom}.HeaderMobileWrapper .HeaderContainer{height:55px;padding:0 15px;gap:10px}@media only screen and (max-width: 360px){.HeaderMobileWrapper .HeaderContainer{padding:0 5px}}.HeaderMobileWrapper .HeaderBranding{width:110px;display:flex;align-items:center}.HeaderMobileWrapper .HeaderItemsMenu .Item{padding:0 10px;display:block;width:unset}.HeaderMobileWrapper .HeaderItemsMenu .ItemBalance{font-size:12px}.HeaderMobileWrapper .HeaderItemsMenu .ItemAccount{padding:0}.HeaderMobileWrapper .ItemRegister,.HeaderMobileWrapper .ItemDeposit,.HeaderMobileWrapper .ItemLogin{height:30px;line-height:30px;font-size:12px}.HeaderMobileWrapper .ItemLogin{margin-right:10px}`)}function Ce(a,t,n){const l=a.slice();return l[113]=t[n],l}function Se(a,t,n){const l=a.slice();return l[116]=t[n],l}function Le(a,t,n){const l=a.slice();return l[116]=t[n],l}function Ee(a,t,n){const l=a.slice();return l[113]=t[n],l}function Re(a,t,n){const l=a.slice();return l[116]=t[n],l}function Be(a,t,n){const l=a.slice();return l[116]=t[n],l}function Tt(a){let t,n,l,s,i,r,_,u,d,o=a[49]("login")+"",m,p,h,k=a[49]("register")+"",B,S,L,b,M,F,z;function O(f,H){return f[41]?Gt:Zt}let E=O(a),I=E(a),g=!a[35]&&Ne(a),v=a[45].length>1&&Pe(a),R=e.ensure_array_like(a[38]),y=[];for(let f=0;f<R.length;f+=1)y[f]=We(Ce(a,R,f));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),I.c(),s=e.space(),i=e.element("nav"),g&&g.c(),r=e.space(),_=e.element("div"),u=e.element("div"),d=e.element("div"),m=e.text(o),p=e.space(),h=e.element("div"),B=e.text(k),S=e.space(),v&&v.c(),L=e.space(),b=e.element("nav"),M=e.element("ul");for(let f=0;f<y.length;f+=1)y[f].c();e.attr(l,"class","HeaderBranding"),e.attr(i,"class","HeaderMainNav"),e.attr(d,"class","Item ItemLogin"),e.attr(d,"tabindex","0"),e.attr(h,"class","Item ItemRegister"),e.attr(h,"tabindex","0"),e.attr(u,"class","HeaderItemsMenu"),e.attr(_,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(M,"class","HeaderItemsMenuSecondary"),e.attr(b,"class","HeaderSecondaryNav"),e.attr(t,"class","HeaderWrapper")},m(f,H){e.insert(f,t,H),e.append(t,n),e.append(n,l),I.m(l,null),e.append(n,s),e.append(n,i),g&&g.m(i,null),e.append(n,r),e.append(n,_),e.append(_,u),e.append(u,d),e.append(d,m),e.append(u,p),e.append(u,h),e.append(h,B),e.append(u,S),v&&v.m(u,null),e.append(t,L),e.append(t,b),e.append(b,M);for(let A=0;A<y.length;A+=1)y[A]&&y[A].m(M,null);a[92](t),F||(z=[e.listen(l,"click",a[84]),e.listen(d,"click",a[85]),e.listen(h,"click",a[86])],F=!0)},p(f,H){if(E===(E=O(f))&&I?I.p(f,H):(I.d(1),I=E(f),I&&(I.c(),I.m(l,null))),f[35]?g&&(g.d(1),g=null):g?g.p(f,H):(g=Ne(f),g.c(),g.m(i,null)),H[1]&262144&&o!==(o=f[49]("login")+"")&&e.set_data(m,o),H[1]&262144&&k!==(k=f[49]("register")+"")&&e.set_data(B,k),f[45].length>1?v?v.p(f,H):(v=Pe(f),v.c(),v.m(u,null)):v&&(v.d(1),v=null),H[1]&8388800){R=e.ensure_array_like(f[38]);let A;for(A=0;A<R.length;A+=1){const j=Ce(f,R,A);y[A]?y[A].p(j,H):(y[A]=We(j),y[A].c(),y[A].m(M,null))}for(;A<y.length;A+=1)y[A].d(1);y.length=R.length}},d(f){f&&e.detach(t),I.d(),g&&g.d(),v&&v.d(),e.destroy_each(y,f),a[92](null),F=!1,e.run_all(z)}}}function Ut(a){let t,n,l,s,i,r,_,u,d,o,m,p,h,k,B,S,L,b=a[49]("login")+"",M,F,z,O=a[49]("register")+"",E,I,g;function v(f,H){return f[41]?Qt:Jt}let R=v(a),y=R(a);return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),s=e.svg_element("svg"),i=e.svg_element("defs"),r=e.svg_element("style"),_=e.text(`.a {
|
2
2
|
fill: var(--emw--color-white, #FFFFFF);
|
3
3
|
}
|
4
4
|
`),u=e.svg_element("g"),d=e.svg_element("rect"),o=e.svg_element("rect"),m=e.svg_element("rect"),p=e.space(),h=e.element("div"),y.c(),k=e.space(),B=e.element("div"),S=e.element("div"),L=e.element("div"),M=e.text(b),F=e.space(),z=e.element("div"),E=e.text(O),e.attr(d,"class","a"),e.attr(d,"width","18"),e.attr(d,"height","2"),e.attr(d,"transform","translate(14 13)"),e.attr(o,"class","a"),e.attr(o,"width","22"),e.attr(o,"height","2"),e.attr(o,"transform","translate(14 20)"),e.attr(m,"class","a"),e.attr(m,"width","22"),e.attr(m,"height","2"),e.attr(m,"transform","translate(14 27)"),e.attr(u,"transform","translate(-14 -13)"),e.attr(s,"xmlns","http://www.w3.org/2000/svg"),e.attr(s,"width","22"),e.attr(s,"height","16"),e.attr(s,"viewBox","0 0 22 16"),e.attr(l,"class","HeaderMobileMainNav"),e.attr(h,"class","HeaderBranding"),e.attr(L,"class","Item ItemLogin"),e.attr(z,"class","Item ItemRegister"),e.attr(S,"class","HeaderItemsMenu"),e.attr(B,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(t,"class","HeaderWrapper HeaderMobileWrapper")},m(f,H){e.insert(f,t,H),e.append(t,n),e.append(n,l),e.append(l,s),e.append(s,i),e.append(i,r),e.append(r,_),e.append(s,u),e.append(u,d),e.append(u,o),e.append(u,m),e.append(n,p),e.append(n,h),y.m(h,null),e.append(n,k),e.append(n,B),e.append(B,S),e.append(S,L),e.append(L,M),e.append(S,F),e.append(S,z),e.append(z,E),a[83](t),I||(g=[e.listen(s,"click",a[79]),e.listen(h,"click",a[80]),e.listen(L,"click",a[81]),e.listen(z,"click",a[82])],I=!0)},p(f,H){R===(R=v(f))&&y?y.p(f,H):(y.d(1),y=R(f),y&&(y.c(),y.m(h,null))),H[1]&262144&&b!==(b=f[49]("login")+"")&&e.set_data(M,b),H[1]&262144&&O!==(O=f[49]("register")+"")&&e.set_data(E,O)},d(f){f&&e.detach(t),y.d(),a[83](null),I=!1,e.run_all(g)}}}function jt(a){let t;function n(i,r){return i[43]?Xt:Vt}let l=n(a),s=l(a);return{c(){s.c(),t=e.empty()},m(i,r){s.m(i,r),e.insert(i,t,r)},p(i,r){l===(l=n(i))&&s?s.p(i,r):(s.d(1),s=l(i),s&&(s.c(),s.m(t.parentNode,t)))},d(i){i&&e.detach(t),s.d(i)}}}function Zt(a){let t,n;return{c(){t=e.element("img"),e.src_url_equal(t.src,n=ae)||e.attr(t,"src",n),e.attr(t,"alt","Logo")},m(l,s){e.insert(l,t,s)},p:e.noop,d(l){l&&e.detach(t)}}}function Gt(a){let t,n;return{c(){t=e.element("img"),e.src_url_equal(t.src,n=a[47])||e.attr(t,"src",n),e.attr(t,"alt","Logo")},m(l,s){e.insert(l,t,s)},p(l,s){s[1]&65536&&!e.src_url_equal(t.src,n=l[47])&&e.attr(t,"src",n)},d(l){l&&e.detach(t)}}}function Ne(a){let t,n,l;return{c(){t=e.element("casino-slider"),e.set_custom_element_data(t,"class","HeaderItemsMenu"),e.set_custom_element_data(t,"identity",te),e.set_custom_element_data(t,"isprimarymenu","true"),e.set_custom_element_data(t,"actionevent",a[24]),e.set_custom_element_data(t,"mbsource",a[26]),e.set_custom_element_data(t,"activeindex",a[36]),e.set_custom_element_data(t,"location","headerMain"),e.set_custom_element_data(t,"endpoint",a[2]),e.set_custom_element_data(t,"lang",a[3]),e.set_custom_element_data(t,"clientstyling",a[27]),e.set_custom_element_data(t,"clientstylingurl",a[28])},m(s,i){e.insert(s,t,i),n||(l=e.action_destroyer(a[53].call(null,t)),n=!0)},p(s,i){i[0]&16777216&&e.set_custom_element_data(t,"actionevent",s[24]),i[0]&67108864&&e.set_custom_element_data(t,"mbsource",s[26]),i[1]&32&&e.set_custom_element_data(t,"activeindex",s[36]),i[0]&4&&e.set_custom_element_data(t,"endpoint",s[2]),i[0]&8&&e.set_custom_element_data(t,"lang",s[3]),i[0]&134217728&&e.set_custom_element_data(t,"clientstyling",s[27]),i[0]&268435456&&e.set_custom_element_data(t,"clientstylingurl",s[28])},d(s){s&&e.detach(t),n=!1,l()}}}function Pe(a){let t;function n(i,r){return i[9]!=="true"?Yt:qt}let l=n(a),s=l(a);return{c(){s.c(),t=e.empty()},m(i,r){s.m(i,r),e.insert(i,t,r)},p(i,r){l===(l=n(i))&&s?s.p(i,r):(s.d(1),s=l(i),s&&(s.c(),s.m(t.parentNode,t)))},d(i){i&&e.detach(t),s.d(i)}}}function qt(a){let t,n,l,s,i,r,_,u=a[39].slice(-2)+"",d,o,m,p,h,k,B,S,L,b=a[42]&&Oe(a);return{c(){t=e.element("div"),n=e.element("div"),l=e.element("span"),s=e.element("img"),r=e.space(),_=e.element("span"),d=e.text(u),o=e.space(),m=e.element("span"),p=e.svg_element("svg"),h=e.svg_element("path"),B=e.space(),b&&b.c(),e.src_url_equal(s.src,i=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[39].slice(-2))}.svg`)||e.attr(s,"src",i),e.attr(l,"class","FlagIcon"),e.attr(_,"class","LanguageName"),e.attr(h,"id","arrow"),e.attr(h,"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"),e.attr(h,"transform","translate(-274.511 -441.088)"),e.attr(h,"fill","#d1d1d1"),e.attr(p,"xmlns","http://www.w3.org/2000/svg"),e.attr(p,"width","14"),e.attr(p,"height","6.835"),e.attr(p,"viewBox","0 0 14 6.835"),e.attr(m,"class",k="TriangleInactive "+(a[42]?"TriangleActive":"")),e.attr(n,"class","SelectedOption Item ItemLanguage"),e.attr(t,"class","LanguageDropdown")},m(M,F){e.insert(M,t,F),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,r),e.append(n,_),e.append(_,d),e.append(n,o),e.append(n,m),e.append(m,p),e.append(p,h),e.append(t,B),b&&b.m(t,null),S||(L=e.listen(n,"click",a[89]),S=!0)},p(M,F){F[1]&16640&&!e.src_url_equal(s.src,i=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${M[57](M[39].slice(-2))}.svg`)&&e.attr(s,"src",i),F[1]&256&&u!==(u=M[39].slice(-2)+"")&&e.set_data(d,u),F[1]&2048&&k!==(k="TriangleInactive "+(M[42]?"TriangleActive":""))&&e.attr(m,"class",k),M[42]?b?b.p(M,F):(b=Oe(M),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},d(M){M&&e.detach(t),b&&b.d(),S=!1,L()}}}function Yt(a){let t,n,l,s=e.ensure_array_like(a[45]),i=[];for(let r=0;r<s.length;r+=1)i[r]=De(Le(a,s,r));return{c(){t=e.element("select");for(let r=0;r<i.length;r+=1)i[r].c();e.attr(t,"class","Item ItemLanguage NoFlag"),a[39]===void 0&&e.add_render_callback(()=>a[87].call(t))},m(r,_){e.insert(r,t,_);for(let u=0;u<i.length;u+=1)i[u]&&i[u].m(t,null);e.select_option(t,a[39],!0),n||(l=[e.listen(t,"change",a[87]),e.listen(t,"change",a[88])],n=!0)},p(r,_){if(_[1]&16384){s=e.ensure_array_like(r[45]);let u;for(u=0;u<s.length;u+=1){const d=Le(r,s,u);i[u]?i[u].p(d,_):(i[u]=De(d),i[u].c(),i[u].m(t,null))}for(;u<i.length;u+=1)i[u].d(1);i.length=s.length}_[1]&16640&&e.select_option(t,r[39])},d(r){r&&e.detach(t),e.destroy_each(i,r),n=!1,e.run_all(l)}}}function Oe(a){let t,n=e.ensure_array_like(a[45]),l=[];for(let s=0;s<n.length;s+=1)l[s]=ze(Se(a,n,s));return{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();e.attr(t,"class","OptionList")},m(s,i){e.insert(s,t,i);for(let r=0;r<l.length;r+=1)l[r]&&l[r].m(t,null)},p(s,i){if(i[1]&83902464){n=e.ensure_array_like(s[45]);let r;for(r=0;r<n.length;r+=1){const _=Se(s,n,r);l[r]?l[r].p(_,i):(l[r]=ze(_),l[r].c(),l[r].m(t,null))}for(;r<l.length;r+=1)l[r].d(1);l.length=n.length}},d(s){s&&e.detach(t),e.destroy_each(l,s)}}}function ze(a){let t,n,l,s,i,r,_=a[116].slice(-2)+"",u,d,o,m;function p(){return a[90](a[116])}return{c(){t=e.element("div"),n=e.element("span"),l=e.element("img"),i=e.space(),r=e.element("span"),u=e.text(_),d=e.space(),e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[116].slice(-2))}.svg`)||e.attr(l,"src",s),e.attr(n,"class","FlagIcon"),e.attr(r,"class","LanguageName"),e.attr(t,"class","LanguageOption")},m(h,k){e.insert(h,t,k),e.append(t,n),e.append(n,l),e.append(t,i),e.append(t,r),e.append(r,u),e.append(t,d),o||(m=e.listen(t,"click",p),o=!0)},p(h,k){a=h,k[1]&16384&&!e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[116].slice(-2))}.svg`)&&e.attr(l,"src",s),k[1]&16384&&_!==(_=a[116].slice(-2)+"")&&e.set_data(u,_)},d(h){h&&e.detach(t),o=!1,m()}}}function De(a){let t,n=a[116].slice(-2)+"",l,s;return{c(){t=e.element("option"),l=e.text(n),t.__value=s=a[116],e.set_input_value(t,t.__value)},m(i,r){e.insert(i,t,r),e.append(t,l)},p(i,r){r[1]&16384&&n!==(n=i[116].slice(-2)+"")&&e.set_data(l,n),r[1]&16384&&s!==(s=i[116])&&(t.__value=s,e.set_input_value(t,t.__value))},d(i){i&&e.detach(t)}}}function We(a){let t,n,l=a[113].label+"",s,i,r,_,u;function d(){return a[91](a[113])}return{c(){var o,m;t=e.element("li"),n=e.element("button"),s=e.text(l),i=e.space(),e.attr(t,"class",r="ItemSecondary "+(((o=a[37])==null?void 0:o.toString().indexOf("$"))>-1?((m=a[37])==null?void 0:m.split("$").pop())==a[113].id.split("$").pop()?"active":"":a[37]==a[113].id?"active":""))},m(o,m){e.insert(o,t,m),e.append(t,n),e.append(n,s),e.append(t,i),_||(u=e.listen(n,"click",d),_=!0)},p(o,m){var p,h;a=o,m[1]&128&&l!==(l=a[113].label+"")&&e.set_data(s,l),m[1]&192&&r!==(r="ItemSecondary "+(((p=a[37])==null?void 0:p.toString().indexOf("$"))>-1?((h=a[37])==null?void 0:h.split("$").pop())==a[113].id.split("$").pop()?"active":"":a[37]==a[113].id?"active":""))&&e.attr(t,"class",r)},d(o){o&&e.detach(t),_=!1,u()}}}function Jt(a){let t,n;return{c(){t=e.element("img"),e.src_url_equal(t.src,n=ae)||e.attr(t,"src",n),e.attr(t,"alt","Logo")},m(l,s){e.insert(l,t,s)},p:e.noop,d(l){l&&e.detach(t)}}}function Qt(a){let t,n;return{c(){t=e.element("img"),e.src_url_equal(t.src,n=a[47])||e.attr(t,"src",n),e.attr(t,"alt","Logo")},m(l,s){e.insert(l,t,s)},p(l,s){s[1]&65536&&!e.src_url_equal(t.src,n=l[47])&&e.attr(t,"src",n)},d(l){l&&e.detach(t)}}}function Vt(a){let t,n,l,s,i,r,_,u,d,o,m,p,h,k=a[49]("deposit")+"",B,S,L,b,M,F,z,O,E,I;function g(w,C){return w[41]?xt:Kt}let v=g(a),R=v(a),y=!a[35]&&Te(a),f=a[33]==="true"&&!a[43]&&Ue(a),H=a[48]&&je(a),A=a[45].length>1&&Ze(a),j=e.ensure_array_like(a[38]),D=[];for(let w=0;w<j.length;w+=1)D[w]=Je(Ee(a,j,w));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),R.c(),s=e.space(),i=e.element("nav"),y&&y.c(),r=e.space(),f&&f.c(),_=e.space(),u=e.element("div"),d=e.element("div"),o=e.element("player-account-balance-modal"),m=e.space(),p=e.element("div"),h=e.element("div"),B=e.text(k),S=e.space(),H&&H.c(),L=e.space(),b=e.element("div"),b.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {
|
package/components/{CasinoHeaderController-Bqi_UEZi.js → CasinoHeaderController-CGZStHGm.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { $ as Se, a as ri, b as si, c as ai, S as oi, i as ci, s as ui, f as E, d as di, n as ae, e as I, g as n, h as H, j as S, k as p, l as fi, o as gi, m as Je, p as _e, q as Qe, r as Ee, t as se, u as $, v as d, w as O, x as V, y as K, z as c, A as ie, B as ue, C as hi, D as wt, E as J, F as we, G as bt, H as be, I as mi, J as pi, K as _i, L as wi } from "./CasinoHamburgerMenu-CTVc2-UF.js";
|
2
2
|
import "../stencil/user-deposit-withdrawal-c_bH3eje.js";
|
3
|
-
import "../stencil/gamification-dropdown-
|
3
|
+
import "../stencil/gamification-dropdown-TiS6_s4J.js";
|
4
4
|
const bi = (t, e = {}) => {
|
5
5
|
const i = new CustomEvent("track-custom-event", {
|
6
6
|
detail: {
|
package/components/{CasinoHeaderController-CvgFMlA6.js → CasinoHeaderController-Cspimubt.js}
RENAMED
@@ -16,7 +16,7 @@ var Je = (t, e, i) => new Promise((l, n) => {
|
|
16
16
|
});
|
17
17
|
import { $ as Se, a as si, b as ai, S as oi, i as ci, f as E, s as ui, c as di, d as fi, n as ae, e as I, g as r, h as H, j as S, k as p, l as gi, o as hi, m as Qe, p as _e, q as Ve, r as Ee, t as se, u as ee, v as f, w as O, x as V, y as x, z as u, A as ie, B as ue, C as mi, D as bt, E as J, F as we, G as vt, H as be, I as pi, J as _i, K as wi, L as bi } from "./CasinoHamburgerMenu-BMkeLxFw.js";
|
18
18
|
import "../stencil/user-deposit-withdrawal-Dy3WkB23.js";
|
19
|
-
import "../stencil/gamification-dropdown-
|
19
|
+
import "../stencil/gamification-dropdown-Dv6JCzCW.js";
|
20
20
|
const vi = (t, e = {}) => {
|
21
21
|
const i = new CustomEvent("track-custom-event", {
|
22
22
|
detail: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-B0lLuqqY.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHeaderController-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHeaderController-Cspimubt.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
|
15
15
|
});
|
16
16
|
}
|
package/package.json
CHANGED
@@ -14,7 +14,7 @@ var p = (i, n, t) => new Promise((e, o) => {
|
|
14
14
|
}, a = (l) => l.done ? e(l.value) : Promise.resolve(l.value).then(s, c);
|
15
15
|
a((t = t.apply(i, n)).next());
|
16
16
|
});
|
17
|
-
import { r as m, h as r, g as y } from "./index-71b1bdfa-
|
17
|
+
import { r as m, h as r, g as y } from "./index-71b1bdfa-DL3YG9Ud.js";
|
18
18
|
const w = "en";
|
19
19
|
let h = {
|
20
20
|
en: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var p=(i,n,t)=>new Promise((e,o)=>{var s=r=>{try{l(t.next(r))}catch(d){o(d)}},c=r=>{try{l(t.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((t=t.apply(i,n)).next())});const a=require("./index-71b1bdfa-
|
1
|
+
"use strict";var p=(i,n,t)=>new Promise((e,o)=>{var s=r=>{try{l(t.next(r))}catch(d){o(d)}},c=r=>{try{l(t.throw(r))}catch(d){o(d)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(s,c);l((t=t.apply(i,n)).next())});const a=require("./index-71b1bdfa-CSjh2jcj.cjs"),y="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 g=i=>new Promise(n=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(e=>{h[e]||(h[e]={});for(let o in t[e])h[e][o]=t[e][o]}),n(!0)})}),w=(i,n)=>{const t=n;return h[t!==void 0&&t in h?t:y][i]};function f(i,n){if(i){const t=document.createElement("style");t.innerHTML=n,i.appendChild(t)}}function u(i,n){const t=new URL(n);fetch(t.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 v(i,n,t){if(window.emMessageBus){const e=document.createElement("style");window.emMessageBus.subscribe(n,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,m=class{constructor(i){a.registerInstance(this,i),this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=n=>{n.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=n=>{n.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,g(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,n){i!=n&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,n){i!=n&&this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return p(this,null,function*(){if(this.translationUrl.length>2&&(yield g(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?v(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}fetchPointsData(){let i=new URL(`${this.endpoint}/v1/elevate/playerInfo`);i.searchParams.append("language",this.language);const n=new Headers;n.append("X-SessionId",this.session);const t={method:"GET",headers:n};return new Promise((e,o)=>{this.isLoading=!0,fetch(i.href,t).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):w("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})))}get el(){return a.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};m.style=C;exports.GamificationDropdown=m;
|
@@ -14,7 +14,7 @@ var o = (n, a, l) => new Promise((s, i) => {
|
|
14
14
|
}, t = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(g, p);
|
15
15
|
t((l = l.apply(n, a)).next());
|
16
16
|
});
|
17
|
-
import { b as d, p as y } from "./index-71b1bdfa-
|
17
|
+
import { b as d, p as y } from "./index-71b1bdfa-DL3YG9Ud.js";
|
18
18
|
import { g as c } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
19
19
|
var v = () => {
|
20
20
|
const n = import.meta.url, a = {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var g=e=>{try{l(t.next(e))}catch(r){o(r)}},c=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,c);l((t=t.apply(n,a)).next())});const p=require("./index-71b1bdfa-
|
1
|
+
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var g=e=>{try{l(t.next(e))}catch(r){o(r)}},c=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(g,c);l((t=t.apply(n,a)).next())});const p=require("./index-71b1bdfa-CSjh2jcj.cjs"),y=require("./app-globals-0f993ce5-DgOnOgxM.cjs");var i=typeof document!="undefined"?document.currentScript:null,u=()=>{const n=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("stencil/gamification-dropdown-DztjiKq7.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),p.promiseResolve(a)};u().then(n=>s(exports,null,function*(){return yield y.globalScripts(),p.bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{endpoint:[513],language:[513],session:[513],mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],isOpen:[32],isLoading:[32],loyaltyPoints:[32]},null,{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}],[1,"player-elevate-loyaltycard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],mbSource:[1,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{params:["onParamsChanged"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}]]],["player-elevate-card",[[1,"player-elevate-card",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerLevelFlag:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard",[[1,"player-elevate-pointcard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],cardTitle:[513,"card-title"],buttonType:[513,"button-type"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32],elevateSPTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-rakeback-card",[[1,"player-rakeback-card",{endpoint:[513],theme:[513],session:[513],language:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],show:[516],rakebackInfo:[32],isLoading:[32],coolingOffPeriod:[32],showTheWidget:[32]},[[8,"message","handleMessage"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"],show:["onShowOrHasRakebackWalletChange"],rakebackInfo:["onShowOrHasRakebackWalletChange"]}]]]],n)}));
|
@@ -1,32 +1,34 @@
|
|
1
|
-
var m = (e, t, a) => new Promise((n,
|
2
|
-
var
|
1
|
+
var m = (e, t, a) => new Promise((n, l) => {
|
2
|
+
var r = (d) => {
|
3
3
|
try {
|
4
|
-
o(a.next(
|
5
|
-
} catch (
|
6
|
-
|
4
|
+
o(a.next(d));
|
5
|
+
} catch (v) {
|
6
|
+
l(v);
|
7
7
|
}
|
8
|
-
},
|
8
|
+
}, s = (d) => {
|
9
9
|
try {
|
10
|
-
o(a.throw(
|
11
|
-
} catch (
|
12
|
-
|
10
|
+
o(a.throw(d));
|
11
|
+
} catch (v) {
|
12
|
+
l(v);
|
13
13
|
}
|
14
|
-
}, o = (
|
14
|
+
}, o = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(r, s);
|
15
15
|
o((a = a.apply(e, t)).next());
|
16
16
|
});
|
17
|
-
import { G as he } from "./gamification-dropdown-8eb8a896-
|
18
|
-
import { r as u, h as i, g as P, c as
|
19
|
-
import { t as k, T as
|
20
|
-
import { P as W, a as z, b as L, c as U, r as p, t as h, g as E } from "./player-elevate-card-items-
|
17
|
+
import { G as he } from "./gamification-dropdown-8eb8a896-Bcdjx9jM.js";
|
18
|
+
import { r as u, h as i, g as P, c as $, a as b, F as O } from "./index-71b1bdfa-DL3YG9Ud.js";
|
19
|
+
import { t as k, T as N } from "./locale-TxlOHoKi.js";
|
20
|
+
import { P as W, a as z, b as L, c as U, r as p, t as h, g as E } from "./player-elevate-card-items-5071deed-Ce0Sstbi.js";
|
21
21
|
const q = (e, t) => new Promise((a) => {
|
22
22
|
fetch(e).then((n) => n.json()).then((n) => {
|
23
|
-
Object.keys(n).forEach((
|
24
|
-
t[
|
25
|
-
for (let
|
26
|
-
|
23
|
+
Object.keys(n).forEach((l) => {
|
24
|
+
t[l] = t[l] ? t[l] : t.en;
|
25
|
+
for (let r in n[l])
|
26
|
+
typeof n[l][r] == "object" ? Object.keys(n[l][r]).forEach((s) => {
|
27
|
+
t[l][r][s] = n[l][r][s];
|
28
|
+
}) : t[l][r] = n[l][r];
|
27
29
|
}), a(!0);
|
28
30
|
});
|
29
|
-
}), F = ":host{display:block}",
|
31
|
+
}), F = ":host{display:block}", j = F, H = class {
|
30
32
|
constructor(e) {
|
31
33
|
u(this, e), this.stylingAppends = !1, this.setClientStyling = () => {
|
32
34
|
let t = document.createElement("style");
|
@@ -62,7 +64,7 @@ const q = (e, t) => new Promise((a) => {
|
|
62
64
|
return P(this);
|
63
65
|
}
|
64
66
|
};
|
65
|
-
|
67
|
+
H.style = j;
|
66
68
|
function w(e) {
|
67
69
|
p(1, arguments);
|
68
70
|
var t = h(e);
|
@@ -71,10 +73,10 @@ function w(e) {
|
|
71
73
|
var G = 864e5;
|
72
74
|
function X(e, t) {
|
73
75
|
p(2, arguments);
|
74
|
-
var a = w(e), n = w(t),
|
75
|
-
return Math.round((
|
76
|
+
var a = w(e), n = w(t), l = a.getTime() - E(a), r = n.getTime() - E(n);
|
77
|
+
return Math.round((l - r) / G);
|
76
78
|
}
|
77
|
-
var
|
79
|
+
var Y = 6e4, J = 36e5;
|
78
80
|
function C(e, t) {
|
79
81
|
return p(2, arguments), h(e).getTime() - h(t).getTime();
|
80
82
|
}
|
@@ -86,18 +88,18 @@ var I = {
|
|
86
88
|
return t < 0 ? Math.ceil(t) : Math.floor(t);
|
87
89
|
}
|
88
90
|
// Math.trunc is not supported by IE
|
89
|
-
},
|
91
|
+
}, K = "trunc";
|
90
92
|
function S(e) {
|
91
|
-
return e ? I[e] : I[
|
93
|
+
return e ? I[e] : I[K];
|
92
94
|
}
|
93
95
|
function Q(e, t, a) {
|
94
96
|
p(2, arguments);
|
95
|
-
var n = C(e, t) /
|
97
|
+
var n = C(e, t) / J;
|
96
98
|
return S(a == null ? void 0 : a.roundingMethod)(n);
|
97
99
|
}
|
98
100
|
function V(e, t, a) {
|
99
101
|
p(2, arguments);
|
100
|
-
var n = C(e, t) /
|
102
|
+
var n = C(e, t) / Y;
|
101
103
|
return S(a == null ? void 0 : a.roundingMethod)(n);
|
102
104
|
}
|
103
105
|
function Z(e, t) {
|
@@ -106,10 +108,10 @@ function Z(e, t) {
|
|
106
108
|
return a.getTime() < n.getTime();
|
107
109
|
}
|
108
110
|
function ee(e, t) {
|
109
|
-
const a = e.querySelector("#total_level"), n = 17,
|
110
|
-
a.setAttribute("viewbox", `0 0 ${o} 28`),
|
111
|
-
const y = e.querySelector("#lock"), T = e.querySelector("#filter_heart_ball"), A = e.querySelector("#filter_ball"),
|
112
|
-
y.setAttribute("cx", `${
|
111
|
+
const a = e.querySelector("#total_level"), n = 17, l = 6.5, r = a.getBBox().width, s = t > 1 ? 1 : t, o = s * r - n < 0 ? 0 : s * r - n, d = e.querySelector("#current_level"), v = e.querySelector("#filter_current_level"), g = e.querySelector("#circle_current_level");
|
112
|
+
a.setAttribute("viewbox", `0 0 ${o} 28`), d.setAttribute("width", `${o}`), g.setAttribute("cx", `${o < l ? l : o}`), v.setAttribute("x", `${o - 8}`);
|
113
|
+
const y = e.querySelector("#lock"), T = e.querySelector("#filter_heart_ball"), A = e.querySelector("#filter_ball"), D = e.querySelector("#filter_heart"), _ = e.querySelector("#filter_lock"), f = e.querySelector("#paint0_linear_ball"), x = e.querySelector("#paint1_linear_lock"), B = e.querySelector("#lock_box"), R = e.querySelector("#heart_box"), M = 10, c = r - M;
|
114
|
+
y.setAttribute("cx", `${c}`), x.setAttribute("x1", `${c}`), x.setAttribute("x2", `${c}`), f.setAttribute("x1", `${c - 6}`), f.setAttribute("x2", `${c - 6 + 11.2}`), _.setAttribute("x", `${c - 6}`), D.setAttribute("x", `${c - 6 - 2}`), A.setAttribute("x", `${c - 6 - 2 - 2}`), T.setAttribute("x", `${c - 6 - 2 - 2 - 4}`), B.setAttribute("x", `${c - 6}`), R.setAttribute("x", `${c - 6}`), a.parentElement.style.opacity = "1";
|
113
115
|
}
|
114
116
|
const te = `:host {
|
115
117
|
display: block;
|
@@ -304,7 +306,7 @@ const te = `:host {
|
|
304
306
|
color: var(--emw--color-red, #9e595f);
|
305
307
|
}`, ne = te, ae = class {
|
306
308
|
constructor(e) {
|
307
|
-
u(this, e), this.playerElevateLeveLoaded =
|
309
|
+
u(this, e), this.playerElevateLeveLoaded = $(this, "playerElevateLeveLoaded"), this.params = void 0, this.playerElevateLevel = void 0, this.pointExpireString = void 0;
|
308
310
|
}
|
309
311
|
handleWindowResizs() {
|
310
312
|
this.initLevelProgressbar();
|
@@ -328,17 +330,18 @@ const te = `:host {
|
|
328
330
|
a(n);
|
329
331
|
}));
|
330
332
|
}
|
331
|
-
calcuatePointsToBeExpired(e) {
|
332
|
-
let
|
333
|
+
calcuatePointsToBeExpired(e, t) {
|
334
|
+
let a = "";
|
333
335
|
if (!e || !e.aboutToExpire || e.aboutToExpire.length == 0 || e.aboutToExpire[0].points <= 0)
|
334
|
-
return
|
335
|
-
e.aboutToExpire.sort((
|
336
|
-
const
|
337
|
-
let r = 0,
|
338
|
-
return
|
339
|
-
expirationPoints:
|
340
|
-
expireDay: Math.max(
|
341
|
-
|
336
|
+
return a;
|
337
|
+
e.aboutToExpire.sort((d, v) => Z(new Date(d.expireTime), new Date(v.expireTime)) ? -1 : 1);
|
338
|
+
const n = e.aboutToExpire[0], l = X(new Date(n.expireTime), /* @__PURE__ */ new Date());
|
339
|
+
let r = 0, s = 0, o = l === 0 ? `${t}Day` : t;
|
340
|
+
return l <= 0 && (r = Q(new Date(n.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), o = r > 1 ? `${t}Hours` : `${t}Hour`, r <= 0 && (s = V(new Date(n.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), o = s > 1 ? `${t}Minutes` : `${t}Minute`)), a = k(o, {
|
341
|
+
expirationPoints: n.points,
|
342
|
+
expireDay: Math.max(l, r, s),
|
343
|
+
lang: this.params.language
|
344
|
+
}), a;
|
342
345
|
}
|
343
346
|
loadPlayerLevelInfo() {
|
344
347
|
let e = new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);
|
@@ -349,19 +352,19 @@ const te = `:host {
|
|
349
352
|
"Content-Type": "application/json"
|
350
353
|
}
|
351
354
|
}).then((n) => n.json()).then((n) => {
|
352
|
-
var
|
355
|
+
var l, r, s;
|
353
356
|
if (!n.success) {
|
354
357
|
console.error("Exception when fetch user elevateinfo, ", n.errorCode, n.errorMessage), a(!0);
|
355
358
|
return;
|
356
359
|
}
|
357
360
|
let o = n.data;
|
358
|
-
this.playerElevateLevel = o.level, this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name, this.playerElevateLevel.spendablePoints = ((
|
359
|
-
const
|
361
|
+
this.playerElevateLevel = o.level, this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name, this.playerElevateLevel.spendablePoints = ((l = o.spendableWallet) === null || l === void 0 ? void 0 : l.total.points) || 0, this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
362
|
+
const d = (r = n.data.spendableWallet) === null || r === void 0 ? void 0 : r.total, v = (s = n.data.loyaltyWallet) === null || s === void 0 ? void 0 : s.total;
|
360
363
|
this.playerElevateLeveLoaded.emit({
|
361
|
-
elevateLevelWalletTotal:
|
362
|
-
loyaltyWalletTotal:
|
364
|
+
elevateLevelWalletTotal: d,
|
365
|
+
loyaltyWalletTotal: v
|
363
366
|
});
|
364
|
-
let g = this.calcuatePointsToBeExpired(
|
367
|
+
let g = this.calcuatePointsToBeExpired(d, "coinsToBeExpired"), y = this.calcuatePointsToBeExpired(v, "pointsToBeExpired");
|
365
368
|
(g || y) && this.playerElevateLeveLoaded.emit({
|
366
369
|
pointExpireString: g,
|
367
370
|
xpExpireString: y
|
@@ -388,11 +391,11 @@ const te = `:host {
|
|
388
391
|
e.push(this.loadPlayerLevelInfo()), this.params.calculateLevelFlag && e.push(this.loadLevels()), Promise.all(e).then((t) => {
|
389
392
|
if (console.log("elevate-init", t), this.initLevelProgressbar(), !this.levels)
|
390
393
|
return;
|
391
|
-
this.levels.sort((
|
394
|
+
this.levels.sort((l, r) => l.firstEntryPoints > r.firstEntryPoints ? 1 : -1);
|
392
395
|
const a = this.playerElevateLevel.loyaltyPoints;
|
393
396
|
let n = 0;
|
394
|
-
this.levels.forEach((
|
395
|
-
a >
|
397
|
+
this.levels.forEach((l, r) => {
|
398
|
+
a > l.firstEntryPoints && (n = r);
|
396
399
|
}), this.playerElevateLeveLoaded.emit({
|
397
400
|
calculatedLevelFlag: n
|
398
401
|
});
|
@@ -411,7 +414,7 @@ const te = `:host {
|
|
411
414
|
}
|
412
415
|
};
|
413
416
|
ae.style = ne;
|
414
|
-
const
|
417
|
+
const le = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}", re = le, ie = class {
|
415
418
|
constructor(e) {
|
416
419
|
u(this, e), this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.playerName = void 0, this.dateFormat = "yyyy-MM-dd", this.mbSource = void 0, this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0;
|
417
420
|
}
|
@@ -450,7 +453,7 @@ const re = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCar
|
|
450
453
|
}
|
451
454
|
render() {
|
452
455
|
const e = b("../static/card-ground.svg"), t = b("../static/card-ground-over.svg");
|
453
|
-
return i("div", { key: "39295a651da66747a20554699bba5f96b8ad5c35", class: `ElevateCardWrapper ${this.theme}` }, i("div", { key: "78c34fe054fc2459f8af3354116cd21a68ce01be", class: "LoyaltyCard Outer", style: { backgroundImage: `url(${e}` } }, i("general-styling-wrapper", { key: "be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20", clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations:
|
456
|
+
return i("div", { key: "39295a651da66747a20554699bba5f96b8ad5c35", class: `ElevateCardWrapper ${this.theme}` }, i("div", { key: "78c34fe054fc2459f8af3354116cd21a68ce01be", class: "LoyaltyCard Outer", style: { backgroundImage: `url(${e}` } }, i("general-styling-wrapper", { key: "be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20", clientStyling: this.clientStyling, clientStylingUrl: this.clientStylingUrl, targetTranslations: N, translationUrl: this.translationUrl }), i("player-elevate-card-data", { key: "b53e4b59d4ee55a2f567efa09afab3d72969e6e4", params: this.paramProxy }), i("div", { key: "1f3e504440bab2df3a181058fad7149c85c48c14", class: "OuterCover Inner", style: { backgroundImage: `url(${t}` } }, i("div", { key: "a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1", class: "Content Row" }, this.playerElevateLevel && i(O, { key: "5c104f5ba1a018219c6ed5f6e50af99b035a0344" }, i("div", { key: "bd94591e6ab9298ab7c769fa48efaf314dc1a63b", class: "PlayerImg" }, i(W, { key: "928849ce86d8c7a483eba7850efc83f8149bae43", onlyBadge: !0, loyaltyIconUrl: this.playerElevateLevel.presentation.asset })), i("div", { key: "37192c9b8502eb3c7d93914369df2d784c17e9f7", class: `LevelInfo ${this.playerElevateLevel.name}` }, i(z, { key: "2684a177f4bb1053c4587fd4158666fb35ca23f4", hideInfo: !0, level: this.playerElevateLevel.name, expireTime: this.playerElevateLevel.expireTime, dateFormat: this.dateFormat }), i("div", { key: "173a37c63868f2d900c12af3ffc2d9a4a57550e4", class: "PointsRange" }, i(L, { key: "a7111154f7dc547e0b05c70d24508bdd75c5d882", loyaltyPoints: this.playerElevateLevel.loyaltyPoints, language: this.language }), i(L, { key: "ad31574e7db81a7ecb7a06b28b1d4968cbcab93e", loyaltyPoints: this.getNextLevelPoints(), language: this.language })), i(U, { key: "88ddfdb326edfb1de9519da6b3d0e5b514725e27" }), i("div", { key: "b9c79555a8001bd2c754d7573df04016da235c84", class: "NextLevelTip" }, this.getNextLevelTips()), this.pointExpireString && i("div", { key: "02da725060c9db4a8c1c2e8bad3426894d7f8f2c", class: "PointsInfo ExpirationPoints" }, this.pointExpireString, " ")))))));
|
454
457
|
}
|
455
458
|
static get watchers() {
|
456
459
|
return {
|
@@ -460,10 +463,10 @@ const re = ":host{display:block}@media screen and (min-width: 501px){.LoyaltyCar
|
|
460
463
|
};
|
461
464
|
}
|
462
465
|
};
|
463
|
-
ie.style =
|
466
|
+
ie.style = re;
|
464
467
|
export {
|
465
468
|
he as gamification_dropdown,
|
466
|
-
|
469
|
+
H as general_styling_wrapper,
|
467
470
|
ae as player_elevate_card_data,
|
468
471
|
ie as player_elevate_loyaltycard
|
469
472
|
};
|