@everymatrix/player-account-controller 1.45.13 → 1.46.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 (18) hide show
  1. package/components/{PlayerAccountController-DTv9vkoL.js → PlayerAccountController-DcH3apKb.js} +308 -278
  2. package/components/PlayerAccountController-YWVJPVwG.cjs +1 -0
  3. package/components/PlayerAccountGamingLimitsPage2Gm16-ChyIWofJ.cjs +21 -0
  4. package/components/{PlayerAccountGamingLimitsPage2Gm16-B7_BHyXu.js → PlayerAccountGamingLimitsPage2Gm16-Db8AA-bx.js} +789 -743
  5. package/components/{PlayerAccountGamingLimitsWrapper2-qU20DTdn.js → PlayerAccountGamingLimitsWrapper2-BQHfy5Y8.js} +189 -170
  6. package/components/PlayerAccountGamingLimitsWrapper2-Da9RcHDD.cjs +1 -0
  7. package/components/{PlayerAccountSelfExclusion-zuKOJE1A.js → PlayerAccountSelfExclusion-BWE1SMeK.js} +204 -194
  8. package/components/{PlayerAccountSelfExclusion-DVLlbxoJ.cjs → PlayerAccountSelfExclusion-CdrtOxUR.cjs} +56 -56
  9. package/components/{PlayerBonusHistory-D8sz17Ry.js → PlayerBonusHistory-BQgWbJ_2.js} +1 -1
  10. package/components/{PlayerBonusHistory-CTTBqeCR.cjs → PlayerBonusHistory-Bh48Jrco.cjs} +1 -1
  11. package/components/{PlayerGamingHistory-TcfH2pYz.cjs → PlayerGamingHistory-D1bYL_JW.cjs} +1 -1
  12. package/components/{PlayerGamingHistory-1wUzXwQ1.js → PlayerGamingHistory-gYZx3djE.js} +1 -1
  13. package/es2015/player-account-controller.cjs +1 -1
  14. package/es2015/player-account-controller.js +1 -1
  15. package/package.json +1 -1
  16. package/components/PlayerAccountController-D2w4rqqb.cjs +0 -1
  17. package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +0 -21
  18. package/components/PlayerAccountGamingLimitsWrapper2-oY7Nyl9P.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bc8vhI_H.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 z={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"}};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-ChyIWofJ.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-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:ne}=e.globals;function ie(i){e.append_styles(i,"svelte-1l04dxf",':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(--emfe-w-color-gray-300, #58586B);justify-content:center;background:var(--emfe-w-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(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C))}.GamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));font-weight:400}.GamingLimitsTitleMobile{font-size:16px}.GamingLimitsTitleNone{display:none}.selected{border-bottom:0.2rem solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-pam-color-primary, var(--emfe-w-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,m,c,u,o,f,_=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(--emfe-w-pam-color-primary, var(--emfe-w-color-pink-500, #D0046C));}"),m=e.svg_element("g"),c=e.svg_element("g"),u=e.svg_element("path"),o=e.space(),f=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(m,"transform","translate(-20 -158)"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","15"),e.attr(n,"height","15"),e.attr(n,"viewBox","0 0 15 15"),e.attr(f,"class","GamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(d,p){e.insert(d,t,p),e.append(t,n),e.append(n,l),e.append(l,s),e.append(s,r),e.append(n,m),e.append(m,c),e.append(c,u),e.append(t,o),e.append(t,f),e.append(f,b),y||(g=e.listen(t,"click",i[30]),y=!0)},p(d,p){p[0]&4194304&&_!==(_=d[22]("title")+"")&&e.set_data(b,_)},d(d){d&&e.detach(t),y=!1,g()}}}function se(i){let t,n,l,s,r=i[23].length>1&&re(i),m=e.ensure_array_like(i[23]),c=[];for(let o=0;o<m.length;o+=1)c[o]=H(B(i,m,o));let u=i[6]==="true"&&q(i);return{c(){r&&r.c(),t=e.space(),n=e.element("div");for(let o=0;o<c.length;o+=1)c[o].c();l=e.space(),u&&u.c(),s=e.empty(),e.attr(n,"class","PlayerAccountGamingLmitsWrapper2")},m(o,f){r&&r.m(o,f),e.insert(o,t,f),e.insert(o,n,f);for(let _=0;_<c.length;_+=1)c[_]&&c[_].m(n,null);i[33](n),e.insert(o,l,f),u&&u.m(o,f),e.insert(o,s,f)},p(o,f){if(o[23].length>1&&r.p(o,f),f[0]&3177919){m=e.ensure_array_like(o[23]);let _;for(_=0;_<m.length;_+=1){const b=B(o,m,_);c[_]?c[_].p(b,f):(c[_]=H(b),c[_].c(),c[_].m(n,null))}for(;_<c.length;_+=1)c[_].d(1);c.length=m.length}o[6]==="true"?u?u.p(o,f):(u=q(o),u.c(),u.m(s.parentNode,s)):u&&(u.d(1),u=null)},d(o){o&&(e.detach(t),e.detach(n),e.detach(l),e.detach(s)),r&&r.d(o),e.destroy_each(c,o),i[33](null),u&&u.d(o)}}}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 m=0;m<l.length;m+=1)l[m]&&l[m].m(t,null);i[32](t)},p(s,r){if(r[0]&42205184){n=e.ensure_array_like(s[23]);let m;for(m=0;m<n.length;m+=1){const c=N(s,n,m);l[m]?l[m].p(c,r):(l[m]=O(c),l[m].c(),l[m].m(t,null))}for(;m<l.length;m+=1)l[m].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 m(){return i[31](i[43])}return{c(){t=e.element("div"),l=e.text(n),e.attr(t,"class","LimitsTab")},m(u,o){e.insert(u,t,o),e.append(t,l),s||(r=e.listen(t,"click",m),s=!0)},p(u,o){var f;i=u,o[0]&262144&&n!==(n=((f=i[18][i[43]])!=null?f: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 oe(i){let t,n,l,s,r,m,c,u=i[22]("title")+"",o,f,_=i[24]&&le(i);function b(d,p){return d[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(),m=e.space(),c=e.element("h2"),o=e.text(u),f=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(d,p){e.append(ne.head,t),e.insert(d,n,p),e.insert(d,l,p),e.append(l,s),e.append(s,r),_&&_.m(r,null),e.append(r,m),e.append(r,c),e.append(c,o),e.append(s,f),g.m(s,null),i[34](l)},p(d,p){d[24]&&_.p(d,p),p[0]&4194304&&u!==(u=d[22]("title")+"")&&e.set_data(o,u),y===(y=b(d))&&g?g.p(d,p):(g.d(1),g=y(d),g&&(g.c(),g.m(s,null)))},i:e.noop,o:e.noop,d(d){d&&(e.detach(n),e.detach(l)),e.detach(t),_&&_.d(),g.d(),i[34](null)}}}function me(i,t,n){let l;e.component_subscribe(i,e.$format,a=>n(22,l=a));let{lang:s=""}=t,{userid:r=""}=t,{session:m=""}=t,{endpoint:c=""}=t,{currency:u=""}=t,{apiversion:o=""}=t,{tablabels:f=""}=t,{historyenabled:_="true"}=t,{enablecompliancetext:b="false"}=t,{deletelimit:y=""}=t,{limitsamount:g=""}=t,{limitsperiods:d=""}=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(z).forEach(a=>{te(a,z[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,d),g.split("|").forEach(h=>{C.includes(h)||C.push(h)}),n(18,R=f.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"))},F=()=>{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=()=>F(),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,m=a.session),"endpoint"in a&&n(3,c=a.endpoint),"currency"in a&&n(4,u=a.currency),"apiversion"in a&&n(5,o=a.apiversion),"tablabels"in a&&n(27,f=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,d=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&&m&&c&&f&&s&&o&&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,m,c,u,o,_,b,y,p,D,P,k,M,W,E,L,v,R,w,T,G,l,C,j,A,F,f,g,d,Q,X,Y,x,$]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,oe,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;