@everymatrix/player-account-gaming-limits-info-card 1.87.26 → 1.87.28

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 (30) hide show
  1. package/components/PlayerAccountGamingLimitsConfirmationModal-BYHSs6fR.cjs +1 -0
  2. package/components/PlayerAccountGamingLimitsConfirmationModal-CtIhJMaZ.js +306 -0
  3. package/components/PlayerAccountGamingLimitsConfirmationModal-D9vdZ_ZM.js +306 -0
  4. package/components/PlayerAccountGamingLimitsGroupEdit-9whpgWve.js +1568 -0
  5. package/components/PlayerAccountGamingLimitsGroupEdit-DDshAKn0.cjs +1 -0
  6. package/components/PlayerAccountGamingLimitsGroupEdit-ZOzNQ83F.js +1568 -0
  7. package/components/PlayerAccountGamingLimitsInfoCard-BfqHDlYw.cjs +21 -0
  8. package/components/PlayerAccountGamingLimitsInfoCard-C2dv23qd.js +7411 -0
  9. package/components/PlayerAccountGamingLimitsInfoCard-D_exrGvT.js +7453 -0
  10. package/components/{PlayerAccountGamingLimitsPopup-DHSJ1hpq.js → PlayerAccountGamingLimitsPopup-DG8wpexC.js} +54 -54
  11. package/components/{PlayerAccountGamingLimitsPopup-Ce55cV9R.js → PlayerAccountGamingLimitsPopup-DeXpcbYH.js} +55 -55
  12. package/components/PlayerAccountGamingLimitsPopup-k9o2qPBt.cjs +1 -0
  13. package/components/{PlayerAccountModal-AxHHIdPq.js → PlayerAccountModal-BY_l7Qz-.js} +30 -30
  14. package/components/{PlayerAccountModal-0pqyx-hh.js → PlayerAccountModal-DjywE99z.js} +29 -29
  15. package/components/PlayerAccountModal-ICYwhG76.cjs +1 -0
  16. package/es2015/player-account-gaming-limits-info-card.cjs +1 -1
  17. package/es2015/player-account-gaming-limits-info-card.js +7 -7
  18. package/esnext/player-account-gaming-limits-info-card.js +1 -1
  19. package/package.json +1 -1
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CPjx_DH_.js +0 -4890
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-Csrimoqp.js +0 -4853
  22. package/components/PlayerAccountGamingLimitsConfirmationModal-RcOa0NNg.cjs +0 -21
  23. package/components/PlayerAccountGamingLimitsGroupEdit-Ca1m5XU8.js +0 -2850
  24. package/components/PlayerAccountGamingLimitsGroupEdit-Cqs__n7J.cjs +0 -1
  25. package/components/PlayerAccountGamingLimitsGroupEdit-DSun0_Zz.js +0 -2850
  26. package/components/PlayerAccountGamingLimitsInfoCard-BQDa_Mg_.cjs +0 -1
  27. package/components/PlayerAccountGamingLimitsInfoCard-C88f1sX4.js +0 -1564
  28. package/components/PlayerAccountGamingLimitsInfoCard-DzK7V5Rg.js +0 -1564
  29. package/components/PlayerAccountGamingLimitsPopup-4zxoW8_v.cjs +0 -1
  30. package/components/PlayerAccountModal-DJEDpoZF.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimitsInfoCard-BfqHDlYw.cjs");function A(n,e){t.addMessages(n,e)}function D(n){t.$locale.set(n)}const F={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"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function N(n){t.append_styles(n,"svelte-n224ff",'*,*::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, 10px)}.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, 10px)}.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, 10px);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, 10px);color:var(--emw--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 O=n=>({}),S=n=>({});function P(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(l,y){t.insert(l,e,y),t.append(e,o)},p:t.noop,d(l){l&&t.detach(e)}}}function T(n){let e,o,l,y,C,b,c,s,d,u=n[2]("cancel")+"",p,h,w,r=n[2]("confirm")+"",v,m,G,M;const x=n[14].close,L=t.create_slot(x,n,n[13],S),g=L||P();return{c(){e=t.element("div"),o=t.element("div"),l=t.element("span"),g&&g.c(),y=t.space(),C=t.element("div"),b=t.text(n[0]),c=t.space(),s=t.element("div"),d=t.element("button"),p=t.text(u),h=t.space(),w=t.element("button"),v=t.text(r),t.attr(l,"class","ModalCloseBtn"),t.attr(l,"role","button"),t.attr(C,"class","GamingLimitsConfirmationContent"),t.attr(d,"class","GamingLimitsCancelButton"),t.attr(w,"class","GamingLimitsConfirmButton"),t.attr(s,"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,l),g&&g.m(l,null),t.append(o,y),t.append(o,C),t.append(C,b),t.append(o,c),t.append(o,s),t.append(s,d),t.append(d,p),t.append(s,h),t.append(s,w),t.append(w,v),n[15](e),m=!0,G||(M=[t.listen(l,"click",n[4]),t.listen(d,"click",n[6]),t.listen(w,"click",n[5])],G=!0)},p(a,[f]){L&&L.p&&(!m||f&8192)&&t.update_slot_base(L,x,a,a[13],m?t.get_slot_changes(x,a[13],f,O):t.get_all_dirty_from_scope(a[13]),S),(!m||f&1)&&t.set_data(b,a[0]),(!m||f&4)&&u!==(u=a[2]("cancel")+"")&&t.set_data(p,u),(!m||f&4)&&r!==(r=a[2]("confirm")+"")&&t.set_data(v,r)},i(a){m||(t.transition_in(g,a),m=!0)},o(a){t.transition_out(g,a),m=!1},d(a){a&&t.detach(e),g&&g.d(a),n[15](null),G=!1,t.run_all(M)}}}function W(n,e,o){let l;t.component_subscribe(n,t.$format,i=>o(2,l=i));let{$$slots:y={},$$scope:C}=e,{modaltext:b="Are you sure that you want to perform this action?"}=e,{modalsource:c=""}=e,{lang:s="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:u=""}=e,{mbsource:p}=e,{translationurl:h=""}=e;const w=()=>{fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(B=>{A(B,_[B])})}).catch(_=>{console.log(_)})};Object.keys(F).forEach(i=>{A(i,F[i])});let r,v,m=window.navigator.userAgent,G=t.getDevice(m)!=="PC",M={},x="";const L=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},g=()=>{c==="groupEdit"?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:M,name:x},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},a=()=>{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)},f=i=>i==="Time Limit"?"cumulativeSessionLimits":i==="Deposit Limit"?"depositLimits":i==="Wagering Limit"?"wageringLimit":"lossLimit",k=i=>{if(i.data)switch(i.data.type){case"DeleteLimitsItem":M=i.data.removeData,x=f(i.data.removeName);break}},E=()=>{D(s)};t.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{r=i,o(1,r)})}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,s=i.lang),"clientstyling"in i&&o(9,d=i.clientstyling),"clientstylingurl"in i&&o(10,u=i.clientstylingurl),"mbsource"in i&&o(11,p=i.mbsource),"translationurl"in i&&o(12,h=i.translationurl),"$$scope"in i&&o(13,C=i.$$scope)},n.$$.update=()=>{n.$$.dirty&385&&b&&c&&s&&E(),n.$$.dirty&514&&d&&r&&t.setClientStyling(r,d),n.$$.dirty&1026&&u&&r&&t.setClientStylingURL(r,u),n.$$.dirty&2050&&p&&r&&t.setStreamStyling(r,`${p}.Style`,v),n.$$.dirty&4096&&h&&w()},[b,r,l,G,L,g,a,c,s,d,u,p,h,C,y,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,T,t.safe_not_equal,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,mbsource:11,translationurl:12},N)}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 mbsource(){return this.$$.ctx[11]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{modaltext:{},modalsource:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},["close"],[],!0);exports.default=z;
@@ -0,0 +1,306 @@
1
+ import { a as q, $ as H, S as Q, i as V, s as J, f as x, b as K, Q as X, d as P, A as Y, N as Z, O as $, T as tt, U as it, V as et, j as F, c as I, l, m as z, q as L, r as E, t as S, k as a, g as nt, h as ot, o as at, n as rt, C as D, u as st, v as lt, w as mt, x as ct, y as dt, z as gt } from "./PlayerAccountGamingLimitsInfoCard-D_exrGvT.js";
2
+ function O(e, t) {
3
+ q(e, t);
4
+ }
5
+ function ut(e) {
6
+ H.set(e);
7
+ }
8
+ const T = {
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
+ "en-us": {
50
+ cancel: "Cancel",
51
+ confirm: "Confirm"
52
+ }
53
+ };
54
+ function ft(e) {
55
+ K(e, "svelte-n224ff", '*,*::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, 10px)}.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, 10px)}.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, 10px);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, 10px);color:var(--emw--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}');
56
+ }
57
+ const Ct = (e) => ({}), W = (e) => ({});
58
+ function pt(e) {
59
+ let t, n;
60
+ return {
61
+ c() {
62
+ t = D("svg"), n = D("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");
63
+ },
64
+ m(s, v) {
65
+ I(s, t, v), l(t, n);
66
+ },
67
+ p: rt,
68
+ d(s) {
69
+ s && P(t);
70
+ }
71
+ };
72
+ }
73
+ function bt(e) {
74
+ let t, n, s, v, b, h, d, m, g, f = (
75
+ /*$_*/
76
+ e[2]("cancel") + ""
77
+ ), p, w, y, r = (
78
+ /*$_*/
79
+ e[2]("confirm") + ""
80
+ ), k, c, B, A;
81
+ const _ = (
82
+ /*#slots*/
83
+ e[14].close
84
+ ), G = X(
85
+ _,
86
+ e,
87
+ /*$$scope*/
88
+ e[13],
89
+ W
90
+ ), u = G || pt();
91
+ return {
92
+ c() {
93
+ t = L("div"), n = L("div"), s = L("span"), u && u.c(), v = E(), b = L("div"), h = S(
94
+ /*modaltext*/
95
+ e[0]
96
+ ), d = E(), m = L("div"), g = L("button"), p = S(f), w = E(), y = L("button"), k = S(r), a(s, "class", "ModalCloseBtn"), a(s, "role", "button"), a(b, "class", "GamingLimitsConfirmationContent"), a(g, "class", "GamingLimitsCancelButton"), a(y, "class", "GamingLimitsConfirmButton"), a(m, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
97
+ (e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), a(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
98
+ (e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), a(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
99
+ (e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
100
+ },
101
+ m(o, C) {
102
+ I(o, t, C), l(t, n), l(n, s), u && u.m(s, null), l(n, v), l(n, b), l(b, h), l(n, d), l(n, m), l(m, g), l(g, p), l(m, w), l(m, y), l(y, k), e[15](t), c = !0, B || (A = [
103
+ z(
104
+ s,
105
+ "click",
106
+ /*close*/
107
+ e[4]
108
+ ),
109
+ z(
110
+ g,
111
+ "click",
112
+ /*cancelChanges*/
113
+ e[6]
114
+ ),
115
+ z(
116
+ y,
117
+ "click",
118
+ /*confirmChanges*/
119
+ e[5]
120
+ )
121
+ ], B = !0);
122
+ },
123
+ p(o, [C]) {
124
+ G && G.p && (!c || C & /*$$scope*/
125
+ 8192) && tt(
126
+ G,
127
+ _,
128
+ o,
129
+ /*$$scope*/
130
+ o[13],
131
+ c ? et(
132
+ _,
133
+ /*$$scope*/
134
+ o[13],
135
+ C,
136
+ Ct
137
+ ) : it(
138
+ /*$$scope*/
139
+ o[13]
140
+ ),
141
+ W
142
+ ), (!c || C & /*modaltext*/
143
+ 1) && F(
144
+ h,
145
+ /*modaltext*/
146
+ o[0]
147
+ ), (!c || C & /*$_*/
148
+ 4) && f !== (f = /*$_*/
149
+ o[2]("cancel") + "") && F(p, f), (!c || C & /*$_*/
150
+ 4) && r !== (r = /*$_*/
151
+ o[2]("confirm") + "") && F(k, r);
152
+ },
153
+ i(o) {
154
+ c || ($(u, o), c = !0);
155
+ },
156
+ o(o) {
157
+ Z(u, o), c = !1;
158
+ },
159
+ d(o) {
160
+ o && P(t), u && u.d(o), e[15](null), B = !1, Y(A);
161
+ }
162
+ };
163
+ }
164
+ function ht(e, t, n) {
165
+ let s;
166
+ nt(e, gt, (i) => n(2, s = i));
167
+ let { $$slots: v = {}, $$scope: b } = t, { modaltext: h = "Are you sure that you want to perform this action?" } = t, { modalsource: d = "" } = t, { lang: m = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: p } = t, { translationurl: w = "" } = t;
168
+ const y = () => {
169
+ fetch(w).then((M) => M.json()).then((M) => {
170
+ Object.keys(M).forEach((N) => {
171
+ O(N, M[N]);
172
+ });
173
+ }).catch((M) => {
174
+ console.log(M);
175
+ });
176
+ };
177
+ Object.keys(T).forEach((i) => {
178
+ O(i, T[i]);
179
+ });
180
+ let r, k, c = window.navigator.userAgent, B = ot(c) !== "PC", A = {}, _ = "";
181
+ const G = () => {
182
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
183
+ }, u = () => {
184
+ d === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : d === "infoCard" && window.postMessage(
185
+ {
186
+ type: "PlayerAccountGamingLimitDelete",
187
+ limit: A,
188
+ name: _
189
+ },
190
+ window.location.href
191
+ ), window.postMessage({ type: "ModalClosed" }, window.location.href);
192
+ }, o = () => {
193
+ 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);
194
+ }, C = (i) => i === "Time Limit" ? "cumulativeSessionLimits" : i === "Deposit Limit" ? "depositLimits" : i === "Wagering Limit" ? "wageringLimit" : "lossLimit", j = (i) => {
195
+ if (i.data)
196
+ switch (i.data.type) {
197
+ case "DeleteLimitsItem":
198
+ A = i.data.removeData, _ = C(i.data.removeName);
199
+ break;
200
+ }
201
+ }, R = () => {
202
+ ut(m);
203
+ };
204
+ at(() => (window.addEventListener("message", j, !1), () => {
205
+ window.removeEventListener("message", j);
206
+ }));
207
+ function U(i) {
208
+ st[i ? "unshift" : "push"](() => {
209
+ r = i, n(1, r);
210
+ });
211
+ }
212
+ return e.$$set = (i) => {
213
+ "modaltext" in i && n(0, h = i.modaltext), "modalsource" in i && n(7, d = i.modalsource), "lang" in i && n(8, m = i.lang), "clientstyling" in i && n(9, g = i.clientstyling), "clientstylingurl" in i && n(10, f = i.clientstylingurl), "mbsource" in i && n(11, p = i.mbsource), "translationurl" in i && n(12, w = i.translationurl), "$$scope" in i && n(13, b = i.$$scope);
214
+ }, e.$$.update = () => {
215
+ e.$$.dirty & /*modaltext, modalsource, lang*/
216
+ 385 && h && d && m && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
217
+ 514 && g && r && lt(r, g), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
218
+ 1026 && f && r && mt(r, f), e.$$.dirty & /*mbsource, customStylingContainer*/
219
+ 2050 && p && r && ct(r, `${p}.Style`, k), e.$$.dirty & /*translationurl*/
220
+ 4096 && w && y();
221
+ }, [
222
+ h,
223
+ r,
224
+ s,
225
+ B,
226
+ G,
227
+ u,
228
+ o,
229
+ d,
230
+ m,
231
+ g,
232
+ f,
233
+ p,
234
+ w,
235
+ b,
236
+ v,
237
+ U
238
+ ];
239
+ }
240
+ class wt extends Q {
241
+ constructor(t) {
242
+ super(), V(
243
+ this,
244
+ t,
245
+ ht,
246
+ bt,
247
+ J,
248
+ {
249
+ modaltext: 0,
250
+ modalsource: 7,
251
+ lang: 8,
252
+ clientstyling: 9,
253
+ clientstylingurl: 10,
254
+ mbsource: 11,
255
+ translationurl: 12
256
+ },
257
+ ft
258
+ );
259
+ }
260
+ get modaltext() {
261
+ return this.$$.ctx[0];
262
+ }
263
+ set modaltext(t) {
264
+ this.$$set({ modaltext: t }), x();
265
+ }
266
+ get modalsource() {
267
+ return this.$$.ctx[7];
268
+ }
269
+ set modalsource(t) {
270
+ this.$$set({ modalsource: t }), x();
271
+ }
272
+ get lang() {
273
+ return this.$$.ctx[8];
274
+ }
275
+ set lang(t) {
276
+ this.$$set({ lang: t }), x();
277
+ }
278
+ get clientstyling() {
279
+ return this.$$.ctx[9];
280
+ }
281
+ set clientstyling(t) {
282
+ this.$$set({ clientstyling: t }), x();
283
+ }
284
+ get clientstylingurl() {
285
+ return this.$$.ctx[10];
286
+ }
287
+ set clientstylingurl(t) {
288
+ this.$$set({ clientstylingurl: t }), x();
289
+ }
290
+ get mbsource() {
291
+ return this.$$.ctx[11];
292
+ }
293
+ set mbsource(t) {
294
+ this.$$set({ mbsource: t }), x();
295
+ }
296
+ get translationurl() {
297
+ return this.$$.ctx[12];
298
+ }
299
+ set translationurl(t) {
300
+ this.$$set({ translationurl: t }), x();
301
+ }
302
+ }
303
+ dt(wt, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
304
+ export {
305
+ wt as default
306
+ };
@@ -0,0 +1,306 @@
1
+ import { a as q, $ as H, S as Q, i as V, s as J, f as x, b as K, Q as X, d as P, A as Y, N as Z, O as $, T as tt, U as it, V as et, k as F, e as I, m as l, p as z, r as L, t as E, u as S, l as a, h as nt, j as ot, o as at, n as rt, C as D, v as st, x as lt, y as mt, z as ct, c as dt, w as gt } from "./PlayerAccountGamingLimitsInfoCard-C2dv23qd.js";
2
+ function O(e, t) {
3
+ q(e, t);
4
+ }
5
+ function ut(e) {
6
+ H.set(e);
7
+ }
8
+ const T = {
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
+ "en-us": {
50
+ cancel: "Cancel",
51
+ confirm: "Confirm"
52
+ }
53
+ };
54
+ function ft(e) {
55
+ K(e, "svelte-n224ff", '*,*::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, 10px)}.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, 10px)}.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, 10px);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, 10px);color:var(--emw--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}');
56
+ }
57
+ const Ct = (e) => ({}), W = (e) => ({});
58
+ function pt(e) {
59
+ let t, n;
60
+ return {
61
+ c() {
62
+ t = D("svg"), n = D("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");
63
+ },
64
+ m(s, v) {
65
+ I(s, t, v), l(t, n);
66
+ },
67
+ p: rt,
68
+ d(s) {
69
+ s && P(t);
70
+ }
71
+ };
72
+ }
73
+ function bt(e) {
74
+ let t, n, s, v, b, h, d, m, g, f = (
75
+ /*$_*/
76
+ e[2]("cancel") + ""
77
+ ), p, w, y, r = (
78
+ /*$_*/
79
+ e[2]("confirm") + ""
80
+ ), k, c, B, A;
81
+ const _ = (
82
+ /*#slots*/
83
+ e[14].close
84
+ ), G = X(
85
+ _,
86
+ e,
87
+ /*$$scope*/
88
+ e[13],
89
+ W
90
+ ), u = G || pt();
91
+ return {
92
+ c() {
93
+ t = L("div"), n = L("div"), s = L("span"), u && u.c(), v = E(), b = L("div"), h = S(
94
+ /*modaltext*/
95
+ e[0]
96
+ ), d = E(), m = L("div"), g = L("button"), p = S(f), w = E(), y = L("button"), k = S(r), a(s, "class", "ModalCloseBtn"), a(s, "role", "button"), a(b, "class", "GamingLimitsConfirmationContent"), a(g, "class", "GamingLimitsCancelButton"), a(y, "class", "GamingLimitsConfirmButton"), a(m, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
97
+ (e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), a(n, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
98
+ (e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), a(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
99
+ (e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
100
+ },
101
+ m(o, C) {
102
+ I(o, t, C), l(t, n), l(n, s), u && u.m(s, null), l(n, v), l(n, b), l(b, h), l(n, d), l(n, m), l(m, g), l(g, p), l(m, w), l(m, y), l(y, k), e[15](t), c = !0, B || (A = [
103
+ z(
104
+ s,
105
+ "click",
106
+ /*close*/
107
+ e[4]
108
+ ),
109
+ z(
110
+ g,
111
+ "click",
112
+ /*cancelChanges*/
113
+ e[6]
114
+ ),
115
+ z(
116
+ y,
117
+ "click",
118
+ /*confirmChanges*/
119
+ e[5]
120
+ )
121
+ ], B = !0);
122
+ },
123
+ p(o, [C]) {
124
+ G && G.p && (!c || C & /*$$scope*/
125
+ 8192) && tt(
126
+ G,
127
+ _,
128
+ o,
129
+ /*$$scope*/
130
+ o[13],
131
+ c ? et(
132
+ _,
133
+ /*$$scope*/
134
+ o[13],
135
+ C,
136
+ Ct
137
+ ) : it(
138
+ /*$$scope*/
139
+ o[13]
140
+ ),
141
+ W
142
+ ), (!c || C & /*modaltext*/
143
+ 1) && F(
144
+ h,
145
+ /*modaltext*/
146
+ o[0]
147
+ ), (!c || C & /*$_*/
148
+ 4) && f !== (f = /*$_*/
149
+ o[2]("cancel") + "") && F(p, f), (!c || C & /*$_*/
150
+ 4) && r !== (r = /*$_*/
151
+ o[2]("confirm") + "") && F(k, r);
152
+ },
153
+ i(o) {
154
+ c || ($(u, o), c = !0);
155
+ },
156
+ o(o) {
157
+ Z(u, o), c = !1;
158
+ },
159
+ d(o) {
160
+ o && P(t), u && u.d(o), e[15](null), B = !1, Y(A);
161
+ }
162
+ };
163
+ }
164
+ function ht(e, t, n) {
165
+ let s;
166
+ nt(e, gt, (i) => n(2, s = i));
167
+ let { $$slots: v = {}, $$scope: b } = t, { modaltext: h = "Are you sure that you want to perform this action?" } = t, { modalsource: d = "" } = t, { lang: m = "en" } = t, { clientstyling: g = "" } = t, { clientstylingurl: f = "" } = t, { mbsource: p } = t, { translationurl: w = "" } = t;
168
+ const y = () => {
169
+ fetch(w).then((M) => M.json()).then((M) => {
170
+ Object.keys(M).forEach((N) => {
171
+ O(N, M[N]);
172
+ });
173
+ }).catch((M) => {
174
+ console.log(M);
175
+ });
176
+ };
177
+ Object.keys(T).forEach((i) => {
178
+ O(i, T[i]);
179
+ });
180
+ let r, k, c = window.navigator.userAgent, B = ot(c) !== "PC", A = {}, _ = "";
181
+ const G = () => {
182
+ window.postMessage({ type: "ModalClosed" }, window.location.href);
183
+ }, u = () => {
184
+ d === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : d === "infoCard" && window.postMessage(
185
+ {
186
+ type: "PlayerAccountGamingLimitDelete",
187
+ limit: A,
188
+ name: _
189
+ },
190
+ window.location.href
191
+ ), window.postMessage({ type: "ModalClosed" }, window.location.href);
192
+ }, o = () => {
193
+ 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);
194
+ }, C = (i) => i === "Time Limit" ? "cumulativeSessionLimits" : i === "Deposit Limit" ? "depositLimits" : i === "Wagering Limit" ? "wageringLimit" : "lossLimit", j = (i) => {
195
+ if (i.data)
196
+ switch (i.data.type) {
197
+ case "DeleteLimitsItem":
198
+ A = i.data.removeData, _ = C(i.data.removeName);
199
+ break;
200
+ }
201
+ }, R = () => {
202
+ ut(m);
203
+ };
204
+ at(() => (window.addEventListener("message", j, !1), () => {
205
+ window.removeEventListener("message", j);
206
+ }));
207
+ function U(i) {
208
+ st[i ? "unshift" : "push"](() => {
209
+ r = i, n(1, r);
210
+ });
211
+ }
212
+ return e.$$set = (i) => {
213
+ "modaltext" in i && n(0, h = i.modaltext), "modalsource" in i && n(7, d = i.modalsource), "lang" in i && n(8, m = i.lang), "clientstyling" in i && n(9, g = i.clientstyling), "clientstylingurl" in i && n(10, f = i.clientstylingurl), "mbsource" in i && n(11, p = i.mbsource), "translationurl" in i && n(12, w = i.translationurl), "$$scope" in i && n(13, b = i.$$scope);
214
+ }, e.$$.update = () => {
215
+ e.$$.dirty & /*modaltext, modalsource, lang*/
216
+ 385 && h && d && m && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
217
+ 514 && g && r && lt(r, g), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
218
+ 1026 && f && r && mt(r, f), e.$$.dirty & /*mbsource, customStylingContainer*/
219
+ 2050 && p && r && ct(r, `${p}.Style`, k), e.$$.dirty & /*translationurl*/
220
+ 4096 && w && y();
221
+ }, [
222
+ h,
223
+ r,
224
+ s,
225
+ B,
226
+ G,
227
+ u,
228
+ o,
229
+ d,
230
+ m,
231
+ g,
232
+ f,
233
+ p,
234
+ w,
235
+ b,
236
+ v,
237
+ U
238
+ ];
239
+ }
240
+ class wt extends Q {
241
+ constructor(t) {
242
+ super(), V(
243
+ this,
244
+ t,
245
+ ht,
246
+ bt,
247
+ J,
248
+ {
249
+ modaltext: 0,
250
+ modalsource: 7,
251
+ lang: 8,
252
+ clientstyling: 9,
253
+ clientstylingurl: 10,
254
+ mbsource: 11,
255
+ translationurl: 12
256
+ },
257
+ ft
258
+ );
259
+ }
260
+ get modaltext() {
261
+ return this.$$.ctx[0];
262
+ }
263
+ set modaltext(t) {
264
+ this.$$set({ modaltext: t }), x();
265
+ }
266
+ get modalsource() {
267
+ return this.$$.ctx[7];
268
+ }
269
+ set modalsource(t) {
270
+ this.$$set({ modalsource: t }), x();
271
+ }
272
+ get lang() {
273
+ return this.$$.ctx[8];
274
+ }
275
+ set lang(t) {
276
+ this.$$set({ lang: t }), x();
277
+ }
278
+ get clientstyling() {
279
+ return this.$$.ctx[9];
280
+ }
281
+ set clientstyling(t) {
282
+ this.$$set({ clientstyling: t }), x();
283
+ }
284
+ get clientstylingurl() {
285
+ return this.$$.ctx[10];
286
+ }
287
+ set clientstylingurl(t) {
288
+ this.$$set({ clientstylingurl: t }), x();
289
+ }
290
+ get mbsource() {
291
+ return this.$$.ctx[11];
292
+ }
293
+ set mbsource(t) {
294
+ this.$$set({ mbsource: t }), x();
295
+ }
296
+ get translationurl() {
297
+ return this.$$.ctx[12];
298
+ }
299
+ set translationurl(t) {
300
+ this.$$set({ translationurl: t }), x();
301
+ }
302
+ }
303
+ dt(wt, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
304
+ export {
305
+ wt as default
306
+ };