@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 $({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-CiGWLvn2.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-FhMXdXTq.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-g68bup",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#666}.svelte-g68bup.svelte-g68bup,.svelte-g68bup.svelte-g68bup::before,.svelte-g68bup.svelte-g68bup::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.GamingLimitsWrapper.svelte-g68bup.svelte-g68bup{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.svelte-g68bup.svelte-g68bup{padding:20px 15px}.GamingLimitsWrapper.GamingLimitsWrapperMobile.svelte-g68bup .GamingLimitsContent.svelte-g68bup,.GamingLimitsWrapper.GamingLimitsWrapperMobile.svelte-g68bup .PlayerAccountGamingLmitsWrapper2.svelte-g68bup,.GamingLimitsWrapper.GamingLimitsWrapperMobile.svelte-g68bup .LimitsTab.svelte-g68bup{flex-direction:column;width:100%;height:fit-content;padding:5px 0;font-size:10px;margin-right:5px}.GamingLimitsWrapper.svelte-g68bup .GamingLimitsContent.svelte-g68bup{display:flex;flex-direction:row}.GamingLimitsWrapper.svelte-g68bup .TabsContainer.svelte-g68bup,.GamingLimitsWrapper.svelte-g68bup .LimitsTab.svelte-g68bup{display:flex;flex-direction:column;align-items:center;flex-direction:row}.GamingLimitsWrapper.svelte-g68bup .TabsContainer.svelte-g68bup{height:50px;margin-bottom:12px;cursor:pointer;justify-content:left;color:var(--emw--color-typography-contrast, #444444)}.GamingLimitsWrapper.svelte-g68bup .LimitsTab.svelte-g68bup{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.svelte-g68bup .Selected.svelte-g68bup{color:var(--emw--color-typpgraphy, #FFFFFF);background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C))}.GamingLimitsWrapper.svelte-g68bup .PlayerAccountGamingLmitsWrapper2.svelte-g68bup{margin-bottom:20px;width:65%}.Hidden.svelte-g68bup.svelte-g68bup{display:none}h2.svelte-g68bup.svelte-g68bup{margin:20px 0}.MenuReturnButton.svelte-g68bup.svelte-g68bup{color:var(--emfe-w-pam-color-primary, #22B04E);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-g68bup svg.svelte-g68bup{fill:var(--emfe-w-pam-color-primary, #22B04E)}.GamingLimitsTitle.svelte-g68bup.svelte-g68bup{font-size:26px;color:var(--emfe-w-pam-color-primary, #22B04E);font-weight:400}.GamingLimitsTitleMobile.svelte-g68bup.svelte-g68bup{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,m,u,c,o,p,g=n[21]("titleLimitsWrapper2")+"",b,y,d;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));}"),m=e.svg_element("g"),u=e.svg_element("g"),c=e.svg_element("path"),o=e.space(),p=e.element("h2"),b=e.text(g),e.attr(l,"class","svelte-g68bup"),e.attr(s,"class","svelte-g68bup"),e.attr(c,"class","aaa svelte-g68bup"),e.attr(c,"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(c,"transform","translate(15 15) rotate(180)"),e.attr(u,"transform","translate(20 158)"),e.attr(u,"class","svelte-g68bup"),e.attr(m,"transform","translate(-20 -158)"),e.attr(m,"class","svelte-g68bup"),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(i,"class","svelte-g68bup"),e.attr(p,"class","GamingLimitsTitleMobile svelte-g68bup"),e.attr(t,"class","MenuReturnButton svelte-g68bup"),e.attr(t,"part","MenuReturnButton")},m(_,h){e.insert(_,t,h),e.append(t,i),e.append(i,s),e.append(s,l),e.append(l,r),e.append(i,m),e.append(m,u),e.append(u,c),e.append(t,o),e.append(t,p),e.append(p,b),y||(d=e.listen(t,"click",n[29]),y=!0)},p(_,h){h[0]&2097152&&g!==(g=_[21]("titleLimitsWrapper2")+"")&&e.set_data(b,g)},d(_){_&&e.detach(t),y=!1,d()}}}function se(n){let t,i,s,l,r=n[22].length>1&&ae(n),m=e.ensure_array_like(n[22]),u=[];for(let o=0;o<m.length;o+=1)u[o]=D(j(n,m,o));let c=n[6]==="true"&&q(n);return{c(){r&&r.c(),t=e.space(),i=e.element("div"),s=e.element("div");for(let o=0;o<u.length;o+=1)u[o].c();l=e.space(),c&&c.c(),e.attr(s,"class","PlayerAccountGamingLmitsWrapper2 svelte-g68bup"),e.attr(i,"class","GamingLimitsContent svelte-g68bup")},m(o,p){r&&r.m(o,p),e.insert(o,t,p),e.insert(o,i,p),e.append(i,s);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(s,null);n[32](s),e.append(i,l),c&&c.m(i,null)},p(o,p){if(o[22].length>1&&r.p(o,p),p[0]&1588671){m=e.ensure_array_like(o[22]);let g;for(g=0;g<m.length;g+=1){const b=j(o,m,g);u[g]?u[g].p(b,p):(u[g]=D(b),u[g].c(),u[g].m(s,null))}for(;g<u.length;g+=1)u[g].d(1);u.length=m.length}o[6]==="true"?c?c.p(o,p):(c=q(o),c.c(),c.m(i,null)):c&&(c.d(1),c=null)},d(o){o&&(e.detach(t),e.detach(i)),r&&r.d(o),e.destroy_each(u,o),n[32](null),c&&c.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 svelte-g68bup")},m(l,r){e.insert(l,t,r);for(let m=0;m<s.length;m+=1)s[m]&&s[m].m(t,null);n[31](t)},p(l,r){if(r[0]&21102592){i=e.ensure_array_like(l[22]);let m;for(m=0;m<i.length;m+=1){const u=z(l,i,m);s[m]?s[m].p(u,r):(s[m]=O(u),s[m].c(),s[m].m(t,null))}for(;m<s.length;m+=1)s[m].d(1);s.length=i.length}},d(l){l&&e.detach(t),e.destroy_each(s,l),n[31](null)}}}function O(n){var u;let t,i=((u=n[17][n[42]])!=null?u:n[43])+"",s,l,r;function m(){return n[30](n[42])}return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","LimitsTab svelte-g68bup")},m(c,o){e.insert(c,t,o),e.append(t,s),l||(r=e.listen(t,"click",m),l=!0)},p(c,o){var p;n=c,o[0]&131072&&i!==(i=((p=n[17][n[42]])!=null?p:n[43])+"")&&e.set_data(s,i)},d(c){c&&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 svelte-g68bup"),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]),e.set_custom_element_data(t,"class","svelte-g68bup")},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,m,u,c=n[21]("titleLimitsWrapper2")+"",o,p,g=n[23]&&ne(n);function b(_,h){return _[14]?le:se}let y=b(n),d=y(n);return{c(){t=e.element("meta"),i=e.space(),s=e.element("div"),l=e.element("div"),r=e.element("div"),g&&g.c(),m=e.space(),u=e.element("h2"),o=e.text(c),p=e.space(),d.c(),e.attr(t,"name","viewport"),e.attr(t,"content","width=device-width, initial-scale=1"),e.attr(t,"class","svelte-g68bup"),e.attr(u,"class","GamingLimitsTitle "+(n[23]?"Hidden":"")+" svelte-g68bup"),e.attr(r,"class","TitleSection svelte-g68bup"),e.attr(l,"class","GamingLimitsWrapper "+(n[23]?"GamingLimitsWrapperMobile":"")+" svelte-g68bup"),e.attr(s,"class","svelte-g68bup")},m(_,h){e.append(te.head,t),e.insert(_,i,h),e.insert(_,s,h),e.append(s,l),e.append(l,r),g&&g.m(r,null),e.append(r,m),e.append(r,u),e.append(u,o),e.append(l,p),d.m(l,null),n[33](s)},p(_,h){_[23]&&g.p(_,h),h[0]&2097152&&c!==(c=_[21]("titleLimitsWrapper2")+"")&&e.set_data(o,c),y===(y=b(_))&&d?d.p(_,h):(d.d(1),d=y(_),d&&(d.c(),d.m(l,null)))},i:e.noop,o:e.noop,d(_){_&&(e.detach(i),e.detach(s)),e.detach(t),g&&g.d(),d.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:m=""}=t,{endpoint:u=""}=t,{currency:c=""}=t,{apiversion:o=""}=t,{tablabels:p=""}=t,{historyenabled:g="true"}=t,{enablecompliancetext:b="false"}=t,{deletelimit:y=""}=t,{limitsamount:d=""}=t,{limitsperiods:_=""}=t,{numberofentries:h=""}=t,{customcurrencysymbols:A=""}=t,{clientstyling:W=""}=t,{clientstylingurl:k=""}=t,{translationurl:B=""}=t;$({withLocale:"en",translations:{}});let E=!0,w,M=[],P,L,v,G,T,N=window.navigator.userAgent,F=e.getDevice(N)!=="PC";Object.keys(R).forEach(a=>{ee(a,R[a])});const U=(a,f)=>{if(i(19,G=a.replace(/\s/g,"").split("|")),i(20,T=f.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(d,_),d.split("|").forEach(f=>{M.includes(f)||M.push(f)}),i(17,P=p.split(",").map(f=>f.trim())),i(14,E=!1)},C=a=>{if(L.children.length>0)for(let f=0;f<L.children.length;f++)a===f?(L.children[f].classList.remove("Hidden"),v==null||v.children[f].classList.add("Selected")):(L.children[f].classList.add("Hidden"),v==null||v.children[f].classList.remove("Selected"))},H=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:F},window.location.href)},Z=()=>{let a=document.createElement("style");a.innerHTML=W,w.appendChild(a)},J=()=>{let a=new URL(k),f=document.createElement("style");fetch(a.href).then(S=>S.text()).then(S=>{f.innerHTML=S,setTimeout(()=>{w.appendChild(f)},1)})};e.onMount(()=>()=>{i(16,L=null),i(18,v=null)});const K=()=>H(),Q=a=>C(a);function X(a){e.binding_callbacks[a?"unshift":"push"](()=>{v=a,i(18,v)})}function Y(a){e.binding_callbacks[a?"unshift":"push"](()=>{L=a,i(16,L)})}function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{w=a,i(15,w)})}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,m=a.session),"endpoint"in a&&i(3,u=a.endpoint),"currency"in a&&i(4,c=a.currency),"apiversion"in a&&i(5,o=a.apiversion),"tablabels"in a&&i(26,p=a.tablabels),"historyenabled"in a&&i(6,g=a.historyenabled),"enablecompliancetext"in a&&i(7,b=a.enablecompliancetext),"deletelimit"in a&&i(8,y=a.deletelimit),"limitsamount"in a&&i(27,d=a.limitsamount),"limitsperiods"in a&&i(28,_=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&&m&&u&&p&&l&&o&&V(),n.$$.dirty[0]&81920&&L&&!E&&C(0),n.$$.dirty[0]&36864&&k&&w&&J(),n.$$.dirty[0]&34816&&W&&w&&Z()},[l,r,m,u,c,o,g,b,y,h,A,W,k,B,E,w,L,P,v,G,T,s,M,F,C,H,p,d,_,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 ae, $ as oe, S as ie, i as ue, f as F, c as ve, s as me, b as de, e as w, k as L, o as j, p as B, q as ge, u as R, v as fe, x as ye, y as pe, K as N, d as k, t as H, g as i, l as c, n as z, L as he, w as E, m as W, r as Ae, j as b, X as q } from "./GeneralLogout-DtE4YABi.js";
2
+ function X(n, e) {
3
+ ae(n, e);
4
+ }
5
+ function be(n) {
6
+ oe.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 (s) {
46
+ 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"))
47
+ return !1;
48
+ throw s;
49
+ }
50
+ };
51
+ };
52
+ customElements.define = n(customElements.define), import("./GeneralLogout-DtE4YABi.js").then((e) => e.a2).then(({ default: e }) => {
53
+ !customElements.get("general-logout") && customElements.define("general-logout", e.element);
54
+ });
55
+ }
56
+ function Me(n) {
57
+ de(n, "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}');
58
+ }
59
+ function V(n, e, t) {
60
+ const s = n.slice();
61
+ return s[37] = e[t], s;
62
+ }
63
+ function Pe(n) {
64
+ let e, t, s, r, m, v, g, p, M, P, h, x, A = (
65
+ /*isMobile*/
66
+ n[10] && we(n)
67
+ ), d = (
68
+ /*isMobile*/
69
+ n[10] && xe(n)
70
+ ), u = N(
71
+ /*menuItems*/
72
+ n[5]
73
+ ), o = [];
74
+ for (let a = 0; a < u.length; a += 1)
75
+ o[a] = Z(V(n, u, a));
76
+ let I = !/*isMobile*/
77
+ n[10] && _e(n);
78
+ return {
79
+ c() {
80
+ e = w("div"), t = w("div"), A && A.c(), s = k(), r = w("p"), m = H(
81
+ /*profileUsername*/
82
+ n[7]
83
+ ), v = k(), g = w("p"), p = H(
84
+ /*profileEmail*/
85
+ n[8]
86
+ ), M = k(), d && d.c(), P = k(), h = w("div");
87
+ for (let a = 0; a < o.length; a += 1)
88
+ o[a].c();
89
+ x = k(), I && I.c(), i(r, "class", "PlayerAccountMenuUser svelte-1snu0cv"), i(g, "class", "PlayerAccountMenuEmail svelte-1snu0cv"), i(t, "class", "PlayerAccountMenuHeader " + /*isMobile*/
90
+ (n[10] ? "PlayerAccountMenuHeaderMobile" : "") + " svelte-1snu0cv"), i(h, "class", "PlayerAccountMenuList svelte-1snu0cv"), i(e, "class", "PlayerAccountMenuContainer " + /*isMobile*/
91
+ (n[10] ? "PlayerAccountMobileContainer" : "") + " " + /*mediaQuery*/
92
+ (n[11].matches && /*isMobile*/
93
+ n[10] ? "PlayerAccountTabletContainer" : "") + " svelte-1snu0cv");
94
+ },
95
+ m(a, C) {
96
+ L(a, e, C), c(e, t), A && A.m(t, null), c(t, s), c(t, r), c(r, m), c(t, v), c(t, g), c(g, p), c(t, M), d && d.m(t, null), c(e, P), c(e, h);
97
+ for (let f = 0; f < o.length; f += 1)
98
+ o[f] && o[f].m(h, null);
99
+ c(e, x), I && I.m(e, null);
100
+ },
101
+ p(a, C) {
102
+ if (
103
+ /*isMobile*/
104
+ a[10] && A.p(a, C), C[0] & /*profileUsername*/
105
+ 128 && z(
106
+ m,
107
+ /*profileUsername*/
108
+ a[7]
109
+ ), C[0] & /*profileEmail*/
110
+ 256 && z(
111
+ p,
112
+ /*profileEmail*/
113
+ a[8]
114
+ ), /*isMobile*/
115
+ a[10] && d.p(a, C), C[0] & /*selectedItem, menuItems, isMobile, openAccountSection*/
116
+ 5216
117
+ ) {
118
+ u = N(
119
+ /*menuItems*/
120
+ a[5]
121
+ );
122
+ let f;
123
+ for (f = 0; f < u.length; f += 1) {
124
+ const T = V(a, u, f);
125
+ o[f] ? o[f].p(T, C) : (o[f] = Z(T), o[f].c(), o[f].m(h, null));
126
+ }
127
+ for (; f < o.length; f += 1)
128
+ o[f].d(1);
129
+ o.length = u.length;
130
+ }
131
+ /*isMobile*/
132
+ a[10] || I.p(a, C);
133
+ },
134
+ d(a) {
135
+ a && B(e), A && A.d(), d && d.d(), he(o, a), I && I.d();
136
+ }
137
+ };
138
+ }
139
+ function we(n) {
140
+ let e, t, s, r, m, v, g, p, M, P, h = (
141
+ /*$_*/
142
+ n[9]("title") + ""
143
+ ), x, A, d;
144
+ return {
145
+ c() {
146
+ e = w("div"), t = E("svg"), s = E("defs"), r = E("style"), m = H(".aaa{fill:var(--emfe-w-color-white, #FFFFFF);}"), v = E("g"), g = E("g"), p = E("path"), M = k(), P = w("h3"), x = H(h), i(p, "class", "aaa"), i(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), i(p, "transform", "translate(15 15) rotate(180)"), i(g, "transform", "translate(20 158)"), i(v, "transform", "translate(-20 -158)"), i(t, "xmlns", "http://www.w3.org/2000/svg"), i(t, "width", "15"), i(t, "height", "15"), i(t, "viewBox", "0 0 15 15"), i(P, "class", "PlayerAccountMenuCategoryTitle svelte-1snu0cv"), i(e, "class", "PlayerAccountMenuCategoryWrapper svelte-1snu0cv");
147
+ },
148
+ m(u, o) {
149
+ L(u, e, o), c(e, t), c(t, s), c(s, r), c(r, m), c(t, v), c(v, g), c(g, p), c(e, M), c(e, P), c(P, x), A || (d = [
150
+ W(
151
+ t,
152
+ "click",
153
+ /*goToHome*/
154
+ n[13]
155
+ ),
156
+ W(
157
+ P,
158
+ "click",
159
+ /*goToHome*/
160
+ n[13]
161
+ )
162
+ ], A = !0);
163
+ },
164
+ p(u, o) {
165
+ o[0] & /*$_*/
166
+ 512 && h !== (h = /*$_*/
167
+ u[9]("title") + "") && z(x, h);
168
+ },
169
+ d(u) {
170
+ u && B(e), A = !1, Ae(d);
171
+ }
172
+ };
173
+ }
174
+ function xe(n) {
175
+ let e, t;
176
+ return {
177
+ c() {
178
+ e = w("div"), t = w("general-logout"), b(
179
+ t,
180
+ "endpoint",
181
+ /*endpoint*/
182
+ n[1]
183
+ ), b(
184
+ t,
185
+ "session",
186
+ /*session*/
187
+ n[0]
188
+ ), b(t, "buttonlocation", "PlayerAccountMenu"), b(
189
+ t,
190
+ "clientstyling",
191
+ /*clientstyling*/
192
+ n[2]
193
+ ), b(
194
+ t,
195
+ "clientstylingurl",
196
+ /*clientstylingurl*/
197
+ n[3]
198
+ ), i(e, "class", "PlayerAccountLogOutArea svelte-1snu0cv");
199
+ },
200
+ m(s, r) {
201
+ L(s, e, r), c(e, t);
202
+ },
203
+ p(s, r) {
204
+ r[0] & /*endpoint*/
205
+ 2 && b(
206
+ t,
207
+ "endpoint",
208
+ /*endpoint*/
209
+ s[1]
210
+ ), r[0] & /*session*/
211
+ 1 && b(
212
+ t,
213
+ "session",
214
+ /*session*/
215
+ s[0]
216
+ ), r[0] & /*clientstyling*/
217
+ 4 && b(
218
+ t,
219
+ "clientstyling",
220
+ /*clientstyling*/
221
+ s[2]
222
+ ), r[0] & /*clientstylingurl*/
223
+ 8 && b(
224
+ t,
225
+ "clientstylingurl",
226
+ /*clientstylingurl*/
227
+ s[3]
228
+ );
229
+ },
230
+ d(s) {
231
+ s && B(e);
232
+ }
233
+ };
234
+ }
235
+ function Z(n) {
236
+ let e, t, s, r, m, v, g = (
237
+ /*menuItem*/
238
+ n[37].label + ""
239
+ ), p, M, P, h, x;
240
+ function A() {
241
+ return (
242
+ /*click_handler*/
243
+ n[22](
244
+ /*menuItem*/
245
+ n[37]
246
+ )
247
+ );
248
+ }
249
+ return {
250
+ c() {
251
+ e = w("div"), t = w("p"), s = w("img"), m = k(), v = w("span"), p = H(g), M = k(), i(s, "class", "PlayerAccountMenuItemIcon " + /*isMobile*/
252
+ (n[10] ? "PlayerAccountMenuItemIconMobile" : "") + " svelte-1snu0cv"), q(s.src, r = /*menuItem*/
253
+ n[37].img) || i(s, "src", r), i(v, "class", "PlayerAccountMenuItemTitle svelte-1snu0cv"), i(t, "class", "PlayerAccountMenuItemWrapper svelte-1snu0cv"), i(e, "class", P = "PlayerAccountMenuItemBox " + /*selectedItem*/
254
+ (n[6] === /*menuItem*/
255
+ n[37].id && !/*isMobile*/
256
+ n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-1snu0cv");
257
+ },
258
+ m(d, u) {
259
+ L(d, e, u), c(e, t), c(t, s), c(t, m), c(t, v), c(v, p), c(e, M), h || (x = W(e, "click", A), h = !0);
260
+ },
261
+ p(d, u) {
262
+ n = d, u[0] & /*menuItems*/
263
+ 32 && !q(s.src, r = /*menuItem*/
264
+ n[37].img) && i(s, "src", r), u[0] & /*menuItems*/
265
+ 32 && g !== (g = /*menuItem*/
266
+ n[37].label + "") && z(p, g), u[0] & /*selectedItem, menuItems*/
267
+ 96 && P !== (P = "PlayerAccountMenuItemBox " + /*selectedItem*/
268
+ (n[6] === /*menuItem*/
269
+ n[37].id && !/*isMobile*/
270
+ n[10] ? "PlayerAccountMenuActiveItemBox" : "") + " svelte-1snu0cv") && i(e, "class", P);
271
+ },
272
+ d(d) {
273
+ d && B(e), h = !1, x();
274
+ }
275
+ };
276
+ }
277
+ function _e(n) {
278
+ let e, t;
279
+ return {
280
+ c() {
281
+ e = w("div"), t = w("general-logout"), b(
282
+ t,
283
+ "endpoint",
284
+ /*endpoint*/
285
+ n[1]
286
+ ), b(
287
+ t,
288
+ "session",
289
+ /*session*/
290
+ n[0]
291
+ ), b(t, "buttonlocation", "PlayerAccountMenu"), b(
292
+ t,
293
+ "clientstyling",
294
+ /*clientstyling*/
295
+ n[2]
296
+ ), b(
297
+ t,
298
+ "clientstylingurl",
299
+ /*clientstylingurl*/
300
+ n[3]
301
+ ), i(e, "class", "PlayerAccountLogOutArea svelte-1snu0cv");
302
+ },
303
+ m(s, r) {
304
+ L(s, e, r), c(e, t);
305
+ },
306
+ p(s, r) {
307
+ r[0] & /*endpoint*/
308
+ 2 && b(
309
+ t,
310
+ "endpoint",
311
+ /*endpoint*/
312
+ s[1]
313
+ ), r[0] & /*session*/
314
+ 1 && b(
315
+ t,
316
+ "session",
317
+ /*session*/
318
+ s[0]
319
+ ), r[0] & /*clientstyling*/
320
+ 4 && b(
321
+ t,
322
+ "clientstyling",
323
+ /*clientstyling*/
324
+ s[2]
325
+ ), r[0] & /*clientstylingurl*/
326
+ 8 && b(
327
+ t,
328
+ "clientstylingurl",
329
+ /*clientstylingurl*/
330
+ s[3]
331
+ );
332
+ },
333
+ d(s) {
334
+ s && B(e);
335
+ }
336
+ };
337
+ }
338
+ function Ce(n) {
339
+ let e;
340
+ function t(m, v) {
341
+ return Pe;
342
+ }
343
+ let r = t()(n);
344
+ return {
345
+ c() {
346
+ e = w("div"), r.c();
347
+ },
348
+ m(m, v) {
349
+ L(m, e, v), r.m(e, null), n[23](e);
350
+ },
351
+ p(m, v) {
352
+ r.p(m, v);
353
+ },
354
+ i: j,
355
+ o: j,
356
+ d(m) {
357
+ m && B(e), r.d(), n[23](null);
358
+ }
359
+ };
360
+ }
361
+ function Fe(n, e, t) {
362
+ let s;
363
+ ge(n, pe, (l) => t(9, s = l));
364
+ let { endpoint: r = "" } = e, { cmsendpoint: m = "" } = e, { env: v = "" } = e, { session: g = "" } = e, { playerid: p = "" } = e, { lang: M = "en" } = e, { selecteditem: P = "" } = e, { userroles: h = "" } = e, { clientstyling: x = "" } = e, { clientstylingurl: A = "" } = e, { translationurl: d = "" } = e, { activemenuitem: u = "" } = e, o, I = [], a, C = window.navigator.userAgent, f = R(C) !== "PC", T = "", S = "";
365
+ const K = window.matchMedia("(min-width: 768px)"), Q = () => {
366
+ fetch(d).then((y) => y.json()).then((y) => {
367
+ Object.keys(y).forEach((_) => {
368
+ X(_, y[_]);
369
+ });
370
+ }).catch((y) => {
371
+ console.error(y);
372
+ });
373
+ };
374
+ Object.keys(G).forEach((l) => {
375
+ X(l, G[l]);
376
+ });
377
+ const U = (l) => {
378
+ if (l.data)
379
+ switch (l.data.type) {
380
+ case "AccountMenuDetails":
381
+ availableMenuItemsArray = l.data.accountMenuInfo;
382
+ break;
383
+ case "UserSessionID":
384
+ t(0, g = l.data.session);
385
+ break;
386
+ }
387
+ }, J = () => {
388
+ let l = R(C);
389
+ if (l)
390
+ return l === "PC" ? "dk" : "mtWeb";
391
+ }, Y = () => {
392
+ const l = new URL(`${m}/${M}/profile-menu?env=${v}`);
393
+ l.searchParams.append("device", J()), fetch(l.href).then((y) => y.json()).then((y) => {
394
+ t(5, I = y), O();
395
+ }).catch((y) => {
396
+ console.error("Error getting menu items", y);
397
+ });
398
+ }, $ = () => {
399
+ let l = new URL(`${r}/v1/player/${p}/profile`);
400
+ l.searchParams.append("userRoles", h);
401
+ let y = {
402
+ method: "GET",
403
+ headers: { "X-SessionID": g }
404
+ };
405
+ fetch(l.href, y).then((_) => _.json()).then(
406
+ (_) => {
407
+ t(7, T = _.username), t(8, S = _.email);
408
+ },
409
+ (_) => {
410
+ console.error(_);
411
+ }
412
+ );
413
+ }, D = (l) => {
414
+ window.postMessage({ type: "ChangeAccountPage", page: l }, window.location.href), t(6, a = l.id);
415
+ }, O = () => {
416
+ var l;
417
+ t(6, a = (l = I.find((y) => y.path.includes(u))) == null ? void 0 : l.id);
418
+ }, ee = () => {
419
+ window.postMessage({ type: "GoToHomepage" }, window.location.href);
420
+ }, te = () => {
421
+ be(M);
422
+ }, ne = () => {
423
+ $();
424
+ }, le = () => {
425
+ let l = document.createElement("style");
426
+ l.innerHTML = x, o.appendChild(l);
427
+ }, se = () => {
428
+ let l = new URL(A), y = document.createElement("style");
429
+ fetch(l.href).then((_) => _.text()).then((_) => {
430
+ y.innerHTML = _, setTimeout(
431
+ () => {
432
+ o.appendChild(y);
433
+ },
434
+ 1
435
+ );
436
+ });
437
+ };
438
+ fe(() => (window.addEventListener("message", U, !1), () => {
439
+ window.removeEventListener("message", U);
440
+ }));
441
+ const re = (l) => D(l);
442
+ function ce(l) {
443
+ ye[l ? "unshift" : "push"](() => {
444
+ o = l, t(4, o);
445
+ });
446
+ }
447
+ return n.$$set = (l) => {
448
+ "endpoint" in l && t(1, r = l.endpoint), "cmsendpoint" in l && t(14, m = l.cmsendpoint), "env" in l && t(15, v = l.env), "session" in l && t(0, g = l.session), "playerid" in l && t(16, p = l.playerid), "lang" in l && t(17, M = l.lang), "selecteditem" in l && t(18, P = l.selecteditem), "userroles" in l && t(19, h = l.userroles), "clientstyling" in l && t(2, x = l.clientstyling), "clientstylingurl" in l && t(3, A = l.clientstylingurl), "translationurl" in l && t(20, d = l.translationurl), "activemenuitem" in l && t(21, u = l.activemenuitem);
449
+ }, n.$$.update = () => {
450
+ n.$$.dirty[0] & /*lang*/
451
+ 131072 && M && te(), n.$$.dirty[0] & /*endpoint, session, playerid, lang*/
452
+ 196611 && r && g && p && M && ne(), n.$$.dirty[0] & /*cmsendpoint, lang, env*/
453
+ 180224 && m && M && v && Y(), n.$$.dirty[0] & /*activemenuitem*/
454
+ 2097152 && u && O(), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
455
+ 24 && A && o && se(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
456
+ 20 && x && o && le(), n.$$.dirty[0] & /*translationurl*/
457
+ 1048576 && d && Q();
458
+ }, [
459
+ g,
460
+ r,
461
+ x,
462
+ A,
463
+ o,
464
+ I,
465
+ a,
466
+ T,
467
+ S,
468
+ s,
469
+ f,
470
+ K,
471
+ D,
472
+ ee,
473
+ m,
474
+ v,
475
+ p,
476
+ M,
477
+ P,
478
+ h,
479
+ d,
480
+ u,
481
+ re,
482
+ ce
483
+ ];
484
+ }
485
+ class Ie extends ie {
486
+ constructor(e) {
487
+ super(), ue(
488
+ this,
489
+ e,
490
+ Fe,
491
+ Ce,
492
+ me,
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
+ Me,
508
+ [-1, -1]
509
+ );
510
+ }
511
+ get endpoint() {
512
+ return this.$$.ctx[1];
513
+ }
514
+ set endpoint(e) {
515
+ this.$$set({ endpoint: e }), F();
516
+ }
517
+ get cmsendpoint() {
518
+ return this.$$.ctx[14];
519
+ }
520
+ set cmsendpoint(e) {
521
+ this.$$set({ cmsendpoint: e }), F();
522
+ }
523
+ get env() {
524
+ return this.$$.ctx[15];
525
+ }
526
+ set env(e) {
527
+ this.$$set({ env: e }), F();
528
+ }
529
+ get session() {
530
+ return this.$$.ctx[0];
531
+ }
532
+ set session(e) {
533
+ this.$$set({ session: e }), F();
534
+ }
535
+ get playerid() {
536
+ return this.$$.ctx[16];
537
+ }
538
+ set playerid(e) {
539
+ this.$$set({ playerid: e }), F();
540
+ }
541
+ get lang() {
542
+ return this.$$.ctx[17];
543
+ }
544
+ set lang(e) {
545
+ this.$$set({ lang: e }), F();
546
+ }
547
+ get selecteditem() {
548
+ return this.$$.ctx[18];
549
+ }
550
+ set selecteditem(e) {
551
+ this.$$set({ selecteditem: e }), F();
552
+ }
553
+ get userroles() {
554
+ return this.$$.ctx[19];
555
+ }
556
+ set userroles(e) {
557
+ this.$$set({ userroles: e }), F();
558
+ }
559
+ get clientstyling() {
560
+ return this.$$.ctx[2];
561
+ }
562
+ set clientstyling(e) {
563
+ this.$$set({ clientstyling: e }), F();
564
+ }
565
+ get clientstylingurl() {
566
+ return this.$$.ctx[3];
567
+ }
568
+ set clientstylingurl(e) {
569
+ this.$$set({ clientstylingurl: e }), F();
570
+ }
571
+ get translationurl() {
572
+ return this.$$.ctx[20];
573
+ }
574
+ set translationurl(e) {
575
+ this.$$set({ translationurl: e }), F();
576
+ }
577
+ get activemenuitem() {
578
+ return this.$$.ctx[21];
579
+ }
580
+ set activemenuitem(e) {
581
+ this.$$set({ activemenuitem: e }), F();
582
+ }
583
+ }
584
+ ve(Ie, { endpoint: {}, cmsendpoint: {}, env: {}, session: {}, playerid: {}, lang: {}, selecteditem: {}, userroles: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, activemenuitem: {} }, [], [], !0);
585
+ export {
586
+ Ie as default
587
+ };