@everymatrix/player-account-controller 1.44.0 → 1.45.2
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.
- package/components/GeneralLogout-DR-XxT8N.js +4832 -0
- package/components/GeneralLogout-bc8vhI_H.cjs +8 -0
- package/components/PlayerAccountBettingHistory-BK6xPWSw.cjs +1 -0
- package/components/PlayerAccountBettingHistory-fca6lsNS.js +328 -0
- package/components/PlayerAccountBiometrics-C-3zrtyy.cjs +1 -0
- package/components/PlayerAccountBiometrics-CjiFJhw-.js +300 -0
- package/components/PlayerAccountClosure-C8BNtCld.cjs +1 -0
- package/components/PlayerAccountClosure-jv1Rveed.js +339 -0
- package/components/PlayerAccountController-B5GxyiMU.cjs +1 -0
- package/components/PlayerAccountController-BJBxx9xW.js +6176 -0
- package/components/PlayerAccountGamingLimits-D3HbxASA.js +758 -0
- package/components/PlayerAccountGamingLimits-a_ERECbs.cjs +1 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-D0i0fMnV.js +306 -0
- package/components/PlayerAccountGamingLimitsConfirmationModal-l6qA-tGo.cjs +1 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-C0TmN9tW.cjs +10 -0
- package/components/PlayerAccountGamingLimitsGroupEdit-Ds0hHVHM.js +4148 -0
- package/components/PlayerAccountGamingLimitsHistory2-BQABSfo3.cjs +1 -0
- package/components/PlayerAccountGamingLimitsHistory2-CMLSdTnW.js +734 -0
- package/components/PlayerAccountGamingLimitsInfoCard-0xDp-CBL.cjs +1 -0
- package/components/PlayerAccountGamingLimitsInfoCard-BBL_jJC8.js +1488 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-B7_BHyXu.js +2794 -0
- package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +21 -0
- package/components/PlayerAccountGamingLimitsPopup-B_VQVAW1.js +339 -0
- package/components/PlayerAccountGamingLimitsPopup-CRCoJtQR.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-oY7Nyl9P.cjs +1 -0
- package/components/PlayerAccountGamingLimitsWrapper2-qU20DTdn.js +844 -0
- package/components/PlayerAccountMenu-Cguxd1Gn.js +576 -0
- package/components/PlayerAccountMenu-_QF6LQHb.cjs +1 -0
- package/components/PlayerAccountModal-BpuFEHxz.js +198 -0
- package/components/PlayerAccountModal-CIR41mpM.cjs +1 -0
- package/components/PlayerAccountNotifications-DNWMsUnC.cjs +1 -0
- package/components/PlayerAccountNotifications-SC-So9Ge.js +261 -0
- package/components/PlayerAccountSelfExclusion-DVLlbxoJ.cjs +3693 -0
- package/components/PlayerAccountSelfExclusion-zuKOJE1A.js +16404 -0
- package/components/PlayerAccountTimeout-C0nlqzAC.cjs +1 -0
- package/components/PlayerAccountTimeout-CMxX7J1C.js +448 -0
- package/components/PlayerActiveBonuses-CinsfLQL.js +986 -0
- package/components/PlayerActiveBonuses-bY0Y51Al.cjs +1 -0
- package/components/PlayerBonusCard-CQTRKi8G.js +565 -0
- package/components/PlayerBonusCard-DdxYH7lf.cjs +1 -0
- package/components/PlayerBonusHistory-CnA7jYi8.cjs +1 -0
- package/components/PlayerBonusHistory-Dz9N_GGZ.js +840 -0
- package/components/PlayerChangePassword-B9qM0mFd.js +1161 -0
- package/components/PlayerChangePassword-BDyXZ2_q.cjs +3 -0
- package/components/PlayerDeposit-CYpXuZIT.cjs +1 -0
- package/components/PlayerDeposit-Dvm1Z2l9.js +395 -0
- package/components/PlayerGamingHistory-1wUzXwQ1.js +920 -0
- package/components/PlayerGamingHistory-TcfH2pYz.cjs +1 -0
- package/components/PlayerPendingWithdrawals-DgF86kij.js +307 -0
- package/components/PlayerPendingWithdrawals-Dn63yKxo.cjs +1 -0
- package/components/PlayerProfileInfo-CsWD1vK0.cjs +1 -0
- package/components/PlayerProfileInfo-D-A2kQVn.js +1707 -0
- package/components/PlayerRealityCheck-BaBE_tNE.cjs +1 -0
- package/components/PlayerRealityCheck-gh3vV1ow.js +587 -0
- package/components/PlayerTransactionHistory-DJICk5qY.cjs +1 -0
- package/components/PlayerTransactionHistory-DpPF3FQq.js +311 -0
- package/components/PlayerWithdrawal-BHyCdUgc.js +365 -0
- package/components/PlayerWithdrawal-DuxGAxKs.cjs +1 -0
- package/es2015/player-account-controller.cjs +1 -0
- package/es2015/player-account-controller.js +16 -0
- package/package.json +38 -32
- package/CHANGELOG.md +0 -19
- package/README.md +0 -0
- package/assets/arrow-down.svg +0 -3
- package/dist/player-account-controller.js +0 -2221
- package/dist/player-account-controller.js.map +0 -1
- package/documentation.md +0 -166
- package/index.html +0 -46
- package/index.js +0 -1
- package/public/favicon.png +0 -0
- package/public/reset.css +0 -48
- package/rollup.config.js +0 -67
- package/src/PlayerAccountController.svelte +0 -732
- package/src/PlayerAccountController.types.ts +0 -5
- package/src/i18n.js +0 -27
- package/src/index.ts +0 -4
- package/src/translations.js +0 -102
- package/stories/PlayerAccountPage.stories.js +0 -13
- package/tsconfig.json +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bc8vhI_H.cjs");function C(i,t){e.addMessages(i,t)}function W(i){e.$locale.set(i)}const D={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-0xDp-CBL.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-info-card")&&customElements.define("player-account-gaming-limits-info-card",t.element)})}function z(i){e.append_styles(i,"svelte-2nhngj",'.PlayerAccountGamingLimitsWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{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 svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emfe-w-color-white, #FFFFFF);max-width:unset}.PlayerAccountTabletGamingLimitsWrapper{padding:40px 25% 40px 25%}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emfe-w-color-primary-50, #FBECF4);border:1px solid var(--emfe-w-color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader: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:Loader 1.2s linear infinite}@keyframes 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 V(i){let t,a,s,o=i[16]("gamingLimitsText")+"",u,f,_,c,w,r,L,d,y,g,p=i[17]&&U(i);return{c(){t=e.element("div"),p&&p.c(),a=e.space(),s=e.element("h2"),u=e.text(o),f=e.space(),_=e.element("div"),c=e.element("player-account-gaming-limits-info-card"),w=e.space(),r=e.element("player-account-gaming-limits-info-card"),L=e.space(),d=e.element("player-account-gaming-limits-info-card"),y=e.space(),g=e.element("player-account-gaming-limits-info-card"),e.attr(s,"class","PlayerGamingLimitsTitle "+(i[17]?"PlayerGamingLimitsTitleNone":"")),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(r,"limitsdata",i[2]),e.set_custom_element_data(r,"limitname",K),e.set_custom_element_data(r,"playercurrency",i[5]),e.set_custom_element_data(r,"lang",i[0]),e.set_custom_element_data(r,"clientstyling",i[9]),e.set_custom_element_data(r,"clientstylingurl",i[10]),e.set_custom_element_data(d,"limitsdata",i[3]),e.set_custom_element_data(d,"limitname",Q),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.set_custom_element_data(g,"limitsdata",i[4]),e.set_custom_element_data(g,"limitname",Y),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.attr(_,"class","PlayerAccountGamingLimitsContainer"),e.attr(t,"class","PlayerAccountGamingLimitsWrapper "+(i[17]?"PlayerAccountMobileGamingLimitsWrapper":"")+" "+(i[18].matches&&i[17]?"PlayerAccountTabletGamingLimitsWrapper":""))},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(_,r),e.append(_,L),e.append(_,d),e.append(_,y),e.append(_,g)},p(l,m){l[17]&&p.p(l,m),m&65536&&o!==(o=l[16]("gamingLimitsText")+"")&&e.set_data(u,o),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(r,"limitsdata",l[2]),m&32&&e.set_custom_element_data(r,"playercurrency",l[5]),m&1&&e.set_custom_element_data(r,"lang",l[0]),m&512&&e.set_custom_element_data(r,"clientstyling",l[9]),m&1024&&e.set_custom_element_data(r,"clientstylingurl",l[10]),m&8&&e.set_custom_element_data(d,"limitsdata",l[3]),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]),m&16&&e.set_custom_element_data(g,"limitsdata",l[4]),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])},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")},m(a,s){e.insert(a,t,s)},p:e.noop,d(a){a&&e.detach(t)}}}function U(i){let t,a,s,o,u,f,_,c,w,r,L=i[16]("gamingLimitsText")+"",d,y,g;return{c(){t=e.element("div"),a=e.svg_element("svg"),s=e.svg_element("defs"),o=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(),r=e.element("h2"),d=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(r,"class","PlayerGamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(p,l){e.insert(p,t,l),e.append(t,a),e.append(a,s),e.append(s,o),e.append(o,u),e.append(a,f),e.append(f,_),e.append(_,c),e.append(t,w),e.append(t,r),e.append(r,d),y||(g=e.listen(t,"click",i[21]),y=!0)},p(p,l){l&65536&&L!==(L=p[16]("gamingLimitsText")+"")&&e.set_data(d,L)},d(p){p&&e.detach(t),y=!1,g()}}}function Z(i){let t;function a(u,f){return u[12]?q:u[15]?V:H}let s=a(i),o=s(i);return{c(){t=e.element("div"),o.c()},m(u,f){e.insert(u,t,f),o.m(t,null),i[22](t)},p(u,[f]){s===(s=a(u))&&o?o.p(u,f):(o.d(1),o=s(u),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o.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:o}=t,{wageringlimit:u}=t,{losslimit:f}=t,{timelimit:_}=t,{showdeletenotification:c=!1}=t,{showsuccessnotification:w=!1}=t,{lang:r="en"}=t,{playercurrency:L=""}=t,{separatelimits:d="true"}=t,{clientstyling:y=""}=t,{clientstylingurl:g=""}=t,{translationurl:p=""}=t;const l=()=>{fetch(p).then(h=>h.json()).then(h=>{Object.keys(h).forEach(T=>{C(T,h[T])})}).catch(h=>{console.log(h)})};Object.keys(D).forEach(n=>{C(n,D[n])});let m,v=!0,E=window.navigator.userAgent,P=e.getDevice(E)!=="PC",k,b="",M=!0;const R=window.matchMedia("(min-width: 768px)"),A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},S=()=>{W(r)},G=n=>{if(n.data)switch(n.data.type){case"PlayerLimitsData":a(0,r=n.data.limits.lang),a(1,o=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,v=!1);break;case"EditPlayerAccountGamingLimits":a(13,k=n.data.edit),a(14,b=n.data.name),a(15,M=!1),window.postMessage({type:"EditPlayerLimit",name:b},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":a(15,M=!0);break;case"ProfileDetailsData":let h=n.data.profileDetails;a(5,L=h.currency);break}},B=()=>{let n=document.createElement("style");n.innerHTML=y,m.appendChild(n)},F=()=>{let n=new URL(g),h=document.createElement("style");fetch(n.href).then(T=>T.text()).then(T=>{h.innerHTML=T,setTimeout(()=>{m.appendChild(h)},1)})};e.onMount(()=>(window.addEventListener("message",G,!1),()=>{window.removeEventListener("message",G)}));const N=()=>A();function O(n){e.binding_callbacks[n?"unshift":"push"](()=>{m=n,a(11,m)})}return i.$$set=n=>{"depositlimit"in n&&a(1,o=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,r=n.lang),"playercurrency"in n&&a(5,L=n.playercurrency),"separatelimits"in n&&a(8,d=n.separatelimits),"clientstyling"in n&&a(9,y=n.clientstyling),"clientstylingurl"in n&&a(10,g=n.clientstylingurl),"translationurl"in n&&a(20,p=n.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&r&&S(),i.$$.dirty&2560&&y&&m&&B(),i.$$.dirty&3072&&g&&m&&F(),i.$$.dirty&1048576&&p&&l()},[r,o,u,f,_,L,c,w,d,y,g,m,v,k,b,M,s,P,R,A,p,N,O]}class j 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},z)}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(j,{depositlimit:{},wageringlimit:{},losslimit:{},timelimit:{},showdeletenotification:{type:"Boolean"},showsuccessnotification:{type:"Boolean"},lang:{},playercurrency:{},separatelimits:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=j;
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import { a as q, $ as U, S as J, i as K, f as M, c as Q, s as V, b as X, F as Y, e as x, 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 j, J as it, K as et, p as H, r as nt, q as ot, u as at, v as rt, x as st, w as T, o as lt, y as mt } from "./GeneralLogout-DR-XxT8N.js";
|
|
2
|
+
function D(e, t) {
|
|
3
|
+
q(e, t);
|
|
4
|
+
}
|
|
5
|
+
function ct(e) {
|
|
6
|
+
U.set(e);
|
|
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(e) {
|
|
51
|
+
X(e, "svelte-1jqx48g", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{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{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::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::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{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{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 .GamingLimitsConfirmButton{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{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 svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
52
|
+
}
|
|
53
|
+
const gt = (e) => ({}), O = (e) => ({});
|
|
54
|
+
function ut(e) {
|
|
55
|
+
let t, n;
|
|
56
|
+
return {
|
|
57
|
+
c() {
|
|
58
|
+
t = T("svg"), n = T("path"), a(n, "stroke-linecap", "round"), a(n, "stroke-linejoin", "round"), a(n, "stroke-width", "2"), a(n, "d", "M6 18L18 6M6 6l12 12"), a(t, "class", "w-6 h-6"), 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(r, y) {
|
|
61
|
+
W(r, t, y), l(t, n);
|
|
62
|
+
},
|
|
63
|
+
p: lt,
|
|
64
|
+
d(r) {
|
|
65
|
+
r && H(t);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function ft(e) {
|
|
70
|
+
let t, n, r, y, h, w, d, c, g, f = (
|
|
71
|
+
/*$_*/
|
|
72
|
+
e[2]("cancel") + ""
|
|
73
|
+
), b, A, s, L = (
|
|
74
|
+
/*$_*/
|
|
75
|
+
e[2]("confirm") + ""
|
|
76
|
+
), k, m, v, F;
|
|
77
|
+
const B = (
|
|
78
|
+
/*#slots*/
|
|
79
|
+
e[13].close
|
|
80
|
+
), _ = Y(
|
|
81
|
+
B,
|
|
82
|
+
e,
|
|
83
|
+
/*$$scope*/
|
|
84
|
+
e[12],
|
|
85
|
+
O
|
|
86
|
+
), u = _ || ut();
|
|
87
|
+
return {
|
|
88
|
+
c() {
|
|
89
|
+
t = x("div"), n = x("div"), r = x("span"), u && u.c(), y = E(), h = x("div"), w = z(
|
|
90
|
+
/*modaltext*/
|
|
91
|
+
e[0]
|
|
92
|
+
), d = E(), c = x("div"), g = x("button"), b = z(f), A = E(), s = x("button"), k = z(L), a(r, "class", "ModalCloseBtn"), a(r, "role", "button"), a(h, "class", "GamingLimitsConfirmationContent"), a(g, "class", "GamingLimitsCancelButton"), a(s, "class", "GamingLimitsConfirmButton"), a(c, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
93
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), a(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
94
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), a(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
95
|
+
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
96
|
+
},
|
|
97
|
+
m(o, p) {
|
|
98
|
+
W(o, t, p), l(t, n), l(n, r), u && u.m(r, null), l(n, y), l(n, h), l(h, w), l(n, d), l(n, c), l(c, g), l(g, b), l(c, A), l(c, s), l(s, k), e[14](t), m = !0, v || (F = [
|
|
99
|
+
S(
|
|
100
|
+
r,
|
|
101
|
+
"click",
|
|
102
|
+
/*close*/
|
|
103
|
+
e[4]
|
|
104
|
+
),
|
|
105
|
+
S(
|
|
106
|
+
g,
|
|
107
|
+
"click",
|
|
108
|
+
/*cancelChanges*/
|
|
109
|
+
e[6]
|
|
110
|
+
),
|
|
111
|
+
S(
|
|
112
|
+
s,
|
|
113
|
+
"click",
|
|
114
|
+
/*confirmChanges*/
|
|
115
|
+
e[5]
|
|
116
|
+
)
|
|
117
|
+
], v = !0);
|
|
118
|
+
},
|
|
119
|
+
p(o, [p]) {
|
|
120
|
+
_ && _.p && (!m || p & /*$$scope*/
|
|
121
|
+
4096) && Z(
|
|
122
|
+
_,
|
|
123
|
+
B,
|
|
124
|
+
o,
|
|
125
|
+
/*$$scope*/
|
|
126
|
+
o[12],
|
|
127
|
+
m ? tt(
|
|
128
|
+
B,
|
|
129
|
+
/*$$scope*/
|
|
130
|
+
o[12],
|
|
131
|
+
p,
|
|
132
|
+
gt
|
|
133
|
+
) : $(
|
|
134
|
+
/*$$scope*/
|
|
135
|
+
o[12]
|
|
136
|
+
),
|
|
137
|
+
O
|
|
138
|
+
), (!m || p & /*modaltext*/
|
|
139
|
+
1) && j(
|
|
140
|
+
w,
|
|
141
|
+
/*modaltext*/
|
|
142
|
+
o[0]
|
|
143
|
+
), (!m || p & /*$_*/
|
|
144
|
+
4) && f !== (f = /*$_*/
|
|
145
|
+
o[2]("cancel") + "") && j(b, f), (!m || p & /*$_*/
|
|
146
|
+
4) && L !== (L = /*$_*/
|
|
147
|
+
o[2]("confirm") + "") && j(k, L);
|
|
148
|
+
},
|
|
149
|
+
i(o) {
|
|
150
|
+
m || (it(u, o), m = !0);
|
|
151
|
+
},
|
|
152
|
+
o(o) {
|
|
153
|
+
et(u, o), m = !1;
|
|
154
|
+
},
|
|
155
|
+
d(o) {
|
|
156
|
+
o && H(t), u && u.d(o), e[14](null), v = !1, nt(F);
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function pt(e, t, n) {
|
|
161
|
+
let r;
|
|
162
|
+
ot(e, mt, (i) => n(2, r = i));
|
|
163
|
+
let { $$slots: y = {}, $$scope: h } = t, { modaltext: w = "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: b = "" } = t;
|
|
164
|
+
const A = () => {
|
|
165
|
+
fetch(b).then((C) => C.json()).then((C) => {
|
|
166
|
+
Object.keys(C).forEach((G) => {
|
|
167
|
+
D(G, C[G]);
|
|
168
|
+
});
|
|
169
|
+
}).catch((C) => {
|
|
170
|
+
console.log(C);
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
Object.keys(N).forEach((i) => {
|
|
174
|
+
D(i, N[i]);
|
|
175
|
+
});
|
|
176
|
+
let s, L = window.navigator.userAgent, k = at(L) !== "PC", m = {}, v = "";
|
|
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: v
|
|
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 = (i) => i === "Time Limit" ? "cumulativeSessionLimits" : i === "Deposit Limit" ? "depositLimits" : i === "Wagering Limit" ? "wageringLimit" : "lossLimit", o = (i) => {
|
|
191
|
+
if (i.data)
|
|
192
|
+
switch (i.data.type) {
|
|
193
|
+
case "DeleteLimitsItem":
|
|
194
|
+
m = i.data.removeData, v = u(i.data.removeName);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}, p = () => {
|
|
198
|
+
ct(c);
|
|
199
|
+
}, I = () => {
|
|
200
|
+
let i = document.createElement("style");
|
|
201
|
+
i.innerHTML = g, s.appendChild(i);
|
|
202
|
+
}, P = () => {
|
|
203
|
+
let i = new URL(f), C = document.createElement("style");
|
|
204
|
+
fetch(i.href).then((G) => G.text()).then((G) => {
|
|
205
|
+
C.innerHTML = G, setTimeout(
|
|
206
|
+
() => {
|
|
207
|
+
s.appendChild(C);
|
|
208
|
+
},
|
|
209
|
+
1
|
|
210
|
+
);
|
|
211
|
+
});
|
|
212
|
+
};
|
|
213
|
+
rt(() => (window.addEventListener("message", o, !1), () => {
|
|
214
|
+
window.removeEventListener("message", o);
|
|
215
|
+
}));
|
|
216
|
+
function R(i) {
|
|
217
|
+
st[i ? "unshift" : "push"](() => {
|
|
218
|
+
s = i, n(1, s);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return e.$$set = (i) => {
|
|
222
|
+
"modaltext" in i && n(0, w = i.modaltext), "modalsource" in i && n(7, d = i.modalsource), "lang" in i && n(8, c = i.lang), "clientstyling" in i && n(9, g = i.clientstyling), "clientstylingurl" in i && n(10, f = i.clientstylingurl), "translationurl" in i && n(11, b = i.translationurl), "$$scope" in i && n(12, h = i.$$scope);
|
|
223
|
+
}, e.$$.update = () => {
|
|
224
|
+
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
225
|
+
385 && w && d && c && p(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
226
|
+
514 && g && s && I(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
227
|
+
1026 && f && s && P(), e.$$.dirty & /*translationurl*/
|
|
228
|
+
2048 && b && A();
|
|
229
|
+
}, [
|
|
230
|
+
w,
|
|
231
|
+
s,
|
|
232
|
+
r,
|
|
233
|
+
k,
|
|
234
|
+
F,
|
|
235
|
+
B,
|
|
236
|
+
_,
|
|
237
|
+
d,
|
|
238
|
+
c,
|
|
239
|
+
g,
|
|
240
|
+
f,
|
|
241
|
+
b,
|
|
242
|
+
h,
|
|
243
|
+
y,
|
|
244
|
+
R
|
|
245
|
+
];
|
|
246
|
+
}
|
|
247
|
+
class Ct extends J {
|
|
248
|
+
constructor(t) {
|
|
249
|
+
super(), K(
|
|
250
|
+
this,
|
|
251
|
+
t,
|
|
252
|
+
pt,
|
|
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(Ct, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, ["close"], [], !0);
|
|
304
|
+
export {
|
|
305
|
+
Ct as default
|
|
306
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./GeneralLogout-bc8vhI_H.cjs");function B(n,e){t.addMessages(n,e)}function T(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-1jqx48g",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{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{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::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::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{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{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 .GamingLimitsConfirmButton{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{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 svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{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(e,"class","w-6 h-6"),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,w){t.insert(r,e,w),t.append(e,o)},p:t.noop,d(r){r&&t.detach(e)}}}function P(n){let e,o,r,w,h,b,c,m,d,u=n[2]("cancel")+"",C,M,l,x=n[2]("confirm")+"",_,s,y,k;const G=n[13].close,L=t.create_slot(G,n,n[12],F),g=L||O();return{c(){e=t.element("div"),o=t.element("div"),r=t.element("span"),g&&g.c(),w=t.space(),h=t.element("div"),b=t.text(n[0]),c=t.space(),m=t.element("div"),d=t.element("button"),C=t.text(u),M=t.space(),l=t.element("button"),_=t.text(x),t.attr(r,"class","ModalCloseBtn"),t.attr(r,"role","button"),t.attr(h,"class","GamingLimitsConfirmationContent"),t.attr(d,"class","GamingLimitsCancelButton"),t.attr(l,"class","GamingLimitsConfirmButton"),t.attr(m,"class","GamingLimitsConfirmationControlArea "+(n[3]?"GamingLimitsConfirmationControlAreaMobile":"")),t.attr(o,"class","GamingLimitsConfirmationContainer "+(n[3]?"GamingLimitsConfirmationContainerMobile":"")),t.attr(e,"class","GamingLimitsConfirmationWrapper "+(n[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(a,f){t.insert(a,e,f),t.append(e,o),t.append(o,r),g&&g.m(r,null),t.append(o,w),t.append(o,h),t.append(h,b),t.append(o,c),t.append(o,m),t.append(m,d),t.append(d,C),t.append(m,M),t.append(m,l),t.append(l,_),n[14](e),s=!0,y||(k=[t.listen(r,"click",n[4]),t.listen(d,"click",n[6]),t.listen(l,"click",n[5])],y=!0)},p(a,[f]){L&&L.p&&(!s||f&4096)&&t.update_slot_base(L,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(b,a[0]),(!s||f&4)&&u!==(u=a[2]("cancel")+"")&&t.set_data(C,u),(!s||f&4)&&x!==(x=a[2]("confirm")+"")&&t.set_data(_,x)},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),y=!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:w={},$$scope:h}=e,{modaltext:b="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:C=""}=e;const M=()=>{fetch(C).then(p=>p.json()).then(p=>{Object.keys(p).forEach(v=>{B(v,p[v])})}).catch(p=>{console.log(p)})};Object.keys(A).forEach(i=>{B(i,A[i])});let l,x=window.navigator.userAgent,_=t.getDevice(x)!=="PC",s={},y="";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:y},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},L=()=>{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,y=g(i.data.removeName);break}},f=()=>{T(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(v=>v.text()).then(v=>{p.innerHTML=v,setTimeout(()=>{l.appendChild(p)},1)})};t.onMount(()=>(window.addEventListener("message",a,!1),()=>{window.removeEventListener("message",a)}));function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{l=i,o(1,l)})}return n.$$set=i=>{"modaltext"in i&&o(0,b=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,C=i.translationurl),"$$scope"in i&&o(12,h=i.$$scope)},n.$$.update=()=>{n.$$.dirty&385&&b&&c&&m&&f(),n.$$.dirty&514&&d&&l&&z(),n.$$.dirty&1026&&u&&l&&S(),n.$$.dirty&2048&&C&&M()},[b,l,r,_,k,G,L,c,m,d,u,C,h,w,j]}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;
|