@everymatrix/casino-header-controller-nd 1.87.26 → 1.87.27
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-CQt7cU_5.js +1227 -0
- package/components/CasinoHamburgerMenuNd-N2xG7QFL.cjs +1 -0
- package/components/CasinoHamburgerMenuNd-YZgqRfDv.js +1203 -0
- package/components/CasinoHeaderControllerNd-CQnN2JAr.js +7059 -0
- package/components/CasinoHeaderControllerNd-JnA00Nbn.cjs +18 -0
- package/components/CasinoHeaderControllerNd-gt-ehnAU.js +7112 -0
- package/components/PlayerAccountBalanceModalNd-CYMET-BN.js +1539 -0
- package/components/PlayerAccountBalanceModalNd-Ce0NBt-I.js +1568 -0
- package/components/PlayerAccountBalanceModalNd-DZlrKIv5.cjs +7 -0
- package/components/{PlayerDeposit-C910Gf1y.js → PlayerDeposit-C9l3pru-.js} +71 -71
- package/components/PlayerDeposit-C_liyHTn.cjs +1 -0
- package/components/{PlayerDeposit-qsZYITrf.js → PlayerDeposit-DLUyaREv.js} +64 -64
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +7 -7
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/casino-hamburger-menu-nd-DMNN5mMz.js +16 -0
- package/lazy/casino-hamburger-menu-nd-DpgKIaJB.js +16 -0
- package/lazy/casino-hamburger-menu-nd-ywrsru39.cjs +1 -0
- package/lazy/{gamification-dropdown-Bi2IANLw.js → gamification-dropdown-CW0O-arZ.js} +4 -4
- package/lazy/{gamification-dropdown-DYxjulrY.cjs → gamification-dropdown-Dlvfea51.cjs} +1 -1
- package/lazy/{gamification-dropdown-B9v8IDVv.js → gamification-dropdown-ZRoQGT9d.js} +4 -4
- package/lazy/{player-account-balance-modal-nd-qutnKTdV.js → player-account-balance-modal-nd-DFTAjn-5.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-gZzis_-T.js → player-account-balance-modal-nd-DHMyxNz0.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-BLdC4s3O.cjs → player-account-balance-modal-nd-Dgwo2VN9.cjs} +1 -1
- package/lazy/{player-deposit-Mn3IRhQ6.js → player-deposit-CT9RmoHB.js} +1 -1
- package/lazy/{player-deposit-BZMECdu0.js → player-deposit-DbcOiGgX.js} +1 -1
- package/lazy/{player-deposit-CgdF-jd5.cjs → player-deposit-Oe0nPYXj.cjs} +1 -1
- package/lazy/{user-deposit-withdrawal-fYrP9plZ.js → user-deposit-withdrawal-CAegaYeV.js} +1 -1
- package/lazy/{user-deposit-withdrawal-CWhRaiMB.cjs → user-deposit-withdrawal-DUMs1S3v.cjs} +1 -1
- package/lazy/{user-deposit-withdrawal-DS7RI4jZ.js → user-deposit-withdrawal-Mlqc62aZ.js} +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-B6nNHmA4.js → app-globals-0f993ce5-Cgk0KVAu.js} +2 -2
- package/stencil/{gamification-dropdown-CZtjlKmZ.js → gamification-dropdown-B4f7eEjZ.js} +3 -3
- package/stencil/gamification-dropdown-BTLPC4Rm.cjs +1 -0
- package/stencil/{gamification-dropdown-CKP2IybJ.js → gamification-dropdown-COj0tq3r.js} +3 -3
- package/stencil/gamification-dropdown-f2984ee4-Dm58Irek.js +179 -0
- package/stencil/{gamification-dropdown-92e6c856-CWsXZt6d.js → gamification-dropdown-f2984ee4-DrP1W0AD.js} +77 -68
- package/stencil/gamification-dropdown-f2984ee4-ww_Jy4Bm.cjs +1 -0
- package/stencil/{gamification-dropdown_4-pw5vcA94.cjs → gamification-dropdown_4-CtrAzWRn.cjs} +2 -2
- package/stencil/{gamification-dropdown_4-hiXX1fZJ.js → gamification-dropdown_4-DWAMFZwf.js} +11 -11
- package/stencil/{gamification-dropdown_4-BJHmIYaL.js → gamification-dropdown_4-Shm_fjxj.js} +11 -11
- package/stencil/{locale-CIZHVMDe.js → locale-Dq9tsc1e.js} +2 -2
- package/stencil/{player-elevate-card-D4O9XOE5.cjs → player-elevate-card-CCEirUx6.cjs} +1 -1
- package/stencil/{player-elevate-card-xOmP3tnZ.js → player-elevate-card-VyekC6J2.js} +3 -3
- package/stencil/{player-elevate-card-CwjSVk4Y.js → player-elevate-card-_umcmhE2.js} +3 -3
- package/stencil/{player-elevate-card-items-b4571def-Bzrr8DOK.cjs → player-elevate-card-items-b4571def-BHhNqN_3.cjs} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-DFmEuEpV.js → player-elevate-card-items-b4571def-DU9lcTpZ.js} +2 -2
- package/stencil/{player-elevate-card-items-b4571def-CKC2-tZx.js → player-elevate-card-items-b4571def-DZHLwVGG.js} +2 -2
- package/stencil/{player-elevate-pointcard-efDK9Slo.js → player-elevate-pointcard-Bm85eLkx.js} +3 -3
- package/stencil/{player-elevate-pointcard-fATBdhlF.cjs → player-elevate-pointcard-CiINDahW.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-EM9gr8Qq.js → player-elevate-pointcard-DGDk5bOl.js} +3 -3
- package/stencil/{player-rakeback-card-JDYEmJPr.cjs → player-rakeback-card-CBg2MioW.cjs} +1 -1
- package/stencil/{player-rakeback-card-CLbAOCAS.js → player-rakeback-card-DJThpjMv.js} +2 -2
- package/stencil/{player-rakeback-card-B2DAcfhw.js → player-rakeback-card-DNbifA_v.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Bgmu_v3L.js → user-deposit-withdrawal-BN_2yjKT.js} +372 -344
- package/stencil/{user-deposit-withdrawal-C1ZuOfGY.js → user-deposit-withdrawal-BNv5WcIq.js} +327 -300
- package/stencil/user-deposit-withdrawal-sqMzKClT.cjs +72 -0
- package/components/CasinoHamburgerMenuNd-BWhQR6n1.cjs +0 -18
- package/components/CasinoHamburgerMenuNd-Djtdm8EV.js +0 -5630
- package/components/CasinoHamburgerMenuNd-DqSrTenb.js +0 -5675
- package/components/CasinoHeaderControllerNd-85jjhQ5V.js +0 -2607
- package/components/CasinoHeaderControllerNd-AyjI7UNx.js +0 -2634
- package/components/CasinoHeaderControllerNd-BhUuOWgY.cjs +0 -1
- package/components/PlayerAccountBalanceModalNd-Bt6KC8-Y.js +0 -1568
- package/components/PlayerAccountBalanceModalNd-CS7pAvLM.cjs +0 -7
- package/components/PlayerAccountBalanceModalNd-DxKi3Wc0.js +0 -1539
- package/components/PlayerDeposit-BDPi60xU.cjs +0 -1
- package/lazy/casino-hamburger-menu-nd-CAOIXMkM.cjs +0 -1
- package/lazy/casino-hamburger-menu-nd-DWZz6hns.js +0 -16
- package/lazy/casino-hamburger-menu-nd-DrYJDNro.js +0 -16
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +0 -1
- package/stencil/gamification-dropdown-92e6c856-Cn77bRmD.cjs +0 -1
- package/stencil/gamification-dropdown-92e6c856-D1KFL6hq.js +0 -133
- package/stencil/gamification-dropdown-CIRqmCYR.cjs +0 -1
- package/stencil/user-deposit-withdrawal-D-OTOuVZ.cjs +0 -72
|
@@ -26,7 +26,7 @@ var pe = Object.defineProperty, he = (e, t) => {
|
|
|
26
26
|
case "user-deposit-withdrawal":
|
|
27
27
|
return import(
|
|
28
28
|
/* webpackMode: "lazy" */
|
|
29
|
-
"../stencil/user-deposit-withdrawal-
|
|
29
|
+
"../stencil/user-deposit-withdrawal-BNv5WcIq.js"
|
|
30
30
|
).then((o) => o.a).then(l, b);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{o(n.next(a))}catch($){r($)}},l=a=>{try{o(n.throw(a))}catch($){r($)}},o=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);o((n=n.apply(e,t)).next())});const ye="user-deposit-withdrawal",me={hydratedSelectorName:"hydrated"};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},q=new WeakMap,w=e=>q.get(e),ke=(e,t)=>q.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),U=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=U.get(r);if(i)return i[s];{const l=o=>(U.set(r,o),o[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("../stencil/user-deposit-withdrawal-D-OTOuVZ.cjs")).then(o=>o.userDepositWithdrawal_entry).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(U.set(r,l),l[s]),b)},j=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},S=I.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,X=[],se=[],xe=(e,t)=>n=>{e.push(n),H||(H=!0,g.$flags$&4?R(z):g.raf(z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},z=()=>{Y(X),Y(se),(H=X.length>0)&&g.raf(z)},R=e=>te().then(e),_e=xe(se),J={},Le="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",je=e=>e!=null,D=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Oe={};Ee(Oe,{err:()=>re,map:()=>Ie,ok:()=>B,unwrap:()=>Ue,unwrapErr:()=>He});var B=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>B(s)):B(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},ze=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const o=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!D(s))&&(s=String(s)),i&&l?o[o.length-1].$text$+=s:o.push(i?C(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=C(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=r,$},C=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ae={},Be=e=>e&&e.$tag$===ae,Ce=(e,t)=>e!=null&&!D(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,qe=(e,t,n)=>{const s=g.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,Re=(e,t,n)=>{let s=j.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},De=(e,t,n)=>{var s;const r=ie(t),i=j.get(r);if(e=e.nodeType===11?e:S,i)if(typeof i=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(r)){{o=S.createElement("style"),o.innerHTML=i;const a=(s=g.$nonce$)!=null?s:ne(S);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},Me=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),i=De(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,i)=>{if(n!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,$=Z(n),c=Z(s);a.remove(...$.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!$.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(I,o)?t=o.slice(2):t=o[2]+t.slice(3),n||s){const a=t.endsWith(oe);t=t.replace(Fe,""),n&&g.rel(e,t,n,a),s&&g.ael(e,t,s,a)}}else{const a=D(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Fe=new RegExp(oe+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,i=t.$attrs$||J;for(const l of N(Object.keys(r)))l in i||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(i)))Q(s,l,r[l],i[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,M,y=!1,O=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,o;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?Le:Ae,r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),je(L)&&l["s-si"]!==L&&l.classList.add(l["s-si"]=L),r.$children$)for(i=0;i<r.$children$.length;++i)o=O(e,r,i),o&&l.appendChild(o);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=M,l},ce=(e,t,n,s,r,i)=>{let l=e,o;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);r<=i;++r)s[r]&&(o=O(null,n,r),o&&(s[r].$elm$=o,A(l,o,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;de(r),i&&i.remove()}}},Ge=(e,t,n,s,r=!1)=>{let i=0,l=0,o=0,a=0,$=t.length-1,c=t[0],f=t[$],d=s.length-1,u=s[0],v=s[d],h,m;for(;i<=$&&l<=d;)if(c==null)c=t[++i];else if(f==null)f=t[--$];else if(u==null)u=s[++l];else if(v==null)v=s[--d];else if(_(c,u,r))T(c,u,r),c=t[++i],u=s[++l];else if(_(f,v,r))T(f,v,r),f=t[--$],v=s[--d];else if(_(c,v,r))T(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--d];else if(_(f,u,r))T(f,u,r),A(e,f.$elm$,c.$elm$),f=t[--$],u=s[++l];else{for(o=-1,a=i;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(m=t[o],m.$tag$!==u.$tag$?h=O(t&&t[l],n,o):(T(m,u,r),t[o]=void 0,h=m.$elm$),u=s[++l]):(h=O(t&&t[l],n,l),u=s[++l]),h&&A(c.$elm$.parentNode,h,c.$elm$)}i>$?ce(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,i,$)},_=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,T=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$tag$,o=t.$text$;o===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&i!==null?Ge(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ce(s,null,t,i,0,i.length-1)):r!==null&&fe(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==o&&(s.data=o)},de=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(de)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Xe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||C(null,null),l=Be(t)?t:le(null,null,t);if(M=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([o,a])=>l.$attrs$[a]=s[o])),n&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=s.shadowRoot||s,L=s["s-sc"],r.$flags$&1,T(i,l,n)},ue=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ue(e,e.$ancestorComponent$),_e(()=>Ye(e,t))},Ye=(e,t)=>{const n=e.$hostElement$,s=E("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.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&&(i=F(r,"componentWillLoad")),s(),Je(i,()=>Qe(e,r,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Me(e);const o=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),o(),i();{const a=(s=r["s-p"])!=null?s:[],$=()=>Ne(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Xe(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ne=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),F(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&R(()=>W(e,!1)),e.$flags$&=-517},ve=e=>{ge(S.documentElement),R(()=>qe(I,"appload",{detail:{namespace:ye}}))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=me.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>w(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${s.$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$,l=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;n=Ce(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(o&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){b(u,i)}})}(o&18)===2&&W(r,!1)}},he=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,o,{get(){return Ve(this,o)},set($){et(this,o,$,t)},configurable:!0,enumerable:!0})}),n&1){const o=new Map;i.attributeChangedCallback=function(a,$,c){g.jmp(()=>{var f;const d=o.get(a);if(this.hasOwnProperty(d))c=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const u=w(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,a)})}return}}this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const f=$[1]||a;return o.set(f,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=ze();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,he(r,n,2),r.isProxied=!0);const $=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}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 $=ie(n);if(!j.has($)){const c=E("registerStyles",n.$tagName$);Re($,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>W(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),st=e=>{},nt=e=>{if(!(g.$flags$&1)){const t=w(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ue(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},V=e=>{F(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(g.$flags$&1)){const t=w(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=E(),r=[],i=t.exclude||[],l=I.customElements,o=S.head,a=o.querySelector("meta[charset]"),$=S.createElement("style"),c=[];let f,d=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(h=>{var m;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(u=!0),p.$members$=h[2],p.$attrsToReflect$=[],p.$watchers$=(m=h[4])!=null?m:{};const P=p.$tagName$,pe=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,we(k,p),p.$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 ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){w(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?c.push(this):g.jmp(()=>nt(this))}disconnectedCallback(){g.jmp(()=>rt(this))}componentOnReady(){return w(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,he(pe,p,1)))})}),r.length>0&&(u&&($.textContent+=ee),$.textContent+=r.sort()+Te,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=g.$nonce$)!=null?n:ne(S);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,a?a.nextSibling:o.firstChild)}d=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(ve,30)),s()},at=e=>g.$nonce$=e;exports.Host=ae;exports.bootstrapLazy=lt;exports.h=le;exports.promiseResolve=te;exports.registerInstance=ke;exports.setNonce=at;
|
|
1
|
+
"use strict";var x=(e,t,n)=>new Promise((s,r)=>{var i=a=>{try{o(n.next(a))}catch($){r($)}},l=a=>{try{o(n.throw(a))}catch($){r($)}},o=a=>a.done?s(a.value):Promise.resolve(a.value).then(i,l);o((n=n.apply(e,t)).next())});const ye="user-deposit-withdrawal",me={hydratedSelectorName:"hydrated"};var Se=Object.defineProperty,Ee=(e,t)=>{for(var n in t)Se(e,n,{get:t[n],enumerable:!0})},q=new WeakMap,w=e=>q.get(e),ke=(e,t)=>q.set(t.$lazyInstance$=e,t),we=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onReadyPromise$=new Promise(s=>n.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],q.set(e,n)},G=(e,t)=>t in e,b=(e,t)=>(0,console.error)(e,t),U=new Map,be=(e,t,n)=>{const s=e.$tagName$.replace(/-/g,"_"),r=e.$lazyBundleId$;if(!r)return;const i=U.get(r);if(i)return i[s];{const l=o=>(U.set(r,o),o[s]);switch(r){case"user-deposit-withdrawal":return Promise.resolve().then(()=>require("../stencil/user-deposit-withdrawal-sqMzKClT.cjs")).then(o=>o.userDepositWithdrawal_entry).then(l,b)}}return import(`./${r}.entry.js`).then(l=>(U.set(r,l),l[s]),b)},j=new Map,Te="{visibility:hidden}.hydrated{visibility:inherit}",ee="slot-fb{display:contents}slot-fb[hidden]{display:none}",I=typeof window!="undefined"?window:{},S=I.document||{head:{}},g={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},te=e=>Promise.resolve(e),Pe=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch(e){}return!1})(),H=!1,X=[],se=[],xe=(e,t)=>n=>{e.push(n),H||(H=!0,g.$flags$&4?R(z):g.raf(z))},Y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){b(n)}e.length=0},z=()=>{Y(X),Y(se),(H=X.length>0)&&g.raf(z)},R=e=>te().then(e),_e=xe(se),J={},Le="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml",je=e=>e!=null,D=e=>(e=typeof e,e==="object"||e==="function");function ne(e){var t,n,s;return(s=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?s:void 0}var Oe={};Ee(Oe,{err:()=>re,map:()=>Ie,ok:()=>B,unwrap:()=>Ue,unwrapErr:()=>He});var B=e=>({isOk:!0,isErr:!1,value:e}),re=e=>({isOk:!1,isErr:!0,value:e});function Ie(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then(s=>B(s)):B(n)}if(e.isErr){const n=e.value;return re(n)}throw"should never get here"}var Ue=e=>{if(e.isOk)return e.value;throw e.value},He=e=>{if(e.isErr)return e.value;throw e.value},E=(e,t="")=>()=>{},ze=(e,t)=>()=>{},le=(e,t,...n)=>{let s=null,r=null,i=!1,l=!1;const o=[],a=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?a(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!D(s))&&(s=String(s)),i&&l?o[o.length-1].$text$+=s:o.push(i?C(null,s):s),l=i)};if(a(n),t){t.key&&(r=t.key);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter(f=>c[f]).join(" "))}}const $=C(e,null);return $.$attrs$=t,o.length>0&&($.$children$=o),$.$key$=r,$},C=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n.$key$=null,n},ae={},Be=e=>e&&e.$tag$===ae,Ce=(e,t)=>e!=null&&!D(e)?t&4?e==="false"?!1:e===""||!!e:t&1?String(e):e:e,qe=(e,t,n)=>{const s=g.ce(t,n);return e.dispatchEvent(s),s},K=new WeakMap,Re=(e,t,n)=>{let s=j.get(e);Pe&&n?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,j.set(e,s)},De=(e,t,n)=>{var s;const r=ie(t),i=j.get(r);if(e=e.nodeType===11?e:S,i)if(typeof i=="string"){e=e.head||e;let l=K.get(e),o;if(l||K.set(e,l=new Set),!l.has(r)){{o=S.createElement("style"),o.innerHTML=i;const a=(s=g.$nonce$)!=null?s:ne(S);a!=null&&o.setAttribute("nonce",a),e.insertBefore(o,e.querySelector("link"))}t.$flags$&4&&(o.innerHTML+=ee),l&&l.add(r)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return r},Me=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,s=t.$flags$,r=E("attachStyles",t.$tagName$),i=De(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);s&10&&(n["s-sc"]=i,n.classList.add(i+"-h")),r()},ie=(e,t)=>"sc-"+e.$tagName$,Q=(e,t,n,s,r,i)=>{if(n!==s){let l=G(e,t),o=t.toLowerCase();if(t==="class"){const a=e.classList,$=Z(n),c=Z(s);a.remove(...$.filter(f=>f&&!c.includes(f))),a.add(...c.filter(f=>f&&!$.includes(f)))}else if(t==="style"){for(const a in n)(!s||s[a]==null)&&(a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(const a in s)(!n||s[a]!==n[a])&&(a.includes("-")?e.style.setProperty(a,s[a]):e.style[a]=s[a])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):G(I,o)?t=o.slice(2):t=o[2]+t.slice(3),n||s){const a=t.endsWith(oe);t=t.replace(Fe,""),n&&g.rel(e,t,n,a),s&&g.ael(e,t,s,a)}}else{const a=D(s);if((l||a&&s!==null)&&!r)try{if(e.tagName.includes("-"))e[t]=s;else{const $=s==null?"":s;t==="list"?l=!1:(n==null||e[t]!=$)&&(e[t]=$)}}catch($){}s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&e.removeAttribute(t):(!l||i&4||r)&&!a&&(s=s===!0?"":s,e.setAttribute(t,s))}}},We=/\s/,Z=e=>e?e.split(We):[],oe="Capture",Fe=new RegExp(oe+"$"),$e=(e,t,n)=>{const s=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||J,i=t.$attrs$||J;for(const l of N(Object.keys(r)))l in i||Q(s,l,r[l],void 0,n,t.$flags$);for(const l of N(Object.keys(i)))Q(s,l,r[l],i[l],n,t.$flags$)};function N(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var L,M,y=!1,O=(e,t,n,s)=>{const r=t.$children$[n];let i=0,l,o;if(r.$text$!==null)l=r.$elm$=S.createTextNode(r.$text$);else{if(y||(y=r.$tag$==="svg"),l=r.$elm$=S.createElementNS(y?Le:Ae,r.$tag$),y&&r.$tag$==="foreignObject"&&(y=!1),$e(null,r,y),je(L)&&l["s-si"]!==L&&l.classList.add(l["s-si"]=L),r.$children$)for(i=0;i<r.$children$.length;++i)o=O(e,r,i),o&&l.appendChild(o);r.$tag$==="svg"?y=!1:l.tagName==="foreignObject"&&(y=!0)}return l["s-hn"]=M,l},ce=(e,t,n,s,r,i)=>{let l=e,o;for(l.shadowRoot&&l.tagName===M&&(l=l.shadowRoot);r<=i;++r)s[r]&&(o=O(null,n,r),o&&(s[r].$elm$=o,A(l,o,t)))},fe=(e,t,n)=>{for(let s=t;s<=n;++s){const r=e[s];if(r){const i=r.$elm$;de(r),i&&i.remove()}}},Ge=(e,t,n,s,r=!1)=>{let i=0,l=0,o=0,a=0,$=t.length-1,c=t[0],f=t[$],d=s.length-1,u=s[0],v=s[d],h,m;for(;i<=$&&l<=d;)if(c==null)c=t[++i];else if(f==null)f=t[--$];else if(u==null)u=s[++l];else if(v==null)v=s[--d];else if(_(c,u,r))T(c,u,r),c=t[++i],u=s[++l];else if(_(f,v,r))T(f,v,r),f=t[--$],v=s[--d];else if(_(c,v,r))T(c,v,r),A(e,c.$elm$,f.$elm$.nextSibling),c=t[++i],v=s[--d];else if(_(f,u,r))T(f,u,r),A(e,f.$elm$,c.$elm$),f=t[--$],u=s[++l];else{for(o=-1,a=i;a<=$;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===u.$key$){o=a;break}o>=0?(m=t[o],m.$tag$!==u.$tag$?h=O(t&&t[l],n,o):(T(m,u,r),t[o]=void 0,h=m.$elm$),u=s[++l]):(h=O(t&&t[l],n,l),u=s[++l]),h&&A(c.$elm$.parentNode,h,c.$elm$)}i>$?ce(e,s[d+1]==null?null:s[d+1].$elm$,n,s,l,d):l>d&&fe(t,i,$)},_=(e,t,n=!1)=>e.$tag$===t.$tag$?n?!0:e.$key$===t.$key$:!1,T=(e,t,n=!1)=>{const s=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,l=t.$tag$,o=t.$text$;o===null?(y=l==="svg"?!0:l==="foreignObject"?!1:y,$e(e,t,y),r!==null&&i!==null?Ge(s,r,t,i,n):i!==null?(e.$text$!==null&&(s.textContent=""),ce(s,null,t,i,0,i.length-1)):r!==null&&fe(r,0,r.length-1),y&&l==="svg"&&(y=!1)):e.$text$!==o&&(s.data=o)},de=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(de)},A=(e,t,n)=>e==null?void 0:e.insertBefore(t,n),Xe=(e,t,n=!1)=>{const s=e.$hostElement$,r=e.$cmpMeta$,i=e.$vnode$||C(null,null),l=Be(t)?t:le(null,null,t);if(M=s.tagName,r.$attrsToReflect$&&(l.$attrs$=l.$attrs$||{},r.$attrsToReflect$.map(([o,a])=>l.$attrs$[a]=s[o])),n&&l.$attrs$)for(const o of Object.keys(l.$attrs$))s.hasAttribute(o)&&!["key","ref","style","class"].includes(o)&&(l.$attrs$[o]=s[o]);l.$tag$=null,l.$flags$|=4,e.$vnode$=l,l.$elm$=i.$elm$=s.shadowRoot||s,L=s["s-sc"],r.$flags$&1,T(i,l,n)},ue=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(n=>e.$onRenderResolve$=n))},W=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return ue(e,e.$ancestorComponent$),_e(()=>Ye(e,t))},Ye=(e,t)=>{const n=e.$hostElement$,s=E("scheduleUpdate",e.$cmpMeta$.$tagName$),r=e.$lazyInstance$;if(!r)throw new Error(`Can't render component <${n.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&&(i=F(r,"componentWillLoad")),s(),Je(i,()=>Qe(e,r,t))},Je=(e,t)=>Ke(e)?e.then(t).catch(n=>{console.error(n),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=(e,t,n)=>x(exports,null,function*(){var s;const r=e.$hostElement$,i=E("update",e.$cmpMeta$.$tagName$),l=r["s-rc"];n&&Me(e);const o=E("render",e.$cmpMeta$.$tagName$);Ze(e,t,r,n),l&&(l.map(a=>a()),r["s-rc"]=void 0),o(),i();{const a=(s=r["s-p"])!=null?s:[],$=()=>Ne(e);a.length===0?$():(Promise.all(a).then($),e.$flags$|=4,a.length=0)}}),Ze=(e,t,n,s)=>{try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,Xe(e,t,s)}catch(r){b(r,e.$hostElement$)}return null},Ne=e=>{const t=e.$cmpMeta$.$tagName$,n=e.$hostElement$,s=E("postUpdate",t),r=e.$lazyInstance$,i=e.$ancestorComponent$;e.$flags$&64?s():(e.$flags$|=64,ge(n),F(r,"componentDidLoad"),s(),e.$onReadyResolve$(n),i||ve()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&R(()=>W(e,!1)),e.$flags$&=-517},ve=e=>{ge(S.documentElement),R(()=>qe(I,"appload",{detail:{namespace:ye}}))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(s){b(s)}},ge=e=>{var t;return e.classList.add((t=me.hydratedSelectorName)!=null?t:"hydrated")},Ve=(e,t)=>w(e).$instanceValues$.get(t),et=(e,t,n,s)=>{const r=w(e);if(!r)throw new Error(`Couldn't find host element for "${s.$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$,l=r.$instanceValues$.get(t),o=r.$flags$,a=r.$lazyInstance$;n=Ce(n,s.$members$[t][0]);const $=Number.isNaN(l)&&Number.isNaN(n),c=n!==l&&!$;if((!(o&8)||l===void 0)&&c&&(r.$instanceValues$.set(t,n),a)){if(s.$watchers$&&o&128){const f=s.$watchers$[t];f&&f.map(d=>{try{a[d](n,l,t)}catch(u){b(u,i)}})}(o&18)===2&&W(r,!1)}},he=(e,t,n)=>{var s,r;const i=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const l=Object.entries((s=t.$members$)!=null?s:{});if(l.map(([o,[a]])=>{(a&31||n&2&&a&32)&&Object.defineProperty(i,o,{get(){return Ve(this,o)},set($){et(this,o,$,t)},configurable:!0,enumerable:!0})}),n&1){const o=new Map;i.attributeChangedCallback=function(a,$,c){g.jmp(()=>{var f;const d=o.get(a);if(this.hasOwnProperty(d))c=this[d],delete this[d];else{if(i.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const u=w(this),v=u==null?void 0:u.$flags$;if(v&&!(v&8)&&v&128&&c!==$){const h=u.$lazyInstance$,m=(f=t.$watchers$)==null?void 0:f[a];m==null||m.forEach(p=>{h[p]!=null&&h[p].call(h,c,$,a)})}return}}this[d]=c===null&&typeof this[d]=="boolean"?!1:c})},e.observedAttributes=Array.from(new Set([...Object.keys((r=t.$watchers$)!=null?r:{}),...l.filter(([a,$])=>$[0]&15).map(([a,$])=>{var c;const f=$[1]||a;return o.set(f,a),$[0]&512&&((c=t.$attrsToReflect$)==null||c.push([a,f])),f})]))}}return e},tt=(e,t,n,s)=>x(exports,null,function*(){let r;if(!(t.$flags$&32)){if(t.$flags$|=32,n.$lazyBundleId$){const a=be(n);if(a&&"then"in a){const c=ze();r=yield a,c()}else r=a;if(!r)throw new Error(`Constructor for "${n.$tagName$}#${t.$modeName$}" was not found`);r.isProxied||(n.$watchers$=r.watchers,he(r,n,2),r.isProxied=!0);const $=E("createInstance",n.$tagName$);t.$flags$|=8;try{new r(t)}catch(c){b(c)}t.$flags$&=-9,t.$flags$|=128,$()}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 $=ie(n);if(!j.has($)){const c=E("registerStyles",n.$tagName$);Re($,a,!!(n.$flags$&1)),c()}}}const i=t.$ancestorComponent$,l=()=>W(t,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}),st=e=>{},nt=e=>{if(!(g.$flags$&1)){const t=w(e),n=t.$cmpMeta$,s=E("connectedCallback",n.$tagName$);if(t.$flags$&1)t!=null&&t.$lazyInstance$||t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>st());else{t.$flags$|=1;{let r=e;for(;r=r.parentNode||r.host;)if(r["s-p"]){ue(t,t.$ancestorComponent$=r);break}}n.$members$&&Object.entries(n.$members$).map(([r,[i]])=>{if(i&31&&e.hasOwnProperty(r)){const l=e[r];delete e[r],e[r]=l}}),tt(e,t,n)}s()}},V=e=>{F(e,"disconnectedCallback")},rt=e=>x(exports,null,function*(){if(!(g.$flags$&1)){const t=w(e);t!=null&&t.$lazyInstance$?V(t.$lazyInstance$):t!=null&&t.$onReadyPromise$&&t.$onReadyPromise$.then(()=>V(t.$lazyInstance$))}}),lt=(e,t={})=>{var n;const s=E(),r=[],i=t.exclude||[],l=I.customElements,o=S.head,a=o.querySelector("meta[charset]"),$=S.createElement("style"),c=[];let f,d=!0;Object.assign(g,t),g.$resourcesUrl$=new URL(t.resourcesUrl||"./",S.baseURI).href;let u=!1;if(e.map(v=>{v[1].map(h=>{var m;const p={$flags$:h[0],$tagName$:h[1],$members$:h[2],$listeners$:h[3]};p.$flags$&4&&(u=!0),p.$members$=h[2],p.$attrsToReflect$=[],p.$watchers$=(m=h[4])!=null?m:{};const P=p.$tagName$,pe=class extends HTMLElement{constructor(k){if(super(k),this.hasRegisteredEventListeners=!1,k=this,we(k,p),p.$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 ${p.$tagName$}! Mode is set to ${k.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}connectedCallback(){w(this),this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?c.push(this):g.jmp(()=>nt(this))}disconnectedCallback(){g.jmp(()=>rt(this))}componentOnReady(){return w(this).$onReadyPromise$}};p.$lazyBundleId$=v[0],!i.includes(P)&&!l.get(P)&&(r.push(P),l.define(P,he(pe,p,1)))})}),r.length>0&&(u&&($.textContent+=ee),$.textContent+=r.sort()+Te,$.innerHTML.length)){$.setAttribute("data-styles","");const v=(n=g.$nonce$)!=null?n:ne(S);v!=null&&$.setAttribute("nonce",v),o.insertBefore($,a?a.nextSibling:o.firstChild)}d=!1,c.length?c.map(v=>v.connectedCallback()):g.jmp(()=>f=setTimeout(ve,30)),s()},at=e=>g.$nonce$=e;exports.Host=ae;exports.bootstrapLazy=lt;exports.h=le;exports.promiseResolve=te;exports.registerInstance=ke;exports.setNonce=at;
|
|
@@ -42,7 +42,7 @@ var he = Object.defineProperty, ye = (e, t) => {
|
|
|
42
42
|
case "user-deposit-withdrawal":
|
|
43
43
|
return import(
|
|
44
44
|
/* webpackMode: "lazy" */
|
|
45
|
-
"../stencil/user-deposit-withdrawal-
|
|
45
|
+
"../stencil/user-deposit-withdrawal-BN_2yjKT.js"
|
|
46
46
|
).then((o) => o.a).then(l, b);
|
|
47
47
|
}
|
|
48
48
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=()=>{},s=()=>{};exports.globalScripts=l;exports.globalScripts$1=s;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as a, p as l } from "../lazy/gamification-dropdown-
|
|
2
|
-
import { s as p } from "../lazy/gamification-dropdown-
|
|
3
|
-
import {
|
|
1
|
+
import { b as a, p as l } from "../lazy/gamification-dropdown-ZRoQGT9d.js";
|
|
2
|
+
import { s as p } from "../lazy/gamification-dropdown-ZRoQGT9d.js";
|
|
3
|
+
import { a as t } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
4
4
|
var r = () => {
|
|
5
5
|
const e = import.meta.url, n = {};
|
|
6
6
|
return e !== "" && (n.resourcesUrl = new URL(".", e).href), l(n);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var g=(n,a,t)=>new Promise((p,s)=>{var d=e=>{try{l(t.next(e))}catch(r){s(r)}},c=e=>{try{l(t.throw(e))}catch(r){s(r)}},l=e=>e.done?p(e.value):Promise.resolve(e.value).then(d,c);l((t=t.apply(n,a)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../lazy/gamification-dropdown-Dlvfea51.cjs"),y=require("./app-globals-0f993ce5-BD-Q0C8R.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-BTLPC4Rm.cjs",document.baseURI).href,a={};return n!==""&&(a.resourcesUrl=new URL(".",n).href),o.promiseResolve(a)};u().then(n=>g(exports,null,function*(){return yield y.globalScripts$1(),o.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)}));exports.setNonce=o.setNonce;
|
|
@@ -14,9 +14,9 @@ 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 "../lazy/gamification-dropdown-
|
|
18
|
-
import { s as b } from "../lazy/gamification-dropdown-
|
|
19
|
-
import {
|
|
17
|
+
import { b as d, p as y } from "../lazy/gamification-dropdown-CW0O-arZ.js";
|
|
18
|
+
import { s as b } from "../lazy/gamification-dropdown-CW0O-arZ.js";
|
|
19
|
+
import { a as c } from "./app-globals-0f993ce5-Cgk0KVAu.js";
|
|
20
20
|
var u = () => {
|
|
21
21
|
const n = import.meta.url, a = {};
|
|
22
22
|
return n !== "" && (a.resourcesUrl = new URL(".", n).href), y(a);
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
var f = (e, t, i) => new Promise((n, s) => {
|
|
2
|
+
var o = (r) => {
|
|
3
|
+
try {
|
|
4
|
+
a(i.next(r));
|
|
5
|
+
} catch (p) {
|
|
6
|
+
s(p);
|
|
7
|
+
}
|
|
8
|
+
}, l = (r) => {
|
|
9
|
+
try {
|
|
10
|
+
a(i.throw(r));
|
|
11
|
+
} catch (p) {
|
|
12
|
+
s(p);
|
|
13
|
+
}
|
|
14
|
+
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(o, l);
|
|
15
|
+
a((i = i.apply(e, t)).next());
|
|
16
|
+
});
|
|
17
|
+
import { r as w, h as c, g as m } from "../lazy/gamification-dropdown-CW0O-arZ.js";
|
|
18
|
+
const S = "en";
|
|
19
|
+
let d = {
|
|
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((t) => {
|
|
40
|
+
fetch(e).then((i) => i.json()).then((i) => {
|
|
41
|
+
Object.keys(i).forEach((n) => {
|
|
42
|
+
d[n] || (d[n] = {});
|
|
43
|
+
for (let s in i[n])
|
|
44
|
+
d[n][s] = i[n][s];
|
|
45
|
+
}), t(!0);
|
|
46
|
+
});
|
|
47
|
+
}), v = (e, t) => {
|
|
48
|
+
const i = t;
|
|
49
|
+
return d[i !== void 0 && i in d ? i : S][e];
|
|
50
|
+
}, h = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
51
|
+
function u(e, t) {
|
|
52
|
+
if (e) {
|
|
53
|
+
const i = document.createElement("style");
|
|
54
|
+
i.innerHTML = t, e.appendChild(i);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function y(e, t) {
|
|
58
|
+
if (!e || !t)
|
|
59
|
+
return;
|
|
60
|
+
const i = new URL(t);
|
|
61
|
+
fetch(i.href).then((n) => n.text()).then((n) => {
|
|
62
|
+
const s = document.createElement("style");
|
|
63
|
+
s.innerHTML = n, e && e.appendChild(s);
|
|
64
|
+
}).catch((n) => {
|
|
65
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function C(e, t, i, n = !1) {
|
|
69
|
+
if (!window.emMessageBus)
|
|
70
|
+
return;
|
|
71
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
72
|
+
return i = b(e, t), i;
|
|
73
|
+
window[h] || (window[h] = {}), i = L(e, t);
|
|
74
|
+
const o = i.unsubscribe.bind(i), l = () => {
|
|
75
|
+
if (window[h][t]) {
|
|
76
|
+
const a = window[h][t];
|
|
77
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[h][t];
|
|
78
|
+
}
|
|
79
|
+
o();
|
|
80
|
+
};
|
|
81
|
+
return i.unsubscribe = l, i;
|
|
82
|
+
}
|
|
83
|
+
function b(e, t) {
|
|
84
|
+
const i = document.createElement("style");
|
|
85
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
86
|
+
e && (i.innerHTML = n, e.appendChild(i));
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function L(e, t) {
|
|
90
|
+
return window.emMessageBus.subscribe(t, (i) => {
|
|
91
|
+
var a;
|
|
92
|
+
if (!e)
|
|
93
|
+
return;
|
|
94
|
+
const n = e.getRootNode(), s = window[h];
|
|
95
|
+
let o = (a = s[t]) == null ? void 0 : a.sheet;
|
|
96
|
+
o ? s[t].refCount = s[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(i), s[t] = {
|
|
97
|
+
sheet: o,
|
|
98
|
+
refCount: 1
|
|
99
|
+
});
|
|
100
|
+
const l = n.adoptedStyleSheets || [];
|
|
101
|
+
l.includes(o) || (n.adoptedStyleSheets = [...l, o]);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
const G = ":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}", D = G, P = class {
|
|
105
|
+
constructor(e) {
|
|
106
|
+
w(this, e), this.messageHandler = (t) => {
|
|
107
|
+
t.data && t.data.type === "UpdateGamificationXp" && (this.loyaltyPoints = t.data.points);
|
|
108
|
+
}, this.navigateToGamification = () => {
|
|
109
|
+
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
110
|
+
}, this.handleOutsideClick = (t) => {
|
|
111
|
+
t.composedPath().includes(this.el) || (this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick));
|
|
112
|
+
}, this.handleDropdownClick = (t) => {
|
|
113
|
+
t.stopPropagation(), this.isOpen = !this.isOpen, this.isOpen ? document.addEventListener("click", this.handleOutsideClick) : document.removeEventListener("click", this.handleOutsideClick);
|
|
114
|
+
}, 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;
|
|
115
|
+
}
|
|
116
|
+
handleNewTranslations() {
|
|
117
|
+
this.isLoading = !0, g(this.translationUrl).then(() => {
|
|
118
|
+
this.isLoading = !1;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
handleClientStylingChange(e, t) {
|
|
122
|
+
e != t && u(this.stylingContainer, this.clientStyling);
|
|
123
|
+
}
|
|
124
|
+
handleClientStylingChangeURL(e, t) {
|
|
125
|
+
e != t && this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl);
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
return f(this, null, function* () {
|
|
129
|
+
if (this.translationUrl.length > 2 && (yield g(this.translationUrl)), this.endpoint && this.language)
|
|
130
|
+
return this.fetchPointsData();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
componentDidLoad() {
|
|
134
|
+
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ? C(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && u(this.stylingContainer, this.clientStyling), this.clientStylingUrl && y(this.stylingContainer, this.clientStylingUrl)));
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
this.stylingSubscription && this.stylingSubscription.unsubscribe(), window.removeEventListener("message", this.messageHandler);
|
|
138
|
+
}
|
|
139
|
+
fetchPointsData() {
|
|
140
|
+
let e = new URL(`${this.endpoint}/v1/elevate/playerInfo`);
|
|
141
|
+
e.searchParams.append("language", this.language);
|
|
142
|
+
const t = new Headers();
|
|
143
|
+
t.append("X-SessionId", this.session);
|
|
144
|
+
const i = {
|
|
145
|
+
method: "GET",
|
|
146
|
+
headers: t
|
|
147
|
+
};
|
|
148
|
+
return new Promise((n, s) => {
|
|
149
|
+
this.isLoading = !0, fetch(e.href, i).then((o) => o.json()).then((o) => {
|
|
150
|
+
var l, a;
|
|
151
|
+
this.loyaltyPoints = (a = (l = o == null ? void 0 : o.data) === null || l === void 0 ? void 0 : l.level) === null || a === void 0 ? void 0 : a.loyaltyPoints, n(!0);
|
|
152
|
+
}).catch((o) => {
|
|
153
|
+
console.error(o), s(o);
|
|
154
|
+
}).finally(() => {
|
|
155
|
+
this.isLoading = !1;
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
return this.isLoading ? null : c("div", { ref: (e) => this.stylingContainer = e, class: "GamificationDropdownContainer" }, c("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (e) => this.handleDropdownClick(e), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : v("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", c("span", { class: this.isOpen ? "TriangleActive" : "TriangleInactive" }, c("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "6.835", viewBox: "0 0 14 6.835" }, c("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 && c("div", { class: "GamificationDropdown", onClick: this.navigateToGamification }, c("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 })));
|
|
161
|
+
}
|
|
162
|
+
get el() {
|
|
163
|
+
return m(this);
|
|
164
|
+
}
|
|
165
|
+
static get watchers() {
|
|
166
|
+
return {
|
|
167
|
+
translationUrl: ["handleNewTranslations"],
|
|
168
|
+
clientStyling: ["handleClientStylingChange"],
|
|
169
|
+
clientStylingUrl: ["handleClientStylingChangeURL"]
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
P.style = D;
|
|
174
|
+
export {
|
|
175
|
+
P as G,
|
|
176
|
+
u as a,
|
|
177
|
+
y as b,
|
|
178
|
+
C as s
|
|
179
|
+
};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
a(n.next(l));
|
|
5
|
-
} catch (d) {
|
|
6
|
-
o(d);
|
|
7
|
-
}
|
|
8
|
-
}, c = (l) => {
|
|
9
|
-
try {
|
|
10
|
-
a(n.throw(l));
|
|
11
|
-
} catch (d) {
|
|
12
|
-
o(d);
|
|
13
|
-
}
|
|
14
|
-
}, a = (l) => l.done ? e(l.value) : Promise.resolve(l.value).then(s, c);
|
|
15
|
-
a((n = n.apply(i, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { r as u, h as r, g as y } from "../lazy/gamification-dropdown-Bi2IANLw.js";
|
|
18
|
-
const w = "en";
|
|
1
|
+
import { r as g, h as r, g as u } from "../lazy/gamification-dropdown-ZRoQGT9d.js";
|
|
2
|
+
const y = "en";
|
|
19
3
|
let h = {
|
|
20
4
|
en: {
|
|
21
5
|
gamificationNoPoints: "No points"
|
|
@@ -36,46 +20,73 @@ let h = {
|
|
|
36
20
|
gamificationNoPoints: "No points"
|
|
37
21
|
}
|
|
38
22
|
};
|
|
39
|
-
const
|
|
40
|
-
fetch(i).then((
|
|
41
|
-
Object.keys(
|
|
42
|
-
h[
|
|
43
|
-
for (let
|
|
44
|
-
h[
|
|
23
|
+
const d = (i) => new Promise((t) => {
|
|
24
|
+
fetch(i).then((e) => e.json()).then((e) => {
|
|
25
|
+
Object.keys(e).forEach((n) => {
|
|
26
|
+
h[n] || (h[n] = {});
|
|
27
|
+
for (let s in e[n])
|
|
28
|
+
h[n][s] = e[n][s];
|
|
45
29
|
}), t(!0);
|
|
46
30
|
});
|
|
47
|
-
}),
|
|
48
|
-
const
|
|
49
|
-
return h[
|
|
50
|
-
};
|
|
51
|
-
function
|
|
31
|
+
}), w = (i, t) => {
|
|
32
|
+
const e = t;
|
|
33
|
+
return h[e !== void 0 && e in h ? e : y][i];
|
|
34
|
+
}, c = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
35
|
+
function p(i, t) {
|
|
52
36
|
if (i) {
|
|
53
|
-
const
|
|
54
|
-
|
|
37
|
+
const e = document.createElement("style");
|
|
38
|
+
e.innerHTML = t, i.appendChild(e);
|
|
55
39
|
}
|
|
56
40
|
}
|
|
57
|
-
function
|
|
41
|
+
function f(i, t) {
|
|
58
42
|
if (!i || !t)
|
|
59
43
|
return;
|
|
60
|
-
const
|
|
61
|
-
fetch(
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
}).catch((
|
|
65
|
-
console.error("There was an error while trying to load client styling from URL",
|
|
44
|
+
const e = new URL(t);
|
|
45
|
+
fetch(e.href).then((n) => n.text()).then((n) => {
|
|
46
|
+
const s = document.createElement("style");
|
|
47
|
+
s.innerHTML = n, i && i.appendChild(s);
|
|
48
|
+
}).catch((n) => {
|
|
49
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
66
50
|
});
|
|
67
51
|
}
|
|
68
|
-
function
|
|
69
|
-
if (window.emMessageBus)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
52
|
+
function m(i, t, e, n = !1) {
|
|
53
|
+
if (!window.emMessageBus)
|
|
54
|
+
return;
|
|
55
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
56
|
+
return e = S(i, t), e;
|
|
57
|
+
window[c] || (window[c] = {}), e = v(i, t);
|
|
58
|
+
const o = e.unsubscribe.bind(e), a = () => {
|
|
59
|
+
if (window[c][t]) {
|
|
60
|
+
const l = window[c][t];
|
|
61
|
+
l.refCount > 1 ? l.refCount = l.refCount - 1 : delete window[c][t];
|
|
62
|
+
}
|
|
63
|
+
o();
|
|
64
|
+
};
|
|
65
|
+
return e.unsubscribe = a, e;
|
|
66
|
+
}
|
|
67
|
+
function S(i, t) {
|
|
68
|
+
const e = document.createElement("style");
|
|
69
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
70
|
+
i && (e.innerHTML = n, i.appendChild(e));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function v(i, t) {
|
|
74
|
+
return window.emMessageBus.subscribe(t, (e) => {
|
|
75
|
+
if (!i)
|
|
76
|
+
return;
|
|
77
|
+
const n = i.getRootNode(), s = window[c];
|
|
78
|
+
let o = s[t]?.sheet;
|
|
79
|
+
o ? s[t].refCount = s[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(e), s[t] = {
|
|
80
|
+
sheet: o,
|
|
81
|
+
refCount: 1
|
|
73
82
|
});
|
|
74
|
-
|
|
83
|
+
const a = n.adoptedStyleSheets || [];
|
|
84
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
85
|
+
});
|
|
75
86
|
}
|
|
76
|
-
const C = ":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}",
|
|
87
|
+
const C = ":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}", b = C, L = class {
|
|
77
88
|
constructor(i) {
|
|
78
|
-
|
|
89
|
+
g(this, i), this.messageHandler = (t) => {
|
|
79
90
|
t.data && t.data.type === "UpdateGamificationXp" && (this.loyaltyPoints = t.data.points);
|
|
80
91
|
}, this.navigateToGamification = () => {
|
|
81
92
|
window.postMessage({ type: "NavigateToGamification" }, window.location.href), this.isOpen = !1;
|
|
@@ -86,24 +97,22 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
86
97
|
}, 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;
|
|
87
98
|
}
|
|
88
99
|
handleNewTranslations() {
|
|
89
|
-
this.isLoading = !0,
|
|
100
|
+
this.isLoading = !0, d(this.translationUrl).then(() => {
|
|
90
101
|
this.isLoading = !1;
|
|
91
102
|
});
|
|
92
103
|
}
|
|
93
104
|
handleClientStylingChange(i, t) {
|
|
94
|
-
i != t &&
|
|
105
|
+
i != t && p(this.stylingContainer, this.clientStyling);
|
|
95
106
|
}
|
|
96
107
|
handleClientStylingChangeURL(i, t) {
|
|
97
|
-
i != t && this.clientStylingUrl &&
|
|
108
|
+
i != t && this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl);
|
|
98
109
|
}
|
|
99
|
-
componentWillLoad() {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return this.fetchPointsData();
|
|
103
|
-
});
|
|
110
|
+
async componentWillLoad() {
|
|
111
|
+
if (this.translationUrl.length > 2 && await d(this.translationUrl), this.endpoint && this.language)
|
|
112
|
+
return this.fetchPointsData();
|
|
104
113
|
}
|
|
105
114
|
componentDidLoad() {
|
|
106
|
-
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ?
|
|
115
|
+
window.addEventListener("message", this.messageHandler), this.stylingContainer && (window.emMessageBus != null ? m(this.stylingContainer, `${this.mbSource}.Style`, this.stylingSubscription) : (this.clientStyling && p(this.stylingContainer, this.clientStyling), this.clientStylingUrl && f(this.stylingContainer, this.clientStylingUrl)));
|
|
107
116
|
}
|
|
108
117
|
disconnectedCallback() {
|
|
109
118
|
this.stylingSubscription && this.stylingSubscription.unsubscribe(), window.removeEventListener("message", this.messageHandler);
|
|
@@ -113,26 +122,26 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
113
122
|
i.searchParams.append("language", this.language);
|
|
114
123
|
const t = new Headers();
|
|
115
124
|
t.append("X-SessionId", this.session);
|
|
116
|
-
const
|
|
125
|
+
const e = {
|
|
117
126
|
method: "GET",
|
|
118
127
|
headers: t
|
|
119
128
|
};
|
|
120
|
-
return new Promise((
|
|
121
|
-
this.isLoading = !0, fetch(i.href,
|
|
122
|
-
var
|
|
123
|
-
this.loyaltyPoints = (
|
|
124
|
-
}).catch((
|
|
125
|
-
console.error(
|
|
129
|
+
return new Promise((n, s) => {
|
|
130
|
+
this.isLoading = !0, fetch(i.href, e).then((o) => o.json()).then((o) => {
|
|
131
|
+
var a, l;
|
|
132
|
+
this.loyaltyPoints = (l = (a = o?.data) === null || a === void 0 ? void 0 : a.level) === null || l === void 0 ? void 0 : l.loyaltyPoints, n(!0);
|
|
133
|
+
}).catch((o) => {
|
|
134
|
+
console.error(o), s(o);
|
|
126
135
|
}).finally(() => {
|
|
127
136
|
this.isLoading = !1;
|
|
128
137
|
});
|
|
129
138
|
});
|
|
130
139
|
}
|
|
131
140
|
render() {
|
|
132
|
-
return this.isLoading ? null : r("div", { ref: (i) => this.stylingContainer = i, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (i) => this.handleDropdownClick(i), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) :
|
|
141
|
+
return this.isLoading ? null : r("div", { ref: (i) => this.stylingContainer = i, class: "GamificationDropdownContainer" }, r("button", { class: `GamificationDropdownButton ${this.isOpen ? "IsOpen" : ""}`, type: "button", onClick: (i) => this.handleDropdownClick(i), title: typeof this.loyaltyPoints == "number" ? String(this.loyaltyPoints) : w("gamificationNoPoints", this.language) }, typeof this.loyaltyPoints == "number" ? `${this.loyaltyPoints} XP` : "...", 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, "mb-source": this.mbSource })));
|
|
133
142
|
}
|
|
134
143
|
get el() {
|
|
135
|
-
return
|
|
144
|
+
return u(this);
|
|
136
145
|
}
|
|
137
146
|
static get watchers() {
|
|
138
147
|
return {
|
|
@@ -142,10 +151,10 @@ const C = ":host{display:block}.GamificationDropdownContainer{position:relative}
|
|
|
142
151
|
};
|
|
143
152
|
}
|
|
144
153
|
};
|
|
145
|
-
L.style =
|
|
154
|
+
L.style = b;
|
|
146
155
|
export {
|
|
147
156
|
L as G,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
p as a,
|
|
158
|
+
f as b,
|
|
159
|
+
m as s
|
|
151
160
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=(e,t,i)=>new Promise((n,s)=>{var o=c=>{try{a(i.next(c))}catch(p){s(p)}},l=c=>{try{a(i.throw(c))}catch(p){s(p)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,l);a((i=i.apply(e,t)).next())});const r=require("../lazy/gamification-dropdown-Dlvfea51.cjs"),S="en";let d={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 y=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(n=>{d[n]||(d[n]={});for(let s in i[n])d[n][s]=i[n][s]}),t(!0)})}),v=(e,t)=>{const i=t;return d[i!==void 0&&i in d?i:S][e]},h="__WIDGET_GLOBAL_STYLE_CACHE__";function f(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function g(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then(n=>n.text()).then(n=>{const s=document.createElement("style");s.innerHTML=n,e&&e.appendChild(s)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function w(e,t,i,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return i=C(e,t),i;window[h]||(window[h]={}),i=b(e,t);const o=i.unsubscribe.bind(i),l=()=>{if(window[h][t]){const a=window[h][t];a.refCount>1?a.refCount=a.refCount-1:delete window[h][t]}o()};return i.unsubscribe=l,i}function C(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(i.innerHTML=n,e.appendChild(i))})}function b(e,t){return window.emMessageBus.subscribe(t,i=>{var a;if(!e)return;const n=e.getRootNode(),s=window[h];let o=(a=s[t])==null?void 0:a.sheet;o?s[t].refCount=s[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(i),s[t]={sheet:o,refCount:1});const l=n.adoptedStyleSheets||[];l.includes(o)||(n.adoptedStyleSheets=[...l,o])})}const L=":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}",D=L,m=class{constructor(e){r.registerInstance(this,e),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,y(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(e,t){e!=t&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return u(this,null,function*(){if(this.translationUrl.length>2&&(yield y(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?w(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}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,s)=>{this.isLoading=!0,fetch(e.href,i).then(o=>o.json()).then(o=>{var l,a;this.loyaltyPoints=(a=(l=o==null?void 0:o.data)===null||l===void 0?void 0:l.level)===null||a===void 0?void 0:a.loyaltyPoints,n(!0)}).catch(o=>{console.error(o),s(o)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:r.h("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},r.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:e=>this.handleDropdownClick(e),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",r.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},r.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},r.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&&r.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},r.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 r.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};m.style=D;exports.GamificationDropdown=m;exports.setClientStyling=f;exports.setClientStylingURL=g;exports.setStreamStyling=w;
|