@everymatrix/player-account-menu 1.63.3 → 1.64.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CADV1Q8l.cjs");require("../stencil/ui-skeleton-CCXvjIzA.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CADV1Q8l.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function K(l){e.append_styles(l,"svelte-io9slc",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,o,s,m,g,f,b,_,y,h,u=l[12]&&ee(l),c=l[12]&&te(l),p=e.ensure_array_like(l[7]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),o=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),f=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),y=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();h=e.space(),v&&v.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(o,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(d,P){e.insert(d,t,P),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,o),e.append(o,s),e.append(n,m),e.append(n,g),e.append(g,f),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,y);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(y,null);e.append(t,h),v&&v.m(t,null)},p(d,P){if(d[12]&&u.p(d,P),P[0]&512&&e.set_data(s,d[9]),P[0]&1024&&e.set_data(f,d[10]),d[12]&&c.p(d,P),P[0]&20864){p=e.ensure_array_like(d[7]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,P):(i[A]=S(x),i[A].c(),i[A].m(y,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[12]||v.p(d,P)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,o,s,m,g,f,b,_,y=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=z(H(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),y&&y.c(),a=e.space(),o=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(o,"structure","title"),e.set_custom_element_data(o,"width","100px"),e.set_custom_element_data(o,"height","20px"),e.set_custom_element_data(o,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),y&&y.m(n,null),e.append(n,a),e.append(n,o),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,b),e.append(t,_)},p(c,p){if(p[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=H(c,h,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),y&&y.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,o,s,m,g,f,b,_,y=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),o=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),g=e.svg_element("g"),f=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(y),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(g,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,a),e.append(a,o),e.append(o,s),e.append(n,m),e.append(m,g),e.append(g,f),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[15]),e.listen(_,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&y!==(y=p[11]("title")+"")&&e.set_data(h,y)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),o[0]&1&&e.set_custom_element_data(n,"session",a[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,o,s,m,g=l[40].label+"",f,b,_,y,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(g),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,o=l[40].img)||e.attr(a,"src",o),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,b),y||(h=e.listen(t,"click",u),y=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,o=l[40].img)&&e.attr(a,"src",o),p[0]&128&&g!==(g=l[40].label+"")&&e.set_data(f,g),p[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),y=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,o){e.insert(a,t,o),e.append(t,n)},p(a,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),o[0]&1&&e.set_custom_element_data(n,"session",a[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),o[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,o,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),o=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,g){e.insert(m,t,g),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,o)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function oe(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),o=a(l);return{c(){t=e.element("div"),o.c()},m(s,m){e.insert(s,t,m),o.m(t,null),l[26](t)},p(s,m){a===(a=n(s))&&o?o.p(s,m):(o.d(1),o=a(s),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),o.d(),l[26](null)}}}function re(l,t,n){let a;e.component_subscribe(l,e.$format,r=>n(11,a=r));let{endpoint:o=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:f=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,P,A=[],x,k=window.navigator.userAgent,D=e.getDevice(k)!=="PC",I="",C="";const j=window.matchMedia("(min-width: 768px)"),U=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(r=>{E(r,B[r])});const F=r=>{if(r.data)switch(r.data.type){case"UserSessionID":n(0,g=r.data.session);break}},q=()=>{let r=e.getDevice(k);if(r)return r==="PC"?"dk":"mtWeb"},R=()=>{const r=new URL(`${s}/${b}/profile-menu?env=${m}`);r.searchParams.append("device",q()),fetch(r.href).then(M=>M.json()).then(M=>{n(7,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let r=new URL(`${o}/v1/player/${f}/profile`);r.searchParams.append("userRoles",_);let M={method:"GET",headers:{"X-SessionID":g}};fetch(r.href,M).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(8,x=r.id)},T=()=>{var r;n(8,x=(r=A.find(M=>M.path.includes(c)))==null?void 0:r.id)},N=()=>{J(b)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=r=>L(r);function Z(r){e.binding_callbacks[r?"unshift":"push"](()=>{P=r,n(5,P)})}return l.$$set=r=>{"endpoint"in r&&n(1,o=r.endpoint),"cmsendpoint"in r&&n(16,s=r.cmsendpoint),"env"in r&&n(17,m=r.env),"session"in r&&n(0,g=r.session),"playerid"in r&&n(18,f=r.playerid),"lang"in r&&n(19,b=r.lang),"userroles"in r&&n(20,_=r.userroles),"clientstyling"in r&&n(2,y=r.clientstyling),"clientstylingurl"in r&&n(3,h=r.clientstylingurl),"translationurl"in r&&n(21,u=r.translationurl),"activemenuitem"in r&&n(22,c=r.activemenuitem),"mbsource"in r&&n(4,p=r.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,d=!i||!v),l.$$.dirty[0]&524288&&b&&N(),l.$$.dirty[0]&786435&&o&&g&&f&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&y&&P&&e.setClientStyling(P,y),l.$$.dirty[0]&40&&h&&P&&e.setClientStylingURL(P,h),l.$$.dirty[0]&48&&p&&P&&e.setStreamStyling(P,`${p}.Style`),l.$$.dirty[0]&2097152&&u&&U()},[g,o,y,h,p,P,d,A,x,I,C,a,D,j,L,V,s,m,f,b,_,u,c,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,oe,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,userroles:20,clientstyling:2,clientstylingurl:3,translationurl:21,activemenuitem:22,mbsource:4},K,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CADV1Q8l.cjs");require("../stencil/ui-skeleton-CCXvjIzA.cjs");function E(l,t){e.addMessages(l,t)}function J(l){e.$locale.set(l)}const B={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CADV1Q8l.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function K(l){e.append_styles(l,"svelte-4ajneu",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function W(l,t,n){const a=l.slice();return a[40]=t[n],a}function H(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,g,f,b,_,y,h,u=l[12]&&ee(l),c=l[12]&&te(l),p=e.ensure_array_like(l[7]),i=[];for(let d=0;d<p.length;d+=1)i[d]=S(W(l,p,d));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),f=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),y=e.element("div");for(let d=0;d<i.length;d+=1)i[d].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(r,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(d,P){e.insert(d,t,P),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,r),e.append(r,s),e.append(n,m),e.append(n,g),e.append(g,f),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,y);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(y,null);e.append(t,h),v&&v.m(t,null)},p(d,P){if(d[12]&&u.p(d,P),P[0]&512&&e.set_data(s,d[9]),P[0]&1024&&e.set_data(f,d[10]),d[12]&&c.p(d,P),P[0]&20864){p=e.ensure_array_like(d[7]);let A;for(A=0;A<p.length;A+=1){const x=W(d,p,A);i[A]?i[A].p(x,P):(i[A]=S(x),i[A].c(),i[A].m(y,null))}for(;A<i.length;A+=1)i[A].d(1);i.length=p.length}d[12]||v.p(d,P)},d(d){d&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,d),v&&v.d()}}}function $(l){let t,n,a,r,s,m,g,f,b,_,y=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=z(H(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),y&&y.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),f=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":"")+" "+(l[13].matches&&l[12]?"PlayerAccountTabletContainer":""))},m(c,p){e.insert(c,t,p),e.append(t,n),y&&y.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,f);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(f,null);e.append(t,b),e.append(t,_)},p(c,p){if(p[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=H(c,h,i);u[i]?u[i].p(v,p):(u[i]=z(v),u[i].c(),u[i].m(f,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),y&&y.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,g,f,b,_,y=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),g=e.svg_element("g"),f=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(y),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(g,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,s),e.append(n,m),e.append(m,g),e.append(g,f),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[15]),e.listen(_,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&y!==(y=p[11]("title")+"")&&e.set_data(h,y)},d(p){p&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function S(l){let t,n,a,r,s,m,g=l[40].label+"",f,b,_,y,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),f=e.text(g),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,p){e.insert(c,t,p),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,f),e.append(t,b),y||(h=e.listen(t,"click",u),y=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),p[0]&128&&g!==(g=l[40].label+"")&&e.set_data(f,g),p[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),y=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function z(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,g){e.insert(m,t,g),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,r)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function re(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[26](t)},p(s,m){a===(a=n(s))&&r?r.p(s,m):(r.d(1),r=a(s),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),r.d(),l[26](null)}}}function oe(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:f=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:p}=t,i=!1,v=!1,d=!0,P,A=[],x,k=window.navigator.userAgent,j=e.getDevice(k)!=="PC",I="",C="";const U=window.matchMedia("(min-width: 768px)"),D=()=>{fetch(u).then(M=>M.json()).then(M=>{Object.keys(M).forEach(w=>{E(w,M[w])})}).catch(M=>{console.error(M)})};Object.keys(B).forEach(o=>{E(o,B[o])});const F=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},q=()=>{let o=e.getDevice(k);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(M=>M.json()).then(M=>{n(7,A=M),T()}).catch(M=>{console.error("Error getting menu items",M)}).finally(()=>{n(23,i=!0)})},G=()=>{let o=new URL(`${r}/v1/player/${f}/profile`);o.searchParams.append("userRoles",_);let M={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,M).then(w=>w.json()).then(w=>{n(9,I=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(24,v=!0)})},L=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},T=()=>{var o;n(8,x=(o=A.find(M=>M.path.includes(c)))==null?void 0:o.id)},N=()=>{J(b)},Q=()=>{G()},V=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const X=o=>L(o);function Z(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,n(5,P)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(16,s=o.cmsendpoint),"env"in o&&n(17,m=o.env),"session"in o&&n(0,g=o.session),"playerid"in o&&n(18,f=o.playerid),"lang"in o&&n(19,b=o.lang),"userroles"in o&&n(20,_=o.userroles),"clientstyling"in o&&n(2,y=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(21,u=o.translationurl),"activemenuitem"in o&&n(22,c=o.activemenuitem),"mbsource"in o&&n(4,p=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&25165824&&n(6,d=!i||!v),l.$$.dirty[0]&524288&&b&&N(),l.$$.dirty[0]&786435&&r&&g&&f&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&y&&P&&e.setClientStyling(P,y),l.$$.dirty[0]&40&&h&&P&&e.setClientStylingURL(P,h),l.$$.dirty[0]&48&&p&&P&&e.setStreamStyling(P,`${p}.Style`),l.$$.dirty[0]&2097152&&u&&D()},[g,r,y,h,p,P,d,A,x,I,C,a,j,U,L,V,s,m,f,b,_,u,c,i,v,X,Z]}class O extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:16,env:17,session:0,playerid:18,lang:19,userroles:20,clientstyling:2,clientstylingurl:3,translationurl:21,activemenuitem:22,mbsource:4},K,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[16]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[17]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[18]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[19]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[20]}set userroles(t){this.$$set({userroles:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[22]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(O,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=O;
@@ -58,7 +58,7 @@ if (typeof window < "u") {
58
58
  });
59
59
  }
60
60
  function Ie(n) {
61
- he(n, "svelte-io9slc", ".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
61
+ he(n, "svelte-4ajneu", ".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
62
62
  }
63
63
  function Z(n, e, t) {
64
64
  const l = n.slice();
@@ -487,7 +487,7 @@ function He(n) {
487
487
  function ze(n, e, t) {
488
488
  let l;
489
489
  Ae(n, we, (r) => t(11, l = r));
490
- let { endpoint: o = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: f = "" } = e, { playerid: b = "" } = e, { lang: v = "en" } = e, { userroles: P = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: M = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: p } = e, i = !1, x = !1, d = !0, _, w = [], E, D = window.navigator.userAgent, ee = N(D) !== "PC", j = "", U = "";
490
+ let { endpoint: o = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: f = "" } = e, { playerid: b = "" } = e, { lang: v = "en" } = e, { userroles: P = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: M = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: p } = e, i = !1, x = !1, d = !0, _, w = [], E, j = window.navigator.userAgent, ee = N(j) !== "PC", U = "", D = "";
491
491
  const te = window.matchMedia("(min-width: 768px)"), ne = () => {
492
492
  fetch(u).then((k) => k.json()).then((k) => {
493
493
  Object.keys(k).forEach((T) => {
@@ -508,7 +508,7 @@ function ze(n, e, t) {
508
508
  break;
509
509
  }
510
510
  }, le = () => {
511
- let r = N(D);
511
+ let r = N(j);
512
512
  if (r)
513
513
  return r === "PC" ? "dk" : "mtWeb";
514
514
  }, oe = () => {
@@ -529,7 +529,7 @@ function ze(n, e, t) {
529
529
  };
530
530
  fetch(r.href, k).then((T) => T.json()).then(
531
531
  (T) => {
532
- t(9, j = T.username), t(10, U = T.email);
532
+ t(9, U = T.username), t(10, D = T.email);
533
533
  },
534
534
  (T) => {
535
535
  console.error(T);
@@ -580,8 +580,8 @@ function ze(n, e, t) {
580
580
  d,
581
581
  w,
582
582
  E,
583
- j,
584
583
  U,
584
+ D,
585
585
  l,
586
586
  ee,
587
587
  te,
@@ -58,7 +58,7 @@ if (typeof window != "undefined") {
58
58
  });
59
59
  }
60
60
  function Ie(n) {
61
- he(n, "svelte-io9slc", ".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
61
+ he(n, "svelte-4ajneu", ".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}");
62
62
  }
63
63
  function Z(n, e, t) {
64
64
  const l = n.slice();
@@ -487,7 +487,7 @@ function He(n) {
487
487
  function ze(n, e, t) {
488
488
  let l;
489
489
  Ae(n, we, (r) => t(11, l = r));
490
- let { endpoint: o = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: f = "" } = e, { playerid: b = "" } = e, { lang: v = "en" } = e, { userroles: P = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: M = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: p } = e, i = !1, k = !1, d = !0, _, w = [], E, D = window.navigator.userAgent, ee = N(D) !== "PC", j = "", U = "";
490
+ let { endpoint: o = "" } = e, { cmsendpoint: s = "" } = e, { env: g = "" } = e, { session: f = "" } = e, { playerid: b = "" } = e, { lang: v = "en" } = e, { userroles: P = "" } = e, { clientstyling: h = "" } = e, { clientstylingurl: M = "" } = e, { translationurl: u = "" } = e, { activemenuitem: c = "" } = e, { mbsource: p } = e, i = !1, k = !1, d = !0, _, w = [], E, j = window.navigator.userAgent, ee = N(j) !== "PC", U = "", D = "";
491
491
  const te = window.matchMedia("(min-width: 768px)"), ne = () => {
492
492
  fetch(u).then((x) => x.json()).then((x) => {
493
493
  Object.keys(x).forEach((T) => {
@@ -508,7 +508,7 @@ function ze(n, e, t) {
508
508
  break;
509
509
  }
510
510
  }, le = () => {
511
- let r = N(D);
511
+ let r = N(j);
512
512
  if (r)
513
513
  return r === "PC" ? "dk" : "mtWeb";
514
514
  }, oe = () => {
@@ -529,7 +529,7 @@ function ze(n, e, t) {
529
529
  };
530
530
  fetch(r.href, x).then((T) => T.json()).then(
531
531
  (T) => {
532
- t(9, j = T.username), t(10, U = T.email);
532
+ t(9, U = T.username), t(10, D = T.email);
533
533
  },
534
534
  (T) => {
535
535
  console.error(T);
@@ -581,8 +581,8 @@ function ze(n, e, t) {
581
581
  d,
582
582
  w,
583
583
  E,
584
- j,
585
584
  U,
585
+ D,
586
586
  l,
587
587
  ee,
588
588
  te,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-BoLe3ne3.cjs")).then(({default:t})=>{!customElements.get("player-account-menu")&&customElements.define("player-account-menu",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountMenu-BxenCOQZ.cjs")).then(({default:t})=>{!customElements.get("player-account-menu")&&customElements.define("player-account-menu",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-zMNLr7SZ.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountMenu-DoJcX2HP.js").then(({ default: t }) => {
14
14
  !customElements.get("player-account-menu") && customElements.define("player-account-menu", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { P as s } from "../components/PlayerAccountMenu-BgGcSgoi.js";
1
+ import { P as s } from "../components/PlayerAccountMenu-C1pPbTdE.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-menu",
3
- "version": "1.63.3",
3
+ "version": "1.64.1",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-menu.cjs",
6
6
  "module": "esnext/player-account-menu.js",