@everymatrix/player-account-gaming-limits 1.63.2 → 1.64.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 (23) hide show
  1. package/components/{PlayerAccountGamingLimits-DUvKvxP4.cjs → PlayerAccountGamingLimits-DHPtMKvx.cjs} +5 -5
  2. package/components/{PlayerAccountGamingLimits-B_OeNOhb.js → PlayerAccountGamingLimits-DjmDCr7J.js} +63 -63
  3. package/components/{PlayerAccountGamingLimits-DubTiCdi.js → PlayerAccountGamingLimits-UUJf8D7j.js} +61 -61
  4. package/components/{PlayerAccountGamingLimitsConfirmationModal-CTBcQjgx.js → PlayerAccountGamingLimitsConfirmationModal-C3xw6jd_.js} +2 -2
  5. package/components/PlayerAccountGamingLimitsConfirmationModal-CWHJXRfW.cjs +1 -0
  6. package/components/{PlayerAccountGamingLimitsConfirmationModal-Z26Pg5Zk.js → PlayerAccountGamingLimitsConfirmationModal-DfFoJuLp.js} +2 -2
  7. package/components/{PlayerAccountGamingLimitsGroupEdit-CO4kWz4r.js → PlayerAccountGamingLimitsGroupEdit-BXG2KANz.js} +212 -212
  8. package/components/{PlayerAccountGamingLimitsGroupEdit-CAwjXBF8.cjs → PlayerAccountGamingLimitsGroupEdit-Bqn1tWk1.cjs} +1 -1
  9. package/components/{PlayerAccountGamingLimitsGroupEdit-DsSLcdkL.js → PlayerAccountGamingLimitsGroupEdit-gTzcAwri.js} +212 -212
  10. package/components/{PlayerAccountGamingLimitsInfoCard-DGPCGvWu.js → PlayerAccountGamingLimitsInfoCard-APdc-K5C.js} +42 -42
  11. package/components/{PlayerAccountGamingLimitsInfoCard-pRY8Sihl.js → PlayerAccountGamingLimitsInfoCard-DD2eUPSU.js} +42 -42
  12. package/components/{PlayerAccountGamingLimitsInfoCard-CtwI6Xtv.cjs → PlayerAccountGamingLimitsInfoCard-DM_cNGfm.cjs} +1 -1
  13. package/components/{PlayerAccountGamingLimitsPopup-CvbyPRpo.js → PlayerAccountGamingLimitsPopup-BdyIbeLe.js} +1 -1
  14. package/components/{PlayerAccountGamingLimitsPopup-u44lGQaZ.cjs → PlayerAccountGamingLimitsPopup-CbCYSDuh.cjs} +1 -1
  15. package/components/{PlayerAccountGamingLimitsPopup-2v4kzq50.js → PlayerAccountGamingLimitsPopup-DgohG2MA.js} +1 -1
  16. package/components/{PlayerAccountModal-BO4AeVmU.js → PlayerAccountModal-DV_VFcAj.js} +1 -1
  17. package/components/{PlayerAccountModal-B0lagBmb.cjs → PlayerAccountModal-DaoiuFK5.cjs} +1 -1
  18. package/components/{PlayerAccountModal-DGYN6JPe.js → PlayerAccountModal-DhfSpngX.js} +1 -1
  19. package/es2015/player-account-gaming-limits.cjs +1 -1
  20. package/es2015/player-account-gaming-limits.js +1 -1
  21. package/esnext/player-account-gaming-limits.js +1 -1
  22. package/package.json +1 -1
  23. package/components/PlayerAccountGamingLimitsConfirmationModal-B3gnu0N-.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { a as G, $ as A, S as B, i as Y, s as D, f as v, b as H, y as W, d as q, k as _, M as O, v as V, w as N, x as U, j as z, q as m, l as d, m as Q, H as R, n as h, o as M, p as j, A as K, B as J, C as X, D as Z, E as $, F as ee } from "./PlayerAccountGamingLimits-B_OeNOhb.js";
