@everymatrix/player-account-controller 1.44.0 → 1.45.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 (79) hide show
  1. package/components/GeneralLogout-PMsAgsr8.js +4832 -0
  2. package/components/GeneralLogout-WbaN9lE3.cjs +8 -0
  3. package/components/PlayerAccountBettingHistory-C5O_N5I6.js +328 -0
  4. package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +1 -0
  5. package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +1 -0
  6. package/components/PlayerAccountBiometrics-BIZ77T9P.js +300 -0
  7. package/components/PlayerAccountClosure-DIRkc6kA.cjs +1 -0
  8. package/components/PlayerAccountClosure-O9rY7FHF.js +339 -0
  9. package/components/PlayerAccountController-1M1FKlrd.cjs +1 -0
  10. package/components/PlayerAccountController-DRQpN2gW.js +6176 -0
  11. package/components/PlayerAccountGamingLimits-BnH1h5ZI.js +758 -0
  12. package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +1 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CHBpCAi7.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-QO4BtCS2.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-CJxOlPZu.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-_p2IXses.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +1 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-GwIjd7fB.js +1488 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-DcGsK_Nq.js +2794 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-DO2f_4IF.js +337 -0
  24. package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +1 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2-BZ-Ax67a.cjs +1 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2-CQClFTjE.js +844 -0
  27. package/components/PlayerAccountMenu-1kpYtr6Q.cjs +1 -0
  28. package/components/PlayerAccountMenu-C9YFW_X4.js +576 -0
  29. package/components/PlayerAccountModal-BPuDqVwe.js +198 -0
  30. package/components/PlayerAccountModal-DpMfe1gv.cjs +1 -0
  31. package/components/PlayerAccountNotifications-DfLcLCTk.js +261 -0
  32. package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +1 -0
  33. package/components/PlayerAccountSelfExclusion-BR4bl6bz.js +16404 -0
  34. package/components/PlayerAccountSelfExclusion-CA2oAuhb.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-Df9mSPXx.js +448 -0
  36. package/components/PlayerAccountTimeout-dxzuaoP9.cjs +1 -0
  37. package/components/PlayerActiveBonuses-BJtk2_80.js +986 -0
  38. package/components/PlayerActiveBonuses-D0-qI8iz.cjs +1 -0
  39. package/components/PlayerBonusCard-BoENnXsd.cjs +1 -0
  40. package/components/PlayerBonusCard-D4MZsrSK.js +565 -0
  41. package/components/PlayerBonusHistory-3B1tPB8g.cjs +1 -0
  42. package/components/PlayerBonusHistory-CDA_Ahs-.js +840 -0
  43. package/components/PlayerChangePassword-C69CRrvS.js +1161 -0
  44. package/components/PlayerChangePassword-RpQIhFff.cjs +3 -0
  45. package/components/PlayerDeposit-BK_UhkqG.js +395 -0
  46. package/components/PlayerDeposit-COhpfcRx.cjs +1 -0
  47. package/components/PlayerGamingHistory-C8Kvaq7b.cjs +1 -0
  48. package/components/PlayerGamingHistory-CCSGdevP.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +1 -0
  50. package/components/PlayerPendingWithdrawals-DIp1o6Bq.js +307 -0
  51. package/components/PlayerProfileInfo-BeD6hzPW.cjs +1 -0
  52. package/components/PlayerProfileInfo-CkcYNGGP.js +1707 -0
  53. package/components/PlayerRealityCheck-B37H9_Rn.cjs +1 -0
  54. package/components/PlayerRealityCheck-UaRdeADU.js +587 -0
  55. package/components/PlayerTransactionHistory-CxYO3lnm.cjs +1 -0
  56. package/components/PlayerTransactionHistory-Da2H2goa.js +311 -0
  57. package/components/PlayerWithdrawal-DK_JxD9z.js +365 -0
  58. package/components/PlayerWithdrawal-DYkzBPcQ.cjs +1 -0
  59. package/es2015/player-account-controller.cjs +1 -0
  60. package/es2015/player-account-controller.js +16 -0
  61. package/package.json +38 -32
  62. package/CHANGELOG.md +0 -19
  63. package/README.md +0 -0
  64. package/assets/arrow-down.svg +0 -3
  65. package/dist/player-account-controller.js +0 -2221
  66. package/dist/player-account-controller.js.map +0 -1
  67. package/documentation.md +0 -166
  68. package/index.html +0 -46
  69. package/index.js +0 -1
  70. package/public/favicon.png +0 -0
  71. package/public/reset.css +0 -48
  72. package/rollup.config.js +0 -67
  73. package/src/PlayerAccountController.svelte +0 -732
  74. package/src/PlayerAccountController.types.ts +0 -5
  75. package/src/i18n.js +0 -27
  76. package/src/index.ts +0 -4
  77. package/src/translations.js +0 -102
  78. package/stories/PlayerAccountPage.stories.js +0 -13
  79. package/tsconfig.json +0 -6
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-WbaN9lE3.cjs");function G(i,t){e.addMessages(i,t)}function F(i){e.$locale.set(i)}const j={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{returnToMenu:"Voltar ao cardápio",gamingLimitsText:"Limites do jogo",depositLimit:"Limites de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{returnToMenu:"Regresar al menú",gamingLimitsText:"Límites de juego",depositLimit:"Límites de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdidas"},tr:{returnToMenu:"Menüye dön",gamingLimitsText:"Oyun sınırları",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"}};if(typeof window!="undefined"){let i=function(t){return function(...a){try{return t.apply(this,a)}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=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-info-card")&&customElements.define("player-account-gaming-limits-info-card",t.element)})}function V(i){e.append_styles(i,"svelte-1ct02co",'.PlayerAccountGamingLimitsWrapper.svelte-1ct02co.svelte-1ct02co{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerGamingLimitsTitle.svelte-1ct02co.svelte-1ct02co{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile.svelte-1ct02co.svelte-1ct02co{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone.svelte-1ct02co.svelte-1ct02co{display:none}.MenuReturnButton.svelte-1ct02co.svelte-1ct02co{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-1ct02co svg.svelte-1ct02co{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper.svelte-1ct02co.svelte-1ct02co{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper.svelte-1ct02co.svelte-1ct02co{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer.svelte-1ct02co.svelte-1ct02co{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.ModalLoader.svelte-1ct02co.svelte-1ct02co{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader.svelte-1ct02co.svelte-1ct02co:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:svelte-1ct02co-Loader 1.2s linear infinite}@keyframes svelte-1ct02co-Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function H(i){let t;return{c(){t=e.element("player-account-gaming-limits-group-edit"),e.set_custom_element_data(t,"limitsdata",i[13]),e.set_custom_element_data(t,"limitname",i[14]),e.set_custom_element_data(t,"showsuccessnotification",i[7]),e.set_custom_element_data(t,"showdeletenotification",i[6]),e.set_custom_element_data(t,"playercurrency",i[5]),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"separatelimits",i[8]),e.set_custom_element_data(t,"clientstyling",i[9]),e.set_custom_element_data(t,"clientstylingurl",i[10])},m(a,s){e.insert(a,t,s)},p(a,s){s&8192&&e.set_custom_element_data(t,"limitsdata",a[13]),s&16384&&e.set_custom_element_data(t,"limitname",a[14]),s&128&&e.set_custom_element_data(t,"showsuccessnotification",a[7]),s&64&&e.set_custom_element_data(t,"showdeletenotification",a[6]),s&32&&e.set_custom_element_data(t,"playercurrency",a[5]),s&1&&e.set_custom_element_data(t,"lang",a[0]),s&256&&e.set_custom_element_data(t,"separatelimits",a[8]),s&512&&e.set_custom_element_data(t,"clientstyling",a[9]),s&1024&&e.set_custom_element_data(t,"clientstylingurl",a[10])},d(a){a&&e.detach(t)}}}function z(i){let t,a,s,r=i[16]("gamingLimitsText")+"",u,f,_,c,w,o,L,g,y,d,p=i[17]&&U(i);return{c(){t=e.element("div"),p&&p.c(),a=e.space(),s=e.element("h2"),u=e.text(r),f=e.space(),_=e.element("div"),c=e.element("player-account-gaming-limits-info-card"),w=e.space(),o=e.element("player-account-gaming-limits-info-card"),L=e.space(),g=e.element("player-account-gaming-limits-info-card"),y=e.space(),d=e.element("player-account-gaming-limits-info-card"),e.attr(s,"class","PlayerGamingLimitsTitle "+(i[17]?"PlayerGamingLimitsTitleNone":"")+" svelte-1ct02co"),e.set_custom_element_data(c,"limitsdata",i[1]),e.set_custom_element_data(c,"limitname",I),e.set_custom_element_data(c,"playercurrency",i[5]),e.set_custom_element_data(c,"lang",i[0]),e.set_custom_element_data(c,"clientstyling",i[9]),e.set_custom_element_data(c,"clientstylingurl",i[10]),e.set_custom_element_data(o,"limitsdata",i[2]),e.set_custom_element_data(o,"limitname",K),e.set_custom_element_data(o,"playercurrency",i[5]),e.set_custom_element_data(o,"lang",i[0]),e.set_custom_element_data(o,"clientstyling",i[9]),e.set_custom_element_data(o,"clientstylingurl",i[10]),e.set_custom_element_data(g,"limitsdata",i[3]),e.set_custom_element_data(g,"limitname",Q),e.set_custom_element_data(g,"playercurrency",i[5]),e.set_custom_element_data(g,"lang",i[0]),e.set_custom_element_data(g,"clientstyling",i[9]),e.set_custom_element_data(g,"clientstylingurl",i[10]),e.set_custom_element_data(d,"limitsdata",i[4]),e.set_custom_element_data(d,"limitname",Y),e.set_custom_element_data(d,"playercurrency",i[5]),e.set_custom_element_data(d,"lang",i[0]),e.set_custom_element_data(d,"clientstyling",i[9]),e.set_custom_element_data(d,"clientstylingurl",i[10]),e.attr(_,"class","PlayerAccountGamingLimitsContainer svelte-1ct02co"),e.attr(t,"class","PlayerAccountGamingLimitsWrapper "+(i[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(i[18].matches&&i[17]?"PlayerAccountTabletGamingLimitsWrapper":"")+" svelte-1ct02co")},m(l,m){e.insert(l,t,m),p&&p.m(t,null),e.append(t,a),e.append(t,s),e.append(s,u),e.append(t,f),e.append(t,_),e.append(_,c),e.append(_,w),e.append(_,o),e.append(_,L),e.append(_,g),e.append(_,y),e.append(_,d)},p(l,m){l[17]&&p.p(l,m),m&65536&&r!==(r=l[16]("gamingLimitsText")+"")&&e.set_data(u,r),m&2&&e.set_custom_element_data(c,"limitsdata",l[1]),m&32&&e.set_custom_element_data(c,"playercurrency",l[5]),m&1&&e.set_custom_element_data(c,"lang",l[0]),m&512&&e.set_custom_element_data(c,"clientstyling",l[9]),m&1024&&e.set_custom_element_data(c,"clientstylingurl",l[10]),m&4&&e.set_custom_element_data(o,"limitsdata",l[2]),m&32&&e.set_custom_element_data(o,"playercurrency",l[5]),m&1&&e.set_custom_element_data(o,"lang",l[0]),m&512&&e.set_custom_element_data(o,"clientstyling",l[9]),m&1024&&e.set_custom_element_data(o,"clientstylingurl",l[10]),m&8&&e.set_custom_element_data(g,"limitsdata",l[3]),m&32&&e.set_custom_element_data(g,"playercurrency",l[5]),m&1&&e.set_custom_element_data(g,"lang",l[0]),m&512&&e.set_custom_element_data(g,"clientstyling",l[9]),m&1024&&e.set_custom_element_data(g,"clientstylingurl",l[10]),m&16&&e.set_custom_element_data(d,"limitsdata",l[4]),m&32&&e.set_custom_element_data(d,"playercurrency",l[5]),m&1&&e.set_custom_element_data(d,"lang",l[0]),m&512&&e.set_custom_element_data(d,"clientstyling",l[9]),m&1024&&e.set_custom_element_data(d,"clientstylingurl",l[10])},d(l){l&&e.detach(t),p&&p.d()}}}function q(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","ModalLoader svelte-1ct02co")},m(a,s){e.insert(a,t,s)},p:e.noop,d(a){a&&e.detach(t)}}}function U(i){let t,a,s,r,u,f,_,c,w,o,L=i[16]("gamingLimitsText")+"",g,y,d;return{c(){t=e.element("div"),a=e.svg_element("svg"),s=e.svg_element("defs"),r=e.svg_element("style"),u=e.text(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),f=e.svg_element("g"),_=e.svg_element("g"),c=e.svg_element("path"),w=e.space(),o=e.element("h2"),g=e.text(L),e.attr(c,"class","aaa"),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(_,"transform","translate(20 158)"),e.attr(f,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(a,"class","svelte-1ct02co"),e.attr(o,"class","PlayerGamingLimitsTitleMobile svelte-1ct02co"),e.attr(t,"class","MenuReturnButton svelte-1ct02co")},m(p,l){e.insert(p,t,l),e.append(t,a),e.append(a,s),e.append(s,r),e.append(r,u),e.append(a,f),e.append(f,_),e.append(_,c),e.append(t,w),e.append(t,o),e.append(o,g),y||(d=e.listen(t,"click",i[21]),y=!0)},p(p,l){l&65536&&L!==(L=p[16]("gamingLimitsText")+"")&&e.set_data(g,L)},d(p){p&&e.detach(t),y=!1,d()}}}function Z(i){let t;function a(u,f){return u[12]?q:u[15]?z:H}let s=a(i),r=s(i);return{c(){t=e.element("div"),r.c()},m(u,f){e.insert(u,t,f),r.m(t,null),i[22](t)},p(u,[f]){s===(s=a(u))&&r?r.p(u,f):(r.d(1),r=s(u),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(t),r.d(),i[22](null)}}}let I="Deposit Limit",K="Wagering Limit",Q="Loss Limit",Y="Time Limit";function J(i,t,a){let s;e.component_subscribe(i,e.$format,n=>a(16,s=n));let{depositlimit:r}=t,{wageringlimit:u}=t,{losslimit:f}=t,{timelimit:_}=t,{showdeletenotification:c=!1}=t,{showsuccessnotification:w=!1}=t,{lang:o="en"}=t,{playercurrency:L=""}=t,{separatelimits:g="true"}=t,{clientstyling:y=""}=t,{clientstylingurl:d=""}=t,{translationurl:p=""}=t;const l=()=>{fetch(p).then(h=>h.json()).then(h=>{Object.keys(h).forEach(v=>{G(v,h[v])})}).catch(h=>{console.log(h)})};Object.keys(j).forEach(n=>{G(n,j[n])});let m,M=!0,E=window.navigator.userAgent,P=e.getDevice(E)!=="PC",k,T="",b=!0;const N=window.matchMedia("(min-width: 768px)"),D=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},O=()=>{F(o)},C=n=>{if(n.data)switch(n.data.type){case"PlayerLimitsData":a(0,o=n.data.limits.lang),a(1,r=n.data.limits.depositlimit),a(2,u=n.data.limits.wageringlimit),a(3,f=n.data.limits.losslimit),a(4,_=n.data.limits.timelimit),a(12,M=!1);break;case"EditPlayerAccountGamingLimits":a(13,k=n.data.edit),a(14,T=n.data.name),a(15,b=!1),window.postMessage({type:"EditPlayerLimit",name:T},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":a(15,b=!0);break;case"ProfileDetailsData":let h=n.data.profileDetails;a(5,L=h.currency);break}},R=()=>{let n=document.createElement("style");n.innerHTML=y,m.appendChild(n)},S=()=>{let n=new URL(d),h=document.createElement("style");fetch(n.href).then(v=>v.text()).then(v=>{h.innerHTML=v,setTimeout(()=>{m.appendChild(h)},1)})};e.onMount(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));const B=()=>D();function W(n){e.binding_callbacks[n?"unshift":"push"](()=>{m=n,a(11,m)})}return i.$$set=n=>{"depositlimit"in n&&a(1,r=n.depositlimit),"wageringlimit"in n&&a(2,u=n.wageringlimit),"losslimit"in n&&a(3,f=n.losslimit),"timelimit"in n&&a(4,_=n.timelimit),"showdeletenotification"in n&&a(6,c=n.showdeletenotification),"showsuccessnotification"in n&&a(7,w=n.showsuccessnotification),"lang"in n&&a(0,o=n.lang),"playercurrency"in n&&a(5,L=n.playercurrency),"separatelimits"in n&&a(8,g=n.separatelimits),"clientstyling"in n&&a(9,y=n.clientstyling),"clientstylingurl"in n&&a(10,d=n.clientstylingurl),"translationurl"in n&&a(20,p=n.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&o&&O(),i.$$.dirty&2560&&y&&m&&R(),i.$$.dirty&3072&&d&&m&&S(),i.$$.dirty&1048576&&p&&l()},[o,r,u,f,_,L,c,w,g,y,d,m,M,k,T,b,s,P,N,D,p,B,W]}class A extends e.SvelteComponent{constructor(t){super(),e.init(this,t,J,Z,e.safe_not_equal,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,playercurrency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,translationurl:20},V)}get depositlimit(){return this.$$.ctx[1]}set depositlimit(t){this.$$set({depositlimit:t}),e.flush()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(t){this.$$set({wageringlimit:t}),e.flush()}get losslimit(){return this.$$.ctx[3]}set losslimit(t){this.$$set({losslimit:t}),e.flush()}get timelimit(){return this.$$.ctx[4]}set timelimit(t){this.$$set({timelimit:t}),e.flush()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(t){this.$$set({showdeletenotification:t}),e.flush()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(t){this.$$set({showsuccessnotification:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get playercurrency(){return this.$$.ctx[5]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(t){this.$$set({separatelimits:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(A,{depositlimit:{},wageringlimit:{},losslimit:{},timelimit:{},showdeletenotification:{type:"Boolean"},showsuccessnotification:{type:"Boolean"},lang:{},playercurrency:{},separatelimits:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=A;
@@ -0,0 +1,306 @@
1
+ import { a as U, $ as q, S as J, i as K, f as M, c as Q, s as V, b as X, F as Y, e as h, d as E, t as z, g as a, k as W, l, m as S, G as Z, H as $, I as tt, n as T, J as et, K as it, p as H, r as ot, q as nt, u as at, v as st, x as rt, w as j, o as lt, y as mt } from "./GeneralLogout-PMsAgsr8.js";
2
+ function D(i, t) {
3
+ U(i, t);
4
+ }
5
+ function ct(i) {
6
+ q.set(i);
7
+ }
8
+ const N = {
9
+ en: {
10
+ cancel: "Cancel",
11
+ confirm: "Confirm"
12
+ },
13
+ fr: {
14
+ cancel: "Annuler",
15
+ confirm: "Confirmer"
16
+ },
17
+ ro: {
18
+ cancel: "Anulează",
19
+ confirm: "Confirmă"
20
+ },
21
+ es: {
22
+ cancel: "Cancelar",
23
+ confirm: "Confirmar"
24
+ },
25
+ pt: {
26
+ cancel: "Cancelar",
27
+ confirm: "Confirmar"
28
+ },
29
+ "zh-hk": {
30
+ cancel: "取消",
31
+ confirm: "確認"
32
+ },
33
+ hr: {
34
+ cancel: "Otkaži",
35
+ confirm: "Potvrdi"
36
+ },
37
+ "pt-br": {
38
+ cancel: "Cancelar",
39
+ confirm: "confirme"
40
+ },
41
+ "es-mx": {
42
+ cancel: "Cancelar",
43
+ confirm: "Confirmar"
44
+ },
45
+ tr: {
46
+ cancel: "İptal etmek",
47
+ confirm: "Onaylamak"
48
+ }
49
+ };
50
+ function dt(i) {
51
+ X(i, "svelte-109to9y", '.svelte-109to9y.svelte-109to9y,.svelte-109to9y.svelte-109to9y::before,.svelte-109to9y.svelte-109to9y::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper.svelte-109to9y.svelte-109to9y{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainerMobile.svelte-109to9y.svelte-109to9y{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile.svelte-109to9y .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton.svelte-109to9y,.GamingLimitsConfirmationContainerMobile.svelte-109to9y .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton.svelte-109to9y{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent.svelte-109to9y.svelte-109to9y{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea.svelte-109to9y.svelte-109to9y{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsCancelButton.svelte-109to9y,.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsConfirmButton.svelte-109to9y{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsConfirmButton.svelte-109to9y{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn.svelte-109to9y.svelte-109to9y{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn.svelte-109to9y svg.svelte-109to9y{width:35px;height:40px}.ModalCloseBtn.svelte-109to9y.svelte-109to9y:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper.svelte-109to9y.svelte-109to9y{border:none;padding:0}');
52
+ }
53
+ const gt = (i) => ({}), O = (i) => ({});
54
+ function ut(i) {
55
+ let t, o;
56
+ return {
57
+ c() {
58
+ t = j("svg"), o = j("path"), a(o, "stroke-linecap", "round"), a(o, "stroke-linejoin", "round"), a(o, "stroke-width", "2"), a(o, "d", "M6 18L18 6M6 6l12 12"), a(o, "class", "svelte-109to9y"), a(t, "class", "w-6 h-6 svelte-109to9y"), a(t, "fill", "none"), a(t, "stroke", "currentColor"), a(t, "viewBox", "0 0 24 24"), a(t, "xmlns", "http://www.w3.org/2000/svg");
59
+ },
60
+ m(s, w) {
61
+ W(s, t, w), l(t, o);
62
+ },
63
+ p: lt,
64
+ d(s) {
65
+ s && H(t);
66
+ }
67
+ };
68
+ }
69
+ function ft(i) {
70
+ let t, o, s, w, C, b, d, c, g, f = (
71
+ /*$_*/
72
+ i[2]("cancel") + ""
73
+ ), v, A, r, x = (
74
+ /*$_*/
75
+ i[2]("confirm") + ""
76
+ ), k, m, L, F;
77
+ const B = (
78
+ /*#slots*/
79
+ i[13].close
80
+ ), _ = Y(
81
+ B,
82
+ i,
83
+ /*$$scope*/
84
+ i[12],
85
+ O
86
+ ), u = _ || ut();
87
+ return {
88
+ c() {
89
+ t = h("div"), o = h("div"), s = h("span"), u && u.c(), w = E(), C = h("div"), b = z(
90
+ /*modaltext*/
91
+ i[0]
92
+ ), d = E(), c = h("div"), g = h("button"), v = z(f), A = E(), r = h("button"), k = z(x), a(s, "class", "ModalCloseBtn svelte-109to9y"), a(s, "role", "button"), a(C, "class", "GamingLimitsConfirmationContent svelte-109to9y"), a(g, "class", "GamingLimitsCancelButton svelte-109to9y"), a(r, "class", "GamingLimitsConfirmButton svelte-109to9y"), a(c, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
93
+ (i[3] ? "GamingLimitsConfirmationControlAreaMobile" : "") + " svelte-109to9y"), a(o, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
94
+ (i[3] ? "GamingLimitsConfirmationContainerMobile" : "") + " svelte-109to9y"), a(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
95
+ (i[3] ? "GamingLimitsConfirmationMobileWrapper" : "") + " svelte-109to9y");
96
+ },
97
+ m(n, y) {
98
+ W(n, t, y), l(t, o), l(o, s), u && u.m(s, null), l(o, w), l(o, C), l(C, b), l(o, d), l(o, c), l(c, g), l(g, v), l(c, A), l(c, r), l(r, k), i[14](t), m = !0, L || (F = [
99
+ S(
100
+ s,
101
+ "click",
102
+ /*close*/
103
+ i[4]
104
+ ),
105
+ S(
106
+ g,
107
+ "click",
108
+ /*cancelChanges*/
109
+ i[6]
110
+ ),
111
+ S(
112
+ r,
113
+ "click",
114
+ /*confirmChanges*/
115
+ i[5]
116
+ )
117
+ ], L = !0);
118
+ },
119
+ p(n, [y]) {
120
+ _ && _.p && (!m || y & /*$$scope*/
121
+ 4096) && Z(
122
+ _,
123
+ B,
124
+ n,
125
+ /*$$scope*/
126
+ n[12],
127
+ m ? tt(
128
+ B,
129
+ /*$$scope*/
130
+ n[12],
131
+ y,
132
+ gt
133
+ ) : $(
134
+ /*$$scope*/
135
+ n[12]
136
+ ),
137
+ O
138
+ ), (!m || y & /*modaltext*/
139
+ 1) && T(
140
+ b,
141
+ /*modaltext*/
142
+ n[0]
143
+ ), (!m || y & /*$_*/
144
+ 4) && f !== (f = /*$_*/
145
+ n[2]("cancel") + "") && T(v, f), (!m || y & /*$_*/
146
+ 4) && x !== (x = /*$_*/
147
+ n[2]("confirm") + "") && T(k, x);
148
+ },
149
+ i(n) {
150
+ m || (et(u, n), m = !0);
151
+ },
152
+ o(n) {
153
+ it(u, n), m = !1;
154
+ },
155
+ d(n) {
156
+ n && H(t), u && u.d(n), i[14](null), L = !1, ot(F);
157
+ }
158
+ };
159
+ }
160
+ function yt(i, t, o) {
161
+ let s;
162
+ nt(i, mt, (e) => o(2, s = e));
163
+ let { $$slots: w = {}, $$scope: C } = t, { modaltext: b = "Are you sure that you want to perform this action?" } = t, { modalsource: d = "" } = t, { lang: c = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: v = "" } = t;
164
+ const A = () => {
165
+ fetch(v).then((p) => p.json()).then((p) => {
166
+ Object.keys(p).forEach((G) => {
167
+ D(G, p[G]);
168
+ });
169
+ }).catch((p) => {
170
+ console.log(p);
171
+ });
172
+ };
173
+ Object.keys(N).forEach((e) => {
174
+ D(e, N[e]);
175
+ });
176
+ let r, x = window.navigator.userAgent, k = at(x) !== "PC", m = {}, L = "";
177
+ const F = () => {
178
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
179
+ }, B = () => {
180
+ d === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : d === "infoCard" && window.postMessage(
181
+ {
182
+ type: "PlayerAccountGamingLimitDelete",
183
+ limit: m,
184
+ name: L
185
+ },
186
+ window.location.href
187
+ ), window.postMessage({ type: "ModalClosed" }, window.location.href);
188
+ }, _ = () => {
189
+ d === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : d === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
190
+ }, u = (e) => e === "Time Limit" ? "cumulativeSessionLimits" : e === "Deposit Limit" ? "depositLimits" : e === "Wagering Limit" ? "wageringLimit" : "lossLimit", n = (e) => {
191
+ if (e.data)
192
+ switch (e.data.type) {
193
+ case "DeleteLimitsItem":
194
+ m = e.data.removeData, L = u(e.data.removeName);
195
+ break;
196
+ }
197
+ }, y = () => {
198
+ ct(c);
199
+ }, I = () => {
200
+ let e = document.createElement("style");
201
+ e.innerHTML = g, r.appendChild(e);
202
+ }, P = () => {
203
+ let e = new URL(f), p = document.createElement("style");
204
+ fetch(e.href).then((G) => G.text()).then((G) => {
205
+ p.innerHTML = G, setTimeout(
206
+ () => {
207
+ r.appendChild(p);
208
+ },
209
+ 1
210
+ );
211
+ });
212
+ };
213
+ st(() => (window.addEventListener("message", n, !1), () => {
214
+ window.removeEventListener("message", n);
215
+ }));
216
+ function R(e) {
217
+ rt[e ? "unshift" : "push"](() => {
218
+ r = e, o(1, r);
219
+ });
220
+ }
221
+ return i.$$set = (e) => {
222
+ "modaltext" in e && o(0, b = e.modaltext), "modalsource" in e && o(7, d = e.modalsource), "lang" in e && o(8, c = e.lang), "clientstyling" in e && o(9, g = e.clientstyling), "clientstylingurl" in e && o(10, f = e.clientstylingurl), "translationurl" in e && o(11, v = e.translationurl), "$$scope" in e && o(12, C = e.$$scope);
223
+ }, i.$$.update = () => {
224
+ i.$$.dirty & /*modaltext, modalsource, lang*/
225
+ 385 && b && d && c && y(), i.$$.dirty & /*clientstyling, customStylingContainer*/
226
+ 514 && g && r && I(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
227
+ 1026 && f && r && P(), i.$$.dirty & /*translationurl*/
228
+ 2048 && v && A();
229
+ }, [
230
+ b,
231
+ r,
232
+ s,
233
+ k,
234
+ F,
235
+ B,
236
+ _,
237
+ d,
238
+ c,
239
+ g,
240
+ f,
241
+ v,
242
+ C,
243
+ w,
244
+ R
245
+ ];
246
+ }
247
+ class pt extends J {
248
+ constructor(t) {
249
+ super(), K(
250
+ this,
251
+ t,
252
+ yt,
253
+ ft,
254
+ V,
255
+ {
256
+ modaltext: 0,
257
+ modalsource: 7,
258
+ lang: 8,
259
+ clientstyling: 9,
260
+ clientstylingurl: 10,
261
+ translationurl: 11
262
+ },
263
+ dt
264
+ );
265
+ }
266
+ get modaltext() {
267
+ return this.$$.ctx[0];
268
+ }
269
+ set modaltext(t) {
270
+ this.$$set({ modaltext: t }), M();
271
+ }
272
+ get modalsource() {
273
+ return this.$$.ctx[7];
274
+ }
275
+ set modalsource(t) {
276
+ this.$$set({ modalsource: t }), M();
277
+ }
278
+ get lang() {
279
+ return this.$$.ctx[8];
280
+ }
281
+ set lang(t) {
282
+ this.$$set({ lang: t }), M();
283
+ }
284
+ get clientstyling() {
285
+ return this.$$.ctx[9];
286
+ }
287
+ set clientstyling(t) {
288
+ this.$$set({ clientstyling: t }), M();
289
+ }
290
+ get clientstylingurl() {
291
+ return this.$$.ctx[10];
292
+ }
293
+ set clientstylingurl(t) {
294
+ this.$$set({ clientstylingurl: t }), M();
295
+ }
296
+ get translationurl() {
297
+ return this.$$.ctx[11];
298
+ }
299
+ set translationurl(t) {
300
+ this.$$set({ translationurl: t }), M();
301
+ }
302
+ }
303
+ Q(pt, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
304
+ export {
305
+ pt as default
306
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-WbaN9lE3.cjs");function B(n,e){t.addMessages(n,e)}function j(n){t.$locale.set(n)}const A={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"}};function D(n){t.append_styles(n,"svelte-109to9y",'.svelte-109to9y.svelte-109to9y,.svelte-109to9y.svelte-109to9y::before,.svelte-109to9y.svelte-109to9y::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper.svelte-109to9y.svelte-109to9y{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer.svelte-109to9y.svelte-109to9y::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 20px)}.GamingLimitsConfirmationContainerMobile.svelte-109to9y.svelte-109to9y{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile.svelte-109to9y .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton.svelte-109to9y,.GamingLimitsConfirmationContainerMobile.svelte-109to9y .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton.svelte-109to9y{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent.svelte-109to9y.svelte-109to9y{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea.svelte-109to9y.svelte-109to9y{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsCancelButton.svelte-109to9y,.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsConfirmButton.svelte-109to9y{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea.svelte-109to9y .GamingLimitsConfirmButton.svelte-109to9y{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 50px);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn.svelte-109to9y.svelte-109to9y{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn.svelte-109to9y svg.svelte-109to9y{width:35px;height:40px}.ModalCloseBtn.svelte-109to9y.svelte-109to9y:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper.svelte-109to9y.svelte-109to9y{border:none;padding:0}')}const N=n=>({}),F=n=>({});function O(n){let e,o;return{c(){e=t.svg_element("svg"),o=t.svg_element("path"),t.attr(o,"stroke-linecap","round"),t.attr(o,"stroke-linejoin","round"),t.attr(o,"stroke-width","2"),t.attr(o,"d","M6 18L18 6M6 6l12 12"),t.attr(o,"class","svelte-109to9y"),t.attr(e,"class","w-6 h-6 svelte-109to9y"),t.attr(e,"fill","none"),t.attr(e,"stroke","currentColor"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"xmlns","http://www.w3.org/2000/svg")},m(r,h){t.insert(r,e,h),t.append(e,o)},p:t.noop,d(r){r&&t.detach(e)}}}function P(n){let e,o,r,h,v,C,c,m,d,u=n[2]("cancel")+"",y,M,l,b=n[2]("confirm")+"",_,s,w,k;const G=n[13].close,x=t.create_slot(G,n,n[12],F),g=x||O();return{c(){e=t.element("div"),o=t.element("div"),r=t.element("span"),g&&g.c(),h=t.space(),v=t.element("div"),C=t.text(n[0]),c=t.space(),m=t.element("div"),d=t.element("button"),y=t.text(u),M=t.space(),l=t.element("button"),_=t.text(b),t.attr(r,"class","ModalCloseBtn svelte-109to9y"),t.attr(r,"role","button"),t.attr(v,"class","GamingLimitsConfirmationContent svelte-109to9y"),t.attr(d,"class","GamingLimitsCancelButton svelte-109to9y"),t.attr(l,"class","GamingLimitsConfirmButton svelte-109to9y"),t.attr(m,"class","GamingLimitsConfirmationControlArea "+(n[3]?"GamingLimitsConfirmationControlAreaMobile":"")+" svelte-109to9y"),t.attr(o,"class","GamingLimitsConfirmationContainer "+(n[3]?"GamingLimitsConfirmationContainerMobile":"")+" svelte-109to9y"),t.attr(e,"class","GamingLimitsConfirmationWrapper "+(n[3]?"GamingLimitsConfirmationMobileWrapper":"")+" svelte-109to9y")},m(a,f){t.insert(a,e,f),t.append(e,o),t.append(o,r),g&&g.m(r,null),t.append(o,h),t.append(o,v),t.append(v,C),t.append(o,c),t.append(o,m),t.append(m,d),t.append(d,y),t.append(m,M),t.append(m,l),t.append(l,_),n[14](e),s=!0,w||(k=[t.listen(r,"click",n[4]),t.listen(d,"click",n[6]),t.listen(l,"click",n[5])],w=!0)},p(a,[f]){x&&x.p&&(!s||f&4096)&&t.update_slot_base(x,G,a,a[12],s?t.get_slot_changes(G,a[12],f,N):t.get_all_dirty_from_scope(a[12]),F),(!s||f&1)&&t.set_data(C,a[0]),(!s||f&4)&&u!==(u=a[2]("cancel")+"")&&t.set_data(y,u),(!s||f&4)&&b!==(b=a[2]("confirm")+"")&&t.set_data(_,b)},i(a){s||(t.transition_in(g,a),s=!0)},o(a){t.transition_out(g,a),s=!1},d(a){a&&t.detach(e),g&&g.d(a),n[14](null),w=!1,t.run_all(k)}}}function W(n,e,o){let r;t.component_subscribe(n,t.$format,i=>o(2,r=i));let{$$slots:h={},$$scope:v}=e,{modaltext:C="Are you sure that you want to perform this action?"}=e,{modalsource:c=""}=e,{lang:m="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:u=""}=e,{translationurl:y=""}=e;const M=()=>{fetch(y).then(p=>p.json()).then(p=>{Object.keys(p).forEach(L=>{B(L,p[L])})}).catch(p=>{console.log(p)})};Object.keys(A).forEach(i=>{B(i,A[i])});let l,b=window.navigator.userAgent,_=t.getDevice(b)!=="PC",s={},w="";const k=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},G=()=>{c==="groupEdit"?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:s,name:w},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},x=()=>{c==="groupEdit"?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},g=i=>i==="Time Limit"?"cumulativeSessionLimits":i==="Deposit Limit"?"depositLimits":i==="Wagering Limit"?"wageringLimit":"lossLimit",a=i=>{if(i.data)switch(i.data.type){case"DeleteLimitsItem":s=i.data.removeData,w=g(i.data.removeName);break}},f=()=>{j(m)},z=()=>{let i=document.createElement("style");i.innerHTML=d,l.appendChild(i)},S=()=>{let i=new URL(u),p=document.createElement("style");fetch(i.href).then(L=>L.text()).then(L=>{p.innerHTML=L,setTimeout(()=>{l.appendChild(p)},1)})};t.onMount(()=>(window.addEventListener("message",a,!1),()=>{window.removeEventListener("message",a)}));function T(i){t.binding_callbacks[i?"unshift":"push"](()=>{l=i,o(1,l)})}return n.$$set=i=>{"modaltext"in i&&o(0,C=i.modaltext),"modalsource"in i&&o(7,c=i.modalsource),"lang"in i&&o(8,m=i.lang),"clientstyling"in i&&o(9,d=i.clientstyling),"clientstylingurl"in i&&o(10,u=i.clientstylingurl),"translationurl"in i&&o(11,y=i.translationurl),"$$scope"in i&&o(12,v=i.$$scope)},n.$$.update=()=>{n.$$.dirty&385&&C&&c&&m&&f(),n.$$.dirty&514&&d&&l&&z(),n.$$.dirty&1026&&u&&l&&S(),n.$$.dirty&2048&&y&&M()},[C,l,r,_,k,G,x,c,m,d,u,y,v,h,T]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,P,t.safe_not_equal,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,translationurl:11},D)}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),t.flush()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[11]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(E,{modaltext:{},modalsource:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},["close"],[],!0);exports.default=E;