@everymatrix/player-account-controller-nd 1.0.69 → 1.0.71

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.
Files changed (59) hide show
  1. package/components/GeneralLogout-CA9TEW-a.cjs +8 -0
  2. package/components/GeneralLogout-DtE4YABi.js +4829 -0
  3. package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
  4. package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
  6. package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
  7. package/components/PlayerAccountClosureNd-B3Zq9k2d.cjs +1 -0
  8. package/components/PlayerAccountClosureNd-CHDX6d_o.js +339 -0
  9. package/components/PlayerAccountControllerNd-DIStkt_S.js +6166 -0
  10. package/components/PlayerAccountControllerNd-zAl7gjSL.cjs +1 -0
  11. package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
  12. package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
  24. package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2Nd-B02Mw4lh.js +844 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2Nd-BiSwua8y.cjs +1 -0
  27. package/components/PlayerAccountMenuNd-DU5_NtH9.js +587 -0
  28. package/components/PlayerAccountMenuNd-DwURI2AG.cjs +1 -0
  29. package/components/PlayerAccountModal-Blsborh1.js +198 -0
  30. package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
  31. package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
  32. package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
  33. package/components/PlayerAccountSelfExclusionNd-BPADa27T.js +15842 -0
  34. package/components/PlayerAccountSelfExclusionNd-DxHpS1Fj.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
  36. package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
  37. package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
  38. package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
  39. package/components/PlayerBonusCard-665KSNoF.js +555 -0
  40. package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
  41. package/components/PlayerBonusHistory-BIQHNNEB.js +824 -0
  42. package/components/PlayerBonusHistory-DkpMW9_f.cjs +1 -0
  43. package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
  44. package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
  45. package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
  46. package/components/PlayerDeposit-CqgNmu8i.js +395 -0
  47. package/components/PlayerGamingHistory-BAPUDgf0.cjs +1 -0
  48. package/components/PlayerGamingHistory-C4j3T8xX.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
  50. package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
  51. package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
  52. package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
  53. package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
  54. package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
  55. package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
  56. package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
  57. package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
  58. package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
  59. package/package.json +23 -22
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-CA9TEW-a.cjs");function E(l,t){e.addMessages(l,t)}function X(l){e.$locale.set(l)}const L={en:{title:"My Account"},"zh-hk":{title:"我的帳戶"},fr:{title:"Mon compte"},tr:{title:"Hesabım"},ro:{title:"Contul meu"},es:{title:"Mi Cuenta"},pt:{title:"Minha Conta"},hr:{title:"Moj račun"},"pt-br":{title:"Minha conta"},"es-mx":{title:"Mi cuenta"}};if(typeof window!="undefined"){let l=function(t){return function(...n){try{return t.apply(this,n)}catch(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-CA9TEW-a.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Z(l){e.append_styles(l,"svelte-1snu0cv",'.PlayerAccountMenuContainer.svelte-1snu0cv.svelte-1snu0cv{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));position:relative;height:100vh;display:flex;flex-direction:column;padding:0 15px}.PlayerAccountMenuContainer.svelte-1snu0cv .PlayerAccountMenuItemWrapper.svelte-1snu0cv{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer.svelte-1snu0cv .PlayerAccountMenuItemWrapper span.svelte-1snu0cv{display:flex;align-items:center}.PlayerAccountMenuHeader.svelte-1snu0cv.svelte-1snu0cv{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader.svelte-1snu0cv .PlayerAccountMenuUser.svelte-1snu0cv{margin-bottom:5px;font-size:18px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountMenuHeader.svelte-1snu0cv .PlayerAccountMenuEmail.svelte-1snu0cv{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader.svelte-1snu0cv p.svelte-1snu0cv{font-weight:300}.PlayerAccountMenuHeaderMobile.svelte-1snu0cv.svelte-1snu0cv{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMenuItemBox.svelte-1snu0cv.svelte-1snu0cv{padding:16px 20px;font-size:16px;line-height:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox.svelte-1snu0cv.svelte-1snu0cv:hover{transition:all 0.3s linear;background:rgba(35, 176, 78, 0.3);border:2px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);color:var(--emfe-w-color-white, #FFFFFF)}.PlayerAccountMenuItemBox.svelte-1snu0cv .PlayerAccountMenuItemTitle.svelte-1snu0cv{margin-left:20px}.PlayerAccountMenuItemBox.svelte-1snu0cv .PlayerAccountMenuItemIcon.svelte-1snu0cv{width:20px;padding-top:unset}.PlayerAccountMenuItemBox.svelte-1snu0cv .PlayerAccountMenuItemIconMobile.svelte-1snu0cv{width:30px;padding-top:15px}.PlayerAccountMenuList.svelte-1snu0cv.svelte-1snu0cv::-webkit-scrollbar{width:6px}.PlayerAccountMenuList.svelte-1snu0cv.svelte-1snu0cv::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList.svelte-1snu0cv.svelte-1snu0cv::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea.svelte-1snu0cv.svelte-1snu0cv{background-color:rgba(253, 40, 57, 0.3);color:var(--emfe-w-color-white, #FFFFFF);border-radius:var(--emw--border-radius-medium, 20px);width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox.svelte-1snu0cv.svelte-1snu0cv{background:rgba(35, 176, 78, 0.3);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border:2px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);transition:all 0.3s linear}.PlayerAccountMobileContainer.svelte-1snu0cv.svelte-1snu0cv{height:unset;padding:0}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuCategoryWrapper.svelte-1snu0cv{display:flex;align-items:center;gap:10px;margin-bottom:18px}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuCategoryTitle.svelte-1snu0cv{margin:0;font-weight:600}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuItemTitle.svelte-1snu0cv{margin-left:0;text-transform:capitalize;line-height:14px}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuEmail.svelte-1snu0cv{margin:0}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList.svelte-1snu0cv{display:flex;flex-direction:column;align-items:flex-start;margin:0px 15px}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-1snu0cv{background:rgba(35, 176, 78, 0.3);color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border:2px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #23B04E));border-radius:var(--emw--border-radius-medium, 20px);height:60px;margin:5px 0;align-items:flex-start;position:relative}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox.svelte-1snu0cv{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-1snu0cv{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemBox.svelte-1snu0cv::after{content:"";display:inline-block;width:15px;height:15px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2215%22 height=%2215%22 viewBox=%220 0 15 15%22%3E%3Cdefs%3E%3Cstyle%3E.aaa%7Bfill:var(--emfe-w-color-white,%20%23FFFFFF);%7D%3C/style%3E%3C/defs%3E%3Cg transform=%22translate(-20%20-158)%22%3E%3Cg transform=%22translate(20%20158)%22%3E%3Cpath class=%22aaa%22 d=%22M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z%22 transform=%22translate(15%2015)%20rotate(180)%22%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");background-size:contain;transform:scaleX(-1);background-repeat:no-repeat;position:absolute;right:15px;top:22px}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-1snu0cv{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-1snu0cv{font-size:16px;line-height:16px;font-weight:400;word-break:break-word;text-align:left;color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF))}.PlayerAccountMobileContainer.svelte-1snu0cv .PlayerAccountLogOutArea.svelte-1snu0cv{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuHeader.svelte-1snu0cv{padding:30px 40px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuCategoryTitle.svelte-1snu0cv{font-size:32px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuUser.svelte-1snu0cv{font-size:26px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuEmail.svelte-1snu0cv{font-size:20px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuList.svelte-1snu0cv{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon.svelte-1snu0cv{width:80px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemWrapper.svelte-1snu0cv{gap:28px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle.svelte-1snu0cv{font-size:24px}.PlayerAccountTabletContainer.svelte-1snu0cv .PlayerAccountLogOutArea.svelte-1snu0cv{right:54px;top:72px}')}function T(l,t,n){const a=l.slice();return a[37]=t[n],a}function Q(l){let t,n,a,r,m,u,d,f,_,A,y,b,h=l[10]&&J(l),v=l[10]&&K(l),i=e.ensure_array_like(l[5]),o=[];for(let c=0;c<i.length;c+=1)o[c]=B(T(l,i,c));let w=!l[10]&&Y(l);return{c(){t=e.element("div"),n=e.element("div"),h&&h.c(),a=e.space(),r=e.element("p"),m=e.text(l[7]),u=e.space(),d=e.element("p"),f=e.text(l[8]),_=e.space(),v&&v.c(),A=e.space(),y=e.element("div");for(let c=0;c<o.length;c+=1)o[c].c();b=e.space(),w&&w.c(),e.attr(r,"class","PlayerAccountMenuUser svelte-1snu0cv"),e.attr(d,"class","PlayerAccountMenuEmail svelte-1snu0cv"),e.attr(n,"class","PlayerAccountMenuHeader "+(l[10]?"PlayerAccountMenuHeaderMobile":"")+" svelte-1snu0cv"),e.attr(y,"class","PlayerAccountMenuList svelte-1snu0cv"),e.attr(t,"class","PlayerAccountMenuContainer "+(l[10]?"PlayerAccountMobileContainer":"")+" "+(l[11].matches&&l[10]?"PlayerAccountTabletContainer":"")+" svelte-1snu0cv")},m(c,P){e.insert(c,t,P),e.append(t,n),h&&h.m(n,null),e.append(n,a),e.append(n,r),e.append(r,m),e.append(n,u),e.append(n,d),e.append(d,f),e.append(n,_),v&&v.m(n,null),e.append(t,A),e.append(t,y);for(let p=0;p<o.length;p+=1)o[p]&&o[p].m(y,null);e.append(t,b),w&&w.m(t,null)},p(c,P){if(c[10]&&h.p(c,P),P[0]&128&&e.set_data(m,c[7]),P[0]&256&&e.set_data(f,c[8]),c[10]&&v.p(c,P),P[0]&5216){i=e.ensure_array_like(c[5]);let p;for(p=0;p<i.length;p+=1){const x=T(c,i,p);o[p]?o[p].p(x,P):(o[p]=B(x),o[p].c(),o[p].m(y,null))}for(;p<o.length;p+=1)o[p].d(1);o.length=i.length}c[10]||w.p(c,P)},d(c){c&&e.detach(t),h&&h.d(),v&&v.d(),e.destroy_each(o,c),w&&w.d()}}}function J(l){let t,n,a,r,m,u,d,f,_,A,y=l[9]("title")+"",b,h,v;return{c(){t=e.element("div"),n=e.svg_element("svg"),a=e.svg_element("defs"),r=e.svg_element("style"),m=e.text(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e.svg_element("g"),d=e.svg_element("g"),f=e.svg_element("path"),_=e.space(),A=e.element("h3"),b=e.text(y),e.attr(f,"class","aaa"),e.attr(f,"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(f,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(A,"class","PlayerAccountMenuCategoryTitle svelte-1snu0cv"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper svelte-1snu0cv")},m(i,o){e.insert(i,t,o),e.append(t,n),e.append(n,a),e.append(a,r),e.append(r,m),e.append(n,u),e.append(u,d),e.append(d,f),e.append(t,_),e.append(t,A),e.append(A,b),h||(v=[e.listen(n,"click",l[13]),e.listen(A,"click",l[13])],h=!0)},p(i,o){o[0]&512&&y!==(y=i[9]("title")+"")&&e.set_data(b,y)},d(i){i&&e.detach(t),h=!1,e.run_all(v)}}}function K(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea svelte-1snu0cv")},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])},d(a){a&&e.detach(t)}}}function B(l){let t,n,a,r,m,u,d=l[37].label+"",f,_,A,y,b;function h(){return l[22](l[37])}return{c(){t=e.element("div"),n=e.element("p"),a=e.element("img"),m=e.space(),u=e.element("span"),f=e.text(d),_=e.space(),e.attr(a,"class","PlayerAccountMenuItemIcon "+(l[10]?"PlayerAccountMenuItemIconMobile":"")+" svelte-1snu0cv"),e.src_url_equal(a.src,r=l[37].img)||e.attr(a,"src",r),e.attr(u,"class","PlayerAccountMenuItemTitle svelte-1snu0cv"),e.attr(n,"class","PlayerAccountMenuItemWrapper svelte-1snu0cv"),e.attr(t,"class",A="PlayerAccountMenuItemBox "+(l[6]===l[37].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-1snu0cv")},m(v,i){e.insert(v,t,i),e.append(t,n),e.append(n,a),e.append(n,m),e.append(n,u),e.append(u,f),e.append(t,_),y||(b=e.listen(t,"click",h),y=!0)},p(v,i){l=v,i[0]&32&&!e.src_url_equal(a.src,r=l[37].img)&&e.attr(a,"src",r),i[0]&32&&d!==(d=l[37].label+"")&&e.set_data(f,d),i[0]&96&&A!==(A="PlayerAccountMenuItemBox "+(l[6]===l[37].id&&!l[10]?"PlayerAccountMenuActiveItemBox":"")+" svelte-1snu0cv")&&e.attr(t,"class",A)},d(v){v&&e.detach(t),y=!1,b()}}}function Y(l){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",l[1]),e.set_custom_element_data(n,"session",l[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",l[2]),e.set_custom_element_data(n,"clientstylingurl",l[3]),e.attr(t,"class","PlayerAccountLogOutArea svelte-1snu0cv")},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])},d(a){a&&e.detach(t)}}}function $(l){let t;function n(m,u){return Q}let r=n()(l);return{c(){t=e.element("div"),r.c()},m(m,u){e.insert(m,t,u),r.m(t,null),l[23](t)},p(m,u){r.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),r.d(),l[23](null)}}}function ee(l,t,n){let a;e.component_subscribe(l,e.$format,s=>n(9,a=s));let{endpoint:r=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:d=""}=t,{playerid:f=""}=t,{lang:_="en"}=t,{selecteditem:A=""}=t,{userroles:y=""}=t,{clientstyling:b=""}=t,{clientstylingurl:h=""}=t,{translationurl:v=""}=t,{activemenuitem:i=""}=t,o,w=[],c,P=window.navigator.userAgent,p=e.getDevice(P)!=="PC",x="",C="";const z=window.matchMedia("(min-width: 768px)"),S=()=>{fetch(v).then(g=>g.json()).then(g=>{Object.keys(g).forEach(M=>{E(M,g[M])})}).catch(g=>{console.error(g)})};Object.keys(L).forEach(s=>{E(s,L[s])});const F=s=>{if(s.data)switch(s.data.type){case"AccountMenuDetails":availableMenuItemsArray=s.data.accountMenuInfo;break;case"UserSessionID":n(0,d=s.data.session);break}},W=()=>{let s=e.getDevice(P);if(s)return s==="PC"?"dk":"mtWeb"},D=()=>{const s=new URL(`${m}/${_}/profile-menu?env=${u}`);s.searchParams.append("device",W()),fetch(s.href).then(g=>g.json()).then(g=>{n(5,w=g),k()}).catch(g=>{console.error("Error getting menu items",g)})},O=()=>{let s=new URL(`${r}/v1/player/${f}/profile`);s.searchParams.append("userRoles",y);let g={method:"GET",headers:{"X-SessionID":d}};fetch(s.href,g).then(M=>M.json()).then(M=>{n(7,x=M.username),n(8,C=M.email)},M=>{console.error(M)})},I=s=>{window.postMessage({type:"ChangeAccountPage",page:s},window.location.href),n(6,c=s.id)},k=()=>{var s;n(6,c=(s=w.find(g=>g.path.includes(i)))==null?void 0:s.id)},U=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},j=()=>{X(_)},R=()=>{O()},q=()=>{let s=document.createElement("style");s.innerHTML=b,o.appendChild(s)},G=()=>{let s=new URL(h),g=document.createElement("style");fetch(s.href).then(M=>M.text()).then(M=>{g.innerHTML=M,setTimeout(()=>{o.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",F,!1),()=>{window.removeEventListener("message",F)}));const N=s=>I(s);function V(s){e.binding_callbacks[s?"unshift":"push"](()=>{o=s,n(4,o)})}return l.$$set=s=>{"endpoint"in s&&n(1,r=s.endpoint),"cmsendpoint"in s&&n(14,m=s.cmsendpoint),"env"in s&&n(15,u=s.env),"session"in s&&n(0,d=s.session),"playerid"in s&&n(16,f=s.playerid),"lang"in s&&n(17,_=s.lang),"selecteditem"in s&&n(18,A=s.selecteditem),"userroles"in s&&n(19,y=s.userroles),"clientstyling"in s&&n(2,b=s.clientstyling),"clientstylingurl"in s&&n(3,h=s.clientstylingurl),"translationurl"in s&&n(20,v=s.translationurl),"activemenuitem"in s&&n(21,i=s.activemenuitem)},l.$$.update=()=>{l.$$.dirty[0]&131072&&_&&j(),l.$$.dirty[0]&196611&&r&&d&&f&&_&&R(),l.$$.dirty[0]&180224&&m&&_&&u&&D(),l.$$.dirty[0]&2097152&&i&&k(),l.$$.dirty[0]&24&&h&&o&&G(),l.$$.dirty[0]&20&&b&&o&&q(),l.$$.dirty[0]&1048576&&v&&S()},[d,r,b,h,o,w,c,x,C,a,p,z,I,U,m,u,f,_,A,y,v,i,N,V]}class H extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ee,$,e.safe_not_equal,{endpoint:1,cmsendpoint:14,env:15,session:0,playerid:16,lang:17,selecteditem:18,userroles:19,clientstyling:2,clientstylingurl:3,translationurl:20,activemenuitem:21},Z,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get cmsendpoint(){return this.$$.ctx[14]}set cmsendpoint(t){this.$$set({cmsendpoint:t}),e.flush()}get env(){return this.$$.ctx[15]}set env(t){this.$$set({env:t}),e.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[16]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get selecteditem(){return this.$$.ctx[18]}set selecteditem(t){this.$$set({selecteditem: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()}}e.create_custom_element(H,{endpoint:{},cmsendpoint:{},env:{},session:{},playerid:{},lang:{},selecteditem:{},userroles:{},clientstyling:{},clientstylingurl:{},translationurl:{},activemenuitem:{}},[],[],!0);exports.default=H;
@@ -0,0 +1,198 @@
1
+ import { Y as T, S as B, i as F, f as d, c as P, s as R, b as U, B as W, k as S, H as y, I as m, Z as j, p as k, v as q, D as A, e as h, g as f, l as p, E as G, F as I, G as N, P as Y, _ as v, a0 as Z, x as M } from "./GeneralLogout-DtE4YABi.js";
2
+ function z(t, { delay: e = 0, duration: i = 400, easing: n = T } = {}) {
3
+ const s = +getComputedStyle(t).opacity;
4
+ return {
5
+ delay: e,
6
+ duration: i,
7
+ easing: n,
8
+ css: (o) => `opacity: ${o * s}`
9
+ };
10
+ }
11
+ function J(t) {
12
+ U(t, "svelte-eulycz", ".svelte-eulycz,.svelte-eulycz::before,.svelte-eulycz::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-eulycz{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}");
13
+ }
14
+ function C(t) {
15
+ let e, i, n, s, o;
16
+ const c = (
17
+ /*#slots*/
18
+ t[7].default
19
+ ), r = A(
20
+ c,
21
+ t,
22
+ /*$$scope*/
23
+ t[6],
24
+ null
25
+ );
26
+ return {
27
+ c() {
28
+ e = h("div"), i = h("div"), n = h("div"), r && r.c(), f(n, "class", "ModalContainer svelte-eulycz"), f(i, "class", "ModalWindow svelte-eulycz"), f(i, "id", "Modal"), f(e, "class", "svelte-eulycz");
29
+ },
30
+ m(a, u) {
31
+ S(a, e, u), p(e, i), p(i, n), r && r.m(n, null), t[8](i), t[9](e), o = !0;
32
+ },
33
+ p(a, u) {
34
+ t = a, r && r.p && (!o || u & /*$$scope*/
35
+ 64) && G(
36
+ r,
37
+ c,
38
+ t,
39
+ /*$$scope*/
40
+ t[6],
41
+ o ? N(
42
+ c,
43
+ /*$$scope*/
44
+ t[6],
45
+ u,
46
+ null
47
+ ) : I(
48
+ /*$$scope*/
49
+ t[6]
50
+ ),
51
+ null
52
+ );
53
+ },
54
+ i(a) {
55
+ o || (y(r, a), a && Y(() => {
56
+ o && (s || (s = v(i, z, { transitionDuration: (
57
+ /*duration*/
58
+ t[1]
59
+ ) }, !0)), s.run(1));
60
+ }), o = !0);
61
+ },
62
+ o(a) {
63
+ m(r, a), a && (s || (s = v(i, z, { transitionDuration: (
64
+ /*duration*/
65
+ t[1]
66
+ ) }, !1)), s.run(0)), o = !1;
67
+ },
68
+ d(a) {
69
+ a && k(e), r && r.d(a), t[8](null), a && s && s.end(), t[9](null);
70
+ }
71
+ };
72
+ }
73
+ function K(t) {
74
+ let e, i, n = (
75
+ /*show*/
76
+ t[0] && C(t)
77
+ );
78
+ return {
79
+ c() {
80
+ n && n.c(), e = W();
81
+ },
82
+ m(s, o) {
83
+ n && n.m(s, o), S(s, e, o), i = !0;
84
+ },
85
+ p(s, [o]) {
86
+ /*show*/
87
+ s[0] ? n ? (n.p(s, o), o & /*show*/
88
+ 1 && y(n, 1)) : (n = C(s), n.c(), y(n, 1), n.m(e.parentNode, e)) : n && (Z(), m(n, 1, 1, () => {
89
+ n = null;
90
+ }), j());
91
+ },
92
+ i(s) {
93
+ i || (y(n), i = !0);
94
+ },
95
+ o(s) {
96
+ m(n), i = !1;
97
+ },
98
+ d(s) {
99
+ s && k(e), n && n.d(s);
100
+ }
101
+ };
102
+ }
103
+ function O(t, e, i) {
104
+ let { $$slots: n = {}, $$scope: s } = e, { show: o = !1 } = e, { duration: c = 350 } = e, { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, u, _;
105
+ const w = (l) => {
106
+ l.data.type == "ModalClosed" && i(0, o = !1), l.data.type === "ShowLimitsConfirmationModal" && (i(0, o = !0), window.postMessage({ type: "DisableScroll" }, window.location.href));
107
+ }, L = () => {
108
+ let l = document.createElement("style");
109
+ l.innerHTML = r, u.appendChild(l);
110
+ }, E = () => {
111
+ let l = new URL(a), b = document.createElement("style");
112
+ fetch(l.href).then((g) => g.text()).then((g) => {
113
+ b.innerHTML = g, setTimeout(
114
+ () => {
115
+ u.appendChild(b);
116
+ },
117
+ 1
118
+ );
119
+ });
120
+ };
121
+ q(() => (window.addEventListener("message", w, !1), () => {
122
+ window.removeEventListener("message", w);
123
+ }));
124
+ function D(l) {
125
+ M[l ? "unshift" : "push"](() => {
126
+ _ = l, i(3, _);
127
+ });
128
+ }
129
+ function H(l) {
130
+ M[l ? "unshift" : "push"](() => {
131
+ u = l, i(2, u);
132
+ });
133
+ }
134
+ return t.$$set = (l) => {
135
+ "show" in l && i(0, o = l.show), "duration" in l && i(1, c = l.duration), "clientstyling" in l && i(4, r = l.clientstyling), "clientstylingurl" in l && i(5, a = l.clientstylingurl), "$$scope" in l && i(6, s = l.$$scope);
136
+ }, t.$$.update = () => {
137
+ t.$$.dirty & /*clientstylingurl, customStylingContainer*/
138
+ 36 && a && u && E(), t.$$.dirty & /*clientstyling, customStylingContainer*/
139
+ 20 && r && u && L();
140
+ }, [
141
+ o,
142
+ c,
143
+ u,
144
+ _,
145
+ r,
146
+ a,
147
+ s,
148
+ n,
149
+ D,
150
+ H
151
+ ];
152
+ }
153
+ class Q extends B {
154
+ constructor(e) {
155
+ super(), F(
156
+ this,
157
+ e,
158
+ O,
159
+ K,
160
+ R,
161
+ {
162
+ show: 0,
163
+ duration: 1,
164
+ clientstyling: 4,
165
+ clientstylingurl: 5
166
+ },
167
+ J
168
+ );
169
+ }
170
+ get show() {
171
+ return this.$$.ctx[0];
172
+ }
173
+ set show(e) {
174
+ this.$$set({ show: e }), d();
175
+ }
176
+ get duration() {
177
+ return this.$$.ctx[1];
178
+ }
179
+ set duration(e) {
180
+ this.$$set({ duration: e }), d();
181
+ }
182
+ get clientstyling() {
183
+ return this.$$.ctx[4];
184
+ }
185
+ set clientstyling(e) {
186
+ this.$$set({ clientstyling: e }), d();
187
+ }
188
+ get clientstylingurl() {
189
+ return this.$$.ctx[5];
190
+ }
191
+ set clientstylingurl(e) {
192
+ this.$$set({ clientstylingurl: e }), d();
193
+ }
194
+ }
195
+ P(Q, { show: { type: "Boolean" }, duration: {}, clientstyling: {}, clientstylingurl: {} }, ["default"], [], !0);
196
+ export {
197
+ Q as default
198
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-CA9TEW-a.cjs");function h(n,{delay:e=0,duration:l=400,easing:i=t.identity}={}){const s=+getComputedStyle(n).opacity;return{delay:e,duration:l,easing:i,css:r=>`opacity: ${r*s}`}}function z(n){t.append_styles(n,"svelte-eulycz",".svelte-eulycz,.svelte-eulycz::before,.svelte-eulycz::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow.svelte-eulycz{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:100;top:0;left:0}")}function m(n){let e,l,i,s,r;const d=n[7].default,a=t.create_slot(d,n,n[6],null);return{c(){e=t.element("div"),l=t.element("div"),i=t.element("div"),a&&a.c(),t.attr(i,"class","ModalContainer svelte-eulycz"),t.attr(l,"class","ModalWindow svelte-eulycz"),t.attr(l,"id","Modal"),t.attr(e,"class","svelte-eulycz")},m(u,c){t.insert(u,e,c),t.append(e,l),t.append(l,i),a&&a.m(i,null),n[8](l),n[9](e),r=!0},p(u,c){n=u,a&&a.p&&(!r||c&64)&&t.update_slot_base(a,d,n,n[6],r?t.get_slot_changes(d,n[6],c,null):t.get_all_dirty_from_scope(n[6]),null)},i(u){r||(t.transition_in(a,u),u&&t.add_render_callback(()=>{r&&(s||(s=t.create_bidirectional_transition(l,h,{transitionDuration:n[1]},!0)),s.run(1))}),r=!0)},o(u){t.transition_out(a,u),u&&(s||(s=t.create_bidirectional_transition(l,h,{transitionDuration:n[1]},!1)),s.run(0)),r=!1},d(u){u&&t.detach(e),a&&a.d(u),n[8](null),u&&s&&s.end(),n[9](null)}}}function C(n){let e,l,i=n[0]&&m(n);return{c(){i&&i.c(),e=t.empty()},m(s,r){i&&i.m(s,r),t.insert(s,e,r),l=!0},p(s,[r]){s[0]?i?(i.p(s,r),r&1&&t.transition_in(i,1)):(i=m(s),i.c(),t.transition_in(i,1),i.m(e.parentNode,e)):i&&(t.group_outros(),t.transition_out(i,1,1,()=>{i=null}),t.check_outros())},i(s){l||(t.transition_in(i),l=!0)},o(s){t.transition_out(i),l=!1},d(s){s&&t.detach(e),i&&i.d(s)}}}function S(n,e,l){let{$$slots:i={},$$scope:s}=e,{show:r=!1}=e,{duration:d=350}=e,{clientstyling:a=""}=e,{clientstylingurl:u=""}=e,c,f;const y=o=>{o.data.type=="ModalClosed"&&l(0,r=!1),o.data.type==="ShowLimitsConfirmationModal"&&(l(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href))},w=()=>{let o=document.createElement("style");o.innerHTML=a,c.appendChild(o)},p=()=>{let o=new URL(u),g=document.createElement("style");fetch(o.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{c.appendChild(g)},1)})};t.onMount(()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}));function v(o){t.binding_callbacks[o?"unshift":"push"](()=>{f=o,l(3,f)})}function M(o){t.binding_callbacks[o?"unshift":"push"](()=>{c=o,l(2,c)})}return n.$$set=o=>{"show"in o&&l(0,r=o.show),"duration"in o&&l(1,d=o.duration),"clientstyling"in o&&l(4,a=o.clientstyling),"clientstylingurl"in o&&l(5,u=o.clientstylingurl),"$$scope"in o&&l(6,s=o.$$scope)},n.$$.update=()=>{n.$$.dirty&36&&u&&c&&p(),n.$$.dirty&20&&a&&c&&w()},[r,d,c,f,a,u,s,i,v,M]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,S,C,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5},z)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{}},["default"],[],!0);exports.default=b;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-CA9TEW-a.cjs");function P(o){t.append_styles(o,"svelte-pyshfk",'.PlayerAccountNotificationsContainer.svelte-pyshfk.svelte-pyshfk{padding:0 5px}.PlayerAccountNotificationBox.svelte-pyshfk.svelte-pyshfk{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader.svelte-pyshfk.svelte-pyshfk{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.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:16px;flex:2}.PlayerAccountNotificationText.svelte-pyshfk.svelte-pyshfk{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:14px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:24px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationText.svelte-pyshfk{font-size:16px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:60px;margin-right:20px}')}function _(o,n,a){const e=o.slice();return e[14]=n[a],e}function x(o){let n,a=t.ensure_array_like(o[1]),e=[];for(let i=0;i<a.length;i+=1)e[i]=b(_(o,a,i));return{c(){n=t.element("div");for(let i=0;i<e.length;i+=1)e[i].c();t.attr(n,"class","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":"")+" svelte-pyshfk"),t.attr(n,"part","PlayerAccountNotificationsContainer "+(o[2]&&o[3].matches?"PlayerAccountNotificationsTabletContainer":o[2]?"PlayerAccountNotificationsMobileContainer":""))},m(i,c){t.insert(i,n,c);for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(n,null)},p(i,c){if(c&2){a=t.ensure_array_like(i[1]);let l;for(l=0;l<a.length;l+=1){const f=_(i,a,l);e[l]?e[l].p(f,c):(e[l]=b(f),e[l].c(),e[l].m(n,null))}for(;l<e.length;l+=1)e[l].d(1);e.length=a.length}},d(i){i&&t.detach(n),t.destroy_each(e,i)}}}function b(o){let n,a,e,i,c,l,f,g=o[14].title+"",p,y,d,h=o[14].description+"",m;return{c(){n=t.element("div"),a=t.element("div"),e=t.element("img"),l=t.space(),f=t.element("p"),p=t.text(g),y=t.space(),d=t.element("p"),m=t.space(),t.attr(e,"class","PlayerAccountNotificationIcon svelte-pyshfk"),t.src_url_equal(e.src,i=o[14].icon)||t.attr(e,"src",i),t.attr(e,"alt",c=o[14].title),t.attr(f,"class","PlayerAccountNotificationTitle svelte-pyshfk"),t.attr(a,"class","PlayerAccountNotificationBoxHeader svelte-pyshfk"),t.attr(d,"class","PlayerAccountNotificationText svelte-pyshfk"),t.attr(n,"class","PlayerAccountNotificationBox svelte-pyshfk"),t.set_style(n,"background",o[14].backgroundColor)},m(r,u){t.insert(r,n,u),t.append(n,a),t.append(a,e),t.append(a,l),t.append(a,f),t.append(f,p),t.append(n,y),t.append(n,d),d.innerHTML=h,t.append(n,m)},p(r,u){u&2&&!t.src_url_equal(e.src,i=r[14].icon)&&t.attr(e,"src",i),u&2&&c!==(c=r[14].title)&&t.attr(e,"alt",c),u&2&&g!==(g=r[14].title+"")&&t.set_data(p,g),u&2&&h!==(h=r[14].description+"")&&(d.innerHTML=h),u&2&&t.set_style(n,"background",r[14].backgroundColor)},d(r){r&&t.detach(n)}}}function C(o){let n;function a(c,l){if(c[1].length)return x}let e=a(o),i=e&&e(o);return{c(){n=t.element("div"),i&&i.c()},m(c,l){t.insert(c,n,l),i&&i.m(n,null),o[7](n)},p(c,[l]){e===(e=a(c))&&i?i.p(c,l):(i&&i.d(1),i=e&&e(c),i&&(i.c(),i.m(n,null)))},i:t.noop,o:t.noop,d(c){c&&t.detach(n),i&&i.d(),o[7](null)}}}function w(o,n,a){let{customnotif:e=""}=n,{clientstyling:i=""}=n,{clientstylingurl:c=""}=n,l,f=window.navigator.userAgent,g=t.getDevice(f)!=="PC",p=[],y=[];const d=window.matchMedia("(min-width: 768px)"),h=s=>{if(s.data)switch(s.data.type){case"NotificationsDetails":a(1,p=s.data.notificationsInfo),p.forEach(k=>{y.length&&(k.backgroundColor=y[0],y.shift())});break}},m=()=>{e.replace(" ",""),y=e.split(",")},r=()=>{let s=document.createElement("style");s.innerHTML=i,l.appendChild(s)},u=()=>{let s=new URL(c),k=document.createElement("style");fetch(s.href).then(v=>v.text()).then(v=>{k.innerHTML=v,setTimeout(()=>{l.appendChild(k)},1)})};t.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function N(s){t.binding_callbacks[s?"unshift":"push"](()=>{l=s,a(0,l)})}return o.$$set=s=>{"customnotif"in s&&a(4,e=s.customnotif),"clientstyling"in s&&a(5,i=s.clientstyling),"clientstylingurl"in s&&a(6,c=s.clientstylingurl)},o.$$.update=()=>{o.$$.dirty&16&&e&&m(),o.$$.dirty&2&&p&&m(),o.$$.dirty&65&&c&&l&&u(),o.$$.dirty&33&&i&&l&&r()},[l,p,g,d,e,i,c,N]}class A extends t.SvelteComponent{constructor(n){super(),t.init(this,n,w,C,t.safe_not_equal,{customnotif:4,clientstyling:5,clientstylingurl:6},P)}get customnotif(){return this.$$.ctx[4]}set customnotif(n){this.$$set({customnotif:n}),t.flush()}get clientstyling(){return this.$$.ctx[5]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}}t.create_custom_element(A,{customnotif:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=A;
@@ -0,0 +1,222 @@
1
+ import { S as F, i as z, f as b, c as E, s as I, b as S, e as m, k as P, o as C, p as x, u as D, v as q, x as R, K as w, g as r, L as U, d as N, t as K, X as T, W as M, l as p, n as Q } from "./GeneralLogout-DtE4YABi.js";
2
+ function W(l) {
3
+ S(l, "svelte-pyshfk", '.PlayerAccountNotificationsContainer.svelte-pyshfk.svelte-pyshfk{padding:0 5px}.PlayerAccountNotificationBox.svelte-pyshfk.svelte-pyshfk{display:block;padding:20px;margin:20px auto 10px auto;border-radius:5px;width:100%;background:var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-white, #FFFFFF);box-sizing:border-box;text-decoration:none;word-break:break-all}.PlayerAccountNotificationBoxHeader.svelte-pyshfk.svelte-pyshfk{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.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:24px;margin-right:10px;flex:1}.PlayerAccountNotificationBoxHeader.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:16px;flex:2}.PlayerAccountNotificationText.svelte-pyshfk.svelte-pyshfk{margin:0;font-size:14px;font-weight:300}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:40px calc(100% - 40px)}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:14px}.PlayerAccountNotificationsMobileContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:30px;margin-right:10px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk.svelte-pyshfk{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));grid-gap:20px;padding:20px 40px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationBoxHeader.svelte-pyshfk{grid-template-columns:80px calc(100% - 80px)}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationTitle.svelte-pyshfk{font-size:24px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationText.svelte-pyshfk{font-size:16px}.PlayerAccountNotificationsTabletContainer.svelte-pyshfk .PlayerAccountNotificationIcon.svelte-pyshfk{width:60px;margin-right:20px}');
4
+ }
5
+ function H(l, i, o) {
6
+ const t = l.slice();
7
+ return t[14] = i[o], t;
8
+ }
9
+ function X(l) {
10
+ let i, o = w(
11
+ /*notificationsData*/
12
+ l[1]
13
+ ), t = [];
14
+ for (let e = 0; e < o.length; e += 1)
15
+ t[e] = B(H(l, o, e));
16
+ return {
17
+ c() {
18
+ i = m("div");
19
+ for (let e = 0; e < t.length; e += 1)
20
+ t[e].c();
21
+ r(i, "class", "PlayerAccountNotificationsContainer " + /*isMobile*/
22
+ (l[2] && /*mediaQuery*/
23
+ l[3].matches ? "PlayerAccountNotificationsTabletContainer" : (
24
+ /*isMobile*/
25
+ l[2] ? "PlayerAccountNotificationsMobileContainer" : ""
26
+ )) + " svelte-pyshfk"), r(i, "part", "PlayerAccountNotificationsContainer " + /*isMobile*/
27
+ (l[2] && /*mediaQuery*/
28
+ l[3].matches ? "PlayerAccountNotificationsTabletContainer" : (
29
+ /*isMobile*/
30
+ l[2] ? "PlayerAccountNotificationsMobileContainer" : ""
31
+ )));
32
+ },
33
+ m(e, a) {
34
+ P(e, i, a);
35
+ for (let n = 0; n < t.length; n += 1)
36
+ t[n] && t[n].m(i, null);
37
+ },
38
+ p(e, a) {
39
+ if (a & /*notificationsData*/
40
+ 2) {
41
+ o = w(
42
+ /*notificationsData*/
43
+ e[1]
44
+ );
45
+ let n;
46
+ for (n = 0; n < o.length; n += 1) {
47
+ const f = H(e, o, n);
48
+ t[n] ? t[n].p(f, a) : (t[n] = B(f), t[n].c(), t[n].m(i, null));
49
+ }
50
+ for (; n < t.length; n += 1)
51
+ t[n].d(1);
52
+ t.length = o.length;
53
+ }
54
+ },
55
+ d(e) {
56
+ e && x(i), U(t, e);
57
+ }
58
+ };
59
+ }
60
+ function B(l) {
61
+ let i, o, t, e, a, n, f, k = (
62
+ /*notification*/
63
+ l[14].title + ""
64
+ ), y, d, h, g = (
65
+ /*notification*/
66
+ l[14].description + ""
67
+ ), v;
68
+ return {
69
+ c() {
70
+ i = m("div"), o = m("div"), t = m("img"), n = N(), f = m("p"), y = K(k), d = N(), h = m("p"), v = N(), r(t, "class", "PlayerAccountNotificationIcon svelte-pyshfk"), T(t.src, e = /*notification*/
71
+ l[14].icon) || r(t, "src", e), r(t, "alt", a = /*notification*/
72
+ l[14].title), r(f, "class", "PlayerAccountNotificationTitle svelte-pyshfk"), r(o, "class", "PlayerAccountNotificationBoxHeader svelte-pyshfk"), r(h, "class", "PlayerAccountNotificationText svelte-pyshfk"), r(i, "class", "PlayerAccountNotificationBox svelte-pyshfk"), M(
73
+ i,
74
+ "background",
75
+ /*notification*/
76
+ l[14].backgroundColor
77
+ );
78
+ },
79
+ m(c, u) {
80
+ P(c, i, u), p(i, o), p(o, t), p(o, n), p(o, f), p(f, y), p(i, d), p(i, h), h.innerHTML = g, p(i, v);
81
+ },
82
+ p(c, u) {
83
+ u & /*notificationsData*/
84
+ 2 && !T(t.src, e = /*notification*/
85
+ c[14].icon) && r(t, "src", e), u & /*notificationsData*/
86
+ 2 && a !== (a = /*notification*/
87
+ c[14].title) && r(t, "alt", a), u & /*notificationsData*/
88
+ 2 && k !== (k = /*notification*/
89
+ c[14].title + "") && Q(y, k), u & /*notificationsData*/
90
+ 2 && g !== (g = /*notification*/
91
+ c[14].description + "") && (h.innerHTML = g), u & /*notificationsData*/
92
+ 2 && M(
93
+ i,
94
+ "background",
95
+ /*notification*/
96
+ c[14].backgroundColor
97
+ );
98
+ },
99
+ d(c) {
100
+ c && x(i);
101
+ }
102
+ };
103
+ }
104
+ function j(l) {
105
+ let i;
106
+ function o(a, n) {
107
+ if (
108
+ /*notificationsData*/
109
+ a[1].length
110
+ ) return X;
111
+ }
112
+ let t = o(l), e = t && t(l);
113
+ return {
114
+ c() {
115
+ i = m("div"), e && e.c();
116
+ },
117
+ m(a, n) {
118
+ P(a, i, n), e && e.m(i, null), l[7](i);
119
+ },
120
+ p(a, [n]) {
121
+ t === (t = o(a)) && e ? e.p(a, n) : (e && e.d(1), e = t && t(a), e && (e.c(), e.m(i, null)));
122
+ },
123
+ i: C,
124
+ o: C,
125
+ d(a) {
126
+ a && x(i), e && e.d(), l[7](null);
127
+ }
128
+ };
129
+ }
130
+ function G(l, i, o) {
131
+ let { customnotif: t = "" } = i, { clientstyling: e = "" } = i, { clientstylingurl: a = "" } = i, n, f = window.navigator.userAgent, k = D(f) !== "PC", y = [], d = [];
132
+ const h = window.matchMedia("(min-width: 768px)"), g = (s) => {
133
+ if (s.data)
134
+ switch (s.data.type) {
135
+ case "NotificationsDetails":
136
+ o(1, y = s.data.notificationsInfo), y.forEach((A) => {
137
+ d.length && (A.backgroundColor = d[0], d.shift());
138
+ });
139
+ break;
140
+ }
141
+ }, v = () => {
142
+ t.replace(" ", ""), d = t.split(",");
143
+ }, c = () => {
144
+ let s = document.createElement("style");
145
+ s.innerHTML = e, n.appendChild(s);
146
+ }, u = () => {
147
+ let s = new URL(a), A = document.createElement("style");
148
+ fetch(s.href).then((_) => _.text()).then((_) => {
149
+ A.innerHTML = _, setTimeout(
150
+ () => {
151
+ n.appendChild(A);
152
+ },
153
+ 1
154
+ );
155
+ });
156
+ };
157
+ q(() => (window.addEventListener("message", g, !1), () => {
158
+ window.removeEventListener("message", g);
159
+ }));
160
+ function L(s) {
161
+ R[s ? "unshift" : "push"](() => {
162
+ n = s, o(0, n);
163
+ });
164
+ }
165
+ return l.$$set = (s) => {
166
+ "customnotif" in s && o(4, t = s.customnotif), "clientstyling" in s && o(5, e = s.clientstyling), "clientstylingurl" in s && o(6, a = s.clientstylingurl);
167
+ }, l.$$.update = () => {
168
+ l.$$.dirty & /*customnotif*/
169
+ 16 && t && v(), l.$$.dirty & /*notificationsData*/
170
+ 2 && y && v(), l.$$.dirty & /*clientstylingurl, customStylingContainer*/
171
+ 65 && a && n && u(), l.$$.dirty & /*clientstyling, customStylingContainer*/
172
+ 33 && e && n && c();
173
+ }, [
174
+ n,
175
+ y,
176
+ k,
177
+ h,
178
+ t,
179
+ e,
180
+ a,
181
+ L
182
+ ];
183
+ }
184
+ class J extends F {
185
+ constructor(i) {
186
+ super(), z(
187
+ this,
188
+ i,
189
+ G,
190
+ j,
191
+ I,
192
+ {
193
+ customnotif: 4,
194
+ clientstyling: 5,
195
+ clientstylingurl: 6
196
+ },
197
+ W
198
+ );
199
+ }
200
+ get customnotif() {
201
+ return this.$$.ctx[4];
202
+ }
203
+ set customnotif(i) {
204
+ this.$$set({ customnotif: i }), b();
205
+ }
206
+ get clientstyling() {
207
+ return this.$$.ctx[5];
208
+ }
209
+ set clientstyling(i) {
210
+ this.$$set({ clientstyling: i }), b();
211
+ }
212
+ get clientstylingurl() {
213
+ return this.$$.ctx[6];
214
+ }
215
+ set clientstylingurl(i) {
216
+ this.$$set({ clientstylingurl: i }), b();
217
+ }
218
+ }
219
+ E(J, { customnotif: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
220
+ export {
221
+ J as default
222
+ };