@everymatrix/player-account-menu 1.60.2 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountMenu-BkcjPsxS.cjs +1 -0
- package/components/{PlayerAccountMenu-iIRzMu9t.js → PlayerAccountMenu-DBj0ompO.js} +111 -110
- package/components/{PlayerAccountMenu-BiC_3JsT.js → PlayerAccountMenu-E9IWHYa4.js} +111 -110
- package/es2015/player-account-menu.cjs +1 -1
- package/es2015/player-account-menu.js +1 -1
- package/esnext/player-account-menu.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
- package/stencil/{index-b2193545-BcwULm-K.cjs → index-b2193545-B5BzVbnP.cjs} +1 -1
- package/stencil/{index-b2193545-BJzf08Qh.js → index-b2193545-BranxwW4.js} +1 -1
- package/stencil/{index-b2193545-BlEoeZZL.js → index-b2193545-D-GB6w--.js} +1 -1
- package/stencil/index-b7bbd57e-CQ75dRCG.js +550 -0
- package/stencil/index-b7bbd57e-Cacu08c5.js +534 -0
- package/stencil/index-b7bbd57e-DF6DA3M_.cjs +1 -0
- package/stencil/ui-image-38c3c15f-D8q8WO62.js +39 -0
- package/stencil/ui-image-38c3c15f-DHu3p_Um.cjs +1 -0
- package/stencil/ui-image-38c3c15f-DNKzX83k.js +39 -0
- package/stencil/ui-image-BWdEHrqs.js +11 -0
- package/stencil/ui-image-Cq69wjLL.js +29 -0
- package/stencil/ui-image-hWt-DWaG.cjs +1 -0
- package/stencil/{ui-skeleton-ea659b95-BbvMCw6x.js → ui-skeleton-6d1c12ae-CKWpp1By.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-CGzZMsW7.js → ui-skeleton-6d1c12ae-Cy_R_9Cz.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-8xls9UKV.cjs → ui-skeleton-6d1c12ae-DXSQpIKe.cjs} +2 -2
- package/stencil/{ui-skeleton-C8koemPS.js → ui-skeleton-BMWABShx.js} +8 -8
- package/stencil/{ui-skeleton-Cb-Iz3dC.js → ui-skeleton-CkUGY95J.js} +5 -5
- package/stencil/ui-skeleton-DXc0L06e.cjs +1 -0
- package/components/PlayerAccountMenu-Z9ecqU1L.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/ui-skeleton-B_ESS51i.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bMxOqZDd.cjs");require("../stencil/ui-image-hWt-DWaG.cjs");require("../stencil/ui-skeleton-DXc0L06e.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-bMxOqZDd.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,r,s,m,y,_,b,f,g,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(),y=e.element("p"),_=e.text(l[10]),b=e.space(),c&&c.c(),f=e.space(),g=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(y,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(g,"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,y),e.append(y,_),e.append(n,b),c&&c.m(n,null),e.append(t,f),e.append(t,g);for(let A=0;A<i.length;A+=1)i[A]&&i[A].m(g,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(_,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(g,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,y,_,b,f,g=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"),g&&g.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),y=e.space(),_=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),f=e.element("div"),f.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(_,"class","PlayerAccountMenuList"),e.attr(f,"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),g&&g.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,y),e.append(t,_);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(_,null);e.append(t,b),e.append(t,f)},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(_,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),g&&g.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,y,_,b,f,g=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"),y=e.svg_element("g"),_=e.svg_element("path"),b=e.space(),f=e.element("h3"),h=e.text(g),e.attr(_,"class","aaa"),e.attr(_,"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(_,"transform","translate(15 15) rotate(180)"),e.attr(y,"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(f,"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,y),e.append(y,_),e.append(t,b),e.append(t,f),e.append(f,h),u||(c=[e.listen(n,"click",l[15]),e.listen(f,"click",l[15])],u=!0)},p(p,i){i[0]&2048&&g!==(g=p[11]("title")+"")&&e.set_data(h,g)},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,y=l[40].label+"",_,b,f,g,h;function u(){return l[25](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("ui-image"),s=e.space(),m=e.element("span"),_=e.text(y),b=e.space(),e.set_custom_element_data(a,"imgClass","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.set_custom_element_data(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",f="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,_),e.append(t,b),g||(h=e.listen(t,"click",u),g=!0)},p(c,p){l=c,p[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.set_custom_element_data(a,"src",r),p[0]&128&&y!==(y=l[40].label+"")&&e.set_data(_,y),p[0]&384&&f!==(f="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",f)},d(c){c&&e.detach(t),g=!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,y){e.insert(m,t,y),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 oe(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 re(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:y=""}=t,{playerid:_=""}=t,{lang:b="en"}=t,{userroles:f=""}=t,{clientstyling:g=""}=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(o=>{E(o,B[o])});const F=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,y=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/${_}/profile`);o.searchParams.append("userRoles",f);let M={method:"GET",headers:{"X-SessionID":y}};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,y=o.session),"playerid"in o&&n(18,_=o.playerid),"lang"in o&&n(19,b=o.lang),"userroles"in o&&n(20,f=o.userroles),"clientstyling"in o&&n(2,g=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&&y&&_&&b&&Q(),l.$$.dirty[0]&720896&&s&&b&&m&&R(),l.$$.dirty[0]&4194304&&c&&T(),l.$$.dirty[0]&36&&g&&P&&e.setClientStyling(P,g),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()},[y,r,g,h,p,P,d,A,x,I,C,a,D,j,L,V,s,m,_,b,f,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,10 +1,11 @@
|
|
|
1
|
-
import { a as me, $ as
|
|
2
|
-
import "../stencil/ui-
|
|
1
|
+
import { a as me, $ as ge, c as ye, S as pe, i as de, s as fe, f as C, b as he, n as S, d as F, e as L, g as h, h as Ae, j as N, o as be, k as Pe, l as H, m as $, p as a, q as I, r as s, t as p, u as z, v as W, w as Me, x as O, y as B, z as Q, A as we, B as ve, C as _e, D as xe } from "./GeneralLogout-frd7X--7.js";
|
|
2
|
+
import "../stencil/ui-image-BWdEHrqs.js";
|
|
3
|
+
import "../stencil/ui-skeleton-CkUGY95J.js";
|
|
3
4
|
function V(n, e) {
|
|
4
5
|
me(n, e);
|
|
5
6
|
}
|
|
6
7
|
function ke(n) {
|
|
7
|
-
|
|
8
|
+
ge.set(n);
|
|
8
9
|
}
|
|
9
10
|
const X = {
|
|
10
11
|
en: {
|
|
@@ -69,39 +70,39 @@ function J(n, e, t) {
|
|
|
69
70
|
return l[37] = e[t], l;
|
|
70
71
|
}
|
|
71
72
|
function Ce(n) {
|
|
72
|
-
let e, t, l, o,
|
|
73
|
+
let e, t, l, o, u, g, A, b, v, P, f, M, m = (
|
|
73
74
|
/*isMobile*/
|
|
74
75
|
n[12] && Le(n)
|
|
75
76
|
), c = (
|
|
76
77
|
/*isMobile*/
|
|
77
78
|
n[12] && Te(n)
|
|
78
|
-
),
|
|
79
|
+
), y = H(
|
|
79
80
|
/*menuItems*/
|
|
80
81
|
n[7]
|
|
81
82
|
), r = [];
|
|
82
|
-
for (let d = 0; d <
|
|
83
|
-
r[d] = K(Z(n,
|
|
83
|
+
for (let d = 0; d < y.length; d += 1)
|
|
84
|
+
r[d] = K(Z(n, y, d));
|
|
84
85
|
let x = !/*isMobile*/
|
|
85
86
|
n[12] && Ee(n);
|
|
86
87
|
return {
|
|
87
88
|
c() {
|
|
88
|
-
e = h("div"), t = h("div"),
|
|
89
|
+
e = h("div"), t = h("div"), m && m.c(), l = I(), o = h("p"), u = W(
|
|
89
90
|
/*profileUsername*/
|
|
90
91
|
n[9]
|
|
91
|
-
),
|
|
92
|
+
), g = I(), A = h("p"), b = W(
|
|
92
93
|
/*profileEmail*/
|
|
93
94
|
n[10]
|
|
94
95
|
), v = I(), c && c.c(), P = I(), f = h("div");
|
|
95
96
|
for (let d = 0; d < r.length; d += 1)
|
|
96
97
|
r[d].c();
|
|
97
|
-
M = I(), x && x.c(),
|
|
98
|
-
(n[12] ? "PlayerAccountMenuHeaderMobile" : "")),
|
|
98
|
+
M = I(), x && x.c(), p(o, "class", "PlayerAccountMenuUser"), p(A, "class", "PlayerAccountMenuEmail"), p(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
99
|
+
(n[12] ? "PlayerAccountMenuHeaderMobile" : "")), p(f, "class", "PlayerAccountMenuList"), p(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
99
100
|
(n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
|
|
100
101
|
(n[13].matches && /*isMobile*/
|
|
101
102
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
102
103
|
},
|
|
103
104
|
m(d, _) {
|
|
104
|
-
L(d, e, _), a(e, t),
|
|
105
|
+
L(d, e, _), a(e, t), m && m.m(t, null), a(t, l), a(t, o), a(o, u), a(t, g), a(t, A), a(A, b), a(t, v), c && c.m(t, null), a(e, P), a(e, f);
|
|
105
106
|
for (let w = 0; w < r.length; w += 1)
|
|
106
107
|
r[w] && r[w].m(f, null);
|
|
107
108
|
a(e, M), x && x.m(e, null);
|
|
@@ -109,9 +110,9 @@ function Ce(n) {
|
|
|
109
110
|
p(d, _) {
|
|
110
111
|
if (
|
|
111
112
|
/*isMobile*/
|
|
112
|
-
d[12] &&
|
|
113
|
+
d[12] && m.p(d, _), _[0] & /*profileUsername*/
|
|
113
114
|
512 && z(
|
|
114
|
-
|
|
115
|
+
u,
|
|
115
116
|
/*profileUsername*/
|
|
116
117
|
d[9]
|
|
117
118
|
), _[0] & /*profileEmail*/
|
|
@@ -123,81 +124,81 @@ function Ce(n) {
|
|
|
123
124
|
d[12] && c.p(d, _), _[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
124
125
|
20864
|
|
125
126
|
) {
|
|
126
|
-
|
|
127
|
+
y = H(
|
|
127
128
|
/*menuItems*/
|
|
128
129
|
d[7]
|
|
129
130
|
);
|
|
130
131
|
let w;
|
|
131
|
-
for (w = 0; w <
|
|
132
|
-
const E = Z(d,
|
|
132
|
+
for (w = 0; w < y.length; w += 1) {
|
|
133
|
+
const E = Z(d, y, w);
|
|
133
134
|
r[w] ? r[w].p(E, _) : (r[w] = K(E), r[w].c(), r[w].m(f, null));
|
|
134
135
|
}
|
|
135
136
|
for (; w < r.length; w += 1)
|
|
136
137
|
r[w].d(1);
|
|
137
|
-
r.length =
|
|
138
|
+
r.length = y.length;
|
|
138
139
|
}
|
|
139
140
|
/*isMobile*/
|
|
140
141
|
d[12] || x.p(d, _);
|
|
141
142
|
},
|
|
142
143
|
d(d) {
|
|
143
|
-
d && F(e),
|
|
144
|
+
d && F(e), m && m.d(), c && c.d(), $(r, d), x && x.d();
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
147
|
}
|
|
147
148
|
function Fe(n) {
|
|
148
|
-
let e, t, l, o,
|
|
149
|
+
let e, t, l, o, u, g, A, b, v, P, f = (
|
|
149
150
|
/*isMobile*/
|
|
150
151
|
n[12] && Be()
|
|
151
|
-
), M = H(Array(18)),
|
|
152
|
+
), M = H(Array(18)), m = [];
|
|
152
153
|
for (let c = 0; c < M.length; c += 1)
|
|
153
|
-
|
|
154
|
+
m[c] = Y(J(n, M, c));
|
|
154
155
|
return {
|
|
155
156
|
c() {
|
|
156
|
-
e = h("div"), t = h("div"), f && f.c(), l = I(), o = h("ui-skeleton"),
|
|
157
|
-
for (let c = 0; c <
|
|
158
|
-
|
|
159
|
-
v = I(), P = h("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',
|
|
160
|
-
(n[12] ? "PlayerAccountMenuHeaderMobile" : "")),
|
|
157
|
+
e = h("div"), t = h("div"), f && f.c(), l = I(), o = h("ui-skeleton"), u = I(), g = h("ui-skeleton"), A = I(), b = h("div");
|
|
158
|
+
for (let c = 0; c < m.length; c += 1)
|
|
159
|
+
m[c].c();
|
|
160
|
+
v = I(), P = h("div"), P.innerHTML = '<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>', s(o, "structure", "title"), s(o, "width", "100px"), s(o, "height", "20px"), s(o, "margin-top", "10px"), s(g, "structure", "text"), s(g, "width", "200px"), s(g, "height", "20px"), p(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
161
|
+
(n[12] ? "PlayerAccountMenuHeaderMobile" : "")), p(b, "class", "PlayerAccountMenuList"), p(P, "class", "skeletonLogOut"), p(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
161
162
|
(n[12] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
|
|
162
163
|
(n[13].matches && /*isMobile*/
|
|
163
164
|
n[12] ? "PlayerAccountTabletContainer" : ""));
|
|
164
165
|
},
|
|
165
|
-
m(c,
|
|
166
|
-
L(c, e,
|
|
167
|
-
for (let r = 0; r <
|
|
168
|
-
|
|
166
|
+
m(c, y) {
|
|
167
|
+
L(c, e, y), a(e, t), f && f.m(t, null), a(t, l), a(t, o), a(t, u), a(t, g), a(e, A), a(e, b);
|
|
168
|
+
for (let r = 0; r < m.length; r += 1)
|
|
169
|
+
m[r] && m[r].m(b, null);
|
|
169
170
|
a(e, v), a(e, P);
|
|
170
171
|
},
|
|
171
|
-
p(c,
|
|
172
|
-
if (
|
|
172
|
+
p(c, y) {
|
|
173
|
+
if (y[0] & /*isMobile*/
|
|
173
174
|
4096) {
|
|
174
175
|
M = H(Array(18));
|
|
175
176
|
let r;
|
|
176
177
|
for (r = 0; r < M.length; r += 1) {
|
|
177
178
|
const x = J(c, M, r);
|
|
178
|
-
|
|
179
|
+
m[r] ? m[r].p(x, y) : (m[r] = Y(x), m[r].c(), m[r].m(b, null));
|
|
179
180
|
}
|
|
180
|
-
for (; r <
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
for (; r < m.length; r += 1)
|
|
182
|
+
m[r].d(1);
|
|
183
|
+
m.length = M.length;
|
|
183
184
|
}
|
|
184
185
|
},
|
|
185
186
|
d(c) {
|
|
186
|
-
c && F(e), f && f.d(), $(
|
|
187
|
+
c && F(e), f && f.d(), $(m, c);
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
190
|
}
|
|
190
191
|
function Le(n) {
|
|
191
|
-
let e, t, l, o,
|
|
192
|
+
let e, t, l, o, u, g, A, b, v, P, f = (
|
|
192
193
|
/*$_*/
|
|
193
194
|
n[11]("title") + ""
|
|
194
|
-
), M,
|
|
195
|
+
), M, m, c;
|
|
195
196
|
return {
|
|
196
197
|
c() {
|
|
197
|
-
e = h("div"), t = B("svg"), l = B("defs"), o = B("style"),
|
|
198
|
+
e = h("div"), t = B("svg"), l = B("defs"), o = B("style"), u = W(".aaa{fill:var(--emw--color-white, #FFFFFF);}"), g = B("g"), A = B("g"), b = B("path"), v = I(), P = h("h3"), M = W(f), p(b, "class", "aaa"), p(b, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), p(b, "transform", "translate(15 15) rotate(180)"), p(A, "transform", "translate(20 158)"), p(g, "transform", "translate(-20 -158)"), p(t, "xmlns", "http://www.w3.org/2000/svg"), p(t, "width", "15"), p(t, "height", "15"), p(t, "viewBox", "0 0 15 15"), p(P, "class", "PlayerAccountMenuCategoryTitle"), p(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
198
199
|
},
|
|
199
|
-
m(
|
|
200
|
-
L(
|
|
200
|
+
m(y, r) {
|
|
201
|
+
L(y, e, r), a(e, t), a(t, l), a(l, o), a(o, u), a(t, g), a(g, A), a(A, b), a(e, v), a(e, P), a(P, M), m || (c = [
|
|
201
202
|
O(
|
|
202
203
|
t,
|
|
203
204
|
"click",
|
|
@@ -210,15 +211,15 @@ function Le(n) {
|
|
|
210
211
|
/*goToHome*/
|
|
211
212
|
n[15]
|
|
212
213
|
)
|
|
213
|
-
],
|
|
214
|
+
], m = !0);
|
|
214
215
|
},
|
|
215
|
-
p(
|
|
216
|
+
p(y, r) {
|
|
216
217
|
r[0] & /*$_*/
|
|
217
218
|
2048 && f !== (f = /*$_*/
|
|
218
|
-
|
|
219
|
+
y[11]("title") + "") && z(M, f);
|
|
219
220
|
},
|
|
220
|
-
d(
|
|
221
|
-
|
|
221
|
+
d(y) {
|
|
222
|
+
y && F(e), m = !1, Me(c);
|
|
222
223
|
}
|
|
223
224
|
};
|
|
224
225
|
}
|
|
@@ -226,63 +227,63 @@ function Te(n) {
|
|
|
226
227
|
let e, t;
|
|
227
228
|
return {
|
|
228
229
|
c() {
|
|
229
|
-
e = h("div"), t = h("general-logout"),
|
|
230
|
+
e = h("div"), t = h("general-logout"), s(
|
|
230
231
|
t,
|
|
231
232
|
"endpoint",
|
|
232
233
|
/*endpoint*/
|
|
233
234
|
n[1]
|
|
234
|
-
),
|
|
235
|
+
), s(
|
|
235
236
|
t,
|
|
236
237
|
"session",
|
|
237
238
|
/*session*/
|
|
238
239
|
n[0]
|
|
239
|
-
),
|
|
240
|
+
), s(t, "buttonlocation", "PlayerAccountMenu"), s(
|
|
240
241
|
t,
|
|
241
242
|
"clientstyling",
|
|
242
243
|
/*clientstyling*/
|
|
243
244
|
n[2]
|
|
244
|
-
),
|
|
245
|
+
), s(
|
|
245
246
|
t,
|
|
246
247
|
"clientstylingurl",
|
|
247
248
|
/*clientstylingurl*/
|
|
248
249
|
n[3]
|
|
249
|
-
),
|
|
250
|
+
), s(
|
|
250
251
|
t,
|
|
251
252
|
"mbsource",
|
|
252
253
|
/*mbsource*/
|
|
253
254
|
n[4]
|
|
254
|
-
),
|
|
255
|
+
), p(e, "class", "PlayerAccountLogOutArea");
|
|
255
256
|
},
|
|
256
257
|
m(l, o) {
|
|
257
258
|
L(l, e, o), a(e, t);
|
|
258
259
|
},
|
|
259
260
|
p(l, o) {
|
|
260
261
|
o[0] & /*endpoint*/
|
|
261
|
-
2 &&
|
|
262
|
+
2 && s(
|
|
262
263
|
t,
|
|
263
264
|
"endpoint",
|
|
264
265
|
/*endpoint*/
|
|
265
266
|
l[1]
|
|
266
267
|
), o[0] & /*session*/
|
|
267
|
-
1 &&
|
|
268
|
+
1 && s(
|
|
268
269
|
t,
|
|
269
270
|
"session",
|
|
270
271
|
/*session*/
|
|
271
272
|
l[0]
|
|
272
273
|
), o[0] & /*clientstyling*/
|
|
273
|
-
4 &&
|
|
274
|
+
4 && s(
|
|
274
275
|
t,
|
|
275
276
|
"clientstyling",
|
|
276
277
|
/*clientstyling*/
|
|
277
278
|
l[2]
|
|
278
279
|
), o[0] & /*clientstylingurl*/
|
|
279
|
-
8 &&
|
|
280
|
+
8 && s(
|
|
280
281
|
t,
|
|
281
282
|
"clientstylingurl",
|
|
282
283
|
/*clientstylingurl*/
|
|
283
284
|
l[3]
|
|
284
285
|
), o[0] & /*mbsource*/
|
|
285
|
-
16 &&
|
|
286
|
+
16 && s(
|
|
286
287
|
t,
|
|
287
288
|
"mbsource",
|
|
288
289
|
/*mbsource*/
|
|
@@ -295,11 +296,11 @@ function Te(n) {
|
|
|
295
296
|
};
|
|
296
297
|
}
|
|
297
298
|
function K(n) {
|
|
298
|
-
let e, t, l, o,
|
|
299
|
+
let e, t, l, o, u, g, A = (
|
|
299
300
|
/*menuItem*/
|
|
300
301
|
n[40].label + ""
|
|
301
302
|
), b, v, P, f, M;
|
|
302
|
-
function
|
|
303
|
+
function m() {
|
|
303
304
|
return (
|
|
304
305
|
/*click_handler*/
|
|
305
306
|
n[25](
|
|
@@ -310,26 +311,26 @@ function K(n) {
|
|
|
310
311
|
}
|
|
311
312
|
return {
|
|
312
313
|
c() {
|
|
313
|
-
e = h("div"), t = h("p"), l = h("
|
|
314
|
+
e = h("div"), t = h("p"), l = h("ui-image"), u = I(), g = h("span"), b = W(A), v = I(), s(l, "imgClass", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
314
315
|
(n[12] ? "PlayerAccountMenuItemIconMobile" : "")), Q(l.src, o = /*menuItem*/
|
|
315
|
-
n[40].img) ||
|
|
316
|
+
n[40].img) || s(l, "src", o), p(g, "class", "PlayerAccountMenuItemTitle"), p(t, "class", "PlayerAccountMenuItemWrapper"), p(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
316
317
|
(n[8] === /*menuItem*/
|
|
317
318
|
n[40].id && !/*isMobile*/
|
|
318
319
|
n[12] ? "PlayerAccountMenuActiveItemBox" : ""));
|
|
319
320
|
},
|
|
320
|
-
m(c,
|
|
321
|
-
L(c, e,
|
|
321
|
+
m(c, y) {
|
|
322
|
+
L(c, e, y), a(e, t), a(t, l), a(t, u), a(t, g), a(g, b), a(e, v), f || (M = O(e, "click", m), f = !0);
|
|
322
323
|
},
|
|
323
|
-
p(c,
|
|
324
|
-
n = c,
|
|
324
|
+
p(c, y) {
|
|
325
|
+
n = c, y[0] & /*menuItems*/
|
|
325
326
|
128 && !Q(l.src, o = /*menuItem*/
|
|
326
|
-
n[40].img) &&
|
|
327
|
+
n[40].img) && s(l, "src", o), y[0] & /*menuItems*/
|
|
327
328
|
128 && A !== (A = /*menuItem*/
|
|
328
|
-
n[40].label + "") && z(b, A),
|
|
329
|
+
n[40].label + "") && z(b, A), y[0] & /*selectedItem, menuItems*/
|
|
329
330
|
384 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
330
331
|
(n[8] === /*menuItem*/
|
|
331
332
|
n[40].id && !/*isMobile*/
|
|
332
|
-
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) &&
|
|
333
|
+
n[12] ? "PlayerAccountMenuActiveItemBox" : "")) && p(e, "class", P);
|
|
333
334
|
},
|
|
334
335
|
d(c) {
|
|
335
336
|
c && F(e), f = !1, M();
|
|
@@ -340,63 +341,63 @@ function Ee(n) {
|
|
|
340
341
|
let e, t;
|
|
341
342
|
return {
|
|
342
343
|
c() {
|
|
343
|
-
e = h("div"), t = h("general-logout"),
|
|
344
|
+
e = h("div"), t = h("general-logout"), s(
|
|
344
345
|
t,
|
|
345
346
|
"endpoint",
|
|
346
347
|
/*endpoint*/
|
|
347
348
|
n[1]
|
|
348
|
-
),
|
|
349
|
+
), s(
|
|
349
350
|
t,
|
|
350
351
|
"session",
|
|
351
352
|
/*session*/
|
|
352
353
|
n[0]
|
|
353
|
-
),
|
|
354
|
+
), s(t, "buttonlocation", "PlayerAccountMenu"), s(
|
|
354
355
|
t,
|
|
355
356
|
"clientstyling",
|
|
356
357
|
/*clientstyling*/
|
|
357
358
|
n[2]
|
|
358
|
-
),
|
|
359
|
+
), s(
|
|
359
360
|
t,
|
|
360
361
|
"clientstylingurl",
|
|
361
362
|
/*clientstylingurl*/
|
|
362
363
|
n[3]
|
|
363
|
-
),
|
|
364
|
+
), s(
|
|
364
365
|
t,
|
|
365
366
|
"mbsource",
|
|
366
367
|
/*mbsource*/
|
|
367
368
|
n[4]
|
|
368
|
-
),
|
|
369
|
+
), p(e, "class", "PlayerAccountLogOutArea");
|
|
369
370
|
},
|
|
370
371
|
m(l, o) {
|
|
371
372
|
L(l, e, o), a(e, t);
|
|
372
373
|
},
|
|
373
374
|
p(l, o) {
|
|
374
375
|
o[0] & /*endpoint*/
|
|
375
|
-
2 &&
|
|
376
|
+
2 && s(
|
|
376
377
|
t,
|
|
377
378
|
"endpoint",
|
|
378
379
|
/*endpoint*/
|
|
379
380
|
l[1]
|
|
380
381
|
), o[0] & /*session*/
|
|
381
|
-
1 &&
|
|
382
|
+
1 && s(
|
|
382
383
|
t,
|
|
383
384
|
"session",
|
|
384
385
|
/*session*/
|
|
385
386
|
l[0]
|
|
386
387
|
), o[0] & /*clientstyling*/
|
|
387
|
-
4 &&
|
|
388
|
+
4 && s(
|
|
388
389
|
t,
|
|
389
390
|
"clientstyling",
|
|
390
391
|
/*clientstyling*/
|
|
391
392
|
l[2]
|
|
392
393
|
), o[0] & /*clientstylingurl*/
|
|
393
|
-
8 &&
|
|
394
|
+
8 && s(
|
|
394
395
|
t,
|
|
395
396
|
"clientstylingurl",
|
|
396
397
|
/*clientstylingurl*/
|
|
397
398
|
l[3]
|
|
398
399
|
), o[0] & /*mbsource*/
|
|
399
|
-
16 &&
|
|
400
|
+
16 && s(
|
|
400
401
|
t,
|
|
401
402
|
"mbsource",
|
|
402
403
|
/*mbsource*/
|
|
@@ -412,7 +413,7 @@ function Be(n) {
|
|
|
412
413
|
let e;
|
|
413
414
|
return {
|
|
414
415
|
c() {
|
|
415
|
-
e = h("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',
|
|
416
|
+
e = h("div"), e.innerHTML = '<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>', p(e, "class", "PlayerAccountMenuCategoryWrapper");
|
|
416
417
|
},
|
|
417
418
|
m(t, l) {
|
|
418
419
|
L(t, e, l);
|
|
@@ -426,7 +427,7 @@ function We(n) {
|
|
|
426
427
|
let e;
|
|
427
428
|
return {
|
|
428
429
|
c() {
|
|
429
|
-
e = h("ui-skeleton"),
|
|
430
|
+
e = h("ui-skeleton"), s(e, "structure", "circle"), s(e, "size", "20px");
|
|
430
431
|
},
|
|
431
432
|
m(t, l) {
|
|
432
433
|
L(t, e, l);
|
|
@@ -437,33 +438,33 @@ function We(n) {
|
|
|
437
438
|
};
|
|
438
439
|
}
|
|
439
440
|
function Y(n) {
|
|
440
|
-
let e, t, l, o,
|
|
441
|
+
let e, t, l, o, u = !/*isMobile*/
|
|
441
442
|
n[12] && We();
|
|
442
443
|
return {
|
|
443
444
|
c() {
|
|
444
|
-
e = h("div"),
|
|
445
|
+
e = h("div"), u && u.c(), t = I(), l = h("ui-skeleton"), o = I(), s(l, "structure", "rectangle"), s(l, "width", "100%"), s(
|
|
445
446
|
l,
|
|
446
447
|
"height",
|
|
447
448
|
/*isMobile*/
|
|
448
449
|
n[12] ? "120px" : "20px"
|
|
449
|
-
),
|
|
450
|
+
), p(e, "class", "PlayerAccountItemWrap " + /*isMobile*/
|
|
450
451
|
(n[12] ? "PlayerAccountItemWrapMobile" : ""));
|
|
451
452
|
},
|
|
452
|
-
m(
|
|
453
|
-
L(
|
|
453
|
+
m(g, A) {
|
|
454
|
+
L(g, e, A), u && u.m(e, null), a(e, t), a(e, l), a(e, o);
|
|
454
455
|
},
|
|
455
456
|
p: S,
|
|
456
|
-
d(
|
|
457
|
-
|
|
457
|
+
d(g) {
|
|
458
|
+
g && F(e), u && u.d();
|
|
458
459
|
}
|
|
459
460
|
};
|
|
460
461
|
}
|
|
461
462
|
function He(n) {
|
|
462
463
|
let e;
|
|
463
|
-
function t(
|
|
464
|
+
function t(u, g) {
|
|
464
465
|
return (
|
|
465
466
|
/*skeletonLoading*/
|
|
466
|
-
|
|
467
|
+
u[6] ? Fe : Ce
|
|
467
468
|
);
|
|
468
469
|
}
|
|
469
470
|
let l = t(n), o = l(n);
|
|
@@ -471,25 +472,25 @@ function He(n) {
|
|
|
471
472
|
c() {
|
|
472
473
|
e = h("div"), o.c();
|
|
473
474
|
},
|
|
474
|
-
m(
|
|
475
|
-
L(
|
|
475
|
+
m(u, g) {
|
|
476
|
+
L(u, e, g), o.m(e, null), n[26](e);
|
|
476
477
|
},
|
|
477
|
-
p(
|
|
478
|
-
l === (l = t(
|
|
478
|
+
p(u, g) {
|
|
479
|
+
l === (l = t(u)) && o ? o.p(u, g) : (o.d(1), o = l(u), o && (o.c(), o.m(e, null)));
|
|
479
480
|
},
|
|
480
481
|
i: S,
|
|
481
482
|
o: S,
|
|
482
|
-
d(
|
|
483
|
-
|
|
483
|
+
d(u) {
|
|
484
|
+
u && F(e), o.d(), n[26](null);
|
|
484
485
|
}
|
|
485
486
|
};
|
|
486
487
|
}
|
|
487
488
|
function ze(n, e, t) {
|
|
488
489
|
let l;
|
|
489
490
|
Ae(n, we, (i) => t(11, l = i));
|
|
490
|
-
let { endpoint: o = "" } = e, { cmsendpoint:
|
|
491
|
+
let { endpoint: o = "" } = e, { cmsendpoint: u = "" } = e, { env: g = "" } = e, { session: A = "" } = e, { playerid: b = "" } = e, { lang: v = "en" } = e, { userroles: P = "" } = e, { clientstyling: f = "" } = e, { clientstylingurl: M = "" } = e, { translationurl: m = "" } = e, { activemenuitem: c = "" } = e, { mbsource: y } = e, r = !1, x = !1, d = !0, _, w = [], E, D = window.navigator.userAgent, ee = N(D) !== "PC", j = "", U = "";
|
|
491
492
|
const te = window.matchMedia("(min-width: 768px)"), ne = () => {
|
|
492
|
-
fetch(
|
|
493
|
+
fetch(m).then((k) => k.json()).then((k) => {
|
|
493
494
|
Object.keys(k).forEach((T) => {
|
|
494
495
|
V(T, k[T]);
|
|
495
496
|
});
|
|
@@ -512,7 +513,7 @@ function ze(n, e, t) {
|
|
|
512
513
|
if (i)
|
|
513
514
|
return i === "PC" ? "dk" : "mtWeb";
|
|
514
515
|
}, oe = () => {
|
|
515
|
-
const i = new URL(`${
|
|
516
|
+
const i = new URL(`${u}/${v}/profile-menu?env=${g}`);
|
|
516
517
|
i.searchParams.append("device", le()), fetch(i.href).then((k) => k.json()).then((k) => {
|
|
517
518
|
t(7, w = k), G();
|
|
518
519
|
}).catch((k) => {
|
|
@@ -558,24 +559,24 @@ function ze(n, e, t) {
|
|
|
558
559
|
});
|
|
559
560
|
}
|
|
560
561
|
return n.$$set = (i) => {
|
|
561
|
-
"endpoint" in i && t(1, o = i.endpoint), "cmsendpoint" in i && t(16,
|
|
562
|
+
"endpoint" in i && t(1, o = i.endpoint), "cmsendpoint" in i && t(16, u = i.cmsendpoint), "env" in i && t(17, g = i.env), "session" in i && t(0, A = i.session), "playerid" in i && t(18, b = i.playerid), "lang" in i && t(19, v = i.lang), "userroles" in i && t(20, P = i.userroles), "clientstyling" in i && t(2, f = i.clientstyling), "clientstylingurl" in i && t(3, M = i.clientstylingurl), "translationurl" in i && t(21, m = i.translationurl), "activemenuitem" in i && t(22, c = i.activemenuitem), "mbsource" in i && t(4, y = i.mbsource);
|
|
562
563
|
}, n.$$.update = () => {
|
|
563
564
|
n.$$.dirty[0] & /*menuLoaded, playerInfoLoaded*/
|
|
564
565
|
25165824 && t(6, d = !r || !x), n.$$.dirty[0] & /*lang*/
|
|
565
566
|
524288 && v && re(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
566
567
|
786435 && o && A && b && v && ae(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
567
|
-
720896 &&
|
|
568
|
+
720896 && u && v && g && oe(), n.$$.dirty[0] & /*activemenuitem*/
|
|
568
569
|
4194304 && c && G(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
569
570
|
36 && f && _ && ve(_, f), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
570
571
|
40 && M && _ && _e(_, M), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
571
|
-
48 &&
|
|
572
|
-
2097152 &&
|
|
572
|
+
48 && y && _ && xe(_, `${y}.Style`), n.$$.dirty[0] & /*translationurl*/
|
|
573
|
+
2097152 && m && ne();
|
|
573
574
|
}, [
|
|
574
575
|
A,
|
|
575
576
|
o,
|
|
576
577
|
f,
|
|
577
578
|
M,
|
|
578
|
-
|
|
579
|
+
y,
|
|
579
580
|
_,
|
|
580
581
|
d,
|
|
581
582
|
w,
|
|
@@ -587,12 +588,12 @@ function ze(n, e, t) {
|
|
|
587
588
|
te,
|
|
588
589
|
q,
|
|
589
590
|
ce,
|
|
590
|
-
|
|
591
|
-
|
|
591
|
+
u,
|
|
592
|
+
g,
|
|
592
593
|
b,
|
|
593
594
|
v,
|
|
594
595
|
P,
|
|
595
|
-
|
|
596
|
+
m,
|
|
596
597
|
c,
|
|
597
598
|
r,
|
|
598
599
|
x,
|
|
@@ -699,7 +700,7 @@ class Se extends pe {
|
|
|
699
700
|
this.$$set({ mbsource: e }), C();
|
|
700
701
|
}
|
|
701
702
|
}
|
|
702
|
-
|
|
703
|
+
ye(Se, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {}, mbsource: {} }, [], [], !0);
|
|
703
704
|
export {
|
|
704
705
|
Se as P
|
|
705
706
|
};
|