@everymatrix/player-account-controller 1.50.0 → 1.50.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.
- package/components/GeneralLogout-BBoBE1Lx.cjs +8 -0
- package/components/{GeneralLogout-CPJ_kgQc.js → GeneralLogout-DJd6W-jT.js} +323 -317
- package/components/{PlayerAccountBettingHistory-Cy59ufCv.cjs → PlayerAccountBettingHistory-BhFyAw7S.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-DqCRu_Gb.js → PlayerAccountBettingHistory-Dok1ua2N.js} +1 -1
- package/components/{PlayerAccountBiometrics-BZ8i34dM.cjs → PlayerAccountBiometrics-U1ab8cUd.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-_bzqGans.js → PlayerAccountBiometrics-jc45EBJe.js} +1 -1
- package/components/{PlayerAccountClosure-DgFBQW78.js → PlayerAccountClosure-BWlW6NXe.js} +1 -1
- package/components/{PlayerAccountClosure-BbvKd11g.cjs → PlayerAccountClosure-D_4hIhg0.cjs} +1 -1
- package/components/{PlayerAccountController-BxFXPyr1.js → PlayerAccountController-CoXvSbbl.js} +23 -23
- package/components/{PlayerAccountController-DJ6AITI5.cjs → PlayerAccountController-J02GKY2h.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-BOKXx_iz.js → PlayerAccountGamingLimits-D0orq8W7.js} +2 -2
- package/components/{PlayerAccountGamingLimits-CV_NoRFx.cjs → PlayerAccountGamingLimits-ImaSq8Bu.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Dzxus6A7.cjs → PlayerAccountGamingLimitsConfirmationModal-B1H9kGBj.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Cu04ikT5.js → PlayerAccountGamingLimitsConfirmationModal-DOXtkhFY.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DYzhhapL.js → PlayerAccountGamingLimitsGroupEdit-BgpIOnsM.js} +4 -4
- package/components/{PlayerAccountGamingLimitsGroupEdit-CZNV2Pxd.cjs → PlayerAccountGamingLimitsGroupEdit-mkhXUxp2.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsHistory2-DpBBoeDK.cjs → PlayerAccountGamingLimitsHistory2-BnREqLe2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-Bvh5seHB.js → PlayerAccountGamingLimitsHistory2-Dg_3TWDc.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-BjLZ3MaL.cjs → PlayerAccountGamingLimitsInfoCard-CcdNEm3s.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-pHxvjwrl.js → PlayerAccountGamingLimitsInfoCard-DiVtmzLb.js} +3 -3
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CAHA7P8d.js → PlayerAccountGamingLimitsPage2Gm16-BejFjGCU.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-CKFzVtAJ.cjs → PlayerAccountGamingLimitsPage2Gm16-DegZSaNr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Dz_qQuDe.cjs → PlayerAccountGamingLimitsPopup-C47JGdE1.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BwCi8g0-.js → PlayerAccountGamingLimitsPopup-DWkmHcWc.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-DPJCVbfG.js → PlayerAccountGamingLimitsWrapper2-IJW0DW26.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-BvV0-Dlq.cjs → PlayerAccountGamingLimitsWrapper2-j5Wlpz38.cjs} +1 -1
- package/components/{PlayerAccountMenu-BEWnz4-M.cjs → PlayerAccountMenu-C6fxzyFi.cjs} +1 -1
- package/components/{PlayerAccountMenu-WHbE7mMh.js → PlayerAccountMenu-CmSW4Stb.js} +2 -2
- package/components/{PlayerAccountModal-B28RK7-M.js → PlayerAccountModal-9gulcpFn.js} +1 -1
- package/components/{PlayerAccountModal-DEtLb1RB.cjs → PlayerAccountModal-CUdeZ6ZD.cjs} +1 -1
- package/components/{PlayerAccountNotifications-DEqB-PVw.cjs → PlayerAccountNotifications-B5y5G3E_.cjs} +1 -1
- package/components/{PlayerAccountNotifications-DmjuynrH.js → PlayerAccountNotifications-r_nD_SnF.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-DqDkT8iy.cjs → PlayerAccountSelfExclusion-BrQRXxUR.cjs} +481 -3
- package/components/{PlayerAccountSelfExclusion-CsS-h2Ai.js → PlayerAccountSelfExclusion-_cYII1on.js} +481 -2
- package/components/{PlayerAccountTimeout-CXeEUwpu.cjs → PlayerAccountTimeout-CNtkqjo7.cjs} +1 -1
- package/components/{PlayerAccountTimeout-D38oVKnz.js → PlayerAccountTimeout-Cs_68FK0.js} +1 -1
- package/components/{PlayerActiveBonuses-DpYIsm4r.js → PlayerActiveBonuses-D513ru66.js} +2 -2
- package/components/{PlayerActiveBonuses-DA6p75G4.cjs → PlayerActiveBonuses-DOOKCxQp.cjs} +1 -1
- package/components/{PlayerBonusCard-DCNIGmVp.cjs → PlayerBonusCard-Bt-n3Mxi.cjs} +1 -1
- package/components/{PlayerBonusCard-BP0WYns1.js → PlayerBonusCard-_Oaycov5.js} +2 -2
- package/components/{PlayerBonusHistory-Cw5-GcW4.cjs → PlayerBonusHistory-CAlPJQEf.cjs} +1 -1
- package/components/{PlayerBonusHistory-BFvXTv4X.js → PlayerBonusHistory-CwIKvt3Y.js} +4 -4
- package/components/{PlayerChangePassword-BxwRqAxy.cjs → PlayerChangePassword-C-8QN3hH.cjs} +1 -1
- package/components/{PlayerChangePassword-BM5W2zIw.js → PlayerChangePassword-hFf7xt_1.js} +1 -1
- package/components/{PlayerDeposit-bjlqIdhX.cjs → PlayerDeposit-BLymLH97.cjs} +1 -1
- package/components/{PlayerDeposit-CznlyF3J.js → PlayerDeposit-D9bCHq7N.js} +1 -1
- package/components/{PlayerGamingHistory-CKg80FAa.cjs → PlayerGamingHistory-BVez9eZG.cjs} +1 -1
- package/components/{PlayerGamingHistory-6e4kRRGF.js → PlayerGamingHistory-CkMB0clE.js} +4 -4
- package/components/{PlayerPendingWithdrawals-BxlTm_jb.js → PlayerPendingWithdrawals-BTPeOPBb.js} +1 -1
- package/components/{PlayerPendingWithdrawals-C0HSC7tm.cjs → PlayerPendingWithdrawals-CUpLO6X3.cjs} +1 -1
- package/components/{PlayerProfileInfo-CNKIiMA-.cjs → PlayerProfileInfo-8LQ0QT94.cjs} +1 -1
- package/components/{PlayerProfileInfo-B6HDCWAZ.js → PlayerProfileInfo-D5uooVx1.js} +1 -1
- package/components/{PlayerRealityCheck-Debik71V.js → PlayerRealityCheck-6gXKQK_Z.js} +1 -1
- package/components/{PlayerRealityCheck-CtU2sJN0.cjs → PlayerRealityCheck-B--KgOX7.cjs} +1 -1
- package/components/{PlayerTransactionHistory-Dn_B3c0-.js → PlayerTransactionHistory-DES2KQ6g.js} +1 -1
- package/components/{PlayerTransactionHistory-Dg7CD0Zs.cjs → PlayerTransactionHistory-KkAMcV0S.cjs} +1 -1
- package/components/{PlayerWithdrawal-CIjAyGsf.js → PlayerWithdrawal-6XSetxz1.js} +1 -1
- package/components/{PlayerWithdrawal-CGpOe7ya.cjs → PlayerWithdrawal-Bt2B8luj.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-0437c9c0-06LlHN6E.cjs +1 -0
- package/stencil/{index-065b5928-CPoJDIU-.js → index-0437c9c0-1mLvhyVA.js} +193 -185
- package/stencil/{index-04d3e726-C5uhgmrG.js → index-657e7a14-DpOUEft6.js} +248 -240
- package/stencil/index-657e7a14-dS-WIK3f.cjs +1 -0
- package/stencil/index-e8249896-BNsgFr_R.cjs +1 -0
- package/stencil/{index-b111cb50-CuFaYbey.js → index-e8249896-CIP0iOYr.js} +112 -104
- package/stencil/{player-kyc-verification-Dg3VZ8QG.cjs → player-kyc-verification-B9QbNY0o.cjs} +1 -1
- package/stencil/{player-kyc-verification-BrLC5rYt.js → player-kyc-verification-BwGXWzTR.js} +1 -1
- package/stencil/user-deposit-withdrawal-Btrso_5e.js +597 -0
- package/stencil/user-deposit-withdrawal-Cxv_U-OE.cjs +59 -0
- package/stencil/user-transaction-history-AoseShHM.cjs +1 -0
- package/stencil/{user-transaction-history-W4vbS2--.js → user-transaction-history-DcAGbFDl.js} +1 -1
- package/components/GeneralLogout-CnBIvtF1.cjs +0 -8
- package/stencil/index-04d3e726-CRpZOD6z.cjs +0 -1
- package/stencil/index-065b5928-BRUI7eV0.cjs +0 -1
- package/stencil/index-b111cb50-b1-cqkbU.cjs +0 -1
- package/stencil/user-deposit-withdrawal-CpNKQFA-.cjs +0 -59
- package/stencil/user-deposit-withdrawal-T1uVOjwf.js +0 -242
- package/stencil/user-transaction-history-B5a4uXlv.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CnBIvtF1.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(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CnBIvtF1.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-g6nv6v",".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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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)}.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}")}function T(l,t,n){const o=l.slice();return o[35]=t[n],o}function X(l){let t,n,o,r,m,u,d,h,M,A,y,P,_=l[10]&&Z(l),p=l[10]&&J(l),i=e.ensure_array_like(l[5]),s=[];for(let c=0;c<i.length;c+=1)s[c]=E(T(l,i,c));let v=!l[10]&&K(l);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),o=e.space(),r=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),h=e.text(l[8]),M=e.space(),p&&p.c(),A=e.space(),y=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();P=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(d,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":""))},m(c,w){e.insert(c,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,o),e.append(n,r),e.append(r,m),e.append(n,u),e.append(n,d),e.append(d,h),e.append(n,M),p&&p.m(n,null),e.append(t,A),e.append(t,y);for(let g=0;g<s.length;g+=1)s[g]&&s[g].m(y,null);e.append(t,P),v&&v.m(t,null)},p(c,w){if(c[10]&&_.p(c,w),w[0]&128&&e.set_data(m,c[7]),w[0]&256&&e.set_data(h,c[8]),c[10]&&p.p(c,w),w[0]&5216){i=e.ensure_array_like(c[5]);let g;for(g=0;g<i.length;g+=1){const x=T(c,i,g);s[g]?s[g].p(x,w):(s[g]=E(x),s[g].c(),s[g].m(y,null))}for(;g<s.length;g+=1)s[g].d(1);s.length=i.length}c[10]||v.p(c,w)},d(c){c&&e.detach(t),_&&_.d(),p&&p.d(),e.destroy_each(s,c),v&&v.d()}}}function Z(l){let t,n,o,r,m,u,d,h,M,A,y=l[9]("title")+"",P,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),M=e.space(),A=e.element("h3"),P=e.text(y),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(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(A,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(i,s){e.insert(i,t,s),e.append(t,n),e.append(n,o),e.append(o,r),e.append(r,m),e.append(n,u),e.append(u,d),e.append(d,h),e.append(t,M),e.append(t,A),e.append(A,P),_||(p=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],_=!0)},p(i,s){s[0]&512&&y!==(y=i[9]("title")+"")&&e.set_data(P,y)},d(i){i&&e.detach(t),_=!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")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function E(l){let t,n,o,r,m,u,d=l[35].label+"",h,M,A,y,P;function _(){return l[21](l[35])}return{c(){t=e.element("div"),n=e.element("p"),o=e.element("img"),m=e.space(),u=e.element("span"),h=e.text(d),M=e.space(),e.attr(o,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(o.src,r=l[35].img)||e.attr(o,"src",r),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,o),e.append(n,m),e.append(n,u),e.append(u,h),e.append(t,M),y||(P=e.listen(t,"click",_),y=!0)},p(p,i){l=p,i[0]&32&&!e.src_url_equal(o.src,r=l[35].img)&&e.attr(o,"src",r),i[0]&32&&d!==(d=l[35].label+"")&&e.set_data(h,d),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",A)},d(p){p&&e.detach(t),y=!1,P()}}}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")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function Y(l){let t;function n(m,u){return X}let r=n()(l);return{c(){t=e.element("div"),r.c()},m(m,u){e.insert(m,t,u),r.m(t,null),l[22](t)},p(m,u){r.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),l[22](null)}}}function $(l,t,n){let o;e.component_subscribe(l,e.$format,a=>n(9,o=a));let{endpoint:r=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:h=""}=t,{lang:M="en"}=t,{userroles:A=""}=t,{clientstyling:y=""}=t,{clientstylingurl:P=""}=t,{translationurl:_=""}=t,{activemenuitem:p=""}=t,i,s=[],v,c=window.navigator.userAgent,w=e.getDevice(c)!=="PC",g="",x="";const H=window.matchMedia("(min-width: 768px)"),z=()=>{fetch(_).then(f=>f.json()).then(f=>{Object.keys(f).forEach(b=>{k(b,f[b])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(a=>{k(a,L[a])});const C=a=>{if(a.data)switch(a.data.type){case"UserSessionID":n(0,d=a.data.session);break}},S=()=>{let a=e.getDevice(c);if(a)return a==="PC"?"dk":"mtWeb"},W=()=>{const a=new URL(`${m}/${M}/profile-menu?env=${u}`);a.searchParams.append("device",S()),fetch(a.href).then(f=>f.json()).then(f=>{n(5,s=f),F()}).catch(f=>{console.error("Error getting menu items",f)})},D=()=>{let a=new URL(`${r}/v1/player/${h}/profile`);a.searchParams.append("userRoles",A);let f={method:"GET",headers:{"X-SessionID":d}};fetch(a.href,f).then(b=>b.json()).then(b=>{n(7,g=b.username),n(8,x=b.email)},b=>{console.error(b)})},I=a=>{window.postMessage({type:"ChangeAccountPage",page:a},window.location.href),n(6,v=a.id)},F=()=>{var a;n(6,v=(a=s.find(f=>f.path.includes(p)))==null?void 0:a.id)},O=()=>{Q(M)},U=()=>{D()},j=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},R=()=>{let a=document.createElement("style");a.innerHTML=y,i.appendChild(a)},q=()=>{let a=new URL(P),f=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{f.innerHTML=b,setTimeout(()=>{i.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const G=a=>I(a);function N(a){e.binding_callbacks[a?"unshift":"push"](()=>{i=a,n(4,i)})}return l.$$set=a=>{"endpoint"in a&&n(1,r=a.endpoint),"cmsendpoint"in a&&n(14,m=a.cmsendpoint),"env"in a&&n(15,u=a.env),"session"in a&&n(0,d=a.session),"playerid"in a&&n(16,h=a.playerid),"lang"in a&&n(17,M=a.lang),"userroles"in a&&n(18,A=a.userroles),"clientstyling"in a&&n(2,y=a.clientstyling),"clientstylingurl"in a&&n(3,P=a.clientstylingurl),"translationurl"in a&&n(19,_=a.translationurl),"activemenuitem"in a&&n(20,p=a.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&M&&O(),l.$$.dirty[0]&196611&&r&&d&&h&&M&&U(),l.$$.dirty[0]&180224&&m&&M&&u&&W(),l.$$.dirty[0]&1048576&&p&&F(),l.$$.dirty[0]&24&&P&&i&&q(),l.$$.dirty[0]&20&&y&&i&&R(),l.$$.dirty[0]&524288&&_&&z()},[d,r,y,P,i,s,v,g,x,o,w,H,I,j,m,u,h,M,A,_,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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BBoBE1Lx.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(o){if(o instanceof DOMException&&o.message.includes("has already been used with this registry")||o.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw o}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-BBoBE1Lx.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-g6nv6v",".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}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.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;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width: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)}.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)}.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}")}function T(l,t,n){const o=l.slice();return o[35]=t[n],o}function X(l){let t,n,o,r,m,u,d,h,M,A,y,P,_=l[10]&&Z(l),p=l[10]&&J(l),i=e.ensure_array_like(l[5]),s=[];for(let c=0;c<i.length;c+=1)s[c]=E(T(l,i,c));let v=!l[10]&&K(l);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),o=e.space(),r=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),h=e.text(l[8]),M=e.space(),p&&p.c(),A=e.space(),y=e.element("div");for(let c=0;c<s.length;c+=1)s[c].c();P=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(d,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":""))},m(c,w){e.insert(c,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,o),e.append(n,r),e.append(r,m),e.append(n,u),e.append(n,d),e.append(d,h),e.append(n,M),p&&p.m(n,null),e.append(t,A),e.append(t,y);for(let g=0;g<s.length;g+=1)s[g]&&s[g].m(y,null);e.append(t,P),v&&v.m(t,null)},p(c,w){if(c[10]&&_.p(c,w),w[0]&128&&e.set_data(m,c[7]),w[0]&256&&e.set_data(h,c[8]),c[10]&&p.p(c,w),w[0]&5216){i=e.ensure_array_like(c[5]);let g;for(g=0;g<i.length;g+=1){const x=T(c,i,g);s[g]?s[g].p(x,w):(s[g]=E(x),s[g].c(),s[g].m(y,null))}for(;g<s.length;g+=1)s[g].d(1);s.length=i.length}c[10]||v.p(c,w)},d(c){c&&e.detach(t),_&&_.d(),p&&p.d(),e.destroy_each(s,c),v&&v.d()}}}function Z(l){let t,n,o,r,m,u,d,h,M,A,y=l[9]("title")+"",P,_,p;return{c(){t=e.element("div"),n=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),m=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),M=e.space(),A=e.element("h3"),P=e.text(y),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(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(A,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(i,s){e.insert(i,t,s),e.append(t,n),e.append(n,o),e.append(o,r),e.append(r,m),e.append(n,u),e.append(u,d),e.append(d,h),e.append(t,M),e.append(t,A),e.append(A,P),_||(p=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],_=!0)},p(i,s){s[0]&512&&y!==(y=i[9]("title")+"")&&e.set_data(P,y)},d(i){i&&e.detach(t),_=!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")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function E(l){let t,n,o,r,m,u,d=l[35].label+"",h,M,A,y,P;function _(){return l[21](l[35])}return{c(){t=e.element("div"),n=e.element("p"),o=e.element("img"),m=e.space(),u=e.element("span"),h=e.text(d),M=e.space(),e.attr(o,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(o.src,r=l[35].img)||e.attr(o,"src",r),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))},m(p,i){e.insert(p,t,i),e.append(t,n),e.append(n,o),e.append(n,m),e.append(n,u),e.append(u,h),e.append(t,M),y||(P=e.listen(t,"click",_),y=!0)},p(p,i){l=p,i[0]&32&&!e.src_url_equal(o.src,r=l[35].img)&&e.attr(o,"src",r),i[0]&32&&d!==(d=l[35].label+"")&&e.set_data(h,d),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[35].id&&!l[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",A)},d(p){p&&e.detach(t),y=!1,P()}}}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")},m(o,r){e.insert(o,t,r),e.append(t,n)},p(o,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",o[1]),r[0]&1&&e.set_custom_element_data(n,"session",o[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",o[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",o[3])},d(o){o&&e.detach(t)}}}function Y(l){let t;function n(m,u){return X}let r=n()(l);return{c(){t=e.element("div"),r.c()},m(m,u){e.insert(m,t,u),r.m(t,null),l[22](t)},p(m,u){r.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),l[22](null)}}}function $(l,t,n){let o;e.component_subscribe(l,e.$format,a=>n(9,o=a));let{endpoint:r=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:h=""}=t,{lang:M="en"}=t,{userroles:A=""}=t,{clientstyling:y=""}=t,{clientstylingurl:P=""}=t,{translationurl:_=""}=t,{activemenuitem:p=""}=t,i,s=[],v,c=window.navigator.userAgent,w=e.getDevice(c)!=="PC",g="",x="";const H=window.matchMedia("(min-width: 768px)"),z=()=>{fetch(_).then(f=>f.json()).then(f=>{Object.keys(f).forEach(b=>{k(b,f[b])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(a=>{k(a,L[a])});const C=a=>{if(a.data)switch(a.data.type){case"UserSessionID":n(0,d=a.data.session);break}},S=()=>{let a=e.getDevice(c);if(a)return a==="PC"?"dk":"mtWeb"},W=()=>{const a=new URL(`${m}/${M}/profile-menu?env=${u}`);a.searchParams.append("device",S()),fetch(a.href).then(f=>f.json()).then(f=>{n(5,s=f),F()}).catch(f=>{console.error("Error getting menu items",f)})},D=()=>{let a=new URL(`${r}/v1/player/${h}/profile`);a.searchParams.append("userRoles",A);let f={method:"GET",headers:{"X-SessionID":d}};fetch(a.href,f).then(b=>b.json()).then(b=>{n(7,g=b.username),n(8,x=b.email)},b=>{console.error(b)})},I=a=>{window.postMessage({type:"ChangeAccountPage",page:a},window.location.href),n(6,v=a.id)},F=()=>{var a;n(6,v=(a=s.find(f=>f.path.includes(p)))==null?void 0:a.id)},O=()=>{Q(M)},U=()=>{D()},j=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},R=()=>{let a=document.createElement("style");a.innerHTML=y,i.appendChild(a)},q=()=>{let a=new URL(P),f=document.createElement("style");fetch(a.href).then(b=>b.text()).then(b=>{f.innerHTML=b,setTimeout(()=>{i.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const G=a=>I(a);function N(a){e.binding_callbacks[a?"unshift":"push"](()=>{i=a,n(4,i)})}return l.$$set=a=>{"endpoint"in a&&n(1,r=a.endpoint),"cmsendpoint"in a&&n(14,m=a.cmsendpoint),"env"in a&&n(15,u=a.env),"session"in a&&n(0,d=a.session),"playerid"in a&&n(16,h=a.playerid),"lang"in a&&n(17,M=a.lang),"userroles"in a&&n(18,A=a.userroles),"clientstyling"in a&&n(2,y=a.clientstyling),"clientstylingurl"in a&&n(3,P=a.clientstylingurl),"translationurl"in a&&n(19,_=a.translationurl),"activemenuitem"in a&&n(20,p=a.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&M&&O(),l.$$.dirty[0]&196611&&r&&d&&h&&M&&U(),l.$$.dirty[0]&180224&&m&&M&&u&&W(),l.$$.dirty[0]&1048576&&p&&F(),l.$$.dirty[0]&24&&P&&i&&q(),l.$$.dirty[0]&20&&y&&i&&R(),l.$$.dirty[0]&524288&&_&&z()},[d,r,y,P,i,s,v,g,x,o,w,H,I,j,m,u,h,M,A,_,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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ae, $ as ie, S as ce, i as se, f as F, c as ue, s as me, b as ye, e as v, k as T, o as D, p as E, q as ge, u as O, v as pe, x as de, y as fe, K as R, d as k, t as H, g as s, l as a, n as z, L as he, w as L, m as W, r as Ae, j as P, X as q } from "./GeneralLogout-
|
|
1
|
+
import { a as ae, $ as ie, S as ce, i as se, f as F, c as ue, s as me, b as ye, e as v, k as T, o as D, p as E, q as ge, u as O, v as pe, x as de, y as fe, K as R, d as k, t as H, g as s, l as a, n as z, L as he, w as L, m as W, r as Ae, j as P, X as q } from "./GeneralLogout-DJd6W-jT.js";
|
|
2
2
|
function N(n, e) {
|
|
3
3
|
ae(n, e);
|
|
4
4
|
}
|
|
@@ -49,7 +49,7 @@ if (typeof window != "undefined") {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
52
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-DJd6W-jT.js").then((e) => e.a4).then(({ default: e }) => {
|
|
53
53
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as z, S as B, i as F, f, c as P, s as R, b as U, B as W, k as L, H as c, I as m, Z as j, p as E, v as q, D as A, e as h, g as y, l as p, E as G, F as I, G as N, P as Y, _ as M, a0 as Z, x as C } from "./GeneralLogout-
|
|
1
|
+
import { Y as z, S as B, i as F, f, c as P, s as R, b as U, B as W, k as L, H as c, I as m, Z as j, p as E, v as q, D as A, e as h, g as y, l as p, E as G, F as I, G as N, P as Y, _ as M, a0 as Z, x as C } from "./GeneralLogout-DJd6W-jT.js";
|
|
2
2
|
function S(e, { delay: t = 0, duration: i = 400, easing: n = z } = {}) {
|
|
3
3
|
const s = +getComputedStyle(e).opacity;
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-BBoBE1Lx.cjs");function y(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function S(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function m(n){let e,l,i,s,r;const d=n[7].default,a=t.create_slot(d,n,n[6],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),a&&a.c(),t.attr(i,"class","ModalContainer"),t.attr(l,"class","ModalWindow"),t.attr(l,"id","Modal")},m(u,c){t.insert(u,e,c),t.append(e,l),t.append(l,i),a&&a.m(i,null),n[8](l),n[9](e),r=!0},p(u,c){n=u,a&&a.p&&(!r||c&64)&&t.update_slot_base(a,d,n,n[6],r?t.get_slot_changes(d,n[6],c,null):t.get_all_dirty_from_scope(n[6]),null)},i(u){r||(t.transition_in(a,u),u&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(u){t.transition_out(a,u),u&&(s||(s=t.create_bidirectional_transition(l,y,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(u){u&&t.detach(e),a&&a.d(u),n[8](null),u&&s&&s.end(),n[9](null)}}}function L(n){let e,l,i=n[0]&&m(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=m(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function k(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:d=350}=e,{clientstyling:a=""}=e,{clientstylingurl:u=""}=e,c,f;const g=o=>{o.data.type=="ModalClosed"&&l(0,r=!1),o.data.type==="ShowLimitsConfirmationModal"&&(l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))},w=()=>{let o=document.createElement("style");o.innerHTML=a,c.appendChild(o)},p=()=>{let o=new URL(u),h=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{h.innerHTML=_,setTimeout(()=>{c.appendChild(h)},1)})};t.onMount(()=>(window.addEventListener("message",g,!1),()=>{window.removeEventListener("message",g)}));function M(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(3,f)})}function C(o){t.binding_callbacks[o?"unshift":"push"](()=>{c=o,l(2,c)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,d=o.duration),"clientstyling"in o&&l(4,a=o.clientstyling),"clientstylingurl"in o&&l(5,u=o.clientstylingurl),"$$scope"in o&&l(6,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&u&&c&&p(),n.$$.dirty&20&&a&&c&&w()},[r,d,c,f,a,u,s,i,M,C]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,k,L,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5},S)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-BBoBE1Lx.cjs");function M(o){t.append_styles(o,"svelte-8rjudp",'.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emw--color-gray-300, #58586B);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}')}function x(o,e,a){const n=o.slice();return n[20]=e[a],n}function B(o){let e,a=t.ensure_array_like(o[1]),n=[];for(let i=0;i<a.length;i+=1)n[i]=A(x(o,a,i));return{c(){e=t.element("div");for(let i=0;i<n.length;i+=1)n[i].c();t.attr(e,"class","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":"")),t.attr(e,"part","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":""))},m(i,r){t.insert(i,e,r);for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(e,null)},p(i,r){if(r&2){a=t.ensure_array_like(i[1]);let c;for(c=0;c<a.length;c+=1){const u=x(i,a,c);n[c]?n[c].p(u,r):(n[c]=A(u),n[c].c(),n[c].m(e,null))}for(;c<n.length;c+=1)n[c].d(1);n.length=a.length}},d(i){i&&t.detach(e),t.destroy_each(n,i)}}}function A(o){let e,a,n,i,r,c,u,d=o[20].title+"",h,f,p,P=o[20].description+"",y;return{c(){e=t.element("div"),a=t.element("div"),n=t.element("img"),c=t.space(),u=t.element("p"),h=t.text(d),f=t.space(),p=t.element("p"),y=t.space(),t.attr(n,"class","PlayerAccountNotificationIcon"),t.src_url_equal(n.src,i=o[20].icon)||t.attr(n,"src",i),t.attr(n,"alt",r=o[20].title),t.attr(u,"class","PlayerAccountNotificationTitle"),t.attr(a,"class","PlayerAccountNotificationBoxHeader"),t.attr(p,"class","PlayerAccountNotificationText"),t.attr(e,"class","PlayerAccountNotificationBox"),t.set_style(e,"background",o[20].backgroundColor)},m(s,g){t.insert(s,e,g),t.append(e,a),t.append(a,n),t.append(a,c),t.append(a,u),t.append(u,h),t.append(e,f),t.append(e,p),p.innerHTML=P,t.append(e,y)},p(s,g){g&2&&!t.src_url_equal(n.src,i=s[20].icon)&&t.attr(n,"src",i),g&2&&r!==(r=s[20].title)&&t.attr(n,"alt",r),g&2&&d!==(d=s[20].title+"")&&t.set_data(h,d),g&2&&P!==(P=s[20].description+"")&&(p.innerHTML=P),g&2&&t.set_style(e,"background",s[20].backgroundColor)},d(s){s&&t.detach(e)}}}function H(o){let e;function a(r,c){if(r[1].length)return B}let n=a(o),i=n&&n(o);return{c(){e=t.element("div"),i&&i.c()},m(r,c){t.insert(r,e,c),i&&i.m(e,null),o[11](e)},p(r,[c]){n===(n=a(r))&&i?i.p(r,c):(i&&i.d(1),i=n&&n(r),i&&(i.c(),i.m(e,null)))},i:t.noop,o:t.noop,d(r){r&&t.detach(e),i&&i.d(),o[11](null)}}}function L(o,e,a){let{lang:n=""}=e,{cmsendpoint:i=""}=e,{env:r=""}=e,{userroles:c=""}=e,{customnotif:u=""}=e,{clientstyling:d=""}=e,{clientstylingurl:h=""}=e,f,p=window.navigator.userAgent,P=t.getDevice(p)!=="PC",y=[],s=[],g=C();const v=window.matchMedia("(min-width: 768px)");function C(){const l=t.getDevice(p);if(l)return l==="PC"?"dk":"mtWeb"}const w=()=>{const l=new URL(`${i}/${n}/support-information`);l.searchParams.append("env",r),l.searchParams.append("userRoles",c),l.searchParams.append("device",g),fetch(l.href).then(m=>m.json()).then(m=>{m.length&&(a(1,y=m[0].children),y.forEach(_=>{s.length&&(_.backgroundColor=s[0],s.shift())}))},m=>{console.error(m)})},b=()=>{u.replace(" ",""),s=u.split(",")},T=()=>{let l=document.createElement("style");l.innerHTML=d,f.appendChild(l)},k=()=>{let l=new URL(h),m=document.createElement("style");fetch(l.href).then(_=>_.text()).then(_=>{m.innerHTML=_,setTimeout(()=>{f.appendChild(m)},1)})};function F(l){t.binding_callbacks[l?"unshift":"push"](()=>{f=l,a(0,f)})}return o.$$set=l=>{"lang"in l&&a(4,n=l.lang),"cmsendpoint"in l&&a(5,i=l.cmsendpoint),"env"in l&&a(6,r=l.env),"userroles"in l&&a(7,c=l.userroles),"customnotif"in l&&a(8,u=l.customnotif),"clientstyling"in l&&a(9,d=l.clientstyling),"clientstylingurl"in l&&a(10,h=l.clientstylingurl)},o.$$.update=()=>{o.$$.dirty&256&&u&&b(),o.$$.dirty&2&&y&&b(),o.$$.dirty&240&&c&&i&&r&&n&&w(),o.$$.dirty&1025&&h&&f&&k(),o.$$.dirty&513&&d&&f&&T()},[f,y,P,v,n,i,r,c,u,d,h,F]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,L,H,t.safe_not_equal,{lang:4,cmsendpoint:5,env:6,userroles:7,customnotif:8,clientstyling:9,clientstylingurl:10},M)}get lang(){return this.$$.ctx[4]}set lang(e){this.$$set({lang:e}),t.flush()}get cmsendpoint(){return this.$$.ctx[5]}set cmsendpoint(e){this.$$set({cmsendpoint:e}),t.flush()}get env(){return this.$$.ctx[6]}set env(e){this.$$set({env:e}),t.flush()}get userroles(){return this.$$.ctx[7]}set userroles(e){this.$$set({userroles:e}),t.flush()}get customnotif(){return this.$$.ctx[8]}set customnotif(e){this.$$set({customnotif:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(N,{lang:{},cmsendpoint:{},env:{},userroles:{},customnotif:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=N;
|
package/components/{PlayerAccountNotifications-DmjuynrH.js → PlayerAccountNotifications-r_nD_SnF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as U, i as W, f as x, c as j, s as q, b as K, e as A, k as C, o as k, p as v, u as T, x as Q, K as F, g as u, L as V, d as _, t as X, X as M, W as B, l as p, n as G } from "./GeneralLogout-
|
|
1
|
+
import { S as U, i as W, f as x, c as j, s as q, b as K, e as A, k as C, o as k, p as v, u as T, x as Q, K as F, g as u, L as V, d as _, t as X, X as M, W as B, l as p, n as G } from "./GeneralLogout-DJd6W-jT.js";
|
|
2
2
|
function J(n) {
|
|
3
3
|
K(n, "svelte-8rjudp", '.PlayerAccountNotificationsContainer{padding:0 5px}.PlayerAccountNotificationBox{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emw--color-gray-300, #58586B);color:var(--emw--color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader{display:grid;width:100%;grid-template-areas:"nav main aside";grid-template-rows:auto;grid-template-columns:34px calc(100% - 34px);align-items:center}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationIcon{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader .PlayerAccountNotificationTitle{font-size:16px;flex:2}.PlayerAccountNotificationText{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationText a{text-decoration:none;color:var(--emw--color-white, #FFFFFF)}.PlayerAccountNotificationsMobileContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationTitle{font-size:14px}.PlayerAccountNotificationsMobileContainer .PlayerAccountNotificationIcon{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationBoxHeader{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationTitle{font-size:24px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationText{font-size:16px}.PlayerAccountNotificationsTabletContainer .PlayerAccountNotificationIcon{width:60px;margin-right:20px}');
|
|
4
4
|
}
|