@everymatrix/player-account-controller 1.44.0 → 1.45.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/GeneralLogout-PMsAgsr8.js +4832 -0
- package/components/GeneralLogout-WbaN9lE3.cjs +8 -0
- package/components/PlayerAccountBettingHistory-C5O_N5I6.js +328 -0
- package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +1 -0
- package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +1 -0
- package/components/PlayerAccountBiometrics-BIZ77T9P.js +300 -0
- package/components/PlayerAccountClosure-DIRkc6kA.cjs +1 -0
- package/components/PlayerAccountClosure-O9rY7FHF.js +339 -0
- package/components/PlayerAccountController-1M1FKlrd.cjs +1 -0
- package/components/PlayerAccountController-DRQpN2gW.js +6176 -0
- package/components/PlayerAccountGamingLimits-BnH1h5ZI.js +758 -0
- package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-CHBpCAi7.js +306 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-QO4BtCS2.js +4148 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +10 -0
- package/components/PlayerAccountGamingLimitsHistory2-CJxOlPZu.js +734 -0
- package/components/PlayerAccountGamingLimitsHistory2-_p2IXses.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-GwIjd7fB.js +1488 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-DcGsK_Nq.js +2794 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-DO2f_4IF.js +337 -0
- package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-BZ-Ax67a.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-CQClFTjE.js +844 -0
- package/components/PlayerAccountMenu-1kpYtr6Q.cjs +1 -0
- package/components/PlayerAccountMenu-C9YFW_X4.js +576 -0
- package/components/PlayerAccountModal-BPuDqVwe.js +198 -0
- package/components/PlayerAccountModal-DpMfe1gv.cjs +1 -0
- package/components/PlayerAccountNotifications-DfLcLCTk.js +261 -0
- package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +1 -0
- package/components/PlayerAccountSelfExclusion-BR4bl6bz.js +16404 -0
- package/components/PlayerAccountSelfExclusion-CA2oAuhb.cjs +3693 -0
- package/components/PlayerAccountTimeout-Df9mSPXx.js +448 -0
- package/components/PlayerAccountTimeout-dxzuaoP9.cjs +1 -0
- package/components/PlayerActiveBonuses-BJtk2_80.js +986 -0
- package/components/PlayerActiveBonuses-D0-qI8iz.cjs +1 -0
- package/components/PlayerBonusCard-BoENnXsd.cjs +1 -0
- package/components/PlayerBonusCard-D4MZsrSK.js +565 -0
- package/components/PlayerBonusHistory-3B1tPB8g.cjs +1 -0
- package/components/PlayerBonusHistory-CDA_Ahs-.js +840 -0
- package/components/PlayerChangePassword-C69CRrvS.js +1161 -0
- package/components/PlayerChangePassword-RpQIhFff.cjs +3 -0
- package/components/PlayerDeposit-BK_UhkqG.js +395 -0
- package/components/PlayerDeposit-COhpfcRx.cjs +1 -0
- package/components/PlayerGamingHistory-C8Kvaq7b.cjs +1 -0
- package/components/PlayerGamingHistory-CCSGdevP.js +920 -0
- package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +1 -0
- package/components/PlayerPendingWithdrawals-DIp1o6Bq.js +307 -0
- package/components/PlayerProfileInfo-BeD6hzPW.cjs +1 -0
- package/components/PlayerProfileInfo-CkcYNGGP.js +1707 -0
- package/components/PlayerRealityCheck-B37H9_Rn.cjs +1 -0
- package/components/PlayerRealityCheck-UaRdeADU.js +587 -0
- package/components/PlayerTransactionHistory-CxYO3lnm.cjs +1 -0
- package/components/PlayerTransactionHistory-Da2H2goa.js +311 -0
- package/components/PlayerWithdrawal-DK_JxD9z.js +365 -0
- package/components/PlayerWithdrawal-DYkzBPcQ.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/package.json +38 -32
- package/CHANGELOG.md +0 -19
- package/README.md +0 -0
- package/assets/arrow-down.svg +0 -3
- package/dist/player-account-controller.js +0 -2221
- package/dist/player-account-controller.js.map +0 -1
- package/documentation.md +0 -166
- package/index.html +0 -46
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerAccountController.svelte +0 -732
- package/src/PlayerAccountController.types.ts +0 -5
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -102
- package/stories/PlayerAccountPage.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-WbaN9lE3.cjs");function k(l,t){e.addMessages(l,t)}function Q(l){e.$locale.set(l)}const L={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"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-WbaN9lE3.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function V(l){e.append_styles(l,"svelte-12es30r",".PlayerAccountMenuContainer.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper.svelte-12es30r{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper span.svelte-12es30r{display:flex;align-items:center}.PlayerAccountMenuHeader.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader.svelte-12es30r p.svelte-12es30r{font-weight:300}.PlayerAccountMenuHeaderMobile.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:20px}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIcon.svelte-12es30r{width:20px;padding-top:unset}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIconMobile.svelte-12es30r{width:30px;padding-top:15px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar{width:6px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r.svelte-12es30r{height:unset}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryWrapper.svelte-12es30r{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{margin:0;font-weight:600}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{margin:0}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-12es30r{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:30px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuHeader.svelte-12es30r{padding:30px 40px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{font-size:32px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{font-size:26px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:20px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:80px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{gap:28px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:24px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{right:54px;top:72px}")}function T(l,t,n){const s=l.slice();return s[35]=t[n],s}function X(l){let t,n,s,a,m,u,d,v,A,_,y,M,h=l[10]&&Z(l),p=l[10]&&J(l),c=e.ensure_array_like(l[5]),i=[];for(let o=0;o<c.length;o+=1)i[o]=E(T(l,c,o));let b=!l[10]&&K(l);return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),s=e.space(),a=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),v=e.text(l[8]),A=e.space(),p&&p.c(),_=e.space(),y=e.element("div");for(let o=0;o<i.length;o+=1)i[o].c();M=e.space(),b&&b.c(),e.attr(a,"class","PlayerAccountMenuUser svelte-12es30r"),e.attr(d,"class","PlayerAccountMenuEmail svelte-12es30r"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")+" svelte-12es30r"),e.attr(y,"class","PlayerAccountMenuList svelte-12es30r"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":"")+" svelte-12es30r")},m(o,w){e.insert(o,t,w),e.append(t,n),h&&h.m(n,null),e.append(n,s),e.append(n,a),e.append(a,m),e.append(n,u),e.append(n,d),e.append(d,v),e.append(n,A),p&&p.m(n,null),e.append(t,_),e.append(t,y);for(let g=0;g<i.length;g+=1)i[g]&&i[g].m(y,null);e.append(t,M),b&&b.m(t,null)},p(o,w){if(o[10]&&h.p(o,w),w[0]&128&&e.set_data(m,o[7]),w[0]&256&&e.set_data(v,o[8]),o[10]&&p.p(o,w),w[0]&5216){c=e.ensure_array_like(o[5]);let g;for(g=0;g<c.length;g+=1){const x=T(o,c,g);i[g]?i[g].p(x,w):(i[g]=E(x),i[g].c(),i[g].m(y,null))}for(;g<i.length;g+=1)i[g].d(1);i.length=c.length}o[10]||b.p(o,w)},d(o){o&&e.detach(t),h&&h.d(),p&&p.d(),e.destroy_each(i,o),b&&b.d()}}}function Z(l){let t,n,s,a,m,u,d,v,A,_,y=l[9]("title")+"",M,h,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("defs"),a=e.svg_element("style"),m=e.text(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),v=e.svg_element("path"),A=e.space(),_=e.element("h3"),M=e.text(y),e.attr(v,"class","aaa"),e.attr(v,"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(v,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(u,"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 svelte-12es30r"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper svelte-12es30r")},m(c,i){e.insert(c,t,i),e.append(t,n),e.append(n,s),e.append(s,a),e.append(a,m),e.append(n,u),e.append(u,d),e.append(d,v),e.append(t,A),e.append(t,_),e.append(_,M),h||(p=[e.listen(n,"click",l[13]),e.listen(_,"click",l[13])],h=!0)},p(c,i){i[0]&512&&y!==(y=c[9]("title")+"")&&e.set_data(M,y)},d(c){c&&e.detach(t),h=!1,e.run_all(p)}}}function J(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.attr(t,"class","PlayerAccountLogOutArea svelte-12es30r")},m(s,a){e.insert(s,t,a),e.append(t,n)},p(s,a){a[0]&2&&e.set_custom_element_data(n,"endpoint",s[1]),a[0]&1&&e.set_custom_element_data(n,"session",s[0]),a[0]&4&&e.set_custom_element_data(n,"clientstyling",s[2]),a[0]&8&&e.set_custom_element_data(n,"clientstylingurl",s[3])},d(s){s&&e.detach(t)}}}function E(l){let t,n,s,a,m,u,d=l[35].label+"",v,A,_,y,M;function h(){return l[21](l[35])}return{c(){t=e.element("div"),n=e.element("p"),s=e.element("img"),m=e.space(),u=e.element("span"),v=e.text(d),A=e.space(),e.attr(s,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")+" svelte-12es30r"),e.src_url_equal(s.src,a=l[35].img)||e.attr(s,"src",a),e.attr(u,"class","PlayerAccountMenuItemTitle svelte-12es30r"),e.attr(n,"class","PlayerAccountMenuItemWrapper svelte-12es30r"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-12es30r")},m(p,c){e.insert(p,t,c),e.append(t,n),e.append(n,s),e.append(n,m),e.append(n,u),e.append(u,v),e.append(t,A),y||(M=e.listen(t,"click",h),y=!0)},p(p,c){l=p,c[0]&32&&!e.src_url_equal(s.src,a=l[35].img)&&e.attr(s,"src",a),c[0]&32&&d!==(d=l[35].label+"")&&e.set_data(v,d),c[0]&96&&_!==(_="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-12es30r")&&e.attr(t,"class",_)},d(p){p&&e.detach(t),y=!1,M()}}}function K(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.attr(t,"class","PlayerAccountLogOutArea svelte-12es30r")},m(s,a){e.insert(s,t,a),e.append(t,n)},p(s,a){a[0]&2&&e.set_custom_element_data(n,"endpoint",s[1]),a[0]&1&&e.set_custom_element_data(n,"session",s[0]),a[0]&4&&e.set_custom_element_data(n,"clientstyling",s[2]),a[0]&8&&e.set_custom_element_data(n,"clientstylingurl",s[3])},d(s){s&&e.detach(t)}}}function Y(l){let t;function n(m,u){return X}let a=n()(l);return{c(){t=e.element("div"),a.c()},m(m,u){e.insert(m,t,u),a.m(t,null),l[22](t)},p(m,u){a.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),a.d(),l[22](null)}}}function $(l,t,n){let s;e.component_subscribe(l,e.$format,r=>n(9,s=r));let{endpoint:a=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:v=""}=t,{lang:A="en"}=t,{userroles:_=""}=t,{clientstyling:y=""}=t,{clientstylingurl:M=""}=t,{translationurl:h=""}=t,{activemenuitem:p=""}=t,c,i=[],b,o=window.navigator.userAgent,w=e.getDevice(o)!=="PC",g="",x="";const H=window.matchMedia("(min-width: 768px)"),z=()=>{fetch(h).then(f=>f.json()).then(f=>{Object.keys(f).forEach(P=>{k(P,f[P])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(r=>{k(r,L[r])});const C=r=>{if(r.data)switch(r.data.type){case"UserSessionID":n(0,d=r.data.session);break}},S=()=>{let r=e.getDevice(o);if(r)return r==="PC"?"dk":"mtWeb"},W=()=>{const r=new URL(`${m}/${A}/profile-menu?env=${u}`);r.searchParams.append("device",S()),fetch(r.href).then(f=>f.json()).then(f=>{n(5,i=f),F()}).catch(f=>{console.error("Error getting menu items",f)})},D=()=>{let r=new URL(`${a}/v1/player/${v}/profile`);r.searchParams.append("userRoles",_);let f={method:"GET",headers:{"X-SessionID":d}};fetch(r.href,f).then(P=>P.json()).then(P=>{n(7,g=P.username),n(8,x=P.email)},P=>{console.error(P)})},I=r=>{window.postMessage({type:"ChangeAccountPage",page:r},window.location.href),n(6,b=r.id)},F=()=>{var r;n(6,b=(r=i.find(f=>f.path.includes(p)))==null?void 0:r.id)},O=()=>{Q(A)},U=()=>{D()},j=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},R=()=>{let r=document.createElement("style");r.innerHTML=y,c.appendChild(r)},q=()=>{let r=new URL(M),f=document.createElement("style");fetch(r.href).then(P=>P.text()).then(P=>{f.innerHTML=P,setTimeout(()=>{c.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const G=r=>I(r);function N(r){e.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(4,c)})}return l.$$set=r=>{"endpoint"in r&&n(1,a=r.endpoint),"cmsendpoint"in r&&n(14,m=r.cmsendpoint),"env"in r&&n(15,u=r.env),"session"in r&&n(0,d=r.session),"playerid"in r&&n(16,v=r.playerid),"lang"in r&&n(17,A=r.lang),"userroles"in r&&n(18,_=r.userroles),"clientstyling"in r&&n(2,y=r.clientstyling),"clientstylingurl"in r&&n(3,M=r.clientstylingurl),"translationurl"in r&&n(19,h=r.translationurl),"activemenuitem"in r&&n(20,p=r.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&A&&O(),l.$$.dirty[0]&196611&&a&&d&&v&&A&&U(),l.$$.dirty[0]&180224&&m&&A&&u&&W(),l.$$.dirty[0]&1048576&&p&&F(),l.$$.dirty[0]&24&&M&&c&&q(),l.$$.dirty[0]&20&&y&&c&&R(),l.$$.dirty[0]&524288&&h&&z()},[d,a,y,M,c,i,b,g,x,s,w,H,I,j,m,u,v,A,_,h,p,G,N]}class B extends e.SvelteComponent{constructor(t){super(),e.init(this,t,$,Y,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,userroles:18,clientstyling:2,clientstylingurl:3,translationurl:19,activemenuitem:20},V,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[15]}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[16]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[18]}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[19]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[20]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}}e.create_custom_element(B,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=B;
|
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { a as oe, $ as ae, S as ie, i as ce, f as F, c as ue, s as me, b as ye, e as w, k as T, o as D, p as E, q as ge, u as O, v as fe, x as pe, y as de, M as R, d as k, t as H, g as c, l as o, n as z, N as ve, w as L, m as W, r as he, j as M, A as N } from "./GeneralLogout-PMsAgsr8.js";
|
|
2
|
+
function q(n, e) {
|
|
3
|
+
oe(n, e);
|
|
4
|
+
}
|
|
5
|
+
function Ae(n) {
|
|
6
|
+
ae.set(n);
|
|
7
|
+
}
|
|
8
|
+
const G = {
|
|
9
|
+
en: {
|
|
10
|
+
title: "My Account"
|
|
11
|
+
},
|
|
12
|
+
"zh-hk": {
|
|
13
|
+
title: "我的帳戶"
|
|
14
|
+
},
|
|
15
|
+
fr: {
|
|
16
|
+
title: "Mon compte"
|
|
17
|
+
},
|
|
18
|
+
tr: {
|
|
19
|
+
title: "Hesabım"
|
|
20
|
+
},
|
|
21
|
+
ro: {
|
|
22
|
+
title: "Contul meu"
|
|
23
|
+
},
|
|
24
|
+
es: {
|
|
25
|
+
title: "Mi Cuenta"
|
|
26
|
+
},
|
|
27
|
+
pt: {
|
|
28
|
+
title: "Minha Conta"
|
|
29
|
+
},
|
|
30
|
+
hr: {
|
|
31
|
+
title: "Moj račun"
|
|
32
|
+
},
|
|
33
|
+
"pt-br": {
|
|
34
|
+
title: "Minha conta"
|
|
35
|
+
},
|
|
36
|
+
"es-mx": {
|
|
37
|
+
title: "Mi cuenta"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
if (typeof window != "undefined") {
|
|
41
|
+
let n = function(e) {
|
|
42
|
+
return function(...t) {
|
|
43
|
+
try {
|
|
44
|
+
return e.apply(this, t);
|
|
45
|
+
} catch (r) {
|
|
46
|
+
if (r instanceof DOMException && r.message.includes("has already been used with this registry") || r.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
47
|
+
return !1;
|
|
48
|
+
throw r;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-PMsAgsr8.js").then((e) => e.a4).then(({ default: e }) => {
|
|
53
|
+
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function Me(n) {
|
|
57
|
+
ye(n, "svelte-12es30r", ".PlayerAccountMenuContainer.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper.svelte-12es30r{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer.svelte-12es30r .PlayerAccountMenuItemWrapper span.svelte-12es30r{display:flex;align-items:center}.PlayerAccountMenuHeader.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader.svelte-12es30r p.svelte-12es30r{font-weight:300}.PlayerAccountMenuHeaderMobile.svelte-12es30r.svelte-12es30r{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:20px}.PlayerAccountMenuItemBox.svelte-12es30r.svelte-12es30r:not(:last-child){border-bottom:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIcon.svelte-12es30r{width:20px;padding-top:unset}.PlayerAccountMenuItemBox.svelte-12es30r .PlayerAccountMenuItemIconMobile.svelte-12es30r{width:30px;padding-top:15px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emfe-w-color-gray-100, #E6E6E6) var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar{width:6px}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-12es30r.svelte-12es30r::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emfe-w-color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox.svelte-12es30r.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r.svelte-12es30r{height:unset}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryWrapper.svelte-12es30r{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{margin:0;font-weight:600}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuItemTitle.svelte-12es30r{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{margin:0}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-12es30r{border:1px solid var(--emfe-w-color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox.svelte-12es30r{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-bottom:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:30px}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{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.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuHeader.svelte-12es30r{padding:30px 40px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuCategoryTitle.svelte-12es30r{font-size:32px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuUser.svelte-12es30r{font-size:26px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuEmail.svelte-12es30r{font-size:20px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList.svelte-12es30r{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-12es30r{width:80px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-12es30r{gap:28px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-12es30r{font-size:24px}.PlayerAccountTabletContainer.svelte-12es30r .PlayerAccountLogOutArea.svelte-12es30r{right:54px;top:72px}");
|
|
58
|
+
}
|
|
59
|
+
function Q(n, e, t) {
|
|
60
|
+
const r = n.slice();
|
|
61
|
+
return r[35] = e[t], r;
|
|
62
|
+
}
|
|
63
|
+
function Pe(n) {
|
|
64
|
+
let e, t, r, s, y, m, f, h, b, P, d, _, A = (
|
|
65
|
+
/*isMobile*/
|
|
66
|
+
n[10] && be(n)
|
|
67
|
+
), g = (
|
|
68
|
+
/*isMobile*/
|
|
69
|
+
n[10] && we(n)
|
|
70
|
+
), i = R(
|
|
71
|
+
/*menuItems*/
|
|
72
|
+
n[5]
|
|
73
|
+
), u = [];
|
|
74
|
+
for (let a = 0; a < i.length; a += 1)
|
|
75
|
+
u[a] = V(Q(n, i, a));
|
|
76
|
+
let C = !/*isMobile*/
|
|
77
|
+
n[10] && _e(n);
|
|
78
|
+
return {
|
|
79
|
+
c() {
|
|
80
|
+
e = w("div"), t = w("div"), A && A.c(), r = k(), s = w("p"), y = H(
|
|
81
|
+
/*profileUsername*/
|
|
82
|
+
n[7]
|
|
83
|
+
), m = k(), f = w("p"), h = H(
|
|
84
|
+
/*profileEmail*/
|
|
85
|
+
n[8]
|
|
86
|
+
), b = k(), g && g.c(), P = k(), d = w("div");
|
|
87
|
+
for (let a = 0; a < u.length; a += 1)
|
|
88
|
+
u[a].c();
|
|
89
|
+
_ = k(), C && C.c(), c(s, "class", "PlayerAccountMenuUser svelte-12es30r"), c(f, "class", "PlayerAccountMenuEmail svelte-12es30r"), c(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
|
|
90
|
+
(n[10] ? "PlayerAccountMenuHeaderMobile" : "") + " svelte-12es30r"), c(d, "class", "PlayerAccountMenuList svelte-12es30r"), c(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
|
|
91
|
+
(n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
|
|
92
|
+
(n[11].matches && /*isMobile*/
|
|
93
|
+
n[10] ? "PlayerAccountTabletContainer" : "") + " svelte-12es30r");
|
|
94
|
+
},
|
|
95
|
+
m(a, I) {
|
|
96
|
+
T(a, e, I), o(e, t), A && A.m(t, null), o(t, r), o(t, s), o(s, y), o(t, m), o(t, f), o(f, h), o(t, b), g && g.m(t, null), o(e, P), o(e, d);
|
|
97
|
+
for (let p = 0; p < u.length; p += 1)
|
|
98
|
+
u[p] && u[p].m(d, null);
|
|
99
|
+
o(e, _), C && C.m(e, null);
|
|
100
|
+
},
|
|
101
|
+
p(a, I) {
|
|
102
|
+
if (
|
|
103
|
+
/*isMobile*/
|
|
104
|
+
a[10] && A.p(a, I), I[0] & /*profileUsername*/
|
|
105
|
+
128 && z(
|
|
106
|
+
y,
|
|
107
|
+
/*profileUsername*/
|
|
108
|
+
a[7]
|
|
109
|
+
), I[0] & /*profileEmail*/
|
|
110
|
+
256 && z(
|
|
111
|
+
h,
|
|
112
|
+
/*profileEmail*/
|
|
113
|
+
a[8]
|
|
114
|
+
), /*isMobile*/
|
|
115
|
+
a[10] && g.p(a, I), I[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
|
|
116
|
+
5216
|
|
117
|
+
) {
|
|
118
|
+
i = R(
|
|
119
|
+
/*menuItems*/
|
|
120
|
+
a[5]
|
|
121
|
+
);
|
|
122
|
+
let p;
|
|
123
|
+
for (p = 0; p < i.length; p += 1) {
|
|
124
|
+
const B = Q(a, i, p);
|
|
125
|
+
u[p] ? u[p].p(B, I) : (u[p] = V(B), u[p].c(), u[p].m(d, null));
|
|
126
|
+
}
|
|
127
|
+
for (; p < u.length; p += 1)
|
|
128
|
+
u[p].d(1);
|
|
129
|
+
u.length = i.length;
|
|
130
|
+
}
|
|
131
|
+
/*isMobile*/
|
|
132
|
+
a[10] || C.p(a, I);
|
|
133
|
+
},
|
|
134
|
+
d(a) {
|
|
135
|
+
a && E(e), A && A.d(), g && g.d(), ve(u, a), C && C.d();
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
function be(n) {
|
|
140
|
+
let e, t, r, s, y, m, f, h, b, P, d = (
|
|
141
|
+
/*$_*/
|
|
142
|
+
n[9]("title") + ""
|
|
143
|
+
), _, A, g;
|
|
144
|
+
return {
|
|
145
|
+
c() {
|
|
146
|
+
e = w("div"), t = L("svg"), r = L("defs"), s = L("style"), y = H(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"), m = L("g"), f = L("g"), h = L("path"), b = k(), P = w("h3"), _ = H(d), c(h, "class", "aaa"), c(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(h, "transform", "translate(15 15) rotate(180)"), c(f, "transform", "translate(20 158)"), c(m, "transform", "translate(-20 -158)"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(t, "width", "15"), c(t, "height", "15"), c(t, "viewBox", "0 0 15 15"), c(P, "class", "PlayerAccountMenuCategoryTitle svelte-12es30r"), c(e, "class", "PlayerAccountMenuCategoryWrapper svelte-12es30r");
|
|
147
|
+
},
|
|
148
|
+
m(i, u) {
|
|
149
|
+
T(i, e, u), o(e, t), o(t, r), o(r, s), o(s, y), o(t, m), o(m, f), o(f, h), o(e, b), o(e, P), o(P, _), A || (g = [
|
|
150
|
+
W(
|
|
151
|
+
t,
|
|
152
|
+
"click",
|
|
153
|
+
/*goToHome*/
|
|
154
|
+
n[13]
|
|
155
|
+
),
|
|
156
|
+
W(
|
|
157
|
+
P,
|
|
158
|
+
"click",
|
|
159
|
+
/*goToHome*/
|
|
160
|
+
n[13]
|
|
161
|
+
)
|
|
162
|
+
], A = !0);
|
|
163
|
+
},
|
|
164
|
+
p(i, u) {
|
|
165
|
+
u[0] & /*$_*/
|
|
166
|
+
512 && d !== (d = /*$_*/
|
|
167
|
+
i[9]("title") + "") && z(_, d);
|
|
168
|
+
},
|
|
169
|
+
d(i) {
|
|
170
|
+
i && E(e), A = !1, he(g);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function we(n) {
|
|
175
|
+
let e, t;
|
|
176
|
+
return {
|
|
177
|
+
c() {
|
|
178
|
+
e = w("div"), t = w("general-logout"), M(
|
|
179
|
+
t,
|
|
180
|
+
"endpoint",
|
|
181
|
+
/*endpoint*/
|
|
182
|
+
n[1]
|
|
183
|
+
), M(
|
|
184
|
+
t,
|
|
185
|
+
"session",
|
|
186
|
+
/*session*/
|
|
187
|
+
n[0]
|
|
188
|
+
), M(t, "buttonlocation", "PlayerAccountMenu"), M(
|
|
189
|
+
t,
|
|
190
|
+
"clientstyling",
|
|
191
|
+
/*clientstyling*/
|
|
192
|
+
n[2]
|
|
193
|
+
), M(
|
|
194
|
+
t,
|
|
195
|
+
"clientstylingurl",
|
|
196
|
+
/*clientstylingurl*/
|
|
197
|
+
n[3]
|
|
198
|
+
), c(e, "class", "PlayerAccountLogOutArea svelte-12es30r");
|
|
199
|
+
},
|
|
200
|
+
m(r, s) {
|
|
201
|
+
T(r, e, s), o(e, t);
|
|
202
|
+
},
|
|
203
|
+
p(r, s) {
|
|
204
|
+
s[0] & /*endpoint*/
|
|
205
|
+
2 && M(
|
|
206
|
+
t,
|
|
207
|
+
"endpoint",
|
|
208
|
+
/*endpoint*/
|
|
209
|
+
r[1]
|
|
210
|
+
), s[0] & /*session*/
|
|
211
|
+
1 && M(
|
|
212
|
+
t,
|
|
213
|
+
"session",
|
|
214
|
+
/*session*/
|
|
215
|
+
r[0]
|
|
216
|
+
), s[0] & /*clientstyling*/
|
|
217
|
+
4 && M(
|
|
218
|
+
t,
|
|
219
|
+
"clientstyling",
|
|
220
|
+
/*clientstyling*/
|
|
221
|
+
r[2]
|
|
222
|
+
), s[0] & /*clientstylingurl*/
|
|
223
|
+
8 && M(
|
|
224
|
+
t,
|
|
225
|
+
"clientstylingurl",
|
|
226
|
+
/*clientstylingurl*/
|
|
227
|
+
r[3]
|
|
228
|
+
);
|
|
229
|
+
},
|
|
230
|
+
d(r) {
|
|
231
|
+
r && E(e);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function V(n) {
|
|
236
|
+
let e, t, r, s, y, m, f = (
|
|
237
|
+
/*menuItem*/
|
|
238
|
+
n[35].label + ""
|
|
239
|
+
), h, b, P, d, _;
|
|
240
|
+
function A() {
|
|
241
|
+
return (
|
|
242
|
+
/*click_handler*/
|
|
243
|
+
n[21](
|
|
244
|
+
/*menuItem*/
|
|
245
|
+
n[35]
|
|
246
|
+
)
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
return {
|
|
250
|
+
c() {
|
|
251
|
+
e = w("div"), t = w("p"), r = w("img"), y = k(), m = w("span"), h = H(f), b = k(), c(r, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
|
|
252
|
+
(n[10] ? "PlayerAccountMenuItemIconMobile" : "") + " svelte-12es30r"), N(r.src, s = /*menuItem*/
|
|
253
|
+
n[35].img) || c(r, "src", s), c(m, "class", "PlayerAccountMenuItemTitle svelte-12es30r"), c(t, "class", "PlayerAccountMenuItemWrapper svelte-12es30r"), c(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
254
|
+
(n[6] === /*menuItem*/
|
|
255
|
+
n[35].id && !/*isMobile*/
|
|
256
|
+
n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-12es30r");
|
|
257
|
+
},
|
|
258
|
+
m(g, i) {
|
|
259
|
+
T(g, e, i), o(e, t), o(t, r), o(t, y), o(t, m), o(m, h), o(e, b), d || (_ = W(e, "click", A), d = !0);
|
|
260
|
+
},
|
|
261
|
+
p(g, i) {
|
|
262
|
+
n = g, i[0] & /*menuItems*/
|
|
263
|
+
32 && !N(r.src, s = /*menuItem*/
|
|
264
|
+
n[35].img) && c(r, "src", s), i[0] & /*menuItems*/
|
|
265
|
+
32 && f !== (f = /*menuItem*/
|
|
266
|
+
n[35].label + "") && z(h, f), i[0] & /*selectedItem, menuItems*/
|
|
267
|
+
96 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
|
|
268
|
+
(n[6] === /*menuItem*/
|
|
269
|
+
n[35].id && !/*isMobile*/
|
|
270
|
+
n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-12es30r") && c(e, "class", P);
|
|
271
|
+
},
|
|
272
|
+
d(g) {
|
|
273
|
+
g && E(e), d = !1, _();
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
function _e(n) {
|
|
278
|
+
let e, t;
|
|
279
|
+
return {
|
|
280
|
+
c() {
|
|
281
|
+
e = w("div"), t = w("general-logout"), M(
|
|
282
|
+
t,
|
|
283
|
+
"endpoint",
|
|
284
|
+
/*endpoint*/
|
|
285
|
+
n[1]
|
|
286
|
+
), M(
|
|
287
|
+
t,
|
|
288
|
+
"session",
|
|
289
|
+
/*session*/
|
|
290
|
+
n[0]
|
|
291
|
+
), M(t, "buttonlocation", "PlayerAccountMenu"), M(
|
|
292
|
+
t,
|
|
293
|
+
"clientstyling",
|
|
294
|
+
/*clientstyling*/
|
|
295
|
+
n[2]
|
|
296
|
+
), M(
|
|
297
|
+
t,
|
|
298
|
+
"clientstylingurl",
|
|
299
|
+
/*clientstylingurl*/
|
|
300
|
+
n[3]
|
|
301
|
+
), c(e, "class", "PlayerAccountLogOutArea svelte-12es30r");
|
|
302
|
+
},
|
|
303
|
+
m(r, s) {
|
|
304
|
+
T(r, e, s), o(e, t);
|
|
305
|
+
},
|
|
306
|
+
p(r, s) {
|
|
307
|
+
s[0] & /*endpoint*/
|
|
308
|
+
2 && M(
|
|
309
|
+
t,
|
|
310
|
+
"endpoint",
|
|
311
|
+
/*endpoint*/
|
|
312
|
+
r[1]
|
|
313
|
+
), s[0] & /*session*/
|
|
314
|
+
1 && M(
|
|
315
|
+
t,
|
|
316
|
+
"session",
|
|
317
|
+
/*session*/
|
|
318
|
+
r[0]
|
|
319
|
+
), s[0] & /*clientstyling*/
|
|
320
|
+
4 && M(
|
|
321
|
+
t,
|
|
322
|
+
"clientstyling",
|
|
323
|
+
/*clientstyling*/
|
|
324
|
+
r[2]
|
|
325
|
+
), s[0] & /*clientstylingurl*/
|
|
326
|
+
8 && M(
|
|
327
|
+
t,
|
|
328
|
+
"clientstylingurl",
|
|
329
|
+
/*clientstylingurl*/
|
|
330
|
+
r[3]
|
|
331
|
+
);
|
|
332
|
+
},
|
|
333
|
+
d(r) {
|
|
334
|
+
r && E(e);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
function xe(n) {
|
|
339
|
+
let e;
|
|
340
|
+
function t(y, m) {
|
|
341
|
+
return Pe;
|
|
342
|
+
}
|
|
343
|
+
let s = t()(n);
|
|
344
|
+
return {
|
|
345
|
+
c() {
|
|
346
|
+
e = w("div"), s.c();
|
|
347
|
+
},
|
|
348
|
+
m(y, m) {
|
|
349
|
+
T(y, e, m), s.m(e, null), n[22](e);
|
|
350
|
+
},
|
|
351
|
+
p(y, m) {
|
|
352
|
+
s.p(y, m);
|
|
353
|
+
},
|
|
354
|
+
i: D,
|
|
355
|
+
o: D,
|
|
356
|
+
d(y) {
|
|
357
|
+
y && E(e), s.d(), n[22](null);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
function Ce(n, e, t) {
|
|
362
|
+
let r;
|
|
363
|
+
ge(n, de, (l) => t(9, r = l));
|
|
364
|
+
let { endpoint: s = "" } = e, { cmsendpoint: y = "" } = e, { env: m = "" } = e, { session: f = "" } = e, { playerid: h = "" } = e, { lang: b = "en" } = e, { userroles: P = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: A = "" } = e, { activemenuitem: g = "" } = e, i, u = [], C, a = window.navigator.userAgent, I = O(a) !== "PC", p = "", B = "";
|
|
365
|
+
const X = window.matchMedia("(min-width: 768px)"), Z = () => {
|
|
366
|
+
fetch(A).then((v) => v.json()).then((v) => {
|
|
367
|
+
Object.keys(v).forEach((x) => {
|
|
368
|
+
q(x, v[x]);
|
|
369
|
+
});
|
|
370
|
+
}).catch((v) => {
|
|
371
|
+
console.error(v);
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
Object.keys(G).forEach((l) => {
|
|
375
|
+
q(l, G[l]);
|
|
376
|
+
});
|
|
377
|
+
const S = (l) => {
|
|
378
|
+
if (l.data)
|
|
379
|
+
switch (l.data.type) {
|
|
380
|
+
case "UserSessionID":
|
|
381
|
+
t(0, f = l.data.session);
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
}, J = () => {
|
|
385
|
+
let l = O(a);
|
|
386
|
+
if (l)
|
|
387
|
+
return l === "PC" ? "dk" : "mtWeb";
|
|
388
|
+
}, K = () => {
|
|
389
|
+
const l = new URL(`${y}/${b}/profile-menu?env=${m}`);
|
|
390
|
+
l.searchParams.append("device", J()), fetch(l.href).then((v) => v.json()).then((v) => {
|
|
391
|
+
t(5, u = v), j();
|
|
392
|
+
}).catch((v) => {
|
|
393
|
+
console.error("Error getting menu items", v);
|
|
394
|
+
});
|
|
395
|
+
}, Y = () => {
|
|
396
|
+
let l = new URL(`${s}/v1/player/${h}/profile`);
|
|
397
|
+
l.searchParams.append("userRoles", P);
|
|
398
|
+
let v = {
|
|
399
|
+
method: "GET",
|
|
400
|
+
headers: { "X-SessionID": f }
|
|
401
|
+
};
|
|
402
|
+
fetch(l.href, v).then((x) => x.json()).then(
|
|
403
|
+
(x) => {
|
|
404
|
+
t(7, p = x.username), t(8, B = x.email);
|
|
405
|
+
},
|
|
406
|
+
(x) => {
|
|
407
|
+
console.error(x);
|
|
408
|
+
}
|
|
409
|
+
);
|
|
410
|
+
}, U = (l) => {
|
|
411
|
+
window.postMessage({ type: "ChangeAccountPage", page: l }, window.location.href), t(6, C = l.id);
|
|
412
|
+
}, j = () => {
|
|
413
|
+
var l;
|
|
414
|
+
t(6, C = (l = u.find((v) => v.path.includes(g))) == null ? void 0 : l.id);
|
|
415
|
+
}, $ = () => {
|
|
416
|
+
Ae(b);
|
|
417
|
+
}, ee = () => {
|
|
418
|
+
Y();
|
|
419
|
+
}, te = () => {
|
|
420
|
+
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
|
421
|
+
}, ne = () => {
|
|
422
|
+
let l = document.createElement("style");
|
|
423
|
+
l.innerHTML = d, i.appendChild(l);
|
|
424
|
+
}, le = () => {
|
|
425
|
+
let l = new URL(_), v = document.createElement("style");
|
|
426
|
+
fetch(l.href).then((x) => x.text()).then((x) => {
|
|
427
|
+
v.innerHTML = x, setTimeout(
|
|
428
|
+
() => {
|
|
429
|
+
i.appendChild(v);
|
|
430
|
+
},
|
|
431
|
+
1
|
|
432
|
+
);
|
|
433
|
+
});
|
|
434
|
+
};
|
|
435
|
+
fe(() => (window.addEventListener("message", S, !1), () => {
|
|
436
|
+
window.removeEventListener("message", S);
|
|
437
|
+
}));
|
|
438
|
+
const re = (l) => U(l);
|
|
439
|
+
function se(l) {
|
|
440
|
+
pe[l ? "unshift" : "push"](() => {
|
|
441
|
+
i = l, t(4, i);
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
return n.$$set = (l) => {
|
|
445
|
+
"endpoint" in l && t(1, s = l.endpoint), "cmsendpoint" in l && t(14, y = l.cmsendpoint), "env" in l && t(15, m = l.env), "session" in l && t(0, f = l.session), "playerid" in l && t(16, h = l.playerid), "lang" in l && t(17, b = l.lang), "userroles" in l && t(18, P = l.userroles), "clientstyling" in l && t(2, d = l.clientstyling), "clientstylingurl" in l && t(3, _ = l.clientstylingurl), "translationurl" in l && t(19, A = l.translationurl), "activemenuitem" in l && t(20, g = l.activemenuitem);
|
|
446
|
+
}, n.$$.update = () => {
|
|
447
|
+
n.$$.dirty[0] & /*lang*/
|
|
448
|
+
131072 && b && $(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
|
|
449
|
+
196611 && s && f && h && b && ee(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
|
|
450
|
+
180224 && y && b && m && K(), n.$$.dirty[0] & /*activemenuitem*/
|
|
451
|
+
1048576 && g && j(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
452
|
+
24 && _ && i && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
453
|
+
20 && d && i && ne(), n.$$.dirty[0] & /*translationurl*/
|
|
454
|
+
524288 && A && Z();
|
|
455
|
+
}, [
|
|
456
|
+
f,
|
|
457
|
+
s,
|
|
458
|
+
d,
|
|
459
|
+
_,
|
|
460
|
+
i,
|
|
461
|
+
u,
|
|
462
|
+
C,
|
|
463
|
+
p,
|
|
464
|
+
B,
|
|
465
|
+
r,
|
|
466
|
+
I,
|
|
467
|
+
X,
|
|
468
|
+
U,
|
|
469
|
+
te,
|
|
470
|
+
y,
|
|
471
|
+
m,
|
|
472
|
+
h,
|
|
473
|
+
b,
|
|
474
|
+
P,
|
|
475
|
+
A,
|
|
476
|
+
g,
|
|
477
|
+
re,
|
|
478
|
+
se
|
|
479
|
+
];
|
|
480
|
+
}
|
|
481
|
+
class Ie extends ie {
|
|
482
|
+
constructor(e) {
|
|
483
|
+
super(), ce(
|
|
484
|
+
this,
|
|
485
|
+
e,
|
|
486
|
+
Ce,
|
|
487
|
+
xe,
|
|
488
|
+
me,
|
|
489
|
+
{
|
|
490
|
+
endpoint: 1,
|
|
491
|
+
cmsendpoint: 14,
|
|
492
|
+
env: 15,
|
|
493
|
+
session: 0,
|
|
494
|
+
playerid: 16,
|
|
495
|
+
lang: 17,
|
|
496
|
+
userroles: 18,
|
|
497
|
+
clientstyling: 2,
|
|
498
|
+
clientstylingurl: 3,
|
|
499
|
+
translationurl: 19,
|
|
500
|
+
activemenuitem: 20
|
|
501
|
+
},
|
|
502
|
+
Me,
|
|
503
|
+
[-1, -1]
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
get endpoint() {
|
|
507
|
+
return this.$$.ctx[1];
|
|
508
|
+
}
|
|
509
|
+
set endpoint(e) {
|
|
510
|
+
this.$$set({ endpoint: e }), F();
|
|
511
|
+
}
|
|
512
|
+
get cmsendpoint() {
|
|
513
|
+
return this.$$.ctx[14];
|
|
514
|
+
}
|
|
515
|
+
set cmsendpoint(e) {
|
|
516
|
+
this.$$set({ cmsendpoint: e }), F();
|
|
517
|
+
}
|
|
518
|
+
get env() {
|
|
519
|
+
return this.$$.ctx[15];
|
|
520
|
+
}
|
|
521
|
+
set env(e) {
|
|
522
|
+
this.$$set({ env: e }), F();
|
|
523
|
+
}
|
|
524
|
+
get session() {
|
|
525
|
+
return this.$$.ctx[0];
|
|
526
|
+
}
|
|
527
|
+
set session(e) {
|
|
528
|
+
this.$$set({ session: e }), F();
|
|
529
|
+
}
|
|
530
|
+
get playerid() {
|
|
531
|
+
return this.$$.ctx[16];
|
|
532
|
+
}
|
|
533
|
+
set playerid(e) {
|
|
534
|
+
this.$$set({ playerid: e }), F();
|
|
535
|
+
}
|
|
536
|
+
get lang() {
|
|
537
|
+
return this.$$.ctx[17];
|
|
538
|
+
}
|
|
539
|
+
set lang(e) {
|
|
540
|
+
this.$$set({ lang: e }), F();
|
|
541
|
+
}
|
|
542
|
+
get userroles() {
|
|
543
|
+
return this.$$.ctx[18];
|
|
544
|
+
}
|
|
545
|
+
set userroles(e) {
|
|
546
|
+
this.$$set({ userroles: e }), F();
|
|
547
|
+
}
|
|
548
|
+
get clientstyling() {
|
|
549
|
+
return this.$$.ctx[2];
|
|
550
|
+
}
|
|
551
|
+
set clientstyling(e) {
|
|
552
|
+
this.$$set({ clientstyling: e }), F();
|
|
553
|
+
}
|
|
554
|
+
get clientstylingurl() {
|
|
555
|
+
return this.$$.ctx[3];
|
|
556
|
+
}
|
|
557
|
+
set clientstylingurl(e) {
|
|
558
|
+
this.$$set({ clientstylingurl: e }), F();
|
|
559
|
+
}
|
|
560
|
+
get translationurl() {
|
|
561
|
+
return this.$$.ctx[19];
|
|
562
|
+
}
|
|
563
|
+
set translationurl(e) {
|
|
564
|
+
this.$$set({ translationurl: e }), F();
|
|
565
|
+
}
|
|
566
|
+
get activemenuitem() {
|
|
567
|
+
return this.$$.ctx[20];
|
|
568
|
+
}
|
|
569
|
+
set activemenuitem(e) {
|
|
570
|
+
this.$$set({ activemenuitem: e }), F();
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
ue(Ie, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
|
|
574
|
+
export {
|
|
575
|
+
Ie as default
|
|
576
|
+
};
|