@everymatrix/player-account-controller 1.90.9 → 1.90.16
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-pwKsJ5-l.js → GeneralLogout-BKx51Zaq.js} +1 -1
- package/components/{GeneralLogout-eoaVkxXT.cjs → GeneralLogout-VTkKJB8c.cjs} +1 -1
- package/components/{GeneralLogout-BSzBmLE_.js → GeneralLogout-mhvPXdQS.js} +1 -1
- package/components/{PlayerAccountBettingHistory-DnnK0ZuT.js → PlayerAccountBettingHistory-60htcrut.js} +1 -1
- package/components/{PlayerAccountBettingHistory-BsjWgPyh.cjs → PlayerAccountBettingHistory-BMg5yoY5.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-fbByqyQl.js → PlayerAccountBettingHistory-JWTctySt.js} +1 -1
- package/components/{PlayerAccountBiometrics-D-Kaql-D.js → PlayerAccountBiometrics-B7WFoVnp.js} +2 -2
- package/components/{PlayerAccountBiometrics-CRxspQox.js → PlayerAccountBiometrics-CnaARJe_.js} +2 -2
- package/components/{PlayerAccountBiometrics-DWIjHMcK.cjs → PlayerAccountBiometrics-zdFmr-58.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-CsLPS9kI.js → PlayerAccountBiometricsAction-BWog1wle.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-DLdRVPeF.js → PlayerAccountBiometricsAction-Cq_CYfcW.js} +1 -1
- package/components/{PlayerAccountBiometricsAction-CwVdWg0a.cjs → PlayerAccountBiometricsAction-D4HOPMt8.cjs} +1 -1
- package/components/{PlayerAccountClosure-CmfaWOto.js → PlayerAccountClosure-8aPkk1cP.js} +1 -1
- package/components/{PlayerAccountClosure-3nAyYGNv.js → PlayerAccountClosure-BfONWAwp.js} +1 -1
- package/components/{PlayerAccountClosure-BHsPlJYD.cjs → PlayerAccountClosure-DDwjKJmB.cjs} +1 -1
- package/components/{PlayerAccountController-CwmiXx7L.cjs → PlayerAccountController-BcBfTKzG.cjs} +1 -1
- package/components/{PlayerAccountController-BW6_Nrpt.js → PlayerAccountController-ByLZN610.js} +22 -22
- package/components/{PlayerAccountController-Cf08NGel.js → PlayerAccountController-Dfff9xAu.js} +22 -22
- package/components/{PlayerAccountGamingLimits-YGMLSrUE.js → PlayerAccountGamingLimits-BQOSAIiX.js} +2 -2
- package/components/{PlayerAccountGamingLimits-DWethY6_.js → PlayerAccountGamingLimits-COtk5U5W.js} +2 -2
- package/components/{PlayerAccountGamingLimits-Bi6mmTOl.cjs → PlayerAccountGamingLimits-CineMYxO.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-V6nDIaE5.js → PlayerAccountGamingLimitsConfirmationModal-CLx7zUaa.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CM41Syzb.js → PlayerAccountGamingLimitsConfirmationModal-DMPjx0Ei.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BDh59QjA.cjs → PlayerAccountGamingLimitsConfirmationModal-DWER3ml0.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-BtFa9KCl.js → PlayerAccountGamingLimitsGroupEdit-BWvjS300.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-DqV4AtH5.cjs → PlayerAccountGamingLimitsGroupEdit-C1i_unLf.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-CG7qjkxE.js → PlayerAccountGamingLimitsGroupEdit-CVnN5-d7.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2-ew1Heowl.js → PlayerAccountGamingLimitsHistory2-C3Qousav.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-a9rfpUnK.cjs → PlayerAccountGamingLimitsHistory2-CtDQanI7.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-C7HMSrDy.js → PlayerAccountGamingLimitsHistory2-DprnSDYw.js} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-EoH3LYgz.cjs → PlayerAccountGamingLimitsInfoCard-AjTnsmvq.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-B_eFH3dz.js → PlayerAccountGamingLimitsInfoCard-BiZTVktI.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-xKAvvClH.js → PlayerAccountGamingLimitsInfoCard-CANE4TBu.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-C5fW7kTL.js → PlayerAccountGamingLimitsPage2Gm16-C0m1GAeE.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-_BG_vaTF.js → PlayerAccountGamingLimitsPage2Gm16-CSRxmQti.js} +2 -2
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Cq8FXgsj.cjs → PlayerAccountGamingLimitsPage2Gm16-N9NHLWAf.cjs} +2 -2
- package/components/{PlayerAccountGamingLimitsPopup-qrBdr5ln.js → PlayerAccountGamingLimitsPopup-BvThHy_x.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-B78h611-.cjs → PlayerAccountGamingLimitsPopup-C3UM47UE.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Cfjlqsil.js → PlayerAccountGamingLimitsPopup-CyGn50tO.js} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-DdkAEE11.js → PlayerAccountGamingLimitsWrapper2-BPJyqTpv.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-m_slDh-m.cjs → PlayerAccountGamingLimitsWrapper2-DsOS3q11.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-DvJ-UucJ.js → PlayerAccountGamingLimitsWrapper2-ze8gMSgD.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-BfDEZbFo.cjs → PlayerAccountGeneralConfirmationModal-B0tiStxb.cjs} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-B6z13nq9.js → PlayerAccountGeneralConfirmationModal-C9_fj-ax.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-_-yavTWi.js → PlayerAccountGeneralConfirmationModal-DhPqdXb8.js} +1 -1
- package/components/{PlayerAccountMenu-vYH4XoHy.js → PlayerAccountMenu-B6WEgCGT.js} +2 -2
- package/components/{PlayerAccountMenu-9StBK6Zg.cjs → PlayerAccountMenu-BqPlPSZk.cjs} +1 -1
- package/components/{PlayerAccountMenu-CXyyAu9L.js → PlayerAccountMenu-DogKHV0t.js} +2 -2
- package/components/{PlayerAccountModal--UA5TTcM.js → PlayerAccountModal-B5SzzxV1.js} +1 -1
- package/components/{PlayerAccountModal-BvUBEyfj.js → PlayerAccountModal-BF6Er1Lx.js} +1 -1
- package/components/{PlayerAccountModal-YchKutin.cjs → PlayerAccountModal-Bj22eBYi.cjs} +1 -1
- package/components/{PlayerAccountNotifications-COmR0LZp.js → PlayerAccountNotifications-BYCwuefx.js} +1 -1
- package/components/{PlayerAccountNotifications-Mr_BeADO.cjs → PlayerAccountNotifications-Dpo3gxTG.cjs} +1 -1
- package/components/{PlayerAccountNotifications-D8Jgov2k.js → PlayerAccountNotifications-yHt4nfBt.js} +1 -1
- package/components/{PlayerAccountProductRestriction-CWQqePy9.cjs → PlayerAccountProductRestriction-C-S-Kp67.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-BYoFCW50.js → PlayerAccountProductRestriction-CRfGjuK8.js} +3 -3
- package/components/{PlayerAccountProductRestriction-CGHKOeA2.js → PlayerAccountProductRestriction-D-T-Q0i0.js} +3 -3
- package/components/{PlayerAccountReviewFrequency-DXsm9Kxb.js → PlayerAccountReviewFrequency-BX4ZOZO3.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-2dxK41fP.cjs → PlayerAccountReviewFrequency-DGPypWCz.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-DeOaTkpv.js → PlayerAccountReviewFrequency-D_523zeH.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-z-mtM_1-.cjs → PlayerAccountSelfExclusion-D_Dzr9Ef.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-Cb_ILwpM.js → PlayerAccountSelfExclusion-htAiRNd8.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-BB2W5ZW7.js → PlayerAccountSelfExclusion-n1ITbpIp.js} +2 -2
- package/components/{PlayerAccountTimeout-D1olNCwP.js → PlayerAccountTimeout-Cequkvkb.js} +3 -3
- package/components/{PlayerAccountTimeout-DTx32Y27.cjs → PlayerAccountTimeout-DwPRwAB-.cjs} +2 -2
- package/components/{PlayerAccountTimeout-Bj-E6XFS.js → PlayerAccountTimeout-y3hjOsXO.js} +3 -3
- package/components/PlayerAccountTransactionsHistory-BWyZi7Qp.cjs +4 -0
- package/components/{PlayerAccountTransactionsHistory-CIT7Xej7.js → PlayerAccountTransactionsHistory-CEeQtpnz.js} +1003 -955
- package/components/{PlayerAccountTransactionsHistory-DD8lUCUC.js → PlayerAccountTransactionsHistory-qNioNwOC.js} +925 -877
- package/components/PlayerActiveBonuses-B-qoHMOm.js +1236 -0
- package/components/PlayerActiveBonuses-BSvSlrZ6.cjs +4 -0
- package/components/PlayerActiveBonuses-DZvx3d46.js +1235 -0
- package/components/{PlayerBonusCard-Dn0RKPs4.js → PlayerBonusCard-CGxAG6z_.js} +2 -2
- package/components/{PlayerBonusCard-B5z-GvMk.js → PlayerBonusCard-Dx_OBRNE.js} +2 -2
- package/components/{PlayerBonusCard-BDcQdp_v.cjs → PlayerBonusCard-bni7RTt6.cjs} +1 -1
- package/components/{PlayerBonusHistory-rlVMVX9f.js → PlayerBonusHistory-BMGGF3HT.js} +852 -831
- package/components/{PlayerBonusHistory-D19ZrpTD.cjs → PlayerBonusHistory-BgH_4BdX.cjs} +130 -130
- package/components/{PlayerBonusHistory-BWdX6yEb.js → PlayerBonusHistory-DMgFbVl0.js} +853 -832
- package/components/{PlayerChangePassword-C2uXLba1.js → PlayerChangePassword-BHxSpc5G.js} +1 -1
- package/components/{PlayerChangePassword-Babx74Qz.js → PlayerChangePassword-DRMobu_o.js} +1 -1
- package/components/{PlayerChangePassword-D9rff_O8.cjs → PlayerChangePassword-DUDCCpZQ.cjs} +1 -1
- package/components/{PlayerDeposit-C_LvjcPO.js → PlayerDeposit-BSPlkbCR.js} +1 -1
- package/components/{PlayerDeposit-DeqWaDXm.cjs → PlayerDeposit-CU_WPuaJ.cjs} +1 -1
- package/components/{PlayerDeposit-B7wB3hII.js → PlayerDeposit-kIpXr91P.js} +1 -1
- package/components/{PlayerGamingHistory-C159EZF4.js → PlayerGamingHistory-Ceodzwlv.js} +3 -3
- package/components/{PlayerGamingHistory-BSWmvfmc.js → PlayerGamingHistory-Whp9v4r2.js} +3 -3
- package/components/{PlayerGamingHistory-DTp2JQtN.cjs → PlayerGamingHistory-xT3Cuw9x.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-DRxJ3qnE.js → PlayerPendingWithdrawals-BkfQTAX2.js} +1 -1
- package/components/{PlayerPendingWithdrawals-cjjcNcLB.js → PlayerPendingWithdrawals-C-1A4NRP.js} +1 -1
- package/components/{PlayerPendingWithdrawals-DutlOo-8.cjs → PlayerPendingWithdrawals-C-DRF1Pn.cjs} +1 -1
- package/components/{PlayerProfileInfo-50LTi6uq.js → PlayerProfileInfo-CUjvJ919.js} +2 -2
- package/components/{PlayerProfileInfo-Dyn8AL9W.cjs → PlayerProfileInfo-Co9JIdI5.cjs} +1 -1
- package/components/{PlayerProfileInfo-preS3v9N.js → PlayerProfileInfo-nQ2Spv3N.js} +2 -2
- package/components/{PlayerRealityCheck-DpHvkjgl.js → PlayerRealityCheck-C0qdHoGc.js} +1 -1
- package/components/{PlayerRealityCheck-CFnr2ylO.cjs → PlayerRealityCheck-DR3Kl9Kf.cjs} +1 -1
- package/components/{PlayerRealityCheck-Siu4Zaz0.js → PlayerRealityCheck-WlO0MuEq.js} +1 -1
- package/components/{PlayerTransactionHistory-dUBMwEUL.js → PlayerTransactionHistory-BZsT4POG.js} +1 -1
- package/components/{PlayerTransactionHistory-Becw5cxg.js → PlayerTransactionHistory-D8RHvojV.js} +1 -1
- package/components/{PlayerTransactionHistory-2A6UCz-6.cjs → PlayerTransactionHistory-DRqdB9PQ.cjs} +1 -1
- package/components/{PlayerWithdrawal-4XJRPp_K.cjs → PlayerWithdrawal-BFZYwuih.cjs} +1 -1
- package/components/{PlayerWithdrawal-IZ2Q7Z13.js → PlayerWithdrawal-BHmpUEzV.js} +1 -1
- package/components/{PlayerWithdrawal-BT8URDyz.js → PlayerWithdrawal-D3O0Lku7.js} +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/PlayerAccountTransactionsHistory-Bhp_1aDC.cjs +0 -4
- package/components/PlayerActiveBonuses-B6TzjH6T.js +0 -1215
- package/components/PlayerActiveBonuses-Ddu-M9d-.js +0 -1214
- package/components/PlayerActiveBonuses-pj2yCTEZ.cjs +0 -4
|
@@ -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-BcBfTKzG.cjs");function A(o,t){e.addMessages(o,t)}function N(o){e.$locale.set(o)}const z={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function q(o){e.append_styles(o,"svelte-8g0wf4",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013e5c));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px);text-align:center}.GeneralConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22b04e), color-mix(in srgb, var(--emw--color-secondary, #e98b0f) 80%, black 20%), #22b04e);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GeneralConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013e5c) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GeneralConfirmationMobileWrapper{border:none;padding:0}')}const H=o=>({}),B=o=>({});function R(o){let t,n;return{c(){t=e.svg_element("svg"),n=e.svg_element("path"),e.attr(n,"stroke-linecap","round"),e.attr(n,"stroke-linejoin","round"),e.attr(n,"stroke-width","2"),e.attr(n,"d","M6 18L18 6M6 6l12 12"),e.attr(t,"class","w-6 h-6"),e.attr(t,"fill","none"),e.attr(t,"stroke","currentColor"),e.attr(t,"viewBox","0 0 24 24"),e.attr(t,"xmlns","http://www.w3.org/2000/svg")},m(a,i){e.insert(a,t,i),e.append(t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function S(o){let t,n,a;return{c(){t=e.element("div"),n=e.element("h2"),a=e.text(o[1]),e.attr(t,"class","GeneralConfirmationTitle")},m(i,f){e.insert(i,t,f),e.append(t,n),e.append(n,a)},p(i,f){f&2&&e.set_data(a,i[1])},d(i){i&&e.detach(t)}}}function j(o){let t,n=o[4]("cancel")+"",a,i,f;return{c(){t=e.element("button"),a=e.text(n),e.attr(t,"class","GeneralCancelButton")},m(d,C){e.insert(d,t,C),e.append(t,a),i||(f=e.listen(t,"click",o[18]),i=!0)},p(d,C){C&16&&n!==(n=d[4]("cancel")+"")&&e.set_data(a,n)},d(d){d&&e.detach(t),i=!1,f()}}}function U(o){let t,n,a,i,f,d,C,g,v,h,x=o[4]("confirm")+"",_,u,y,k;const w=o[17].close,c=e.create_slot(w,o,o[16],B),p=c||R();let s=o[1]&&S(o),m=o[2]&&j(o);return{c(){t=e.element("div"),n=e.element("div"),a=e.element("span"),p&&p.c(),i=e.space(),s&&s.c(),f=e.space(),d=e.element("div"),C=e.space(),g=e.element("div"),m&&m.c(),v=e.space(),h=e.element("button"),_=e.text(x),e.attr(a,"class","ModalCloseBtn"),e.attr(a,"role","button"),e.attr(d,"class","GeneralConfirmationContent"),e.attr(h,"class","GeneralConfirmButton"),e.attr(g,"class","GeneralConfirmationControlArea "+(o[5]?"GeneralConfirmationControlAreaMobile":"")),e.attr(n,"class","GeneralConfirmationContainer "+(o[5]?"GeneralConfirmationContainerMobile":"")),e.attr(t,"class","GeneralConfirmationWrapper "+(o[5]?"GeneralConfirmationMobileWrapper":""))},m(l,b){e.insert(l,t,b),e.append(t,n),e.append(n,a),p&&p.m(a,null),e.append(n,i),s&&s.m(n,null),e.append(n,f),e.append(n,d),d.innerHTML=o[0],e.append(n,C),e.append(n,g),m&&m.m(g,null),e.append(g,v),e.append(g,h),e.append(h,_),o[20](t),u=!0,y||(k=[e.listen(a,"click",o[6]),e.listen(h,"click",o[19])],y=!0)},p(l,[b]){c&&c.p&&(!u||b&65536)&&e.update_slot_base(c,w,l,l[16],u?e.get_slot_changes(w,l[16],b,H):e.get_all_dirty_from_scope(l[16]),B),l[1]?s?s.p(l,b):(s=S(l),s.c(),s.m(n,f)):s&&(s.d(1),s=null),(!u||b&1)&&(d.innerHTML=l[0]),l[2]?m?m.p(l,b):(m=j(l),m.c(),m.m(g,v)):m&&(m.d(1),m=null),(!u||b&16)&&x!==(x=l[4]("confirm")+"")&&e.set_data(_,x)},i(l){u||(e.transition_in(p,l),u=!0)},o(l){e.transition_out(p,l),u=!1},d(l){l&&e.detach(t),p&&p.d(l),s&&s.d(),m&&m.d(),o[20](null),y=!1,e.run_all(k)}}}function D(o,t,n){let a;e.component_subscribe(o,e.$format,r=>n(4,a=r));let{$$slots:i={},$$scope:f}=t,{modaltext:d="Are you sure that you want to perform this action?"}=t,{modaltitle:C=""}=t,{hascancelbutton:g=!1}=t,{modalconfirmevent:v=""}=t,{modalcancelevent:h=""}=t,{modalconfirmdata:x={}}=t,{lang:_="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:y=""}=t,{translationurl:k=""}=t,{mbsource:w}=t,c,p,s=window.navigator.userAgent,m=e.getDevice(s)!=="PC";const l=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},b=r=>{r==="confirm"&&v&&c.dispatchEvent(new CustomEvent(v,{detail:x,bubbles:!0,composed:!0})),r==="cancel"&&h&&c.dispatchEvent(new CustomEvent(h,{bubbles:!0,composed:!0})),l()},T=()=>{fetch(k).then(G=>G.json()).then(G=>{Object.keys(G).forEach(M=>{A(M,G[M])})}).catch(G=>{console.log(G)})};Object.keys(z).forEach(r=>{A(r,z[r])});const E=()=>{N(_)};e.onMount(()=>()=>{});const O=()=>b("cancel"),P=()=>b("confirm");function W(r){e.binding_callbacks[r?"unshift":"push"](()=>{c=r,n(3,c)})}return o.$$set=r=>{"modaltext"in r&&n(0,d=r.modaltext),"modaltitle"in r&&n(1,C=r.modaltitle),"hascancelbutton"in r&&n(2,g=r.hascancelbutton),"modalconfirmevent"in r&&n(8,v=r.modalconfirmevent),"modalcancelevent"in r&&n(9,h=r.modalcancelevent),"modalconfirmdata"in r&&n(10,x=r.modalconfirmdata),"lang"in r&&n(11,_=r.lang),"clientstyling"in r&&n(12,u=r.clientstyling),"clientstylingurl"in r&&n(13,y=r.clientstylingurl),"translationurl"in r&&n(14,k=r.translationurl),"mbsource"in r&&n(15,w=r.mbsource),"$$scope"in r&&n(16,f=r.$$scope)},o.$$.update=()=>{o.$$.dirty&2049&&d&&_&&E(),o.$$.dirty&4104&&u&&c&&e.setClientStyling(c,u),o.$$.dirty&8200&&y&&c&&e.setClientStylingURL(c,y),o.$$.dirty&32776&&w&&c&&e.setStreamStyling(c,`${w}.Style`,p),o.$$.dirty&16384&&k&&T()},[d,C,g,c,a,m,l,b,v,h,x,_,u,y,k,w,f,i,O,P,W]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,D,U,e.safe_not_equal,{modaltext:0,modaltitle:1,hascancelbutton:2,modalconfirmevent:8,modalcancelevent:9,modalconfirmdata:10,lang:11,clientstyling:12,clientstylingurl:13,translationurl:14,mbsource:15},q)}get modaltext(){return this.$$.ctx[0]}set modaltext(t){this.$$set({modaltext:t}),e.flush()}get modaltitle(){return this.$$.ctx[1]}set modaltitle(t){this.$$set({modaltitle:t}),e.flush()}get hascancelbutton(){return this.$$.ctx[2]}set hascancelbutton(t){this.$$set({hascancelbutton:t}),e.flush()}get modalconfirmevent(){return this.$$.ctx[8]}set modalconfirmevent(t){this.$$set({modalconfirmevent:t}),e.flush()}get modalcancelevent(){return this.$$.ctx[9]}set modalcancelevent(t){this.$$set({modalcancelevent:t}),e.flush()}get modalconfirmdata(){return this.$$.ctx[10]}set modalconfirmdata(t){this.$$set({modalconfirmdata:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(L,{modaltext:{},modaltitle:{},hascancelbutton:{type:"Boolean"},modalconfirmevent:{},modalcancelevent:{},modalconfirmdata:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},["close"],[],!0);exports.default=L;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as F, $ as J, S as K, i as Q, s as X, f as h, b as Y, Z as $, d as S, v as ee, U as te, V as ne, _ as oe, a0 as ae, a1 as re, t as E, c as j, m as d, w as L, e as _, p as B, u as T, r as i, g as ie, h as le, o as se, j as ce, n as me, x as W, z as fe, A as de, B as ue, C as be, D as ge } from "./PlayerAccountController-
|
|
1
|
+
import { a as F, $ as J, S as K, i as Q, s as X, f as h, b as Y, Z as $, d as S, v as ee, U as te, V as ne, _ as oe, a0 as ae, a1 as re, t as E, c as j, m as d, w as L, e as _, p as B, u as T, r as i, g as ie, h as le, o as se, j as ce, n as me, x as W, z as fe, A as de, B as ue, C as be, D as ge } from "./PlayerAccountController-ByLZN610.js";
|
|
2
2
|
function N(n, e) {
|
|
3
3
|
F(n, e);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as F, $ as J, S as K, i as Q, s as X, f as h, b as Y, Z as $, d as S, w as ee, U as te, V as ne, _ as oe, a0 as ae, a1 as re, u as E, e as j, p as d, x as L, g as _, q as z, v as T, t as i, h as ie, j as le, o as se, k as ce, n as me, y as W, B as fe, C as de, D as ue, c as be, A as ge } from "./PlayerAccountController-
|
|
1
|
+
import { a as F, $ as J, S as K, i as Q, s as X, f as h, b as Y, Z as $, d as S, w as ee, U as te, V as ne, _ as oe, a0 as ae, a1 as re, u as E, e as j, p as d, x as L, g as _, q as z, v as T, t as i, h as ie, j as le, o as se, k as ce, n as me, y as W, B as fe, C as de, D as ue, c as be, A as ge } from "./PlayerAccountController-Dfff9xAu.js";
|
|
2
2
|
function N(n, e) {
|
|
3
3
|
F(n, e);
|
|
4
4
|
}
|
|
@@ -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-ByLZN610.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-BKx51Zaq.js").then(({ default: e }) => {
|
|
57
57
|
!customElements.get("general-logout") && customElements.define("general-logout", e.element);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-CwmiXx7L.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-eoaVkxXT.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-BcBfTKzG.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-VTkKJB8c.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-Dfff9xAu.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-mhvPXdQS.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 { a3 as j, S as A, i as B, s as P, f, b as U, d as L, U as w, V as m, X as q, W as H, c as z, L as N, o as R, Z as V, a4 as S, P as X, _ as Z, a0 as F, a1 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-
|
|
1
|
+
import { a3 as j, S as A, i as B, s as P, f, b as U, d as L, U as w, V as m, X as q, W as H, c as z, L as N, o as R, Z as V, a4 as S, P as X, _ as Z, a0 as F, a1 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-ByLZN610.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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as B, S as P, i as U, s as j, f, b as q, d as L, U as w, V as m, X as A, W as H, e as D, L as N, o as R, Z as V, a4 as S, P as X, _ as Z, a0 as p, a1 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-
|
|
1
|
+
import { a3 as B, S as P, i as U, s as j, f, b as q, d as L, U as w, V as m, X as A, W as H, e as D, L as N, o as R, Z as V, a4 as S, P as X, _ as Z, a0 as p, a1 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-Dfff9xAu.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 {
|
|
@@ -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-BcBfTKzG.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-COmR0LZp.js → PlayerAccountNotifications-BYCwuefx.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-Dfff9xAu.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-BcBfTKzG.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;
|
package/components/{PlayerAccountNotifications-D8Jgov2k.js → PlayerAccountNotifications-yHt4nfBt.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-ByLZN610.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}}');
|