@everymatrix/player-account-controller 1.90.27 → 1.90.29
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-DwNLBfEm.js → GeneralLogout-CFe5EzJp.js} +1 -1
- package/components/{GeneralLogout-C4EumplP.js → GeneralLogout-CitD2kYx.js} +1 -1
- package/components/{GeneralLogout-CJ83F0T-.cjs → GeneralLogout-DLKd4-Ex.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-kpMqXTCa.js → PlayerAccountBettingHistory-B5p94xtR.js} +1 -1
- package/components/{PlayerAccountBettingHistory-BhY_Ww_e.js → PlayerAccountBettingHistory-BMiaFMqV.js} +1 -1
- package/components/{PlayerAccountBettingHistory-B4Dj6cYD.cjs → PlayerAccountBettingHistory-D0Wglxr0.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CUrQTKBz.cjs → PlayerAccountBiometrics-DAgI3Cu7.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-D39leCsG.js → PlayerAccountBiometrics-DUZ8RdYt.js} +2 -2
- package/components/{PlayerAccountBiometrics-tzJhpDfY.js → PlayerAccountBiometrics-DmA2jSc_.js} +2 -2
- package/components/{PlayerAccountBiometricsAction-DMR4gM3W.cjs → PlayerAccountBiometricsAction-BBvB0d8o.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-BNiRdNGG.js → PlayerAccountBiometricsAction-BRSGVH4X.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-BEi6fJnh.js → PlayerAccountBiometricsAction-CKXIdMtU.js} +1 -1
- package/components/{PlayerAccountClosure-z8D8s410.js → PlayerAccountClosure-BcLyNrNG.js} +1 -1
- package/components/{PlayerAccountClosure-BHJVs9rZ.cjs → PlayerAccountClosure-CXlHuZ92.cjs} +1 -1
- package/components/{PlayerAccountClosure-Cl3x1fL0.js → PlayerAccountClosure-XGc9ZiYm.js} +1 -1
- package/components/{PlayerAccountController-D0b5nEtR.js → PlayerAccountController-BSPngDYz.js} +113 -109
- package/components/{PlayerAccountController-CKaOyxPs.js → PlayerAccountController-CJHc3SS3.js} +47 -43
- package/components/PlayerAccountController-Dmj-2JqQ.cjs +21 -0
- package/components/{PlayerAccountGamingLimits-U-H5gb3e.cjs → PlayerAccountGamingLimits-8htL7vSV.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-k6RYNNnE.js → PlayerAccountGamingLimits-D611L03D.js} +2 -2
- package/components/{PlayerAccountGamingLimits-CBLv92Kh.js → PlayerAccountGamingLimits-DTyDBlTf.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-DKzqC8Vf.cjs → PlayerAccountGamingLimitsConfirmationModal-CAv_Sbmr.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-FG4Mfvt0.js → PlayerAccountGamingLimitsConfirmationModal-D-PgeKH_.js} +15 -15
- package/components/{PlayerAccountGamingLimitsConfirmationModal-538HdqwS.js → PlayerAccountGamingLimitsConfirmationModal-DvqCM2G1.js} +12 -12
- package/components/{PlayerAccountGamingLimitsGroupEdit-6fCqHqkM.cjs → PlayerAccountGamingLimitsGroupEdit-BEiNHS24.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-DL8BUzBz.js → PlayerAccountGamingLimitsGroupEdit-BEjXX_jg.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-B2JhDz2i.js → PlayerAccountGamingLimitsGroupEdit-BvgALXLX.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2-g_IWvLmy.js → PlayerAccountGamingLimitsHistory2-BN22RxDR.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-xIrqOBue.js → PlayerAccountGamingLimitsHistory2-CoeYPmqH.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-BNWPIbWB.cjs → PlayerAccountGamingLimitsHistory2-CpBo3wiy.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-C3kYu3Mz.js → PlayerAccountGamingLimitsInfoCard-BopVn9oy.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-DQT8NxCM.cjs → PlayerAccountGamingLimitsInfoCard-DPWKw--2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-aPWTEP6v.js → PlayerAccountGamingLimitsInfoCard-DhPnmBGG.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Cv_0o78w.js → PlayerAccountGamingLimitsPage2Gm16-BNg2EUQV.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-vBu6DIoa.cjs → PlayerAccountGamingLimitsPage2Gm16-Bpje0igb.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BTPwSCw_.js → PlayerAccountGamingLimitsPage2Gm16-C3QRkRCB.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CsiOIti5.js → PlayerAccountGamingLimitsPopup-BA2AIvOy.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BBelp3R2.cjs → PlayerAccountGamingLimitsPopup-CI72Atg2.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-mKUhuTAc.js → PlayerAccountGamingLimitsPopup-CcuzeUgQ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-LXe3wpOz.js → PlayerAccountGamingLimitsWrapper2-Cms8_ntK.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-BXgOs7ar.cjs → PlayerAccountGamingLimitsWrapper2-DAbOpaeN.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-206eT_43.js → PlayerAccountGamingLimitsWrapper2-DQ4Obfib.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-h3MmxVod.js → PlayerAccountGeneralConfirmationModal-BZ0X1Dlo.js} +20 -20
- package/components/{PlayerAccountGeneralConfirmationModal-SggjdB4z.js → PlayerAccountGeneralConfirmationModal-Brw8NZsV.js} +22 -22
- package/components/{PlayerAccountGeneralConfirmationModal-Bs4_RcFn.cjs → PlayerAccountGeneralConfirmationModal-CfcVktbY.cjs} +1 -1
- package/components/{PlayerAccountMenu-DbWbd1yC.cjs → PlayerAccountMenu-Bb2xcPwn.cjs} +1 -1
- package/components/{PlayerAccountMenu-CLz0VlnA.js → PlayerAccountMenu-C5Oz4-6A.js} +2 -2
- package/components/{PlayerAccountMenu-DNcEo09K.js → PlayerAccountMenu-Xv3fxf8T.js} +2 -2
- package/components/{PlayerAccountModal-CscgLYV5.js → PlayerAccountModal-BvOz9AsV.js} +36 -36
- package/components/{PlayerAccountModal-BjiMUaLd.js → PlayerAccountModal-Cp-wOYCn.js} +39 -39
- package/components/{PlayerAccountModal-BXE5DAmY.cjs → PlayerAccountModal-DgCkoKyq.cjs} +1 -1
- package/components/{PlayerAccountNotifications-B17BVCRD.js → PlayerAccountNotifications-B_hkFksG.js} +1 -1
- package/components/{PlayerAccountNotifications-DAVg-El1.js → PlayerAccountNotifications-DGIFN4Ch.js} +1 -1
- package/components/{PlayerAccountNotifications-D-QSwFJL.cjs → PlayerAccountNotifications-DlHE_mz7.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-BVbpwBgo.cjs → PlayerAccountProductRestriction-CTfm4h7U.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-B4qAQc1H.js → PlayerAccountProductRestriction-CcRDj5sy.js} +3 -3
- package/components/{PlayerAccountProductRestriction-BGxedQ3X.js → PlayerAccountProductRestriction-_WoKMFT4.js} +3 -3
- package/components/{PlayerAccountReviewFrequency-Cuvddk9X.js → PlayerAccountReviewFrequency-CF9IzplT.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-Cq7qpg-I.js → PlayerAccountReviewFrequency-D1pAeX79.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-oQ7NCWlX.cjs → PlayerAccountReviewFrequency-DwkdzawT.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-xIyAHdnn.js → PlayerAccountSelfExclusion-Bmhb8Jli.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-BMOP0W_Z.js → PlayerAccountSelfExclusion-CPQ8JtZa.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-BSyc12y1.cjs → PlayerAccountSelfExclusion-DDHra23U.cjs} +1 -1
- package/components/{PlayerAccountTimeout-D0RW52RF.js → PlayerAccountTimeout-Dg4O3iyw.js} +3 -3
- package/components/{PlayerAccountTimeout-BNLHG5j3.js → PlayerAccountTimeout-P5DtsoTx.js} +3 -3
- package/components/{PlayerAccountTimeout-ZOGQj5G2.cjs → PlayerAccountTimeout-sjSL5Dpv.cjs} +2 -2
- package/components/{PlayerAccountTransactionsHistory-CbtfeCgT.cjs → PlayerAccountTransactionsHistory-BX3UReVy.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-DKB8qW5n.js → PlayerAccountTransactionsHistory-CU2DDALF.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-BzGvWPDJ.js → PlayerAccountTransactionsHistory-D7rJzh5B.js} +4 -4
- package/components/{PlayerActiveBonuses-Df33uFo8.js → PlayerActiveBonuses-B2vhMIkm.js} +501 -483
- package/components/PlayerActiveBonuses-BCQ5UVut.cjs +4 -0
- package/components/{PlayerActiveBonuses-pJGDjCj9.js → PlayerActiveBonuses-GB6JZx99.js} +530 -512
- package/components/{PlayerBonusCard-ByC1IBuw.js → PlayerBonusCard-CkLGXPzC.js} +2 -2
- package/components/{PlayerBonusCard-CxRngJSZ.cjs → PlayerBonusCard-DJXHrQG_.cjs} +1 -1
- package/components/{PlayerBonusCard-BUDT4xyi.js → PlayerBonusCard-rqenDufG.js} +2 -2
- package/components/{PlayerBonusHistory-CkarFQt0.js → PlayerBonusHistory-BM7-cIBI.js} +2 -2
- package/components/{PlayerBonusHistory-CEWrGvIt.js → PlayerBonusHistory-BpHtGGxA.js} +2 -2
- package/components/{PlayerBonusHistory-C7UDn3wR.cjs → PlayerBonusHistory-ChOUZADS.cjs} +1 -1
- package/components/{PlayerChangePassword-_SMq16X1.js → PlayerChangePassword-ARbCOIaI.js} +1 -1
- package/components/{PlayerChangePassword-3Pfi4t-s.cjs → PlayerChangePassword-DOJm87SJ.cjs} +1 -1
- package/components/{PlayerChangePassword-BRiEQQkP.js → PlayerChangePassword-DPR4EiVR.js} +1 -1
- package/components/{PlayerDeposit-DHqNMLjt.js → PlayerDeposit-DWWFDXYC.js} +1 -1
- package/components/{PlayerDeposit-CRJRg5Wr.cjs → PlayerDeposit-Xp_hblpz.cjs} +1 -1
- package/components/{PlayerDeposit-sLxAAkrb.js → PlayerDeposit-svLagB2z.js} +1 -1
- package/components/{PlayerGamingHistory-B-pE0ysm.js → PlayerGamingHistory-B49lNrr0.js} +42 -42
- package/components/{PlayerGamingHistory-C9II4LcD.cjs → PlayerGamingHistory-Csa97UvH.cjs} +1 -1
- package/components/{PlayerGamingHistory-Bzb5pocD.js → PlayerGamingHistory-CwLhuKnf.js} +41 -41
- package/components/{PlayerPendingWithdrawals-CbB3XENc.cjs → PlayerPendingWithdrawals-CbEkwv63.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-Dl09yYaH.js → PlayerPendingWithdrawals-DW09BeSU.js} +1 -1
- package/components/{PlayerPendingWithdrawals-bSDN7eqy.js → PlayerPendingWithdrawals-ZJ-BQLh6.js} +1 -1
- package/components/{PlayerProfileInfo-BHezZcjN.js → PlayerProfileInfo-BIyoITow.js} +1511 -1344
- package/components/PlayerProfileInfo-BOighpMr.cjs +4 -0
- package/components/{PlayerProfileInfo-BgW-E1St.js → PlayerProfileInfo-woho1ht0.js} +1567 -1311
- package/components/{PlayerRealityCheck-Dg7GLCk4.cjs → PlayerRealityCheck-BPKGQrhm.cjs} +1 -1
- package/components/{PlayerRealityCheck-Cy5rO9DI.js → PlayerRealityCheck-DA6S751H.js} +22 -22
- package/components/{PlayerRealityCheck-BrfGbURR.js → PlayerRealityCheck-Dv9kJXvy.js} +21 -21
- package/components/{PlayerTransactionHistory-C2S5faSi.js → PlayerTransactionHistory-CGm_RGIr.js} +1 -1
- package/components/{PlayerTransactionHistory-CruxvxRp.js → PlayerTransactionHistory-D6CYlkgp.js} +1 -1
- package/components/{PlayerTransactionHistory-8OqngAkm.cjs → PlayerTransactionHistory-m6f5iED2.cjs} +1 -1
- package/components/{PlayerWithdrawal-BD1XhA5i.js → PlayerWithdrawal-6pPxrikc.js} +1 -1
- package/components/{PlayerWithdrawal-C0_dg9OD.js → PlayerWithdrawal-CrJeRcho.js} +1 -1
- package/components/{PlayerWithdrawal-CLiy-ohS.cjs → PlayerWithdrawal-SqlPOCrD.cjs} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountController-DKq6RO5X.cjs +0 -21
- package/components/PlayerActiveBonuses-CT7XTxBJ.cjs +0 -4
- package/components/PlayerProfileInfo-lynpo_OL.cjs +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-DKq6RO5X.cjs");require("../stencil/ui-skeleton-CS05SPLQ.cjs");function W(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-CJ83F0T-.cjs")).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-5g0xrl",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function S(l,t,n){const a=l.slice();return a[40]=t[n],a}function T(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,g,y,b,_,f,h,u=l[12]&&ee(l),c=l[12]&&te(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=O(S(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),y=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(r,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,A){e.insert(p,t,A),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,r),e.append(r,s),e.append(n,m),e.append(n,g),e.append(g,y),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let M=0;M<i.length;M+=1)i[M]&&i[M].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,A){if(p[12]&&u.p(p,A),A[0]&512&&e.set_data(s,p[9]),A[0]&1024&&e.set_data(y,p[10]),p[12]&&c.p(p,A),A[0]&12672){d=e.ensure_array_like(p[7]);let M;for(M=0;M<d.length;M+=1){const k=S(p,d,M);i[M]?i[M].p(k,A):(i[M]=O(k),i[M].c(),i[M].m(f,null))}for(;M<i.length;M+=1)i[M].d(1);i.length=d.length}p[12]||v.p(p,A)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function $(l){let t,n,a,r,s,m,g,y,b,_,f=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=j(T(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),y=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,y);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(y,null);e.append(t,b),e.append(t,_)},p(c,d){if(d[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=T(c,h,i);u[i]?u[i].p(v,d):(u[i]=j(v),u[i].c(),u[i].m(y,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,g,y,b,_,f=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),g=e.svg_element("g"),y=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(f),e.attr(y,"class","aaa"),e.attr(y,"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(y,"transform","translate(15 15) rotate(180)"),e.attr(g,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,s),e.append(n,m),e.append(m,g),e.append(g,y),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[14]),e.listen(_,"click",l[14])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(h,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function O(l){let t,n,a,r,s,m,g=l[40].label+"",y,b,_,f,h;function u(){return l[24](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),y=e.text(g),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,y),e.append(t,b),f||(h=e.listen(t,"click",u),f=!0)},p(c,d){l=c,d[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),d[0]&128&&g!==(g=l[40].label+"")&&e.set_data(y,g),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function j(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,g){e.insert(m,t,g),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,r)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function re(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[25](t)},p(s,m){a===(a=n(s))&&r?r.p(s,m):(r.d(1),r=a(s),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),r.d(),l[25](null)}}}function oe(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:y=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,A,M,k=[],x,I=window.navigator.userAgent,U=e.getDevice(I)!=="PC",F="",C="";window.matchMedia("(min-width: 768px)");const D=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{W(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(H).forEach(o=>{W(o,H[o])});const L=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},q=()=>{let o=e.getDevice(I);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(P=>P.json()).then(P=>{n(7,k=P),B()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},N=()=>{let o=new URL(`${r}/v1/player/${y}/profile`);o.searchParams.append("userRoles",_);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,F=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},E=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},B=()=>{var o;n(8,x=(o=k.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{K(b)},V=()=>{N()},X=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Z=o=>E(o);function J(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,n(5,A)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(15,s=o.cmsendpoint),"env"in o&&n(16,m=o.env),"session"in o&&n(0,g=o.session),"playerid"in o&&n(17,y=o.playerid),"lang"in o&&n(18,b=o.lang),"userroles"in o&&n(19,_=o.userroles),"clientstyling"in o&&n(2,f=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(20,u=o.translationurl),"activemenuitem"in o&&n(21,c=o.activemenuitem),"mbsource"in o&&n(4,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&12582912&&n(6,p=!i||!v),l.$$.dirty[0]&262144&&b&&G(),l.$$.dirty[0]&393219&&r&&g&&y&&b&&V(),l.$$.dirty[0]&360448&&s&&b&&m&&R(),l.$$.dirty[0]&2097152&&c&&B(),l.$$.dirty[0]&36&&f&&A&&e.setClientStyling(A,f),l.$$.dirty[0]&40&&h&&A&&e.setClientStylingURL(A,h),l.$$.dirty[0]&48&&d&&A&&e.setStreamStyling(A,`${d}.Style`,M),l.$$.dirty[0]&1048576&&u&&D()},[g,r,f,h,d,A,p,k,x,F,C,a,U,E,X,s,m,y,b,_,u,c,i,v,Z,J]}class z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21,mbsource:4},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[19]}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[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(z,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=z;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-Dmj-2JqQ.cjs");require("../stencil/ui-skeleton-CS05SPLQ.cjs");function W(l,t){e.addMessages(l,t)}function K(l){e.$locale.set(l)}const H={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"},"en-us":{title:"My Account"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=l(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-DLKd4-Ex.cjs")).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Q(l){e.append_styles(l,"svelte-5g0xrl",".PlayerAccountMenuContainer{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;border-right:2px solid #58586b;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuContainer .skeletonLogOut{width:100%}.PlayerAccountMenuHeader{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;height:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;height:30px;padding-top:15px}.PlayerAccountMenuList{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--color-gray-100, #E6E6E6) var(--emw--color-gray-300, #58586B);min-height:900px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emw--color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emw--color-gray-100, #E6E6E6)}.PlayerAccountItemWrap{display:flex;gap:20px;padding:16px 20px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile{flex-wrap:wrap;flex:0 0 33.3333%;padding:0;gap:10px}.PlayerAccountItemWrap.PlayerAccountItemWrapMobile ui-skeleton{width:100%}.PlayerAccountItemWrap ui-skeleton:last-child{flex:1}.PlayerAccountLogOutArea{background:var(--emw--color-gray-300, #58586B);color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF));width:100%;flex-grow:0;border-top:1px solid var(--emw--color-gray-150, #828282)}.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer{height:unset}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryWrapper{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid var(--emw--color-gray-300, #58586B);border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-bottom:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:30px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:11px;padding:0 5px 15px 5px;font-weight:400;word-break:break-word;text-align:center;color:var(--emw--pam-typography-color-nav-bg, var(--emw--color-contrast, #FFFFFF))}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function S(l,t,n){const a=l.slice();return a[40]=t[n],a}function T(l,t,n){const a=l.slice();return a[37]=t[n],a}function Y(l){let t,n,a,r,s,m,g,y,b,_,f,h,u=l[12]&&ee(l),c=l[12]&&te(l),d=e.ensure_array_like(l[7]),i=[];for(let p=0;p<d.length;p+=1)i[p]=O(S(l,d,p));let v=!l[12]&&ne(l);return{c(){t=e.element("div"),n=e.element("div"),u&&u.c(),a=e.space(),r=e.element("p"),s=e.text(l[9]),m=e.space(),g=e.element("p"),y=e.text(l[10]),b=e.space(),c&&c.c(),_=e.space(),f=e.element("div");for(let p=0;p<i.length;p+=1)i[p].c();h=e.space(),v&&v.c(),e.attr(r,"class","PlayerAccountMenuUser"),e.attr(r,"translate","no"),e.attr(g,"class","PlayerAccountMenuEmail"),e.attr(g,"translate","no"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(f,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(p,A){e.insert(p,t,A),e.append(t,n),u&&u.m(n,null),e.append(n,a),e.append(n,r),e.append(r,s),e.append(n,m),e.append(n,g),e.append(g,y),e.append(n,b),c&&c.m(n,null),e.append(t,_),e.append(t,f);for(let M=0;M<i.length;M+=1)i[M]&&i[M].m(f,null);e.append(t,h),v&&v.m(t,null)},p(p,A){if(p[12]&&u.p(p,A),A[0]&512&&e.set_data(s,p[9]),A[0]&1024&&e.set_data(y,p[10]),p[12]&&c.p(p,A),A[0]&12672){d=e.ensure_array_like(p[7]);let M;for(M=0;M<d.length;M+=1){const k=S(p,d,M);i[M]?i[M].p(k,A):(i[M]=O(k),i[M].c(),i[M].m(f,null))}for(;M<i.length;M+=1)i[M].d(1);i.length=d.length}p[12]||v.p(p,A)},d(p){p&&e.detach(t),u&&u.d(),c&&c.d(),e.destroy_each(i,p),v&&v.d()}}}function $(l){let t,n,a,r,s,m,g,y,b,_,f=l[12]&&le(),h=e.ensure_array_like(Array(18)),u=[];for(let c=0;c<h.length;c+=1)u[c]=j(T(l,h,c));return{c(){t=e.element("div"),n=e.element("div"),f&&f.c(),a=e.space(),r=e.element("ui-skeleton"),s=e.space(),m=e.element("ui-skeleton"),g=e.space(),y=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();b=e.space(),_=e.element("div"),_.innerHTML='<ui-skeleton structure="rectangle" width="auto" height="60px"></ui-skeleton>',e.set_custom_element_data(r,"structure","title"),e.set_custom_element_data(r,"width","100px"),e.set_custom_element_data(r,"height","20px"),e.set_custom_element_data(r,"margin-top","10px"),e.set_custom_element_data(m,"structure","text"),e.set_custom_element_data(m,"width","200px"),e.set_custom_element_data(m,"height","20px"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[12]?"PlayerAccountMenuHeaderMobile":"")),e.attr(y,"class","PlayerAccountMenuList"),e.attr(_,"class","skeletonLogOut"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[12]?"PlayerAccountMobileContainer":""))},m(c,d){e.insert(c,t,d),e.append(t,n),f&&f.m(n,null),e.append(n,a),e.append(n,r),e.append(n,s),e.append(n,m),e.append(t,g),e.append(t,y);for(let i=0;i<u.length;i+=1)u[i]&&u[i].m(y,null);e.append(t,b),e.append(t,_)},p(c,d){if(d[0]&4096){h=e.ensure_array_like(Array(18));let i;for(i=0;i<h.length;i+=1){const v=T(c,h,i);u[i]?u[i].p(v,d):(u[i]=j(v),u[i].c(),u[i].m(y,null))}for(;i<u.length;i+=1)u[i].d(1);u.length=h.length}},d(c){c&&e.detach(t),f&&f.d(),e.destroy_each(u,c)}}}function ee(l){let t,n,a,r,s,m,g,y,b,_,f=l[11]("title")+"",h,u,c;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--color-white, #FFFFFF);}"),m=e.svg_element("g"),g=e.svg_element("g"),y=e.svg_element("path"),b=e.space(),_=e.element("h3"),h=e.text(f),e.attr(y,"class","aaa"),e.attr(y,"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(y,"transform","translate(15 15) rotate(180)"),e.attr(g,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(_,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(d,i){e.insert(d,t,i),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,s),e.append(n,m),e.append(m,g),e.append(g,y),e.append(t,b),e.append(t,_),e.append(_,h),u||(c=[e.listen(n,"click",l[14]),e.listen(_,"click",l[14])],u=!0)},p(d,i){i[0]&2048&&f!==(f=d[11]("title")+"")&&e.set_data(h,f)},d(d){d&&e.detach(t),u=!1,e.run_all(c)}}}function te(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function O(l){let t,n,a,r,s,m,g=l[40].label+"",y,b,_,f,h;function u(){return l[24](l[40])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),s=e.space(),m=e.element("span"),y=e.text(g),b=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[12]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(a.src,r=l[40].img)||e.attr(a,"src",r),e.attr(m,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(n,a),e.append(n,s),e.append(n,m),e.append(m,y),e.append(t,b),f||(h=e.listen(t,"click",u),f=!0)},p(c,d){l=c,d[0]&128&&!e.src_url_equal(a.src,r=l[40].img)&&e.attr(a,"src",r),d[0]&128&&g!==(g=l[40].label+"")&&e.set_data(y,g),d[0]&384&&_!==(_="PlayerAccountMenuItemBox "+(l[8]===l[40].id&&!l[12]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",_)},d(c){c&&e.detach(t),f=!1,h()}}}function ne(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.set_custom_element_data(n,"mbsource",l[4]),e.attr(t,"class","PlayerAccountLogOutArea")},m(a,r){e.insert(a,t,r),e.append(t,n)},p(a,r){r[0]&2&&e.set_custom_element_data(n,"endpoint",a[1]),r[0]&1&&e.set_custom_element_data(n,"session",a[0]),r[0]&4&&e.set_custom_element_data(n,"clientstyling",a[2]),r[0]&8&&e.set_custom_element_data(n,"clientstylingurl",a[3]),r[0]&16&&e.set_custom_element_data(n,"mbsource",a[4])},d(a){a&&e.detach(t)}}}function le(l){let t;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="title" width="30px" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="30px"></ui-skeleton>',e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function ae(l){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","circle"),e.set_custom_element_data(t,"size","20px")},m(n,a){e.insert(n,t,a)},d(n){n&&e.detach(t)}}}function j(l){let t,n,a,r,s=!l[12]&&ae();return{c(){t=e.element("div"),s&&s.c(),n=e.space(),a=e.element("ui-skeleton"),r=e.space(),e.set_custom_element_data(a,"structure","rectangle"),e.set_custom_element_data(a,"width","100%"),e.set_custom_element_data(a,"height",l[12]?"120px":"20px"),e.attr(t,"class","PlayerAccountItemWrap "+(l[12]?"PlayerAccountItemWrapMobile":""))},m(m,g){e.insert(m,t,g),s&&s.m(t,null),e.append(t,n),e.append(t,a),e.append(t,r)},p:e.noop,d(m){m&&e.detach(t),s&&s.d()}}}function re(l){let t;function n(s,m){return s[6]?$:Y}let a=n(l),r=a(l);return{c(){t=e.element("div"),r.c()},m(s,m){e.insert(s,t,m),r.m(t,null),l[25](t)},p(s,m){a===(a=n(s))&&r?r.p(s,m):(r.d(1),r=a(s),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),r.d(),l[25](null)}}}function oe(l,t,n){let a;e.component_subscribe(l,e.$format,o=>n(11,a=o));let{endpoint:r=""}=t,{cmsendpoint:s=""}=t,{env:m=""}=t,{session:g=""}=t,{playerid:y=""}=t,{lang:b="en"}=t,{userroles:_=""}=t,{clientstyling:f=""}=t,{clientstylingurl:h=""}=t,{translationurl:u=""}=t,{activemenuitem:c=""}=t,{mbsource:d}=t,i=!1,v=!1,p=!0,A,M,k=[],x,I=window.navigator.userAgent,U=e.getDevice(I)!=="PC",F="",C="";window.matchMedia("(min-width: 768px)");const D=()=>{fetch(u).then(P=>P.json()).then(P=>{Object.keys(P).forEach(w=>{W(w,P[w])})}).catch(P=>{console.error(P)})};Object.keys(H).forEach(o=>{W(o,H[o])});const L=o=>{if(o.data)switch(o.data.type){case"UserSessionID":n(0,g=o.data.session);break}},q=()=>{let o=e.getDevice(I);if(o)return o==="PC"?"dk":"mtWeb"},R=()=>{const o=new URL(`${s}/${b}/profile-menu?env=${m}`);o.searchParams.append("device",q()),fetch(o.href).then(P=>P.json()).then(P=>{n(7,k=P),B()}).catch(P=>{console.error("Error getting menu items",P)}).finally(()=>{n(22,i=!0)})},N=()=>{let o=new URL(`${r}/v1/player/${y}/profile`);o.searchParams.append("userRoles",_);let P={method:"GET",headers:{"X-SessionID":g}};fetch(o.href,P).then(w=>w.json()).then(w=>{n(9,F=w.username),n(10,C=w.email)},w=>{console.error(w)}).finally(()=>{n(23,v=!0)})},E=o=>{window.postMessage({type:"ChangeAccountPage",page:o},window.location.href),n(8,x=o.id)},B=()=>{var o;n(8,x=(o=k.find(P=>P.path.includes(c)))==null?void 0:o.id)},G=()=>{K(b)},V=()=>{N()},X=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)};e.onMount(()=>(window.addEventListener("message",L,!1),()=>{window.removeEventListener("message",L)}));const Z=o=>E(o);function J(o){e.binding_callbacks[o?"unshift":"push"](()=>{A=o,n(5,A)})}return l.$$set=o=>{"endpoint"in o&&n(1,r=o.endpoint),"cmsendpoint"in o&&n(15,s=o.cmsendpoint),"env"in o&&n(16,m=o.env),"session"in o&&n(0,g=o.session),"playerid"in o&&n(17,y=o.playerid),"lang"in o&&n(18,b=o.lang),"userroles"in o&&n(19,_=o.userroles),"clientstyling"in o&&n(2,f=o.clientstyling),"clientstylingurl"in o&&n(3,h=o.clientstylingurl),"translationurl"in o&&n(20,u=o.translationurl),"activemenuitem"in o&&n(21,c=o.activemenuitem),"mbsource"in o&&n(4,d=o.mbsource)},l.$$.update=()=>{l.$$.dirty[0]&12582912&&n(6,p=!i||!v),l.$$.dirty[0]&262144&&b&&G(),l.$$.dirty[0]&393219&&r&&g&&y&&b&&V(),l.$$.dirty[0]&360448&&s&&b&&m&&R(),l.$$.dirty[0]&2097152&&c&&B(),l.$$.dirty[0]&36&&f&&A&&e.setClientStyling(A,f),l.$$.dirty[0]&40&&h&&A&&e.setClientStylingURL(A,h),l.$$.dirty[0]&48&&d&&A&&e.setStreamStyling(A,`${d}.Style`,M),l.$$.dirty[0]&1048576&&u&&D()},[g,r,f,h,d,A,p,k,x,F,C,a,U,E,X,s,m,y,b,_,u,c,i,v,Z,J]}class z extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,re,e.safe_not_equal,{endpoint:1,cmsendpoint:15,env:16,session:0,playerid:17,lang:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21,mbsource:4},Q,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[15]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[16]}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[17]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get userroles(){return this.$$.ctx[19]}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[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get activemenuitem(){return this.$$.ctx[21]}set activemenuitem(t){this.$$set({activemenuitem:t}),e.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(z,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{},mbsource:{}},[],[],!0);exports.default=z;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as me, $ as ge, S as de, i as fe, f as F, s as ye, c as pe, b as he, n as j, d as C, e as L, g as b, h as be, j as V, o as Ae, k as Me, l as S, m as ee, p as a, q as I, r as m, t as g, u as T, v as H, w as Pe, x as z, y as W, z as X, A as we, B as ve, C as _e, D as ke } from "./PlayerAccountController-
|
|
1
|
+
import { a as me, $ as ge, S as de, i as fe, f as F, s as ye, c as pe, b as he, n as j, d as C, e as L, g as b, h as be, j as V, o as Ae, k as Me, l as S, m as ee, p as a, q as I, r as m, t as g, u as T, v as H, w as Pe, x as z, y as W, z as X, A as we, B as ve, C as _e, D as ke } from "./PlayerAccountController-BSPngDYz.js";
|
|
2
2
|
import "../stencil/ui-skeleton-DNuG5l9W.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(n, e);
|
|
@@ -53,7 +53,7 @@ if (typeof window < "u") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-CFe5EzJp.js").then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as me, $ as ge, S as de, i as fe, s as ye, f as F, b as pe, n as j, d as C, c as L, e as b, g as he, h as V, o as be, j as Ae, k as S, l as ee, m as a, p as I, q as m, r as g, t as T, u as H, v as Me, w as z, x as W, y as X, z as Pe, A as we, B as ve, C as _e, D as ke } from "./PlayerAccountController-
|
|
1
|
+
import { a as me, $ as ge, S as de, i as fe, s as ye, f as F, b as pe, n as j, d as C, c as L, e as b, g as he, h as V, o as be, j as Ae, k as S, l as ee, m as a, p as I, q as m, r as g, t as T, u as H, v as Me, w as z, x as W, y as X, z as Pe, A as we, B as ve, C as _e, D as ke } from "./PlayerAccountController-CJHc3SS3.js";
|
|
2
2
|
import "../stencil/ui-skeleton-BKpwkQ2A.js";
|
|
3
3
|
function Z(n, e) {
|
|
4
4
|
me(n, e);
|
|
@@ -53,7 +53,7 @@ if (typeof window != "undefined") {
|
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
customElements.define = n(customElements.define), import("./GeneralLogout-
|
|
56
|
+
customElements.define = n(customElements.define), import("./GeneralLogout-CitD2kYx.js").then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as j, S as A, i as B, s as P, f, b as q, d as L, V as w, W as m, Y as H, X as N, c as z, L as R, o as U, _ as V, a5 as S, P as X, a0 as Y, a1 as F, a2 as G, m as v, e as _, r as y, j as C, z as I, A as J, B as K, C as O } from "./PlayerAccountController-CJHc3SS3.js";
|
|
2
2
|
function M(e, { delay: t = 0, duration: n = 400, easing: i = j } = {}) {
|
|
3
3
|
const s = +getComputedStyle(e).opacity;
|
|
4
4
|
return {
|
|
5
5
|
delay: t,
|
|
6
6
|
duration: n,
|
|
7
7
|
easing: i,
|
|
8
|
-
css: (
|
|
8
|
+
css: (a) => `opacity: ${a * s}`
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
function Q(e) {
|
|
12
|
-
|
|
12
|
+
q(e, "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}");
|
|
13
13
|
}
|
|
14
14
|
function k(e) {
|
|
15
|
-
let t, n, i, s,
|
|
15
|
+
let t, n, i, s, a;
|
|
16
16
|
const d = (
|
|
17
17
|
/*#slots*/
|
|
18
18
|
e[9].default
|
|
@@ -27,18 +27,18 @@ function k(e) {
|
|
|
27
27
|
c() {
|
|
28
28
|
t = _("div"), n = _("div"), i = _("div"), r && r.c(), y(i, "class", "ModalContainer"), y(n, "class", "ModalWindow"), y(n, "id", "Modal");
|
|
29
29
|
},
|
|
30
|
-
m(
|
|
31
|
-
z(
|
|
30
|
+
m(o, u) {
|
|
31
|
+
z(o, t, u), v(t, n), v(n, i), r && r.m(i, null), e[10](n), e[11](t), a = !0;
|
|
32
32
|
},
|
|
33
|
-
p(
|
|
34
|
-
e =
|
|
35
|
-
256) &&
|
|
33
|
+
p(o, u) {
|
|
34
|
+
e = o, r && r.p && (!a || u & /*$$scope*/
|
|
35
|
+
256) && Y(
|
|
36
36
|
r,
|
|
37
37
|
d,
|
|
38
38
|
e,
|
|
39
39
|
/*$$scope*/
|
|
40
40
|
e[8],
|
|
41
|
-
|
|
41
|
+
a ? G(
|
|
42
42
|
d,
|
|
43
43
|
/*$$scope*/
|
|
44
44
|
e[8],
|
|
@@ -51,22 +51,22 @@ function k(e) {
|
|
|
51
51
|
null
|
|
52
52
|
);
|
|
53
53
|
},
|
|
54
|
-
i(
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
i(o) {
|
|
55
|
+
a || (m(r, o), o && X(() => {
|
|
56
|
+
a && (s || (s = S(n, M, { transitionDuration: (
|
|
57
57
|
/*duration*/
|
|
58
58
|
e[1]
|
|
59
59
|
) }, !0)), s.run(1));
|
|
60
|
-
}),
|
|
60
|
+
}), a = !0);
|
|
61
61
|
},
|
|
62
|
-
o(
|
|
63
|
-
w(r,
|
|
62
|
+
o(o) {
|
|
63
|
+
w(r, o), o && (s || (s = S(n, M, { transitionDuration: (
|
|
64
64
|
/*duration*/
|
|
65
65
|
e[1]
|
|
66
|
-
) }, !1)), s.run(0)),
|
|
66
|
+
) }, !1)), s.run(0)), a = !1;
|
|
67
67
|
},
|
|
68
|
-
d(
|
|
69
|
-
|
|
68
|
+
d(o) {
|
|
69
|
+
o && L(t), r && r.d(o), e[10](null), o && s && s.end(), e[11](null);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -77,17 +77,17 @@ function T(e) {
|
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
79
79
|
c() {
|
|
80
|
-
i && i.c(), t =
|
|
80
|
+
i && i.c(), t = R();
|
|
81
81
|
},
|
|
82
|
-
m(s,
|
|
83
|
-
i && i.m(s,
|
|
82
|
+
m(s, a) {
|
|
83
|
+
i && i.m(s, a), z(s, t, a), n = !0;
|
|
84
84
|
},
|
|
85
|
-
p(s, [
|
|
85
|
+
p(s, [a]) {
|
|
86
86
|
/*show*/
|
|
87
|
-
s[0] ? i ? (i.p(s,
|
|
88
|
-
1 && m(i, 1)) : (i = k(s), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (
|
|
87
|
+
s[0] ? i ? (i.p(s, a), a & /*show*/
|
|
88
|
+
1 && m(i, 1)) : (i = k(s), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (H(), w(i, 1, 1, () => {
|
|
89
89
|
i = null;
|
|
90
|
-
}),
|
|
90
|
+
}), N());
|
|
91
91
|
},
|
|
92
92
|
i(s) {
|
|
93
93
|
n || (m(i), n = !0);
|
|
@@ -100,19 +100,19 @@ function T(e) {
|
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
let { $$slots: i = {}, $$scope: s } = t, { show:
|
|
103
|
+
function Z(e, t, n) {
|
|
104
|
+
let { $$slots: i = {}, $$scope: s } = t, { show: a = !1 } = t, { duration: d = 350 } = t, { clientstyling: r = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: u } = t, { showmodaleventname: g = "ShowLimitsConfirmationModal" } = t, c, D, h;
|
|
105
105
|
const b = (l) => {
|
|
106
106
|
switch (l.data.type) {
|
|
107
107
|
case "ModalClosed":
|
|
108
|
-
n(0,
|
|
108
|
+
n(0, a = !1);
|
|
109
109
|
break;
|
|
110
110
|
case g:
|
|
111
|
-
n(0,
|
|
111
|
+
n(0, a = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
U(() => (window.addEventListener("message", b, !1), () => {
|
|
116
116
|
window.removeEventListener("message", b);
|
|
117
117
|
}));
|
|
118
118
|
function E(l) {
|
|
@@ -126,19 +126,19 @@ function Y(e, t, n) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
return e.$$set = (l) => {
|
|
129
|
-
"show" in l && n(0,
|
|
129
|
+
"show" in l && n(0, a = l.show), "duration" in l && n(1, d = l.duration), "clientstyling" in l && n(4, r = l.clientstyling), "clientstylingurl" in l && n(5, o = l.clientstylingurl), "mbsource" in l && n(6, u = l.mbsource), "showmodaleventname" in l && n(7, g = l.showmodaleventname), "$$scope" in l && n(8, s = l.$$scope);
|
|
130
130
|
}, e.$$.update = () => {
|
|
131
131
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
132
132
|
20 && r && c && I(c, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
133
|
-
36 &&
|
|
133
|
+
36 && o && c && J(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
134
134
|
68 && u && c && K(c, `${u}.Style`, D);
|
|
135
135
|
}, [
|
|
136
|
-
|
|
136
|
+
a,
|
|
137
137
|
d,
|
|
138
138
|
c,
|
|
139
139
|
h,
|
|
140
140
|
r,
|
|
141
|
-
|
|
141
|
+
o,
|
|
142
142
|
u,
|
|
143
143
|
g,
|
|
144
144
|
s,
|
|
@@ -152,7 +152,7 @@ class p extends A {
|
|
|
152
152
|
super(), B(
|
|
153
153
|
this,
|
|
154
154
|
t,
|
|
155
|
-
|
|
155
|
+
Z,
|
|
156
156
|
T,
|
|
157
157
|
P,
|
|
158
158
|
{
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a4 as B, S as P, i as j, s as q, f, b as A, d as L, V as w, W as m, Y as H, X as N, e as D, L as R, o as U, _ as V, a5 as S, P as X, a0 as Y, a1 as p, a2 as F, p as k, g as _, t as y, k as v, B as G, C as I, D as J, c as K } from "./PlayerAccountController-BSPngDYz.js";
|
|
2
2
|
function C(e, { delay: t = 0, duration: n = 400, easing: i = B } = {}) {
|
|
3
3
|
const s = +getComputedStyle(e).opacity;
|
|
4
4
|
return {
|
|
5
5
|
delay: t,
|
|
6
6
|
duration: n,
|
|
7
7
|
easing: i,
|
|
8
|
-
css: (
|
|
8
|
+
css: (a) => `opacity: ${a * s}`
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
function O(e) {
|
|
12
|
-
|
|
12
|
+
A(e, "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}");
|
|
13
13
|
}
|
|
14
14
|
function M(e) {
|
|
15
|
-
let t, n, i, s,
|
|
15
|
+
let t, n, i, s, a;
|
|
16
16
|
const d = (
|
|
17
17
|
/*#slots*/
|
|
18
18
|
e[9].default
|
|
@@ -27,18 +27,18 @@ function M(e) {
|
|
|
27
27
|
c() {
|
|
28
28
|
t = _("div"), n = _("div"), i = _("div"), r && r.c(), y(i, "class", "ModalContainer"), y(n, "class", "ModalWindow"), y(n, "id", "Modal");
|
|
29
29
|
},
|
|
30
|
-
m(
|
|
31
|
-
D(
|
|
30
|
+
m(o, u) {
|
|
31
|
+
D(o, t, u), k(t, n), k(n, i), r && r.m(i, null), e[10](n), e[11](t), a = !0;
|
|
32
32
|
},
|
|
33
|
-
p(
|
|
34
|
-
e =
|
|
35
|
-
256) &&
|
|
33
|
+
p(o, u) {
|
|
34
|
+
e = o, r && r.p && (!a || u & /*$$scope*/
|
|
35
|
+
256) && Y(
|
|
36
36
|
r,
|
|
37
37
|
d,
|
|
38
38
|
e,
|
|
39
39
|
/*$$scope*/
|
|
40
40
|
e[8],
|
|
41
|
-
|
|
41
|
+
a ? F(
|
|
42
42
|
d,
|
|
43
43
|
/*$$scope*/
|
|
44
44
|
e[8],
|
|
@@ -51,22 +51,22 @@ function M(e) {
|
|
|
51
51
|
null
|
|
52
52
|
);
|
|
53
53
|
},
|
|
54
|
-
i(
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
i(o) {
|
|
55
|
+
a || (m(r, o), o && X(() => {
|
|
56
|
+
a && (s || (s = S(n, C, { transitionDuration: (
|
|
57
57
|
/*duration*/
|
|
58
58
|
e[1]
|
|
59
59
|
) }, !0)), s.run(1));
|
|
60
|
-
}),
|
|
60
|
+
}), a = !0);
|
|
61
61
|
},
|
|
62
|
-
o(
|
|
63
|
-
w(r,
|
|
62
|
+
o(o) {
|
|
63
|
+
w(r, o), o && (s || (s = S(n, C, { transitionDuration: (
|
|
64
64
|
/*duration*/
|
|
65
65
|
e[1]
|
|
66
|
-
) }, !1)), s.run(0)),
|
|
66
|
+
) }, !1)), s.run(0)), a = !1;
|
|
67
67
|
},
|
|
68
|
-
d(
|
|
69
|
-
|
|
68
|
+
d(o) {
|
|
69
|
+
o && L(t), r && r.d(o), e[10](null), o && s && s.end(), e[11](null);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
72
|
}
|
|
@@ -77,17 +77,17 @@ function Q(e) {
|
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
79
79
|
c() {
|
|
80
|
-
i && i.c(), t =
|
|
80
|
+
i && i.c(), t = R();
|
|
81
81
|
},
|
|
82
|
-
m(s,
|
|
83
|
-
i && i.m(s,
|
|
82
|
+
m(s, a) {
|
|
83
|
+
i && i.m(s, a), D(s, t, a), n = !0;
|
|
84
84
|
},
|
|
85
|
-
p(s, [
|
|
85
|
+
p(s, [a]) {
|
|
86
86
|
/*show*/
|
|
87
|
-
s[0] ? i ? (i.p(s,
|
|
88
|
-
1 && m(i, 1)) : (i = M(s), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (
|
|
87
|
+
s[0] ? i ? (i.p(s, a), a & /*show*/
|
|
88
|
+
1 && m(i, 1)) : (i = M(s), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (H(), w(i, 1, 1, () => {
|
|
89
89
|
i = null;
|
|
90
|
-
}),
|
|
90
|
+
}), N());
|
|
91
91
|
},
|
|
92
92
|
i(s) {
|
|
93
93
|
n || (m(i), n = !0);
|
|
@@ -101,18 +101,18 @@ function Q(e) {
|
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
103
|
function T(e, t, n) {
|
|
104
|
-
let { $$slots: i = {}, $$scope: s } = t, { show:
|
|
104
|
+
let { $$slots: i = {}, $$scope: s } = t, { show: a = !1 } = t, { duration: d = 350 } = t, { clientstyling: r = "" } = t, { clientstylingurl: o = "" } = t, { mbsource: u } = t, { showmodaleventname: g = "ShowLimitsConfirmationModal" } = t, c, E, h;
|
|
105
105
|
const b = (l) => {
|
|
106
106
|
switch (l.data.type) {
|
|
107
107
|
case "ModalClosed":
|
|
108
|
-
n(0,
|
|
108
|
+
n(0, a = !1);
|
|
109
109
|
break;
|
|
110
110
|
case g:
|
|
111
|
-
n(0,
|
|
111
|
+
n(0, a = !0), window.postMessage({ type: "DisableScroll" }, window.location.href);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
|
-
|
|
115
|
+
U(() => (window.addEventListener("message", b, !1), () => {
|
|
116
116
|
window.removeEventListener("message", b);
|
|
117
117
|
}));
|
|
118
118
|
function W(l) {
|
|
@@ -126,19 +126,19 @@ function T(e, t, n) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
return e.$$set = (l) => {
|
|
129
|
-
"show" in l && n(0,
|
|
129
|
+
"show" in l && n(0, a = l.show), "duration" in l && n(1, d = l.duration), "clientstyling" in l && n(4, r = l.clientstyling), "clientstylingurl" in l && n(5, o = l.clientstylingurl), "mbsource" in l && n(6, u = l.mbsource), "showmodaleventname" in l && n(7, g = l.showmodaleventname), "$$scope" in l && n(8, s = l.$$scope);
|
|
130
130
|
}, e.$$.update = () => {
|
|
131
131
|
e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
132
132
|
20 && r && c && G(c, r), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
133
|
-
36 &&
|
|
133
|
+
36 && o && c && I(c, o), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
134
134
|
68 && u && c && J(c, `${u}.Style`, E);
|
|
135
135
|
}, [
|
|
136
|
-
|
|
136
|
+
a,
|
|
137
137
|
d,
|
|
138
138
|
c,
|
|
139
139
|
h,
|
|
140
140
|
r,
|
|
141
|
-
|
|
141
|
+
o,
|
|
142
142
|
u,
|
|
143
143
|
g,
|
|
144
144
|
s,
|
|
@@ -147,14 +147,14 @@ function T(e, t, n) {
|
|
|
147
147
|
z
|
|
148
148
|
];
|
|
149
149
|
}
|
|
150
|
-
class
|
|
150
|
+
class Z extends P {
|
|
151
151
|
constructor(t) {
|
|
152
|
-
super(),
|
|
152
|
+
super(), j(
|
|
153
153
|
this,
|
|
154
154
|
t,
|
|
155
155
|
T,
|
|
156
156
|
Q,
|
|
157
|
-
|
|
157
|
+
q,
|
|
158
158
|
{
|
|
159
159
|
show: 0,
|
|
160
160
|
duration: 1,
|
|
@@ -203,7 +203,7 @@ class Y extends P {
|
|
|
203
203
|
this.$$set({ showmodaleventname: t }), f();
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
K(
|
|
206
|
+
K(Z, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, showmodaleventname: {} }, ["default"], [], !0);
|
|
207
207
|
export {
|
|
208
|
-
|
|
208
|
+
Z as default
|
|
209
209
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-Dmj-2JqQ.cjs");function g(n,{delay:e=0,duration:i=400,easing:l=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:l,css:r=>`opacity: ${r*s}`}}function M(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 y(n){let e,i,l,s,r;const f=n[9].default,a=t.create_slot(f,n,n[8],null);return{c(){e=t.element("div"),i=t.element("div"),l=t.element("div"),a&&a.c(),t.attr(l,"class","ModalContainer"),t.attr(i,"class","ModalWindow"),t.attr(i,"id","Modal")},m(u,c){t.insert(u,e,c),t.append(e,i),t.append(i,l),a&&a.m(l,null),n[10](i),n[11](e),r=!0},p(u,c){n=u,a&&a.p&&(!r||c&256)&&t.update_slot_base(a,f,n,n[8],r?t.get_slot_changes(f,n[8],c,null):t.get_all_dirty_from_scope(n[8]),null)},i(u){r||(t.transition_in(a,u),u&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(u){t.transition_out(a,u),u&&(s||(s=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(u){u&&t.detach(e),a&&a.d(u),n[10](null),u&&s&&s.end(),n[11](null)}}}function k(n){let e,i,l=n[0]&&y(n);return{c(){l&&l.c(),e=t.empty()},m(s,r){l&&l.m(s,r),t.insert(s,e,r),i=!0},p(s,[r]){s[0]?l?(l.p(s,r),r&1&&t.transition_in(l,1)):(l=y(s),l.c(),t.transition_in(l,1),l.m(e.parentNode,e)):l&&(t.group_outros(),t.transition_out(l,1,1,()=>{l=null}),t.check_outros())},i(s){i||(t.transition_in(l),i=!0)},o(s){t.transition_out(l),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function C(n,e,i){let{$$slots:l={},$$scope:s}=e,{show:r=!1}=e,{duration:f=350}=e,{clientstyling:a=""}=e,{clientstylingurl:u=""}=e,{mbsource:c}=e,{showmodaleventname:m="ShowLimitsConfirmationModal"}=e,d,w,_;const h=o=>{switch(o.data.type){case"ModalClosed":i(0,r=!1);break;case m:i(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};t.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{_=o,i(3,_)})}function v(o){t.binding_callbacks[o?"unshift":"push"](()=>{d=o,i(2,d)})}return n.$$set=o=>{"show"in o&&i(0,r=o.show),"duration"in o&&i(1,f=o.duration),"clientstyling"in o&&i(4,a=o.clientstyling),"clientstylingurl"in o&&i(5,u=o.clientstylingurl),"mbsource"in o&&i(6,c=o.mbsource),"showmodaleventname"in o&&i(7,m=o.showmodaleventname),"$$scope"in o&&i(8,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&20&&a&&d&&t.setClientStyling(d,a),n.$$.dirty&36&&u&&d&&t.setClientStylingURL(d,u),n.$$.dirty&68&&c&&d&&t.setStreamStyling(d,`${c}.Style`,w)},[r,f,d,_,a,u,c,m,s,l,S,v]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,C,k,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},M)}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()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(e){this.$$set({showmodaleventname:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=b;
|
package/components/{PlayerAccountNotifications-B17BVCRD.js → PlayerAccountNotifications-B_hkFksG.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as G, i as J, s as K, f as y, b as O, n as M, d as k, c as x, e as g, h as H, o as X, j as Y, k as S, l as q, m, r as s, p as C, y as W, t as Z, E as z, u as $, q as P, z as tt, A as et, B as it, C as nt } from "./PlayerAccountController-
|
|
1
|
+
import { S as G, i as J, s as K, f as y, b as O, n as M, d as k, c as x, e as g, h as H, o as X, j as Y, k as S, l as q, m, r as s, p as C, y as W, t as Z, E as z, u as $, q as P, z as tt, A as et, B as it, C as nt } from "./PlayerAccountController-CJHc3SS3.js";
|
|
2
2
|
import "../stencil/ui-skeleton-BKpwkQ2A.js";
|
|
3
3
|
function ot(r) {
|
|
4
4
|
O(r, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.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}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
package/components/{PlayerAccountNotifications-DAVg-El1.js → PlayerAccountNotifications-DGIFN4Ch.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as V, i as G, s as J, f as y, b as K, n as M, d as k, e as x, g, j as B, o as O, k as X, m as D, l as S, p as m, t as s, q as C, z as H, u as Y, E as W, v as Z, r as v, B as $, C as tt, D as et, c as it } from "./PlayerAccountController-
|
|
1
|
+
import { S as V, i as G, s as J, f as y, b as K, n as M, d as k, e as x, g, j as B, o as O, k as X, m as D, l as S, p as m, t as s, q as C, z as H, u as Y, E as W, v as Z, r as v, B as $, C as tt, D as et, c as it } from "./PlayerAccountController-BSPngDYz.js";
|
|
2
2
|
import "../stencil/ui-skeleton-DNuG5l9W.js";
|
|
3
3
|
function nt(a) {
|
|
4
4
|
K(a, "svelte-1b8j2p", ':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.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}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-Dmj-2JqQ.cjs");require("../stencil/ui-skeleton-CS05SPLQ.cjs");function L(a){e.append_styles(a,"svelte-1b8j2p",':host{padding:0;margin:0;font-family:inherit}.PlayerAccountNotificationsContainer{padding:0 5px;display:grid;grid-gap:20px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s;container-type:inline-size;container-name:notifications-container}.PlayerAccountNotificationBox{background:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));display:block;padding:20px;border-radius:var(--emw--border-radius-medium, 10px);width:100%;color:var(--emw--color-black, #000);box-sizing:border-box;text-decoration:none;word-break:break-word;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}.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}.skeletonContainer{container-type:inline-size}.skeletonContainer .skeletonWrapper{animation:fadeIn ease 0.3s}@container (max-width: 768px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@container (max-width: 425px){.skeletonContainer .skeletonWrapper{display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));grid-gap:20px;padding:0px 10px}.skeletonContainer .skeletonWrapper .skeletonNotification{width:100%}}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function w(a,t,o){const n=a.slice();return n[24]=t[o],n}function P(a,t,o){const n=a.slice();return n[21]=t[o],n}function z(a){let t,o=e.ensure_array_like(a[1]),n=[];for(let i=0;i<o.length;i+=1)n[i]=N(w(a,o,i));return{c(){t=e.element("div");for(let i=0;i<n.length;i+=1)n[i].c();e.attr(t,"class","PlayerAccountNotificationsContainer "+(a[3]?"PlayerAccountNotificationsMobileContainer":"")),e.attr(t,"part","PlayerAccountNotificationsContainer "+(a[3]?"PlayerAccountNotificationsMobileContainer":""))},m(i,l){e.insert(i,t,l);for(let r=0;r<n.length;r+=1)n[r]&&n[r].m(t,null)},p(i,l){if(l&2){o=e.ensure_array_like(i[1]);let r;for(r=0;r<o.length;r+=1){const c=w(i,o,r);n[r]?n[r].p(c,l):(n[r]=N(c),n[r].c(),n[r].m(t,null))}for(;r<n.length;r+=1)n[r].d(1);n.length=o.length}},d(i){i&&e.detach(t),e.destroy_each(n,i)}}}function F(a){let t,o,n=e.ensure_array_like({length:3}),i=[];for(let l=0;l<n.length;l+=1)i[l]=A(P(a,n,l));return{c(){t=e.element("div"),o=e.element("div");for(let l=0;l<i.length;l+=1)i[l].c();e.attr(o,"class","skeletonWrapper"),e.attr(t,"class","skeletonContainer")},m(l,r){e.insert(l,t,r),e.append(t,o);for(let c=0;c<i.length;c+=1)i[c]&&i[c].m(o,null)},p(l,r){if(r&24){n=e.ensure_array_like({length:3});let c;for(c=0;c<n.length;c+=1){const d=P(l,n,c);i[c]?i[c].p(d,r):(i[c]=A(d),i[c].c(),i[c].m(o,null))}for(;c<i.length;c+=1)i[c].d(1);i.length=n.length}},d(l){l&&e.detach(t),e.destroy_each(i,l)}}}function N(a){let t,o,n,i,l,r,c,d=a[24].title+"",g,p,u,_=a[24].description+"",k;return{c(){t=e.element("div"),o=e.element("div"),n=e.element("img"),r=e.space(),c=e.element("p"),g=e.text(d),p=e.space(),u=e.element("p"),k=e.space(),e.attr(n,"class","PlayerAccountNotificationIcon"),e.attr(n,"width","24px"),e.attr(n,"height","24px"),e.src_url_equal(n.src,i=a[24].icon)||e.attr(n,"src",i),e.attr(n,"alt",l=a[24].title),e.attr(c,"class","PlayerAccountNotificationTitle"),e.attr(o,"class","PlayerAccountNotificationBoxHeader"),e.attr(u,"class","PlayerAccountNotificationText"),e.attr(t,"class","PlayerAccountNotificationBox"),e.set_style(t,"background",a[24].backgroundColor)},m(f,m){e.insert(f,t,m),e.append(t,o),e.append(o,n),e.append(o,r),e.append(o,c),e.append(c,g),e.append(t,p),e.append(t,u),u.innerHTML=_,e.append(t,k)},p(f,m){m&2&&!e.src_url_equal(n.src,i=f[24].icon)&&e.attr(n,"src",i),m&2&&l!==(l=f[24].title)&&e.attr(n,"alt",l),m&2&&d!==(d=f[24].title+"")&&e.set_data(g,d),m&2&&_!==(_=f[24].description+"")&&(u.innerHTML=_),m&2&&e.set_style(t,"background",f[24].backgroundColor)},d(f){f&&e.detach(t)}}}function I(a){let t;return{c(){t=e.element("ui-skeleton"),e.set_custom_element_data(t,"structure","rectangle"),e.set_custom_element_data(t,"width","auto"),e.set_custom_element_data(t,"height",a[3]&&a[4].matches?"250px":"400px")},m(o,n){e.insert(o,t,n)},p:e.noop,d(o){o&&e.detach(t)}}}function q(a){let t;return{c(){t=e.element("ui-skeleton"),t.innerHTML="",e.set_custom_element_data(t,"structure","rectangle"),e.set_custom_element_data(t,"width","auto"),e.set_custom_element_data(t,"height","130px")},m(o,n){e.insert(o,t,n)},p:e.noop,d(o){o&&e.detach(t)}}}function A(a){let t,o;function n(r,c){return r[3]?I:q}let l=n(a)(a);return{c(){t=e.element("div"),l.c(),o=e.space(),e.attr(t,"class","skeletonNotification")},m(r,c){e.insert(r,t,c),l.m(t,null),e.append(t,o)},p(r,c){l.p(r,c)},d(r){r&&e.detach(t),l.d()}}}function j(a){let t;function o(l,r){var c;if(l[2])return F;if((c=l[1])!=null&&c.length)return z}let n=o(a),i=n&&n(a);return{c(){t=e.element("div"),i&&i.c()},m(l,r){e.insert(l,t,r),i&&i.m(t,null),a[13](t)},p(l,[r]){n===(n=o(l))&&i?i.p(l,r):(i&&i.d(1),i=n&&n(l),i&&(i.c(),i.m(t,null)))},i:e.noop,o:e.noop,d(l){l&&e.detach(t),i&&i.d(),a[13](null)}}}function D(a,t,o){let{lang:n=""}=t,{cmsendpoint:i=""}=t,{env:l=""}=t,{userroles:r=""}=t,{customnotif:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:g=""}=t,{mbsource:p}=t,u,_,k=!0,f=window.navigator.userAgent,m=e.getDevice(f)!=="PC",y=[],b=[],M=T();const S=window.matchMedia("(min-width: 768px)");function T(){const s=e.getDevice(f);if(s)return s==="PC"?"dk":"mtWeb"}const B=()=>{const s=new URL(`${i}/${n}/support-information`);s.searchParams.append("env",l),s.searchParams.append("userRoles",r),s.searchParams.append("device",M),fetch(s.href).then(h=>h.json()).then(h=>{var v;h.length&&(o(1,y=(v=h[0].children)!=null?v:h),y==null||y.forEach(W=>{b.length&&(W.backgroundColor=b[0],b.shift())}))}).catch(h=>{console.error(h)}).finally(()=>{setTimeout(()=>{o(2,k=!1)},1e3)})},x=()=>{c.replace(" ",""),b=c.split(",")};e.onMount(()=>()=>{});function H(s){e.binding_callbacks[s?"unshift":"push"](()=>{u=s,o(0,u)})}return a.$$set=s=>{"lang"in s&&o(5,n=s.lang),"cmsendpoint"in s&&o(6,i=s.cmsendpoint),"env"in s&&o(7,l=s.env),"userroles"in s&&o(8,r=s.userroles),"customnotif"in s&&o(9,c=s.customnotif),"clientstyling"in s&&o(10,d=s.clientstyling),"clientstylingurl"in s&&o(11,g=s.clientstylingurl),"mbsource"in s&&o(12,p=s.mbsource)},a.$$.update=()=>{a.$$.dirty&512&&c&&x(),a.$$.dirty&2&&y&&x(),a.$$.dirty&480&&r&&i&&l&&n&&B(),a.$$.dirty&1025&&d&&u&&e.setClientStyling(u,d),a.$$.dirty&2049&&g&&u&&e.setClientStylingURL(u,g),a.$$.dirty&4097&&p&&u&&e.setStreamStyling(u,`${p}.Style`,_)},[u,y,k,m,S,n,i,l,r,c,d,g,p,H]}class C extends e.SvelteComponent{constructor(t){super(),e.init(this,t,D,j,e.safe_not_equal,{lang:5,cmsendpoint:6,env:7,userroles:8,customnotif:9,clientstyling:10,clientstylingurl:11,mbsource:12},L)}get lang(){return this.$$.ctx[5]}set lang(t){this.$$set({lang:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[6]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[7]}set env(t){this.$$set({env:t}),e.flush()}get userroles(){return this.$$.ctx[8]}set userroles(t){this.$$set({userroles:t}),e.flush()}get customnotif(){return this.$$.ctx[9]}set customnotif(t){this.$$set({customnotif:t}),e.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(C,{lang:{},cmsendpoint:{},env:{},userroles:{},customnotif:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=C;
|