@everymatrix/casino-header-controller-nd 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CasinoHamburgerMenuNd-BXOxWDnU.js +5449 -0
- package/components/CasinoHamburgerMenuNd-CDprnR9N.cjs +5 -0
- package/components/CasinoHamburgerMenuNd-RHQhri2n.js +5487 -0
- package/components/CasinoHeaderControllerNd-CrjISN9T.cjs +1 -0
- package/components/{CasinoHeaderControllerNd-Bj0vkyt0.js → CasinoHeaderControllerNd-DdRHib4Y.js} +442 -390
- package/components/{CasinoHeaderControllerNd-DNfULXvS.js → CasinoHeaderControllerNd-DeFJQOBT.js} +469 -417
- package/components/PlayerAccountBalanceModalNd-BduIv2jr.js +1553 -0
- package/components/PlayerAccountBalanceModalNd-ClQUf9hu.js +1582 -0
- package/components/PlayerAccountBalanceModalNd-DB8OTdY6.cjs +13 -0
- package/components/PlayerDeposit-D4E7B0VM.cjs +1 -0
- package/components/{PlayerDeposit-C__xk64-.js → PlayerDeposit-Dn8OMUks.js} +121 -125
- package/components/{PlayerDeposit-CmyD00QS.js → PlayerDeposit-Owd9kBaC.js} +121 -125
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/gamification-dropdown-12tdWeqm.cjs +1 -0
- package/stencil/gamification-dropdown-246b88da-BcsKYpR0.js +126 -0
- package/stencil/gamification-dropdown-246b88da-Dckk_dCi.js +144 -0
- package/stencil/gamification-dropdown-246b88da-ImWNLZys.cjs +1 -0
- package/stencil/gamification-dropdown-CGlt7V-H.js +7 -0
- package/stencil/gamification-dropdown-GR6HFAZA.js +25 -0
- package/stencil/{gamification-dropdown_4-BDv_Y1ow.cjs → gamification-dropdown_4-BwwlBsis.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-DFXXWsNB.js → gamification-dropdown_4-Denu_YbM.js} +18 -18
- package/stencil/{gamification-dropdown_4-DgJc4ulv.js → gamification-dropdown_4-QRIgZIS5.js} +18 -18
- package/stencil/{index-1ed44842-Cv2DDELg.js → index-30fda5fb-CiEO4toK.js} +170 -169
- package/stencil/index-30fda5fb-DqSvPD7T.cjs +1 -0
- package/stencil/{index-1ed44842-Cv7p6OfM.js → index-30fda5fb-XWBRFzl0.js} +303 -302
- package/stencil/{player-elevate-card-l6Kpw4ym.js → player-elevate-card-BPyvJoKU.js} +2 -2
- package/stencil/{player-elevate-card-CdmFcZg6.js → player-elevate-card-CSXjQ70j.js} +2 -2
- package/stencil/{player-elevate-card-Btncg_vx.cjs → player-elevate-card-D5kbh1fR.cjs} +1 -1
- package/stencil/{player-elevate-card-items-4e46b4c8-BDoQLG1C.js → player-elevate-card-items-be1e68f1-C-idvDlE.js} +1 -1
- package/stencil/{player-elevate-card-items-4e46b4c8-CP-E64XG.js → player-elevate-card-items-be1e68f1-CF4tyvaU.js} +1 -1
- package/stencil/{player-elevate-card-items-4e46b4c8-aapR8B2m.cjs → player-elevate-card-items-be1e68f1-CxCehVul.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-D8gCv0PA.js → player-elevate-pointcard-Baq8OlNX.js} +2 -2
- package/stencil/{player-elevate-pointcard-CcFdRk9Q.cjs → player-elevate-pointcard-DVXsZKCw.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-DOd_C-CP.js → player-elevate-pointcard-jvw6Jdcf.js} +2 -2
- package/components/CasinoHamburgerMenuNd-ByOv9WYg.js +0 -5425
- package/components/CasinoHamburgerMenuNd-C0vs2463.js +0 -5463
- package/components/CasinoHamburgerMenuNd-C_mDzbID.cjs +0 -5
- package/components/CasinoHeaderControllerNd-C0iBDw78.cjs +0 -1
- package/components/PlayerAccountBalanceModalNd-B4Yp_9Au.js +0 -1557
- package/components/PlayerAccountBalanceModalNd-CjlZ6-7s.cjs +0 -13
- package/components/PlayerAccountBalanceModalNd-bDU8dGTK.js +0 -1586
- package/components/PlayerDeposit-DGMSukDR.cjs +0 -1
- package/stencil/gamification-dropdown-370424de-CedFjFMQ.js +0 -103
- package/stencil/gamification-dropdown-370424de-G0GDuoBY.js +0 -121
- package/stencil/gamification-dropdown-370424de-pf_jqgr1.cjs +0 -1
- package/stencil/gamification-dropdown-BhM9nF9V.js +0 -25
- package/stencil/gamification-dropdown-CnI6W6X-.js +0 -7
- package/stencil/gamification-dropdown-Dy-qtuaZ.cjs +0 -1
- package/stencil/index-1ed44842-Dr1nsipr.cjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-C_mDzbID.cjs");function x(n,t){e.addMessages(n,t)}function A(n){e.$locale.set(n)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function W(n){e.append_styles(n,"svelte-lvm6lo","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function j(n){let t,a,l,r,c,m,d,h,f,o,s=n[4]("titleDeposit")+"",p,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),p=e.text(s),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,h),e.append(t,f),e.append(t,o),e.append(o,p),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(p,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function N(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&j(n);function h(s,p){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,p){e.insert(s,t,p),d&&d.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[p]){s[5]&&d.p(s,p),p&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,p):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),p&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),o.d(),n[18](null)}}}function q(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:p=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(p).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{A(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,p=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&p&&R(),n.$$.dirty&69504&&m&&d&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,d,h,f,o,s,p,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,N,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { r as p, h as s, g as d } from "./index-1ed44842-Cv2DDELg.js";
|
|
2
|
-
const g = "en";
|
|
3
|
-
let a = {
|
|
4
|
-
en: {
|
|
5
|
-
gamificationNoPoints: "No points"
|
|
6
|
-
},
|
|
7
|
-
de: {
|
|
8
|
-
gamificationNoPoints: "No points"
|
|
9
|
-
},
|
|
10
|
-
ro: {
|
|
11
|
-
gamificationNoPoints: "No points"
|
|
12
|
-
},
|
|
13
|
-
fr: {
|
|
14
|
-
gamificationNoPoints: "No points"
|
|
15
|
-
},
|
|
16
|
-
ar: {
|
|
17
|
-
gamificationNoPoints: "No points"
|
|
18
|
-
},
|
|
19
|
-
hr: {
|
|
20
|
-
gamificationNoPoints: "No points"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const h = (e) => new Promise((t) => {
|
|
24
|
-
fetch(e).then((i) => i.json()).then((i) => {
|
|
25
|
-
Object.keys(i).forEach((n) => {
|
|
26
|
-
a[n] || (a[n] = {});
|
|
27
|
-
for (let l in i[n])
|
|
28
|
-
a[n][l] = i[n][l];
|
|
29
|
-
}), t(!0);
|
|
30
|
-
});
|
|
31
|
-
}), f = (e, t) => {
|
|
32
|
-
const i = t;
|
|
33
|
-
return a[i !== void 0 && i in a ? i : g][e];
|
|
34
|
-
}, m = ":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}", y = m, u = class {
|
|
35
|
-
constructor(e) {
|
|
36
|
-
p(this, e), this.language = "en", this.session = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.stylingAppends = !1, this.setClientStyling = () => {
|
|
37
|
-
let t = document.createElement("style");
|
|
38
|
-
t.innerHTML = this.clientStyling, this.stylingContainer.prepend(t);
|
|
39
|
-
}, this.setClientStylingURL = () => {
|
|
40
|
-
let t = new URL(this.clientStylingUrl), i = document.createElement("style");
|
|
41
|
-
fetch(t.href).then((n) => n.text()).then((n) => {
|
|
42
|
-
i.innerHTML = n, setTimeout(() => {
|
|
43
|
-
this.stylingContainer.prepend(i);
|
|
44
|
-
}, 1);
|
|
45
|
-
}).catch((n) => {
|
|
46
|
-
console.log("error ", n);
|
|
47
|
-
});
|
|
48
|
-
}, this.navigateToGamification = () => {
|
|
49
|
-
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
50
|
-
}, this.handleOutsideClick = (t) => {
|
|
51
|
-
t.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
|
|
52
|
-
}, this.handleDropdownClick = (t) => {
|
|
53
|
-
t.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
handleNewTranslations() {
|
|
57
|
-
this.isLoading = !0, h(this.translationUrl).then(() => {
|
|
58
|
-
this.isLoading = !1;
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
async componentWillLoad() {
|
|
62
|
-
if (this.translationUrl.length > 2 && await h(this.translationUrl), this.endpoint && this.language)
|
|
63
|
-
return this.fetchPointsData();
|
|
64
|
-
}
|
|
65
|
-
componentDidRender() {
|
|
66
|
-
!this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
|
|
67
|
-
}
|
|
68
|
-
fetchPointsData() {
|
|
69
|
-
let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
|
|
70
|
-
e.searchParams.append("language", this.language);
|
|
71
|
-
const t = new Headers();
|
|
72
|
-
t.append("X-SessionId", this.session);
|
|
73
|
-
const i = {
|
|
74
|
-
method: "GET",
|
|
75
|
-
headers: t
|
|
76
|
-
};
|
|
77
|
-
return new Promise((n, l) => {
|
|
78
|
-
this.isLoading = !0, fetch(e.href, i).then((o) => o.json()).then((o) => {
|
|
79
|
-
var r, c;
|
|
80
|
-
this.loyaltyPoints = (c = (r = o?.data) === null || r === void 0 ? void 0 : r.level) === null || c === void 0 ? void 0 : c.loyaltyPoints, n(!0);
|
|
81
|
-
}).catch((o) => {
|
|
82
|
-
console.error(o), l(o);
|
|
83
|
-
}).finally(() => {
|
|
84
|
-
this.isLoading = !1;
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
render() {
|
|
89
|
-
return this.isLoading ? null : s("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, s("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : f("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", s("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, s("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 && s("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, s("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })));
|
|
90
|
-
}
|
|
91
|
-
get el() {
|
|
92
|
-
return d(this);
|
|
93
|
-
}
|
|
94
|
-
static get watchers() {
|
|
95
|
-
return {
|
|
96
|
-
translationUrl: ["handleNewTranslations"]
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
u.style = y;
|
|
101
|
-
export {
|
|
102
|
-
u as G
|
|
103
|
-
};
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
var d = (e, i, t) => new Promise((n, s) => {
|
|
2
|
-
var o = (l) => {
|
|
3
|
-
try {
|
|
4
|
-
a(t.next(l));
|
|
5
|
-
} catch (p) {
|
|
6
|
-
s(p);
|
|
7
|
-
}
|
|
8
|
-
}, c = (l) => {
|
|
9
|
-
try {
|
|
10
|
-
a(t.throw(l));
|
|
11
|
-
} catch (p) {
|
|
12
|
-
s(p);
|
|
13
|
-
}
|
|
14
|
-
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, c);
|
|
15
|
-
a((t = t.apply(e, i)).next());
|
|
16
|
-
});
|
|
17
|
-
import { r as f, h as r, g as m } from "./index-1ed44842-Cv7p6OfM.js";
|
|
18
|
-
const y = "en";
|
|
19
|
-
let h = {
|
|
20
|
-
en: {
|
|
21
|
-
gamificationNoPoints: "No points"
|
|
22
|
-
},
|
|
23
|
-
de: {
|
|
24
|
-
gamificationNoPoints: "No points"
|
|
25
|
-
},
|
|
26
|
-
ro: {
|
|
27
|
-
gamificationNoPoints: "No points"
|
|
28
|
-
},
|
|
29
|
-
fr: {
|
|
30
|
-
gamificationNoPoints: "No points"
|
|
31
|
-
},
|
|
32
|
-
ar: {
|
|
33
|
-
gamificationNoPoints: "No points"
|
|
34
|
-
},
|
|
35
|
-
hr: {
|
|
36
|
-
gamificationNoPoints: "No points"
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const g = (e) => new Promise((i) => {
|
|
40
|
-
fetch(e).then((t) => t.json()).then((t) => {
|
|
41
|
-
Object.keys(t).forEach((n) => {
|
|
42
|
-
h[n] || (h[n] = {});
|
|
43
|
-
for (let s in t[n])
|
|
44
|
-
h[n][s] = t[n][s];
|
|
45
|
-
}), i(!0);
|
|
46
|
-
});
|
|
47
|
-
}), u = (e, i) => {
|
|
48
|
-
const t = i;
|
|
49
|
-
return h[t !== void 0 && t in h ? t : y][e];
|
|
50
|
-
}, w = ":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}", v = w, D = class {
|
|
51
|
-
constructor(e) {
|
|
52
|
-
f(this, e), this.language = "en", this.session = "", this.clientStyling = "", this.clientStylingUrl = "", this.translationUrl = "", this.isOpen = !1, this.isLoading = !1, this.stylingAppends = !1, this.setClientStyling = () => {
|
|
53
|
-
let i = document.createElement("style");
|
|
54
|
-
i.innerHTML = this.clientStyling, this.stylingContainer.prepend(i);
|
|
55
|
-
}, this.setClientStylingURL = () => {
|
|
56
|
-
let i = new URL(this.clientStylingUrl), t = document.createElement("style");
|
|
57
|
-
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
58
|
-
t.innerHTML = n, setTimeout(() => {
|
|
59
|
-
this.stylingContainer.prepend(t);
|
|
60
|
-
}, 1);
|
|
61
|
-
}).catch((n) => {
|
|
62
|
-
console.log("error ", n);
|
|
63
|
-
});
|
|
64
|
-
}, this.navigateToGamification = () => {
|
|
65
|
-
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
66
|
-
}, this.handleOutsideClick = (i) => {
|
|
67
|
-
i.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
|
|
68
|
-
}, this.handleDropdownClick = (i) => {
|
|
69
|
-
i.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
handleNewTranslations() {
|
|
73
|
-
this.isLoading = !0, g(this.translationUrl).then(() => {
|
|
74
|
-
this.isLoading = !1;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
componentWillLoad() {
|
|
78
|
-
return d(this, null, function* () {
|
|
79
|
-
if (this.translationUrl.length > 2 && (yield g(this.translationUrl)), this.endpoint && this.language)
|
|
80
|
-
return this.fetchPointsData();
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
componentDidRender() {
|
|
84
|
-
!this.stylingAppends && this.stylingContainer && (this.clientStyling && this.setClientStyling(), this.clientStylingUrl && this.setClientStylingURL(), this.stylingAppends = !0);
|
|
85
|
-
}
|
|
86
|
-
fetchPointsData() {
|
|
87
|
-
let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
|
|
88
|
-
e.searchParams.append("language", this.language);
|
|
89
|
-
const i = new Headers();
|
|
90
|
-
i.append("X-SessionId", this.session);
|
|
91
|
-
const t = {
|
|
92
|
-
method: "GET",
|
|
93
|
-
headers: i
|
|
94
|
-
};
|
|
95
|
-
return new Promise((n, s) => {
|
|
96
|
-
this.isLoading = !0, fetch(e.href, t).then((o) => o.json()).then((o) => {
|
|
97
|
-
var c, a;
|
|
98
|
-
this.loyaltyPoints = (a = (c = o == null ? void 0 : o.data) === null || c === void 0 ? void 0 : c.level) === null || a === void 0 ? void 0 : a.loyaltyPoints, n(!0);
|
|
99
|
-
}).catch((o) => {
|
|
100
|
-
console.error(o), s(o);
|
|
101
|
-
}).finally(() => {
|
|
102
|
-
this.isLoading = !1;
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
return this.isLoading ? null : r("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : u("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", r("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, r("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 && r("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, r("player-elevate-loyaltycard", { endpoint: this.endpoint, session: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "client-styling": this.clientStyling })));
|
|
108
|
-
}
|
|
109
|
-
get el() {
|
|
110
|
-
return m(this);
|
|
111
|
-
}
|
|
112
|
-
static get watchers() {
|
|
113
|
-
return {
|
|
114
|
-
translationUrl: ["handleNewTranslations"]
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
D.style = v;
|
|
119
|
-
export {
|
|
120
|
-
D as G
|
|
121
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var p=(e,t,i)=>new Promise((n,a)=>{var o=r=>{try{l(i.next(r))}catch(d){a(d)}},c=r=>{try{l(i.throw(r))}catch(d){a(d)}},l=r=>r.done?n(r.value):Promise.resolve(r.value).then(o,c);l((i=i.apply(e,t)).next())});const s=require("./index-1ed44842-Dr1nsipr.cjs"),m="en";let h={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const g=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(n=>{h[n]||(h[n]={});for(let a in i[n])h[n][a]=i[n][a]}),t(!0)})}),u=(e,t)=>{const i=t;return h[i!==void 0&&i in h?i:m][e]},y=":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}",w=y,f=class{constructor(e){s.registerInstance(this,e),this.language="en",this.session="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),i=document.createElement("style");fetch(t.href).then(n=>n.text()).then(n=>{i.innerHTML=n,setTimeout(()=>{this.stylingContainer.prepend(i)},1)}).catch(n=>{console.log("error ",n)})},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)}}handleNewTranslations(){this.isLoading=!0,g(this.translationUrl).then(()=>{this.isLoading=!1})}componentWillLoad(){return p(this,null,function*(){if(this.translationUrl.length>2&&(yield g(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidRender(){!this.stylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const i={method:"GET",headers:t};return new Promise((n,a)=>{this.isLoading=!0,fetch(e.href,i).then(o=>o.json()).then(o=>{var c,l;this.loyaltyPoints=(l=(c=o==null?void 0:o.data)===null||c===void 0?void 0:c.level)===null||l===void 0?void 0:l.loyaltyPoints,n(!0)}).catch(o=>{console.error(o),a(o)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:s.h("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},s.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:e=>this.handleDropdownClick(e),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):u("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",s.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},s.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},s.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&&s.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},s.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling})))}get el(){return s.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};f.style=w;exports.GamificationDropdown=f;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var o = (a, n, t) => new Promise((s, i) => {
|
|
2
|
-
var p = (e) => {
|
|
3
|
-
try {
|
|
4
|
-
l(t.next(e));
|
|
5
|
-
} catch (r) {
|
|
6
|
-
i(r);
|
|
7
|
-
}
|
|
8
|
-
}, d = (e) => {
|
|
9
|
-
try {
|
|
10
|
-
l(t.throw(e));
|
|
11
|
-
} catch (r) {
|
|
12
|
-
i(r);
|
|
13
|
-
}
|
|
14
|
-
}, l = (e) => e.done ? s(e.value) : Promise.resolve(e.value).then(p, d);
|
|
15
|
-
l((t = t.apply(a, n)).next());
|
|
16
|
-
});
|
|
17
|
-
import { b as y, p as g } from "./index-1ed44842-Cv7p6OfM.js";
|
|
18
|
-
import { g as v } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
19
|
-
var c = () => {
|
|
20
|
-
const a = import.meta.url, n = {};
|
|
21
|
-
return a !== "" && (n.resourcesUrl = new URL(".", a).href), g(n);
|
|
22
|
-
};
|
|
23
|
-
c().then((a) => o(void 0, null, function* () {
|
|
24
|
-
return yield v(), y([["gamification-dropdown_4", [[1, "gamification-dropdown", { endpoint: [513], language: [513], session: [513], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], isOpen: [32], isLoading: [32], stylingAppends: [32], loyaltyPoints: [32] }, null, { translationUrl: ["handleNewTranslations"] }], [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"], 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"] }], [4, "general-styling-wrapper", { clientStyling: [1, "client-styling"], clientStylingUrl: [1, "client-styling-url"], translationUrl: [1, "translation-url"], targetTranslations: [16] }], [0, "player-elevate-card-data", { params: [8], playerElevateLevel: [32], pointExpireString: [32] }, [[9, "resize", "handleWindowResizs"], [8, "redeemGiftButton", "redeemGiftButtonHandler"]], { params: ["onParamsChanged"] }]]], ["player-elevate-card", [[1, "player-elevate-card", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerLevelFlag: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]], ["player-elevate-pointcard", [[1, "player-elevate-pointcard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], cardTitle: [513, "card-title"], buttonType: [513, "button-type"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32], elevateSPTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]]], a);
|
|
25
|
-
}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { b as n, p as t } from "./index-1ed44842-Cv2DDELg.js";
|
|
2
|
-
import { g as l } from "./app-globals-0f993ce5-D-kw1sls.js";
|
|
3
|
-
var r = () => {
|
|
4
|
-
const e = import.meta.url, a = {};
|
|
5
|
-
return e !== "" && (a.resourcesUrl = new URL(".", e).href), t(a);
|
|
6
|
-
};
|
|
7
|
-
r().then(async (e) => (await l(), n([["gamification-dropdown_4", [[1, "gamification-dropdown", { endpoint: [513], language: [513], session: [513], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], isOpen: [32], isLoading: [32], stylingAppends: [32], loyaltyPoints: [32] }, null, { translationUrl: ["handleNewTranslations"] }], [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"], 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"] }], [4, "general-styling-wrapper", { clientStyling: [1, "client-styling"], clientStylingUrl: [1, "client-styling-url"], translationUrl: [1, "translation-url"], targetTranslations: [16] }], [0, "player-elevate-card-data", { params: [8], playerElevateLevel: [32], pointExpireString: [32] }, [[9, "resize", "handleWindowResizs"], [8, "redeemGiftButton", "redeemGiftButtonHandler"]], { params: ["onParamsChanged"] }]]], ["player-elevate-card", [[1, "player-elevate-card", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerLevelFlag: [32], playerElevateLevel: [32], elevateWalletTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]], ["player-elevate-pointcard", [[1, "player-elevate-pointcard", { endpoint: [513], theme: [513], session: [513], playerAvatarUrl: [513, "player-avatar-url"], language: [513], playerName: [513, "player-name"], cardTitle: [513, "card-title"], buttonType: [513, "button-type"], dateFormat: [513, "date-format"], clientStyling: [513, "client-styling"], clientStylingUrl: [513, "client-styling-url"], translationUrl: [513, "translation-url"], pointExpireString: [32], playerElevateLevel: [32], elevateWalletTotal: [32], elevateSPTotal: [32] }, [[0, "playerElevateLeveLoaded", "playerElevateLeveLoadedHandler"]], { session: ["onSessionOrEndpointChange"], endpoint: ["onSessionOrEndpointChange"], language: ["onSessionOrEndpointChange"] }]]]], e)));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var s=(n,a,t)=>new Promise((d,o)=>{var y=e=>{try{l(t.next(e))}catch(r){o(r)}},g=e=>{try{l(t.throw(e))}catch(r){o(r)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(y,g);l((t=t.apply(n,a)).next())});const p=require("./index-1ed44842-Dr1nsipr.cjs"),c=require("./app-globals-0f993ce5-sCt45RkC.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-Dy-qtuaZ.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),p.promiseResolve(a)};u().then(n=>s(exports,null,function*(){return yield c.globalScripts(),p.bootstrapLazy([["gamification-dropdown_4",[[1,"gamification-dropdown",{endpoint:[513],language:[513],session:[513],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],isOpen:[32],isLoading:[32],stylingAppends:[32],loyaltyPoints:[32]},null,{translationUrl:["handleNewTranslations"]}],[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"],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"]}],[4,"general-styling-wrapper",{clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[1,"translation-url"],targetTranslations:[16]}],[0,"player-elevate-card-data",{params:[8],playerElevateLevel:[32],pointExpireString:[32]},[[9,"resize","handleWindowResizs"],[8,"redeemGiftButton","redeemGiftButtonHandler"]],{params:["onParamsChanged"]}]]],["player-elevate-card",[[1,"player-elevate-card",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerLevelFlag:[32],playerElevateLevel:[32],elevateWalletTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]],["player-elevate-pointcard",[[1,"player-elevate-pointcard",{endpoint:[513],theme:[513],session:[513],playerAvatarUrl:[513,"player-avatar-url"],language:[513],playerName:[513,"player-name"],cardTitle:[513,"card-title"],buttonType:[513,"button-type"],dateFormat:[513,"date-format"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],pointExpireString:[32],playerElevateLevel:[32],elevateWalletTotal:[32],elevateSPTotal:[32]},[[0,"playerElevateLeveLoaded","playerElevateLeveLoadedHandler"]],{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}]]]],n)}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var qe=Object.defineProperty;var le=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var ie=(e,t,s)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,oe=(e,t)=>{for(var s in t||(t={}))Be.call(t,s)&&ie(e,s,t[s]);if(le)for(var s of le(t))De.call(t,s)&&ie(e,s,t[s]);return e};var H=(e,t,s)=>new Promise((n,r)=>{var i=$=>{try{l(s.next($))}catch(c){r(c)}},a=$=>{try{l(s.throw($))}catch(c){r(c)}},l=$=>$.done?n($.value):Promise.resolve($.value).then(i,a);l((s=s.apply(e,t)).next())});const Ce="gamification-dropdown",I={experimentalSlotFixes:!1,hydratedSelectorName:"hydrated",lazyLoad:!0,slotRelocation:!0,updatable:!0};var Fe=Object.defineProperty,We=(e,t)=>{for(var s in t)Fe(e,s,{get:t[s],enumerable:!0})},Ge="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml",N=new WeakMap,L=e=>N.get(e),Xe=(e,t)=>{N.set(t.$lazyInstance$=e,t)},Je=(e,t)=>{const s={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return s.$onReadyPromise$=new Promise(r=>s.$onReadyResolve$=r),e["s-p"]=[],e["s-rc"]=[],N.set(e,s)},ae=(e,t)=>t in e,x=(e,t)=>(0,console.error)(e,t),G=new Map,Ke=(e,t,s)=>{const n=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=G.get(r);if(i)return i[n];{const a=l=>(G.set(r,l),l[n]);switch(r){case"gamification-dropdown_4":return Promise.resolve().then(()=>require("./gamification-dropdown_4-BDv_Y1ow.cjs")).then(a,x);case"player-elevate-card":return Promise.resolve().then(()=>require("./player-elevate-card-Btncg_vx.cjs")).then(a,x);case"player-elevate-pointcard":return Promise.resolve().then(()=>require("./player-elevate-pointcard-CcFdRk9Q.cjs")).then(a,x)}}return import(`./${r}.entry.js`).then(a=>(G.set(r,a),a[n]),a=>{x(a,t.$hostElement$)})},q=new Map,Qe="sty-id",Ze="{visibility:hidden}.hydrated{visibility:inherit}",pe="slot-fb{display:contents}slot-fb[hidden]{display:none}",A=typeof window!="undefined"?window:{},k=A.document||{head:{}},v={$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)},Me=(()=>{let e=!1;try{k.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(t){}return e})(),ge=e=>Promise.resolve(e),ye=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),X=!1,$e=[],Se=[],Ne=(e,t)=>s=>{e.push(s),X||(X=!0,v.$flags$&4?V(J):v.raf(J))},ce=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){x(s)}e.length=0},J=()=>{ce($e),ce(Se),(X=$e.length>0)&&v.raf(J)},V=e=>ge().then(e),Ve=Ne(Se),et=e=>{const t=new URL(e,v.$resourcesUrl$);return t.origin!==A.location.origin?t.href:t.pathname},ee=e=>(e=typeof e,e==="object"||e==="function");function Ee(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 tt={};We(tt,{err:()=>ke,map:()=>st,ok:()=>K,unwrap:()=>nt,unwrapErr:()=>rt});var K=e=>({isOk:!0,isErr:!1,value:e}),ke=e=>({isOk:!1,isErr:!0,value:e});function st(e,t){if(e.isOk){const s=t(e.value);return s instanceof Promise?s.then(n=>K(n)):K(s)}if(e.isErr){const s=e.value;return ke(s)}throw"should never get here"}var nt=e=>{if(e.isOk)return e.value;throw e.value},rt=e=>{if(e.isErr)return e.value;throw e.value},_e=e=>{const t=e.__childNodes||e.childNodes;e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Te(t,e.tagName).forEach(s=>{var n;s.nodeType===1&&s.tagName==="SLOT-FB"&&((n=lt(s,s["s-sn"],!1))!=null&&n.length?s.hidden=!0:s.hidden=!1)});for(const s of t)s.nodeType===1&&(s.__childNodes||s.childNodes).length&&_e(s)};function Te(e,t,s){let n=0,r=[],i;for(;n<e.length;n++)i=e[n],i["s-sr"]&&i["s-hn"]===t&&s===void 0&&r.push(i),r=[...r,...Te(i.childNodes,t,s)];return r}var lt=(e,t,s=!0)=>{const n=[];for((s&&e["s-sr"]||!e["s-sr"])&&n.push(e);(e=e.nextSibling)&&e["s-sn"]===t;)n.push(e);return n},fe=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",w=(e,t="")=>()=>{},it=(e,t)=>()=>{},te=(e,t,...s)=>{let n=null,r=null,i=null,a=!1,l=!1;const $=[],c=d=>{for(let o=0;o<d.length;o++)n=d[o],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!ee(n))&&(n=String(n)),a&&l?$[$.length-1].$text$+=n:$.push(a?B(null,n):n),l=a)};if(c(s),t){t.key&&(r=t.key),t.name&&(i=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter(o=>d[o]).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,$,$t);const f=B(e,null);return f.$attrs$=t,$.length>0&&(f.$children$=$),f.$key$=r,f.$name$=i,f},B=(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},ot={},at=e=>e&&e.$tag$===ot,$t={forEach:(e,t)=>e.map(de).forEach(t),map:(e,t)=>e.map(de).map(t).map(ct)},de=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),ct=e=>{if(typeof e.vtag=="function"){const s=oe({},e.vattrs);return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),te(e.vtag,s,...e.vchildren||[])}const t=B(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},Q=(e,t)=>e!=null&&!ee(e)&&t&1?String(e):e,Le=e=>L(e).$hostElement$,ft=(e,t,s)=>{const n=Le(e);return{emit:r=>xe(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:r})}},xe=(e,t,s)=>{const n=v.ce(t,s);return e.dispatchEvent(n),n},m=new WeakMap,dt=(e,t,s)=>{let n=q.get(e);ye&&s?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,q.set(e,n)},ut=(e,t,s)=>{var n;const r=be(t),i=q.get(r);if(e=e.nodeType===11?e:k,i)if(typeof i=="string"){e=e.head||e;let a=m.get(e),l;if(a||m.set(e,a=new Set),!a.has(r)){{l=document.querySelector(`[${Qe}="${r}"]`)||k.createElement("style"),l.innerHTML=i;const $=(n=v.$nonce$)!=null?n:Ee(k);if($!=null&&l.setAttribute("nonce",$),!(t.$flags$&1))if(e.nodeName==="HEAD"){const c=e.querySelectorAll("link[rel=preconnect]"),f=c.length>0?c[c.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e)if(ye){const c=new CSSStyleSheet;c.replaceSync(i),e.adoptedStyleSheets=[c,...e.adoptedStyleSheets]}else{const c=e.querySelector("style");c?c.innerHTML=i+c.innerHTML:e.prepend(l)}else e.append(l);t.$flags$&1&&e.insertBefore(l,null)}t.$flags$&4&&(l.innerHTML+=pe),a&&a.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},ht=e=>{const t=e.$cmpMeta$,s=e.$hostElement$,n=t.$flags$,r=w("attachStyles",t.$tagName$),i=ut(s.shadowRoot?s.shadowRoot:s.getRootNode(),t);(n&10&&n&2||n&128)&&(s["s-sc"]=i,s.classList.add(i+"-h")),r()},be=(e,t)=>"sc-"+e.$tagName$,ue=(e,t,s,n,r,i,a)=>{if(s!==n){let l=ae(e,t),$=t.toLowerCase();if(t==="class"){const c=e.classList,f=he(s);let d=he(n);c.remove(...f.filter(o=>o&&!d.includes(o))),c.add(...d.filter(o=>o&&!f.includes(o)))}else if(t==="style"){for(const c in s)(!n||n[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(const c in n)(!s||n[c]!==s[c])&&(c.includes("-")?e.style.setProperty(c,n[c]):e.style[c]=n[c])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):ae(A,$)?t=$.slice(2):t=$[2]+t.slice(3),s||n){const c=t.endsWith(we);t=t.replace(pt,""),s&&v.rel(e,t,s,c),n&&v.ael(e,t,n,c)}}else{const c=ee(n);if((l||c&&n!==null)&&!r)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const f=n==null?"":n;t==="list"?l=!1:(s==null||e[t]!=f)&&(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch(f){}n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!c&&(n=n===!0?"":n,e.setAttribute(t,n))}}},vt=/\s/,he=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),!e||typeof e!="string"?[]:e.split(vt)),we="Capture",pt=new RegExp(we+"$"),Pe=(e,t,s,n)=>{const r=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||{},a=t.$attrs$||{};for(const l of ve(Object.keys(i)))l in a||ue(r,l,i[l],void 0,s,t.$flags$);for(const l of ve(Object.keys(a)))ue(r,l,i[l],a[l],s,t.$flags$)};function ve(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var Z,W,D=!1,C=!1,se=!1,E=!1,F=(e,t,s)=>{var n;const r=t.$children$[s];let i=0,a,l,$;if(D||(se=!0,r.$tag$==="slot"&&(r.$flags$|=r.$children$?2:1)),r.$text$!==null)a=r.$elm$=k.createTextNode(r.$text$);else if(r.$flags$&1)a=r.$elm$=k.createTextNode("");else{if(E||(E=r.$tag$==="svg"),a=r.$elm$=k.createElementNS(E?Ge:Ye,!D&&I.slotRelocation&&r.$flags$&2?"slot-fb":r.$tag$),E&&r.$tag$==="foreignObject"&&(E=!1),Pe(null,r,E),r.$children$)for(i=0;i<r.$children$.length;++i)l=F(e,r,i),l&&a.appendChild(l);r.$tag$==="svg"?E=!1:a.tagName==="foreignObject"&&(E=!0)}return a["s-hn"]=W,r.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=Z,a["s-sn"]=r.$name$||"",a["s-rf"]=(n=r.$attrs$)==null?void 0:n.ref,$=e&&e.$children$&&e.$children$[s],$&&$.$tag$===r.$tag$&&e.$elm$&&j(e.$elm$,!1)),a},j=(e,t)=>{v.$flags$|=1;const s=Array.from(e.__childNodes||e.childNodes);e["s-sr"]&&I.experimentalSlotFixes;for(let n=s.length-1;n>=0;n--){const r=s[n];r["s-hn"]!==W&&r["s-ol"]&&(P(R(r).parentNode,r,R(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,se=!0),t&&j(r,t)}v.$flags$&=-2},Oe=(e,t,s,n,r,i)=>{let a=e["s-cr"]&&e["s-cr"].parentNode||e,l;for(a.shadowRoot&&a.tagName===W&&(a=a.shadowRoot);r<=i;++r)n[r]&&(l=F(null,s,r),l&&(n[r].$elm$=l,P(a,l,R(t))))},me=(e,t,s)=>{for(let n=t;n<=s;++n){const r=e[n];if(r){const i=r.$elm$;je(r),i&&(C=!0,i["s-ol"]?i["s-ol"].remove():j(i,!0),i.remove())}}},gt=(e,t,s,n,r=!1)=>{let i=0,a=0,l=0,$=0,c=t.length-1,f=t[0],d=t[c],o=n.length-1,u=n[0],h=n[o],p,S;for(;i<=c&&a<=o;)if(f==null)f=t[++i];else if(d==null)d=t[--c];else if(u==null)u=n[++a];else if(h==null)h=n[--o];else if(U(f,u,r))O(f,u,r),f=t[++i],u=n[++a];else if(U(d,h,r))O(d,h,r),d=t[--c],h=n[--o];else if(U(f,h,r))(f.$tag$==="slot"||h.$tag$==="slot")&&j(f.$elm$.parentNode,!1),O(f,h,r),P(e,f.$elm$,d.$elm$.nextSibling),f=t[++i],h=n[--o];else if(U(d,u,r))(f.$tag$==="slot"||h.$tag$==="slot")&&j(d.$elm$.parentNode,!1),O(d,u,r),P(e,d.$elm$,f.$elm$),d=t[--c],u=n[++a];else{for(l=-1,$=i;$<=c;++$)if(t[$]&&t[$].$key$!==null&&t[$].$key$===u.$key$){l=$;break}l>=0?(S=t[l],S.$tag$!==u.$tag$?p=F(t&&t[a],s,l):(O(S,u,r),t[l]=void 0,p=S.$elm$),u=n[++a]):(p=F(t&&t[a],s,a),u=n[++a]),p&&P(R(f.$elm$).parentNode,p,R(f.$elm$))}i>c?Oe(e,n[o+1]==null?null:n[o+1].$elm$,s,n,a,o):a>o&&me(t,i,c)},U=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?e.$name$===t.$name$:s?(s&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0):e.$key$===t.$key$:!1,R=e=>e&&e["s-ol"]||e,O=(e,t,s=!1)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,a=t.$tag$,l=t.$text$;let $;l===null?(E=a==="svg"?!0:a==="foreignObject"?!1:E,a==="slot"&&!D||Pe(e,t,E),r!==null&&i!==null?gt(n,r,t,i,s):i!==null?(e.$text$!==null&&(n.textContent=""),Oe(n,null,t,i,0,i.length-1)):!s&&I.updatable&&r!==null&&me(r,0,r.length-1),E&&a==="svg"&&(E=!1)):($=n["s-cr"])?$.parentNode.textContent=l:e.$text$!==l&&(n.data=l)},b=[],Ae=e=>{let t,s,n;const r=e.__childNodes||e.childNodes;for(const i of r){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==i["s-hn"])if(fe(t,a)){let l=b.find($=>$.$nodeToRelocate$===t);C=!0,t["s-sn"]=t["s-sn"]||a,l?(l.$nodeToRelocate$["s-sh"]=i["s-hn"],l.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],b.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&b.map($=>{fe($.$nodeToRelocate$,t["s-sn"])&&(l=b.find(c=>c.$nodeToRelocate$===t),l&&!$.$slotRefNode$&&($.$slotRefNode$=l.$slotRefNode$))})}else b.some(l=>l.$nodeToRelocate$===t)||b.push({$nodeToRelocate$:t})}i.nodeType===1&&Ae(i)}},je=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(je)},P=(e,t,s)=>e==null?void 0:e.insertBefore(t,s),yt=(e,t,s=!1)=>{var n,r,i,a;const l=e.$hostElement$,$=e.$cmpMeta$,c=e.$vnode$||B(null,null),f=at(t)?t:te(null,null,t);if(W=l.tagName,$.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},$.$attrsToReflect$.map(([d,o])=>f.$attrs$[o]=l[d])),s&&f.$attrs$)for(const d of Object.keys(f.$attrs$))l.hasAttribute(d)&&!["key","ref","style","class"].includes(d)&&(f.$attrs$[d]=l[d]);f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=c.$elm$=l.shadowRoot||l,D=!!($.$flags$&1)&&!($.$flags$&128),Z=l["s-cr"],C=!1,O(c,f,s);{if(v.$flags$|=1,se){Ae(f.$elm$);for(const d of b){const o=d.$nodeToRelocate$;if(!o["s-ol"]){const u=k.createTextNode("");u["s-nr"]=o,P(o.parentNode,o["s-ol"]=u,o)}}for(const d of b){const o=d.$nodeToRelocate$,u=d.$slotRefNode$;if(u){const h=u.parentNode;let p=u.nextSibling;{let _=(n=o["s-ol"])==null?void 0:n.previousSibling;for(;_;){let y=(r=_["s-nr"])!=null?r:null;if(y&&y["s-sn"]===o["s-sn"]&&h===(y.__parentNode||y.parentNode)){for(y=y.nextSibling;y===o||y!=null&&y["s-sr"];)y=y==null?void 0:y.nextSibling;if(!y||!y["s-nr"]){p=y;break}}_=_.previousSibling}}const S=o.__parentNode||o.parentNode,g=o.__nextSibling||o.nextSibling;(!p&&h!==S||g!==p)&&o!==p&&(!o["s-hn"]&&o["s-ol"]&&(o["s-hn"]=o["s-ol"].parentNode.nodeName),P(h,o,p),o.nodeType===1&&o.tagName!=="SLOT-FB"&&(o.hidden=(i=o["s-ih"])!=null?i:!1)),o&&typeof u["s-rf"]=="function"&&u["s-rf"](o)}else o.nodeType===1&&(s&&(o["s-ih"]=(a=o.hidden)!=null?a:!1),o.hidden=!0)}}C&&_e(f.$elm$),v.$flags$&=-2,b.length=0}Z=void 0},Re=(e,t)=>{if(t&&!e.$onRenderResolve$&&t["s-p"]){const s=t["s-p"].push(new Promise(n=>e.$onRenderResolve$=()=>{t["s-p"].splice(s-1,1),n()}))}},ne=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return Re(e,e.$ancestorComponent$),Ve(()=>St(e,t))},St=(e,t)=>{const s=e.$hostElement$,n=w("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 i;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([a,l])=>M(r,a,l,s)),e.$queuedListeners$=void 0),i=M(r,"componentWillLoad",void 0,s)),n(),Et(i,()=>_t(e,r,t))},Et=(e,t)=>kt(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),kt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",_t=(e,t,s)=>H(exports,null,function*(){var n;const r=e.$hostElement$,i=w("update",e.$cmpMeta$.$tagName$),a=r["s-rc"];s&&ht(e);const l=w("render",e.$cmpMeta$.$tagName$);Tt(e,t,r,s),a&&(a.map($=>$()),r["s-rc"]=void 0),l(),i();{const $=(n=r["s-p"])!=null?n:[],c=()=>Lt(e);$.length===0?c():(Promise.all($).then(c),e.$flags$|=4,$.length=0)}}),Tt=(e,t,s,n)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yt(e,t,n)}catch(r){x(r,e.$hostElement$)}return null},Lt=e=>{const t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=w("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;M(r,"componentDidRender",void 0,s),e.$flags$&64?n():(e.$flags$|=64,xt(s),n(),e.$onReadyResolve$(s),i||Ie()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&V(()=>ne(e,!1)),e.$flags$&=-517},Ie=e=>{V(()=>xe(A,"appload",{detail:{namespace:Ce}}))},M=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(r){x(r,n)}},xt=e=>{var t;return e.classList.add((t=I.hydratedSelectorName)!=null?t:"hydrated")},bt=(e,t)=>L(e).$instanceValues$.get(t),Y=(e,t,s,n)=>{const r=L(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 i=r.$hostElement$,a=r.$instanceValues$.get(t),l=r.$flags$,$=r.$lazyInstance$;s=Q(s,n.$members$[t][0]);const c=Number.isNaN(a)&&Number.isNaN(s),f=s!==a&&!c;if((!(l&8)||a===void 0)&&f&&(r.$instanceValues$.set(t,s),$)){if(n.$watchers$&&l&128){const d=n.$watchers$[t];d&&d.map(o=>{try{$[o](s,a,t)}catch(u){x(u,i)}})}(l&18)===2&&ne(r,!1)}},ze=(e,t,s)=>{var n,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const a=Object.entries((n=t.$members$)!=null?n:{});if(a.map(([l,[$]])=>{if($&31||s&2&&$&32){const{get:c,set:f}=Object.getOwnPropertyDescriptor(i,l)||{};c&&(t.$members$[l][0]|=2048),f&&(t.$members$[l][0]|=4096),(s&1||!c)&&Object.defineProperty(i,l,{get(){{if(!(t.$members$[l][0]&2048))return bt(this,l);const d=L(this),o=d?d.$lazyInstance$:i;return o?o[l]:void 0}},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(d){const o=L(this);if(f){const u=$&32?this[l]:o.$hostElement$[l];typeof u=="undefined"&&o.$instanceValues$.get(l)?d=o.$instanceValues$.get(l):!o.$instanceValues$.get(l)&&u&&o.$instanceValues$.set(l,u),f.apply(this,[Q(d,$)]),d=$&32?this[l]:o.$hostElement$[l],Y(this,l,d,t);return}{if(!(s&1)||!(t.$members$[l][0]&4096)){Y(this,l,d,t),s&1&&!o.$lazyInstance$&&o.$onReadyPromise$.then(()=>{t.$members$[l][0]&4096&&o.$lazyInstance$[l]!==o.$instanceValues$.get(l)&&(o.$lazyInstance$[l]=d)});return}const u=()=>{const h=o.$lazyInstance$[l];!o.$instanceValues$.get(l)&&h&&o.$instanceValues$.set(l,h),o.$lazyInstance$[l]=Q(d,$),Y(this,l,o.$lazyInstance$[l],t)};o.$lazyInstance$?u():o.$onReadyPromise$.then(()=>u())}}})}}),s&1){const l=new Map;i.attributeChangedCallback=function($,c,f){v.jmp(()=>{var d;const o=l.get($);if(this.hasOwnProperty(o)&&I.lazyLoad)f=this[o],delete this[o];else{if(i.hasOwnProperty(o)&&typeof this[o]=="number"&&this[o]==f)return;if(o==null){const h=L(this),p=h==null?void 0:h.$flags$;if(p&&!(p&8)&&p&128&&f!==c){const S=h.$lazyInstance$,g=(d=t.$watchers$)==null?void 0:d[$];g==null||g.forEach(_=>{S[_]!=null&&S[_].call(S,f,c,$)})}return}}const u=Object.getOwnPropertyDescriptor(i,o);f=f===null&&typeof this[o]=="boolean"?!1:f,f!==this[o]&&(!u.get||u.set)&&(this[o]=f)})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...a.filter(([$,c])=>c[0]&15).map(([$,c])=>{var f;const d=c[1]||$;return l.set(d,$),c[0]&512&&((f=t.$attrsToReflect$)==null||f.push([$,d])),d})]))}}return e},wt=(e,t,s,n)=>H(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,s.$lazyBundleId$){const $=Ke(s,t);if($&&"then"in $){const f=it();r=yield $,f()}else r=$;if(!r)throw new Error(`Constructor for "${s.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(s.$watchers$=r.watchers,ze(r,s,2),r.isProxied=!0);const c=w("createInstance",s.$tagName$);t.$flags$|=8;try{new r(t)}catch(f){x(f,e)}t.$flags$&=-9,t.$flags$|=128,c()}else{r=e.constructor;const $=e.localName;customElements.whenDefined($).then(()=>t.$flags$|=128)}if(r&&r.style){let $;typeof r.style=="string"&&($=r.style);const c=be(s);if(!q.has(c)){const f=w("registerStyles",s.$tagName$);dt(c,$,!!(s.$flags$&1)),f()}}}const i=t.$ancestorComponent$,a=()=>ne(t,!0);i&&i["s-rc"]?i["s-rc"].push(a):a()}),Pt=(e,t)=>{},Ot=e=>{if(!(v.$flags$&1)){const t=L(e),s=t.$cmpMeta$,n=w("connectedCallback",s.$tagName$);if(t.$flags$&1)He(e,t,s.$listeners$),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Pt());else{t.$flags$|=1,s.$flags$&12&&mt(e);{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(t,t.$ancestorComponent$=r);break}}s.$members$&&Object.entries(s.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const a=e[r];delete e[r],e[r]=a}}),wt(e,t,s)}n()}},mt=e=>{const t=e["s-cr"]=k.createComment("");t["s-cn"]=!0,P(e,t,e.firstChild)},At=(e,t)=>{},jt=e=>H(exports,null,function*(){if(!(v.$flags$&1)){const t=L(e);t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>At())}m.has(e)&&m.delete(e),e.shadowRoot&&m.has(e.shadowRoot)&&m.delete(e.shadowRoot)}),Rt=(e,t={})=>{var s;const n=w(),r=[],i=t.exclude||[],a=A.customElements,l=k.head,$=l.querySelector("meta[charset]"),c=k.createElement("style"),f=[];let d,o=!0;Object.assign(v,t),v.$resourcesUrl$=new URL(t.resourcesUrl||"./",k.baseURI).href;let u=!1;if(e.map(h=>{h[1].map(p=>{var S;const g={$flags$:p[0],$tagName$:p[1],$members$:p[2],$listeners$:p[3]};g.$flags$&4&&(u=!0),g.$members$=p[2],g.$listeners$=p[3],g.$attrsToReflect$=[],g.$watchers$=(S=p[4])!=null?S:{};const _=g.$tagName$,y=class extends HTMLElement{constructor(T){if(super(T),this.hasRegisteredEventListeners=!1,T=this,Je(T,g),g.$flags$&1){if(!T.shadowRoot)T.attachShadow({mode:"open"});else if(T.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${g.$tagName$}! Mode is set to ${T.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){const T=L(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,He(this,T,g.$listeners$)),d&&(clearTimeout(d),d=null),o?f.push(this):v.jmp(()=>Ot(this))}disconnectedCallback(){v.jmp(()=>jt(this)),v.raf(()=>{var T;const z=L(this),re=f.findIndex(Ue=>Ue===this);re>-1&&f.splice(re,1),((T=z==null?void 0:z.$vnode$)==null?void 0:T.$elm$)instanceof Node&&!z.$vnode$.$elm$.isConnected&&delete z.$vnode$.$elm$})}componentOnReady(){return L(this).$onReadyPromise$}};g.$lazyBundleId$=h[0],!i.includes(_)&&!a.get(_)&&(r.push(_),a.define(_,ze(y,g,1)))})}),r.length>0&&(u&&(c.textContent+=pe),c.textContent+=r.sort()+Ze,c.innerHTML.length)){c.setAttribute("data-styles","");const h=(s=v.$nonce$)!=null?s:Ee(k);h!=null&&c.setAttribute("nonce",h),l.insertBefore(c,$?$.nextSibling:l.firstChild)}o=!1,f.length?f.map(h=>h.connectedCallback()):v.jmp(()=>d=setTimeout(Ie,30)),n()},It=(e,t)=>t,He=(e,t,s,n)=>{s&&s.map(([r,i,a])=>{const l=Ht(e,r),$=zt(t,a),c=Ut(r);v.ael(l,i,$,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>v.rel(l,i,$,c))})},zt=(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){x(r,e.$hostElement$)}},Ht=(e,t)=>t&8?A:e,Ut=e=>Me?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0;exports.Fragment=It;exports.bootstrapLazy=Rt;exports.createEvent=ft;exports.getAssetPath=et;exports.getElement=Le;exports.h=te;exports.promiseResolve=ge;exports.registerInstance=Xe;
|