@everymatrix/casino-header-controller 1.74.0 → 1.74.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHeaderController-BJjILsta.js → CasinoHeaderController-5G-T0OSG.js} +1 -1
- package/components/{CasinoHeaderController-Br69ue6F.js → CasinoHeaderController-BDgqhRm2.js} +1 -1
- package/components/{CasinoHeaderController-CN4Hw7Ne.cjs → CasinoHeaderController-BQDz9va7.cjs} +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-343647b2-DuhB4qAC.js → gamification-dropdown-343647b2-Bds2TLN7.js} +1 -1
- package/stencil/{gamification-dropdown-343647b2-B50uewij.cjs → gamification-dropdown-343647b2-DwTk5rRU.cjs} +1 -1
- package/stencil/{gamification-dropdown-343647b2-BtKUznL8.js → gamification-dropdown-343647b2-Ygf9wlk1.js} +1 -1
- package/stencil/{gamification-dropdown-BXoXmCVj.js → gamification-dropdown-B_KKjr34.js} +1 -1
- package/stencil/{gamification-dropdown-BgQs3qHL.cjs → gamification-dropdown-CtAAMBL8.cjs} +1 -1
- package/stencil/{gamification-dropdown-CHDfyBlq.js → gamification-dropdown-vJ0O-dUT.js} +1 -1
- package/stencil/{gamification-dropdown_4-BCIlNfU2.cjs → gamification-dropdown_4-CSSqKMgX.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-Bwo0uyQb.js → gamification-dropdown_4-CZ473RmE.js} +13 -10
- package/stencil/{gamification-dropdown_4-BMYGUc6f.js → gamification-dropdown_4-D0zC6s0z.js} +22 -19
- package/stencil/{index-71b1bdfa-CqHhm_K7.js → index-71b1bdfa-CsvLx63r.js} +4 -4
- package/stencil/{index-71b1bdfa-DEOwV3WT.cjs → index-71b1bdfa-D1DTp5qp.cjs} +1 -1
- package/stencil/{index-71b1bdfa-Br04T1ks.js → index-71b1bdfa-_pPD5FBH.js} +4 -4
- package/stencil/{player-elevate-card-Cyj2vrTT.js → player-elevate-card-BzOMRM7h.js} +2 -2
- package/stencil/{player-elevate-card-Csrn1cq3.js → player-elevate-card-Cq9AY34b.js} +2 -2
- package/stencil/{player-elevate-card-CkeeX0Fc.cjs → player-elevate-card-RwOVHsJs.cjs} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-GG7yo-HJ.js → player-elevate-card-items-08c6fbd8-BbWvVixN.js} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-swAJgFA-.cjs → player-elevate-card-items-08c6fbd8-CfgH9Fd6.cjs} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-DvNcpL9M.js → player-elevate-card-items-08c6fbd8-DjORuh1x.js} +1 -1
- package/stencil/{player-elevate-pointcard-D962b07c.cjs → player-elevate-pointcard-0nAvSKAh.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-CQ618787.js → player-elevate-pointcard-B2LdaCFC.js} +2 -2
- package/stencil/{player-elevate-pointcard-CDT1deRp.js → player-elevate-pointcard-DpAG2GwO.js} +2 -2
- package/stencil/{player-rakeback-card-r5qjxDTk.js → player-rakeback-card-BmxqgBwM.js} +1 -1
- package/stencil/{player-rakeback-card-DI8fIhnW.cjs → player-rakeback-card-Cse8u92i.cjs} +1 -1
- package/stencil/{player-rakeback-card-D-wGOAvr.js → player-rakeback-card-Dw8NVtO5.js} +1 -1
package/components/{CasinoHeaderController-BJjILsta.js → CasinoHeaderController-5G-T0OSG.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { $ as ze, a as gi, b as hi, c as pi, S as _i, i as wi, s as bi, f as H, d as vi, n as Oe, e as E, g as l, h as R, j as A, k as h, l as yi, o as ki, m as $e, p as we, q as et, r as De, t as se, u as q, v as u, w as $, x as m, y as W, z as J, A as K, B as ie, C as de, D as Fi, E as It, F as be, G as Ht, H as ve, I as Mi, J as Ii, K as Hi, L as Ai } from "./CasinoHamburgerMenu-DnyTkCn0.js";
|
2
2
|
import "../stencil/user-deposit-withdrawal-BhBUsaq0.js";
|
3
|
-
import "../stencil/gamification-dropdown-
|
3
|
+
import "../stencil/gamification-dropdown-vJ0O-dUT.js";
|
4
4
|
const Ci = (t, e = {}) => {
|
5
5
|
const i = new CustomEvent("track-custom-event", {
|
6
6
|
detail: {
|
package/components/{CasinoHeaderController-Br69ue6F.js → CasinoHeaderController-BDgqhRm2.js}
RENAMED
@@ -16,7 +16,7 @@ var $e = (t, e, i) => new Promise((n, s) => {
|
|
16
16
|
});
|
17
17
|
import { $ as ze, a as hi, b as pi, S as _i, i as wi, f as H, s as bi, c as vi, d as yi, n as Oe, e as E, g as l, h as R, j as A, k as p, l as ki, o as Fi, m as et, p as be, q as tt, r as De, t as se, u as q, v as u, w as $, x as m, y as W, z as J, A as K, B as ie, C as de, D as Mi, E as Ht, F as ve, G as At, H as ye, I as Ii, J as Hi, K as Ai, L as Ci } from "./CasinoHamburgerMenu-CGX_L0rr.js";
|
18
18
|
import "../stencil/user-deposit-withdrawal-BmCnXlz0.js";
|
19
|
-
import "../stencil/gamification-dropdown-
|
19
|
+
import "../stencil/gamification-dropdown-B_KKjr34.js";
|
20
20
|
const Si = (t, e = {}) => {
|
21
21
|
const i = new CustomEvent("track-custom-event", {
|
22
22
|
detail: {
|
package/components/{CasinoHeaderController-CN4Hw7Ne.cjs → CasinoHeaderController-BQDz9va7.cjs}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var Re=(a,t,n)=>new Promise((l,s)=>{var i=d=>{try{m(n.next(d))}catch(p){s(p)}},r=d=>{try{m(n.throw(d))}catch(p){s(p)}},m=d=>d.done?l(d.value):Promise.resolve(d.value).then(i,r);m((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CrZ5l9tM.cjs");require("../stencil/user-deposit-withdrawal-6OV5s5L0.cjs");require("../stencil/gamification-dropdown-BgQs3qHL.cjs");const Yt=(a,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:a,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)};function qt({withLocale:a,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function Be(a,t){e.addMessages(a,t)}function Jt(a){e.$locale.set(a)}const Ne={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-Sn7ktWQ2.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 Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Vt(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 Pe(a,t,n){const l=a.slice();return l[123]=t[n],l}function Oe(a,t,n){const l=a.slice();return l[126]=t[n],l}function ze(a,t,n){const l=a.slice();return l[126]=t[n],l}function We(a,t,n){const l=a.slice();return l[123]=t[n],l}function De(a,t,n){const l=a.slice();return l[126]=t[n],l}function Te(a,t,n){const l=a.slice();return l[126]=t[n],l}function Xt(a){let t,n,l,s,i,r,m,d,p,u,c,_=a[49]("login")+"",h,w,H,E=a[49]("register")+"",R,b,k,M,O,L,C,f=!a[36]&&Ue(a),y=a[45].length>1&&je(a),D=e.ensure_array_like(a[39]),F=[];for(let g=0;g<D.length;g+=1)F[g]=qe(Pe(a,D,g));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),s=e.element("img"),r=e.space(),m=e.element("nav"),f&&f.c(),d=e.space(),p=e.element("div"),u=e.element("div"),c=e.element("div"),h=e.text(_),w=e.space(),H=e.element("div"),R=e.text(E),b=e.space(),y&&y.c(),k=e.space(),M=e.element("nav"),O=e.element("ul");for(let g=0;g<F.length;g+=1)F[g].c();e.src_url_equal(s.src,i=a[48])||e.attr(s,"src",i),e.attr(s,"alt","Logo"),e.attr(l,"class","HeaderBranding"),e.attr(m,"class","HeaderMainNav"),e.attr(c,"class","Item ItemLogin"),e.attr(c,"tabindex","0"),e.attr(H,"class","Item ItemRegister"),e.attr(H,"tabindex","0"),e.attr(u,"class","HeaderItemsMenu"),e.attr(p,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(O,"class","HeaderItemsMenuSecondary"),e.attr(M,"class","HeaderSecondaryNav"),e.attr(t,"class","HeaderWrapper")},m(g,A){e.insert(g,t,A),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,r),e.append(n,m),f&&f.m(m,null),e.append(n,d),e.append(n,p),e.append(p,u),e.append(u,c),e.append(c,h),e.append(u,w),e.append(u,H),e.append(H,R),e.append(u,b),y&&y.m(u,null),e.append(t,k),e.append(t,M),e.append(M,O);for(let I=0;I<F.length;I+=1)F[I]&&F[I].m(O,null);a[96](t),L||(C=[e.listen(l,"click",a[88]),e.listen(c,"click",a[89]),e.listen(H,"click",a[90])],L=!0)},p(g,A){if(A[1]&131072&&!e.src_url_equal(s.src,i=g[48])&&e.attr(s,"src",i),g[36]?f&&(f.d(1),f=null):f?f.p(g,A):(f=Ue(g),f.c(),f.m(m,null)),A[1]&262144&&_!==(_=g[49]("login")+"")&&e.set_data(h,_),A[1]&262144&&E!==(E=g[49]("register")+"")&&e.set_data(R,E),g[45].length>1?y?y.p(g,A):(y=je(g),y.c(),y.m(u,null)):y&&(y.d(1),y=null),A[1]&8388992){D=e.ensure_array_like(g[39]);let I;for(I=0;I<D.length;I+=1){const Z=Pe(g,D,I);F[I]?F[I].p(Z,A):(F[I]=qe(Z),F[I].c(),F[I].m(O,null))}for(;I<F.length;I+=1)F[I].d(1);F.length=D.length}},d(g){g&&e.detach(t),f&&f.d(),y&&y.d(),e.destroy_each(F,g),a[96](null),L=!1,e.run_all(C)}}}function Kt(a){let t,n,l,s,i,r,m,d,p,u,c,_,h,w,H,E,R,b,k,M=a[49]("login")+"",O,L,C,f=a[49]("register")+"",y,D,F;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"),m=e.text(`.a {
|
1
|
+
"use strict";var Re=(a,t,n)=>new Promise((l,s)=>{var i=d=>{try{m(n.next(d))}catch(p){s(p)}},r=d=>{try{m(n.throw(d))}catch(p){s(p)}},m=d=>d.done?l(d.value):Promise.resolve(d.value).then(i,r);m((n=n.apply(a,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CrZ5l9tM.cjs");require("../stencil/user-deposit-withdrawal-6OV5s5L0.cjs");require("../stencil/gamification-dropdown-CtAAMBL8.cjs");const Yt=(a,t={})=>{const n=new CustomEvent("track-custom-event",{detail:{type:a,data:t},bubbles:!0,composed:!0});document.dispatchEvent(n)};function qt({withLocale:a,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function Be(a,t){e.addMessages(a,t)}function Jt(a){e.$locale.set(a)}const Ne={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-Sn7ktWQ2.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 Qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDcuMS1jMDAwIDc5LjljY2M0ZGU5MywgMjAyMi8wMy8xNC0xNDowNzoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIzLjMgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzQjhCMTgyRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzQjhCMTgzRUNBMzExRUM5M0JCRDIzRjhFMEY0NjE0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzNCOEIxODBFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzNCOEIxODFFQ0EzMTFFQzkzQkJEMjNGOEUwRjQ2MTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7HvIqyAAAAEElEQVR42mL4//8/A0CAAQAI/AL+26JNFgAAAABJRU5ErkJggg==";function Vt(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 Pe(a,t,n){const l=a.slice();return l[123]=t[n],l}function Oe(a,t,n){const l=a.slice();return l[126]=t[n],l}function ze(a,t,n){const l=a.slice();return l[126]=t[n],l}function We(a,t,n){const l=a.slice();return l[123]=t[n],l}function De(a,t,n){const l=a.slice();return l[126]=t[n],l}function Te(a,t,n){const l=a.slice();return l[126]=t[n],l}function Xt(a){let t,n,l,s,i,r,m,d,p,u,c,_=a[49]("login")+"",h,w,H,E=a[49]("register")+"",R,b,k,M,O,L,C,f=!a[36]&&Ue(a),y=a[45].length>1&&je(a),D=e.ensure_array_like(a[39]),F=[];for(let g=0;g<D.length;g+=1)F[g]=qe(Pe(a,D,g));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),s=e.element("img"),r=e.space(),m=e.element("nav"),f&&f.c(),d=e.space(),p=e.element("div"),u=e.element("div"),c=e.element("div"),h=e.text(_),w=e.space(),H=e.element("div"),R=e.text(E),b=e.space(),y&&y.c(),k=e.space(),M=e.element("nav"),O=e.element("ul");for(let g=0;g<F.length;g+=1)F[g].c();e.src_url_equal(s.src,i=a[48])||e.attr(s,"src",i),e.attr(s,"alt","Logo"),e.attr(l,"class","HeaderBranding"),e.attr(m,"class","HeaderMainNav"),e.attr(c,"class","Item ItemLogin"),e.attr(c,"tabindex","0"),e.attr(H,"class","Item ItemRegister"),e.attr(H,"tabindex","0"),e.attr(u,"class","HeaderItemsMenu"),e.attr(p,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(O,"class","HeaderItemsMenuSecondary"),e.attr(M,"class","HeaderSecondaryNav"),e.attr(t,"class","HeaderWrapper")},m(g,A){e.insert(g,t,A),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,r),e.append(n,m),f&&f.m(m,null),e.append(n,d),e.append(n,p),e.append(p,u),e.append(u,c),e.append(c,h),e.append(u,w),e.append(u,H),e.append(H,R),e.append(u,b),y&&y.m(u,null),e.append(t,k),e.append(t,M),e.append(M,O);for(let I=0;I<F.length;I+=1)F[I]&&F[I].m(O,null);a[96](t),L||(C=[e.listen(l,"click",a[88]),e.listen(c,"click",a[89]),e.listen(H,"click",a[90])],L=!0)},p(g,A){if(A[1]&131072&&!e.src_url_equal(s.src,i=g[48])&&e.attr(s,"src",i),g[36]?f&&(f.d(1),f=null):f?f.p(g,A):(f=Ue(g),f.c(),f.m(m,null)),A[1]&262144&&_!==(_=g[49]("login")+"")&&e.set_data(h,_),A[1]&262144&&E!==(E=g[49]("register")+"")&&e.set_data(R,E),g[45].length>1?y?y.p(g,A):(y=je(g),y.c(),y.m(u,null)):y&&(y.d(1),y=null),A[1]&8388992){D=e.ensure_array_like(g[39]);let I;for(I=0;I<D.length;I+=1){const Z=Pe(g,D,I);F[I]?F[I].p(Z,A):(F[I]=qe(Z),F[I].c(),F[I].m(O,null))}for(;I<F.length;I+=1)F[I].d(1);F.length=D.length}},d(g){g&&e.detach(t),f&&f.d(),y&&y.d(),e.destroy_each(F,g),a[96](null),L=!1,e.run_all(C)}}}function Kt(a){let t,n,l,s,i,r,m,d,p,u,c,_,h,w,H,E,R,b,k,M=a[49]("login")+"",O,L,C,f=a[49]("register")+"",y,D,F;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"),m=e.text(`.a {
|
2
2
|
fill: var(--emw--color-white, #FFFFFF);
|
3
3
|
}
|
4
4
|
`),d=e.svg_element("g"),p=e.svg_element("rect"),u=e.svg_element("rect"),c=e.svg_element("rect"),_=e.space(),h=e.element("div"),w=e.element("img"),E=e.space(),R=e.element("div"),b=e.element("div"),k=e.element("div"),O=e.text(M),L=e.space(),C=e.element("div"),y=e.text(f),e.attr(p,"class","a"),e.attr(p,"width","18"),e.attr(p,"height","2"),e.attr(p,"transform","translate(14 13)"),e.attr(u,"class","a"),e.attr(u,"width","22"),e.attr(u,"height","2"),e.attr(u,"transform","translate(14 20)"),e.attr(c,"class","a"),e.attr(c,"width","22"),e.attr(c,"height","2"),e.attr(c,"transform","translate(14 27)"),e.attr(d,"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.src_url_equal(w.src,H=a[48])||e.attr(w,"src",H),e.attr(w,"alt","Logo"),e.attr(h,"class","HeaderBranding"),e.attr(k,"class","Item ItemLogin"),e.attr(C,"class","Item ItemRegister"),e.attr(b,"class","HeaderItemsMenu"),e.attr(R,"class","HeaderTopActions"),e.attr(n,"class","HeaderContainer"),e.attr(t,"class","HeaderWrapper HeaderMobileWrapper")},m(g,A){e.insert(g,t,A),e.append(t,n),e.append(n,l),e.append(l,s),e.append(s,i),e.append(i,r),e.append(r,m),e.append(s,d),e.append(d,p),e.append(d,u),e.append(d,c),e.append(n,_),e.append(n,h),e.append(h,w),e.append(n,E),e.append(n,R),e.append(R,b),e.append(b,k),e.append(k,O),e.append(b,L),e.append(b,C),e.append(C,y),a[87](t),D||(F=[e.listen(s,"click",a[83]),e.listen(h,"click",a[84]),e.listen(k,"click",a[85]),e.listen(C,"click",a[86])],D=!0)},p(g,A){A[1]&131072&&!e.src_url_equal(w.src,H=g[48])&&e.attr(w,"src",H),A[1]&262144&&M!==(M=g[49]("login")+"")&&e.set_data(O,M),A[1]&262144&&f!==(f=g[49]("register")+"")&&e.set_data(y,f)},d(g){g&&e.detach(t),a[87](null),D=!1,e.run_all(F)}}}function xt(a){let t;function n(i,r){return i[43]?aa:ta}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 Ue(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",le),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[37]),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]&64&&e.set_custom_element_data(t,"activeindex",s[37]),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 je(a){let t;function n(i,r){return i[9]!=="true"?ea:$t}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 $t(a){let t,n,l,s,i,r,m,d=a[40].slice(-2)+"",p,u,c,_,h,w,H,E,R,b=a[42]&&Ze(a);return{c(){t=e.element("div"),n=e.element("div"),l=e.element("span"),s=e.element("img"),r=e.space(),m=e.element("span"),p=e.text(d),u=e.space(),c=e.element("span"),_=e.svg_element("svg"),h=e.svg_element("path"),H=e.space(),b&&b.c(),e.src_url_equal(s.src,i=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[40].slice(-2))}.svg`)||e.attr(s,"src",i),e.attr(l,"class","FlagIcon"),e.attr(m,"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(_,"xmlns","http://www.w3.org/2000/svg"),e.attr(_,"width","14"),e.attr(_,"height","6.835"),e.attr(_,"viewBox","0 0 14 6.835"),e.attr(c,"class",w="TriangleInactive "+(a[42]?"TriangleActive":"")),e.attr(n,"class","SelectedOption Item ItemLanguage"),e.attr(t,"class","LanguageDropdown")},m(k,M){e.insert(k,t,M),e.append(t,n),e.append(n,l),e.append(l,s),e.append(n,r),e.append(n,m),e.append(m,p),e.append(n,u),e.append(n,c),e.append(c,_),e.append(_,h),e.append(t,H),b&&b.m(t,null),E||(R=e.listen(n,"click",a[93]),E=!0)},p(k,M){M[1]&16896&&!e.src_url_equal(s.src,i=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${k[57](k[40].slice(-2))}.svg`)&&e.attr(s,"src",i),M[1]&512&&d!==(d=k[40].slice(-2)+"")&&e.set_data(p,d),M[1]&2048&&w!==(w="TriangleInactive "+(k[42]?"TriangleActive":""))&&e.attr(c,"class",w),k[42]?b?b.p(k,M):(b=Ze(k),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},d(k){k&&e.detach(t),b&&b.d(),E=!1,R()}}}function ea(a){let t,n,l,s=e.ensure_array_like(a[45]),i=[];for(let r=0;r<s.length;r+=1)i[r]=Ye(ze(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[40]===void 0&&e.add_render_callback(()=>a[91].call(t))},m(r,m){e.insert(r,t,m);for(let d=0;d<i.length;d+=1)i[d]&&i[d].m(t,null);e.select_option(t,a[40],!0),n||(l=[e.listen(t,"change",a[91]),e.listen(t,"change",a[92])],n=!0)},p(r,m){if(m[1]&16384){s=e.ensure_array_like(r[45]);let d;for(d=0;d<s.length;d+=1){const p=ze(r,s,d);i[d]?i[d].p(p,m):(i[d]=Ye(p),i[d].c(),i[d].m(t,null))}for(;d<i.length;d+=1)i[d].d(1);i.length=s.length}m[1]&16896&&e.select_option(t,r[40])},d(r){r&&e.detach(t),e.destroy_each(i,r),n=!1,e.run_all(l)}}}function Ze(a){let t,n=e.ensure_array_like(a[45]),l=[];for(let s=0;s<n.length;s+=1)l[s]=Ge(Oe(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 m=Oe(s,n,r);l[r]?l[r].p(m,i):(l[r]=Ge(m),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 Ge(a){let t,n,l,s,i,r,m=a[126].slice(-2)+"",d,p,u,c;function _(){return a[94](a[126])}return{c(){t=e.element("div"),n=e.element("span"),l=e.element("img"),i=e.space(),r=e.element("span"),d=e.text(m),p=e.space(),e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[126].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,w){e.insert(h,t,w),e.append(t,n),e.append(n,l),e.append(t,i),e.append(t,r),e.append(r,d),e.append(t,p),u||(c=e.listen(t,"click",_),u=!0)},p(h,w){a=h,w[1]&16384&&!e.src_url_equal(l.src,s=`http://purecatamphetamine.github.io/country-flag-icons/3x2/${a[57](a[126].slice(-2))}.svg`)&&e.attr(l,"src",s),w[1]&16384&&m!==(m=a[126].slice(-2)+"")&&e.set_data(d,m)},d(h){h&&e.detach(t),u=!1,c()}}}function Ye(a){let t,n=a[126].slice(-2)+"",l,s;return{c(){t=e.element("option"),l=e.text(n),t.__value=s=a[126],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[126].slice(-2)+"")&&e.set_data(l,n),r[1]&16384&&s!==(s=i[126])&&(t.__value=s,e.set_input_value(t,t.__value))},d(i){i&&e.detach(t)}}}function qe(a){let t,n,l=a[123].label+"",s,i,r,m,d;function p(){return a[95](a[123])}return{c(){var u,c;t=e.element("li"),n=e.element("button"),s=e.text(l),i=e.space(),e.attr(t,"class",r="ItemSecondary "+(((u=a[38])==null?void 0:u.toString().indexOf("$"))>-1?((c=a[38])==null?void 0:c.split("$").pop())==a[123].id.split("$").pop()?"active":"":a[38]==a[123].id?"active":""))},m(u,c){e.insert(u,t,c),e.append(t,n),e.append(n,s),e.append(t,i),m||(d=e.listen(n,"click",p),m=!0)},p(u,c){var _,h;a=u,c[1]&256&&l!==(l=a[123].label+"")&&e.set_data(s,l),c[1]&384&&r!==(r="ItemSecondary "+(((_=a[38])==null?void 0:_.toString().indexOf("$"))>-1?((h=a[38])==null?void 0:h.split("$").pop())==a[123].id.split("$").pop()?"active":"":a[38]==a[123].id?"active":""))&&e.attr(t,"class",r)},d(u){u&&e.detach(t),m=!1,d()}}}function ta(a){let t,n,l,s,i,r,m,d,p,u,c,_,h,w,H,E=a[49]("deposit")+"",R,b,k,M,O,L,C,f,y,D,F=!a[36]&&Je(a),g=a[34]==="true"&&!a[43]&&Qe(a),A=a[47]&&Ve(a),I=a[45].length>1&&Xe(a),Z=e.ensure_array_like(a[39]),z=[];for(let v=0;v<Z.length;v+=1)z[v]=et(We(a,Z,v));return{c(){t=e.element("header"),n=e.element("div"),l=e.element("div"),s=e.element("img"),r=e.space(),m=e.element("nav"),F&&F.c(),d=e.space(),g&&g.c(),p=e.space(),u=e.element("div"),c=e.element("div"),_=e.element("player-account-balance-modal"),h=e.space(),w=e.element("div"),H=e.element("div"),R=e.text(E),b=e.space(),A&&A.c(),k=e.space(),M=e.element("div"),M.innerHTML=`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16.429" viewBox="0 0 15 16.429"><defs><style>.a {
|
@@ -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-BQDz9va7.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-BDgqhRm2.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
@@ -1 +1 @@
|
|
1
|
-
"use strict";var f=(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 f=(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-D1DTp5qp.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 u=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)})}),v=(i,n)=>{const t=n;return h[t!==void 0&&t in h?t:w][i]};function p(i,n){if(i){const t=document.createElement("style");t.innerHTML=n,i.appendChild(t)}}function g(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 m(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,y=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,u(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(i,n){i!=n&&p(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(i,n){i!=n&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return f(this,null,function*(){if(this.translationUrl.length>2&&(yield u(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?m(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()}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):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"]}}};y.style=C;exports.GamificationDropdown=y;exports.setClientStyling=p;exports.setClientStylingURL=g;exports.setStreamStyling=m;
|
@@ -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-CsvLx63r.js";
|
18
18
|
const w = "en";
|
19
19
|
let h = {
|
20
20
|
en: {
|
@@ -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-CsvLx63r.js";
|
18
18
|
import { g as c } from "./app-globals-0f993ce5-B6nNHmA4.js";
|
19
19
|
var u = () => {
|
20
20
|
const n = import.meta.url, a = {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var p=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(p,c);l((t=t.apply(n,a)).next())});const g=require("./index-71b1bdfa-
|
1
|
+
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var p=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(p,c);l((t=t.apply(n,a)).next())});const g=require("./index-71b1bdfa-D1DTp5qp.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-CtAAMBL8.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),g.promiseResolve(a)};u().then(n=>s(exports,null,function*(){return yield y.globalScripts(),g.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"],mbSource:[1,"mb-source"],translationUrl:[1,"translation-url"],targetTranslations:[16]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]],["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"],mbSource:[513,"mb-source"],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],mbSource:[513,"mb-source"],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],mbSource:[513,"mb-source"],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)}));
|
package/stencil/{gamification-dropdown_4-BCIlNfU2.cjs → gamification-dropdown_4-CSSqKMgX.cjs}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var x=(e,t,a)=>new Promise((n,l)=>{var r=c=>{try{
|
1
|
+
"use strict";var x=(e,t,a)=>new Promise((n,l)=>{var r=c=>{try{o(a.next(c))}catch(h){l(h)}},d=c=>{try{o(a.throw(c))}catch(h){l(h)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(r,d);o((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./gamification-dropdown-343647b2-DwTk5rRU.cjs"),i=require("./index-71b1bdfa-D1DTp5qp.cjs"),u=require("./locale-B_6Rn5-v.cjs"),s=require("./player-elevate-card-items-08c6fbd8-CfgH9Fd6.cjs"),O=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]||Object.assign({},t.en),Object.keys(n[l]).forEach(r=>{if(!t.en[r])return;const d=t.en[r];typeof n[l][r]=="object"?(t[l][r]=t[l][r]||Object.assign({},d),Object.keys(n[l][r]).forEach(o=>{t[l][r][o]=n[l][r][o]})):t[l][r]=n[l][r]||d})}),a(!0)}).catch(n=>{console.error("Failed to load translations:",n),a(!1)})}),R=":host{display:block}",M=R,E=class{constructor(e){i.registerInstance(this,e),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(window.emMessageBus!=null?p.setStreamStyling(this.el,`${this.mbSource}.Style`):(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&p.setClientStyling(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0)}componentWillLoad(){return x(this,null,function*(){const e=[];if(this.translationUrl){const t=O(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return i.h("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},i.h("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return i.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};E.style=M;function m(e){s.requiredArgs(1,arguments);var t=s.toDate(e);return t.setHours(0,0,0,0),t}var $=864e5;function U(e,t){s.requiredArgs(2,arguments);var a=m(e),n=m(t),l=a.getTime()-s.getTimezoneOffsetInMilliseconds(a),r=n.getTime()-s.getTimezoneOffsetInMilliseconds(n);return Math.round((l-r)/$)}var N=6e4,q=36e5;function w(e,t){return s.requiredArgs(2,arguments),s.toDate(e).getTime()-s.toDate(t).getTime()}var L={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W="trunc";function I(e){return e?L[e]:L[W]}function z(e,t,a){s.requiredArgs(2,arguments);var n=w(e,t)/q;return I(a==null?void 0:a.roundingMethod)(n)}function j(e,t,a){s.requiredArgs(2,arguments);var n=w(e,t)/N;return I(a==null?void 0:a.roundingMethod)(n)}function F(e,t){s.requiredArgs(2,arguments);var a=s.toDate(e),n=s.toDate(t);return a.getTime()<n.getTime()}function H(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,r=a.getBBox().width,d=t>1?1:t,o=d*r-n<0?0:d*r-n,c=e.querySelector("#current_level"),h=e.querySelector("#filter_current_level"),g=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${o} 28`),c.setAttribute("width",`${o}`),g.setAttribute("cx",`${o<l?l:o}`),h.setAttribute("x",`${o-8}`);const y=e.querySelector("#lock"),C=e.querySelector("#filter_heart_ball"),k=e.querySelector("#filter_ball"),T=e.querySelector("#filter_heart"),A=e.querySelector("#filter_lock"),f=e.querySelector("#paint0_linear_ball"),b=e.querySelector("#paint1_linear_lock"),D=e.querySelector("#lock_box"),_=e.querySelector("#heart_box"),B=10,v=r-B;y.setAttribute("cx",`${v}`),b.setAttribute("x1",`${v}`),b.setAttribute("x2",`${v}`),f.setAttribute("x1",`${v-6}`),f.setAttribute("x2",`${v-6+11.2}`),A.setAttribute("x",`${v-6}`),T.setAttribute("x",`${v-6-2}`),k.setAttribute("x",`${v-6-2-2}`),C.setAttribute("x",`${v-6-2-2-4}`),D.setAttribute("x",`${v-6}`),_.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const G=`:host {
|
2
2
|
display: block;
|
3
3
|
width: 360px;
|
4
4
|
height: 230px;
|
@@ -189,4 +189,4 @@
|
|
189
189
|
text-align: right;
|
190
190
|
font-weight: bold;
|
191
191
|
color: var(--emw--color-red, #9e595f);
|
192
|
-
}`,X=G,S=class{constructor(e){i.registerInstance(this,e),this.playerElevateLeveLoaded=i.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>
|
192
|
+
}`,X=G,S=class{constructor(e){i.registerInstance(this,e),this.playerElevateLeveLoaded=i.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>F(new Date(c.expireTime),new Date(h.expireTime))?-1:1);const n=e.aboutToExpire[0],l=U(new Date(n.expireTime),new Date);let r=0,d=0,o=l===0?`${t}Day`:t;return l<=0&&(r=z(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=r>1?`${t}Hours`:`${t}Hour`,r<=0&&(d=j(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=d>1?`${t}Minutes`:`${t}Minute`)),a=u.translateWithParams(o,{expirationPoints:n.points,expireDay:Math.max(l,r,d),lang:this.params.language}),a}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{var l,r,d;if(!n.success){console.error("Exception when fetch user elevateinfo, ",n.errorCode,n.errorMessage),a(!0);return}let o=n.data;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});const c=(r=n.data.spendableWallet)===null||r===void 0?void 0:r.total,h=(d=n.data.loyaltyWallet)===null||d===void 0?void 0:d.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:c,loyaltyWalletTotal:h});let g=this.calcuatePointsToBeExpired(c,"coinsToBeExpired"),y=this.calcuatePointsToBeExpired(h,"pointsToBeExpired");(g||y)&&this.playerElevateLeveLoaded.emit({pointExpireString:g,xpExpireString:y}),t(this.playerElevateLevel)}).catch(n=>{console.log("error ",n),a(!0)}))}setLoyaltyProgress(e){H(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout(()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)},80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then(t=>{if(console.log("elevate-init",t),this.initLevelProgressbar(),!this.levels)return;this.levels.sort((l,r)=>l.firstEntryPoints>r.firstEntryPoints?1:-1);const a=this.playerElevateLevel.loyaltyPoints;let n=0;this.levels.forEach((l,r)=>{a>l.firstEntryPoints&&(n=r)}),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})})}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return i.getElement(this)}static get watchers(){return{params:["onParamsChanged"]}}};S.style=X;const Y=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@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:0px}.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}",J=Y,P=class{constructor(e){i.registerInstance(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}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return!((e=this.playerElevateLevel)===null||e===void 0)&&e.nextLevel?(t=this.playerElevateLevel)===null||t===void 0?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=(e=this.playerElevateLevel)===null||e===void 0?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const a=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return u.translateWithParams("tipsForNextLevel",{pointsToReach:a,levelName:t.name,lang:this.language})}return""}render(){const e=i.getAssetPath("../static/card-ground.svg"),t=i.getAssetPath("../static/card-ground-over.svg");return i.h("div",{key:"aa8f0d13a1e1d26ea7307d05fc50cda507172949",class:`ElevateCardWrapper ${this.theme}`},i.h("div",{key:"485075740ced316bf89f69359bdc8642dbb2af8f",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},i.h("general-styling-wrapper",{key:"3648821972ac115a1c33705463cdc2cdb427a95b",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:u.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),i.h("player-elevate-card-data",{key:"7b36c46a869bd4b014d1f04dbb718445b23ec964",params:this.paramProxy}),i.h("div",{key:"f4e5aa453459f693e07c166028aec9b0b696c907",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},i.h("div",{key:"d5f1894120cba3e7cf3c54b838a025f469bc445e",class:"Content Row"},this.playerElevateLevel&&i.h(i.Fragment,{key:"112ee04598b23dda6911f043101c0c1631454d7f"},i.h("div",{key:"7af4b6e937bbe73cc00aae0f27f8c93da47bb626",class:"PlayerImg"},i.h(s.PlayerAvatar,{key:"1b5037bfa196063f56cccd947c988a3aca0781b0",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),i.h("div",{key:"7b714e446f4e01edd4f4aefcc035d070b7d6a47b",class:`LevelInfo ${this.playerElevateLevel.name}`},i.h("div",{key:"37ad8ce5dae374685e74f6772d28e79d251932e3",class:"CardCell ElevateLevel"},i.h("span",{key:"2d9dcf4b08fcecc927d3e8bdca74c75ff4336480",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),i.h("div",{key:"cc89cbaa70d9583b9626da15e98f9fd61d82f81f",class:"PointsRange"},i.h(s.PlayerPoints,{key:"32de4cac05a4fd5610af857b25e096a7cb9ba34d",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),i.h(s.PlayerPoints,{key:"298f492c8991384547c31396fc930b5c21f41501",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),i.h(s.PlayerLoyaltyProcess,{key:"aca4f5642c41db1c4b7fa04411331a5c25c655dd"}),i.h("div",{key:"d841c5df319de105376c6eee24bc685757916aae",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&i.h("div",{key:"774279829f3f52ee5696550a855a833b39df8c81",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&i.h(s.LoyaltyLevelExpireDay,{key:"3a4319e502e85b26cb220942492b161ad842be82",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};P.style=J;exports.gamification_dropdown=p.GamificationDropdown;exports.general_styling_wrapper=E;exports.player_elevate_card_data=S;exports.player_elevate_loyaltycard=P;
|
@@ -14,18 +14,21 @@ var L = (e, t, a) => new Promise((n, l) => {
|
|
14
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 { s as N, a as u, b as f } from "./gamification-dropdown-343647b2-
|
18
|
-
import { G as fe } from "./gamification-dropdown-343647b2-
|
19
|
-
import { r as x, h as i, g as C, c as U, a as E, F as W } from "./index-71b1bdfa-
|
17
|
+
import { s as N, a as u, b as f } from "./gamification-dropdown-343647b2-Ygf9wlk1.js";
|
18
|
+
import { G as fe } from "./gamification-dropdown-343647b2-Ygf9wlk1.js";
|
19
|
+
import { r as x, h as i, g as C, c as U, a as E, F as W } from "./index-71b1bdfa-CsvLx63r.js";
|
20
20
|
import { t as k, T as z } from "./locale-TxlOHoKi.js";
|
21
|
-
import { P as q, a as w, b as F, L as j, r as p, t as h, g as I } from "./player-elevate-card-items-08c6fbd8-
|
21
|
+
import { P as q, a as w, b as F, L as j, r as p, t as h, g as I } from "./player-elevate-card-items-08c6fbd8-DjORuh1x.js";
|
22
22
|
const H = (e, t) => new Promise((a) => {
|
23
23
|
fetch(e).then((n) => n.json()).then((n) => {
|
24
24
|
Object.keys(n).forEach((l) => {
|
25
|
-
t[l] = t[l] || t.en, Object.keys(n[l]).forEach((r) => {
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
t[l] = t[l] || Object.assign({}, t.en), Object.keys(n[l]).forEach((r) => {
|
26
|
+
if (!t.en[r])
|
27
|
+
return;
|
28
|
+
const s = t.en[r];
|
29
|
+
typeof n[l][r] == "object" ? (t[l][r] = t[l][r] || Object.assign({}, s), Object.keys(n[l][r]).forEach((o) => {
|
30
|
+
t[l][r][o] = n[l][r][o];
|
31
|
+
})) : t[l][r] = n[l][r] || s;
|
29
32
|
});
|
30
33
|
}), a(!0);
|
31
34
|
}).catch((n) => {
|
@@ -119,8 +122,8 @@ function ne(e, t) {
|
|
119
122
|
function ae(e, t) {
|
120
123
|
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");
|
121
124
|
a.setAttribute("viewbox", `0 0 ${o} 28`), d.setAttribute("width", `${o}`), g.setAttribute("cx", `${o < l ? l : o}`), v.setAttribute("x", `${o - 8}`);
|
122
|
-
const y = e.querySelector("#lock"), D = e.querySelector("#filter_heart_ball"), _ = e.querySelector("#filter_ball"), B = e.querySelector("#filter_heart"),
|
123
|
-
y.setAttribute("cx", `${c}`), m.setAttribute("x1", `${c}`), m.setAttribute("x2", `${c}`), b.setAttribute("x1", `${c - 6}`), b.setAttribute("x2", `${c - 6 + 11.2}`),
|
125
|
+
const y = e.querySelector("#lock"), D = e.querySelector("#filter_heart_ball"), _ = e.querySelector("#filter_ball"), B = e.querySelector("#filter_heart"), O = e.querySelector("#filter_lock"), b = e.querySelector("#paint0_linear_ball"), m = e.querySelector("#paint1_linear_lock"), $ = e.querySelector("#lock_box"), R = e.querySelector("#heart_box"), M = 10, c = r - M;
|
126
|
+
y.setAttribute("cx", `${c}`), m.setAttribute("x1", `${c}`), m.setAttribute("x2", `${c}`), b.setAttribute("x1", `${c - 6}`), b.setAttribute("x2", `${c - 6 + 11.2}`), O.setAttribute("x", `${c - 6}`), B.setAttribute("x", `${c - 6 - 2}`), _.setAttribute("x", `${c - 6 - 2 - 2}`), D.setAttribute("x", `${c - 6 - 2 - 2 - 4}`), $.setAttribute("x", `${c - 6}`), R.setAttribute("x", `${c - 6}`), a.parentElement.style.opacity = "1";
|
124
127
|
}
|
125
128
|
const le = `:host {
|
126
129
|
display: block;
|
@@ -1,15 +1,18 @@
|
|
1
|
-
import { s as
|
2
|
-
import { G as ye } from "./gamification-dropdown-343647b2-
|
3
|
-
import { r as x, h as i, g as S, c as N, a as L, F as U } from "./index-71b1bdfa-
|
1
|
+
import { s as M, a as u, b as f } from "./gamification-dropdown-343647b2-Bds2TLN7.js";
|
2
|
+
import { G as ye } from "./gamification-dropdown-343647b2-Bds2TLN7.js";
|
3
|
+
import { r as x, h as i, g as S, c as N, a as L, F as U } from "./index-71b1bdfa-_pPD5FBH.js";
|
4
4
|
import { t as C, T as W } from "./locale-TxlOHoKi.js";
|
5
|
-
import { P as z, a as E, b as q, L as F, r as p, t as h, g as w } from "./player-elevate-card-items-08c6fbd8-
|
5
|
+
import { P as z, a as E, b as q, L as F, r as p, t as h, g as w } from "./player-elevate-card-items-08c6fbd8-BbWvVixN.js";
|
6
6
|
const j = (e, t) => new Promise((a) => {
|
7
7
|
fetch(e).then((n) => n.json()).then((n) => {
|
8
8
|
Object.keys(n).forEach((r) => {
|
9
|
-
t[r] = t[r] || t.en, Object.keys(n[r]).forEach((l) => {
|
10
|
-
|
9
|
+
t[r] = t[r] || Object.assign({}, t.en), Object.keys(n[r]).forEach((l) => {
|
10
|
+
if (!t.en[l])
|
11
|
+
return;
|
12
|
+
const s = t.en[l];
|
13
|
+
typeof n[r][l] == "object" ? (t[r][l] = t[r][l] || Object.assign({}, s), Object.keys(n[r][l]).forEach((o) => {
|
11
14
|
t[r][l][o] = n[r][l][o];
|
12
|
-
}) : t[r][l] = n[r][l]
|
15
|
+
})) : t[r][l] = n[r][l] || s;
|
13
16
|
});
|
14
17
|
}), a(!0);
|
15
18
|
}).catch((n) => {
|
@@ -20,7 +23,7 @@ const j = (e, t) => new Promise((a) => {
|
|
20
23
|
x(this, e), this.stylingAppends = !1, this.clientStyling = "", this.clientStylingUrl = "", this.mbSource = void 0, this.translationUrl = "", this.targetTranslations = void 0;
|
21
24
|
}
|
22
25
|
componentDidLoad() {
|
23
|
-
this.el && (window.emMessageBus != null ?
|
26
|
+
this.el && (window.emMessageBus != null ? M(this.el, `${this.mbSource}.Style`) : (this.clientStyling && u(this.el, this.clientStyling), this.clientStylingUrl && f(this.el, this.clientStylingUrl), this.stylingAppends = !0));
|
24
27
|
}
|
25
28
|
disconnectedCallback() {
|
26
29
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
@@ -99,10 +102,10 @@ function te(e, t) {
|
|
99
102
|
return a.getTime() < n.getTime();
|
100
103
|
}
|
101
104
|
function ne(e, t) {
|
102
|
-
const a = e.querySelector("#total_level"), n = 17, r = 6.5, l = a.getBBox().width,
|
103
|
-
a.setAttribute("viewbox", `0 0 ${
|
104
|
-
const y = e.querySelector("#lock"), A = e.querySelector("#filter_heart_ball"), D = e.querySelector("#filter_ball"), _ = e.querySelector("#filter_heart"), B = e.querySelector("#filter_lock"), b = e.querySelector("#paint0_linear_ball"), m = e.querySelector("#paint1_linear_lock"),
|
105
|
-
y.setAttribute("cx", `${d}`), m.setAttribute("x1", `${d}`), m.setAttribute("x2", `${d}`), b.setAttribute("x1", `${d - 6}`), b.setAttribute("x2", `${d - 6 + 11.2}`), B.setAttribute("x", `${d - 6}`), _.setAttribute("x", `${d - 6 - 2}`), D.setAttribute("x", `${d - 6 - 2 - 2}`), A.setAttribute("x", `${d - 6 - 2 - 2 - 4}`),
|
105
|
+
const a = e.querySelector("#total_level"), n = 17, r = 6.5, l = a.getBBox().width, s = t > 1 ? 1 : t, o = s * l - n < 0 ? 0 : s * l - n, c = e.querySelector("#current_level"), v = e.querySelector("#filter_current_level"), g = e.querySelector("#circle_current_level");
|
106
|
+
a.setAttribute("viewbox", `0 0 ${o} 28`), c.setAttribute("width", `${o}`), g.setAttribute("cx", `${o < r ? r : o}`), v.setAttribute("x", `${o - 8}`);
|
107
|
+
const y = e.querySelector("#lock"), A = e.querySelector("#filter_heart_ball"), D = e.querySelector("#filter_ball"), _ = e.querySelector("#filter_heart"), B = e.querySelector("#filter_lock"), b = e.querySelector("#paint0_linear_ball"), m = e.querySelector("#paint1_linear_lock"), O = e.querySelector("#lock_box"), $ = e.querySelector("#heart_box"), R = 10, d = l - R;
|
108
|
+
y.setAttribute("cx", `${d}`), m.setAttribute("x1", `${d}`), m.setAttribute("x2", `${d}`), b.setAttribute("x1", `${d - 6}`), b.setAttribute("x2", `${d - 6 + 11.2}`), B.setAttribute("x", `${d - 6}`), _.setAttribute("x", `${d - 6 - 2}`), D.setAttribute("x", `${d - 6 - 2 - 2}`), A.setAttribute("x", `${d - 6 - 2 - 2 - 4}`), O.setAttribute("x", `${d - 6}`), $.setAttribute("x", `${d - 6}`), a.parentElement.style.opacity = "1";
|
106
109
|
}
|
107
110
|
const ae = `:host {
|
108
111
|
display: block;
|
@@ -327,10 +330,10 @@ const ae = `:host {
|
|
327
330
|
return a;
|
328
331
|
e.aboutToExpire.sort((c, v) => te(new Date(c.expireTime), new Date(v.expireTime)) ? -1 : 1);
|
329
332
|
const n = e.aboutToExpire[0], r = J(new Date(n.expireTime), /* @__PURE__ */ new Date());
|
330
|
-
let l = 0,
|
331
|
-
return r <= 0 && (l = Z(new Date(n.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }),
|
333
|
+
let l = 0, s = 0, o = r === 0 ? `${t}Day` : t;
|
334
|
+
return r <= 0 && (l = Z(new Date(n.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), o = l > 1 ? `${t}Hours` : `${t}Hour`, l <= 0 && (s = ee(new Date(n.expireTime), /* @__PURE__ */ new Date(), { roundingMethod: "floor" }), o = s > 1 ? `${t}Minutes` : `${t}Minute`)), a = C(o, {
|
332
335
|
expirationPoints: n.points,
|
333
|
-
expireDay: Math.max(r, l,
|
336
|
+
expireDay: Math.max(r, l, s),
|
334
337
|
lang: this.params.language
|
335
338
|
}), a;
|
336
339
|
}
|
@@ -343,14 +346,14 @@ const ae = `:host {
|
|
343
346
|
"Content-Type": "application/json"
|
344
347
|
}
|
345
348
|
}).then((n) => n.json()).then((n) => {
|
346
|
-
var r, l,
|
349
|
+
var r, l, s;
|
347
350
|
if (!n.success) {
|
348
351
|
console.error("Exception when fetch user elevateinfo, ", n.errorCode, n.errorMessage), a(!0);
|
349
352
|
return;
|
350
353
|
}
|
351
|
-
let
|
352
|
-
this.playerElevateLevel =
|
353
|
-
const c = (l = n.data.spendableWallet) === null || l === void 0 ? void 0 : l.total, v = (
|
354
|
+
let o = n.data;
|
355
|
+
this.playerElevateLevel = o.level, this.playerElevateLevel.name = this.playerElevateLevel.presentation.displayName || this.playerElevateLevel.name, this.playerElevateLevel.spendablePoints = ((r = o.spendableWallet) === null || r === void 0 ? void 0 : r.total.points) || 0, this.playerElevateLeveLoaded.emit({ elevateLevel: this.playerElevateLevel });
|
356
|
+
const c = (l = n.data.spendableWallet) === null || l === void 0 ? void 0 : l.total, v = (s = n.data.loyaltyWallet) === null || s === void 0 ? void 0 : s.total;
|
354
357
|
this.playerElevateLeveLoaded.emit({
|
355
358
|
elevateLevelWalletTotal: c,
|
356
359
|
loyaltyWalletTotal: v
|
@@ -53,22 +53,22 @@ var He = Object.defineProperty, qe = (e, t) => {
|
|
53
53
|
case "gamification-dropdown_4":
|
54
54
|
return import(
|
55
55
|
/* webpackMode: "lazy" */
|
56
|
-
"./gamification-dropdown_4-
|
56
|
+
"./gamification-dropdown_4-CZ473RmE.js"
|
57
57
|
).then(o, b);
|
58
58
|
case "player-elevate-card":
|
59
59
|
return import(
|
60
60
|
/* webpackMode: "lazy" */
|
61
|
-
"./player-elevate-card-
|
61
|
+
"./player-elevate-card-BzOMRM7h.js"
|
62
62
|
).then(o, b);
|
63
63
|
case "player-elevate-pointcard":
|
64
64
|
return import(
|
65
65
|
/* webpackMode: "lazy" */
|
66
|
-
"./player-elevate-pointcard-
|
66
|
+
"./player-elevate-pointcard-DpAG2GwO.js"
|
67
67
|
).then(o, b);
|
68
68
|
case "player-rakeback-card":
|
69
69
|
return import(
|
70
70
|
/* webpackMode: "lazy" */
|
71
|
-
"./player-rakeback-card-
|
71
|
+
"./player-rakeback-card-Dw8NVtO5.js"
|
72
72
|
).then(o, b);
|
73
73
|
}
|
74
74
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var Ue=Object.defineProperty;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var te=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,se=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&te(e,s,t[s]);if(ee)for(var s of ee(t))qe.call(t,s)&&te(e,s,t[s]);return e};var R=(e,t,s)=>new Promise((n,r)=>{var l=a=>{try{o(s.next(a))}catch(c){r(c)}},i=a=>{try{o(s.throw(a))}catch(c){r(c)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,i);o((s=s.apply(e,t)).next())});const He="gamification-dropdown",G={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",slotRelocation:!0};var ze=Object.defineProperty,Be=(e,t)=>{for(var s in t)ze(e,s,{get:t[s],enumerable:!0})},X=new WeakMap,w=e=>X.get(e),Fe=(e,t)=>X.set(t.$lazyInstance$=e,t),De=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(n=>s.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[],X.set(e,s)},ne=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),B=new Map,Me=(e,t,s)=>{const n=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const l=B.get(r);if(l)return l[n];{const i=o=>(B.set(r,o),o[n]);switch(r){case"gamification-dropdown_4":return Promise.resolve().then(()=>require("./gamification-dropdown_4-BCIlNfU2.cjs")).then(i,b);case"player-elevate-card":return Promise.resolve().then(()=>require("./player-elevate-card-CkeeX0Fc.cjs")).then(i,b);case"player-elevate-pointcard":return Promise.resolve().then(()=>require("./player-elevate-pointcard-D962b07c.cjs")).then(i,b);case"player-rakeback-card":return Promise.resolve().then(()=>require("./player-rakeback-card-DI8fIhnW.cjs")).then(i,b)}}return import(`./${r}.entry.js`).then(i=>(B.set(r,i),i[n]),b)},I=new Map,We="{visibility:hidden}.hydrated{visibility:inherit}",ve="slot-fb{display:contents}slot-fb[hidden]{display:none}",_=typeof window!="undefined"?window:{},m=_.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},Ge=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),he=e=>Promise.resolve(e),Xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),F=!1,re=[],ge=[],Ye=(e,t)=>s=>{e.push(s),F||(F=!0,p.$flags$&4?Y(D):p.raf(D))},le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){b(s)}e.length=0},D=()=>{le(re),le(ge),(F=re.length>0)&&p.raf(D)},Y=e=>he().then(e),Je=Ye(ge),Ke=e=>{const t=new URL(e,p.$resourcesUrl$);return t.origin!==_.location.origin?t.href:t.pathname},ae={},Qe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Ve=e=>e!=null,J=e=>(e=typeof e,e==="object"||e==="function");function pe(e){var t,s,n;return(n=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?n:void 0}var et={};Be(et,{err:()=>ye,map:()=>tt,ok:()=>M,unwrap:()=>st,unwrapErr:()=>nt});var M=e=>({isOk:!0,isErr:!1,value:e}),ye=e=>({isOk:!1,isErr:!0,value:e});function tt(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(n=>M(n)):M(s)}if(e.isErr){const s=e.value;return ye(s)}throw"should never get here"}var st=e=>{if(e.isOk)return e.value;throw e.value},nt=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t="")=>()=>{},rt=(e,t)=>()=>{},K=(e,t,...s)=>{let n=null,r=null,l=null,i=!1,o=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((i=typeof e!="function"&&!J(n))&&(n=String(n)),i&&o?a[a.length-1].$text$+=n:a.push(i?U(null,n):n),o=i)};if(c(s),t){t.key&&(r=t.key),t.name&&(l=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,it);const $=U(e,null);return $.$attrs$=t,a.length>0&&($.$children$=a),$.$key$=r,$.$name$=l,$},U=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},lt={},at=e=>e&&e.$tag$===lt,it={forEach:(e,t)=>e.map(ie).forEach(t),map:(e,t)=>e.map(ie).map(t).map(ot)},ie=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ot=e=>{if(typeof e.vtag=="function"){const s=se({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),K(e.vtag,s,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},$t=(e,t)=>e!=null&&!J(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,me=e=>w(e).$hostElement$,ct=(e,t,s)=>{const n=me(e);return{emit:r=>Se(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Se=(e,t,s)=>{const n=p.ce(t,s);return e.dispatchEvent(n),n},oe=new WeakMap,ft=(e,t,s)=>{let n=I.get(e);Xe&&s?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,I.set(e,n)},dt=(e,t,s)=>{var n;const r=be(t),l=I.get(r);if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let i=oe.get(e),o;if(i||oe.set(e,i=new Set),!i.has(r)){{o=m.createElement("style"),o.innerHTML=l;const a=(n=p.$nonce$)!=null?n:pe(m);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ve),i&&i.add(r)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return r},ut=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,r=T("attachStyles",t.$tagName$),l=dt(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);n&10&&(s["s-sc"]=l,s.classList.add(l+"-h")),r()},be=(e,t)=>"sc-"+e.$tagName$,$e=(e,t,s,n,r,l)=>{if(s!==n){let i=ne(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,c=ce(s),$=ce(n);a.remove(...c.filter(d=>d&&!$.includes(d))),a.add(...$.filter(d=>d&&!c.includes(d)))}else if(t==="style"){for(const a in s)(!n||n[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in n)(!s||n[a]!==s[a])&&(a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):ne(_,o)?t=o.slice(2):t=o[2]+t.slice(3),s||n){const a=t.endsWith(ke);t=t.replace(ht,""),s&&p.rel(e,t,s,a),n&&p.ael(e,t,n,a)}}else{const a=J(n);if((i||a&&n!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=n;else{const c=n==null?"":n;t==="list"?i=!1:(s==null||e[t]!=c)&&(e[t]=c)}}catch(c){}n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!i||l&4||r)&&!a&&(n=n===!0?"":n,e.setAttribute(t,n))}}},vt=/\s/,ce=e=>e?e.split(vt):[],ke="Capture",ht=new RegExp(ke+"$"),Ee=(e,t,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||ae,l=t.$attrs$||ae;for(const i of fe(Object.keys(r)))i in l||$e(n,i,r[i],void 0,s,t.$flags$);for(const i of fe(Object.keys(l)))$e(n,i,r[i],l[i],s,t.$flags$)};function fe(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var x,W,z,C=!1,q=!1,Q=!1,S=!1,H=(e,t,s,n)=>{var r;const l=t.$children$[s];let i=0,o,a,c;if(C||(Q=!0,l.$tag$==="slot"&&(x&&n.classList.add(x+"-s"),l.$flags$|=l.$children$?2:1)),l.$text$!==null)o=l.$elm$=m.createTextNode(l.$text$);else if(l.$flags$&1)o=l.$elm$=m.createTextNode("");else{if(S||(S=l.$tag$==="svg"),o=l.$elm$=m.createElementNS(S?Qe:Ze,!C&&G.slotRelocation&&l.$flags$&2?"slot-fb":l.$tag$),S&&l.$tag$==="foreignObject"&&(S=!1),Ee(null,l,S),Ve(x)&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.$children$)for(i=0;i<l.$children$.length;++i)a=H(e,l,i,o),a&&o.appendChild(a);l.$tag$==="svg"?S=!1:o.tagName==="foreignObject"&&(S=!0)}return o["s-hn"]=z,l.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=W,o["s-sn"]=l.$name$||"",o["s-rf"]=(r=l.$attrs$)==null?void 0:r.ref,c=e&&e.$children$&&e.$children$[s],c&&c.$tag$===l.$tag$&&e.$elm$&&A(e.$elm$,!1)),o},A=(e,t)=>{p.$flags$|=1;const s=Array.from(e.childNodes);e["s-sr"]&&G.experimentalSlotFixes;for(let n=s.length-1;n>=0;n--){const r=s[n];r["s-hn"]!==z&&r["s-ol"]&&(L(we(r),r,Z(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Q=!0),t&&A(r,t)}p.$flags$&=-2},Te=(e,t,s,n,r,l)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e,o;for(i.shadowRoot&&i.tagName===z&&(i=i.shadowRoot);r<=l;++r)n[r]&&(o=H(null,s,r,e),o&&(n[r].$elm$=o,L(i,o,Z(t))))},Le=(e,t,s)=>{for(let n=t;n<=s;++n){const r=e[n];if(r){const l=r.$elm$;_e(r),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():A(l,!0),l.remove())}}},gt=(e,t,s,n,r=!1)=>{let l=0,i=0,o=0,a=0,c=t.length-1,$=t[0],d=t[c],f=n.length-1,u=n[0],h=n[f],g,y;for(;l<=c&&i<=f;)if($==null)$=t[++l];else if(d==null)d=t[--c];else if(u==null)u=n[++i];else if(h==null)h=n[--f];else if(N($,u,r))P($,u,r),$=t[++l],u=n[++i];else if(N(d,h,r))P(d,h,r),d=t[--c],h=n[--f];else if(N($,h,r))($.$tag$==="slot"||h.$tag$==="slot")&&A($.$elm$.parentNode,!1),P($,h,r),L(e,$.$elm$,d.$elm$.nextSibling),$=t[++l],h=n[--f];else if(N(d,u,r))($.$tag$==="slot"||h.$tag$==="slot")&&A(d.$elm$.parentNode,!1),P(d,u,r),L(e,d.$elm$,$.$elm$),d=t[--c],u=n[++i];else{for(o=-1,a=l;a<=c;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(y=t[o],y.$tag$!==u.$tag$?g=H(t&&t[i],s,o,e):(P(y,u,r),t[o]=void 0,g=y.$elm$),u=n[++i]):(g=H(t&&t[i],s,i,e),u=n[++i]),g&&L(we($.$elm$),g,Z($.$elm$))}l>c?Te(e,n[f+1]==null?null:n[f+1].$elm$,s,n,i,f):i>f&&Le(t,l,c)},N=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,Z=e=>e&&e["s-ol"]||e,we=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t,s=!1)=>{const n=t.$elm$=e.$elm$,r=e.$children$,l=t.$children$,i=t.$tag$,o=t.$text$;let a;o===null?(S=i==="svg"?!0:i==="foreignObject"?!1:S,i==="slot"&&!C||Ee(e,t,S),r!==null&&l!==null?gt(n,r,t,l,s):l!==null?(e.$text$!==null&&(n.textContent=""),Te(n,null,t,l,0,l.length-1)):r!==null&&Le(r,0,r.length-1),S&&i==="svg"&&(S=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},xe=e=>{const t=e.childNodes;for(const s of t)if(s.nodeType===1){if(s["s-sr"]){const n=s["s-sn"];s.hidden=!1;for(const r of t)if(r!==s){if(r["s-hn"]!==s["s-hn"]||n!==""){if(r.nodeType===1&&(n===r.getAttribute("slot")||n===r["s-sn"])||r.nodeType===3&&n===r["s-sn"]){s.hidden=!0;break}}else if(r.nodeType===1||r.nodeType===3&&r.textContent.trim()!==""){s.hidden=!0;break}}}xe(s)}},E=[],Pe=e=>{let t,s,n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const l=r["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"])if(de(t,l)){let i=E.find(o=>o.$nodeToRelocate$===t);q=!0,t["s-sn"]=t["s-sn"]||l,i?(i.$nodeToRelocate$["s-sh"]=r["s-hn"],i.$slotRefNode$=r):(t["s-sh"]=r["s-hn"],E.push({$slotRefNode$:r,$nodeToRelocate$:t})),t["s-sr"]&&E.map(o=>{de(o.$nodeToRelocate$,t["s-sn"])&&(i=E.find(a=>a.$nodeToRelocate$===t),i&&!o.$slotRefNode$&&(o.$slotRefNode$=i.$slotRefNode$))})}else E.some(i=>i.$nodeToRelocate$===t)||E.push({$nodeToRelocate$:t})}r.nodeType===1&&Pe(r)}},de=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",_e=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_e)},L=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),pt=(e,t,s=!1)=>{var n,r,l,i;const o=e.$hostElement$,a=e.$cmpMeta$,c=e.$vnode$||U(null,null),$=at(t)?t:K(null,null,t);if(z=o.tagName,a.$attrsToReflect$&&($.$attrs$=$.$attrs$||{},a.$attrsToReflect$.map(([d,f])=>$.$attrs$[f]=o[d])),s&&$.$attrs$)for(const d of Object.keys($.$attrs$))o.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&($.$attrs$[d]=o[d]);$.$tag$=null,$.$flags$|=4,e.$vnode$=$,$.$elm$=c.$elm$=o.shadowRoot||o,x=o["s-sc"],C=(a.$flags$&1)!==0,W=o["s-cr"],q=!1,P(c,$,s);{if(p.$flags$|=1,Q){Pe($.$elm$);for(const d of E){const f=d.$nodeToRelocate$;if(!f["s-ol"]){const u=m.createTextNode("");u["s-nr"]=f,L(f.parentNode,f["s-ol"]=u,f)}}for(const d of E){const f=d.$nodeToRelocate$,u=d.$slotRefNode$;if(u){const h=u.parentNode;let g=u.nextSibling;{let y=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;y;){let v=(r=y["s-nr"])!=null?r:null;if(v&&v["s-sn"]===f["s-sn"]&&h===v.parentNode){for(v=v.nextSibling;v===f||v!=null&&v["s-sr"];)v=v==null?void 0:v.nextSibling;if(!v||!v["s-nr"]){g=v;break}}y=y.previousSibling}}(!g&&h!==f.parentNode||f.nextSibling!==g)&&f!==g&&(!f["s-hn"]&&f["s-ol"]&&(f["s-hn"]=f["s-ol"].parentNode.nodeName),L(h,f,g),f.nodeType===1&&(f.hidden=(l=f["s-ih"])!=null?l:!1)),f&&typeof u["s-rf"]=="function"&&u["s-rf"](f)}else f.nodeType===1&&(s&&(f["s-ih"]=(i=f.hidden)!=null?i:!1),f.hidden=!0)}}q&&xe($.$elm$),p.$flags$&=-2,E.length=0}W=void 0},Ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},V=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ae(e,e.$ancestorComponent$),Je(()=>yt(e,t))},yt=(e,t)=>{const s=e.$hostElement$,n=T("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([i,o])=>O(r,i,o)),e.$queuedListeners$=void 0),l=O(r,"componentWillLoad")),n(),mt(l,()=>bt(e,r,t))},mt=(e,t)=>St(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),St=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",bt=(e,t,s)=>R(exports,null,function*(){var n;const r=e.$hostElement$,l=T("update",e.$cmpMeta$.$tagName$),i=r["s-rc"];s&&ut(e);const o=T("render",e.$cmpMeta$.$tagName$);kt(e,t,r,s),i&&(i.map(a=>a()),r["s-rc"]=void 0),o(),l();{const a=(n=r["s-p"])!=null?n:[],c=()=>Et(e);a.length===0?c():(Promise.all(a).then(c),e.$flags$|=4,a.length=0)}}),kt=(e,t,s,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,pt(e,t,n)}catch(r){b(r,e.$hostElement$)}return null},Et=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=T("postUpdate",t),r=e.$lazyInstance$,l=e.$ancestorComponent$;O(r,"componentDidRender"),e.$flags$&64?n():(e.$flags$|=64,je(s),O(r,"componentDidLoad"),n(),e.$onReadyResolve$(s),l||Oe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Y(()=>V(e,!1)),e.$flags$&=-517},Oe=e=>{je(m.documentElement),Y(()=>Se(_,"appload",{detail:{namespace:He}}))},O=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){b(n)}},je=e=>{var t;return e.classList.add((t=G.hydratedSelectorName)!=null?t:"hydrated")},Tt=(e,t)=>w(e).$instanceValues$.get(t),Lt=(e,t,s,n)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const l=r.$hostElement$,i=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;s=$t(s,n.$members$[t][0]);const c=Number.isNaN(i)&&Number.isNaN(s),$=s!==i&&!c;if((!(o&8)||i===void 0)&&$&&(r.$instanceValues$.set(t,s),a)){if(n.$watchers$&&o&128){const d=n.$watchers$[t];d&&d.map(f=>{try{a[f](s,i,t)}catch(u){b(u,l)}})}(o&18)===2&&V(r,!1)}},Re=(e,t,s)=>{var n,r;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const i=Object.entries((n=t.$members$)!=null?n:{});if(i.map(([o,[a]])=>{(a&31||s&2&&a&32)&&Object.defineProperty(l,o,{get(){return Tt(this,o)},set(c){Lt(this,o,c,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;l.attributeChangedCallback=function(a,c,$){p.jmp(()=>{var d;const f=o.get(a);if(this.hasOwnProperty(f))$=this[f],delete this[f];else{if(l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==$)return;if(f==null){const u=w(this),h=u==null?void 0:u.$flags$;if(h&&!(h&8)&&h&128&&$!==c){const g=u.$lazyInstance$,y=(d=t.$watchers$)==null?void 0:d[a];y==null||y.forEach(v=>{g[v]!=null&&g[v].call(g,$,c,a)})}return}}this[f]=$===null&&typeof this[f]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...i.filter(([a,c])=>c[0]&15).map(([a,c])=>{var $;const d=c[1]||a;return o.set(d,a),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([a,d])),d})]))}}return e},wt=(e,t,s,n)=>R(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const a=Me(s);if(a&&"then"in a){const $=rt();r=yield a,$()}else r=a;if(!r)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(s.$watchers$=r.watchers,Re(r,s,2),r.isProxied=!0);const c=T("createInstance",s.$tagName$);t.$flags$|=8;try{new r(t)}catch($){b($)}t.$flags$&=-9,t.$flags$|=128,c()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const c=be(s);if(!I.has(c)){const $=T("registerStyles",s.$tagName$);ft(c,a,!!(s.$flags$&1)),$()}}}const l=t.$ancestorComponent$,i=()=>V(t,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()}),xt=e=>{},Pt=e=>{if(!(p.$flags$&1)){const t=w(e),s=t.$cmpMeta$,n=T("connectedCallback",s.$tagName$);if(t.$flags$&1)Ne(e,t,s.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>xt());else{t.$flags$|=1,s.$flags$&12&&_t(e);{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){Ae(t,t.$ancestorComponent$=r);break}}s.$members$&&Object.entries(s.$members$).map(([r,[l]])=>{if(l&31&&e.hasOwnProperty(r)){const i=e[r];delete e[r],e[r]=i}}),wt(e,t,s)}n()}},_t=e=>{const t=e["s-cr"]=m.createComment("");t["s-cn"]=!0,L(e,t,e.firstChild)},ue=e=>{O(e,"disconnectedCallback")},At=e=>R(exports,null,function*(){if(!(p.$flags$&1)){const t=w(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?ue(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>ue(t.$lazyInstance$))}}),Ot=(e,t={})=>{var s;const n=T(),r=[],l=t.exclude||[],i=_.customElements,o=m.head,a=o.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let d,f=!0;Object.assign(p,t),p.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(h=>{h[1].map(g=>{var y;const v={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};v.$flags$&4&&(u=!0),v.$members$=g[2],v.$listeners$=g[3],v.$attrsToReflect$=[],v.$watchers$=(y=g[4])!=null?y:{};const j=v.$tagName$,Ie=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,De(k,v),v.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const k=w(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Ne(this,k,v.$listeners$)),d&&(clearTimeout(d),d=null),f?$.push(this):p.jmp(()=>Pt(this))}disconnectedCallback(){p.jmp(()=>At(this))}componentOnReady(){return w(this).$onReadyPromise$}};v.$lazyBundleId$=h[0],!l.includes(j)&&!i.get(j)&&(r.push(j),i.define(j,Re(Ie,v,1)))})}),r.length>0&&(u&&(c.textContent+=ve),c.textContent+=r.sort()+We,c.innerHTML.length)){c.setAttribute("data-styles","");const h=(s=p.$nonce$)!=null?s:pe(m);h!=null&&c.setAttribute("nonce",h),o.insertBefore(c,a?a.nextSibling:o.firstChild)}f=!1,$.length?$.map(h=>h.connectedCallback()):p.jmp(()=>d=setTimeout(Oe,30)),n()},jt=(e,t)=>t,Ne=(e,t,s,n)=>{s&&s.map(([r,l,i])=>{const o=Nt(e,r),a=Rt(t,i),c=It(r);p.ael(o,l,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>p.rel(o,l,a,c))})},Rt=(e,t)=>s=>{var n;try{e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(r){b(r)}},Nt=(e,t)=>t&8?_:e,It=e=>Ge?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Fragment=jt;exports.bootstrapLazy=Ot;exports.createEvent=ct;exports.getAssetPath=Ke;exports.getElement=me;exports.h=K;exports.promiseResolve=he;exports.registerInstance=Fe;
|
1
|
+
"use strict";var Ue=Object.defineProperty;var ee=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var te=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,se=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&te(e,s,t[s]);if(ee)for(var s of ee(t))qe.call(t,s)&&te(e,s,t[s]);return e};var R=(e,t,s)=>new Promise((n,r)=>{var l=a=>{try{o(s.next(a))}catch(c){r(c)}},i=a=>{try{o(s.throw(a))}catch(c){r(c)}},o=a=>a.done?n(a.value):Promise.resolve(a.value).then(l,i);o((s=s.apply(e,t)).next())});const He="gamification-dropdown",G={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",slotRelocation:!0};var ze=Object.defineProperty,Be=(e,t)=>{for(var s in t)ze(e,s,{get:t[s],enumerable:!0})},X=new WeakMap,w=e=>X.get(e),Fe=(e,t)=>X.set(t.$lazyInstance$=e,t),De=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(n=>s.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[],X.set(e,s)},ne=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),B=new Map,Me=(e,t,s)=>{const n=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const l=B.get(r);if(l)return l[n];{const i=o=>(B.set(r,o),o[n]);switch(r){case"gamification-dropdown_4":return Promise.resolve().then(()=>require("./gamification-dropdown_4-CSSqKMgX.cjs")).then(i,b);case"player-elevate-card":return Promise.resolve().then(()=>require("./player-elevate-card-RwOVHsJs.cjs")).then(i,b);case"player-elevate-pointcard":return Promise.resolve().then(()=>require("./player-elevate-pointcard-0nAvSKAh.cjs")).then(i,b);case"player-rakeback-card":return Promise.resolve().then(()=>require("./player-rakeback-card-Cse8u92i.cjs")).then(i,b)}}return import(`./${r}.entry.js`).then(i=>(B.set(r,i),i[n]),b)},I=new Map,We="{visibility:hidden}.hydrated{visibility:inherit}",ve="slot-fb{display:contents}slot-fb[hidden]{display:none}",_=typeof window!="undefined"?window:{},m=_.document||{head:{}},p={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},Ge=(()=>{let e=!1;try{m.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),he=e=>Promise.resolve(e),Xe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),F=!1,re=[],ge=[],Ye=(e,t)=>s=>{e.push(s),F||(F=!0,p.$flags$&4?Y(D):p.raf(D))},le=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){b(s)}e.length=0},D=()=>{le(re),le(ge),(F=re.length>0)&&p.raf(D)},Y=e=>he().then(e),Je=Ye(ge),Ke=e=>{const t=new URL(e,p.$resourcesUrl$);return t.origin!==_.location.origin?t.href:t.pathname},ae={},Qe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml",Ve=e=>e!=null,J=e=>(e=typeof e,e==="object"||e==="function");function pe(e){var t,s,n;return(n=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?n:void 0}var et={};Be(et,{err:()=>ye,map:()=>tt,ok:()=>M,unwrap:()=>st,unwrapErr:()=>nt});var M=e=>({isOk:!0,isErr:!1,value:e}),ye=e=>({isOk:!1,isErr:!0,value:e});function tt(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(n=>M(n)):M(s)}if(e.isErr){const s=e.value;return ye(s)}throw"should never get here"}var st=e=>{if(e.isOk)return e.value;throw e.value},nt=e=>{if(e.isErr)return e.value;throw e.value},T=(e,t="")=>()=>{},rt=(e,t)=>()=>{},K=(e,t,...s)=>{let n=null,r=null,l=null,i=!1,o=!1;const a=[],c=d=>{for(let f=0;f<d.length;f++)n=d[f],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((i=typeof e!="function"&&!J(n))&&(n=String(n)),i&&o?a[a.length-1].$text$+=n:a.push(i?U(null,n):n),o=i)};if(c(s),t){t.key&&(r=t.key),t.name&&(l=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(f=>d[f]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,a,it);const $=U(e,null);return $.$attrs$=t,a.length>0&&($.$children$=a),$.$key$=r,$.$name$=l,$},U=(e,t)=>{const s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},lt={},at=e=>e&&e.$tag$===lt,it={forEach:(e,t)=>e.map(ie).forEach(t),map:(e,t)=>e.map(ie).map(t).map(ot)},ie=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ot=e=>{if(typeof e.vtag=="function"){const s=se({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),K(e.vtag,s,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},$t=(e,t)=>e!=null&&!J(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,me=e=>w(e).$hostElement$,ct=(e,t,s)=>{const n=me(e);return{emit:r=>Se(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},Se=(e,t,s)=>{const n=p.ce(t,s);return e.dispatchEvent(n),n},oe=new WeakMap,ft=(e,t,s)=>{let n=I.get(e);Xe&&s?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,I.set(e,n)},dt=(e,t,s)=>{var n;const r=be(t),l=I.get(r);if(e=e.nodeType===11?e:m,l)if(typeof l=="string"){e=e.head||e;let i=oe.get(e),o;if(i||oe.set(e,i=new Set),!i.has(r)){{o=m.createElement("style"),o.innerHTML=l;const a=(n=p.$nonce$)!=null?n:pe(m);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ve),i&&i.add(r)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return r},ut=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,r=T("attachStyles",t.$tagName$),l=dt(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);n&10&&(s["s-sc"]=l,s.classList.add(l+"-h")),r()},be=(e,t)=>"sc-"+e.$tagName$,$e=(e,t,s,n,r,l)=>{if(s!==n){let i=ne(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,c=ce(s),$=ce(n);a.remove(...c.filter(d=>d&&!$.includes(d))),a.add(...$.filter(d=>d&&!c.includes(d)))}else if(t==="style"){for(const a in s)(!n||n[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in n)(!s||n[a]!==s[a])&&(a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):ne(_,o)?t=o.slice(2):t=o[2]+t.slice(3),s||n){const a=t.endsWith(ke);t=t.replace(ht,""),s&&p.rel(e,t,s,a),n&&p.ael(e,t,n,a)}}else{const a=J(n);if((i||a&&n!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=n;else{const c=n==null?"":n;t==="list"?i=!1:(s==null||e[t]!=c)&&(e[t]=c)}}catch(c){}n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!i||l&4||r)&&!a&&(n=n===!0?"":n,e.setAttribute(t,n))}}},vt=/\s/,ce=e=>e?e.split(vt):[],ke="Capture",ht=new RegExp(ke+"$"),Ee=(e,t,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||ae,l=t.$attrs$||ae;for(const i of fe(Object.keys(r)))i in l||$e(n,i,r[i],void 0,s,t.$flags$);for(const i of fe(Object.keys(l)))$e(n,i,r[i],l[i],s,t.$flags$)};function fe(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var x,W,z,C=!1,q=!1,Q=!1,S=!1,H=(e,t,s,n)=>{var r;const l=t.$children$[s];let i=0,o,a,c;if(C||(Q=!0,l.$tag$==="slot"&&(x&&n.classList.add(x+"-s"),l.$flags$|=l.$children$?2:1)),l.$text$!==null)o=l.$elm$=m.createTextNode(l.$text$);else if(l.$flags$&1)o=l.$elm$=m.createTextNode("");else{if(S||(S=l.$tag$==="svg"),o=l.$elm$=m.createElementNS(S?Qe:Ze,!C&&G.slotRelocation&&l.$flags$&2?"slot-fb":l.$tag$),S&&l.$tag$==="foreignObject"&&(S=!1),Ee(null,l,S),Ve(x)&&o["s-si"]!==x&&o.classList.add(o["s-si"]=x),l.$children$)for(i=0;i<l.$children$.length;++i)a=H(e,l,i,o),a&&o.appendChild(a);l.$tag$==="svg"?S=!1:o.tagName==="foreignObject"&&(S=!0)}return o["s-hn"]=z,l.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=W,o["s-sn"]=l.$name$||"",o["s-rf"]=(r=l.$attrs$)==null?void 0:r.ref,c=e&&e.$children$&&e.$children$[s],c&&c.$tag$===l.$tag$&&e.$elm$&&A(e.$elm$,!1)),o},A=(e,t)=>{p.$flags$|=1;const s=Array.from(e.childNodes);e["s-sr"]&&G.experimentalSlotFixes;for(let n=s.length-1;n>=0;n--){const r=s[n];r["s-hn"]!==z&&r["s-ol"]&&(L(we(r),r,Z(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,Q=!0),t&&A(r,t)}p.$flags$&=-2},Te=(e,t,s,n,r,l)=>{let i=e["s-cr"]&&e["s-cr"].parentNode||e,o;for(i.shadowRoot&&i.tagName===z&&(i=i.shadowRoot);r<=l;++r)n[r]&&(o=H(null,s,r,e),o&&(n[r].$elm$=o,L(i,o,Z(t))))},Le=(e,t,s)=>{for(let n=t;n<=s;++n){const r=e[n];if(r){const l=r.$elm$;_e(r),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():A(l,!0),l.remove())}}},gt=(e,t,s,n,r=!1)=>{let l=0,i=0,o=0,a=0,c=t.length-1,$=t[0],d=t[c],f=n.length-1,u=n[0],h=n[f],g,y;for(;l<=c&&i<=f;)if($==null)$=t[++l];else if(d==null)d=t[--c];else if(u==null)u=n[++i];else if(h==null)h=n[--f];else if(N($,u,r))P($,u,r),$=t[++l],u=n[++i];else if(N(d,h,r))P(d,h,r),d=t[--c],h=n[--f];else if(N($,h,r))($.$tag$==="slot"||h.$tag$==="slot")&&A($.$elm$.parentNode,!1),P($,h,r),L(e,$.$elm$,d.$elm$.nextSibling),$=t[++l],h=n[--f];else if(N(d,u,r))($.$tag$==="slot"||h.$tag$==="slot")&&A(d.$elm$.parentNode,!1),P(d,u,r),L(e,d.$elm$,$.$elm$),d=t[--c],u=n[++i];else{for(o=-1,a=l;a<=c;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(y=t[o],y.$tag$!==u.$tag$?g=H(t&&t[i],s,o,e):(P(y,u,r),t[o]=void 0,g=y.$elm$),u=n[++i]):(g=H(t&&t[i],s,i,e),u=n[++i]),g&&L(we($.$elm$),g,Z($.$elm$))}l>c?Te(e,n[f+1]==null?null:n[f+1].$elm$,s,n,i,f):i>f&&Le(t,l,c)},N=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,Z=e=>e&&e["s-ol"]||e,we=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,P=(e,t,s=!1)=>{const n=t.$elm$=e.$elm$,r=e.$children$,l=t.$children$,i=t.$tag$,o=t.$text$;let a;o===null?(S=i==="svg"?!0:i==="foreignObject"?!1:S,i==="slot"&&!C||Ee(e,t,S),r!==null&&l!==null?gt(n,r,t,l,s):l!==null?(e.$text$!==null&&(n.textContent=""),Te(n,null,t,l,0,l.length-1)):r!==null&&Le(r,0,r.length-1),S&&i==="svg"&&(S=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},xe=e=>{const t=e.childNodes;for(const s of t)if(s.nodeType===1){if(s["s-sr"]){const n=s["s-sn"];s.hidden=!1;for(const r of t)if(r!==s){if(r["s-hn"]!==s["s-hn"]||n!==""){if(r.nodeType===1&&(n===r.getAttribute("slot")||n===r["s-sn"])||r.nodeType===3&&n===r["s-sn"]){s.hidden=!0;break}}else if(r.nodeType===1||r.nodeType===3&&r.textContent.trim()!==""){s.hidden=!0;break}}}xe(s)}},E=[],Pe=e=>{let t,s,n;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;const l=r["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"])if(de(t,l)){let i=E.find(o=>o.$nodeToRelocate$===t);q=!0,t["s-sn"]=t["s-sn"]||l,i?(i.$nodeToRelocate$["s-sh"]=r["s-hn"],i.$slotRefNode$=r):(t["s-sh"]=r["s-hn"],E.push({$slotRefNode$:r,$nodeToRelocate$:t})),t["s-sr"]&&E.map(o=>{de(o.$nodeToRelocate$,t["s-sn"])&&(i=E.find(a=>a.$nodeToRelocate$===t),i&&!o.$slotRefNode$&&(o.$slotRefNode$=i.$slotRefNode$))})}else E.some(i=>i.$nodeToRelocate$===t)||E.push({$nodeToRelocate$:t})}r.nodeType===1&&Pe(r)}},de=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",_e=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_e)},L=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),pt=(e,t,s=!1)=>{var n,r,l,i;const o=e.$hostElement$,a=e.$cmpMeta$,c=e.$vnode$||U(null,null),$=at(t)?t:K(null,null,t);if(z=o.tagName,a.$attrsToReflect$&&($.$attrs$=$.$attrs$||{},a.$attrsToReflect$.map(([d,f])=>$.$attrs$[f]=o[d])),s&&$.$attrs$)for(const d of Object.keys($.$attrs$))o.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&($.$attrs$[d]=o[d]);$.$tag$=null,$.$flags$|=4,e.$vnode$=$,$.$elm$=c.$elm$=o.shadowRoot||o,x=o["s-sc"],C=(a.$flags$&1)!==0,W=o["s-cr"],q=!1,P(c,$,s);{if(p.$flags$|=1,Q){Pe($.$elm$);for(const d of E){const f=d.$nodeToRelocate$;if(!f["s-ol"]){const u=m.createTextNode("");u["s-nr"]=f,L(f.parentNode,f["s-ol"]=u,f)}}for(const d of E){const f=d.$nodeToRelocate$,u=d.$slotRefNode$;if(u){const h=u.parentNode;let g=u.nextSibling;{let y=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;y;){let v=(r=y["s-nr"])!=null?r:null;if(v&&v["s-sn"]===f["s-sn"]&&h===v.parentNode){for(v=v.nextSibling;v===f||v!=null&&v["s-sr"];)v=v==null?void 0:v.nextSibling;if(!v||!v["s-nr"]){g=v;break}}y=y.previousSibling}}(!g&&h!==f.parentNode||f.nextSibling!==g)&&f!==g&&(!f["s-hn"]&&f["s-ol"]&&(f["s-hn"]=f["s-ol"].parentNode.nodeName),L(h,f,g),f.nodeType===1&&(f.hidden=(l=f["s-ih"])!=null?l:!1)),f&&typeof u["s-rf"]=="function"&&u["s-rf"](f)}else f.nodeType===1&&(s&&(f["s-ih"]=(i=f.hidden)!=null?i:!1),f.hidden=!0)}}q&&xe($.$elm$),p.$flags$&=-2,E.length=0}W=void 0},Ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(s=>e.$onRenderResolve$=s))},V=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Ae(e,e.$ancestorComponent$),Je(()=>yt(e,t))},yt=(e,t)=>{const s=e.$hostElement$,n=T("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([i,o])=>O(r,i,o)),e.$queuedListeners$=void 0),l=O(r,"componentWillLoad")),n(),mt(l,()=>bt(e,r,t))},mt=(e,t)=>St(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),St=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",bt=(e,t,s)=>R(exports,null,function*(){var n;const r=e.$hostElement$,l=T("update",e.$cmpMeta$.$tagName$),i=r["s-rc"];s&&ut(e);const o=T("render",e.$cmpMeta$.$tagName$);kt(e,t,r,s),i&&(i.map(a=>a()),r["s-rc"]=void 0),o(),l();{const a=(n=r["s-p"])!=null?n:[],c=()=>Et(e);a.length===0?c():(Promise.all(a).then(c),e.$flags$|=4,a.length=0)}}),kt=(e,t,s,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,pt(e,t,n)}catch(r){b(r,e.$hostElement$)}return null},Et=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=T("postUpdate",t),r=e.$lazyInstance$,l=e.$ancestorComponent$;O(r,"componentDidRender"),e.$flags$&64?n():(e.$flags$|=64,je(s),O(r,"componentDidLoad"),n(),e.$onReadyResolve$(s),l||Oe()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Y(()=>V(e,!1)),e.$flags$&=-517},Oe=e=>{je(m.documentElement),Y(()=>Se(_,"appload",{detail:{namespace:He}}))},O=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){b(n)}},je=e=>{var t;return e.classList.add((t=G.hydratedSelectorName)!=null?t:"hydrated")},Tt=(e,t)=>w(e).$instanceValues$.get(t),Lt=(e,t,s,n)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${n.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const l=r.$hostElement$,i=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;s=$t(s,n.$members$[t][0]);const c=Number.isNaN(i)&&Number.isNaN(s),$=s!==i&&!c;if((!(o&8)||i===void 0)&&$&&(r.$instanceValues$.set(t,s),a)){if(n.$watchers$&&o&128){const d=n.$watchers$[t];d&&d.map(f=>{try{a[f](s,i,t)}catch(u){b(u,l)}})}(o&18)===2&&V(r,!1)}},Re=(e,t,s)=>{var n,r;const l=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const i=Object.entries((n=t.$members$)!=null?n:{});if(i.map(([o,[a]])=>{(a&31||s&2&&a&32)&&Object.defineProperty(l,o,{get(){return Tt(this,o)},set(c){Lt(this,o,c,t)},configurable:!0,enumerable:!0})}),s&1){const o=new Map;l.attributeChangedCallback=function(a,c,$){p.jmp(()=>{var d;const f=o.get(a);if(this.hasOwnProperty(f))$=this[f],delete this[f];else{if(l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==$)return;if(f==null){const u=w(this),h=u==null?void 0:u.$flags$;if(h&&!(h&8)&&h&128&&$!==c){const g=u.$lazyInstance$,y=(d=t.$watchers$)==null?void 0:d[a];y==null||y.forEach(v=>{g[v]!=null&&g[v].call(g,$,c,a)})}return}}this[f]=$===null&&typeof this[f]=="boolean"?!1:$})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...i.filter(([a,c])=>c[0]&15).map(([a,c])=>{var $;const d=c[1]||a;return o.set(d,a),c[0]&512&&(($=t.$attrsToReflect$)==null||$.push([a,d])),d})]))}}return e},wt=(e,t,s,n)=>R(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const a=Me(s);if(a&&"then"in a){const $=rt();r=yield a,$()}else r=a;if(!r)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(s.$watchers$=r.watchers,Re(r,s,2),r.isProxied=!0);const c=T("createInstance",s.$tagName$);t.$flags$|=8;try{new r(t)}catch($){b($)}t.$flags$&=-9,t.$flags$|=128,c()}else{r=e.constructor;const a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(r&&r.style){let a;typeof r.style=="string"&&(a=r.style);const c=be(s);if(!I.has(c)){const $=T("registerStyles",s.$tagName$);ft(c,a,!!(s.$flags$&1)),$()}}}const l=t.$ancestorComponent$,i=()=>V(t,!0);l&&l["s-rc"]?l["s-rc"].push(i):i()}),xt=e=>{},Pt=e=>{if(!(p.$flags$&1)){const t=w(e),s=t.$cmpMeta$,n=T("connectedCallback",s.$tagName$);if(t.$flags$&1)Ne(e,t,s.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>xt());else{t.$flags$|=1,s.$flags$&12&&_t(e);{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){Ae(t,t.$ancestorComponent$=r);break}}s.$members$&&Object.entries(s.$members$).map(([r,[l]])=>{if(l&31&&e.hasOwnProperty(r)){const i=e[r];delete e[r],e[r]=i}}),wt(e,t,s)}n()}},_t=e=>{const t=e["s-cr"]=m.createComment("");t["s-cn"]=!0,L(e,t,e.firstChild)},ue=e=>{O(e,"disconnectedCallback")},At=e=>R(exports,null,function*(){if(!(p.$flags$&1)){const t=w(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$?ue(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>ue(t.$lazyInstance$))}}),Ot=(e,t={})=>{var s;const n=T(),r=[],l=t.exclude||[],i=_.customElements,o=m.head,a=o.querySelector("meta[charset]"),c=m.createElement("style"),$=[];let d,f=!0;Object.assign(p,t),p.$resourcesUrl$=new URL(t.resourcesUrl||"./",m.baseURI).href;let u=!1;if(e.map(h=>{h[1].map(g=>{var y;const v={$flags$:g[0],$tagName$:g[1],$members$:g[2],$listeners$:g[3]};v.$flags$&4&&(u=!0),v.$members$=g[2],v.$listeners$=g[3],v.$attrsToReflect$=[],v.$watchers$=(y=g[4])!=null?y:{};const j=v.$tagName$,Ie=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,De(k,v),v.$flags$&1){if(!k.shadowRoot)k.attachShadow({mode:"open"});else if(k.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${v.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const k=w(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Ne(this,k,v.$listeners$)),d&&(clearTimeout(d),d=null),f?$.push(this):p.jmp(()=>Pt(this))}disconnectedCallback(){p.jmp(()=>At(this))}componentOnReady(){return w(this).$onReadyPromise$}};v.$lazyBundleId$=h[0],!l.includes(j)&&!i.get(j)&&(r.push(j),i.define(j,Re(Ie,v,1)))})}),r.length>0&&(u&&(c.textContent+=ve),c.textContent+=r.sort()+We,c.innerHTML.length)){c.setAttribute("data-styles","");const h=(s=p.$nonce$)!=null?s:pe(m);h!=null&&c.setAttribute("nonce",h),o.insertBefore(c,a?a.nextSibling:o.firstChild)}f=!1,$.length?$.map(h=>h.connectedCallback()):p.jmp(()=>d=setTimeout(Oe,30)),n()},jt=(e,t)=>t,Ne=(e,t,s,n)=>{s&&s.map(([r,l,i])=>{const o=Nt(e,r),a=Rt(t,i),c=It(r);p.ael(o,l,a,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>p.rel(o,l,a,c))})},Rt=(e,t)=>s=>{var n;try{e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](s):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,s])}catch(r){b(r)}},Nt=(e,t)=>t&8?_:e,It=e=>Ge?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Fragment=jt;exports.bootstrapLazy=Ot;exports.createEvent=ct;exports.getAssetPath=Ke;exports.getElement=me;exports.h=K;exports.promiseResolve=he;exports.registerInstance=Fe;
|
@@ -26,22 +26,22 @@ var Oe = Object.defineProperty, je = (e, t) => {
|
|
26
26
|
case "gamification-dropdown_4":
|
27
27
|
return import(
|
28
28
|
/* webpackMode: "lazy" */
|
29
|
-
"./gamification-dropdown_4-
|
29
|
+
"./gamification-dropdown_4-D0zC6s0z.js"
|
30
30
|
).then(a, b);
|
31
31
|
case "player-elevate-card":
|
32
32
|
return import(
|
33
33
|
/* webpackMode: "lazy" */
|
34
|
-
"./player-elevate-card-
|
34
|
+
"./player-elevate-card-Cq9AY34b.js"
|
35
35
|
).then(a, b);
|
36
36
|
case "player-elevate-pointcard":
|
37
37
|
return import(
|
38
38
|
/* webpackMode: "lazy" */
|
39
|
-
"./player-elevate-pointcard-
|
39
|
+
"./player-elevate-pointcard-B2LdaCFC.js"
|
40
40
|
).then(a, b);
|
41
41
|
case "player-rakeback-card":
|
42
42
|
return import(
|
43
43
|
/* webpackMode: "lazy" */
|
44
|
-
"./player-rakeback-card-
|
44
|
+
"./player-rakeback-card-BmxqgBwM.js"
|
45
45
|
).then(a, b);
|
46
46
|
}
|
47
47
|
}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as l, a as n, h as e, F as i } from "./index-71b1bdfa-
|
2
|
-
import { P as r, a as s, c as d, d as o, b as c, e as p } from "./player-elevate-card-items-08c6fbd8-
|
1
|
+
import { r as l, a as n, h as e, F as i } from "./index-71b1bdfa-CsvLx63r.js";
|
2
|
+
import { P as r, a as s, c as d, d as o, b as c, e as p } from "./player-elevate-card-items-08c6fbd8-DjORuh1x.js";
|
3
3
|
import { T as f } from "./locale-TxlOHoKi.js";
|
4
4
|
const g = `@container (max-width: 270px) {
|
5
5
|
.Card .Inner {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { r as l, a as n, h as e, F as i } from "./index-71b1bdfa-
|
2
|
-
import { P as r, a as s, c as d, d as o, b as c, e as p } from "./player-elevate-card-items-08c6fbd8-
|
1
|
+
import { r as l, a as n, h as e, F as i } from "./index-71b1bdfa-_pPD5FBH.js";
|
2
|
+
import { P as r, a as s, c as d, d as o, b as c, e as p } from "./player-elevate-card-items-08c6fbd8-BbWvVixN.js";
|
3
3
|
import { T as f } from "./locale-TxlOHoKi.js";
|
4
4
|
const g = `@container (max-width: 270px) {
|
5
5
|
.Card .Inner {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-D1DTp5qp.cjs"),n=require("./player-elevate-card-items-08c6fbd8-CfgH9Fd6.cjs"),i=require("./locale-B_6Rn5-v.cjs"),r=`@container (max-width: 270px) {
|
2
2
|
.Card .Inner {
|
3
3
|
flex-direction: column;
|
4
4
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const l=require("./index-71b1bdfa-DEOwV3WT.cjs"),U=require("./locale-B_6Rn5-v.cjs");function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function p(r){h(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Y(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(r,e){h(2,arguments);var t=p(r).getTime(),a=M(e);return new Date(t+a)}var re={};function L(){return re}function X(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function ae(r){return h(1,arguments),r instanceof Date||Y(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ne(r){if(h(1,arguments),!ae(r)&&typeof r!="number")return!1;var e=p(r);return!isNaN(Number(e))}function ie(r,e){h(2,arguments);var t=M(e);return te(r,-t)}var oe=864e5;function se(r){h(1,arguments);var e=p(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/oe)+1}function B(r){h(1,arguments);var e=1,t=p(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Q(r){h(1,arguments);var e=p(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=B(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=B(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function le(r){h(1,arguments);var e=Q(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=B(t);return a}var ue=6048e5;function de(r){h(1,arguments);var e=p(r),t=B(e).getTime()-le(e).getTime();return Math.round(t/ue)+1}function F(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:m.weekStartsOn)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=p(r),v=g.getUTCDay(),y=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function V(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=p(r),f=m.getUTCFullYear(),g=L(),v=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,v),y.setUTCHours(0,0,0,0);var O=F(y,e),x=new Date(0);x.setUTCFullYear(f,0,v),x.setUTCHours(0,0,0,0);var N=F(x,e);return m.getTime()>=O.getTime()?f+1:m.getTime()>=N.getTime()?f:f-1}function ce(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),g=V(r,e),v=new Date(0);v.setUTCFullYear(g,0,f),v.setUTCHours(0,0,0,0);var y=F(v,e);return y}var fe=6048e5;function he(r,e){h(1,arguments);var t=p(r),a=F(t,e).getTime()-ce(t,e).getTime();return Math.round(a/fe)+1}function s(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var me={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return s(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):s(a+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return s(i,t.length)}};const C=me;var _={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ve={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return C.y(e,t)},Y:function(e,t,a,n){var i=V(e,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){var a=Q(e);return s(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return s(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=he(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(e,t,a){var n=de(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,a){var n=se(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return C.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return T(o);case"XXXXX":case"XXX":default:return T(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return T(o);case"xxxxx":case"xxx":default:return T(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+T(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+T(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return s(o,t.length)}};function A(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e;return t+String(n)+o+s(i,2)}function q(r,e){if(r%60===0){var t=r>0?"-":"+";return t+s(Math.abs(r)/60,2)}return T(r,e)}function T(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=s(Math.floor(n/60),2),o=s(n%60,2);return a+i+t+o}const ge=ve;var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},we=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return $(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$(n,t)).replace("{{time}}",j(i,t))},ye={p:j,P:we};const pe=ye;var be=["D","DD"],Ce=["YY","YYYY"];function xe(r){return be.indexOf(r)!==-1}function Te(r){return Ce.indexOf(r)!==-1}function R(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_e=function(e,t,a){var n,i=Me[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const Oe=_e;function I(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var Pe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},De={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ke={date:I({formats:Pe,defaultWidth:"full"}),time:I({formats:De,defaultWidth:"full"}),dateTime:I({formats:Se,defaultWidth:"full"})};const Ue=ke;var We={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=function(e,t,a,n){return We[e]};const Ye=Ee;function S(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var u=r.defaultWidth,c=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[c]||r.values[u]}var d=r.argumentCallback?r.argumentCallback(e):e;return n[d]}}var Be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Le={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},He={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ie=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ae={ordinalNumber:Ie,era:S({values:Be,defaultWidth:"wide"}),quarter:S({values:Fe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:S({values:Le,defaultWidth:"wide"}),day:S({values:Ne,defaultWidth:"wide"}),dayPeriod:S({values:Ge,defaultWidth:"wide",formattingValues:He,defaultFormattingWidth:"wide"})};const qe=Ae;function k(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(u)?Re(u,function(f){return f.test(o)}):$e(u,function(f){return f.test(o)}),d;d=r.valueCallback?r.valueCallback(c):c,d=t.valueCallback?t.valueCallback(d):d;var m=e.slice(o.length);return{value:d,rest:m}}}function $e(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Re(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Xe(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=e.slice(n.length);return{value:o,rest:u}}}var Qe=/^(\d+)(th|st|nd|rd)?/i,Ve=/\d+/i,je={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ze={any:[/^b/i,/^(a|c)/i]},Je={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ze={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},at={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},it={ordinalNumber:Xe({matchPattern:Qe,parsePattern:Ve,valueCallback:function(e){return parseInt(e,10)}}),era:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:k({matchPatterns:Je,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:k({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:et,defaultParseWidth:"any"}),day:k({matchPatterns:tt,defaultMatchWidth:"wide",parsePatterns:rt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:at,defaultMatchWidth:"any",parsePatterns:nt,defaultParseWidth:"any"})};const ot=it;var st={code:"en-US",formatDistance:Oe,formatLong:Ue,formatRelative:Ye,localize:qe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};const lt=st;var ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ct=/^'([^]*?)'?$/,ft=/''/g,ht=/[a-zA-Z]/;function z(r,e,t){var a,n,i,o,u,c,d,m,f,g,v,y,O,x;h(2,arguments);var N=String(e),P=L(),D=(a=(n=void 0)!==null&&n!==void 0?n:P.locale)!==null&&a!==void 0?a:lt,G=M((i=(o=(u=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&o!==void 0?o:(d=P.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=M((f=(g=(v=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(x=O.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&f!==void 0?f:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var W=p(r);if(!ne(W))throw new RangeError("Invalid time value");var J=X(W),K=ie(W,J),Z={firstWeekContainsDate:G,weekStartsOn:H,locale:D,_originalDate:W},ee=N.match(dt).map(function(w){var b=w[0];if(b==="p"||b==="P"){var E=pe[b];return E(w,D.formatLong)}return w}).join("").match(ut).map(function(w){if(w==="''")return"'";var b=w[0];if(b==="'")return mt(w);var E=ge[b];if(E)return Te(w)&&R(w,e,String(r)),xe(w)&&R(w,e,String(r)),E(K,w,D.localize,Z);if(b.match(ht))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return w}).join("");return ee}function mt(r){var e=r.match(ct);return e?e[1].replace(ft,"'"):r}const vt=`<svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
|
1
|
+
"use strict";const l=require("./index-71b1bdfa-D1DTp5qp.cjs"),U=require("./locale-B_6Rn5-v.cjs");function Y(r){"@babel/helpers - typeof";return Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(r)}function M(r){if(r===null||r===!0||r===!1)return NaN;var e=Number(r);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function h(r,e){if(e.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+e.length+" present")}function p(r){h(1,arguments);var e=Object.prototype.toString.call(r);return r instanceof Date||Y(r)==="object"&&e==="[object Date]"?new Date(r.getTime()):typeof r=="number"||e==="[object Number]"?new Date(r):((typeof r=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(r,e){h(2,arguments);var t=p(r).getTime(),a=M(e);return new Date(t+a)}var re={};function L(){return re}function X(r){var e=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return e.setUTCFullYear(r.getFullYear()),r.getTime()-e.getTime()}function ae(r){return h(1,arguments),r instanceof Date||Y(r)==="object"&&Object.prototype.toString.call(r)==="[object Date]"}function ne(r){if(h(1,arguments),!ae(r)&&typeof r!="number")return!1;var e=p(r);return!isNaN(Number(e))}function ie(r,e){h(2,arguments);var t=M(e);return te(r,-t)}var oe=864e5;function se(r){h(1,arguments);var e=p(r),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),n=t-a;return Math.floor(n/oe)+1}function B(r){h(1,arguments);var e=1,t=p(r),a=t.getUTCDay(),n=(a<e?7:0)+a-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function Q(r){h(1,arguments);var e=p(r),t=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(t+1,0,4),a.setUTCHours(0,0,0,0);var n=B(a),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var o=B(i);return e.getTime()>=n.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function le(r){h(1,arguments);var e=Q(r),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var a=B(t);return a}var ue=6048e5;function de(r){h(1,arguments);var e=p(r),t=B(e).getTime()-le(e).getTime();return Math.round(t/ue)+1}function F(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:m.weekStartsOn)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=p(r),v=g.getUTCDay(),y=(v<f?7:0)+v-f;return g.setUTCDate(g.getUTCDate()-y),g.setUTCHours(0,0,0,0),g}function V(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=p(r),f=m.getUTCFullYear(),g=L(),v=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:g.firstWeekContainsDate)!==null&&a!==void 0?a:(c=g.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(v>=1&&v<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(f+1,0,v),y.setUTCHours(0,0,0,0);var O=F(y,e),x=new Date(0);x.setUTCFullYear(f,0,v),x.setUTCHours(0,0,0,0);var N=F(x,e);return m.getTime()>=O.getTime()?f+1:m.getTime()>=N.getTime()?f:f-1}function ce(r,e){var t,a,n,i,o,u,c,d;h(1,arguments);var m=L(),f=M((t=(a=(n=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:m.firstWeekContainsDate)!==null&&a!==void 0?a:(c=m.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),g=V(r,e),v=new Date(0);v.setUTCFullYear(g,0,f),v.setUTCHours(0,0,0,0);var y=F(v,e);return y}var fe=6048e5;function he(r,e){h(1,arguments);var t=p(r),a=F(t,e).getTime()-ce(t,e).getTime();return Math.round(a/fe)+1}function s(r,e){for(var t=r<0?"-":"",a=Math.abs(r).toString();a.length<e;)a="0"+a;return t+a}var me={y:function(e,t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return s(t==="yy"?n%100:n,t.length)},M:function(e,t){var a=e.getUTCMonth();return t==="M"?String(a+1):s(a+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var a=t.length,n=e.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,a-3));return s(i,t.length)}};const C=me;var _={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ve={G:function(e,t,a){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});case"GGGG":default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){var n=e.getUTCFullYear(),i=n>0?n:1-n;return a.ordinalNumber(i,{unit:"year"})}return C.y(e,t)},Y:function(e,t,a,n){var i=V(e,n),o=i>0?i:1-i;if(t==="YY"){var u=o%100;return s(u,2)}return t==="Yo"?a.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){var a=Q(e);return s(a,t.length)},u:function(e,t){var a=e.getUTCFullYear();return s(a,t.length)},Q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return s(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return s(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){var n=e.getUTCMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return s(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){var i=he(e,n);return t==="wo"?a.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(e,t,a){var n=de(e);return t==="Io"?a.ordinalNumber(n,{unit:"week"}):s(n,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,a){var n=se(e);return t==="Do"?a.ordinalNumber(n,{unit:"dayOfYear"}):s(n,t.length)},E:function(e,t,a){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});case"EEEE":default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,a){var n=e.getUTCDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});case"iiii":default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){var n=e.getUTCHours(),i=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,a){var n=e.getUTCHours(),i;switch(n===12?i=_.noon:n===0?i=_.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,a){var n=e.getUTCHours(),i;switch(n>=17?i=_.evening:n>=12?i=_.afternoon:n>=4?i=_.morning:i=_.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),a.ordinalNumber(n,{unit:"hour"})}return C.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,a){var n=e.getUTCHours()%12;return t==="Ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},k:function(e,t,a){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?a.ordinalNumber(n,{unit:"hour"}):s(n,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return q(o);case"XXXX":case"XX":return T(o);case"XXXXX":case"XXX":default:return T(o,":")}},x:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return q(o);case"xxxx":case"xx":return T(o);case"xxxxx":case"xxx":default:return T(o,":")}},O:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+T(o,":")}},z:function(e,t,a,n){var i=n._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+T(o,":")}},t:function(e,t,a,n){var i=n._originalDate||e,o=Math.floor(i.getTime()/1e3);return s(o,t.length)},T:function(e,t,a,n){var i=n._originalDate||e,o=i.getTime();return s(o,t.length)}};function A(r,e){var t=r>0?"-":"+",a=Math.abs(r),n=Math.floor(a/60),i=a%60;if(i===0)return t+String(n);var o=e;return t+String(n)+o+s(i,2)}function q(r,e){if(r%60===0){var t=r>0?"-":"+";return t+s(Math.abs(r)/60,2)}return T(r,e)}function T(r,e){var t=e||"",a=r>0?"-":"+",n=Math.abs(r),i=s(Math.floor(n/60),2),o=s(n%60,2);return a+i+t+o}const ge=ve;var $=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},we=function(e,t){var a=e.match(/(P+)(p+)?/)||[],n=a[1],i=a[2];if(!i)return $(e,t);var o;switch(n){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",$(n,t)).replace("{{time}}",j(i,t))},ye={p:j,P:we};const pe=ye;var be=["D","DD"],Ce=["YY","YYYY"];function xe(r){return be.indexOf(r)!==-1}function Te(r){return Ce.indexOf(r)!==-1}function R(r,e,t){if(r==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(r==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Me={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},_e=function(e,t,a){var n,i=Me[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n};const Oe=_e;function I(r){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):r.defaultWidth,a=r.formats[t]||r.formats[r.defaultWidth];return a}}var Pe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},De={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Se={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ke={date:I({formats:Pe,defaultWidth:"full"}),time:I({formats:De,defaultWidth:"full"}),dateTime:I({formats:Se,defaultWidth:"full"})};const Ue=ke;var We={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ee=function(e,t,a,n){return We[e]};const Ye=Ee;function S(r){return function(e,t){var a=t!=null&&t.context?String(t.context):"standalone",n;if(a==="formatting"&&r.formattingValues){var i=r.defaultFormattingWidth||r.defaultWidth,o=t!=null&&t.width?String(t.width):i;n=r.formattingValues[o]||r.formattingValues[i]}else{var u=r.defaultWidth,c=t!=null&&t.width?String(t.width):r.defaultWidth;n=r.values[c]||r.values[u]}var d=r.argumentCallback?r.argumentCallback(e):e;return n[d]}}var Be={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Le={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Ge={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},He={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ie=function(e,t){var a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Ae={ordinalNumber:Ie,era:S({values:Be,defaultWidth:"wide"}),quarter:S({values:Fe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:S({values:Le,defaultWidth:"wide"}),day:S({values:Ne,defaultWidth:"wide"}),dayPeriod:S({values:Ge,defaultWidth:"wide",formattingValues:He,defaultFormattingWidth:"wide"})};const qe=Ae;function k(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.width,n=a&&r.matchPatterns[a]||r.matchPatterns[r.defaultMatchWidth],i=e.match(n);if(!i)return null;var o=i[0],u=a&&r.parsePatterns[a]||r.parsePatterns[r.defaultParseWidth],c=Array.isArray(u)?Re(u,function(f){return f.test(o)}):$e(u,function(f){return f.test(o)}),d;d=r.valueCallback?r.valueCallback(c):c,d=t.valueCallback?t.valueCallback(d):d;var m=e.slice(o.length);return{value:d,rest:m}}}function $e(r,e){for(var t in r)if(r.hasOwnProperty(t)&&e(r[t]))return t}function Re(r,e){for(var t=0;t<r.length;t++)if(e(r[t]))return t}function Xe(r){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(r.matchPattern);if(!a)return null;var n=a[0],i=e.match(r.parsePattern);if(!i)return null;var o=r.valueCallback?r.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var u=e.slice(n.length);return{value:o,rest:u}}}var Qe=/^(\d+)(th|st|nd|rd)?/i,Ve=/\d+/i,je={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ze={any:[/^b/i,/^(a|c)/i]},Je={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ke={any:[/1/i,/2/i,/3/i,/4/i]},Ze={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},et={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},tt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rt={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},at={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},it={ordinalNumber:Xe({matchPattern:Qe,parsePattern:Ve,valueCallback:function(e){return parseInt(e,10)}}),era:k({matchPatterns:je,defaultMatchWidth:"wide",parsePatterns:ze,defaultParseWidth:"any"}),quarter:k({matchPatterns:Je,defaultMatchWidth:"wide",parsePatterns:Ke,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:k({matchPatterns:Ze,defaultMatchWidth:"wide",parsePatterns:et,defaultParseWidth:"any"}),day:k({matchPatterns:tt,defaultMatchWidth:"wide",parsePatterns:rt,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:at,defaultMatchWidth:"any",parsePatterns:nt,defaultParseWidth:"any"})};const ot=it;var st={code:"en-US",formatDistance:Oe,formatLong:Ue,formatRelative:Ye,localize:qe,match:ot,options:{weekStartsOn:0,firstWeekContainsDate:1}};const lt=st;var ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ct=/^'([^]*?)'?$/,ft=/''/g,ht=/[a-zA-Z]/;function z(r,e,t){var a,n,i,o,u,c,d,m,f,g,v,y,O,x;h(2,arguments);var N=String(e),P=L(),D=(a=(n=void 0)!==null&&n!==void 0?n:P.locale)!==null&&a!==void 0?a:lt,G=M((i=(o=(u=(c=void 0)!==null&&c!==void 0?c:void 0)!==null&&u!==void 0?u:P.firstWeekContainsDate)!==null&&o!==void 0?o:(d=P.locale)===null||d===void 0||(m=d.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=M((f=(g=(v=(y=void 0)!==null&&y!==void 0?y:void 0)!==null&&v!==void 0?v:P.weekStartsOn)!==null&&g!==void 0?g:(O=P.locale)===null||O===void 0||(x=O.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&f!==void 0?f:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!D.localize)throw new RangeError("locale must contain localize property");if(!D.formatLong)throw new RangeError("locale must contain formatLong property");var W=p(r);if(!ne(W))throw new RangeError("Invalid time value");var J=X(W),K=ie(W,J),Z={firstWeekContainsDate:G,weekStartsOn:H,locale:D,_originalDate:W},ee=N.match(dt).map(function(w){var b=w[0];if(b==="p"||b==="P"){var E=pe[b];return E(w,D.formatLong)}return w}).join("").match(ut).map(function(w){if(w==="''")return"'";var b=w[0];if(b==="'")return mt(w);var E=ge[b];if(E)return Te(w)&&R(w,e,String(r)),xe(w)&&R(w,e,String(r)),E(K,w,D.localize,Z);if(b.match(ht))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return w}).join("");return ee}function mt(r){var e=r.match(ct);return e?e[1].replace(ft,"'"):r}const vt=`<svg width="100%" height="28" style="opacity: 0" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
2
|
<rect y="12" x="2" width="100%" id="total_level" height="5" rx="2.5" fill="white" fill-opacity="0.5"/>
|
3
3
|
<rect y="12" x="2" id="current_level" width="64" height="5" rx="2.5" fill="white"/>
|
4
4
|
<g filter="url(#filter_current_level)">
|
package/stencil/{player-elevate-pointcard-D962b07c.cjs → player-elevate-pointcard-0nAvSKAh.cjs}
RENAMED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-71b1bdfa-D1DTp5qp.cjs"),a=require("./locale-B_6Rn5-v.cjs"),n=require("./player-elevate-card-items-08c6fbd8-CfgH9Fd6.cjs"),l=":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}",s=l,i=class{constructor(t){e.registerInstance(this,t),this.isPointDetailCard=this.buttonType==="earningRule",this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.mbSource=void 0,this.playerName=void 0,this.cardTitle=void 0,this.buttonType="earningRule",this.dateFormat="yyyy-MM-dd",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0,this.elevateSPTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(t){t.detail&&(t.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=t.detail.elevateLevelWalletTotal,this.elevateSPTotal=t.detail.loyaltyWalletTotal),t.detail.elevateLevel&&(this.playerElevateLevel=t.detail.elevateLevel),t.detail.pointExpireString&&(this.pointExpireString=t.detail.pointExpireString))}onDetailsClick(){window.postMessage({type:this.isPointDetailCard?"BEEPointRulesClicked":"BEEDetailsClicked",path:this.isPointDetailCard?"player-elevate-level":"player-elevate-point-details"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}render(){const t=e.getAssetPath("../static/card-ground.svg"),r=e.getAssetPath("../static/card-ground-over.svg");return e.h("div",{key:"45aa5be359b46d5503a8310daa4db2029a8c59b8",class:`ElevateCardWrapper ${this.theme}`},e.h("div",{key:"0d1773bd9eb0913ede4eeedfc93f22967aa133d6",class:"PointsCard Outer ",style:{backgroundImage:`url(${t}`}},e.h("general-styling-wrapper",{key:"cfb35c5220633e39e25b11f0be5b6fc5cc73df5c",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:a.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),e.h("player-elevate-card-data",{key:"25206c4deb6e51e3ea60259d4fee3452df8253d6",params:this.paramProxy}),e.h("div",{key:"c14ee3498a1a584b7f484fe2ef6a204c337d2b27",class:"OuterCover Inner",style:{backgroundImage:`url(${r}`}},e.h("div",{key:"dd7e0528034013d889f1f9bfbacf7928d2b4d1e9",class:"Content Row"},this.playerElevateLevel&&e.h(e.Fragment,{key:"20b36f112f735446a6219b61e012e4568f199717"},e.h("div",{key:"3705136c1ee509484f43b7268b23cfbe273f727c",class:"PlayerImg"},e.h(n.PlayerAvatar,{key:"b81cbcff0528acd3253a676e0a64141c6414fc2a",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),e.h("div",{key:"311b3ffcdf8a3ffe4b609fd0f1d9dee83424ca58",class:`LevelInfo ${this.playerElevateLevel.name}`},e.h("div",{key:"ba1744b3b9cee03a424093df96454ff68d04aec1",class:"PointsTxt Label"},this.cardTitle?this.cardTitle:a.translate("spendablePoints",this.language)),e.h("div",{key:"6b554d17a0f74684e23549365fb06f6079ba7239",class:"PointsTxt SPPoints"},e.h(n.PlayerPoints,{key:"6c9f812eccea99cd94095c252ba552816f800447",spendablePoints:this.playerElevateLevel.spendablePoints,language:this.language}),e.h("a",{key:"eb79d25c2ccce8c542a192c1ca07265649dbd1bc",class:"TC",onClick:()=>{this.onDetailsClick()}},a.translate("termAndConditions",this.language))),this.pointExpireString&&e.h("div",{key:"e64127c87c4c4a3e5253606e2c4c472e9b728103",class:"ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};i.style=s;exports.player_elevate_pointcard=i;
|
package/stencil/{player-elevate-pointcard-CQ618787.js → player-elevate-pointcard-B2LdaCFC.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-
|
1
|
+
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-_pPD5FBH.js";
|
2
2
|
import { T as l, a as n } from "./locale-TxlOHoKi.js";
|
3
|
-
import { P as o, a as d } from "./player-elevate-card-items-08c6fbd8-
|
3
|
+
import { P as o, a as d } from "./player-elevate-card-items-08c6fbd8-BbWvVixN.js";
|
4
4
|
const c = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}", p = c, g = class {
|
5
5
|
constructor(a) {
|
6
6
|
r(this, a), this.isPointDetailCard = this.buttonType === "earningRule", this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.mbSource = void 0, this.playerName = void 0, this.cardTitle = void 0, this.buttonType = "earningRule", this.dateFormat = "yyyy-MM-dd", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0, this.elevateSPTotal = void 0;
|
package/stencil/{player-elevate-pointcard-CDT1deRp.js → player-elevate-pointcard-DpAG2GwO.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-
|
1
|
+
import { r, a as t, h as e, F as s } from "./index-71b1bdfa-CsvLx63r.js";
|
2
2
|
import { T as l, a as n } from "./locale-TxlOHoKi.js";
|
3
|
-
import { P as o, a as d } from "./player-elevate-card-items-08c6fbd8-
|
3
|
+
import { P as o, a as d } from "./player-elevate-card-items-08c6fbd8-DjORuh1x.js";
|
4
4
|
const c = ":host{display:block}.PointsCard .Inner .Row .ExpirationPoints{text-align:left}.PointsCard .Inner .PlayerAvatar .Avatar{display:none}.PointsCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%;position:inherit}.PointsCard .Inner .PointsTxt{display:flex;flex-direction:row;justify-content:space-between}.PointsCard .Inner .DetailButton{background:linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%), linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6));border-radius:5px;box-shadow:0px 4px 4px 0px rgba(0, 0, 0, 0.25);border:2px solid;font-size:11px;width:108px;padding:4px;cursor:pointer;margin-top:5px;height:16px;min-width:45px;text-align:center}.PointsCard .Inner .DetailButton span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .DetailButton span{display:inline-block;vertical-align:middle}.PointsCard .Inner .DetailButton:hover span{color:var(--emw--color-gray-150, #6D6D6D)}.PointsCard .Inner .LevelInfo{gap:15px;width:70%}.PointsCard .Inner .LevelInfo .PointsTxt{font-size:15px}.PointsCard .Inner .LevelInfo .PointsTxt.Label{display:none}.PointsCard .Inner .LevelInfo .PointsTxt.SPPoints{padding-top:15px}.PointsCard .Inner .LevelInfo .PointsTxt .TC{font-size:x-small;color:var(--emw--color-gray-300, #58586B);display:flex;align-content:center;height:100%;flex-wrap:wrap;text-decoration:underline;cursor:pointer;display:none}", p = c, g = class {
|
5
5
|
constructor(a) {
|
6
6
|
r(this, a), this.isPointDetailCard = this.buttonType === "earningRule", this.endpoint = void 0, this.theme = "Dark", this.session = void 0, this.playerAvatarUrl = void 0, this.language = "en", this.mbSource = void 0, this.playerName = void 0, this.cardTitle = void 0, this.buttonType = "earningRule", this.dateFormat = "yyyy-MM-dd", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.pointExpireString = void 0, this.playerElevateLevel = void 0, this.elevateWalletTotal = void 0, this.elevateSPTotal = void 0;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as k, h as n } from "./index-71b1bdfa-
|
1
|
+
import { r as k, h as n } from "./index-71b1bdfa-_pPD5FBH.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) {
|
@@ -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-D1DTp5qp.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;
|
@@ -14,7 +14,7 @@ var l = (a, t, e) => new Promise((o, i) => {
|
|
14
14
|
}, s = (r) => r.done ? o(r.value) : Promise.resolve(r.value).then(c, k);
|
15
15
|
s((e = e.apply(a, t)).next());
|
16
16
|
});
|
17
|
-
import { r as h, h as n } from "./index-71b1bdfa-
|
17
|
+
import { r as h, h as n } from "./index-71b1bdfa-CsvLx63r.js";
|
18
18
|
import { a as b, t as f, T as m } from "./locale-TxlOHoKi.js";
|
19
19
|
const g = ":host{display:block}@keyframes rotate{from{transform:rotate(360deg)}to{transform:rotate(0deg)}}.RakebackCard{border:2px solid var(--em-color-border-primary, #003E5C);padding:32px;border-radius:var(--emw--border-radius-medium, 12px);overflow:hidden;font-family:inherit}.RakebackCard .RakebackCardContent .RakebackTitle{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-semibold, 500);color:var(--em-color-text-secondary, #727672)}.RakebackCard .RakebackCardContent .RakebackDetails{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-top:17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo{display:flex;flex-wrap:wrap;align-items:center;gap:0 17px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh{width:52px;height:52px;cursor:pointer}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackRefresh.RakebackLoading{animation:rotate 0.5s linear infinite}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer{color:var(--em-color-text-primary, #fff);display:flex;align-items:center;gap:8px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackNum{display:inline-block;font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-2x-large, 36px)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackInfo .RakebackNumContainer .RakebackCurrency{display:inline-block;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);margin-top:14px}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton{font-family:inherit;cursor:pointer;width:90px;height:34px;border-radius:var(--emw--border-radius-large, 99px);border:2px solid var(--em-color-border-success, #083B17);display:flex;justify-content:center;align-items:center;color:var(--em-color-text-primary, #fff);background:linear-gradient(180deg, var(--em-color-gradient-1, #24B24E) 0%, var(--em-color-gradient-1, #24B24E) 100%)}.RakebackCard .RakebackCardContent .RakebackDetails .RakebackButton.disabled{cursor:not-allowed;opacity:0.4}.RakebackCard .RakebackCardContent .RakebackCoolOff,.RakebackCard .RakebackCardContent .RakebackError{margin-top:8px;font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-x-small, 12px);color:var(--em-color-text-error, #FF7A73);text-align:center}", R = g, p = class {
|
20
20
|
constructor(a) {
|