1
+ import { a as G, $ as A, S as B, i as Y, s as D, f as v, b as H, y as W, d as q, k as _, M as O, v as V, w as N, x as U, j as z, q as m, l as d, m as Q, H as R, n as h, o as M, p as j, A as K, B as J, C as X, D as Z, E as $, F as ee } from "./PlayerAccountGamingLimits-DjmDCr7J.js";
2
2
  function L(a, e) {
3
3
  G(a, e);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { R as z, S as A, i as B, s as R, f, b as U, d as D, t as w, e as m, T as W, k as E, M as j, x as H, c as N, U as S, Q as P, u as Q, g as T, h as V, l as M, n as _, q as y, A as k, V as F, B as G, C as I, D as J, E as K } from "./PlayerAccountGamingLimits-B_OeNOhb.js";
1
+ import { R as z, S as A, i as B, s as R, f, b as U, d as D, t as w, e as m, T as W, k as E, M as j, x as H, c as N, U as S, Q as P, u as Q, g as T, h as V, l as M, n as _, q as y, A as k, V as F, B as G, C as I, D as J, E as K } from "./PlayerAccountGamingLimits-UUJf8D7j.js";
2
2
  function v(e, { delay: t = 0, duration: n = 400, easing: i = z } = {}) {
3
3
  const s = +getComputedStyle(e).opacity;
4
4
  return {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimits-DUvKvxP4.cjs");function g(n,{delay:e=0,duration:i=400,easing:s=t.identity}={}){const l=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:s,css:r=>`opacity: ${r*l}`}}function v(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function y(n){let e,i,s,l,r;const f=n[9].default,u=t.create_slot(f,n,n[8],null);return{c(){e=t.element("div"),i=t.element("div"),s=t.element("div"),u&&u.c(),t.attr(s,"class","ModalContainer"),t.attr(i,"class","ModalWindow"),t.attr(i,"id","Modal")},m(a,c){t.insert(a,e,c),t.append(e,i),t.append(i,s),u&&u.m(s,null),n[10](i),n[11](e),r=!0},p(a,c){n=a,u&&u.p&&(!r||c&256)&&t.update_slot_base(u,f,n,n[8],r?t.get_slot_changes(f,n[8],c,null):t.get_all_dirty_from_scope(n[8]),null)},i(a){r||(t.transition_in(u,a),a&&t.add_render_callback(()=>{r&&(l||(l=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!0)),l.run(1))}),r=!0)},o(a){t.transition_out(u,a),a&&(l||(l=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!1)),l.run(0)),r=!1},d(a){a&&t.detach(e),u&&u.d(a),n[10](null),a&&l&&l.end(),n[11](null)}}}function M(n){let e,i,s=n[0]&&y(n);return{c(){s&&s.c(),e=t.empty()},m(l,r){s&&s.m(l,r),t.insert(l,e,r),i=!0},p(l,[r]){l[0]?s?(s.p(l,r),r&1&&t.transition_in(s,1)):(s=y(l),s.c(),t.transition_in(s,1),s.m(e.parentNode,e)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(l){i||(t.transition_in(s),i=!0)},o(l){t.transition_out(s),i=!1},d(l){l&&t.detach(e),s&&s.d(l)}}}function k(n,e,i){let{$$slots:s={},$$scope:l}=e,{show:r=!1}=e,{duration:f=350}=e,{clientstyling:u=""}=e,{clientstylingurl:a=""}=e,{mbsource:c}=e,{showmodaleventname:m="ShowLimitsConfirmationModal"}=e,d,_;const h=o=>{switch(o.data.type){case"ModalClosed":i(0,r=!1);break;case m:i(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};t.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function w(o){t.binding_callbacks[o?"unshift":"push"](()=>{_=o,i(3,_)})}function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{d=o,i(2,d)})}return n.$$set=o=>{"show"in o&&i(0,r=o.show),"duration"in o&&i(1,f=o.duration),"clientstyling"in o&&i(4,u=o.clientstyling),"clientstylingurl"in o&&i(5,a=o.clientstylingurl),"mbsource"in o&&i(6,c=o.mbsource),"showmodaleventname"in o&&i(7,m=o.showmodaleventname),"$$scope"in o&&i(8,l=o.$$scope)},n.$$.update=()=>{n.$$.dirty&20&&u&&d&&t.setClientStyling(d,u),n.$$.dirty&36&&a&&d&&t.setClientStylingURL(d,a),n.$$.dirty&68&&c&&d&&t.setStreamStyling(d,`${c}.Style`)},[r,f,d,_,u,a,c,m,l,s,w,S]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,k,M,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},v)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(e){this.$$set({showmodaleventname:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimits-DHPtMKvx.cjs");function g(n,{delay:e=0,duration:i=400,easing:s=t.identity}={}){const l=+getComputedStyle(n).opacity;return{delay:e,duration:i,easing:s,css:r=>`opacity: ${r*l}`}}function v(n){t.append_styles(n,"svelte-126fglp","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.ModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0}")}function y(n){let e,i,s,l,r;const f=n[9].default,u=t.create_slot(f,n,n[8],null);return{c(){e=t.element("div"),i=t.element("div"),s=t.element("div"),u&&u.c(),t.attr(s,"class","ModalContainer"),t.attr(i,"class","ModalWindow"),t.attr(i,"id","Modal")},m(a,c){t.insert(a,e,c),t.append(e,i),t.append(i,s),u&&u.m(s,null),n[10](i),n[11](e),r=!0},p(a,c){n=a,u&&u.p&&(!r||c&256)&&t.update_slot_base(u,f,n,n[8],r?t.get_slot_changes(f,n[8],c,null):t.get_all_dirty_from_scope(n[8]),null)},i(a){r||(t.transition_in(u,a),a&&t.add_render_callback(()=>{r&&(l||(l=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!0)),l.run(1))}),r=!0)},o(a){t.transition_out(u,a),a&&(l||(l=t.create_bidirectional_transition(i,g,{transitionDuration:n[1]},!1)),l.run(0)),r=!1},d(a){a&&t.detach(e),u&&u.d(a),n[10](null),a&&l&&l.end(),n[11](null)}}}function M(n){let e,i,s=n[0]&&y(n);return{c(){s&&s.c(),e=t.empty()},m(l,r){s&&s.m(l,r),t.insert(l,e,r),i=!0},p(l,[r]){l[0]?s?(s.p(l,r),r&1&&t.transition_in(s,1)):(s=y(l),s.c(),t.transition_in(s,1),s.m(e.parentNode,e)):s&&(t.group_outros(),t.transition_out(s,1,1,()=>{s=null}),t.check_outros())},i(l){i||(t.transition_in(s),i=!0)},o(l){t.transition_out(s),i=!1},d(l){l&&t.detach(e),s&&s.d(l)}}}function k(n,e,i){let{$$slots:s={},$$scope:l}=e,{show:r=!1}=e,{duration:f=350}=e,{clientstyling:u=""}=e,{clientstylingurl:a=""}=e,{mbsource:c}=e,{showmodaleventname:m="ShowLimitsConfirmationModal"}=e,d,_;const h=o=>{switch(o.data.type){case"ModalClosed":i(0,r=!1);break;case m:i(0,r=!0),window.postMessage({type:"DisableScroll"},window.location.href);break}};t.onMount(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h)}));function w(o){t.binding_callbacks[o?"unshift":"push"](()=>{_=o,i(3,_)})}function S(o){t.binding_callbacks[o?"unshift":"push"](()=>{d=o,i(2,d)})}return n.$$set=o=>{"show"in o&&i(0,r=o.show),"duration"in o&&i(1,f=o.duration),"clientstyling"in o&&i(4,u=o.clientstyling),"clientstylingurl"in o&&i(5,a=o.clientstylingurl),"mbsource"in o&&i(6,c=o.mbsource),"showmodaleventname"in o&&i(7,m=o.showmodaleventname),"$$scope"in o&&i(8,l=o.$$scope)},n.$$.update=()=>{n.$$.dirty&20&&u&&d&&t.setClientStyling(d,u),n.$$.dirty&36&&a&&d&&t.setClientStylingURL(d,a),n.$$.dirty&68&&c&&d&&t.setStreamStyling(d,`${c}.Style`)},[r,f,d,_,u,a,c,m,l,s,w,S]}class b extends t.SvelteComponent{constructor(e){super(),t.init(this,e,k,M,t.safe_not_equal,{show:0,duration:1,clientstyling:4,clientstylingurl:5,mbsource:6,showmodaleventname:7},v)}get show(){return this.$$.ctx[0]}set show(e){this.$$set({show:e}),t.flush()}get duration(){return this.$$.ctx[1]}set duration(e){this.$$set({duration:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[6]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get showmodaleventname(){return this.$$.ctx[7]}set showmodaleventname(e){this.$$set({showmodaleventname:e}),t.flush()}}t.create_custom_element(b,{show:{type:"Boolean"},duration:{},clientstyling:{},clientstylingurl:{},mbsource:{},showmodaleventname:{}},["default"],[],!0);exports.default=b;
@@ -1,4 +1,4 @@
1
- import { R as z, S as A, i as B, s as R, f, b as U, d as D, t as w, e as m, T as W, k as E, M as j, x as H, c as N, U as S, Q as P, u as Q, g as T, h as V, l as M, n as _, q as y, A as k, V as F, B as G, C as I, D as J, E as K } from "./PlayerAccountGamingLimits-DubTiCdi.js";
1
+ import { R as z, S as A, i as B, s as R, f, b as U, d as D, t as w, e as m, T as W, k as E, M as j, x as H, c as N, U as S, Q as P, u as Q, g as T, h as V, l as M, n as _, q as y, A as k, V as F, B as G, C as I, D as J, E as K } from "./PlayerAccountGamingLimits-DjmDCr7J.js";
2
2
  function v(e, { delay: t = 0, duration: n = 400, easing: i = z } = {}) {
3
3
  const s = +getComputedStyle(e).opacity;
4
4
  return {
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...i){try{return e.apply(this,i)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimits-DUvKvxP4.cjs")).then(e=>e.PlayerAccountGamingLimits_ce).then(({default:e})=>{!customElements.get("player-account-gaming-limits")&&customElements.define("player-account-gaming-limits",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...i){try{return e.apply(this,i)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountGamingLimits-DHPtMKvx.cjs")).then(e=>e.PlayerAccountGamingLimits_ce).then(({default:e})=>{!customElements.get("player-account-gaming-limits")&&customElements.define("player-account-gaming-limits",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimits-DubTiCdi.js").then((e) => e.W).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountGamingLimits-UUJf8D7j.js").then((e) => e.W).then(({ default: e }) => {
14
14
  !customElements.get("player-account-gaming-limits") && customElements.define("player-account-gaming-limits", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { W as s } from "../components/PlayerAccountGamingLimits-B_OeNOhb.js";
1
+ import { W as s } from "../components/PlayerAccountGamingLimits-DjmDCr7J.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-account-gaming-limits",
3
- "version": "1.63.2",
3
+ "version": "1.64.0",
4
4
  "type": "module",
5
5
  "main": "es2015/player-account-gaming-limits.cjs",
6
6
  "module": "esnext/player-account-gaming-limits.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountGamingLimits-DUvKvxP4.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"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function D(n){t.append_styles(n,"svelte-1pkvhrt",'*,*::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(--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 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(l,y){t.insert(l,e,y),t.append(e,o)},p:t.noop,d(l){l&&t.detach(e)}}}function P(n){let e,o,l,y,C,b,c,s,d,f=n[2]("cancel")+"",p,h,w,r=n[2]("confirm")+"",_,m,x,G;const M=n[14].close,L=t.create_slot(M,n,n[13],F),g=L||O();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(f),h=t.space(),w=t.element("button"),_=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,u){t.insert(a,e,u),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,_),n[15](e),m=!0,x||(G=[t.listen(l,"click",n[4]),t.listen(d,"click",n[6]),t.listen(w,"click",n[5])],x=!0)},p(a,[u]){L&&L.p&&(!m||u&8192)&&t.update_slot_base(L,M,a,a[13],m?t.get_slot_changes(M,a[13],u,N):t.get_all_dirty_from_scope(a[13]),F),(!m||u&1)&&t.set_data(b,a[0]),(!m||u&4)&&f!==(f=a[2]("cancel")+"")&&t.set_data(p,f),(!m||u&4)&&r!==(r=a[2]("confirm")+"")&&t.set_data(_,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),x=!1,t.run_all(G)}}}function T(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:f=""}=e,{mbsource:p}=e,{translationurl:h=""}=e;const w=()=>{fetch(h).then(v=>v.json()).then(v=>{Object.keys(v).forEach(k=>{B(k,v[k])})}).catch(v=>{console.log(v)})};Object.keys(A).forEach(i=>{B(i,A[i])});let r,_=window.navigator.userAgent,m=t.getDevice(_)!=="PC",x={},G="";const M=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},L=()=>{c==="groupEdit"?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:x,name:G},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},g=()=>{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)},a=i=>i==="Time Limit"?"cumulativeSessionLimits":i==="Deposit Limit"?"depositLimits":i==="Wagering Limit"?"wageringLimit":"lossLimit",u=i=>{if(i.data)switch(i.data.type){case"DeleteLimitsItem":x=i.data.removeData,G=a(i.data.removeName);break}},E=()=>{j(s)};t.onMount(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)}));function S(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,f=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&&f&&r&&t.setClientStylingURL(r,f),n.$$.dirty&2050&&p&&r&&t.setStreamStyling(r,`${p}.Style`),n.$$.dirty&4096&&h&&w()},[b,r,l,m,M,L,g,c,s,d,f,p,h,C,y,S]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,T,P,t.safe_not_equal,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,mbsource:11,translationurl:12},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 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;