@everymatrix/player-account-controller 1.51.0 → 1.52.0

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 (36) hide show
  1. package/components/{PlayerAccountController-DN9_dE-L.js → PlayerAccountController-By2xo9vF.js} +196 -172
  2. package/components/PlayerAccountController-TGyMaR8y.cjs +1 -0
  3. package/components/PlayerAccountGamingLimitsPage2Gm16-Bk3IO9F3.cjs +21 -0
  4. package/components/{PlayerAccountGamingLimitsPage2Gm16-B67NLFY_.js → PlayerAccountGamingLimitsPage2Gm16-DOrDUxtW.js} +750 -741
  5. package/components/{PlayerAccountGamingLimitsWrapper2-CpEUItxc.cjs → PlayerAccountGamingLimitsWrapper2-BSTh2bOQ.cjs} +1 -1
  6. package/components/{PlayerAccountGamingLimitsWrapper2-CGzfgsbf.js → PlayerAccountGamingLimitsWrapper2-CzuZD4DN.js} +1 -1
  7. package/components/{PlayerAccountSelfExclusion-Dj4pFUEZ.js → PlayerAccountSelfExclusion-DqsaRZd-.js} +1350 -1345
  8. package/components/{PlayerAccountSelfExclusion-CkKkedxp.cjs → PlayerAccountSelfExclusion-ZG_OgxFL.cjs} +175 -175
  9. package/components/PlayerAccountTimeout-Bv1n-ekz.js +659 -0
  10. package/components/PlayerAccountTimeout-Xd8jT-L0.cjs +1 -0
  11. package/components/PlayerBonusHistory-BefrVGm1.cjs +1 -0
  12. package/components/{PlayerBonusHistory-C437SNdz.js → PlayerBonusHistory-CgmyowiO.js} +2 -2
  13. package/components/{PlayerDeposit-B_VzcGon.cjs → PlayerDeposit-3qNMb75V.cjs} +1 -1
  14. package/components/{PlayerDeposit-B8pGzPJ5.js → PlayerDeposit-B75tYEgl.js} +6 -6
  15. package/components/PlayerGamingHistory-BQUPgJN5.cjs +1 -0
  16. package/components/{PlayerGamingHistory-BXYkdEzG.js → PlayerGamingHistory-r_Ze8tP6.js} +43 -43
  17. package/components/PlayerPendingWithdrawals-BG3I8ifu.cjs +1 -0
  18. package/components/{PlayerPendingWithdrawals-Z0kF_zqo.js → PlayerPendingWithdrawals-BSTgce9H.js} +1 -1
  19. package/components/{PlayerProfileInfo-CBXeUfyO.js → PlayerProfileInfo-Buu-3zDr.js} +1 -1
  20. package/components/PlayerProfileInfo-CWTc0TRo.cjs +1 -0
  21. package/components/PlayerTransactionHistory-CJqhYnbs.cjs +1 -0
  22. package/components/{PlayerTransactionHistory-fcNe08kf.js → PlayerTransactionHistory-DllIB_qE.js} +11 -11
  23. package/components/{PlayerWithdrawal-dZ0Dfd2u.cjs → PlayerWithdrawal-GDc_7hZX.cjs} +1 -1
  24. package/components/{PlayerWithdrawal-_dZtzUGe.js → PlayerWithdrawal-t5mlX5CD.js} +13 -13
  25. package/es2015/player-account-controller.cjs +1 -1
  26. package/es2015/player-account-controller.js +1 -1
  27. package/package.json +1 -1
  28. package/components/PlayerAccountController-DkR5hfDe.cjs +0 -1
  29. package/components/PlayerAccountGamingLimitsPage2Gm16-lT9sWjHb.cjs +0 -21
  30. package/components/PlayerAccountTimeout-BtDp3SZn.cjs +0 -1
  31. package/components/PlayerAccountTimeout-CAzKEs5R.js +0 -458
  32. package/components/PlayerBonusHistory-CHYWDgxe.cjs +0 -1
  33. package/components/PlayerGamingHistory-Cbpm0HSE.cjs +0 -1
  34. package/components/PlayerPendingWithdrawals-JN84Pftx.cjs +0 -1
  35. package/components/PlayerProfileInfo-Bi_j5FDm.cjs +0 -1
  36. package/components/PlayerTransactionHistory-CFR4nRHc.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BW6b3iuS.cjs");function ee({withLocale:i,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function te(i,t){e.addMessages(i,t)}const F={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"},hr:{title:"Ograničenja"},"pt-br":{title:"Limites"},"es-mx":{title:"Límites"},tr:{title:"Sınırlar"},"en-us":{title:"Limits"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPage2Gm16-lT9sWjHb.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 i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsHistory2-BwSZ4liw.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}const{document:ne}=e.globals;function ie(i){e.append_styles(i,"svelte-r6lh3z",':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 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.LimitsWrapper{display:flex;flex-direction:column}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-300, #58586B);justify-content:center;background:var(--emw--color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));margin:0}')}function B(i,t,n){const l=i.slice();return l[41]=t[n],l[43]=n,l}function N(i,t,n){const l=i.slice();return l[44]=t[n],l[43]=n,l}function le(i){let t,n,l,s,r,o,c,u,m,d,_=i[22]("title")+"",b,y,g;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),s=e.svg_element("style"),r=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));}"),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(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(d,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(f,p){e.insert(f,t,p),e.append(t,n),e.append(n,l),e.append(l,s),e.append(s,r),e.append(n,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",i[30]),y=!0)},p(f,p){p[0]&4194304&&_!==(_=f[22]("title")+"")&&e.set_data(b,_)},d(f){f&&e.detach(t),y=!1,g()}}}function se(i){let t,n,l,s,r=i[23].length>1&&re(i),o=e.ensure_array_like(i[23]),c=[];for(let m=0;m<o.length;m+=1)c[m]=H(B(i,o,m));let u=i[6]==="true"&&q(i);return{c(){r&&r.c(),t=e.space(),n=e.element("div");for(let m=0;m<c.length;m+=1)c[m].c();l=e.space(),u&&u.c(),s=e.empty(),e.attr(n,"class","PlayerAccountGamingLmitsWrapper2")},m(m,d){r&&r.m(m,d),e.insert(m,t,d),e.insert(m,n,d);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(n,null);i[33](n),e.insert(m,l,d),u&&u.m(m,d),e.insert(m,s,d)},p(m,d){if(m[23].length>1&&r.p(m,d),d[0]&3177919){o=e.ensure_array_like(m[23]);let _;for(_=0;_<o.length;_+=1){const b=B(m,o,_);c[_]?c[_].p(b,d):(c[_]=H(b),c[_].c(),c[_].m(n,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(s.parentNode,s)):u&&(u.d(1),u=null)},d(m){m&&(e.detach(t),e.detach(n),e.detach(l),e.detach(s)),r&&r.d(m),e.destroy_each(c,m),i[33](null),u&&u.d(m)}}}function ae(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function re(i){let t,n=e.ensure_array_like(i[23]),l=[];for(let s=0;s<n.length;s+=1)l[s]=O(N(i,n,s));return{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();e.attr(t,"class","TabsContainer")},m(s,r){e.insert(s,t,r);for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(t,null);i[32](t)},p(s,r){if(r[0]&42205184){n=e.ensure_array_like(s[23]);let o;for(o=0;o<n.length;o+=1){const c=N(s,n,o);l[o]?l[o].p(c,r):(l[o]=O(c),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(s){s&&e.detach(t),e.destroy_each(l,s),i[32](null)}}}function O(i){var c;let t,n=((c=i[18][i[43]])!=null?c:i[44])+"",l,s,r;function o(){return i[31](i[43])}return{c(){t=e.element("div"),l=e.text(n),e.attr(t,"class","LimitsTab")},m(u,m){e.insert(u,t,m),e.append(t,l),s||(r=e.listen(t,"click",o),s=!0)},p(u,m){var d;i=u,m[0]&262144&&n!==(n=((d=i[18][i[43]])!=null?d:i[44])+"")&&e.set_data(l,n)},d(u){u&&e.detach(t),s=!1,r()}}}function H(i){let t,n,l;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",i[0]),e.set_custom_element_data(t,"currency",i[4]),e.set_custom_element_data(t,"amountsconfig",n=i[20][i[43]]),e.set_custom_element_data(t,"periodsconfig",l=i[21][i[43]]),e.set_custom_element_data(t,"limittabindex",i[43]+1),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"deletelimit",i[8]),e.set_custom_element_data(t,"enablecompliancetext",i[7]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(s,r){e.insert(s,t,r)},p(s,r){r[0]&1&&e.set_custom_element_data(t,"lang",s[0]),r[0]&16&&e.set_custom_element_data(t,"currency",s[4]),r[0]&1048576&&n!==(n=s[20][s[43]])&&e.set_custom_element_data(t,"amountsconfig",n),r[0]&2097152&&l!==(l=s[21][s[43]])&&e.set_custom_element_data(t,"periodsconfig",l),r[0]&2&&e.set_custom_element_data(t,"userid",s[1]),r[0]&256&&e.set_custom_element_data(t,"deletelimit",s[8]),r[0]&128&&e.set_custom_element_data(t,"enablecompliancetext",s[7]),r[0]&4&&e.set_custom_element_data(t,"session",s[2]),r[0]&8&&e.set_custom_element_data(t,"endpoint",s[3]),r[0]&32&&e.set_custom_element_data(t,"apiversion",s[5]),r[0]&4096&&e.set_custom_element_data(t,"clientstyling",s[12]),r[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",s[13]),r[0]&16384&&e.set_custom_element_data(t,"translationurl",s[14]),r[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",s[10]),r[0]&2048&&e.set_custom_element_data(t,"limitformat",s[11])},d(s){s&&e.detach(t)}}}function q(i){let t;return{c(){t=e.element("player-account-gaming-limits-history-2"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"numberofentries",i[9]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10])},m(n,l){e.insert(n,t,l)},p(n,l){l[0]&1&&e.set_custom_element_data(t,"lang",n[0]),l[0]&2&&e.set_custom_element_data(t,"userid",n[1]),l[0]&4&&e.set_custom_element_data(t,"session",n[2]),l[0]&8&&e.set_custom_element_data(t,"endpoint",n[3]),l[0]&32&&e.set_custom_element_data(t,"apiversion",n[5]),l[0]&512&&e.set_custom_element_data(t,"numberofentries",n[9]),l[0]&4096&&e.set_custom_element_data(t,"clientstyling",n[12]),l[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",n[13]),l[0]&16384&&e.set_custom_element_data(t,"translationurl",n[14]),l[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",n[10])},d(n){n&&e.detach(t)}}}function me(i){let t,n,l,s,r,o,c,u=i[22]("title")+"",m,d,_=i[24]&&le(i);function b(f,p){return f[15]?ae:se}let y=b(i),g=y(i);return{c(){t=e.element("meta"),n=e.space(),l=e.element("div"),s=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 "+(i[24]?"GamingLimitsTitleNone":"")),e.attr(r,"class","TitleSection"),e.attr(s,"class","GamingLimitsWrapper "+(i[24]?"GamingLimitsWrapperMobile":""))},m(f,p){e.append(ne.head,t),e.insert(f,n,p),e.insert(f,l,p),e.append(l,s),e.append(s,r),_&&_.m(r,null),e.append(r,o),e.append(r,c),e.append(c,m),e.append(s,d),g.m(s,null),i[34](l)},p(f,p){f[24]&&_.p(f,p),p[0]&4194304&&u!==(u=f[22]("title")+"")&&e.set_data(m,u),y===(y=b(f))&&g?g.p(f,p):(g.d(1),g=y(f),g&&(g.c(),g.m(s,null)))},i:e.noop,o:e.noop,d(f){f&&(e.detach(n),e.detach(l)),e.detach(t),_&&_.d(),g.d(),i[34](null)}}}function oe(i,t,n){let l;e.component_subscribe(i,e.$format,a=>n(22,l=a));let{lang:s=""}=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:p=""}=t,{customcurrencysymbols:D=""}=t,{limitformat:P=""}=t,{clientstyling:k=""}=t,{clientstylingurl:M=""}=t,{translationurl:W=""}=t;ee({withLocale:"en",translations:{}});let E=!0,L,C=[],R,v,w,T,G,U=window.navigator.userAgent,j=e.getDevice(U)!=="PC";Object.keys(F).forEach(a=>{te(a,F[a])});const V=(a,h)=>{if(n(20,T=a.replace(/\s/g,"").split("|")),n(21,G=h.replace(/\s/g,"").split("|")),T.length===0)throw new Error("Please provide a full limits configuration.");if(T.length!==G.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")},Z=()=>{V(g,f),g.split("|").forEach(h=>{C.includes(h)||C.push(h)}),n(18,R=d.split(",").map(h=>h.trim())),n(15,E=!1)},A=a=>{if(v.children.length>0)for(let h=0;h<v.children.length;h++)a===h?(v.children[h].classList.remove("hidden"),w==null||w.children[h].classList.add("selected")):(v.children[h].classList.add("hidden"),w==null||w.children[h].classList.remove("selected"))},z=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:j},window.location.href)},J=()=>{let a=document.createElement("style");a.innerHTML=k,L.appendChild(a)},K=()=>{let a=new URL(M),h=document.createElement("style");fetch(a.href).then(S=>S.text()).then(S=>{h.innerHTML=S,setTimeout(()=>{L.appendChild(h)},1)})};e.onMount(()=>()=>{n(17,v=null),n(19,w=null)});const Q=()=>z(),X=a=>A(a);function Y(a){e.binding_callbacks[a?"unshift":"push"](()=>{w=a,n(19,w)})}function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{v=a,n(17,v)})}function $(a){e.binding_callbacks[a?"unshift":"push"](()=>{L=a,n(16,L)})}return i.$$set=a=>{"lang"in a&&n(0,s=a.lang),"userid"in a&&n(1,r=a.userid),"session"in a&&n(2,o=a.session),"endpoint"in a&&n(3,c=a.endpoint),"currency"in a&&n(4,u=a.currency),"apiversion"in a&&n(5,m=a.apiversion),"tablabels"in a&&n(27,d=a.tablabels),"historyenabled"in a&&n(6,_=a.historyenabled),"enablecompliancetext"in a&&n(7,b=a.enablecompliancetext),"deletelimit"in a&&n(8,y=a.deletelimit),"limitsamount"in a&&n(28,g=a.limitsamount),"limitsperiods"in a&&n(29,f=a.limitsperiods),"numberofentries"in a&&n(9,p=a.numberofentries),"customcurrencysymbols"in a&&n(10,D=a.customcurrencysymbols),"limitformat"in a&&n(11,P=a.limitformat),"clientstyling"in a&&n(12,k=a.clientstyling),"clientstylingurl"in a&&n(13,M=a.clientstylingurl),"translationurl"in a&&n(14,W=a.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&134217775&&r&&o&&c&&d&&s&&m&&Z(),i.$$.dirty[0]&163840&&v&&!E&&A(0),i.$$.dirty[0]&73728&&M&&L&&K(),i.$$.dirty[0]&69632&&k&&L&&J()},[s,r,o,c,u,m,_,b,y,p,D,P,k,M,W,E,L,v,R,w,T,G,l,C,j,A,z,d,g,f,Q,X,Y,x,$]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,me,e.safe_not_equal,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:27,historyenabled:6,enablecompliancetext:7,deletelimit:8,limitsamount:28,limitsperiods:29,numberofentries:9,customcurrencysymbols:10,limitformat:11,clientstyling:12,clientstylingurl:13,translationurl:14},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[27]}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[28]}set limitsamount(t){this.$$set({limitsamount:t}),e.flush()}get limitsperiods(){return this.$$.ctx[29]}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 limitformat(){return this.$$.ctx[11]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},userid:{},session:{},endpoint:{},currency:{},apiversion:{},tablabels:{},historyenabled:{},enablecompliancetext:{},deletelimit:{},limitsamount:{},limitsperiods:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-BW6b3iuS.cjs");function ee({withLocale:i,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function te(i,t){e.addMessages(i,t)}const F={en:{title:"Limits"},"zh-hk":{title:"Limits"},fr:{title:"Limits"},ro:{title:"Limits"},es:{title:"Limits"},pt:{title:"Limits"},hr:{title:"Ograničenja"},"pt-br":{title:"Limites"},"es-mx":{title:"Límites"},tr:{title:"Sınırlar"},"en-us":{title:"Limits"}};if(typeof window!="undefined"){let i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsPage2Gm16-Bk3IO9F3.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 i=function(t){return function(...n){try{return t.apply(this,n)}catch(l){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"))return!1;throw l}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsHistory2-BwSZ4liw.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-history-2")&&customElements.define("player-account-gaming-limits-history-2",t.element)})}const{document:ne}=e.globals;function ie(i){e.append_styles(i,"svelte-r6lh3z",':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 50px 30px 50px}.GamingLimitsWrapper.GamingLimitsWrapperMobile{padding:20px 15px}.LimitsWrapper{display:flex;flex-direction:column}.TabsContainer{height:50px;display:flex;margin-bottom:12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-300, #58586B);justify-content:center;background:var(--emw--color-white, #FFFFFF);box-shadow:0 0.15rem 0.2rem 0 rgba(0, 0, 0, 0.12)}.LimitsTab{font-size:1.3rem;line-height:1.4rem;margin-bottom:3px;display:flex;justify-content:center;align-items:center;padding:0 1rem;box-sizing:content-box}.hidden{display:none}h2{margin:20px 0px}.PlayerAccountGamingLmitsWrapper2{margin-bottom:20px}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));color:var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));margin:0}')}function B(i,t,n){const l=i.slice();return l[41]=t[n],l[43]=n,l}function N(i,t,n){const l=i.slice();return l[44]=t[n],l[43]=n,l}function le(i){let t,n,l,s,r,o,c,u,m,d,_=i[22]("title")+"",b,y,g;return{c(){t=e.element("div"),n=e.svg_element("svg"),l=e.svg_element("defs"),s=e.svg_element("style"),r=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-pink-500, #D0046C));}"),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(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(d,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(f,p){e.insert(f,t,p),e.append(t,n),e.append(n,l),e.append(l,s),e.append(s,r),e.append(n,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",i[30]),y=!0)},p(f,p){p[0]&4194304&&_!==(_=f[22]("title")+"")&&e.set_data(b,_)},d(f){f&&e.detach(t),y=!1,g()}}}function se(i){let t,n,l,s,r=i[23].length>1&&re(i),o=e.ensure_array_like(i[23]),c=[];for(let m=0;m<o.length;m+=1)c[m]=H(B(i,o,m));let u=i[6]==="true"&&q(i);return{c(){r&&r.c(),t=e.space(),n=e.element("div");for(let m=0;m<c.length;m+=1)c[m].c();l=e.space(),u&&u.c(),s=e.empty(),e.attr(n,"class","PlayerAccountGamingLmitsWrapper2")},m(m,d){r&&r.m(m,d),e.insert(m,t,d),e.insert(m,n,d);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(n,null);i[33](n),e.insert(m,l,d),u&&u.m(m,d),e.insert(m,s,d)},p(m,d){if(m[23].length>1&&r.p(m,d),d[0]&3177919){o=e.ensure_array_like(m[23]);let _;for(_=0;_<o.length;_+=1){const b=B(m,o,_);c[_]?c[_].p(b,d):(c[_]=H(b),c[_].c(),c[_].m(n,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(s.parentNode,s)):u&&(u.d(1),u=null)},d(m){m&&(e.detach(t),e.detach(n),e.detach(l),e.detach(s)),r&&r.d(m),e.destroy_each(c,m),i[33](null),u&&u.d(m)}}}function ae(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function re(i){let t,n=e.ensure_array_like(i[23]),l=[];for(let s=0;s<n.length;s+=1)l[s]=O(N(i,n,s));return{c(){t=e.element("div");for(let s=0;s<l.length;s+=1)l[s].c();e.attr(t,"class","TabsContainer")},m(s,r){e.insert(s,t,r);for(let o=0;o<l.length;o+=1)l[o]&&l[o].m(t,null);i[32](t)},p(s,r){if(r[0]&42205184){n=e.ensure_array_like(s[23]);let o;for(o=0;o<n.length;o+=1){const c=N(s,n,o);l[o]?l[o].p(c,r):(l[o]=O(c),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(s){s&&e.detach(t),e.destroy_each(l,s),i[32](null)}}}function O(i){var c;let t,n=((c=i[18][i[43]])!=null?c:i[44])+"",l,s,r;function o(){return i[31](i[43])}return{c(){t=e.element("div"),l=e.text(n),e.attr(t,"class","LimitsTab")},m(u,m){e.insert(u,t,m),e.append(t,l),s||(r=e.listen(t,"click",o),s=!0)},p(u,m){var d;i=u,m[0]&262144&&n!==(n=((d=i[18][i[43]])!=null?d:i[44])+"")&&e.set_data(l,n)},d(u){u&&e.detach(t),s=!1,r()}}}function H(i){let t,n,l;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",i[0]),e.set_custom_element_data(t,"currency",i[4]),e.set_custom_element_data(t,"amountsconfig",n=i[20][i[43]]),e.set_custom_element_data(t,"periodsconfig",l=i[21][i[43]]),e.set_custom_element_data(t,"limittabindex",i[43]+1),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"deletelimit",i[8]),e.set_custom_element_data(t,"enablecompliancetext",i[7]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10]),e.set_custom_element_data(t,"limitformat",i[11])},m(s,r){e.insert(s,t,r)},p(s,r){r[0]&1&&e.set_custom_element_data(t,"lang",s[0]),r[0]&16&&e.set_custom_element_data(t,"currency",s[4]),r[0]&1048576&&n!==(n=s[20][s[43]])&&e.set_custom_element_data(t,"amountsconfig",n),r[0]&2097152&&l!==(l=s[21][s[43]])&&e.set_custom_element_data(t,"periodsconfig",l),r[0]&2&&e.set_custom_element_data(t,"userid",s[1]),r[0]&256&&e.set_custom_element_data(t,"deletelimit",s[8]),r[0]&128&&e.set_custom_element_data(t,"enablecompliancetext",s[7]),r[0]&4&&e.set_custom_element_data(t,"session",s[2]),r[0]&8&&e.set_custom_element_data(t,"endpoint",s[3]),r[0]&32&&e.set_custom_element_data(t,"apiversion",s[5]),r[0]&4096&&e.set_custom_element_data(t,"clientstyling",s[12]),r[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",s[13]),r[0]&16384&&e.set_custom_element_data(t,"translationurl",s[14]),r[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",s[10]),r[0]&2048&&e.set_custom_element_data(t,"limitformat",s[11])},d(s){s&&e.detach(t)}}}function q(i){let t;return{c(){t=e.element("player-account-gaming-limits-history-2"),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"userid",i[1]),e.set_custom_element_data(t,"session",i[2]),e.set_custom_element_data(t,"endpoint",i[3]),e.set_custom_element_data(t,"apiversion",i[5]),e.set_custom_element_data(t,"numberofentries",i[9]),e.set_custom_element_data(t,"clientstyling",i[12]),e.set_custom_element_data(t,"clientstylingurl",i[13]),e.set_custom_element_data(t,"translationurl",i[14]),e.set_custom_element_data(t,"customcurrencysymbols",i[10])},m(n,l){e.insert(n,t,l)},p(n,l){l[0]&1&&e.set_custom_element_data(t,"lang",n[0]),l[0]&2&&e.set_custom_element_data(t,"userid",n[1]),l[0]&4&&e.set_custom_element_data(t,"session",n[2]),l[0]&8&&e.set_custom_element_data(t,"endpoint",n[3]),l[0]&32&&e.set_custom_element_data(t,"apiversion",n[5]),l[0]&512&&e.set_custom_element_data(t,"numberofentries",n[9]),l[0]&4096&&e.set_custom_element_data(t,"clientstyling",n[12]),l[0]&8192&&e.set_custom_element_data(t,"clientstylingurl",n[13]),l[0]&16384&&e.set_custom_element_data(t,"translationurl",n[14]),l[0]&1024&&e.set_custom_element_data(t,"customcurrencysymbols",n[10])},d(n){n&&e.detach(t)}}}function me(i){let t,n,l,s,r,o,c,u=i[22]("title")+"",m,d,_=i[24]&&le(i);function b(f,p){return f[15]?ae:se}let y=b(i),g=y(i);return{c(){t=e.element("meta"),n=e.space(),l=e.element("div"),s=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 "+(i[24]?"GamingLimitsTitleNone":"")),e.attr(r,"class","TitleSection"),e.attr(s,"class","GamingLimitsWrapper "+(i[24]?"GamingLimitsWrapperMobile":""))},m(f,p){e.append(ne.head,t),e.insert(f,n,p),e.insert(f,l,p),e.append(l,s),e.append(s,r),_&&_.m(r,null),e.append(r,o),e.append(r,c),e.append(c,m),e.append(s,d),g.m(s,null),i[34](l)},p(f,p){f[24]&&_.p(f,p),p[0]&4194304&&u!==(u=f[22]("title")+"")&&e.set_data(m,u),y===(y=b(f))&&g?g.p(f,p):(g.d(1),g=y(f),g&&(g.c(),g.m(s,null)))},i:e.noop,o:e.noop,d(f){f&&(e.detach(n),e.detach(l)),e.detach(t),_&&_.d(),g.d(),i[34](null)}}}function oe(i,t,n){let l;e.component_subscribe(i,e.$format,a=>n(22,l=a));let{lang:s=""}=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:p=""}=t,{customcurrencysymbols:D=""}=t,{limitformat:P=""}=t,{clientstyling:k=""}=t,{clientstylingurl:M=""}=t,{translationurl:W=""}=t;ee({withLocale:"en",translations:{}});let E=!0,L,C=[],R,v,w,T,G,U=window.navigator.userAgent,j=e.getDevice(U)!=="PC";Object.keys(F).forEach(a=>{te(a,F[a])});const V=(a,h)=>{if(n(20,T=a.replace(/\s/g,"").split("|")),n(21,G=h.replace(/\s/g,"").split("|")),T.length===0)throw new Error("Please provide a full limits configuration.");if(T.length!==G.length)throw new Error("Please make sure that the limit configuration parameters specify the same number of tabs.")},Z=()=>{V(g,f),g.split("|").forEach(h=>{C.includes(h)||C.push(h)}),n(18,R=d.split(",").map(h=>h.trim())),n(15,E=!1)},A=a=>{if(v.children.length>0)for(let h=0;h<v.children.length;h++)a===h?(v.children[h].classList.remove("hidden"),w==null||w.children[h].classList.add("selected")):(v.children[h].classList.add("hidden"),w==null||w.children[h].classList.remove("selected"))},z=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:j},window.location.href)},J=()=>{let a=document.createElement("style");a.innerHTML=k,L.appendChild(a)},K=()=>{let a=new URL(M),h=document.createElement("style");fetch(a.href).then(S=>S.text()).then(S=>{h.innerHTML=S,setTimeout(()=>{L.appendChild(h)},1)})};e.onMount(()=>()=>{n(17,v=null),n(19,w=null)});const Q=()=>z(),X=a=>A(a);function Y(a){e.binding_callbacks[a?"unshift":"push"](()=>{w=a,n(19,w)})}function x(a){e.binding_callbacks[a?"unshift":"push"](()=>{v=a,n(17,v)})}function $(a){e.binding_callbacks[a?"unshift":"push"](()=>{L=a,n(16,L)})}return i.$$set=a=>{"lang"in a&&n(0,s=a.lang),"userid"in a&&n(1,r=a.userid),"session"in a&&n(2,o=a.session),"endpoint"in a&&n(3,c=a.endpoint),"currency"in a&&n(4,u=a.currency),"apiversion"in a&&n(5,m=a.apiversion),"tablabels"in a&&n(27,d=a.tablabels),"historyenabled"in a&&n(6,_=a.historyenabled),"enablecompliancetext"in a&&n(7,b=a.enablecompliancetext),"deletelimit"in a&&n(8,y=a.deletelimit),"limitsamount"in a&&n(28,g=a.limitsamount),"limitsperiods"in a&&n(29,f=a.limitsperiods),"numberofentries"in a&&n(9,p=a.numberofentries),"customcurrencysymbols"in a&&n(10,D=a.customcurrencysymbols),"limitformat"in a&&n(11,P=a.limitformat),"clientstyling"in a&&n(12,k=a.clientstyling),"clientstylingurl"in a&&n(13,M=a.clientstylingurl),"translationurl"in a&&n(14,W=a.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&134217775&&r&&o&&c&&d&&s&&m&&Z(),i.$$.dirty[0]&163840&&v&&!E&&A(0),i.$$.dirty[0]&73728&&M&&L&&K(),i.$$.dirty[0]&69632&&k&&L&&J()},[s,r,o,c,u,m,_,b,y,p,D,P,k,M,W,E,L,v,R,w,T,G,l,C,j,A,z,d,g,f,Q,X,Y,x,$]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,me,e.safe_not_equal,{lang:0,userid:1,session:2,endpoint:3,currency:4,apiversion:5,tablabels:27,historyenabled:6,enablecompliancetext:7,deletelimit:8,limitsamount:28,limitsperiods:29,numberofentries:9,customcurrencysymbols:10,limitformat:11,clientstyling:12,clientstylingurl:13,translationurl:14},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[27]}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[28]}set limitsamount(t){this.$$set({limitsamount:t}),e.flush()}get limitsperiods(){return this.$$.ctx[29]}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 limitformat(){return this.$$.ctx[11]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},userid:{},session:{},endpoint:{},currency:{},apiversion:{},tablabels:{},historyenabled:{},enablecompliancetext:{},deletelimit:{},limitsamount:{},limitsperiods:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=I;
@@ -54,7 +54,7 @@ if (typeof window != "undefined") {
54
54
  }
55
55
  };
56
56
  };
57
- customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-B67NLFY_.js").then(({ default: e }) => {
57
+ customElements.define = i(customElements.define), import("./PlayerAccountGamingLimitsPage2Gm16-DOrDUxtW.js").then(({ default: e }) => {
58
58
  !customElements.get("player-account-gaming-limits-page-2-gm16") && customElements.define(
59
59
  "player-account-gaming-limits-page-2-gm16",
60
60
  e.element