@everymatrix/player-account-controller-nd 1.45.0 → 1.45.3

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 (104) hide show
  1. package/components/{GeneralLogout-Dur72yyv.js → GeneralLogout-DI0_2Ld2.js} +245 -245
  2. package/components/{GeneralLogout-WbaN9lE3.cjs → GeneralLogout-bc8vhI_H.cjs} +5 -5
  3. package/components/PlayerAccountBettingHistory-BK6xPWSw.cjs +1 -0
  4. package/components/PlayerAccountBettingHistory-p8-C5d_q.js +328 -0
  5. package/components/PlayerAccountBiometrics-36-jzvmv.js +300 -0
  6. package/components/PlayerAccountBiometrics-C-3zrtyy.cjs +1 -0
  7. package/components/PlayerAccountClosureNd-DWE1BQjS.cjs +1 -0
  8. package/components/PlayerAccountClosureNd-DpV3ccPJ.js +339 -0
  9. package/components/PlayerAccountControllerNd-B2whVamd.cjs +1 -0
  10. package/components/{PlayerAccountControllerNd-DCbqnbg6.js → PlayerAccountControllerNd-Cn1L8BfZ.js} +2011 -2011
  11. package/components/{PlayerAccountGamingLimits-C2xXDjZV.js → PlayerAccountGamingLimits-X6i1dxNz.js} +183 -183
  12. package/components/PlayerAccountGamingLimits-a_ERECbs.cjs +1 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-_s70hpGn.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-l6qA-tGo.cjs +1 -0
  15. package/components/{PlayerAccountGamingLimitsGroupEdit-DmQ9XuZB.js → PlayerAccountGamingLimitsGroupEdit-BQ82HYJY.js} +966 -966
  16. package/components/PlayerAccountGamingLimitsGroupEdit-C0TmN9tW.cjs +10 -0
  17. package/components/{PlayerAccountGamingLimitsHistory2-_p2IXses.cjs → PlayerAccountGamingLimitsHistory2-BQABSfo3.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimitsHistory2-fOH4qSJR.js → PlayerAccountGamingLimitsHistory2-BkYPsgPu.js} +1 -1
  19. package/components/PlayerAccountGamingLimitsInfoCard-0xDp-CBL.cjs +1 -0
  20. package/components/{PlayerAccountGamingLimitsInfoCard-DTrLCGCx.js → PlayerAccountGamingLimitsInfoCard-DQkGickX.js} +351 -351
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +21 -0
  22. package/components/{PlayerAccountGamingLimitsPage2Gm16-1ZR10Ej8.js → PlayerAccountGamingLimitsPage2Gm16-DoQKbVDC.js} +851 -851
  23. package/components/{PlayerAccountGamingLimitsPopup-Bss_FRfq.js → PlayerAccountGamingLimitsPopup-BRVwX_uG.js} +79 -77
  24. package/components/PlayerAccountGamingLimitsPopup-CRCoJtQR.cjs +1 -0
  25. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DqM8a5cp.js → PlayerAccountGamingLimitsWrapper2Nd-Bww6zBy7.js} +140 -140
  26. package/components/PlayerAccountGamingLimitsWrapper2Nd-LjReoru-.cjs +1 -0
  27. package/components/PlayerAccountMenuNd-BdhvWQDA.js +587 -0
  28. package/components/PlayerAccountMenuNd-uyqoX0xo.cjs +1 -0
  29. package/components/{PlayerAccountModal-BQ2N-DK2.js → PlayerAccountModal-BK_133rp.js} +49 -49
  30. package/components/PlayerAccountModal-CIR41mpM.cjs +1 -0
  31. package/components/PlayerAccountNotifications-COx0wvVZ.js +261 -0
  32. package/components/PlayerAccountNotifications-DNWMsUnC.cjs +1 -0
  33. package/components/{PlayerAccountSelfExclusionNd-Bx9an6cr.js → PlayerAccountSelfExclusionNd-B1PSYs3p.js} +1778 -1778
  34. package/components/{PlayerAccountSelfExclusionNd-BuzzsS0G.cjs → PlayerAccountSelfExclusionNd-CUN7qWEA.cjs} +125 -125
  35. package/components/PlayerAccountTimeout-C0nlqzAC.cjs +1 -0
  36. package/components/{PlayerAccountTimeout-DAzcm92_.js → PlayerAccountTimeout-DMvUsWoq.js} +106 -106
  37. package/components/PlayerActiveBonuses-CpEieMUG.js +986 -0
  38. package/components/PlayerActiveBonuses-bY0Y51Al.cjs +1 -0
  39. package/components/PlayerBonusCard-DGoTFlMq.js +565 -0
  40. package/components/PlayerBonusCard-DdxYH7lf.cjs +1 -0
  41. package/components/PlayerBonusHistory-DdGgXcKX.cjs +1 -0
  42. package/components/PlayerBonusHistory-rFWrF_Pj.js +840 -0
  43. package/components/PlayerChangePassword-BDyXZ2_q.cjs +3 -0
  44. package/components/PlayerChangePassword-BkRFX3fB.js +1161 -0
  45. package/components/PlayerDeposit-CYpXuZIT.cjs +1 -0
  46. package/components/PlayerDeposit-T-QxU0tF.js +395 -0
  47. package/components/PlayerGamingHistory-DCOFqQCz.js +920 -0
  48. package/components/PlayerGamingHistory-DXX4_ApI.cjs +1 -0
  49. package/components/PlayerPendingWithdrawals-DR9D_EFU.js +307 -0
  50. package/components/PlayerPendingWithdrawals-Dn63yKxo.cjs +1 -0
  51. package/components/PlayerProfileInfo-CmcXF1Sx.js +1707 -0
  52. package/components/PlayerProfileInfo-CsWD1vK0.cjs +1 -0
  53. package/components/PlayerRealityCheck-BaBE_tNE.cjs +1 -0
  54. package/components/PlayerRealityCheck-CRHHpeWT.js +587 -0
  55. package/components/PlayerTransactionHistory-DJICk5qY.cjs +1 -0
  56. package/components/PlayerTransactionHistory-HQMXVkZj.js +311 -0
  57. package/components/PlayerWithdrawal-BToCctRz.js +365 -0
  58. package/components/PlayerWithdrawal-DuxGAxKs.cjs +1 -0
  59. package/es2015/player-account-controller-nd.cjs +1 -1
  60. package/es2015/player-account-controller-nd.js +1 -1
  61. package/package.json +2 -2
  62. package/components/PlayerAccountBettingHistory-BWMEGhv1.js +0 -328
  63. package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +0 -1
  64. package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +0 -1
  65. package/components/PlayerAccountBiometrics-ByG3_I95.js +0 -300
  66. package/components/PlayerAccountClosureNd-034rDNz4.cjs +0 -1
  67. package/components/PlayerAccountClosureNd-DZTrmidg.js +0 -339
  68. package/components/PlayerAccountControllerNd-BAD6QpiV.cjs +0 -1
  69. package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +0 -1
  70. package/components/PlayerAccountGamingLimitsConfirmationModal-CL8VasWX.js +0 -306
  71. package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +0 -1
  72. package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +0 -10
  73. package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +0 -1
  74. package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +0 -21
  75. package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +0 -1
  76. package/components/PlayerAccountGamingLimitsWrapper2Nd-D3v3WC8t.cjs +0 -1
  77. package/components/PlayerAccountMenuNd-CBH9HOGY.js +0 -587
  78. package/components/PlayerAccountMenuNd-CvdxB7NH.cjs +0 -1
  79. package/components/PlayerAccountModal-DpMfe1gv.cjs +0 -1
  80. package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +0 -1
  81. package/components/PlayerAccountNotifications-QmKY9-B0.js +0 -261
  82. package/components/PlayerAccountTimeout-dxzuaoP9.cjs +0 -1
  83. package/components/PlayerActiveBonuses-BcPMSj2n.js +0 -986
  84. package/components/PlayerActiveBonuses-D0-qI8iz.cjs +0 -1
  85. package/components/PlayerBonusCard-BoENnXsd.cjs +0 -1
  86. package/components/PlayerBonusCard-DhNWEP3Y.js +0 -565
  87. package/components/PlayerBonusHistory-CKKn9KgY.js +0 -840
  88. package/components/PlayerBonusHistory-DoxmVui6.cjs +0 -1
  89. package/components/PlayerChangePassword-BC6buQCz.js +0 -1161
  90. package/components/PlayerChangePassword-RpQIhFff.cjs +0 -3
  91. package/components/PlayerDeposit-B7M0Rg-o.js +0 -395
  92. package/components/PlayerDeposit-COhpfcRx.cjs +0 -1
  93. package/components/PlayerGamingHistory-DIk73kDr.js +0 -920
  94. package/components/PlayerGamingHistory-Dbafpt79.cjs +0 -1
  95. package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +0 -1
  96. package/components/PlayerPendingWithdrawals-CxklAVTc.js +0 -307
  97. package/components/PlayerProfileInfo-BeD6hzPW.cjs +0 -1
  98. package/components/PlayerProfileInfo-CoKc-eaN.js +0 -1707
  99. package/components/PlayerRealityCheck-B37H9_Rn.cjs +0 -1
  100. package/components/PlayerRealityCheck-DekJHe9F.js +0 -587
  101. package/components/PlayerTransactionHistory-CxYO3lnm.cjs +0 -1
  102. package/components/PlayerTransactionHistory-D7Tba-Nn.js +0 -311
  103. package/components/PlayerWithdrawal-BQyz5UQ7.js +0 -365
  104. package/components/PlayerWithdrawal-DYkzBPcQ.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bc8vhI_H.cjs");function $({withLocale:n,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function ee(n,t){e.addMessages(n,t)}const R={en:{titleLimitsWrapper2:"Limits"},"zh-hk":{titleLimitsWrapper2:"Limits"},fr:{titleLimitsWrapper2:"Limits"},ro:{titleLimitsWrapper2:"Limits"},es:{titleLimitsWrapper2:"Limits"},pt:{titleLimitsWrapper2:"Limits"},hr:{titleLimitsWrapper2:"Ograničenja"},"pt-br":{titleLimitsWrapper2:"Limites"},"es-mx":{titleLimitsWrapper2:"Límites"},tr:{titleLimitsWrapper2:"Sınırlar"}};if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-page-2-gm16")&&customElements.define("player-account-gaming-limits-page-2-gm16",t.element)})}if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsHistory2-BQABSfo3.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}const{document:te}=e.globals;function ie(n){e.append_styles(n,"svelte-cje1x7",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper{padding:50px;color:var(--emfe-w-pam-color-primary, #22B04E);background-color:var(--emfe-w-pam-color-bg, #F1F1F1);border-radius:var(--emw--border-radius-large, 20px);min-height:1000px;display:flex;flex-direction:column}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.GamingLimitsWrapper.GamingLimitsWrapperMobile .GamingLimitsContent,.GamingLimitsWrapper.GamingLimitsWrapperMobile .PlayerAccountGamingLmitsWrapper2,.GamingLimitsWrapper.GamingLimitsWrapperMobile .LimitsTab{flex-direction:column;width:100%;height:fit-content;padding:5px 0;font-size:10px;margin-right:5px}.GamingLimitsWrapper .GamingLimitsContent{display:flex;flex-direction:row}.GamingLimitsWrapper .LimitsWrapper,.GamingLimitsWrapper .TabsContainer,.GamingLimitsWrapper .LimitsTab{display:flex;flex-direction:column;align-items:center;flex-direction:row}.GamingLimitsWrapper .TabsContainer{height:50px;margin-bottom:12px;cursor:pointer;justify-content:left;color:var(--emw--color-typography-contrast, #444444)}.GamingLimitsWrapper .LimitsTab{font-size:16px;line-height:1.4rem;text-transform:uppercase;padding:10px 40px;background-color:var(--emw--color-grey-150, #C0CBC3);border-radius:var(--emw--border-radius-large, 50px);margin-right:20px}.GamingLimitsWrapper .Selected{color:var(--emw--color-typpgraphy, #FFFFFF);background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C))}.GamingLimitsWrapper .PlayerAccountGamingLmitsWrapper2{margin-bottom:20px;width:65%}.Hidden{display:none}h2{margin:20px 0}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, #22B04E);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, #22B04E)}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, #22B04E);font-weight:400}.GamingLimitsTitleMobile{font-size:16px}')}function j(n,t,i){const s=n.slice();return s[40]=t[i],s[42]=i,s}function z(n,t,i){const s=n.slice();return s[43]=t[i],s[42]=i,s}function ne(n){let t,i,s,l,r,o,c,u,m,d,_=n[21]("titleLimitsWrapper2")+"",b,y,g;return{c(){t=e.element("div"),i=e.svg_element("svg"),s=e.svg_element("defs"),l=e.svg_element("style"),r=e.text(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));}"),o=e.svg_element("g"),c=e.svg_element("g"),u=e.svg_element("path"),m=e.space(),d=e.element("h2"),b=e.text(_),e.attr(u,"class","aaa"),e.attr(u,"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(u,"transform","translate(15 15) rotate(180)"),e.attr(c,"transform","translate(20 158)"),e.attr(o,"transform","translate(-20 -158)"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","15"),e.attr(i,"viewBox","0 0 15 15"),e.attr(d,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(f,h){e.insert(f,t,h),e.append(t,i),e.append(i,s),e.append(s,l),e.append(l,r),e.append(i,o),e.append(o,c),e.append(c,u),e.append(t,m),e.append(t,d),e.append(d,b),y||(g=e.listen(t,"click",n[29]),y=!0)},p(f,h){h[0]&2097152&&_!==(_=f[21]("titleLimitsWrapper2")+"")&&e.set_data(b,_)},d(f){f&&e.detach(t),y=!1,g()}}}function se(n){let t,i,s,l,r=n[22].length>1&&ae(n),o=e.ensure_array_like(n[22]),c=[];for(let m=0;m<o.length;m+=1)c[m]=D(j(n,o,m));let u=n[6]==="true"&&q(n);return{c(){r&&r.c(),t=e.space(),i=e.element("div"),s=e.element("div");for(let m=0;m<c.length;m+=1)c[m].c();l=e.space(),u&&u.c(),e.attr(s,"class","PlayerAccountGamingLmitsWrapper2"),e.attr(i,"class","GamingLimitsContent")},m(m,d){r&&r.m(m,d),e.insert(m,t,d),e.insert(m,i,d),e.append(i,s);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(s,null);n[32](s),e.append(i,l),u&&u.m(i,null)},p(m,d){if(m[22].length>1&&r.p(m,d),d[0]&1588671){o=e.ensure_array_like(m[22]);let _;for(_=0;_<o.length;_+=1){const b=j(m,o,_);c[_]?c[_].p(b,d):(c[_]=D(b),c[_].c(),c[_].m(s,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=o.length}m[6]==="true"?u?u.p(m,d):(u=q(m),u.c(),u.m(i,null)):u&&(u.d(1),u=null)},d(m){m&&(e.detach(t),e.detach(i)),r&&r.d(m),e.destroy_each(c,m),n[32](null),u&&u.d()}}}function le(n){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function ae(n){let t,i=e.ensure_array_like(n[22]),s=[];for(let l=0;l<i.length;l+=1)s[l]=O(z(n,i,l));return{c(){t=e.element("div");for(let l=0;l<s.length;l+=1)s[l].c();e.attr(t,"class","TabsContainer")},m(l,r){e.insert(l,t,r);for(let o=0;o<s.length;o+=1)s[o]&&s[o].m(t,null);n[31](t)},p(l,r){if(r[0]&21102592){i=e.ensure_array_like(l[22]);let o;for(o=0;o<i.length;o+=1){const c=z(l,i,o);s[o]?s[o].p(c,r):(s[o]=O(c),s[o].c(),s[o].m(t,null))}for(;o<s.length;o+=1)s[o].d(1);s.length=i.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),n[31](null)}}}function O(n){var c;let t,i=((c=n[17][n[42]])!=null?c:n[43])+"",s,l,r;function o(){return n[30](n[42])}return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","LimitsTab")},m(u,m){e.insert(u,t,m),e.append(t,s),l||(r=e.listen(t,"click",o),l=!0)},p(u,m){var d;n=u,m[0]&131072&&i!==(i=((d=n[17][n[42]])!=null?d:n[43])+"")&&e.set_data(s,i)},d(u){u&&e.detach(t),l=!1,r()}}}function D(n){let t,i,s;return{c(){t=e.element("player-account-gaming-limits-page-2-gm16"),e.set_custom_element_data(t,"class","Hidden Selected"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"currency",n[4]),e.set_custom_element_data(t,"amountsconfig",i=n[19][n[42]]),e.set_custom_element_data(t,"periodsconfig",s=n[20][n[42]]),e.set_custom_element_data(t,"limittabindex",n[42]+1),e.set_custom_element_data(t,"userid",n[1]),e.set_custom_element_data(t,"deletelimit",n[8]),e.set_custom_element_data(t,"enablecompliancetext",n[7]),e.set_custom_element_data(t,"session",n[2]),e.set_custom_element_data(t,"endpoint",n[3]),e.set_custom_element_data(t,"apiversion",n[5]),e.set_custom_element_data(t,"clientstyling",n[11]),e.set_custom_element_data(t,"clientstylingurl",n[12]),e.set_custom_element_data(t,"translationurl",n[13]),e.set_custom_element_data(t,"customcurrencysymbols",n[10])},m(l,r){e.insert(l,t,r)},p(l,r){r[0]&1&&e.set_custom_element_data(t,"lang",l[0]),r[0]&16&&e.set_custom_element_data(t,"currency",l[4]),r[0]&524288&&i!==(i=l[19][l[42]])&&e.set_custom_element_data(t,"amountsconfig",i),r[0]&1048576&&s!==(s=l[20][l[42]])&&e.set_custom_element_data(t,"periodsconfig",s),r[0]&2&&e.set_custom_element_data(t,"userid",l[1]),r[0]&256&&e.set_custom_element_data(t,"deletelimit",l[8]),r[0]&128&&e.set_custom_element_data(t,"enablecompliancetext",l[7]),r[0]&4&&e.set_custom_element_data(t,"session",l[2]),r[0]&8&&e.set_custom_element_data(t,"endpoint",l[3]),r[0]&32&&e.set_custom_element_data(t,"apiversion",l[5]),r[0]&2048&&e.set_custom_element_data(t,"clientstyling",l[11]),r[0]&4096&&e.set_custom_element_data(t,"clientstylingurl",l[12]),r[0]&8192&&e.set_custom_element_data(t,"translationurl",l[13]),r[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",l[10])},d(l){l&&e.detach(t)}}}function q(n){let t;return{c(){t=e.element("player-account-gaming-limits-history-2"),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"userid",n[1]),e.set_custom_element_data(t,"session",n[2]),e.set_custom_element_data(t,"endpoint",n[3]),e.set_custom_element_data(t,"apiversion",n[5]),e.set_custom_element_data(t,"numberofentries",n[9]),e.set_custom_element_data(t,"clientstyling",n[11]),e.set_custom_element_data(t,"clientstylingurl",n[12]),e.set_custom_element_data(t,"translationurl",n[13]),e.set_custom_element_data(t,"customcurrencysymbols",n[10])},m(i,s){e.insert(i,t,s)},p(i,s){s[0]&1&&e.set_custom_element_data(t,"lang",i[0]),s[0]&2&&e.set_custom_element_data(t,"userid",i[1]),s[0]&4&&e.set_custom_element_data(t,"session",i[2]),s[0]&8&&e.set_custom_element_data(t,"endpoint",i[3]),s[0]&32&&e.set_custom_element_data(t,"apiversion",i[5]),s[0]&512&&e.set_custom_element_data(t,"numberofentries",i[9]),s[0]&2048&&e.set_custom_element_data(t,"clientstyling",i[11]),s[0]&4096&&e.set_custom_element_data(t,"clientstylingurl",i[12]),s[0]&8192&&e.set_custom_element_data(t,"translationurl",i[13]),s[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",i[10])},d(i){i&&e.detach(t)}}}function re(n){let t,i,s,l,r,o,c,u=n[21]("titleLimitsWrapper2")+"",m,d,_=n[23]&&ne(n);function b(f,h){return f[14]?le:se}let y=b(n),g=y(n);return{c(){t=e.element("meta"),i=e.space(),s=e.element("div"),l=e.element("div"),r=e.element("div"),_&&_.c(),o=e.space(),c=e.element("h2"),m=e.text(u),d=e.space(),g.c(),e.attr(t,"name","viewport"),e.attr(t,"content","width=device-width, initial-scale=1"),e.attr(c,"class","GamingLimitsTitle "+(n[23]?"Hidden":"")),e.attr(r,"class","TitleSection"),e.attr(l,"class","GamingLimitsWrapper "+(n[23]?"GamingLimitsWrapperMobile":""))},m(f,h){e.append(te.head,t),e.insert(f,i,h),e.insert(f,s,h),e.append(s,l),e.append(l,r),_&&_.m(r,null),e.append(r,o),e.append(r,c),e.append(c,m),e.append(l,d),g.m(l,null),n[33](s)},p(f,h){f[23]&&_.p(f,h),h[0]&2097152&&u!==(u=f[21]("titleLimitsWrapper2")+"")&&e.set_data(m,u),y===(y=b(f))&&g?g.p(f,h):(g.d(1),g=y(f),g&&(g.c(),g.m(l,null)))},i:e.noop,o:e.noop,d(f){f&&(e.detach(i),e.detach(s)),e.detach(t),_&&_.d(),g.d(),n[33](null)}}}function me(n,t,i){let s;e.component_subscribe(n,e.$format,a=>i(21,s=a));let{lang:l=""}=t,{userid:r=""}=t,{session:o=""}=t,{endpoint:c=""}=t,{currency:u=""}=t,{apiversion:m=""}=t,{tablabels:d=""}=t,{historyenabled:_="true"}=t,{enablecompliancetext:b="false"}=t,{deletelimit:y=""}=t,{limitsamount:g=""}=t,{limitsperiods:f=""}=t,{numberofentries:h=""}=t,{customcurrencysymbols:A=""}=t,{clientstyling:W=""}=t,{clientstylingurl:k=""}=t,{translationurl:B=""}=t;$({withLocale:"en",translations:{}});let E=!0,v,M=[],P,w,L,G,T,N=window.navigator.userAgent,F=e.getDevice(N)!=="PC";Object.keys(R).forEach(a=>{ee(a,R[a])});const U=(a,p)=>{if(i(19,G=a.replace(/\s/g,"").split("|")),i(20,T=p.replace(/\s/g,"").split("|")),G.length===0)throw new Error("Please provide a full limits configuration.");if(G.length!==T.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")},V=()=>{U(g,f),g.split("|").forEach(p=>{M.includes(p)||M.push(p)}),i(17,P=d.split(",").map(p=>p.trim())),i(14,E=!1)},C=a=>{if(w.children.length>0)for(let p=0;p<w.children.length;p++)a===p?(w.children[p].classList.remove("Hidden"),L==null||L.children[p].classList.add("Selected")):(w.children[p].classList.add("Hidden"),L==null||L.children[p].classList.remove("Selected"))},H=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:F},window.location.href)},Z=()=>{let a=document.createElement("style");a.innerHTML=W,v.appendChild(a)},J=()=>{let a=new URL(k),p=document.createElement("style");fetch(a.href).then(S=>S.text()).then(S=>{p.innerHTML=S,setTimeout(()=>{v.appendChild(p)},1)})};e.onMount(()=>()=>{i(16,w=null),i(18,L=null)});const K=()=>H(),Q=a=>C(a);function X(a){e.binding_callbacks[a?"unshift":"push"](()=>{L=a,i(18,L)})}function Y(a){e.binding_callbacks[a?"unshift":"push"](()=>{w=a,i(16,w)})}function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{v=a,i(15,v)})}return n.$$set=a=>{"lang"in a&&i(0,l=a.lang),"userid"in a&&i(1,r=a.userid),"session"in a&&i(2,o=a.session),"endpoint"in a&&i(3,c=a.endpoint),"currency"in a&&i(4,u=a.currency),"apiversion"in a&&i(5,m=a.apiversion),"tablabels"in a&&i(26,d=a.tablabels),"historyenabled"in a&&i(6,_=a.historyenabled),"enablecompliancetext"in a&&i(7,b=a.enablecompliancetext),"deletelimit"in a&&i(8,y=a.deletelimit),"limitsamount"in a&&i(27,g=a.limitsamount),"limitsperiods"in a&&i(28,f=a.limitsperiods),"numberofentries"in a&&i(9,h=a.numberofentries),"customcurrencysymbols"in a&&i(10,A=a.customcurrencysymbols),"clientstyling"in a&&i(11,W=a.clientstyling),"clientstylingurl"in a&&i(12,k=a.clientstylingurl),"translationurl"in a&&i(13,B=a.translationurl)},n.$$.update=()=>{n.$$.dirty[0]&67108911&&r&&o&&c&&d&&l&&m&&V(),n.$$.dirty[0]&81920&&w&&!E&&C(0),n.$$.dirty[0]&36864&&k&&v&&J(),n.$$.dirty[0]&34816&&W&&v&&Z()},[l,r,o,c,u,m,_,b,y,h,A,W,k,B,E,v,w,P,L,G,T,s,M,F,C,H,d,g,f,K,Q,X,Y,x]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,re,e.safe_not_equal,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:26,historyenabled:6,enablecompliancetext:7,deletelimit:8,limitsamount:27,limitsperiods:28,numberofentries:9,customcurrencysymbols:10,clientstyling:11,clientstylingurl:12,translationurl:13},ie,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[2]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[3]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(t){this.$$set({currency:t}),e.flush()}get apiversion(){return this.$$.ctx[5]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get tablabels(){return this.$$.ctx[26]}set tablabels(t){this.$$set({tablabels:t}),e.flush()}get historyenabled(){return this.$$.ctx[6]}set historyenabled(t){this.$$set({historyenabled:t}),e.flush()}get enablecompliancetext(){return this.$$.ctx[7]}set enablecompliancetext(t){this.$$set({enablecompliancetext:t}),e.flush()}get deletelimit(){return this.$$.ctx[8]}set deletelimit(t){this.$$set({deletelimit:t}),e.flush()}get limitsamount(){return this.$$.ctx[27]}set limitsamount(t){this.$$set({limitsamount:t}),e.flush()}get limitsperiods(){return this.$$.ctx[28]}set limitsperiods(t){this.$$set({limitsperiods:t}),e.flush()}get numberofentries(){return this.$$.ctx[9]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[10]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},userid:{},session:{},endpoint:{},currency:{},apiversion:{},tablabels:{},historyenabled:{},enablecompliancetext:{},deletelimit:{},limitsamount:{},limitsperiods:{},numberofentries:{},customcurrencysymbols:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=I;
@@ -0,0 +1,587 @@
1
+ import { a as ie, $ as ce, S as se, i as ue, f as k, c as me, s as de, b as ge, e as v, k as L, o as j, p as B, q as fe, u as R, v as ye, x as pe, y as he, K as N, d as I, t as H, g as s, l as o, n as z, L as Ae, w as E, m as W, r as be, j as M, X as q } from "./GeneralLogout-DI0_2Ld2.js";
2
+ function X(n, e) {
3
+ ie(n, e);
4
+ }
5
+ function Me(n) {
6
+ ce.set(n);
7
+ }
8
+ const G = {
9
+ en: {
10
+ title: "My Account"
11
+ },
12
+ "zh-hk": {
13
+ title: "我的帳戶"
14
+ },
15
+ fr: {
16
+ title: "Mon compte"
17
+ },
18
+ tr: {
19
+ title: "Hesabım"
20
+ },
21
+ ro: {
22
+ title: "Contul meu"
23
+ },
24
+ es: {
25
+ title: "Mi Cuenta"
26
+ },
27
+ pt: {
28
+ title: "Minha Conta"
29
+ },
30
+ hr: {
31
+ title: "Moj račun"
32
+ },
33
+ "pt-br": {
34
+ title: "Minha conta"
35
+ },
36
+ "es-mx": {
37
+ title: "Mi cuenta"
38
+ }
39
+ };
40
+ if (typeof window != "undefined") {
41
+ let n = function(e) {
42
+ return function(...t) {
43
+ try {
44
+ return e.apply(this, t);
45
+ } catch (l) {
46
+ if (l instanceof DOMException && l.message.includes("has already been used with this registry") || l.message.includes("Cannot define multiple custom elements with the same tag name"))
47
+ return !1;
48
+ throw l;
49
+ }
50
+ };
51
+ };
52
+ customElements.define = n(customElements.define), import("./GeneralLogout-DI0_2Ld2.js").then((e) => e.a4).then(({ default: e }) => {
53
+ !customElements.get("general-logout") && customElements.define("general-logout", e.element);
54
+ });
55
+ }
56
+ function Pe(n) {
57
+ ge(n, "svelte-1vkpekd", '.PlayerAccountMenuContainer{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 .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-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;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox: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 .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{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{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{height:unset;padding:0}.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:flex;flex-direction:column;align-items:flex-start;margin:0px 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{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 .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::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 .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{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 .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}');
58
+ }
59
+ function V(n, e, t) {
60
+ const l = n.slice();
61
+ return l[37] = e[t], l;
62
+ }
63
+ function we(n) {
64
+ let e, t, l, a, d, m, f, h, P, w, A, x, b = (
65
+ /*isMobile*/
66
+ n[10] && ve(n)
67
+ ), g = (
68
+ /*isMobile*/
69
+ n[10] && xe(n)
70
+ ), u = N(
71
+ /*menuItems*/
72
+ n[5]
73
+ ), c = [];
74
+ for (let i = 0; i < u.length; i += 1)
75
+ c[i] = Z(V(n, u, i));
76
+ let F = !/*isMobile*/
77
+ n[10] && _e(n);
78
+ return {
79
+ c() {
80
+ e = v("div"), t = v("div"), b && b.c(), l = I(), a = v("p"), d = H(
81
+ /*profileUsername*/
82
+ n[7]
83
+ ), m = I(), f = v("p"), h = H(
84
+ /*profileEmail*/
85
+ n[8]
86
+ ), P = I(), g && g.c(), w = I(), A = v("div");
87
+ for (let i = 0; i < c.length; i += 1)
88
+ c[i].c();
89
+ x = I(), F && F.c(), s(a, "class", "PlayerAccountMenuUser"), s(f, "class", "PlayerAccountMenuEmail"), s(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
90
+ (n[10] ? "PlayerAccountMenuHeaderMobile" : "")), s(A, "class", "PlayerAccountMenuList"), s(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
91
+ (n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
92
+ (n[11].matches && /*isMobile*/
93
+ n[10] ? "PlayerAccountTabletContainer" : ""));
94
+ },
95
+ m(i, C) {
96
+ L(i, e, C), o(e, t), b && b.m(t, null), o(t, l), o(t, a), o(a, d), o(t, m), o(t, f), o(f, h), o(t, P), g && g.m(t, null), o(e, w), o(e, A);
97
+ for (let y = 0; y < c.length; y += 1)
98
+ c[y] && c[y].m(A, null);
99
+ o(e, x), F && F.m(e, null);
100
+ },
101
+ p(i, C) {
102
+ if (
103
+ /*isMobile*/
104
+ i[10] && b.p(i, C), C[0] & /*profileUsername*/
105
+ 128 && z(
106
+ d,
107
+ /*profileUsername*/
108
+ i[7]
109
+ ), C[0] & /*profileEmail*/
110
+ 256 && z(
111
+ h,
112
+ /*profileEmail*/
113
+ i[8]
114
+ ), /*isMobile*/
115
+ i[10] && g.p(i, C), C[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
116
+ 5216
117
+ ) {
118
+ u = N(
119
+ /*menuItems*/
120
+ i[5]
121
+ );
122
+ let y;
123
+ for (y = 0; y < u.length; y += 1) {
124
+ const T = V(i, u, y);
125
+ c[y] ? c[y].p(T, C) : (c[y] = Z(T), c[y].c(), c[y].m(A, null));
126
+ }
127
+ for (; y < c.length; y += 1)
128
+ c[y].d(1);
129
+ c.length = u.length;
130
+ }
131
+ /*isMobile*/
132
+ i[10] || F.p(i, C);
133
+ },
134
+ d(i) {
135
+ i && B(e), b && b.d(), g && g.d(), Ae(c, i), F && F.d();
136
+ }
137
+ };
138
+ }
139
+ function ve(n) {
140
+ let e, t, l, a, d, m, f, h, P, w, A = (
141
+ /*$_*/
142
+ n[9]("title") + ""
143
+ ), x, b, g;
144
+ return {
145
+ c() {
146
+ e = v("div"), t = E("svg"), l = E("defs"), a = E("style"), d = H(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"), m = E("g"), f = E("g"), h = E("path"), P = I(), w = v("h3"), x = H(A), s(h, "class", "aaa"), s(h, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), s(h, "transform", "translate(15 15) rotate(180)"), s(f, "transform", "translate(20 158)"), s(m, "transform", "translate(-20 -158)"), s(t, "xmlns", "http://www.w3.org/2000/svg"), s(t, "width", "15"), s(t, "height", "15"), s(t, "viewBox", "0 0 15 15"), s(w, "class", "PlayerAccountMenuCategoryTitle"), s(e, "class", "PlayerAccountMenuCategoryWrapper");
147
+ },
148
+ m(u, c) {
149
+ L(u, e, c), o(e, t), o(t, l), o(l, a), o(a, d), o(t, m), o(m, f), o(f, h), o(e, P), o(e, w), o(w, x), b || (g = [
150
+ W(
151
+ t,
152
+ "click",
153
+ /*goToHome*/
154
+ n[13]
155
+ ),
156
+ W(
157
+ w,
158
+ "click",
159
+ /*goToHome*/
160
+ n[13]
161
+ )
162
+ ], b = !0);
163
+ },
164
+ p(u, c) {
165
+ c[0] & /*$_*/
166
+ 512 && A !== (A = /*$_*/
167
+ u[9]("title") + "") && z(x, A);
168
+ },
169
+ d(u) {
170
+ u && B(e), b = !1, be(g);
171
+ }
172
+ };
173
+ }
174
+ function xe(n) {
175
+ let e, t;
176
+ return {
177
+ c() {
178
+ e = v("div"), t = v("general-logout"), M(
179
+ t,
180
+ "endpoint",
181
+ /*endpoint*/
182
+ n[1]
183
+ ), M(
184
+ t,
185
+ "session",
186
+ /*session*/
187
+ n[0]
188
+ ), M(t, "buttonlocation", "PlayerAccountMenu"), M(
189
+ t,
190
+ "clientstyling",
191
+ /*clientstyling*/
192
+ n[2]
193
+ ), M(
194
+ t,
195
+ "clientstylingurl",
196
+ /*clientstylingurl*/
197
+ n[3]
198
+ ), s(e, "class", "PlayerAccountLogOutArea");
199
+ },
200
+ m(l, a) {
201
+ L(l, e, a), o(e, t);
202
+ },
203
+ p(l, a) {
204
+ a[0] & /*endpoint*/
205
+ 2 && M(
206
+ t,
207
+ "endpoint",
208
+ /*endpoint*/
209
+ l[1]
210
+ ), a[0] & /*session*/
211
+ 1 && M(
212
+ t,
213
+ "session",
214
+ /*session*/
215
+ l[0]
216
+ ), a[0] & /*clientstyling*/
217
+ 4 && M(
218
+ t,
219
+ "clientstyling",
220
+ /*clientstyling*/
221
+ l[2]
222
+ ), a[0] & /*clientstylingurl*/
223
+ 8 && M(
224
+ t,
225
+ "clientstylingurl",
226
+ /*clientstylingurl*/
227
+ l[3]
228
+ );
229
+ },
230
+ d(l) {
231
+ l && B(e);
232
+ }
233
+ };
234
+ }
235
+ function Z(n) {
236
+ let e, t, l, a, d, m, f = (
237
+ /*menuItem*/
238
+ n[37].label + ""
239
+ ), h, P, w, A, x;
240
+ function b() {
241
+ return (
242
+ /*click_handler*/
243
+ n[22](
244
+ /*menuItem*/
245
+ n[37]
246
+ )
247
+ );
248
+ }
249
+ return {
250
+ c() {
251
+ e = v("div"), t = v("p"), l = v("img"), d = I(), m = v("span"), h = H(f), P = I(), s(l, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
252
+ (n[10] ? "PlayerAccountMenuItemIconMobile" : "")), q(l.src, a = /*menuItem*/
253
+ n[37].img) || s(l, "src", a), s(m, "class", "PlayerAccountMenuItemTitle"), s(t, "class", "PlayerAccountMenuItemWrapper"), s(e, "class", w = "PlayerAccountMenuItemBox " + /*selectedItem*/
254
+ (n[6] === /*menuItem*/
255
+ n[37].id && !/*isMobile*/
256
+ n[10] ? "PlayerAccountMenuActiveItemBox" : ""));
257
+ },
258
+ m(g, u) {
259
+ L(g, e, u), o(e, t), o(t, l), o(t, d), o(t, m), o(m, h), o(e, P), A || (x = W(e, "click", b), A = !0);
260
+ },
261
+ p(g, u) {
262
+ n = g, u[0] & /*menuItems*/
263
+ 32 && !q(l.src, a = /*menuItem*/
264
+ n[37].img) && s(l, "src", a), u[0] & /*menuItems*/
265
+ 32 && f !== (f = /*menuItem*/
266
+ n[37].label + "") && z(h, f), u[0] & /*selectedItem, menuItems*/
267
+ 96 && w !== (w = "PlayerAccountMenuItemBox " + /*selectedItem*/
268
+ (n[6] === /*menuItem*/
269
+ n[37].id && !/*isMobile*/
270
+ n[10] ? "PlayerAccountMenuActiveItemBox" : "")) && s(e, "class", w);
271
+ },
272
+ d(g) {
273
+ g && B(e), A = !1, x();
274
+ }
275
+ };
276
+ }
277
+ function _e(n) {
278
+ let e, t;
279
+ return {
280
+ c() {
281
+ e = v("div"), t = v("general-logout"), M(
282
+ t,
283
+ "endpoint",
284
+ /*endpoint*/
285
+ n[1]
286
+ ), M(
287
+ t,
288
+ "session",
289
+ /*session*/
290
+ n[0]
291
+ ), M(t, "buttonlocation", "PlayerAccountMenu"), M(
292
+ t,
293
+ "clientstyling",
294
+ /*clientstyling*/
295
+ n[2]
296
+ ), M(
297
+ t,
298
+ "clientstylingurl",
299
+ /*clientstylingurl*/
300
+ n[3]
301
+ ), s(e, "class", "PlayerAccountLogOutArea");
302
+ },
303
+ m(l, a) {
304
+ L(l, e, a), o(e, t);
305
+ },
306
+ p(l, a) {
307
+ a[0] & /*endpoint*/
308
+ 2 && M(
309
+ t,
310
+ "endpoint",
311
+ /*endpoint*/
312
+ l[1]
313
+ ), a[0] & /*session*/
314
+ 1 && M(
315
+ t,
316
+ "session",
317
+ /*session*/
318
+ l[0]
319
+ ), a[0] & /*clientstyling*/
320
+ 4 && M(
321
+ t,
322
+ "clientstyling",
323
+ /*clientstyling*/
324
+ l[2]
325
+ ), a[0] & /*clientstylingurl*/
326
+ 8 && M(
327
+ t,
328
+ "clientstylingurl",
329
+ /*clientstylingurl*/
330
+ l[3]
331
+ );
332
+ },
333
+ d(l) {
334
+ l && B(e);
335
+ }
336
+ };
337
+ }
338
+ function Ce(n) {
339
+ let e;
340
+ function t(d, m) {
341
+ return we;
342
+ }
343
+ let a = t()(n);
344
+ return {
345
+ c() {
346
+ e = v("div"), a.c();
347
+ },
348
+ m(d, m) {
349
+ L(d, e, m), a.m(e, null), n[23](e);
350
+ },
351
+ p(d, m) {
352
+ a.p(d, m);
353
+ },
354
+ i: j,
355
+ o: j,
356
+ d(d) {
357
+ d && B(e), a.d(), n[23](null);
358
+ }
359
+ };
360
+ }
361
+ function ke(n, e, t) {
362
+ let l;
363
+ fe(n, he, (r) => t(9, l = r));
364
+ let { endpoint: a = "" } = e, { cmsendpoint: d = "" } = e, { env: m = "" } = e, { session: f = "" } = e, { playerid: h = "" } = e, { lang: P = "en" } = e, { selecteditem: w = "" } = e, { userroles: A = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: b = "" } = e, { translationurl: g = "" } = e, { activemenuitem: u = "" } = e, c, F = [], i, C = window.navigator.userAgent, y = R(C) !== "PC", T = "", S = "";
365
+ const K = window.matchMedia("(min-width: 768px)"), Q = () => {
366
+ fetch(g).then((p) => p.json()).then((p) => {
367
+ Object.keys(p).forEach((_) => {
368
+ X(_, p[_]);
369
+ });
370
+ }).catch((p) => {
371
+ console.error(p);
372
+ });
373
+ };
374
+ Object.keys(G).forEach((r) => {
375
+ X(r, G[r]);
376
+ });
377
+ const U = (r) => {
378
+ if (r.data)
379
+ switch (r.data.type) {
380
+ case "AccountMenuDetails":
381
+ availableMenuItemsArray = r.data.accountMenuInfo;
382
+ break;
383
+ case "UserSessionID":
384
+ t(0, f = r.data.session);
385
+ break;
386
+ }
387
+ }, J = () => {
388
+ let r = R(C);
389
+ if (r)
390
+ return r === "PC" ? "dk" : "mtWeb";
391
+ }, Y = () => {
392
+ const r = new URL(`${d}/${P}/profile-menu?env=${m}`);
393
+ r.searchParams.append("device", J()), fetch(r.href).then((p) => p.json()).then((p) => {
394
+ t(5, F = p), O();
395
+ }).catch((p) => {
396
+ console.error("Error getting menu items", p);
397
+ });
398
+ }, $ = () => {
399
+ let r = new URL(`${a}/v1/player/${h}/profile`);
400
+ r.searchParams.append("userRoles", A);
401
+ let p = {
402
+ method: "GET",
403
+ headers: { "X-SessionID": f }
404
+ };
405
+ fetch(r.href, p).then((_) => _.json()).then(
406
+ (_) => {
407
+ t(7, T = _.username), t(8, S = _.email);
408
+ },
409
+ (_) => {
410
+ console.error(_);
411
+ }
412
+ );
413
+ }, D = (r) => {
414
+ window.postMessage({ type: "ChangeAccountPage", page: r }, window.location.href), t(6, i = r.id);
415
+ }, O = () => {
416
+ var r;
417
+ t(6, i = (r = F.find((p) => p.path.includes(u))) == null ? void 0 : r.id);
418
+ }, ee = () => {
419
+ window.postMessage({ type: "GoToHomepage" }, window.location.href);
420
+ }, te = () => {
421
+ Me(P);
422
+ }, ne = () => {
423
+ $();
424
+ }, re = () => {
425
+ let r = document.createElement("style");
426
+ r.innerHTML = x, c.appendChild(r);
427
+ }, le = () => {
428
+ let r = new URL(b), p = document.createElement("style");
429
+ fetch(r.href).then((_) => _.text()).then((_) => {
430
+ p.innerHTML = _, setTimeout(
431
+ () => {
432
+ c.appendChild(p);
433
+ },
434
+ 1
435
+ );
436
+ });
437
+ };
438
+ ye(() => (window.addEventListener("message", U, !1), () => {
439
+ window.removeEventListener("message", U);
440
+ }));
441
+ const ae = (r) => D(r);
442
+ function oe(r) {
443
+ pe[r ? "unshift" : "push"](() => {
444
+ c = r, t(4, c);
445
+ });
446
+ }
447
+ return n.$$set = (r) => {
448
+ "endpoint" in r && t(1, a = r.endpoint), "cmsendpoint" in r && t(14, d = r.cmsendpoint), "env" in r && t(15, m = r.env), "session" in r && t(0, f = r.session), "playerid" in r && t(16, h = r.playerid), "lang" in r && t(17, P = r.lang), "selecteditem" in r && t(18, w = r.selecteditem), "userroles" in r && t(19, A = r.userroles), "clientstyling" in r && t(2, x = r.clientstyling), "clientstylingurl" in r && t(3, b = r.clientstylingurl), "translationurl" in r && t(20, g = r.translationurl), "activemenuitem" in r && t(21, u = r.activemenuitem);
449
+ }, n.$$.update = () => {
450
+ n.$$.dirty[0] & /*lang*/
451
+ 131072 && P && te(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
452
+ 196611 && a && f && h && P && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
453
+ 180224 && d && P && m && Y(), n.$$.dirty[0] & /*activemenuitem*/
454
+ 2097152 && u && O(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
455
+ 24 && b && c && le(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
456
+ 20 && x && c && re(), n.$$.dirty[0] & /*translationurl*/
457
+ 1048576 && g && Q();
458
+ }, [
459
+ f,
460
+ a,
461
+ x,
462
+ b,
463
+ c,
464
+ F,
465
+ i,
466
+ T,
467
+ S,
468
+ l,
469
+ y,
470
+ K,
471
+ D,
472
+ ee,
473
+ d,
474
+ m,
475
+ h,
476
+ P,
477
+ w,
478
+ A,
479
+ g,
480
+ u,
481
+ ae,
482
+ oe
483
+ ];
484
+ }
485
+ class Fe extends se {
486
+ constructor(e) {
487
+ super(), ue(
488
+ this,
489
+ e,
490
+ ke,
491
+ Ce,
492
+ de,
493
+ {
494
+ endpoint: 1,
495
+ cmsendpoint: 14,
496
+ env: 15,
497
+ session: 0,
498
+ playerid: 16,
499
+ lang: 17,
500
+ selecteditem: 18,
501
+ userroles: 19,
502
+ clientstyling: 2,
503
+ clientstylingurl: 3,
504
+ translationurl: 20,
505
+ activemenuitem: 21
506
+ },
507
+ Pe,
508
+ [-1, -1]
509
+ );
510
+ }
511
+ get endpoint() {
512
+ return this.$$.ctx[1];
513
+ }
514
+ set endpoint(e) {
515
+ this.$$set({ endpoint: e }), k();
516
+ }
517
+ get cmsendpoint() {
518
+ return this.$$.ctx[14];
519
+ }
520
+ set cmsendpoint(e) {
521
+ this.$$set({ cmsendpoint: e }), k();
522
+ }
523
+ get env() {
524
+ return this.$$.ctx[15];
525
+ }
526
+ set env(e) {
527
+ this.$$set({ env: e }), k();
528
+ }
529
+ get session() {
530
+ return this.$$.ctx[0];
531
+ }
532
+ set session(e) {
533
+ this.$$set({ session: e }), k();
534
+ }
535
+ get playerid() {
536
+ return this.$$.ctx[16];
537
+ }
538
+ set playerid(e) {
539
+ this.$$set({ playerid: e }), k();
540
+ }
541
+ get lang() {
542
+ return this.$$.ctx[17];
543
+ }
544
+ set lang(e) {
545
+ this.$$set({ lang: e }), k();
546
+ }
547
+ get selecteditem() {
548
+ return this.$$.ctx[18];
549
+ }
550
+ set selecteditem(e) {
551
+ this.$$set({ selecteditem: e }), k();
552
+ }
553
+ get userroles() {
554
+ return this.$$.ctx[19];
555
+ }
556
+ set userroles(e) {
557
+ this.$$set({ userroles: e }), k();
558
+ }
559
+ get clientstyling() {
560
+ return this.$$.ctx[2];
561
+ }
562
+ set clientstyling(e) {
563
+ this.$$set({ clientstyling: e }), k();
564
+ }
565
+ get clientstylingurl() {
566
+ return this.$$.ctx[3];
567
+ }
568
+ set clientstylingurl(e) {
569
+ this.$$set({ clientstylingurl: e }), k();
570
+ }
571
+ get translationurl() {
572
+ return this.$$.ctx[20];
573
+ }
574
+ set translationurl(e) {
575
+ this.$$set({ translationurl: e }), k();
576
+ }
577
+ get activemenuitem() {
578
+ return this.$$.ctx[21];
579
+ }
580
+ set activemenuitem(e) {
581
+ this.$$set({ activemenuitem: e }), k();
582
+ }
583
+ }
584
+ me(Fe, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
585
+ export {
586
+ Fe as default
587
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bc8vhI_H.cjs");function E(a,t){e.addMessages(a,t)}function X(a){e.$locale.set(a)}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 a=function(t){return function(...n){try{return t.apply(this,n)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./GeneralLogout-bc8vhI_H.cjs")).then(t=>t.GeneralLogout_ce).then(({default:t})=>{!customElements.get("general-logout")&&customElements.define("general-logout",t.element)})}function Z(a){e.append_styles(a,"svelte-1vkpekd",'.PlayerAccountMenuContainer{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 .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-color-contrast, #FFFFFF));flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px;text-overflow:ellipsis;overflow:hidden}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuHeaderMobile{color:var(--emfe-w-pam-typography-color-nav-bg, var(--emfe-w-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;border-radius:var(--emw--border-radius-medium, 20px);border:2px solid transparent;cursor:pointer;transition:all 0.3s linear}.PlayerAccountMenuItemBox: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 .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:30px;padding-top:15px}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:var(--emfe-w-color-gray-300, #58586B)}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:var(--emfe-w-color-gray-100, #E6E6E6)}.PlayerAccountLogOutArea{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{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{height:unset;padding:0}.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:flex;flex-direction:column;align-items:flex-start;margin:0px 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{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 .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:20px;padding:0 10px 0 15px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox::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 .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;justify-items:center;align-items:center;flex-flow:row;gap:6px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{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 .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px;border-top:0}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px;color:var(--emfe-w-pam-color-secondary, var(--emfe-w-color-secondary, #E98B10))}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}')}function T(a,t,n){const r=a.slice();return r[37]=t[n],r}function Q(a){let t,n,r,o,m,u,p,y,A,b,h,M,_=a[10]&&J(a),d=a[10]&&K(a),s=e.ensure_array_like(a[5]),c=[];for(let i=0;i<s.length;i+=1)c[i]=B(T(a,s,i));let v=!a[10]&&Y(a);return{c(){t=e.element("div"),n=e.element("div"),_&&_.c(),r=e.space(),o=e.element("p"),m=e.text(a[7]),u=e.space(),p=e.element("p"),y=e.text(a[8]),A=e.space(),d&&d.c(),b=e.space(),h=e.element("div");for(let i=0;i<c.length;i+=1)c[i].c();M=e.space(),v&&v.c(),e.attr(o,"class","PlayerAccountMenuUser"),e.attr(p,"class","PlayerAccountMenuEmail"),e.attr(n,"class","PlayerAccountMenuHeader "+(a[10]?"PlayerAccountMenuHeaderMobile":"")),e.attr(h,"class","PlayerAccountMenuList"),e.attr(t,"class","PlayerAccountMenuContainer "+(a[10]?"PlayerAccountMobileContainer":"")+" "+(a[11].matches&&a[10]?"PlayerAccountTabletContainer":""))},m(i,w){e.insert(i,t,w),e.append(t,n),_&&_.m(n,null),e.append(n,r),e.append(n,o),e.append(o,m),e.append(n,u),e.append(n,p),e.append(p,y),e.append(n,A),d&&d.m(n,null),e.append(t,b),e.append(t,h);for(let g=0;g<c.length;g+=1)c[g]&&c[g].m(h,null);e.append(t,M),v&&v.m(t,null)},p(i,w){if(i[10]&&_.p(i,w),w[0]&128&&e.set_data(m,i[7]),w[0]&256&&e.set_data(y,i[8]),i[10]&&d.p(i,w),w[0]&5216){s=e.ensure_array_like(i[5]);let g;for(g=0;g<s.length;g+=1){const x=T(i,s,g);c[g]?c[g].p(x,w):(c[g]=B(x),c[g].c(),c[g].m(h,null))}for(;g<c.length;g+=1)c[g].d(1);c.length=s.length}i[10]||v.p(i,w)},d(i){i&&e.detach(t),_&&_.d(),d&&d.d(),e.destroy_each(c,i),v&&v.d()}}}function J(a){let t,n,r,o,m,u,p,y,A,b,h=a[9]("title")+"",M,_,d;return{c(){t=e.element("div"),n=e.svg_element("svg"),r=e.svg_element("defs"),o=e.svg_element("style"),m=e.text(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e.svg_element("g"),p=e.svg_element("g"),y=e.svg_element("path"),A=e.space(),b=e.element("h3"),M=e.text(h),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(p,"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(b,"class","PlayerAccountMenuCategoryTitle"),e.attr(t,"class","PlayerAccountMenuCategoryWrapper")},m(s,c){e.insert(s,t,c),e.append(t,n),e.append(n,r),e.append(r,o),e.append(o,m),e.append(n,u),e.append(u,p),e.append(p,y),e.append(t,A),e.append(t,b),e.append(b,M),_||(d=[e.listen(n,"click",a[13]),e.listen(b,"click",a[13])],_=!0)},p(s,c){c[0]&512&&h!==(h=s[9]("title")+"")&&e.set_data(M,h)},d(s){s&&e.detach(t),_=!1,e.run_all(d)}}}function K(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(r,o){e.insert(r,t,o),e.append(t,n)},p(r,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",r[1]),o[0]&1&&e.set_custom_element_data(n,"session",r[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",r[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",r[3])},d(r){r&&e.detach(t)}}}function B(a){let t,n,r,o,m,u,p=a[37].label+"",y,A,b,h,M;function _(){return a[22](a[37])}return{c(){t=e.element("div"),n=e.element("p"),r=e.element("img"),m=e.space(),u=e.element("span"),y=e.text(p),A=e.space(),e.attr(r,"class","PlayerAccountMenuItemIcon "+(a[10]?"PlayerAccountMenuItemIconMobile":"")),e.src_url_equal(r.src,o=a[37].img)||e.attr(r,"src",o),e.attr(u,"class","PlayerAccountMenuItemTitle"),e.attr(n,"class","PlayerAccountMenuItemWrapper"),e.attr(t,"class",b="PlayerAccountMenuItemBox "+(a[6]===a[37].id&&!a[10]?"PlayerAccountMenuActiveItemBox":""))},m(d,s){e.insert(d,t,s),e.append(t,n),e.append(n,r),e.append(n,m),e.append(n,u),e.append(u,y),e.append(t,A),h||(M=e.listen(t,"click",_),h=!0)},p(d,s){a=d,s[0]&32&&!e.src_url_equal(r.src,o=a[37].img)&&e.attr(r,"src",o),s[0]&32&&p!==(p=a[37].label+"")&&e.set_data(y,p),s[0]&96&&b!==(b="PlayerAccountMenuItemBox "+(a[6]===a[37].id&&!a[10]?"PlayerAccountMenuActiveItemBox":""))&&e.attr(t,"class",b)},d(d){d&&e.detach(t),h=!1,M()}}}function Y(a){let t,n;return{c(){t=e.element("div"),n=e.element("general-logout"),e.set_custom_element_data(n,"endpoint",a[1]),e.set_custom_element_data(n,"session",a[0]),e.set_custom_element_data(n,"buttonlocation","PlayerAccountMenu"),e.set_custom_element_data(n,"clientstyling",a[2]),e.set_custom_element_data(n,"clientstylingurl",a[3]),e.attr(t,"class","PlayerAccountLogOutArea")},m(r,o){e.insert(r,t,o),e.append(t,n)},p(r,o){o[0]&2&&e.set_custom_element_data(n,"endpoint",r[1]),o[0]&1&&e.set_custom_element_data(n,"session",r[0]),o[0]&4&&e.set_custom_element_data(n,"clientstyling",r[2]),o[0]&8&&e.set_custom_element_data(n,"clientstylingurl",r[3])},d(r){r&&e.detach(t)}}}function $(a){let t;function n(m,u){return Q}let o=n()(a);return{c(){t=e.element("div"),o.c()},m(m,u){e.insert(m,t,u),o.m(t,null),a[23](t)},p(m,u){o.p(m,u)},i:e.noop,o:e.noop,d(m){m&&e.detach(t),o.d(),a[23](null)}}}function ee(a,t,n){let r;e.component_subscribe(a,e.$format,l=>n(9,r=l));let{endpoint:o=""}=t,{cmsendpoint:m=""}=t,{env:u=""}=t,{session:p=""}=t,{playerid:y=""}=t,{lang:A="en"}=t,{selecteditem:b=""}=t,{userroles:h=""}=t,{clientstyling:M=""}=t,{clientstylingurl:_=""}=t,{translationurl:d=""}=t,{activemenuitem:s=""}=t,c,v=[],i,w=window.navigator.userAgent,g=e.getDevice(w)!=="PC",x="",C="";const z=window.matchMedia("(min-width: 768px)"),S=()=>{fetch(d).then(f=>f.json()).then(f=>{Object.keys(f).forEach(P=>{E(P,f[P])})}).catch(f=>{console.error(f)})};Object.keys(L).forEach(l=>{E(l,L[l])});const k=l=>{if(l.data)switch(l.data.type){case"AccountMenuDetails":availableMenuItemsArray=l.data.accountMenuInfo;break;case"UserSessionID":n(0,p=l.data.session);break}},W=()=>{let l=e.getDevice(w);if(l)return l==="PC"?"dk":"mtWeb"},D=()=>{const l=new URL(`${m}/${A}/profile-menu?env=${u}`);l.searchParams.append("device",W()),fetch(l.href).then(f=>f.json()).then(f=>{n(5,v=f),I()}).catch(f=>{console.error("Error getting menu items",f)})},O=()=>{let l=new URL(`${o}/v1/player/${y}/profile`);l.searchParams.append("userRoles",h);let f={method:"GET",headers:{"X-SessionID":p}};fetch(l.href,f).then(P=>P.json()).then(P=>{n(7,x=P.username),n(8,C=P.email)},P=>{console.error(P)})},F=l=>{window.postMessage({type:"ChangeAccountPage",page:l},window.location.href),n(6,i=l.id)},I=()=>{var l;n(6,i=(l=v.find(f=>f.path.includes(s)))==null?void 0:l.id)},U=()=>{window.postMessage({type:"GoToHomepage"},window.location.href)},j=()=>{X(A)},R=()=>{O()},q=()=>{let l=document.createElement("style");l.innerHTML=M,c.appendChild(l)},G=()=>{let l=new URL(_),f=document.createElement("style");fetch(l.href).then(P=>P.text()).then(P=>{f.innerHTML=P,setTimeout(()=>{c.appendChild(f)},1)})};e.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));const N=l=>F(l);function V(l){e.binding_callbacks[l?"unshift":"push"](()=>{c=l,n(4,c)})}return a.$$set=l=>{"endpoint"in l&&n(1,o=l.endpoint),"cmsendpoint"in l&&n(14,m=l.cmsendpoint),"env"in l&&n(15,u=l.env),"session"in l&&n(0,p=l.session),"playerid"in l&&n(16,y=l.playerid),"lang"in l&&n(17,A=l.lang),"selecteditem"in l&&n(18,b=l.selecteditem),"userroles"in l&&n(19,h=l.userroles),"clientstyling"in l&&n(2,M=l.clientstyling),"clientstylingurl"in l&&n(3,_=l.clientstylingurl),"translationurl"in l&&n(20,d=l.translationurl),"activemenuitem"in l&&n(21,s=l.activemenuitem)},a.$$.update=()=>{a.$$.dirty[0]&131072&&A&&j(),a.$$.dirty[0]&196611&&o&&p&&y&&A&&R(),a.$$.dirty[0]&180224&&m&&A&&u&&D(),a.$$.dirty[0]&2097152&&s&&I(),a.$$.dirty[0]&24&&_&&c&&G(),a.$$.dirty[0]&20&&M&&c&&q(),a.$$.dirty[0]&1048576&&d&&S()},[p,o,M,_,c,v,i,x,C,r,g,z,F,U,m,u,y,A,b,h,d,s,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;