@everymatrix/player-account-gaming-limits-info-card 0.0.161 → 0.0.162

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.
@@ -29,6 +29,11 @@
29
29
  function is_empty(obj) {
30
30
  return Object.keys(obj).length === 0;
31
31
  }
32
+ function validate_store(store, name) {
33
+ if (store != null && typeof store.subscribe !== 'function') {
34
+ throw new Error(`'${name}' is not a store with a 'subscribe' method`);
35
+ }
36
+ }
32
37
  function subscribe(store, ...callbacks) {
33
38
  if (store == null) {
34
39
  return noop$1;
@@ -36,6 +41,9 @@
36
41
  const unsub = store.subscribe(...callbacks);
37
42
  return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
38
43
  }
44
+ function component_subscribe(component, store, callback) {
45
+ component.$$.on_destroy.push(subscribe(store, callback));
46
+ }
39
47
 
40
48
  const is_client = typeof window !== 'undefined';
41
49
  let now = is_client
@@ -459,6 +467,12 @@
459
467
  }
460
468
  };
461
469
  }
470
+
471
+ const globals = (typeof window !== 'undefined'
472
+ ? window
473
+ : typeof globalThis !== 'undefined'
474
+ ? globalThis
475
+ : global);
462
476
  function mount_component(component, target, anchor, customElement) {
463
477
  const { fragment, on_mount, on_destroy, after_update } = component.$$;
464
478
  fragment && fragment.m(target, anchor);
@@ -4716,7 +4730,7 @@
4716
4730
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4717
4731
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4718
4732
  PERFORMANCE OF THIS SOFTWARE.
4719
- ***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n);derived([T,s],(()=>K));derived([T],(()=>Q));derived([T],(()=>R));derived([T],(()=>V));derived([T,s],(()=>W));
4733
+ ***************************************************************************** */function v(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]]);}return t}const O={fallbackLocale:null,initialLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,ignoreTag:!0};function j(){return O}const k=writable(!1);let L;const T=writable(null);function x(e){return e.split("-").map(((e,n,t)=>t.slice(0,n+1).join("-"))).reverse()}function E(e,n=j().fallbackLocale){const t=x(e);return n?[...new Set([...t,...x(n)])]:t}function D(){return L}T.subscribe((e=>{L=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e);}));const M=T.set;T.set=e=>{if(function(e){if(null==e)return;const n=E(e);for(let e=0;e<n.length;e++){const t=n[e];if(u(t))return t}}(e)&&w(e)){const{loadingDelay:n}=j();let t;return "undefined"!=typeof window&&null!=D()&&n?t=window.setTimeout((()=>k.set(!0)),n):k.set(!0),b(e).then((()=>{M(e);})).finally((()=>{clearTimeout(t),k.set(!1);}))}return M(e)},T.update=e=>M(e(L));const Z=e=>{const n=Object.create(null);return t=>{const o=JSON.stringify(t);return o in n?n[o]:n[o]=e(t)}},C=(e,n)=>{const{formats:t}=j();if(e in t&&n in t[e])return t[e][n];throw new Error(`[svelte-i18n] Unknown "${n}" ${e} format.`)},G=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(o=C("number",t)),new Intl.NumberFormat(n,o)})),J=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?o=C("date",t):0===Object.keys(o).length&&(o=C("date","short")),new Intl.DateTimeFormat(n,o)})),U=Z((e=>{var{locale:n,format:t}=e,o=v(e,["locale","format"]);if(null==n)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?o=C("time",t):0===Object.keys(o).length&&(o=C("time","short")),new Intl.DateTimeFormat(n,o)})),_=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return G(Object.assign({locale:n},t))},q=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return J(Object.assign({locale:n},t))},B=(e={})=>{var{locale:n=D()}=e,t=v(e,["locale"]);return U(Object.assign({locale:n},t))},H=Z(((e,n=D())=>new IntlMessageFormat(e,n,j().formats,{ignoreTag:j().ignoreTag}))),K=(e,n={})=>{"object"==typeof e&&(e=(n=e).id);const{values:t,locale:o=D(),default:r}=n;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=a(e,o);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else j().warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${E(o).join('", "')}".${w(D())?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=r||e;if(!t)return i;let l=i;try{l=H(i,o).format(t);}catch(n){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,n.message);}return l},Q=(e,n)=>B(n).format(e),R=(e,n)=>q(n).format(e),V=(e,n)=>_(n).format(e),W=(e,n=D())=>a(e,n),X=derived([T,s],(()=>K));derived([T],(()=>Q));derived([T],(()=>R));derived([T],(()=>V));derived([T,s],(()=>W));
4720
4734
 
4721
4735
  window.emWidgets = { topic };
4722
4736
 
@@ -4742,10 +4756,29 @@
4742
4756
  return 'PC';
4743
4757
  };
4744
4758
 
4759
+ function addNewMessages(lang, dict) {
4760
+ m(lang, dict);
4761
+ }
4762
+
4763
+ const PlayerGamingLimitsTranslations = {
4764
+ en: {
4765
+ popupText: {
4766
+ amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
4767
+ }
4768
+ },
4769
+ ro: {
4770
+ popupText: {
4771
+ amountChanged: `Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:`,
4772
+ }
4773
+ }
4774
+ };
4775
+
4745
4776
  /* ../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte generated by Svelte v3.37.0 */
4777
+
4778
+ const { Object: Object_1 } = globals;
4746
4779
  const file$4 = "../player-account-gaming-limits-popup/src/PlayerAccountGamingLimitsPopup.svelte";
4747
4780
 
4748
- // (19:0) {#if showPopup}
4781
+ // (42:0) {#if showPopup}
4749
4782
  function create_if_block$3(ctx) {
4750
4783
  let section;
4751
4784
  let div5;
@@ -4760,11 +4793,18 @@
4760
4793
  let path;
4761
4794
  let t4;
4762
4795
  let div4;
4763
- let p;
4764
- let t5;
4796
+ let div5_class_value;
4765
4797
  let mounted;
4766
4798
  let dispose;
4767
4799
 
4800
+ function select_block_type(ctx, dirty) {
4801
+ if (/*iteminfoamount*/ ctx[0]) return create_if_block_1$2;
4802
+ return create_else_block$2;
4803
+ }
4804
+
4805
+ let current_block_type = select_block_type(ctx);
4806
+ let if_block = current_block_type(ctx);
4807
+
4768
4808
  const block = {
4769
4809
  c: function create() {
4770
4810
  section = element("section");
@@ -4774,42 +4814,43 @@
4774
4814
  div0.textContent = "i";
4775
4815
  t1 = space();
4776
4816
  div1 = element("div");
4777
- t2 = text(/*infoname*/ ctx[1]);
4817
+ t2 = text(/*infoname*/ ctx[2]);
4778
4818
  t3 = space();
4779
4819
  div2 = element("div");
4780
4820
  svg = svg_element("svg");
4781
4821
  path = svg_element("path");
4782
4822
  t4 = space();
4783
4823
  div4 = element("div");
4784
- p = element("p");
4785
- t5 = text(/*infocontent*/ ctx[0]);
4824
+ if_block.c();
4786
4825
  attr_dev(div0, "class", "InfoCardPopupIcon");
4787
- add_location(div0, file$4, 22, 8, 793);
4826
+ add_location(div0, file$4, 45, 8, 1569);
4788
4827
  attr_dev(div1, "class", "InfoCardPopupTitle");
4789
- add_location(div1, file$4, 23, 8, 840);
4828
+ add_location(div1, file$4, 46, 8, 1616);
4790
4829
  attr_dev(path, "stroke-linecap", "round");
4791
4830
  attr_dev(path, "stroke-linejoin", "round");
4792
4831
  attr_dev(path, "stroke-width", "2");
4793
4832
  attr_dev(path, "d", "M6 18L18 6M6 6l12 12");
4794
- add_location(path, file$4, 25, 120, 1097);
4833
+ add_location(path, file$4, 48, 120, 1873);
4795
4834
  attr_dev(svg, "class", "w-6 h-6");
4796
4835
  attr_dev(svg, "fill", "none");
4797
4836
  attr_dev(svg, "stroke", "currentColor");
4798
4837
  attr_dev(svg, "viewBox", "0 0 24 24");
4799
4838
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
4800
- add_location(svg, file$4, 25, 10, 987);
4839
+ add_location(svg, file$4, 48, 10, 1763);
4801
4840
  attr_dev(div2, "class", "InfoCardPopupCloseButton");
4802
- add_location(div2, file$4, 24, 8, 897);
4841
+ add_location(div2, file$4, 47, 8, 1673);
4803
4842
  attr_dev(div3, "class", "InfoCardPopupHeader");
4804
- add_location(div3, file$4, 21, 6, 751);
4805
- attr_dev(p, "class", "InfoCardPopupContent");
4806
- add_location(p, file$4, 29, 8, 1287);
4843
+ add_location(div3, file$4, 44, 6, 1527);
4807
4844
  attr_dev(div4, "class", "InfoCardPopupContentArea");
4808
- add_location(div4, file$4, 28, 6, 1240);
4809
- attr_dev(div5, "class", "InfoCardPopupWrapper " + (/*isMobile*/ ctx[3] ? "InfoCardPopupMobileWrapper" : ""));
4810
- add_location(div5, file$4, 20, 4, 663);
4811
- attr_dev(section, "class", /*isMobile*/ ctx[3] ? "InfoCardPopupMobileModal" : "");
4812
- add_location(section, file$4, 19, 2, 598);
4845
+ add_location(div4, file$4, 51, 6, 2016);
4846
+
4847
+ attr_dev(div5, "class", div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[6] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4848
+ ? "InfoCardPopupLimitChanged"
4849
+ : ""));
4850
+
4851
+ add_location(div5, file$4, 43, 4, 1387);
4852
+ attr_dev(section, "class", /*isMobile*/ ctx[6] ? "InfoCardPopupMobileModal" : "");
4853
+ add_location(section, file$4, 42, 2, 1322);
4813
4854
  },
4814
4855
  m: function mount(target, anchor) {
4815
4856
  insert_dev(target, section, anchor);
@@ -4825,20 +4866,37 @@
4825
4866
  append_dev(svg, path);
4826
4867
  append_dev(div5, t4);
4827
4868
  append_dev(div5, div4);
4828
- append_dev(div4, p);
4829
- append_dev(p, t5);
4869
+ if_block.m(div4, null);
4830
4870
 
4831
4871
  if (!mounted) {
4832
- dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[4]), false, true, false);
4872
+ dispose = listen_dev(div2, "click", prevent_default(/*closeInfoPopup*/ ctx[7]), false, true, false);
4833
4873
  mounted = true;
4834
4874
  }
4835
4875
  },
4836
4876
  p: function update(ctx, dirty) {
4837
- if (dirty & /*infoname*/ 2) set_data_dev(t2, /*infoname*/ ctx[1]);
4838
- if (dirty & /*infocontent*/ 1) set_data_dev(t5, /*infocontent*/ ctx[0]);
4877
+ if (dirty & /*infoname*/ 4) set_data_dev(t2, /*infoname*/ ctx[2]);
4878
+
4879
+ if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
4880
+ if_block.p(ctx, dirty);
4881
+ } else {
4882
+ if_block.d(1);
4883
+ if_block = current_block_type(ctx);
4884
+
4885
+ if (if_block) {
4886
+ if_block.c();
4887
+ if_block.m(div4, null);
4888
+ }
4889
+ }
4890
+
4891
+ if (dirty & /*iteminfoamount*/ 1 && div5_class_value !== (div5_class_value = "InfoCardPopupWrapper " + (/*isMobile*/ ctx[6] ? "InfoCardPopupMobileWrapper" : "") + " " + (/*iteminfoamount*/ ctx[0]
4892
+ ? "InfoCardPopupLimitChanged"
4893
+ : ""))) {
4894
+ attr_dev(div5, "class", div5_class_value);
4895
+ }
4839
4896
  },
4840
4897
  d: function destroy(detaching) {
4841
4898
  if (detaching) detach_dev(section);
4899
+ if_block.d();
4842
4900
  mounted = false;
4843
4901
  dispose();
4844
4902
  }
@@ -4848,7 +4906,90 @@
4848
4906
  block,
4849
4907
  id: create_if_block$3.name,
4850
4908
  type: "if",
4851
- source: "(19:0) {#if showPopup}",
4909
+ source: "(42:0) {#if showPopup}",
4910
+ ctx
4911
+ });
4912
+
4913
+ return block;
4914
+ }
4915
+
4916
+ // (55:8) {:else}
4917
+ function create_else_block$2(ctx) {
4918
+ let p;
4919
+ let t;
4920
+
4921
+ const block = {
4922
+ c: function create() {
4923
+ p = element("p");
4924
+ t = text(/*infocontent*/ ctx[1]);
4925
+ attr_dev(p, "class", "InfoCardPopupContent");
4926
+ add_location(p, file$4, 55, 10, 2252);
4927
+ },
4928
+ m: function mount(target, anchor) {
4929
+ insert_dev(target, p, anchor);
4930
+ append_dev(p, t);
4931
+ },
4932
+ p: function update(ctx, dirty) {
4933
+ if (dirty & /*infocontent*/ 2) set_data_dev(t, /*infocontent*/ ctx[1]);
4934
+ },
4935
+ d: function destroy(detaching) {
4936
+ if (detaching) detach_dev(p);
4937
+ }
4938
+ };
4939
+
4940
+ dispatch_dev("SvelteRegisterBlock", {
4941
+ block,
4942
+ id: create_else_block$2.name,
4943
+ type: "else",
4944
+ source: "(55:8) {:else}",
4945
+ ctx
4946
+ });
4947
+
4948
+ return block;
4949
+ }
4950
+
4951
+ // (53:8) {#if iteminfoamount}
4952
+ function create_if_block_1$2(ctx) {
4953
+ let p;
4954
+
4955
+ let t_value = /*$_*/ ctx[5]("popupText.amountChanged", {
4956
+ values: {
4957
+ amount: /*iteminfoamount*/ ctx[0],
4958
+ currency: /*playercurrency*/ ctx[3]
4959
+ }
4960
+ }) + "";
4961
+
4962
+ let t;
4963
+
4964
+ const block = {
4965
+ c: function create() {
4966
+ p = element("p");
4967
+ t = text(t_value);
4968
+ attr_dev(p, "class", "InfoCardPopupContent");
4969
+ add_location(p, file$4, 53, 10, 2094);
4970
+ },
4971
+ m: function mount(target, anchor) {
4972
+ insert_dev(target, p, anchor);
4973
+ append_dev(p, t);
4974
+ },
4975
+ p: function update(ctx, dirty) {
4976
+ if (dirty & /*$_, iteminfoamount, playercurrency*/ 41 && t_value !== (t_value = /*$_*/ ctx[5]("popupText.amountChanged", {
4977
+ values: {
4978
+ amount: /*iteminfoamount*/ ctx[0],
4979
+ currency: /*playercurrency*/ ctx[3]
4980
+ }
4981
+ }) + "")) set_data_dev(t, t_value);
4982
+ },
4983
+ d: function destroy(detaching) {
4984
+ if (detaching) detach_dev(p);
4985
+ }
4986
+ };
4987
+
4988
+ dispatch_dev("SvelteRegisterBlock", {
4989
+ block,
4990
+ id: create_if_block_1$2.name,
4991
+ type: "if",
4992
+ source: "(53:8) {#if iteminfoamount}",
4852
4993
  ctx
4853
4994
  });
4854
4995
 
@@ -4857,7 +4998,7 @@
4857
4998
 
4858
4999
  function create_fragment$4(ctx) {
4859
5000
  let if_block_anchor;
4860
- let if_block = /*showPopup*/ ctx[2] && create_if_block$3(ctx);
5001
+ let if_block = /*showPopup*/ ctx[4] && create_if_block$3(ctx);
4861
5002
 
4862
5003
  const block = {
4863
5004
  c: function create() {
@@ -4873,7 +5014,7 @@
4873
5014
  insert_dev(target, if_block_anchor, anchor);
4874
5015
  },
4875
5016
  p: function update(ctx, [dirty]) {
4876
- if (/*showPopup*/ ctx[2]) {
5017
+ if (/*showPopup*/ ctx[4]) {
4877
5018
  if (if_block) {
4878
5019
  if_block.p(ctx, dirty);
4879
5020
  } else {
@@ -4906,62 +5047,112 @@
4906
5047
  }
4907
5048
 
4908
5049
  function instance$4($$self, $$props, $$invalidate) {
5050
+ let $_;
5051
+ validate_store(X, "_");
5052
+ component_subscribe($$self, X, $$value => $$invalidate(5, $_ = $$value));
4909
5053
  let { $$slots: slots = {}, $$scope } = $$props;
4910
5054
  validate_slots("undefined", slots, []);
4911
5055
  let { showpopup = "" } = $$props;
4912
5056
  let { infocontent = "" } = $$props;
4913
5057
  let { infoname = "" } = $$props;
5058
+ let { iteminfoamount = "" } = $$props;
5059
+ let { lang = "en" } = $$props;
5060
+ let { playercurrency = "USD" } = $$props;
4914
5061
  let showPopup = false;
5062
+
5063
+ Object.keys(PlayerGamingLimitsTranslations).forEach(item => {
5064
+ addNewMessages(item, PlayerGamingLimitsTranslations[item]);
5065
+ });
5066
+
4915
5067
  let userAgent = window.navigator.userAgent;
4916
5068
  let isMobile = getDevice(userAgent) === "PC" ? false : true;
4917
5069
 
4918
5070
  const closeInfoPopup = () => {
4919
- $$invalidate(2, showPopup = false);
5071
+ $$invalidate(4, showPopup = false);
4920
5072
 
4921
5073
  window.postMessage(
4922
5074
  {
4923
- type: "ClosePlayerAccountGamingLimitsPopup",
4924
- showPopup
5075
+ type: "ClosePlayerAccountGamingLimitsPopup"
4925
5076
  },
4926
5077
  window.location.href
4927
5078
  );
4928
5079
  };
4929
5080
 
5081
+ const messageHandler = e => {
5082
+ if (e.data && e.data.type == "ClosePlayerAccountGamingLimitsPopup") {
5083
+ $$invalidate(4, showPopup = false);
5084
+ }
5085
+ };
5086
+
4930
5087
  const initialLoad = () => {
4931
- $$invalidate(2, showPopup = showpopup);
5088
+ if (iteminfoamount < 0) {
5089
+ $$invalidate(0, iteminfoamount = "0");
5090
+ }
5091
+
5092
+ $$invalidate(4, showPopup = showpopup);
4932
5093
  };
4933
5094
 
4934
- const writable_props = ["showpopup", "infocontent", "infoname"];
5095
+ onMount(() => {
5096
+ window.addEventListener("message", messageHandler, false);
4935
5097
 
4936
- Object.keys($$props).forEach(key => {
5098
+ return () => {
5099
+ window.removeEventListener("message", messageHandler);
5100
+ };
5101
+ });
5102
+
5103
+ const writable_props = [
5104
+ "showpopup",
5105
+ "infocontent",
5106
+ "infoname",
5107
+ "iteminfoamount",
5108
+ "lang",
5109
+ "playercurrency"
5110
+ ];
5111
+
5112
+ Object_1.keys($$props).forEach(key => {
4937
5113
  if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
4938
5114
  });
4939
5115
 
4940
5116
  $$self.$$set = $$props => {
4941
- if ("showpopup" in $$props) $$invalidate(5, showpopup = $$props.showpopup);
4942
- if ("infocontent" in $$props) $$invalidate(0, infocontent = $$props.infocontent);
4943
- if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
5117
+ if ("showpopup" in $$props) $$invalidate(8, showpopup = $$props.showpopup);
5118
+ if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
5119
+ if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
5120
+ if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
5121
+ if ("lang" in $$props) $$invalidate(9, lang = $$props.lang);
5122
+ if ("playercurrency" in $$props) $$invalidate(3, playercurrency = $$props.playercurrency);
4944
5123
  };
4945
5124
 
4946
5125
  $$self.$capture_state = () => ({
5126
+ onMount,
5127
+ getDevice,
5128
+ _: X,
5129
+ addNewMessages,
5130
+ PlayerGamingLimitsTranslations,
4947
5131
  showpopup,
4948
5132
  infocontent,
4949
5133
  infoname,
4950
- getDevice,
5134
+ iteminfoamount,
5135
+ lang,
5136
+ playercurrency,
4951
5137
  showPopup,
4952
5138
  userAgent,
4953
5139
  isMobile,
4954
5140
  closeInfoPopup,
4955
- initialLoad
5141
+ messageHandler,
5142
+ initialLoad,
5143
+ $_
4956
5144
  });
4957
5145
 
4958
5146
  $$self.$inject_state = $$props => {
4959
- if ("showpopup" in $$props) $$invalidate(5, showpopup = $$props.showpopup);
4960
- if ("infocontent" in $$props) $$invalidate(0, infocontent = $$props.infocontent);
4961
- if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
4962
- if ("showPopup" in $$props) $$invalidate(2, showPopup = $$props.showPopup);
5147
+ if ("showpopup" in $$props) $$invalidate(8, showpopup = $$props.showpopup);
5148
+ if ("infocontent" in $$props) $$invalidate(1, infocontent = $$props.infocontent);
5149
+ if ("infoname" in $$props) $$invalidate(2, infoname = $$props.infoname);
5150
+ if ("iteminfoamount" in $$props) $$invalidate(0, iteminfoamount = $$props.iteminfoamount);
5151
+ if ("lang" in $$props) $$invalidate(9, lang = $$props.lang);
5152
+ if ("playercurrency" in $$props) $$invalidate(3, playercurrency = $$props.playercurrency);
5153
+ if ("showPopup" in $$props) $$invalidate(4, showPopup = $$props.showPopup);
4963
5154
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
4964
- if ("isMobile" in $$props) $$invalidate(3, isMobile = $$props.isMobile);
5155
+ if ("isMobile" in $$props) $$invalidate(6, isMobile = $$props.isMobile);
4965
5156
  };
4966
5157
 
4967
5158
  if ($$props && "$$inject" in $$props) {
@@ -4969,18 +5160,29 @@
4969
5160
  }
4970
5161
 
4971
5162
  $$self.$$.update = () => {
4972
- if ($$self.$$.dirty & /*showpopup*/ 32) {
5163
+ if ($$self.$$.dirty & /*showpopup*/ 256) {
4973
5164
  showpopup && initialLoad();
4974
5165
  }
4975
5166
  };
4976
5167
 
4977
- return [infocontent, infoname, showPopup, isMobile, closeInfoPopup, showpopup];
5168
+ return [
5169
+ iteminfoamount,
5170
+ infocontent,
5171
+ infoname,
5172
+ playercurrency,
5173
+ showPopup,
5174
+ $_,
5175
+ isMobile,
5176
+ closeInfoPopup,
5177
+ showpopup,
5178
+ lang
5179
+ ];
4978
5180
  }
4979
5181
 
4980
5182
  class PlayerAccountGamingLimitsPopup extends SvelteElement {
4981
5183
  constructor(options) {
4982
5184
  super();
4983
- this.shadowRoot.innerHTML = `<style>.InfoCardPopupMobileModal:after{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);content:''}.InfoCardPopupWrapper{width:200px;padding:20px;color:#000;background:#fff;box-shadow:0px 4px 12px #00000012;border-radius:0.3125;display:block;position:absolute;top:25px;left:-100px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:#FFF transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid #000;align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:#FD2839;fill:#FD2839}</style>`;
5185
+ this.shadowRoot.innerHTML = `<style>.InfoCardPopupMobileModal:after{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);content:''}.InfoCardPopupLimitChanged{background:#FFFFF8}.InfoCardPopupWrapper{width:200px;padding:20px;color:#000;background:#fff;box-shadow:0px 4px 12px #00000012;border-radius:0.3125;display:block;position:absolute;top:32px;left:-84px;z-index:9}.InfoCardPopupWrapper:before{content:"";position:absolute;top:-7px;left:104px;border-style:solid;border-width:0 7px 7px;border-color:#FFF transparent;display:block;width:0;z-index:1}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper{width:70%;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupTitle{font-size:18px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupCloseButton{width:30px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper .InfoCardPopupContent{font-size:16px}.InfoCardPopupWrapper.InfoCardPopupMobileWrapper:before{content:none}.InfoCardPopupHeader{display:inline-flex}.InfoCardPopupHeader .InfoCardPopupTitle{line-height:24px;font-size:16px;font-weight:400;padding-left:10px}.InfoCardPopupIcon{display:flex;font-size:24px;width:24px;height:24px;background:transparent;border:1px solid #000;align-items:center;justify-content:center;border-radius:30px}.InfoCardPopupContent{font-size:14px;font-weight:300}.InfoCardPopupCloseButton{width:20px;position:absolute;right:10px;top:10px;cursor:pointer;transition-duration:0.3s}.InfoCardPopupCloseButton:hover{color:#FD2839;fill:#FD2839}</style>`;
4984
5186
 
4985
5187
  init(
4986
5188
  this,
@@ -4993,9 +5195,12 @@
4993
5195
  create_fragment$4,
4994
5196
  safe_not_equal,
4995
5197
  {
4996
- showpopup: 5,
4997
- infocontent: 0,
4998
- infoname: 1
5198
+ showpopup: 8,
5199
+ infocontent: 1,
5200
+ infoname: 2,
5201
+ iteminfoamount: 0,
5202
+ lang: 9,
5203
+ playercurrency: 3
4999
5204
  }
5000
5205
  );
5001
5206
 
@@ -5012,11 +5217,18 @@
5012
5217
  }
5013
5218
 
5014
5219
  static get observedAttributes() {
5015
- return ["showpopup", "infocontent", "infoname"];
5220
+ return [
5221
+ "showpopup",
5222
+ "infocontent",
5223
+ "infoname",
5224
+ "iteminfoamount",
5225
+ "lang",
5226
+ "playercurrency"
5227
+ ];
5016
5228
  }
5017
5229
 
5018
5230
  get showpopup() {
5019
- return this.$$.ctx[5];
5231
+ return this.$$.ctx[8];
5020
5232
  }
5021
5233
 
5022
5234
  set showpopup(showpopup) {
@@ -5025,7 +5237,7 @@
5025
5237
  }
5026
5238
 
5027
5239
  get infocontent() {
5028
- return this.$$.ctx[0];
5240
+ return this.$$.ctx[1];
5029
5241
  }
5030
5242
 
5031
5243
  set infocontent(infocontent) {
@@ -5034,13 +5246,40 @@
5034
5246
  }
5035
5247
 
5036
5248
  get infoname() {
5037
- return this.$$.ctx[1];
5249
+ return this.$$.ctx[2];
5038
5250
  }
5039
5251
 
5040
5252
  set infoname(infoname) {
5041
5253
  this.$set({ infoname });
5042
5254
  flush();
5043
5255
  }
5256
+
5257
+ get iteminfoamount() {
5258
+ return this.$$.ctx[0];
5259
+ }
5260
+
5261
+ set iteminfoamount(iteminfoamount) {
5262
+ this.$set({ iteminfoamount });
5263
+ flush();
5264
+ }
5265
+
5266
+ get lang() {
5267
+ return this.$$.ctx[9];
5268
+ }
5269
+
5270
+ set lang(lang) {
5271
+ this.$set({ lang });
5272
+ flush();
5273
+ }
5274
+
5275
+ get playercurrency() {
5276
+ return this.$$.ctx[3];
5277
+ }
5278
+
5279
+ set playercurrency(playercurrency) {
5280
+ this.$set({ playercurrency });
5281
+ flush();
5282
+ }
5044
5283
  }
5045
5284
 
5046
5285
  !customElements.get('player-account-gaming-limits-popup') && customElements.define('player-account-gaming-limits-popup', PlayerAccountGamingLimitsPopup);
@@ -11294,46 +11533,46 @@
11294
11533
 
11295
11534
  function get_each_context_2(ctx, list, i) {
11296
11535
  const child_ctx = ctx.slice();
11297
- child_ctx[56] = list[i];
11298
- child_ctx[57] = list;
11299
- child_ctx[52] = i;
11536
+ child_ctx[57] = list[i];
11537
+ child_ctx[58] = list;
11538
+ child_ctx[53] = i;
11300
11539
  return child_ctx;
11301
11540
  }
11302
11541
 
11303
11542
  function get_each_context_3(ctx, list, i) {
11304
11543
  const child_ctx = ctx.slice();
11305
- child_ctx[50] = list[i];
11544
+ child_ctx[51] = list[i];
11306
11545
  return child_ctx;
11307
11546
  }
11308
11547
 
11309
11548
  function get_each_context_4(ctx, list, i) {
11310
11549
  const child_ctx = ctx.slice();
11311
- child_ctx[50] = list[i];
11550
+ child_ctx[51] = list[i];
11312
11551
  return child_ctx;
11313
11552
  }
11314
11553
 
11315
11554
  function get_each_context$1(ctx, list, i) {
11316
11555
  const child_ctx = ctx.slice();
11317
- child_ctx[50] = list[i];
11318
- child_ctx[51] = list;
11319
- child_ctx[52] = i;
11556
+ child_ctx[51] = list[i];
11557
+ child_ctx[52] = list;
11558
+ child_ctx[53] = i;
11320
11559
  return child_ctx;
11321
11560
  }
11322
11561
 
11323
11562
  function get_each_context_1$1(ctx, list, i) {
11324
11563
  const child_ctx = ctx.slice();
11325
- child_ctx[53] = list[i];
11564
+ child_ctx[54] = list[i];
11326
11565
  return child_ctx;
11327
11566
  }
11328
11567
 
11329
11568
  function get_each_context_5(ctx, list, i) {
11330
11569
  const child_ctx = ctx.slice();
11331
- child_ctx[50] = list[i];
11332
- child_ctx[52] = i;
11570
+ child_ctx[51] = list[i];
11571
+ child_ctx[53] = i;
11333
11572
  return child_ctx;
11334
11573
  }
11335
11574
 
11336
- // (440:2) {#if showsuccessnotification}
11575
+ // (441:2) {#if showsuccessnotification}
11337
11576
  function create_if_block_17(ctx) {
11338
11577
  let div;
11339
11578
  let p;
@@ -11342,10 +11581,10 @@
11342
11581
  c: function create() {
11343
11582
  div = element("div");
11344
11583
  p = element("p");
11345
- p.textContent = `${/*successText*/ ctx[19]}`;
11346
- add_location(p, file$1, 441, 6, 18694);
11584
+ p.textContent = `${/*successText*/ ctx[20]}`;
11585
+ add_location(p, file$1, 442, 6, 18728);
11347
11586
  attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
11348
- add_location(div, file$1, 440, 4, 18632);
11587
+ add_location(div, file$1, 441, 4, 18666);
11349
11588
  },
11350
11589
  m: function mount(target, anchor) {
11351
11590
  insert_dev(target, div, anchor);
@@ -11361,19 +11600,19 @@
11361
11600
  block,
11362
11601
  id: create_if_block_17.name,
11363
11602
  type: "if",
11364
- source: "(440:2) {#if showsuccessnotification}",
11603
+ source: "(441:2) {#if showsuccessnotification}",
11365
11604
  ctx
11366
11605
  });
11367
11606
 
11368
11607
  return block;
11369
11608
  }
11370
11609
 
11371
- // (445:2) {#if showresetnotification}
11610
+ // (446:2) {#if showdeletenotification}
11372
11611
  function create_if_block_14(ctx) {
11373
11612
  let div;
11374
11613
 
11375
11614
  function select_block_type(ctx, dirty) {
11376
- if (/*isArray*/ ctx[11]) return create_if_block_15;
11615
+ if (/*isArray*/ ctx[12]) return create_if_block_15;
11377
11616
  return create_else_block_2$1;
11378
11617
  }
11379
11618
 
@@ -11385,7 +11624,7 @@
11385
11624
  div = element("div");
11386
11625
  if_block.c();
11387
11626
  attr_dev(div, "class", "AccountEditLimitSuccessfulChangeContainer");
11388
- add_location(div, file$1, 445, 4, 18768);
11627
+ add_location(div, file$1, 446, 4, 18803);
11389
11628
  },
11390
11629
  m: function mount(target, anchor) {
11391
11630
  insert_dev(target, div, anchor);
@@ -11414,14 +11653,14 @@
11414
11653
  block,
11415
11654
  id: create_if_block_14.name,
11416
11655
  type: "if",
11417
- source: "(445:2) {#if showresetnotification}",
11656
+ source: "(446:2) {#if showdeletenotification}",
11418
11657
  ctx
11419
11658
  });
11420
11659
 
11421
11660
  return block;
11422
11661
  }
11423
11662
 
11424
- // (453:6) {:else}
11663
+ // (454:6) {:else}
11425
11664
  function create_else_block_2$1(ctx) {
11426
11665
  let p;
11427
11666
  let t0;
@@ -11436,10 +11675,10 @@
11436
11675
  const block = {
11437
11676
  c: function create() {
11438
11677
  p = element("p");
11439
- t0 = text(/*removeText*/ ctx[20]);
11678
+ t0 = text(/*removeText*/ ctx[21]);
11440
11679
  t1 = space();
11441
11680
  t2 = text(t2_value);
11442
- add_location(p, file$1, 453, 8, 19142);
11681
+ add_location(p, file$1, 454, 8, 19177);
11443
11682
  },
11444
11683
  m: function mount(target, anchor) {
11445
11684
  insert_dev(target, p, anchor);
@@ -11461,17 +11700,17 @@
11461
11700
  block,
11462
11701
  id: create_else_block_2$1.name,
11463
11702
  type: "else",
11464
- source: "(453:6) {:else}",
11703
+ source: "(454:6) {:else}",
11465
11704
  ctx
11466
11705
  });
11467
11706
 
11468
11707
  return block;
11469
11708
  }
11470
11709
 
11471
- // (447:6) {#if isArray}
11710
+ // (448:6) {#if isArray}
11472
11711
  function create_if_block_15(ctx) {
11473
11712
  let each_1_anchor;
11474
- let each_value_5 = /*limitsUpdateData*/ ctx[14];
11713
+ let each_value_5 = /*limitsUpdateData*/ ctx[15];
11475
11714
  validate_each_argument(each_value_5);
11476
11715
  let each_blocks = [];
11477
11716
 
@@ -11495,8 +11734,8 @@
11495
11734
  insert_dev(target, each_1_anchor, anchor);
11496
11735
  },
11497
11736
  p: function update(ctx, dirty) {
11498
- if (dirty[0] & /*limitsUpdateData, removeText, storedData*/ 1196032) {
11499
- each_value_5 = /*limitsUpdateData*/ ctx[14];
11737
+ if (dirty[0] & /*limitsUpdateData, removeText, storedData*/ 2392064) {
11738
+ each_value_5 = /*limitsUpdateData*/ ctx[15];
11500
11739
  validate_each_argument(each_value_5);
11501
11740
  let i;
11502
11741
 
@@ -11529,21 +11768,21 @@
11529
11768
  block,
11530
11769
  id: create_if_block_15.name,
11531
11770
  type: "if",
11532
- source: "(447:6) {#if isArray}",
11771
+ source: "(448:6) {#if isArray}",
11533
11772
  ctx
11534
11773
  });
11535
11774
 
11536
11775
  return block;
11537
11776
  }
11538
11777
 
11539
- // (449:10) {#if selectData.period == storedData[index].periodName}
11778
+ // (450:10) {#if selectData.period == storedData[index].periodName}
11540
11779
  function create_if_block_16(ctx) {
11541
11780
  let p;
11542
11781
  let t0;
11543
11782
  let t1;
11544
11783
 
11545
- let t2_value = (/*selectData*/ ctx[50].expiryDate
11546
- ? moment(/*selectData*/ ctx[50].expiryDate).format("D/M/YYYY - h:mm A")
11784
+ let t2_value = (/*selectData*/ ctx[51].expiryDate
11785
+ ? moment(/*selectData*/ ctx[51].expiryDate).format("D/M/YYYY - h:mm A")
11547
11786
  : "N/A") + "";
11548
11787
 
11549
11788
  let t2;
@@ -11551,10 +11790,10 @@
11551
11790
  const block = {
11552
11791
  c: function create() {
11553
11792
  p = element("p");
11554
- t0 = text(/*removeText*/ ctx[20]);
11793
+ t0 = text(/*removeText*/ ctx[21]);
11555
11794
  t1 = space();
11556
11795
  t2 = text(t2_value);
11557
- add_location(p, file$1, 449, 12, 18976);
11796
+ add_location(p, file$1, 450, 12, 19011);
11558
11797
  },
11559
11798
  m: function mount(target, anchor) {
11560
11799
  insert_dev(target, p, anchor);
@@ -11563,8 +11802,8 @@
11563
11802
  append_dev(p, t2);
11564
11803
  },
11565
11804
  p: function update(ctx, dirty) {
11566
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t2_value !== (t2_value = (/*selectData*/ ctx[50].expiryDate
11567
- ? moment(/*selectData*/ ctx[50].expiryDate).format("D/M/YYYY - h:mm A")
11805
+ if (dirty[0] & /*limitsUpdateData*/ 32768 && t2_value !== (t2_value = (/*selectData*/ ctx[51].expiryDate
11806
+ ? moment(/*selectData*/ ctx[51].expiryDate).format("D/M/YYYY - h:mm A")
11568
11807
  : "N/A") + "")) set_data_dev(t2, t2_value);
11569
11808
  },
11570
11809
  d: function destroy(detaching) {
@@ -11576,17 +11815,17 @@
11576
11815
  block,
11577
11816
  id: create_if_block_16.name,
11578
11817
  type: "if",
11579
- source: "(449:10) {#if selectData.period == storedData[index].periodName}",
11818
+ source: "(450:10) {#if selectData.period == storedData[index].periodName}",
11580
11819
  ctx
11581
11820
  });
11582
11821
 
11583
11822
  return block;
11584
11823
  }
11585
11824
 
11586
- // (448:8) {#each limitsUpdateData as selectData, index}
11825
+ // (449:8) {#each limitsUpdateData as selectData, index}
11587
11826
  function create_each_block_5(ctx) {
11588
11827
  let if_block_anchor;
11589
- let if_block = /*selectData*/ ctx[50].period == /*storedData*/ ctx[17][/*index*/ ctx[52]].periodName && create_if_block_16(ctx);
11828
+ let if_block = /*selectData*/ ctx[51].period == /*storedData*/ ctx[18][/*index*/ ctx[53]].periodName && create_if_block_16(ctx);
11590
11829
 
11591
11830
  const block = {
11592
11831
  c: function create() {
@@ -11598,7 +11837,7 @@
11598
11837
  insert_dev(target, if_block_anchor, anchor);
11599
11838
  },
11600
11839
  p: function update(ctx, dirty) {
11601
- if (/*selectData*/ ctx[50].period == /*storedData*/ ctx[17][/*index*/ ctx[52]].periodName) {
11840
+ if (/*selectData*/ ctx[51].period == /*storedData*/ ctx[18][/*index*/ ctx[53]].periodName) {
11602
11841
  if (if_block) {
11603
11842
  if_block.p(ctx, dirty);
11604
11843
  } else {
@@ -11621,19 +11860,19 @@
11621
11860
  block,
11622
11861
  id: create_each_block_5.name,
11623
11862
  type: "each",
11624
- source: "(448:8) {#each limitsUpdateData as selectData, index}",
11863
+ source: "(449:8) {#each limitsUpdateData as selectData, index}",
11625
11864
  ctx
11626
11865
  });
11627
11866
 
11628
11867
  return block;
11629
11868
  }
11630
11869
 
11631
- // (458:2) {#if showLimits}
11870
+ // (459:2) {#if showLimits}
11632
11871
  function create_if_block$1(ctx) {
11633
11872
  let div;
11634
11873
 
11635
11874
  function select_block_type_1(ctx, dirty) {
11636
- if (/*isArray*/ ctx[11]) return create_if_block_1$1;
11875
+ if (/*isArray*/ ctx[12]) return create_if_block_1$1;
11637
11876
  return create_else_block_1$1;
11638
11877
  }
11639
11878
 
@@ -11645,7 +11884,7 @@
11645
11884
  div = element("div");
11646
11885
  if_block.c();
11647
11886
  attr_dev(div, "class", "AccountEditContent");
11648
- add_location(div, file$1, 458, 2, 19306);
11887
+ add_location(div, file$1, 459, 2, 19341);
11649
11888
  },
11650
11889
  m: function mount(target, anchor) {
11651
11890
  insert_dev(target, div, anchor);
@@ -11674,14 +11913,14 @@
11674
11913
  block,
11675
11914
  id: create_if_block$1.name,
11676
11915
  type: "if",
11677
- source: "(458:2) {#if showLimits}",
11916
+ source: "(459:2) {#if showLimits}",
11678
11917
  ctx
11679
11918
  });
11680
11919
 
11681
11920
  return block;
11682
11921
  }
11683
11922
 
11684
- // (499:4) {:else}
11923
+ // (500:4) {:else}
11685
11924
  function create_else_block_1$1(ctx) {
11686
11925
  let div1;
11687
11926
  let div0;
@@ -11692,7 +11931,7 @@
11692
11931
  let t2;
11693
11932
  let mounted;
11694
11933
  let dispose;
11695
- let each_value_4 = /*periodValues*/ ctx[23];
11934
+ let each_value_4 = /*periodValues*/ ctx[24];
11696
11935
  validate_each_argument(each_value_4);
11697
11936
  let each_blocks_1 = [];
11698
11937
 
@@ -11700,7 +11939,7 @@
11700
11939
  each_blocks_1[i] = create_each_block_4(get_each_context_4(ctx, each_value_4, i));
11701
11940
  }
11702
11941
 
11703
- let each_value_2 = /*storedData*/ ctx[17];
11942
+ let each_value_2 = /*storedData*/ ctx[18];
11704
11943
  validate_each_argument(each_value_2);
11705
11944
  let each_blocks = [];
11706
11945
 
@@ -11728,15 +11967,15 @@
11728
11967
  }
11729
11968
 
11730
11969
  attr_dev(p, "class", "AccountEditLimitsTitle");
11731
- add_location(p, file$1, 501, 10, 22536);
11732
- attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
11733
- select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true;
11734
- if (/*limitsUpdateData*/ ctx[14].period === void 0) add_render_callback(() => /*select_change_handler_1*/ ctx[31].call(select));
11735
- add_location(select, file$1, 502, 10, 22590);
11970
+ add_location(p, file$1, 502, 10, 22534);
11971
+ attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[19] ? "TimeoutSelectMobile" : ""));
11972
+ select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true;
11973
+ if (/*limitsUpdateData*/ ctx[15].period === void 0) add_render_callback(() => /*select_change_handler_1*/ ctx[32].call(select));
11974
+ add_location(select, file$1, 503, 10, 22588);
11736
11975
  attr_dev(div0, "class", "AccountEditLimitsSplitSection");
11737
- add_location(div0, file$1, 500, 8, 22482);
11976
+ add_location(div0, file$1, 501, 8, 22480);
11738
11977
  attr_dev(div1, "class", "AccountEditLimitsContainer");
11739
- add_location(div1, file$1, 499, 6, 22433);
11978
+ add_location(div1, file$1, 500, 6, 22431);
11740
11979
  },
11741
11980
  m: function mount(target, anchor) {
11742
11981
  insert_dev(target, div1, anchor);
@@ -11749,7 +11988,7 @@
11749
11988
  each_blocks_1[i].m(select, null);
11750
11989
  }
11751
11990
 
11752
- select_option(select, /*limitsUpdateData*/ ctx[14].period);
11991
+ select_option(select, /*limitsUpdateData*/ ctx[15].period);
11753
11992
  append_dev(div1, t2);
11754
11993
 
11755
11994
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -11758,12 +11997,12 @@
11758
11997
 
11759
11998
  if (!mounted) {
11760
11999
  dispose = [
11761
- listen_dev(select, "change", /*select_change_handler_1*/ ctx[31]),
12000
+ listen_dev(select, "change", /*select_change_handler_1*/ ctx[32]),
11762
12001
  listen_dev(
11763
12002
  select,
11764
12003
  "change",
11765
12004
  function () {
11766
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*limitsUpdateData*/ ctx[14], 0, false, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*limitsUpdateData*/ ctx[14], 0, false, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
12005
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*limitsUpdateData*/ ctx[15], 0, false, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*limitsUpdateData*/ ctx[15], 0, false, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
11767
12006
  },
11768
12007
  false,
11769
12008
  false,
@@ -11777,8 +12016,8 @@
11777
12016
  p: function update(new_ctx, dirty) {
11778
12017
  ctx = new_ctx;
11779
12018
 
11780
- if (dirty[0] & /*periodValues*/ 8388608) {
11781
- each_value_4 = /*periodValues*/ ctx[23];
12019
+ if (dirty[0] & /*periodValues*/ 16777216) {
12020
+ each_value_4 = /*periodValues*/ ctx[24];
11782
12021
  validate_each_argument(each_value_4);
11783
12022
  let i;
11784
12023
 
@@ -11801,16 +12040,16 @@
11801
12040
  each_blocks_1.length = each_value_4.length;
11802
12041
  }
11803
12042
 
11804
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true)) {
12043
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true)) {
11805
12044
  prop_dev(select, "disabled", select_disabled_value);
11806
12045
  }
11807
12046
 
11808
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992) {
11809
- select_option(select, /*limitsUpdateData*/ ctx[14].period);
12047
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984) {
12048
+ select_option(select, /*limitsUpdateData*/ ctx[15].period);
11810
12049
  }
11811
12050
 
11812
- if (dirty[0] & /*limitsdata, limitsUpdateData, invalidIndex, storedData, checkUserInputAmount, updatedLimitValues, isMobile, lossLimitPredefinedValues*/ 138895361) {
11813
- each_value_2 = /*storedData*/ ctx[17];
12051
+ if (dirty[0] & /*playercurrency, limitsdata, limitsUpdateData, invalidIndex, storedData, checkUserInputAmount, updatedLimitValues, isMobile, lossLimitPredefinedValues*/ 277790785) {
12052
+ each_value_2 = /*storedData*/ ctx[18];
11814
12053
  validate_each_argument(each_value_2);
11815
12054
  let i;
11816
12055
 
@@ -11846,17 +12085,17 @@
11846
12085
  block,
11847
12086
  id: create_else_block_1$1.name,
11848
12087
  type: "else",
11849
- source: "(499:4) {:else}",
12088
+ source: "(500:4) {:else}",
11850
12089
  ctx
11851
12090
  });
11852
12091
 
11853
12092
  return block;
11854
12093
  }
11855
12094
 
11856
- // (460:4) {#if (isArray)}
12095
+ // (461:4) {#if (isArray)}
11857
12096
  function create_if_block_1$1(ctx) {
11858
12097
  let div;
11859
- let each_value = /*limitsUpdateData*/ ctx[14];
12098
+ let each_value = /*limitsUpdateData*/ ctx[15];
11860
12099
  validate_each_argument(each_value);
11861
12100
  let each_blocks = [];
11862
12101
 
@@ -11873,7 +12112,7 @@
11873
12112
  }
11874
12113
 
11875
12114
  attr_dev(div, "class", "AccountEditLimitsContainer");
11876
- add_location(div, file$1, 460, 6, 19430);
12115
+ add_location(div, file$1, 461, 6, 19465);
11877
12116
  },
11878
12117
  m: function mount(target, anchor) {
11879
12118
  insert_dev(target, div, anchor);
@@ -11883,8 +12122,8 @@
11883
12122
  }
11884
12123
  },
11885
12124
  p: function update(ctx, dirty) {
11886
- if (dirty[0] & /*limitsUpdateData, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, maxTimeValue, minTimeValue, isMobile, depositPredefinedValues*/ 136794912) {
11887
- each_value = /*limitsUpdateData*/ ctx[14];
12125
+ if (dirty[0] & /*limitsUpdateData, playercurrency, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, maxTimeValue, minTimeValue, isMobile, depositPredefinedValues*/ 273589856) {
12126
+ each_value = /*limitsUpdateData*/ ctx[15];
11888
12127
  validate_each_argument(each_value);
11889
12128
  let i;
11890
12129
 
@@ -11917,26 +12156,26 @@
11917
12156
  block,
11918
12157
  id: create_if_block_1$1.name,
11919
12158
  type: "if",
11920
- source: "(460:4) {#if (isArray)}",
12159
+ source: "(461:4) {#if (isArray)}",
11921
12160
  ctx
11922
12161
  });
11923
12162
 
11924
12163
  return block;
11925
12164
  }
11926
12165
 
11927
- // (504:12) {#each periodValues as selectData}
12166
+ // (505:12) {#each periodValues as selectData}
11928
12167
  function create_each_block_4(ctx) {
11929
12168
  let option;
11930
- let t_value = /*selectData*/ ctx[50] + "";
12169
+ let t_value = /*selectData*/ ctx[51] + "";
11931
12170
  let t;
11932
12171
 
11933
12172
  const block = {
11934
12173
  c: function create() {
11935
12174
  option = element("option");
11936
12175
  t = text(t_value);
11937
- option.__value = /*selectData*/ ctx[50];
12176
+ option.__value = /*selectData*/ ctx[51];
11938
12177
  option.value = option.__value;
11939
- add_location(option, file$1, 504, 14, 22891);
12178
+ add_location(option, file$1, 505, 14, 22889);
11940
12179
  },
11941
12180
  m: function mount(target, anchor) {
11942
12181
  insert_dev(target, option, anchor);
@@ -11952,14 +12191,14 @@
11952
12191
  block,
11953
12192
  id: create_each_block_4.name,
11954
12193
  type: "each",
11955
- source: "(504:12) {#each periodValues as selectData}",
12194
+ source: "(505:12) {#each periodValues as selectData}",
11956
12195
  ctx
11957
12196
  });
11958
12197
 
11959
12198
  return block;
11960
12199
  }
11961
12200
 
11962
- // (510:10) {#if limitsUpdateData.period === savedData.periodName}
12201
+ // (511:10) {#if limitsUpdateData.period === savedData.periodName}
11963
12202
  function create_if_block_9$1(ctx) {
11964
12203
  let div1;
11965
12204
  let p;
@@ -11973,7 +12212,7 @@
11973
12212
  let t5;
11974
12213
  let mounted;
11975
12214
  let dispose;
11976
- let each_value_3 = /*lossLimitPredefinedValues*/ ctx[22];
12215
+ let each_value_3 = /*lossLimitPredefinedValues*/ ctx[23];
11977
12216
  validate_each_argument(each_value_3);
11978
12217
  let each_blocks = [];
11979
12218
 
@@ -11982,11 +12221,11 @@
11982
12221
  }
11983
12222
 
11984
12223
  function select_change_handler_2() {
11985
- /*select_change_handler_2*/ ctx[32].call(select, /*each_value_2*/ ctx[57], /*index*/ ctx[52]);
12224
+ /*select_change_handler_2*/ ctx[33].call(select, /*each_value_2*/ ctx[58], /*index*/ ctx[53]);
11986
12225
  }
11987
12226
 
11988
- let if_block0 = /*savedData*/ ctx[56].amount === "Custom" && create_if_block_11(ctx);
11989
- let if_block1 = /*limitsUpdateData*/ ctx[14].isModified === true && create_if_block_10$1(ctx);
12227
+ let if_block0 = /*savedData*/ ctx[57].amount === "Custom" && create_if_block_11$1(ctx);
12228
+ let if_block1 = /*limitsUpdateData*/ ctx[15].isModified === true && create_if_block_10$1(ctx);
11990
12229
 
11991
12230
  const block = {
11992
12231
  c: function create() {
@@ -12009,21 +12248,21 @@
12009
12248
  if (if_block1) if_block1.c();
12010
12249
  t5 = space();
12011
12250
  attr_dev(p, "class", "AccountEditLimitsTitle");
12012
- add_location(p, file$1, 511, 14, 23177);
12251
+ add_location(p, file$1, 512, 14, 23175);
12013
12252
  option.__value = "";
12014
12253
  option.value = option.__value;
12015
12254
  option.disabled = true;
12016
12255
  option.selected = true;
12017
12256
  option.hidden = true;
12018
- add_location(option, file$1, 513, 16, 23478);
12019
- attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
12020
- select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true;
12021
- if (/*savedData*/ ctx[56].amount === void 0) add_render_callback(select_change_handler_2);
12022
- add_location(select, file$1, 512, 14, 23236);
12257
+ add_location(option, file$1, 514, 16, 23476);
12258
+ attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[19] ? "TimeoutSelectMobile" : ""));
12259
+ select.disabled = select_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true;
12260
+ if (/*savedData*/ ctx[57].amount === void 0) add_render_callback(select_change_handler_2);
12261
+ add_location(select, file$1, 513, 14, 23234);
12023
12262
  attr_dev(div0, "class", "AccountEditLimitsInputContainer");
12024
- add_location(div0, file$1, 518, 14, 23865);
12263
+ add_location(div0, file$1, 519, 14, 23852);
12025
12264
  attr_dev(div1, "class", "AccountEditLimitsSplitSection");
12026
- add_location(div1, file$1, 510, 12, 23119);
12265
+ add_location(div1, file$1, 511, 12, 23117);
12027
12266
  },
12028
12267
  m: function mount(target, anchor) {
12029
12268
  insert_dev(target, div1, anchor);
@@ -12036,7 +12275,7 @@
12036
12275
  each_blocks[i].m(select, null);
12037
12276
  }
12038
12277
 
12039
- select_option(select, /*savedData*/ ctx[56].amount);
12278
+ select_option(select, /*savedData*/ ctx[57].amount);
12040
12279
  append_dev(div1, t3);
12041
12280
  append_dev(div1, div0);
12042
12281
  if (if_block0) if_block0.m(div0, null);
@@ -12051,7 +12290,7 @@
12051
12290
  select,
12052
12291
  "change",
12053
12292
  function () {
12054
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*savedData*/ ctx[56], 0, false, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*savedData*/ ctx[56], 0, false, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
12293
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*savedData*/ ctx[57], 0, false, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*savedData*/ ctx[57], 0, false, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
12055
12294
  },
12056
12295
  false,
12057
12296
  false,
@@ -12065,8 +12304,8 @@
12065
12304
  p: function update(new_ctx, dirty) {
12066
12305
  ctx = new_ctx;
12067
12306
 
12068
- if (dirty[0] & /*lossLimitPredefinedValues, limitsUpdateData*/ 4210688) {
12069
- each_value_3 = /*lossLimitPredefinedValues*/ ctx[22];
12307
+ if (dirty[0] & /*lossLimitPredefinedValues, playercurrency*/ 8388672) {
12308
+ each_value_3 = /*lossLimitPredefinedValues*/ ctx[23];
12070
12309
  validate_each_argument(each_value_3);
12071
12310
  let i;
12072
12311
 
@@ -12089,19 +12328,19 @@
12089
12328
  each_blocks.length = each_value_3.length;
12090
12329
  }
12091
12330
 
12092
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true)) {
12331
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && select_disabled_value !== (select_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true)) {
12093
12332
  prop_dev(select, "disabled", select_disabled_value);
12094
12333
  }
12095
12334
 
12096
- if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 4325376) {
12097
- select_option(select, /*savedData*/ ctx[56].amount);
12335
+ if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 8650752) {
12336
+ select_option(select, /*savedData*/ ctx[57].amount);
12098
12337
  }
12099
12338
 
12100
- if (/*savedData*/ ctx[56].amount === "Custom") {
12339
+ if (/*savedData*/ ctx[57].amount === "Custom") {
12101
12340
  if (if_block0) {
12102
12341
  if_block0.p(ctx, dirty);
12103
12342
  } else {
12104
- if_block0 = create_if_block_11(ctx);
12343
+ if_block0 = create_if_block_11$1(ctx);
12105
12344
  if_block0.c();
12106
12345
  if_block0.m(div0, t4);
12107
12346
  }
@@ -12110,7 +12349,7 @@
12110
12349
  if_block0 = null;
12111
12350
  }
12112
12351
 
12113
- if (/*limitsUpdateData*/ ctx[14].isModified === true) {
12352
+ if (/*limitsUpdateData*/ ctx[15].isModified === true) {
12114
12353
  if (if_block1) {
12115
12354
  if_block1.p(ctx, dirty);
12116
12355
  } else {
@@ -12137,27 +12376,26 @@
12137
12376
  block,
12138
12377
  id: create_if_block_9$1.name,
12139
12378
  type: "if",
12140
- source: "(510:10) {#if limitsUpdateData.period === savedData.periodName}",
12379
+ source: "(511:10) {#if limitsUpdateData.period === savedData.periodName}",
12141
12380
  ctx
12142
12381
  });
12143
12382
 
12144
12383
  return block;
12145
12384
  }
12146
12385
 
12147
- // (516:58) {#if selectData !== "No limit" && selectData !== "Custom"}
12386
+ // (517:58) {#if selectData !== "No limit" && selectData !== "Custom"}
12148
12387
  function create_if_block_13(ctx) {
12149
- let t_value = /*limitsUpdateData*/ ctx[14].currency + "";
12150
12388
  let t;
12151
12389
 
12152
12390
  const block = {
12153
12391
  c: function create() {
12154
- t = text(t_value);
12392
+ t = text(/*playercurrency*/ ctx[6]);
12155
12393
  },
12156
12394
  m: function mount(target, anchor) {
12157
12395
  insert_dev(target, t, anchor);
12158
12396
  },
12159
12397
  p: function update(ctx, dirty) {
12160
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t_value !== (t_value = /*limitsUpdateData*/ ctx[14].currency + "")) set_data_dev(t, t_value);
12398
+ if (dirty[0] & /*playercurrency*/ 64) set_data_dev(t, /*playercurrency*/ ctx[6]);
12161
12399
  },
12162
12400
  d: function destroy(detaching) {
12163
12401
  if (detaching) detach_dev(t);
@@ -12168,20 +12406,20 @@
12168
12406
  block,
12169
12407
  id: create_if_block_13.name,
12170
12408
  type: "if",
12171
- source: "(516:58) {#if selectData !== \\\"No limit\\\" && selectData !== \\\"Custom\\\"}",
12409
+ source: "(517:58) {#if selectData !== \\\"No limit\\\" && selectData !== \\\"Custom\\\"}",
12172
12410
  ctx
12173
12411
  });
12174
12412
 
12175
12413
  return block;
12176
12414
  }
12177
12415
 
12178
- // (515:16) {#each lossLimitPredefinedValues as selectData}
12416
+ // (516:16) {#each lossLimitPredefinedValues as selectData}
12179
12417
  function create_each_block_3(ctx) {
12180
12418
  let option;
12181
- let t0_value = /*selectData*/ ctx[50] + "";
12419
+ let t0_value = /*selectData*/ ctx[51] + "";
12182
12420
  let t0;
12183
12421
  let t1;
12184
- let if_block = /*selectData*/ ctx[50] !== "No limit" && /*selectData*/ ctx[50] !== "Custom" && create_if_block_13(ctx);
12422
+ let if_block = /*selectData*/ ctx[51] !== "No limit" && /*selectData*/ ctx[51] !== "Custom" && create_if_block_13(ctx);
12185
12423
 
12186
12424
  const block = {
12187
12425
  c: function create() {
@@ -12189,9 +12427,9 @@
12189
12427
  t0 = text(t0_value);
12190
12428
  t1 = space();
12191
12429
  if (if_block) if_block.c();
12192
- option.__value = /*selectData*/ ctx[50];
12430
+ option.__value = /*selectData*/ ctx[51];
12193
12431
  option.value = option.__value;
12194
- add_location(option, file$1, 515, 18, 23620);
12432
+ add_location(option, file$1, 516, 18, 23618);
12195
12433
  },
12196
12434
  m: function mount(target, anchor) {
12197
12435
  insert_dev(target, option, anchor);
@@ -12200,7 +12438,7 @@
12200
12438
  if (if_block) if_block.m(option, null);
12201
12439
  },
12202
12440
  p: function update(ctx, dirty) {
12203
- if (/*selectData*/ ctx[50] !== "No limit" && /*selectData*/ ctx[50] !== "Custom") if_block.p(ctx, dirty);
12441
+ if (/*selectData*/ ctx[51] !== "No limit" && /*selectData*/ ctx[51] !== "Custom") if_block.p(ctx, dirty);
12204
12442
  },
12205
12443
  d: function destroy(detaching) {
12206
12444
  if (detaching) detach_dev(option);
@@ -12212,15 +12450,15 @@
12212
12450
  block,
12213
12451
  id: create_each_block_3.name,
12214
12452
  type: "each",
12215
- source: "(515:16) {#each lossLimitPredefinedValues as selectData}",
12453
+ source: "(516:16) {#each lossLimitPredefinedValues as selectData}",
12216
12454
  ctx
12217
12455
  });
12218
12456
 
12219
12457
  return block;
12220
12458
  }
12221
12459
 
12222
- // (520:16) {#if savedData.amount === "Custom"}
12223
- function create_if_block_11(ctx) {
12460
+ // (521:16) {#if savedData.amount === "Custom"}
12461
+ function create_if_block_11$1(ctx) {
12224
12462
  let input;
12225
12463
  let input_disabled_value;
12226
12464
  let t;
@@ -12229,10 +12467,10 @@
12229
12467
  let dispose;
12230
12468
 
12231
12469
  function input_input_handler_2() {
12232
- /*input_input_handler_2*/ ctx[33].call(input, /*each_value_2*/ ctx[57], /*index*/ ctx[52]);
12470
+ /*input_input_handler_2*/ ctx[34].call(input, /*each_value_2*/ ctx[58], /*index*/ ctx[53]);
12233
12471
  }
12234
12472
 
12235
- let if_block = /*invalidIndex*/ ctx[13] === true && create_if_block_12(ctx);
12473
+ let if_block = /*invalidIndex*/ ctx[14] === true && create_if_block_12$1(ctx);
12236
12474
 
12237
12475
  const block = {
12238
12476
  c: function create() {
@@ -12242,12 +12480,12 @@
12242
12480
  if_block_anchor = empty();
12243
12481
  attr_dev(input, "type", "number");
12244
12482
  attr_dev(input, "class", "AccountEditField");
12245
- input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true;
12246
- add_location(input, file$1, 520, 18, 23981);
12483
+ input.disabled = input_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true;
12484
+ add_location(input, file$1, 521, 18, 23968);
12247
12485
  },
12248
12486
  m: function mount(target, anchor) {
12249
12487
  insert_dev(target, input, anchor);
12250
- set_input_value(input, /*savedData*/ ctx[56].value);
12488
+ set_input_value(input, /*savedData*/ ctx[57].value);
12251
12489
  insert_dev(target, t, anchor);
12252
12490
  if (if_block) if_block.m(target, anchor);
12253
12491
  insert_dev(target, if_block_anchor, anchor);
@@ -12258,7 +12496,7 @@
12258
12496
  input,
12259
12497
  "keyup",
12260
12498
  function () {
12261
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*savedData*/ ctx[56], 0, false, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*savedData*/ ctx[56], 0, false, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
12499
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*savedData*/ ctx[57], 0, false, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*savedData*/ ctx[57], 0, false, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
12262
12500
  },
12263
12501
  false,
12264
12502
  false,
@@ -12273,17 +12511,17 @@
12273
12511
  p: function update(new_ctx, dirty) {
12274
12512
  ctx = new_ctx;
12275
12513
 
12276
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && input_disabled_value !== (input_disabled_value = /*limitsUpdateData*/ ctx[14].isModified === true)) {
12514
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && input_disabled_value !== (input_disabled_value = /*limitsUpdateData*/ ctx[15].isModified === true)) {
12277
12515
  prop_dev(input, "disabled", input_disabled_value);
12278
12516
  }
12279
12517
 
12280
- if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 4325376 && to_number(input.value) !== /*savedData*/ ctx[56].value) {
12281
- set_input_value(input, /*savedData*/ ctx[56].value);
12518
+ if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 8650752 && to_number(input.value) !== /*savedData*/ ctx[57].value) {
12519
+ set_input_value(input, /*savedData*/ ctx[57].value);
12282
12520
  }
12283
12521
 
12284
- if (/*invalidIndex*/ ctx[13] === true) {
12522
+ if (/*invalidIndex*/ ctx[14] === true) {
12285
12523
  if (if_block) ; else {
12286
- if_block = create_if_block_12(ctx);
12524
+ if_block = create_if_block_12$1(ctx);
12287
12525
  if_block.c();
12288
12526
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
12289
12527
  }
@@ -12304,17 +12542,17 @@
12304
12542
 
12305
12543
  dispatch_dev("SvelteRegisterBlock", {
12306
12544
  block,
12307
- id: create_if_block_11.name,
12545
+ id: create_if_block_11$1.name,
12308
12546
  type: "if",
12309
- source: "(520:16) {#if savedData.amount === \\\"Custom\\\"}",
12547
+ source: "(521:16) {#if savedData.amount === \\\"Custom\\\"}",
12310
12548
  ctx
12311
12549
  });
12312
12550
 
12313
12551
  return block;
12314
12552
  }
12315
12553
 
12316
- // (522:18) {#if invalidIndex === true}
12317
- function create_if_block_12(ctx) {
12554
+ // (523:18) {#if invalidIndex === true}
12555
+ function create_if_block_12$1(ctx) {
12318
12556
  let p;
12319
12557
  let span;
12320
12558
 
@@ -12324,9 +12562,9 @@
12324
12562
  span = element("span");
12325
12563
  span.textContent = "The amount needs to be between 0 and 99,999,999.";
12326
12564
  attr_dev(span, "class", "InvalidInput InvalidSingleRow");
12327
- add_location(span, file$1, 523, 20, 24299);
12565
+ add_location(span, file$1, 524, 20, 24286);
12328
12566
  attr_dev(p, "class", "AccountEditWarningText");
12329
- add_location(p, file$1, 522, 18, 24244);
12567
+ add_location(p, file$1, 523, 18, 24231);
12330
12568
  },
12331
12569
  m: function mount(target, anchor) {
12332
12570
  insert_dev(target, p, anchor);
@@ -12339,16 +12577,16 @@
12339
12577
 
12340
12578
  dispatch_dev("SvelteRegisterBlock", {
12341
12579
  block,
12342
- id: create_if_block_12.name,
12580
+ id: create_if_block_12$1.name,
12343
12581
  type: "if",
12344
- source: "(522:18) {#if invalidIndex === true}",
12582
+ source: "(523:18) {#if invalidIndex === true}",
12345
12583
  ctx
12346
12584
  });
12347
12585
 
12348
12586
  return block;
12349
12587
  }
12350
12588
 
12351
- // (528:16) {#if limitsUpdateData.isModified === true}
12589
+ // (529:16) {#if limitsUpdateData.isModified === true}
12352
12590
  function create_if_block_10$1(ctx) {
12353
12591
  let p0;
12354
12592
  let t0;
@@ -12366,17 +12604,12 @@
12366
12604
  let span2;
12367
12605
  let t4;
12368
12606
 
12369
- let t5_value = (/*limitsUpdateData*/ ctx[14].currency
12370
- ? /*limitsUpdateData*/ ctx[14].currency
12371
- : "") + "";
12372
-
12373
- let t5;
12374
- let t6;
12375
-
12376
- let t7_value = (/*limitsdata*/ ctx[0].updateAmount > 0
12607
+ let t5_value = (/*limitsdata*/ ctx[0].updateAmount > 0
12377
12608
  ? /*limitsdata*/ ctx[0].updateAmount
12378
12609
  : 0) + "";
12379
12610
 
12611
+ let t5;
12612
+ let t6;
12380
12613
  let t7;
12381
12614
  let t8;
12382
12615
 
@@ -12395,17 +12628,17 @@
12395
12628
  t4 = text("Your limit has been changed or increased: ");
12396
12629
  t5 = text(t5_value);
12397
12630
  t6 = space();
12398
- t7 = text(t7_value);
12631
+ t7 = text(/*playercurrency*/ ctx[6]);
12399
12632
  t8 = text(". \u000bYou will have to wait for the expiration date for your new limit \u000bto take effect");
12400
- add_location(span0, file$1, 528, 74, 24601);
12633
+ add_location(span0, file$1, 529, 74, 24588);
12401
12634
  attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
12402
- add_location(p0, file$1, 528, 18, 24545);
12635
+ add_location(p0, file$1, 529, 18, 24532);
12403
12636
  attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
12404
- add_location(span1, file$1, 530, 23, 24804);
12405
- add_location(span2, file$1, 530, 78, 24859);
12406
- add_location(p1, file$1, 530, 20, 24801);
12637
+ add_location(span1, file$1, 531, 23, 24791);
12638
+ add_location(span2, file$1, 531, 78, 24846);
12639
+ add_location(p1, file$1, 531, 20, 24788);
12407
12640
  attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
12408
- add_location(div, file$1, 529, 18, 24728);
12641
+ add_location(div, file$1, 530, 18, 24715);
12409
12642
  },
12410
12643
  m: function mount(target, anchor) {
12411
12644
  insert_dev(target, p0, anchor);
@@ -12428,13 +12661,11 @@
12428
12661
  ? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
12429
12662
  : "N/A") + "")) set_data_dev(t1, t1_value);
12430
12663
 
12431
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t5_value !== (t5_value = (/*limitsUpdateData*/ ctx[14].currency
12432
- ? /*limitsUpdateData*/ ctx[14].currency
12433
- : "") + "")) set_data_dev(t5, t5_value);
12434
-
12435
- if (dirty[0] & /*limitsdata*/ 1 && t7_value !== (t7_value = (/*limitsdata*/ ctx[0].updateAmount > 0
12664
+ if (dirty[0] & /*limitsdata*/ 1 && t5_value !== (t5_value = (/*limitsdata*/ ctx[0].updateAmount > 0
12436
12665
  ? /*limitsdata*/ ctx[0].updateAmount
12437
- : 0) + "")) set_data_dev(t7, t7_value);
12666
+ : 0) + "")) set_data_dev(t5, t5_value);
12667
+
12668
+ if (dirty[0] & /*playercurrency*/ 64) set_data_dev(t7, /*playercurrency*/ ctx[6]);
12438
12669
  },
12439
12670
  d: function destroy(detaching) {
12440
12671
  if (detaching) detach_dev(p0);
@@ -12447,17 +12678,17 @@
12447
12678
  block,
12448
12679
  id: create_if_block_10$1.name,
12449
12680
  type: "if",
12450
- source: "(528:16) {#if limitsUpdateData.isModified === true}",
12681
+ source: "(529:16) {#if limitsUpdateData.isModified === true}",
12451
12682
  ctx
12452
12683
  });
12453
12684
 
12454
12685
  return block;
12455
12686
  }
12456
12687
 
12457
- // (509:8) {#each storedData as savedData, index}
12688
+ // (510:8) {#each storedData as savedData, index}
12458
12689
  function create_each_block_2(ctx) {
12459
12690
  let if_block_anchor;
12460
- let if_block = /*limitsUpdateData*/ ctx[14].period === /*savedData*/ ctx[56].periodName && create_if_block_9$1(ctx);
12691
+ let if_block = /*limitsUpdateData*/ ctx[15].period === /*savedData*/ ctx[57].periodName && create_if_block_9$1(ctx);
12461
12692
 
12462
12693
  const block = {
12463
12694
  c: function create() {
@@ -12469,7 +12700,7 @@
12469
12700
  insert_dev(target, if_block_anchor, anchor);
12470
12701
  },
12471
12702
  p: function update(ctx, dirty) {
12472
- if (/*limitsUpdateData*/ ctx[14].period === /*savedData*/ ctx[56].periodName) {
12703
+ if (/*limitsUpdateData*/ ctx[15].period === /*savedData*/ ctx[57].periodName) {
12473
12704
  if (if_block) {
12474
12705
  if_block.p(ctx, dirty);
12475
12706
  } else {
@@ -12492,14 +12723,14 @@
12492
12723
  block,
12493
12724
  id: create_each_block_2.name,
12494
12725
  type: "each",
12495
- source: "(509:8) {#each storedData as savedData, index}",
12726
+ source: "(510:8) {#each storedData as savedData, index}",
12496
12727
  ctx
12497
12728
  });
12498
12729
 
12499
12730
  return block;
12500
12731
  }
12501
12732
 
12502
- // (465:12) {#if selectData.period == storedData[index].periodName}
12733
+ // (466:12) {#if selectData.period == storedData[index].periodName}
12503
12734
  function create_if_block_2$1(ctx) {
12504
12735
  let select;
12505
12736
  let option;
@@ -12509,7 +12740,7 @@
12509
12740
  let if_block1_anchor;
12510
12741
  let mounted;
12511
12742
  let dispose;
12512
- let each_value_1 = /*depositPredefinedValues*/ ctx[21][/*index*/ ctx[52]].values;
12743
+ let each_value_1 = /*depositPredefinedValues*/ ctx[22][/*index*/ ctx[53]].values;
12513
12744
  validate_each_argument(each_value_1);
12514
12745
  let each_blocks = [];
12515
12746
 
@@ -12518,11 +12749,11 @@
12518
12749
  }
12519
12750
 
12520
12751
  function select_change_handler() {
12521
- /*select_change_handler*/ ctx[28].call(select, /*index*/ ctx[52]);
12752
+ /*select_change_handler*/ ctx[29].call(select, /*index*/ ctx[53]);
12522
12753
  }
12523
12754
 
12524
- let if_block0 = /*storedData*/ ctx[17][/*index*/ ctx[52]].amount === "Custom" && create_if_block_4$1(ctx);
12525
- let if_block1 = /*selectData*/ ctx[50].isModified === true && create_if_block_3$1(ctx);
12755
+ let if_block0 = /*storedData*/ ctx[18][/*index*/ ctx[53]].amount === "Custom" && create_if_block_4$1(ctx);
12756
+ let if_block1 = /*selectData*/ ctx[51].isModified === true && create_if_block_3$1(ctx);
12526
12757
 
12527
12758
  const block = {
12528
12759
  c: function create() {
@@ -12544,11 +12775,11 @@
12544
12775
  option.disabled = true;
12545
12776
  option.selected = true;
12546
12777
  option.hidden = true;
12547
- add_location(option, file$1, 466, 16, 19978);
12548
- attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[18] ? "TimeoutSelectMobile" : ""));
12549
- select.disabled = select_disabled_value = /*selectData*/ ctx[50].isModified === true;
12550
- if (/*storedData*/ ctx[17][/*index*/ ctx[52]].amount === void 0) add_render_callback(select_change_handler);
12551
- add_location(select, file$1, 465, 14, 19722);
12778
+ add_location(option, file$1, 467, 16, 20013);
12779
+ attr_dev(select, "class", "AccountEditField " + (/*isMobile*/ ctx[19] ? "TimeoutSelectMobile" : ""));
12780
+ select.disabled = select_disabled_value = /*selectData*/ ctx[51].isModified === true;
12781
+ if (/*storedData*/ ctx[18][/*index*/ ctx[53]].amount === void 0) add_render_callback(select_change_handler);
12782
+ add_location(select, file$1, 466, 14, 19757);
12552
12783
  },
12553
12784
  m: function mount(target, anchor) {
12554
12785
  insert_dev(target, select, anchor);
@@ -12558,7 +12789,7 @@
12558
12789
  each_blocks[i].m(select, null);
12559
12790
  }
12560
12791
 
12561
- select_option(select, /*storedData*/ ctx[17][/*index*/ ctx[52]].amount);
12792
+ select_option(select, /*storedData*/ ctx[18][/*index*/ ctx[53]].amount);
12562
12793
  insert_dev(target, t1, anchor);
12563
12794
  if (if_block0) if_block0.m(target, anchor);
12564
12795
  insert_dev(target, t2, anchor);
@@ -12572,7 +12803,7 @@
12572
12803
  select,
12573
12804
  "change",
12574
12805
  function () {
12575
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], false, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], false, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
12806
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], false, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], false, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
12576
12807
  },
12577
12808
  false,
12578
12809
  false,
@@ -12586,8 +12817,8 @@
12586
12817
  p: function update(new_ctx, dirty) {
12587
12818
  ctx = new_ctx;
12588
12819
 
12589
- if (dirty[0] & /*depositPredefinedValues, limitname, limitsUpdateData*/ 2113568) {
12590
- each_value_1 = /*depositPredefinedValues*/ ctx[21][/*index*/ ctx[52]].values;
12820
+ if (dirty[0] & /*depositPredefinedValues, limitname, playercurrency*/ 4194400) {
12821
+ each_value_1 = /*depositPredefinedValues*/ ctx[22][/*index*/ ctx[53]].values;
12591
12822
  validate_each_argument(each_value_1);
12592
12823
  let i;
12593
12824
 
@@ -12610,15 +12841,15 @@
12610
12841
  each_blocks.length = each_value_1.length;
12611
12842
  }
12612
12843
 
12613
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && select_disabled_value !== (select_disabled_value = /*selectData*/ ctx[50].isModified === true)) {
12844
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && select_disabled_value !== (select_disabled_value = /*selectData*/ ctx[51].isModified === true)) {
12614
12845
  prop_dev(select, "disabled", select_disabled_value);
12615
12846
  }
12616
12847
 
12617
- if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 4325376) {
12618
- select_option(select, /*storedData*/ ctx[17][/*index*/ ctx[52]].amount);
12848
+ if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 8650752) {
12849
+ select_option(select, /*storedData*/ ctx[18][/*index*/ ctx[53]].amount);
12619
12850
  }
12620
12851
 
12621
- if (/*storedData*/ ctx[17][/*index*/ ctx[52]].amount === "Custom") {
12852
+ if (/*storedData*/ ctx[18][/*index*/ ctx[53]].amount === "Custom") {
12622
12853
  if (if_block0) {
12623
12854
  if_block0.p(ctx, dirty);
12624
12855
  } else {
@@ -12631,7 +12862,7 @@
12631
12862
  if_block0 = null;
12632
12863
  }
12633
12864
 
12634
- if (/*selectData*/ ctx[50].isModified === true) {
12865
+ if (/*selectData*/ ctx[51].isModified === true) {
12635
12866
  if (if_block1) {
12636
12867
  if_block1.p(ctx, dirty);
12637
12868
  } else {
@@ -12661,17 +12892,17 @@
12661
12892
  block,
12662
12893
  id: create_if_block_2$1.name,
12663
12894
  type: "if",
12664
- source: "(465:12) {#if selectData.period == storedData[index].periodName}",
12895
+ source: "(466:12) {#if selectData.period == storedData[index].periodName}",
12665
12896
  ctx
12666
12897
  });
12667
12898
 
12668
12899
  return block;
12669
12900
  }
12670
12901
 
12671
- // (469:66) {#if predefinedData !== "No limit" && predefinedData !== "Custom"}
12902
+ // (470:66) {#if predefinedData !== "No limit" && predefinedData !== "Custom"}
12672
12903
  function create_if_block_8$1(ctx) {
12673
12904
  let t_value = (/*limitname*/ ctx[5] !== "Time Limit"
12674
- ? /*selectData*/ ctx[50].currency
12905
+ ? /*playercurrency*/ ctx[6]
12675
12906
  : " minutes") + "";
12676
12907
 
12677
12908
  let t;
@@ -12684,8 +12915,8 @@
12684
12915
  insert_dev(target, t, anchor);
12685
12916
  },
12686
12917
  p: function update(ctx, dirty) {
12687
- if (dirty[0] & /*limitname, limitsUpdateData*/ 16416 && t_value !== (t_value = (/*limitname*/ ctx[5] !== "Time Limit"
12688
- ? /*selectData*/ ctx[50].currency
12918
+ if (dirty[0] & /*limitname, playercurrency*/ 96 && t_value !== (t_value = (/*limitname*/ ctx[5] !== "Time Limit"
12919
+ ? /*playercurrency*/ ctx[6]
12689
12920
  : " minutes") + "")) set_data_dev(t, t_value);
12690
12921
  },
12691
12922
  d: function destroy(detaching) {
@@ -12697,20 +12928,20 @@
12697
12928
  block,
12698
12929
  id: create_if_block_8$1.name,
12699
12930
  type: "if",
12700
- source: "(469:66) {#if predefinedData !== \\\"No limit\\\" && predefinedData !== \\\"Custom\\\"}",
12931
+ source: "(470:66) {#if predefinedData !== \\\"No limit\\\" && predefinedData !== \\\"Custom\\\"}",
12701
12932
  ctx
12702
12933
  });
12703
12934
 
12704
12935
  return block;
12705
12936
  }
12706
12937
 
12707
- // (468:16) {#each depositPredefinedValues[index].values as predefinedData}
12938
+ // (469:16) {#each depositPredefinedValues[index].values as predefinedData}
12708
12939
  function create_each_block_1$1(ctx) {
12709
12940
  let option;
12710
- let t0_value = /*predefinedData*/ ctx[53] + "";
12941
+ let t0_value = /*predefinedData*/ ctx[54] + "";
12711
12942
  let t0;
12712
12943
  let t1;
12713
- let if_block = /*predefinedData*/ ctx[53] !== "No limit" && /*predefinedData*/ ctx[53] !== "Custom" && create_if_block_8$1(ctx);
12944
+ let if_block = /*predefinedData*/ ctx[54] !== "No limit" && /*predefinedData*/ ctx[54] !== "Custom" && create_if_block_8$1(ctx);
12714
12945
 
12715
12946
  const block = {
12716
12947
  c: function create() {
@@ -12718,9 +12949,9 @@
12718
12949
  t0 = text(t0_value);
12719
12950
  t1 = space();
12720
12951
  if (if_block) if_block.c();
12721
- option.__value = /*predefinedData*/ ctx[53];
12952
+ option.__value = /*predefinedData*/ ctx[54];
12722
12953
  option.value = option.__value;
12723
- add_location(option, file$1, 468, 18, 20136);
12954
+ add_location(option, file$1, 469, 18, 20171);
12724
12955
  },
12725
12956
  m: function mount(target, anchor) {
12726
12957
  insert_dev(target, option, anchor);
@@ -12729,7 +12960,7 @@
12729
12960
  if (if_block) if_block.m(option, null);
12730
12961
  },
12731
12962
  p: function update(ctx, dirty) {
12732
- if (/*predefinedData*/ ctx[53] !== "No limit" && /*predefinedData*/ ctx[53] !== "Custom") if_block.p(ctx, dirty);
12963
+ if (/*predefinedData*/ ctx[54] !== "No limit" && /*predefinedData*/ ctx[54] !== "Custom") if_block.p(ctx, dirty);
12733
12964
  },
12734
12965
  d: function destroy(detaching) {
12735
12966
  if (detaching) detach_dev(option);
@@ -12741,14 +12972,14 @@
12741
12972
  block,
12742
12973
  id: create_each_block_1$1.name,
12743
12974
  type: "each",
12744
- source: "(468:16) {#each depositPredefinedValues[index].values as predefinedData}",
12975
+ source: "(469:16) {#each depositPredefinedValues[index].values as predefinedData}",
12745
12976
  ctx
12746
12977
  });
12747
12978
 
12748
12979
  return block;
12749
12980
  }
12750
12981
 
12751
- // (472:14) {#if storedData[index].amount === "Custom"}
12982
+ // (473:14) {#if storedData[index].amount === "Custom"}
12752
12983
  function create_if_block_4$1(ctx) {
12753
12984
  let if_block_anchor;
12754
12985
 
@@ -12792,14 +13023,14 @@
12792
13023
  block,
12793
13024
  id: create_if_block_4$1.name,
12794
13025
  type: "if",
12795
- source: "(472:14) {#if storedData[index].amount === \\\"Custom\\\"}",
13026
+ source: "(473:14) {#if storedData[index].amount === \\\"Custom\\\"}",
12796
13027
  ctx
12797
13028
  });
12798
13029
 
12799
13030
  return block;
12800
13031
  }
12801
13032
 
12802
- // (480:16) {:else}
13033
+ // (481:16) {:else}
12803
13034
  function create_else_block$1(ctx) {
12804
13035
  let input;
12805
13036
  let input_disabled_value;
@@ -12809,10 +13040,10 @@
12809
13040
  let dispose;
12810
13041
 
12811
13042
  function input_input_handler_1() {
12812
- /*input_input_handler_1*/ ctx[30].call(input, /*index*/ ctx[52]);
13043
+ /*input_input_handler_1*/ ctx[31].call(input, /*index*/ ctx[53]);
12813
13044
  }
12814
13045
 
12815
- let if_block = /*invalidIndexes*/ ctx[12][/*index*/ ctx[52]] == 1 && create_if_block_7$1(ctx);
13046
+ let if_block = /*invalidIndexes*/ ctx[13][/*index*/ ctx[53]] == 1 && create_if_block_7$1(ctx);
12816
13047
 
12817
13048
  const block = {
12818
13049
  c: function create() {
@@ -12822,14 +13053,14 @@
12822
13053
  if (if_block) if_block.c();
12823
13054
  attr_dev(input, "type", "number");
12824
13055
  attr_dev(input, "class", "AccountEditField");
12825
- input.disabled = input_disabled_value = /*selectData*/ ctx[50].isModified === true;
12826
- add_location(input, file$1, 480, 18, 21013);
13056
+ input.disabled = input_disabled_value = /*selectData*/ ctx[51].isModified === true;
13057
+ add_location(input, file$1, 481, 18, 21043);
12827
13058
  attr_dev(p, "class", "AccountEditWarningText");
12828
- add_location(p, file$1, 481, 18, 21243);
13059
+ add_location(p, file$1, 482, 18, 21273);
12829
13060
  },
12830
13061
  m: function mount(target, anchor) {
12831
13062
  insert_dev(target, input, anchor);
12832
- set_input_value(input, /*storedData*/ ctx[17][/*index*/ ctx[52]].value);
13063
+ set_input_value(input, /*storedData*/ ctx[18][/*index*/ ctx[53]].value);
12833
13064
  insert_dev(target, t, anchor);
12834
13065
  insert_dev(target, p, anchor);
12835
13066
  if (if_block) if_block.m(p, null);
@@ -12840,7 +13071,7 @@
12840
13071
  input,
12841
13072
  "keyup",
12842
13073
  function () {
12843
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], true, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], true, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
13074
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], true, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], true, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
12844
13075
  },
12845
13076
  false,
12846
13077
  false,
@@ -12855,15 +13086,15 @@
12855
13086
  p: function update(new_ctx, dirty) {
12856
13087
  ctx = new_ctx;
12857
13088
 
12858
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[50].isModified === true)) {
13089
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[51].isModified === true)) {
12859
13090
  prop_dev(input, "disabled", input_disabled_value);
12860
13091
  }
12861
13092
 
12862
- if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 4325376 && to_number(input.value) !== /*storedData*/ ctx[17][/*index*/ ctx[52]].value) {
12863
- set_input_value(input, /*storedData*/ ctx[17][/*index*/ ctx[52]].value);
13093
+ if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 8650752 && to_number(input.value) !== /*storedData*/ ctx[18][/*index*/ ctx[53]].value) {
13094
+ set_input_value(input, /*storedData*/ ctx[18][/*index*/ ctx[53]].value);
12864
13095
  }
12865
13096
 
12866
- if (/*invalidIndexes*/ ctx[12][/*index*/ ctx[52]] == 1) {
13097
+ if (/*invalidIndexes*/ ctx[13][/*index*/ ctx[53]] == 1) {
12867
13098
  if (if_block) {
12868
13099
  if_block.p(ctx, dirty);
12869
13100
  } else {
@@ -12890,14 +13121,14 @@
12890
13121
  block,
12891
13122
  id: create_else_block$1.name,
12892
13123
  type: "else",
12893
- source: "(480:16) {:else}",
13124
+ source: "(481:16) {:else}",
12894
13125
  ctx
12895
13126
  });
12896
13127
 
12897
13128
  return block;
12898
13129
  }
12899
13130
 
12900
- // (473:16) {#if limitname === "Deposit Limit"}
13131
+ // (474:16) {#if limitname === "Deposit Limit"}
12901
13132
  function create_if_block_5$1(ctx) {
12902
13133
  let input;
12903
13134
  let input_disabled_value;
@@ -12907,10 +13138,10 @@
12907
13138
  let dispose;
12908
13139
 
12909
13140
  function input_input_handler() {
12910
- /*input_input_handler*/ ctx[29].call(input, /*index*/ ctx[52]);
13141
+ /*input_input_handler*/ ctx[30].call(input, /*index*/ ctx[53]);
12911
13142
  }
12912
13143
 
12913
- let if_block = /*invalidIndexes*/ ctx[12][/*index*/ ctx[52]] == 1 && create_if_block_6$1(ctx);
13144
+ let if_block = /*invalidIndexes*/ ctx[13][/*index*/ ctx[53]] == 1 && create_if_block_6$1(ctx);
12914
13145
 
12915
13146
  const block = {
12916
13147
  c: function create() {
@@ -12920,14 +13151,14 @@
12920
13151
  if (if_block) if_block.c();
12921
13152
  attr_dev(input, "type", "number");
12922
13153
  attr_dev(input, "class", "AccountEditField");
12923
- input.disabled = input_disabled_value = /*selectData*/ ctx[50].isModified === true;
12924
- add_location(input, file$1, 473, 18, 20504);
13154
+ input.disabled = input_disabled_value = /*selectData*/ ctx[51].isModified === true;
13155
+ add_location(input, file$1, 474, 18, 20534);
12925
13156
  attr_dev(p, "class", "AccountEditWarningText");
12926
- add_location(p, file$1, 474, 18, 20735);
13157
+ add_location(p, file$1, 475, 18, 20765);
12927
13158
  },
12928
13159
  m: function mount(target, anchor) {
12929
13160
  insert_dev(target, input, anchor);
12930
- set_input_value(input, /*storedData*/ ctx[17][/*index*/ ctx[52]].value);
13161
+ set_input_value(input, /*storedData*/ ctx[18][/*index*/ ctx[53]].value);
12931
13162
  insert_dev(target, t, anchor);
12932
13163
  insert_dev(target, p, anchor);
12933
13164
  if (if_block) if_block.m(p, null);
@@ -12938,7 +13169,7 @@
12938
13169
  input,
12939
13170
  "keyup",
12940
13171
  function () {
12941
- if (is_function(/*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], false, /*updatedLimitValues*/ ctx[16]))) /*checkUserInputAmount*/ ctx[27](/*storedData*/ ctx[17][/*index*/ ctx[52]], /*index*/ ctx[52], false, /*updatedLimitValues*/ ctx[16]).apply(this, arguments);
13172
+ if (is_function(/*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], false, /*updatedLimitValues*/ ctx[17]))) /*checkUserInputAmount*/ ctx[28](/*storedData*/ ctx[18][/*index*/ ctx[53]], /*index*/ ctx[53], false, /*updatedLimitValues*/ ctx[17]).apply(this, arguments);
12942
13173
  },
12943
13174
  false,
12944
13175
  false,
@@ -12953,15 +13184,15 @@
12953
13184
  p: function update(new_ctx, dirty) {
12954
13185
  ctx = new_ctx;
12955
13186
 
12956
- if (dirty[0] & /*limitsUpdateData, periodValues*/ 8404992 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[50].isModified === true)) {
13187
+ if (dirty[0] & /*limitsUpdateData, periodValues*/ 16809984 && input_disabled_value !== (input_disabled_value = /*selectData*/ ctx[51].isModified === true)) {
12957
13188
  prop_dev(input, "disabled", input_disabled_value);
12958
13189
  }
12959
13190
 
12960
- if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 4325376 && to_number(input.value) !== /*storedData*/ ctx[17][/*index*/ ctx[52]].value) {
12961
- set_input_value(input, /*storedData*/ ctx[17][/*index*/ ctx[52]].value);
13191
+ if (dirty[0] & /*storedData, lossLimitPredefinedValues*/ 8650752 && to_number(input.value) !== /*storedData*/ ctx[18][/*index*/ ctx[53]].value) {
13192
+ set_input_value(input, /*storedData*/ ctx[18][/*index*/ ctx[53]].value);
12962
13193
  }
12963
13194
 
12964
- if (/*invalidIndexes*/ ctx[12][/*index*/ ctx[52]] == 1) {
13195
+ if (/*invalidIndexes*/ ctx[13][/*index*/ ctx[53]] == 1) {
12965
13196
  if (if_block) ; else {
12966
13197
  if_block = create_if_block_6$1(ctx);
12967
13198
  if_block.c();
@@ -12986,14 +13217,14 @@
12986
13217
  block,
12987
13218
  id: create_if_block_5$1.name,
12988
13219
  type: "if",
12989
- source: "(473:16) {#if limitname === \\\"Deposit Limit\\\"}",
13220
+ source: "(474:16) {#if limitname === \\\"Deposit Limit\\\"}",
12990
13221
  ctx
12991
13222
  });
12992
13223
 
12993
13224
  return block;
12994
13225
  }
12995
13226
 
12996
- // (483:20) {#if invalidIndexes[index] == 1}
13227
+ // (484:20) {#if invalidIndexes[index] == 1}
12997
13228
  function create_if_block_7$1(ctx) {
12998
13229
  let p;
12999
13230
  let t0;
@@ -13006,12 +13237,12 @@
13006
13237
  c: function create() {
13007
13238
  p = element("p");
13008
13239
  t0 = text("The time amount needs to be greater than ");
13009
- t1 = text(/*minTimeValue*/ ctx[8]);
13240
+ t1 = text(/*minTimeValue*/ ctx[9]);
13010
13241
  t2 = text(" and below ");
13011
- t3 = text(/*maxTimeValue*/ ctx[9]);
13242
+ t3 = text(/*maxTimeValue*/ ctx[10]);
13012
13243
  t4 = text(" minutes.");
13013
13244
  attr_dev(p, "class", "InvalidInput");
13014
- add_location(p, file$1, 483, 22, 21353);
13245
+ add_location(p, file$1, 484, 22, 21383);
13015
13246
  },
13016
13247
  m: function mount(target, anchor) {
13017
13248
  insert_dev(target, p, anchor);
@@ -13022,8 +13253,8 @@
13022
13253
  append_dev(p, t4);
13023
13254
  },
13024
13255
  p: function update(ctx, dirty) {
13025
- if (dirty[0] & /*minTimeValue*/ 256) set_data_dev(t1, /*minTimeValue*/ ctx[8]);
13026
- if (dirty[0] & /*maxTimeValue*/ 512) set_data_dev(t3, /*maxTimeValue*/ ctx[9]);
13256
+ if (dirty[0] & /*minTimeValue*/ 512) set_data_dev(t1, /*minTimeValue*/ ctx[9]);
13257
+ if (dirty[0] & /*maxTimeValue*/ 1024) set_data_dev(t3, /*maxTimeValue*/ ctx[10]);
13027
13258
  },
13028
13259
  d: function destroy(detaching) {
13029
13260
  if (detaching) detach_dev(p);
@@ -13034,14 +13265,14 @@
13034
13265
  block,
13035
13266
  id: create_if_block_7$1.name,
13036
13267
  type: "if",
13037
- source: "(483:20) {#if invalidIndexes[index] == 1}",
13268
+ source: "(484:20) {#if invalidIndexes[index] == 1}",
13038
13269
  ctx
13039
13270
  });
13040
13271
 
13041
13272
  return block;
13042
13273
  }
13043
13274
 
13044
- // (476:20) {#if invalidIndexes[index] == 1}
13275
+ // (477:20) {#if invalidIndexes[index] == 1}
13045
13276
  function create_if_block_6$1(ctx) {
13046
13277
  let p;
13047
13278
 
@@ -13050,7 +13281,7 @@
13050
13281
  p = element("p");
13051
13282
  p.textContent = "The amount needs to be between 0 and 99,999,999.";
13052
13283
  attr_dev(p, "class", "InvalidInput");
13053
- add_location(p, file$1, 476, 22, 20845);
13284
+ add_location(p, file$1, 477, 22, 20875);
13054
13285
  },
13055
13286
  m: function mount(target, anchor) {
13056
13287
  insert_dev(target, p, anchor);
@@ -13064,21 +13295,21 @@
13064
13295
  block,
13065
13296
  id: create_if_block_6$1.name,
13066
13297
  type: "if",
13067
- source: "(476:20) {#if invalidIndexes[index] == 1}",
13298
+ source: "(477:20) {#if invalidIndexes[index] == 1}",
13068
13299
  ctx
13069
13300
  });
13070
13301
 
13071
13302
  return block;
13072
13303
  }
13073
13304
 
13074
- // (489:14) {#if selectData.isModified === true}
13305
+ // (490:14) {#if selectData.isModified === true}
13075
13306
  function create_if_block_3$1(ctx) {
13076
13307
  let p0;
13077
13308
  let t0;
13078
13309
  let span0;
13079
13310
 
13080
- let t1_value = (/*selectData*/ ctx[50].expiryDate
13081
- ? moment(/*selectData*/ ctx[50].expiryDate).format("D/M/YYYY - h:mm A")
13311
+ let t1_value = (/*selectData*/ ctx[51].expiryDate
13312
+ ? moment(/*selectData*/ ctx[51].expiryDate).format("D/M/YYYY - h:mm A")
13082
13313
  : "N/A") + "";
13083
13314
 
13084
13315
  let t1;
@@ -13089,18 +13320,16 @@
13089
13320
  let span2;
13090
13321
  let t4;
13091
13322
 
13092
- let t5_value = (/*selectData*/ ctx[50].minutes !== undefined
13093
- ? " minutes"
13094
- : /*selectData*/ ctx[50].currency
13095
- ? /*selectData*/ ctx[50].currency
13096
- : "") + "";
13323
+ let t5_value = (/*selectData*/ ctx[51].updateAmount > 0
13324
+ ? /*selectData*/ ctx[51].updateAmount
13325
+ : 0) + "";
13097
13326
 
13098
13327
  let t5;
13099
13328
  let t6;
13100
13329
 
13101
- let t7_value = (/*selectData*/ ctx[50].updateAmount > 0
13102
- ? /*selectData*/ ctx[50].updateAmount
13103
- : 0) + "";
13330
+ let t7_value = (/*selectData*/ ctx[51].minutes !== undefined
13331
+ ? " minutes"
13332
+ : /*playercurrency*/ ctx[6]) + "";
13104
13333
 
13105
13334
  let t7;
13106
13335
  let t8;
@@ -13122,15 +13351,15 @@
13122
13351
  t6 = space();
13123
13352
  t7 = text(t7_value);
13124
13353
  t8 = text(". \u000bYou will have to wait for the expiration date for your new limit \u000bto take effect");
13125
- add_location(span0, file$1, 489, 72, 21685);
13354
+ add_location(span0, file$1, 490, 72, 21715);
13126
13355
  attr_dev(p0, "class", "AccountEditLimitsExpiryDate");
13127
- add_location(p0, file$1, 489, 16, 21629);
13356
+ add_location(p0, file$1, 490, 16, 21659);
13128
13357
  attr_dev(span1, "class", "AccountEditLimitChangePeriodIcon");
13129
- add_location(span1, file$1, 491, 21, 21884);
13130
- add_location(span2, file$1, 491, 76, 21939);
13131
- add_location(p1, file$1, 491, 18, 21881);
13358
+ add_location(span1, file$1, 492, 21, 21914);
13359
+ add_location(span2, file$1, 492, 76, 21969);
13360
+ add_location(p1, file$1, 492, 18, 21911);
13132
13361
  attr_dev(div, "class", "AccountEditLimitsPeriodChangeContainer");
13133
- add_location(div, file$1, 490, 16, 21810);
13362
+ add_location(div, file$1, 491, 16, 21840);
13134
13363
  },
13135
13364
  m: function mount(target, anchor) {
13136
13365
  insert_dev(target, p0, anchor);
@@ -13149,19 +13378,17 @@
13149
13378
  append_dev(span2, t8);
13150
13379
  },
13151
13380
  p: function update(ctx, dirty) {
13152
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t1_value !== (t1_value = (/*selectData*/ ctx[50].expiryDate
13153
- ? moment(/*selectData*/ ctx[50].expiryDate).format("D/M/YYYY - h:mm A")
13381
+ if (dirty[0] & /*limitsUpdateData*/ 32768 && t1_value !== (t1_value = (/*selectData*/ ctx[51].expiryDate
13382
+ ? moment(/*selectData*/ ctx[51].expiryDate).format("D/M/YYYY - h:mm A")
13154
13383
  : "N/A") + "")) set_data_dev(t1, t1_value);
13155
13384
 
13156
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t5_value !== (t5_value = (/*selectData*/ ctx[50].minutes !== undefined
13157
- ? " minutes"
13158
- : /*selectData*/ ctx[50].currency
13159
- ? /*selectData*/ ctx[50].currency
13160
- : "") + "")) set_data_dev(t5, t5_value);
13385
+ if (dirty[0] & /*limitsUpdateData*/ 32768 && t5_value !== (t5_value = (/*selectData*/ ctx[51].updateAmount > 0
13386
+ ? /*selectData*/ ctx[51].updateAmount
13387
+ : 0) + "")) set_data_dev(t5, t5_value);
13161
13388
 
13162
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t7_value !== (t7_value = (/*selectData*/ ctx[50].updateAmount > 0
13163
- ? /*selectData*/ ctx[50].updateAmount
13164
- : 0) + "")) set_data_dev(t7, t7_value);
13389
+ if (dirty[0] & /*limitsUpdateData, playercurrency*/ 32832 && t7_value !== (t7_value = (/*selectData*/ ctx[51].minutes !== undefined
13390
+ ? " minutes"
13391
+ : /*playercurrency*/ ctx[6]) + "")) set_data_dev(t7, t7_value);
13165
13392
  },
13166
13393
  d: function destroy(detaching) {
13167
13394
  if (detaching) detach_dev(p0);
@@ -13174,22 +13401,22 @@
13174
13401
  block,
13175
13402
  id: create_if_block_3$1.name,
13176
13403
  type: "if",
13177
- source: "(489:14) {#if selectData.isModified === true}",
13404
+ source: "(490:14) {#if selectData.isModified === true}",
13178
13405
  ctx
13179
13406
  });
13180
13407
 
13181
13408
  return block;
13182
13409
  }
13183
13410
 
13184
- // (462:8) {#each limitsUpdateData as selectData, index}
13411
+ // (463:8) {#each limitsUpdateData as selectData, index}
13185
13412
  function create_each_block$1(ctx) {
13186
13413
  let div;
13187
13414
  let p;
13188
- let t0_value = /*selectData*/ ctx[50].period + "";
13415
+ let t0_value = /*selectData*/ ctx[51].period + "";
13189
13416
  let t0;
13190
13417
  let t1;
13191
13418
  let t2;
13192
- let if_block = /*selectData*/ ctx[50].period == /*storedData*/ ctx[17][/*index*/ ctx[52]].periodName && create_if_block_2$1(ctx);
13419
+ let if_block = /*selectData*/ ctx[51].period == /*storedData*/ ctx[18][/*index*/ ctx[53]].periodName && create_if_block_2$1(ctx);
13193
13420
 
13194
13421
  const block = {
13195
13422
  c: function create() {
@@ -13200,9 +13427,9 @@
13200
13427
  if (if_block) if_block.c();
13201
13428
  t2 = space();
13202
13429
  attr_dev(p, "class", "AccountEditLimitsTitle");
13203
- add_location(p, file$1, 463, 12, 19582);
13430
+ add_location(p, file$1, 464, 12, 19617);
13204
13431
  attr_dev(div, "class", "AccountEditLimitsBox");
13205
- add_location(div, file$1, 462, 10, 19535);
13432
+ add_location(div, file$1, 463, 10, 19570);
13206
13433
  },
13207
13434
  m: function mount(target, anchor) {
13208
13435
  insert_dev(target, div, anchor);
@@ -13213,9 +13440,9 @@
13213
13440
  append_dev(div, t2);
13214
13441
  },
13215
13442
  p: function update(ctx, dirty) {
13216
- if (dirty[0] & /*limitsUpdateData*/ 16384 && t0_value !== (t0_value = /*selectData*/ ctx[50].period + "")) set_data_dev(t0, t0_value);
13443
+ if (dirty[0] & /*limitsUpdateData*/ 32768 && t0_value !== (t0_value = /*selectData*/ ctx[51].period + "")) set_data_dev(t0, t0_value);
13217
13444
 
13218
- if (/*selectData*/ ctx[50].period == /*storedData*/ ctx[17][/*index*/ ctx[52]].periodName) {
13445
+ if (/*selectData*/ ctx[51].period == /*storedData*/ ctx[18][/*index*/ ctx[53]].periodName) {
13219
13446
  if (if_block) {
13220
13447
  if_block.p(ctx, dirty);
13221
13448
  } else {
@@ -13238,7 +13465,7 @@
13238
13465
  block,
13239
13466
  id: create_each_block$1.name,
13240
13467
  type: "each",
13241
- source: "(462:8) {#each limitsUpdateData as selectData, index}",
13468
+ source: "(463:8) {#each limitsUpdateData as selectData, index}",
13242
13469
  ctx
13243
13470
  });
13244
13471
 
@@ -13278,8 +13505,8 @@
13278
13505
  let mounted;
13279
13506
  let dispose;
13280
13507
  let if_block0 = /*showsuccessnotification*/ ctx[3] && create_if_block_17(ctx);
13281
- let if_block1 = /*showresetnotification*/ ctx[4] && create_if_block_14(ctx);
13282
- let if_block2 = /*showLimits*/ ctx[7] && create_if_block$1(ctx);
13508
+ let if_block1 = /*showdeletenotification*/ ctx[4] && create_if_block_14(ctx);
13509
+ let if_block2 = /*showLimits*/ ctx[8] && create_if_block$1(ctx);
13283
13510
 
13284
13511
  const block = {
13285
13512
  c: function create() {
@@ -13317,8 +13544,8 @@
13317
13544
  this.c = noop$1;
13318
13545
  attr_dev(path, "id", "Chevron_Right");
13319
13546
  attr_dev(path, "d", "M57.633,129.007L165.93,237.268c4.752,4.74,12.451,4.74,17.215,0c4.752-4.74,4.752-12.439,0-17.179\n l-99.707-99.671l99.695-99.671c4.752-4.74,4.752-12.439,0-17.191c-4.752-4.74-12.463-4.74-17.215,0L57.621,111.816\n C52.942,116.507,52.942,124.327,57.633,129.007z");
13320
- add_location(path, file$1, 425, 8, 17853);
13321
- add_location(g, file$1, 424, 6, 17841);
13547
+ add_location(path, file$1, 426, 8, 17887);
13548
+ add_location(g, file$1, 425, 6, 17875);
13322
13549
  attr_dev(svg, "version", "1.1");
13323
13550
  attr_dev(svg, "id", "Capa_1");
13324
13551
  attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
@@ -13330,40 +13557,40 @@
13330
13557
  attr_dev(svg, "xml:space", "preserve");
13331
13558
  attr_dev(svg, "width", "18px");
13332
13559
  attr_dev(svg, "fill", "#58586B");
13333
- add_location(svg, file$1, 422, 4, 17573);
13334
- add_location(span0, file$1, 430, 4, 18184);
13560
+ add_location(svg, file$1, 423, 4, 17607);
13561
+ add_location(span0, file$1, 431, 4, 18218);
13335
13562
  attr_dev(div0, "class", "AccountEditBackButton");
13336
- add_location(div0, file$1, 421, 2, 17498);
13337
- add_location(h6, file$1, 433, 4, 18272);
13563
+ add_location(div0, file$1, 422, 2, 17532);
13564
+ add_location(h6, file$1, 434, 4, 18306);
13338
13565
  attr_dev(span1, "class", "AccountEditLimitsIcon");
13339
- add_location(span1, file$1, 435, 6, 18364);
13340
- set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[6]);
13566
+ add_location(span1, file$1, 436, 6, 18398);
13567
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[7]);
13341
13568
  set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
13342
13569
  set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
13343
- add_location(player_account_gaming_limits_popup, file$1, 436, 6, 18455);
13570
+ add_location(player_account_gaming_limits_popup, file$1, 437, 6, 18489);
13344
13571
  attr_dev(div1, "class", "AccountEditLimitsIconWrapper");
13345
- add_location(div1, file$1, 434, 4, 18315);
13572
+ add_location(div1, file$1, 435, 4, 18349);
13346
13573
  attr_dev(div2, "class", "AccountEditLimitsHeader");
13347
- add_location(div2, file$1, 432, 2, 18230);
13574
+ add_location(div2, file$1, 433, 2, 18264);
13348
13575
 
13349
- attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[15]
13576
+ attr_dev(button, "class", button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[16]
13350
13577
  ? ""
13351
13578
  : "AccountEditLimitsButtonDisabled"));
13352
13579
 
13353
- button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[15];
13354
- add_location(button, file$1, 542, 4, 25330);
13580
+ button.disabled = button_disabled_value = !/*hasDifferences*/ ctx[16];
13581
+ add_location(button, file$1, 543, 4, 25273);
13355
13582
  attr_dev(div3, "class", "AccountEditLimitsControlArea");
13356
- add_location(div3, file$1, 541, 2, 25283);
13583
+ add_location(div3, file$1, 542, 2, 25226);
13357
13584
 
13358
- attr_dev(div4, "class", "AccountEditLimitsWrapper " + (/*isMobile*/ ctx[18]
13585
+ attr_dev(div4, "class", "AccountEditLimitsWrapper " + (/*isMobile*/ ctx[19]
13359
13586
  ? "AccountEditLimitsMobileWrapper"
13360
13587
  : ""));
13361
13588
 
13362
- add_location(div4, file$1, 420, 0, 17406);
13363
- set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[10]);
13589
+ add_location(div4, file$1, 421, 0, 17440);
13590
+ set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[11]);
13364
13591
  set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modalsource", "groupEdit");
13365
- add_location(player_account_gaming_limits_confirmation_modal, file$1, 547, 2, 25561);
13366
- add_location(player_account_modal, file$1, 546, 0, 25536);
13592
+ add_location(player_account_gaming_limits_confirmation_modal, file$1, 548, 2, 25504);
13593
+ add_location(player_account_modal, file$1, 547, 0, 25479);
13367
13594
  },
13368
13595
  l: function claim(nodes) {
13369
13596
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -13401,9 +13628,9 @@
13401
13628
 
13402
13629
  if (!mounted) {
13403
13630
  dispose = [
13404
- listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[25], false, false, false),
13405
- listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[24]), false, true, false),
13406
- listen_dev(button, "click", /*click_handler*/ ctx[34], false, false, false)
13631
+ listen_dev(div0, "click", /*switchToLimitsGroupView*/ ctx[26], false, false, false),
13632
+ listen_dev(span1, "click", prevent_default(/*openInfoPopup*/ ctx[25]), false, true, false),
13633
+ listen_dev(button, "click", /*click_handler*/ ctx[35], false, false, false)
13407
13634
  ];
13408
13635
 
13409
13636
  mounted = true;
@@ -13412,8 +13639,8 @@
13412
13639
  p: function update(ctx, dirty) {
13413
13640
  if (dirty[0] & /*limitsdata, limitname*/ 33 && t3_value !== (t3_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[5] : "") + "")) set_data_dev(t3, t3_value);
13414
13641
 
13415
- if (dirty[0] & /*showPopup*/ 64) {
13416
- set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[6]);
13642
+ if (dirty[0] & /*showPopup*/ 128) {
13643
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[7]);
13417
13644
  }
13418
13645
 
13419
13646
  if (dirty[0] & /*infocontent*/ 4) {
@@ -13437,7 +13664,7 @@
13437
13664
  if_block0 = null;
13438
13665
  }
13439
13666
 
13440
- if (/*showresetnotification*/ ctx[4]) {
13667
+ if (/*showdeletenotification*/ ctx[4]) {
13441
13668
  if (if_block1) {
13442
13669
  if_block1.p(ctx, dirty);
13443
13670
  } else {
@@ -13450,7 +13677,7 @@
13450
13677
  if_block1 = null;
13451
13678
  }
13452
13679
 
13453
- if (/*showLimits*/ ctx[7]) {
13680
+ if (/*showLimits*/ ctx[8]) {
13454
13681
  if (if_block2) {
13455
13682
  if_block2.p(ctx, dirty);
13456
13683
  } else {
@@ -13463,18 +13690,18 @@
13463
13690
  if_block2 = null;
13464
13691
  }
13465
13692
 
13466
- if (dirty[0] & /*hasDifferences*/ 32768 && button_class_value !== (button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[15]
13693
+ if (dirty[0] & /*hasDifferences*/ 65536 && button_class_value !== (button_class_value = "AccountEditLimitsSaveButton " + (/*hasDifferences*/ ctx[16]
13467
13694
  ? ""
13468
13695
  : "AccountEditLimitsButtonDisabled"))) {
13469
13696
  attr_dev(button, "class", button_class_value);
13470
13697
  }
13471
13698
 
13472
- if (dirty[0] & /*hasDifferences*/ 32768 && button_disabled_value !== (button_disabled_value = !/*hasDifferences*/ ctx[15])) {
13699
+ if (dirty[0] & /*hasDifferences*/ 65536 && button_disabled_value !== (button_disabled_value = !/*hasDifferences*/ ctx[16])) {
13473
13700
  prop_dev(button, "disabled", button_disabled_value);
13474
13701
  }
13475
13702
 
13476
- if (dirty[0] & /*changeLimitsText*/ 1024) {
13477
- set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[10]);
13703
+ if (dirty[0] & /*changeLimitsText*/ 2048) {
13704
+ set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", /*changeLimitsText*/ ctx[11]);
13478
13705
  }
13479
13706
  },
13480
13707
  i: noop$1,
@@ -13509,8 +13736,9 @@
13509
13736
  let { infoname = "" } = $$props;
13510
13737
  let { infocontent = "" } = $$props;
13511
13738
  let { showsuccessnotification = false } = $$props;
13512
- let { showresetnotification = false } = $$props;
13739
+ let { showdeletenotification = false } = $$props;
13513
13740
  let { limitname = "" } = $$props;
13741
+ let { playercurrency = "" } = $$props;
13514
13742
  let showPopup = false;
13515
13743
  let showLimits = true;
13516
13744
  let saveChangesConfirmed = false;
@@ -13604,7 +13832,7 @@
13604
13832
  let periodValues = ["Daily", "Weekly", "Monthly"];
13605
13833
 
13606
13834
  const openInfoPopup = () => {
13607
- $$invalidate(6, showPopup = true);
13835
+ $$invalidate(7, showPopup = true);
13608
13836
  };
13609
13837
 
13610
13838
  const switchToLimitsGroupView = () => {
@@ -13639,7 +13867,7 @@
13639
13867
  } else {
13640
13868
  storedData.forEach(data => {
13641
13869
  if (limitsUpdateData.period === data.periodName) {
13642
- $$invalidate(14, limitsUpdateData.amount = data.value, limitsUpdateData);
13870
+ $$invalidate(15, limitsUpdateData.amount = data.value, limitsUpdateData);
13643
13871
  }
13644
13872
  });
13645
13873
  }
@@ -13685,7 +13913,7 @@
13685
13913
  );
13686
13914
  }
13687
13915
 
13688
- $$invalidate(15, hasDifferences = false);
13916
+ $$invalidate(16, hasDifferences = false);
13689
13917
  }
13690
13918
  };
13691
13919
 
@@ -13695,111 +13923,111 @@
13695
13923
  switch (data.amount) {
13696
13924
  case "Custom":
13697
13925
  if (limitname == "Time Limit") {
13698
- $$invalidate(8, minTimeValue = 60);
13926
+ $$invalidate(9, minTimeValue = 60);
13699
13927
 
13700
13928
  if (data.periodName === "Daily") {
13701
- $$invalidate(9, maxTimeValue = 1440);
13929
+ $$invalidate(10, maxTimeValue = 1440);
13702
13930
  } else if (data.periodName == "Weekly") {
13703
- $$invalidate(9, maxTimeValue = 10080);
13931
+ $$invalidate(10, maxTimeValue = 10080);
13704
13932
  } else {
13705
- $$invalidate(9, maxTimeValue = 43200);
13933
+ $$invalidate(10, maxTimeValue = 43200);
13706
13934
  }
13707
13935
 
13708
13936
  if (data.value && regexValidators.time.test(data.value) && (data.value > minTimeValue && data.value <= maxTimeValue)) {
13709
- $$invalidate(12, invalidIndexes[index] = 0, invalidIndexes);
13937
+ $$invalidate(13, invalidIndexes[index] = 0, invalidIndexes);
13710
13938
  let item = referenceArray[index];
13711
13939
 
13712
13940
  if (data.periodName == item.period && data.value == item.amount) {
13713
- $$invalidate(15, hasDifferences = false);
13941
+ $$invalidate(16, hasDifferences = false);
13714
13942
  updateValues(data, referenceArray);
13715
13943
  } else {
13716
- $$invalidate(15, hasDifferences = true);
13944
+ $$invalidate(16, hasDifferences = true);
13717
13945
  }
13718
13946
  } else {
13719
- $$invalidate(12, invalidIndexes[index] = 1, invalidIndexes);
13720
- $$invalidate(15, hasDifferences = false);
13947
+ $$invalidate(13, invalidIndexes[index] = 1, invalidIndexes);
13948
+ $$invalidate(16, hasDifferences = false);
13721
13949
  }
13722
13950
  } else if (data.value && regexValidators.amount.test(data.value)) {
13723
- $$invalidate(12, invalidIndexes[index] = 0, invalidIndexes);
13951
+ $$invalidate(13, invalidIndexes[index] = 0, invalidIndexes);
13724
13952
 
13725
13953
  if (data.periodName == referenceArray[index].period && data.value == referenceArray[index].amount) {
13726
- $$invalidate(15, hasDifferences = hasDifferences ? true : false);
13954
+ $$invalidate(16, hasDifferences = hasDifferences ? true : false);
13727
13955
  updateValues(data, referenceArray);
13728
13956
  } else {
13729
- $$invalidate(15, hasDifferences = true);
13957
+ $$invalidate(16, hasDifferences = true);
13730
13958
  }
13731
13959
 
13732
13960
  // for deposit limits, check if all limits are different from 0 before allowing any data submission
13733
13961
  storedData.forEach(dataSet => {
13734
13962
  if (dataSet.value == 0) {
13735
- $$invalidate(15, hasDifferences = false);
13963
+ $$invalidate(16, hasDifferences = false);
13736
13964
  }
13737
13965
  });
13738
13966
  } else {
13739
- $$invalidate(12, invalidIndexes[index] = 1, invalidIndexes);
13740
- $$invalidate(15, hasDifferences = false);
13967
+ $$invalidate(13, invalidIndexes[index] = 1, invalidIndexes);
13968
+ $$invalidate(16, hasDifferences = false);
13741
13969
  }
13742
13970
  break;
13743
13971
  default:
13744
13972
  if (data.periodName == referenceArray[index].period) {
13745
13973
  updateValues(data, referenceArray);
13746
13974
 
13747
- $$invalidate(15, hasDifferences = data.value == referenceArray[index].amount
13975
+ $$invalidate(16, hasDifferences = data.value == referenceArray[index].amount
13748
13976
  ? false
13749
13977
  : true);
13750
13978
  } else {
13751
- $$invalidate(15, hasDifferences = true);
13979
+ $$invalidate(16, hasDifferences = true);
13752
13980
  }
13753
13981
  // for deposit limits, check if all limits are different from 0 before allowing any data submission
13754
13982
  storedData.forEach(dataSet => {
13755
13983
  if (dataSet.value == 0) {
13756
- $$invalidate(15, hasDifferences = false);
13984
+ $$invalidate(16, hasDifferences = false);
13757
13985
  }
13758
13986
  });
13759
13987
  break;
13760
13988
  }
13761
13989
  } else {
13762
13990
  if (limitsUpdateData.period != referenceArray.period) {
13763
- $$invalidate(15, hasDifferences = true);
13991
+ $$invalidate(16, hasDifferences = true);
13764
13992
 
13765
13993
  if (data.amount == "Custom") {
13766
13994
  if (data.value && regexValidators.amount.test(data.value)) {
13767
- $$invalidate(13, invalidIndex = false);
13995
+ $$invalidate(14, invalidIndex = false);
13768
13996
 
13769
13997
  if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
13770
- $$invalidate(15, hasDifferences = false);
13998
+ $$invalidate(16, hasDifferences = false);
13771
13999
  updateValues(data, referenceArray);
13772
14000
  } else {
13773
- $$invalidate(15, hasDifferences = true);
14001
+ $$invalidate(16, hasDifferences = true);
13774
14002
  }
13775
14003
  } else {
13776
- $$invalidate(13, invalidIndex = true);
13777
- $$invalidate(15, hasDifferences = false);
14004
+ $$invalidate(14, invalidIndex = true);
14005
+ $$invalidate(16, hasDifferences = false);
13778
14006
  }
13779
14007
  }
13780
14008
  } else {
13781
14009
  switch (data.amount) {
13782
14010
  case "Custom":
13783
14011
  if (data.value && regexValidators.amount.test(data.value)) {
13784
- $$invalidate(13, invalidIndex = false);
14012
+ $$invalidate(14, invalidIndex = false);
13785
14013
 
13786
14014
  if (limitsUpdateData.period == referenceArray.period && data.value == referenceArray.amount) {
13787
- $$invalidate(15, hasDifferences = hasDifferences ? true : false);
14015
+ $$invalidate(16, hasDifferences = hasDifferences ? true : false);
13788
14016
  updateValues(data, referenceArray);
13789
14017
  } else {
13790
- $$invalidate(15, hasDifferences = true);
14018
+ $$invalidate(16, hasDifferences = true);
13791
14019
  }
13792
14020
  } else {
13793
- $$invalidate(13, invalidIndex = true);
13794
- $$invalidate(15, hasDifferences = false);
14021
+ $$invalidate(14, invalidIndex = true);
14022
+ $$invalidate(16, hasDifferences = false);
13795
14023
  }
13796
14024
  break;
13797
14025
  default:
13798
14026
  if (limitsUpdateData.period == referenceArray.period) {
13799
14027
  updateValues(data, referenceArray);
13800
- $$invalidate(15, hasDifferences = data.value == referenceArray.amount ? false : true);
14028
+ $$invalidate(16, hasDifferences = data.value == referenceArray.amount ? false : true);
13801
14029
  } else {
13802
- $$invalidate(15, hasDifferences = true);
14030
+ $$invalidate(16, hasDifferences = true);
13803
14031
  }
13804
14032
  break;
13805
14033
  }
@@ -13877,14 +14105,14 @@
13877
14105
  currentLimitType.forEach(defaultValuesData => {
13878
14106
  if (dataSet.period === defaultValuesData.periodName) {
13879
14107
  if (limitname === "Time Limit") {
13880
- $$invalidate(8, minTimeValue = 60);
14108
+ $$invalidate(9, minTimeValue = 60);
13881
14109
 
13882
14110
  if (dataSet.periodName === "Daily") {
13883
- $$invalidate(9, maxTimeValue = 1440);
14111
+ $$invalidate(10, maxTimeValue = 1440);
13884
14112
  } else if (dataSet.periodName == "Weekly") {
13885
- $$invalidate(9, maxTimeValue = 10080);
14113
+ $$invalidate(10, maxTimeValue = 10080);
13886
14114
  } else {
13887
- $$invalidate(9, maxTimeValue = 43200);
14115
+ $$invalidate(10, maxTimeValue = 43200);
13888
14116
  }
13889
14117
  }
13890
14118
 
@@ -13932,12 +14160,12 @@
13932
14160
  ? "wagering limit"
13933
14161
  : "loss limit";
13934
14162
 
13935
- $$invalidate(10, changeLimitsText = `Are you sure you want to change the ${limitType}s?`);
14163
+ $$invalidate(11, changeLimitsText = `Are you sure you want to change the ${limitType}s?`);
13936
14164
  };
13937
14165
 
13938
14166
  const initialLoad = () => {
13939
14167
  setLimitModalTexts();
13940
- $$invalidate(11, isArray = Array.isArray(limitsdata));
14168
+ $$invalidate(12, isArray = Array.isArray(limitsdata));
13941
14169
 
13942
14170
  // add currency EUR by default, if the data does not have a set currency
13943
14171
  if (isArray) {
@@ -13949,10 +14177,10 @@
13949
14177
  }
13950
14178
 
13951
14179
  // used for validation
13952
- $$invalidate(16, updatedLimitValues = JSON.parse(JSON.stringify(limitsdata)));
14180
+ $$invalidate(17, updatedLimitValues = JSON.parse(JSON.stringify(limitsdata)));
13953
14181
 
13954
14182
  // use limitsUpdateData in order to populate select & input fields
13955
- $$invalidate(14, limitsUpdateData = JSON.parse(JSON.stringify(limitsdata)));
14183
+ $$invalidate(15, limitsUpdateData = JSON.parse(JSON.stringify(limitsdata)));
13956
14184
 
13957
14185
  // extra check - if there are values outside the array set, automatically set them to Custom value and populate the appropriate input field
13958
14186
  currentLimitType = limitname === "Wagering Limit"
@@ -13973,23 +14201,23 @@
13973
14201
  if (e.data) {
13974
14202
  switch (e.data.type) {
13975
14203
  case "ClosePlayerAccountGamingLimitsPopup":
13976
- $$invalidate(6, showPopup = false);
14204
+ $$invalidate(7, showPopup = false);
13977
14205
  break;
13978
14206
  case "GamingLimitsConfirmChanges":
13979
14207
  saveChangesConfirmed = true;
13980
14208
  saveLimits();
13981
14209
  break;
13982
14210
  case "CancelGamingLimitsChanges":
13983
- $$invalidate(7, showLimits = false);
14211
+ $$invalidate(8, showLimits = false);
13984
14212
  // rerender select in order to reset select values
13985
14213
  setTimeout(
13986
14214
  () => {
13987
- $$invalidate(7, showLimits = true);
14215
+ $$invalidate(8, showLimits = true);
13988
14216
  },
13989
14217
  10
13990
14218
  );
13991
14219
  initialLoad();
13992
- $$invalidate(15, hasDifferences = false);
14220
+ $$invalidate(16, hasDifferences = false);
13993
14221
  saveChangesConfirmed = false;
13994
14222
  break;
13995
14223
  }
@@ -14009,8 +14237,9 @@
14009
14237
  "infoname",
14010
14238
  "infocontent",
14011
14239
  "showsuccessnotification",
14012
- "showresetnotification",
14013
- "limitname"
14240
+ "showdeletenotification",
14241
+ "limitname",
14242
+ "playercurrency"
14014
14243
  ];
14015
14244
 
14016
14245
  Object.keys($$props).forEach(key => {
@@ -14019,38 +14248,38 @@
14019
14248
 
14020
14249
  function select_change_handler(index) {
14021
14250
  storedData[index].amount = select_value(this);
14022
- $$invalidate(17, storedData);
14023
- $$invalidate(22, lossLimitPredefinedValues);
14251
+ $$invalidate(18, storedData);
14252
+ $$invalidate(23, lossLimitPredefinedValues);
14024
14253
  }
14025
14254
 
14026
14255
  function input_input_handler(index) {
14027
14256
  storedData[index].value = to_number(this.value);
14028
- $$invalidate(17, storedData);
14029
- $$invalidate(22, lossLimitPredefinedValues);
14257
+ $$invalidate(18, storedData);
14258
+ $$invalidate(23, lossLimitPredefinedValues);
14030
14259
  }
14031
14260
 
14032
14261
  function input_input_handler_1(index) {
14033
14262
  storedData[index].value = to_number(this.value);
14034
- $$invalidate(17, storedData);
14035
- $$invalidate(22, lossLimitPredefinedValues);
14263
+ $$invalidate(18, storedData);
14264
+ $$invalidate(23, lossLimitPredefinedValues);
14036
14265
  }
14037
14266
 
14038
14267
  function select_change_handler_1() {
14039
14268
  limitsUpdateData.period = select_value(this);
14040
- $$invalidate(14, limitsUpdateData);
14041
- $$invalidate(23, periodValues);
14269
+ $$invalidate(15, limitsUpdateData);
14270
+ $$invalidate(24, periodValues);
14042
14271
  }
14043
14272
 
14044
14273
  function select_change_handler_2(each_value_2, index) {
14045
14274
  each_value_2[index].amount = select_value(this);
14046
- $$invalidate(17, storedData);
14047
- $$invalidate(22, lossLimitPredefinedValues);
14275
+ $$invalidate(18, storedData);
14276
+ $$invalidate(23, lossLimitPredefinedValues);
14048
14277
  }
14049
14278
 
14050
14279
  function input_input_handler_2(each_value_2, index) {
14051
14280
  each_value_2[index].value = to_number(this.value);
14052
- $$invalidate(17, storedData);
14053
- $$invalidate(22, lossLimitPredefinedValues);
14281
+ $$invalidate(18, storedData);
14282
+ $$invalidate(23, lossLimitPredefinedValues);
14054
14283
  }
14055
14284
 
14056
14285
  const click_handler = () => confirmGamingLimitsChanges();
@@ -14060,8 +14289,9 @@
14060
14289
  if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
14061
14290
  if ("infocontent" in $$props) $$invalidate(2, infocontent = $$props.infocontent);
14062
14291
  if ("showsuccessnotification" in $$props) $$invalidate(3, showsuccessnotification = $$props.showsuccessnotification);
14063
- if ("showresetnotification" in $$props) $$invalidate(4, showresetnotification = $$props.showresetnotification);
14292
+ if ("showdeletenotification" in $$props) $$invalidate(4, showdeletenotification = $$props.showdeletenotification);
14064
14293
  if ("limitname" in $$props) $$invalidate(5, limitname = $$props.limitname);
14294
+ if ("playercurrency" in $$props) $$invalidate(6, playercurrency = $$props.playercurrency);
14065
14295
  };
14066
14296
 
14067
14297
  $$self.$capture_state = () => ({
@@ -14072,8 +14302,9 @@
14072
14302
  infoname,
14073
14303
  infocontent,
14074
14304
  showsuccessnotification,
14075
- showresetnotification,
14305
+ showdeletenotification,
14076
14306
  limitname,
14307
+ playercurrency,
14077
14308
  showPopup,
14078
14309
  showLimits,
14079
14310
  saveChangesConfirmed,
@@ -14118,32 +14349,33 @@
14118
14349
  if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
14119
14350
  if ("infocontent" in $$props) $$invalidate(2, infocontent = $$props.infocontent);
14120
14351
  if ("showsuccessnotification" in $$props) $$invalidate(3, showsuccessnotification = $$props.showsuccessnotification);
14121
- if ("showresetnotification" in $$props) $$invalidate(4, showresetnotification = $$props.showresetnotification);
14352
+ if ("showdeletenotification" in $$props) $$invalidate(4, showdeletenotification = $$props.showdeletenotification);
14122
14353
  if ("limitname" in $$props) $$invalidate(5, limitname = $$props.limitname);
14123
- if ("showPopup" in $$props) $$invalidate(6, showPopup = $$props.showPopup);
14124
- if ("showLimits" in $$props) $$invalidate(7, showLimits = $$props.showLimits);
14354
+ if ("playercurrency" in $$props) $$invalidate(6, playercurrency = $$props.playercurrency);
14355
+ if ("showPopup" in $$props) $$invalidate(7, showPopup = $$props.showPopup);
14356
+ if ("showLimits" in $$props) $$invalidate(8, showLimits = $$props.showLimits);
14125
14357
  if ("saveChangesConfirmed" in $$props) saveChangesConfirmed = $$props.saveChangesConfirmed;
14126
- if ("minTimeValue" in $$props) $$invalidate(8, minTimeValue = $$props.minTimeValue);
14127
- if ("maxTimeValue" in $$props) $$invalidate(9, maxTimeValue = $$props.maxTimeValue);
14128
- if ("changeLimitsText" in $$props) $$invalidate(10, changeLimitsText = $$props.changeLimitsText);
14358
+ if ("minTimeValue" in $$props) $$invalidate(9, minTimeValue = $$props.minTimeValue);
14359
+ if ("maxTimeValue" in $$props) $$invalidate(10, maxTimeValue = $$props.maxTimeValue);
14360
+ if ("changeLimitsText" in $$props) $$invalidate(11, changeLimitsText = $$props.changeLimitsText);
14129
14361
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
14130
- if ("isMobile" in $$props) $$invalidate(18, isMobile = $$props.isMobile);
14131
- if ("isArray" in $$props) $$invalidate(11, isArray = $$props.isArray);
14132
- if ("invalidIndexes" in $$props) $$invalidate(12, invalidIndexes = $$props.invalidIndexes);
14133
- if ("invalidIndex" in $$props) $$invalidate(13, invalidIndex = $$props.invalidIndex);
14134
- if ("successText" in $$props) $$invalidate(19, successText = $$props.successText);
14135
- if ("removeText" in $$props) $$invalidate(20, removeText = $$props.removeText);
14136
- if ("limitsUpdateData" in $$props) $$invalidate(14, limitsUpdateData = $$props.limitsUpdateData);
14362
+ if ("isMobile" in $$props) $$invalidate(19, isMobile = $$props.isMobile);
14363
+ if ("isArray" in $$props) $$invalidate(12, isArray = $$props.isArray);
14364
+ if ("invalidIndexes" in $$props) $$invalidate(13, invalidIndexes = $$props.invalidIndexes);
14365
+ if ("invalidIndex" in $$props) $$invalidate(14, invalidIndex = $$props.invalidIndex);
14366
+ if ("successText" in $$props) $$invalidate(20, successText = $$props.successText);
14367
+ if ("removeText" in $$props) $$invalidate(21, removeText = $$props.removeText);
14368
+ if ("limitsUpdateData" in $$props) $$invalidate(15, limitsUpdateData = $$props.limitsUpdateData);
14137
14369
  if ("currentLimitType" in $$props) currentLimitType = $$props.currentLimitType;
14138
- if ("hasDifferences" in $$props) $$invalidate(15, hasDifferences = $$props.hasDifferences);
14139
- if ("updatedLimitValues" in $$props) $$invalidate(16, updatedLimitValues = $$props.updatedLimitValues);
14370
+ if ("hasDifferences" in $$props) $$invalidate(16, hasDifferences = $$props.hasDifferences);
14371
+ if ("updatedLimitValues" in $$props) $$invalidate(17, updatedLimitValues = $$props.updatedLimitValues);
14140
14372
  if ("validCurrentAmount" in $$props) validCurrentAmount = $$props.validCurrentAmount;
14141
- if ("storedData" in $$props) $$invalidate(17, storedData = $$props.storedData);
14142
- if ("depositPredefinedValues" in $$props) $$invalidate(21, depositPredefinedValues = $$props.depositPredefinedValues);
14373
+ if ("storedData" in $$props) $$invalidate(18, storedData = $$props.storedData);
14374
+ if ("depositPredefinedValues" in $$props) $$invalidate(22, depositPredefinedValues = $$props.depositPredefinedValues);
14143
14375
  if ("wageringLimitPredefinedValues" in $$props) wageringLimitPredefinedValues = $$props.wageringLimitPredefinedValues;
14144
- if ("lossLimitPredefinedValues" in $$props) $$invalidate(22, lossLimitPredefinedValues = $$props.lossLimitPredefinedValues);
14376
+ if ("lossLimitPredefinedValues" in $$props) $$invalidate(23, lossLimitPredefinedValues = $$props.lossLimitPredefinedValues);
14145
14377
  if ("timeLimitPredefinedValues" in $$props) timeLimitPredefinedValues = $$props.timeLimitPredefinedValues;
14146
- if ("periodValues" in $$props) $$invalidate(23, periodValues = $$props.periodValues);
14378
+ if ("periodValues" in $$props) $$invalidate(24, periodValues = $$props.periodValues);
14147
14379
  };
14148
14380
 
14149
14381
  if ($$props && "$$inject" in $$props) {
@@ -14151,8 +14383,8 @@
14151
14383
  }
14152
14384
 
14153
14385
  $$self.$$.update = () => {
14154
- if ($$self.$$.dirty[0] & /*showsuccessnotification, showresetnotification*/ 24) {
14155
- showsuccessnotification && showresetnotification && initialLoad();
14386
+ if ($$self.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/ 24) {
14387
+ showsuccessnotification && showdeletenotification && initialLoad();
14156
14388
  }
14157
14389
 
14158
14390
  if ($$self.$$.dirty[0] & /*limitsdata, infoname, infocontent*/ 7) {
@@ -14165,8 +14397,9 @@
14165
14397
  infoname,
14166
14398
  infocontent,
14167
14399
  showsuccessnotification,
14168
- showresetnotification,
14400
+ showdeletenotification,
14169
14401
  limitname,
14402
+ playercurrency,
14170
14403
  showPopup,
14171
14404
  showLimits,
14172
14405
  minTimeValue,
@@ -14219,8 +14452,9 @@
14219
14452
  infoname: 1,
14220
14453
  infocontent: 2,
14221
14454
  showsuccessnotification: 3,
14222
- showresetnotification: 4,
14223
- limitname: 5
14455
+ showdeletenotification: 4,
14456
+ limitname: 5,
14457
+ playercurrency: 6
14224
14458
  },
14225
14459
  [-1, -1, -1]
14226
14460
  );
@@ -14243,8 +14477,9 @@
14243
14477
  "infoname",
14244
14478
  "infocontent",
14245
14479
  "showsuccessnotification",
14246
- "showresetnotification",
14247
- "limitname"
14480
+ "showdeletenotification",
14481
+ "limitname",
14482
+ "playercurrency"
14248
14483
  ];
14249
14484
  }
14250
14485
 
@@ -14284,12 +14519,12 @@
14284
14519
  flush();
14285
14520
  }
14286
14521
 
14287
- get showresetnotification() {
14522
+ get showdeletenotification() {
14288
14523
  return this.$$.ctx[4];
14289
14524
  }
14290
14525
 
14291
- set showresetnotification(showresetnotification) {
14292
- this.$set({ showresetnotification });
14526
+ set showdeletenotification(showdeletenotification) {
14527
+ this.$set({ showdeletenotification });
14293
14528
  flush();
14294
14529
  }
14295
14530
 
@@ -14301,6 +14536,15 @@
14301
14536
  this.$set({ limitname });
14302
14537
  flush();
14303
14538
  }
14539
+
14540
+ get playercurrency() {
14541
+ return this.$$.ctx[6];
14542
+ }
14543
+
14544
+ set playercurrency(playercurrency) {
14545
+ this.$set({ playercurrency });
14546
+ flush();
14547
+ }
14304
14548
  }
14305
14549
 
14306
14550
  !customElements.get('player-account-gaming-limits-group-edit') && customElements.define('player-account-gaming-limits-group-edit', PlayerAccountGamingLimitsGroupEdit);
@@ -14310,17 +14554,19 @@
14310
14554
 
14311
14555
  function get_each_context_1(ctx, list, i) {
14312
14556
  const child_ctx = ctx.slice();
14313
- child_ctx[29] = list[i];
14557
+ child_ctx[35] = list[i];
14558
+ child_ctx[37] = i;
14314
14559
  return child_ctx;
14315
14560
  }
14316
14561
 
14317
14562
  function get_each_context(ctx, list, i) {
14318
14563
  const child_ctx = ctx.slice();
14319
- child_ctx[29] = list[i];
14564
+ child_ctx[35] = list[i];
14565
+ child_ctx[37] = i;
14320
14566
  return child_ctx;
14321
14567
  }
14322
14568
 
14323
- // (165:0) {:else}
14569
+ // (177:0) {:else}
14324
14570
  function create_else_block(ctx) {
14325
14571
  let div7;
14326
14572
  let div6;
@@ -14333,6 +14579,7 @@
14333
14579
  let span;
14334
14580
  let t3;
14335
14581
  let player_account_gaming_limits_popup;
14582
+ let player_account_gaming_limits_popup_showpopup_value;
14336
14583
  let t4;
14337
14584
  let div5;
14338
14585
  let div3;
@@ -14354,8 +14601,8 @@
14354
14601
 
14355
14602
  let current_block_type = select_block_type_1(ctx, [-1]);
14356
14603
  let if_block0 = current_block_type(ctx);
14357
- let if_block1 = !/*amountIsUnset*/ ctx[5] && !/*limitsdata*/ ctx[0].isModified && create_if_block_2(ctx);
14358
- let if_block2 = /*openLimitsModal*/ ctx[7] && create_if_block_1(ctx);
14604
+ let if_block1 = !/*amountIsUnset*/ ctx[6] && !/*limitsdata*/ ctx[0].isModified && /*changeableDataset*/ ctx[11] && create_if_block_2(ctx);
14605
+ let if_block2 = /*openLimitsModal*/ ctx[8] && create_if_block_1(ctx);
14359
14606
 
14360
14607
  const block = {
14361
14608
  c: function create() {
@@ -14383,31 +14630,31 @@
14383
14630
  if (if_block1) if_block1.c();
14384
14631
  t8 = space();
14385
14632
  if (if_block2) if_block2.c();
14386
- add_location(h5, file, 168, 8, 5992);
14633
+ add_location(h5, file, 180, 8, 6408);
14387
14634
  attr_dev(span, "class", "InfoCardIcon");
14388
- add_location(span, file, 170, 10, 6129);
14389
- set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[4]);
14635
+ add_location(span, file, 182, 10, 6545);
14636
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][0]);
14390
14637
  set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
14391
14638
  set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
14392
- add_location(player_account_gaming_limits_popup, file, 171, 12, 6217);
14393
- attr_dev(div0, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[11] ? "InfoCardIconMobileWrapper" : ""));
14394
- add_location(div0, file, 169, 8, 6039);
14395
- attr_dev(div1, "class", "InfoCardHeader " + (/*isMobile*/ ctx[11] ? "InfoCardMobileHeader" : ""));
14396
- add_location(div1, file, 167, 6, 5913);
14639
+ add_location(player_account_gaming_limits_popup, file, 183, 12, 6642);
14640
+ attr_dev(div0, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[13] ? "InfoCardIconMobileWrapper" : ""));
14641
+ add_location(div0, file, 181, 8, 6455);
14642
+ attr_dev(div1, "class", "InfoCardHeader " + (/*isMobile*/ ctx[13] ? "InfoCardMobileHeader" : ""));
14643
+ add_location(div1, file, 179, 6, 6329);
14397
14644
  attr_dev(div2, "class", "InfoCardTableRow");
14398
- add_location(div2, file, 176, 10, 6448);
14645
+ add_location(div2, file, 189, 10, 6877);
14399
14646
  attr_dev(div3, "class", "InfoCardTableWrapper");
14400
- add_location(div3, file, 175, 8, 6403);
14647
+ add_location(div3, file, 188, 8, 6832);
14401
14648
  attr_dev(button, "class", "InfoCardEditButton");
14402
- add_location(button, file, 260, 10, 10742);
14649
+ add_location(button, file, 283, 10, 12746);
14403
14650
  attr_dev(div4, "class", "InfoCardControlArea");
14404
- add_location(div4, file, 259, 8, 10698);
14651
+ add_location(div4, file, 282, 8, 12702);
14405
14652
  attr_dev(div5, "class", "InfoCard");
14406
- add_location(div5, file, 174, 6, 6372);
14653
+ add_location(div5, file, 187, 6, 6801);
14407
14654
  attr_dev(div6, "class", "InfoCardWrapper");
14408
- add_location(div6, file, 166, 4, 5877);
14655
+ add_location(div6, file, 178, 4, 6293);
14409
14656
  attr_dev(div7, "class", "InfoCardSection");
14410
- add_location(div7, file, 165, 2, 5843);
14657
+ add_location(div7, file, 177, 2, 6259);
14411
14658
  },
14412
14659
  m: function mount(target, anchor) {
14413
14660
  insert_dev(target, div7, anchor);
@@ -14435,8 +14682,8 @@
14435
14682
 
14436
14683
  if (!mounted) {
14437
14684
  dispose = [
14438
- listen_dev(span, "click", prevent_default(/*openInfoPopup*/ ctx[15]), false, true, false),
14439
- listen_dev(button, "click", /*click_handler*/ ctx[16], false, false, false)
14685
+ listen_dev(span, "click", prevent_default(/*click_handler*/ ctx[20]), false, true, false),
14686
+ listen_dev(button, "click", /*click_handler_3*/ ctx[23], false, false, false)
14440
14687
  ];
14441
14688
 
14442
14689
  mounted = true;
@@ -14445,8 +14692,8 @@
14445
14692
  p: function update(ctx, dirty) {
14446
14693
  if (dirty[0] & /*limitsdata, limitname*/ 9 && t0_value !== (t0_value = (/*limitsdata*/ ctx[0] ? /*limitname*/ ctx[3] : "") + "")) set_data_dev(t0, t0_value);
14447
14694
 
14448
- if (dirty[0] & /*showPopup*/ 16) {
14449
- set_custom_element_data(player_account_gaming_limits_popup, "showpopup", /*showPopup*/ ctx[4]);
14695
+ if (dirty[0] & /*showPopup*/ 32 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][0])) {
14696
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
14450
14697
  }
14451
14698
 
14452
14699
  if (dirty[0] & /*infocontent*/ 4) {
@@ -14469,7 +14716,7 @@
14469
14716
  }
14470
14717
  }
14471
14718
 
14472
- if (!/*amountIsUnset*/ ctx[5] && !/*limitsdata*/ ctx[0].isModified) {
14719
+ if (!/*amountIsUnset*/ ctx[6] && !/*limitsdata*/ ctx[0].isModified && /*changeableDataset*/ ctx[11]) {
14473
14720
  if (if_block1) {
14474
14721
  if_block1.p(ctx, dirty);
14475
14722
  } else {
@@ -14482,7 +14729,7 @@
14482
14729
  if_block1 = null;
14483
14730
  }
14484
14731
 
14485
- if (/*openLimitsModal*/ ctx[7]) {
14732
+ if (/*openLimitsModal*/ ctx[8]) {
14486
14733
  if (if_block2) {
14487
14734
  if_block2.p(ctx, dirty);
14488
14735
  } else {
@@ -14509,14 +14756,14 @@
14509
14756
  block,
14510
14757
  id: create_else_block.name,
14511
14758
  type: "else",
14512
- source: "(165:0) {:else}",
14759
+ source: "(177:0) {:else}",
14513
14760
  ctx
14514
14761
  });
14515
14762
 
14516
14763
  return block;
14517
14764
  }
14518
14765
 
14519
- // (163:0) {#if isLoading}
14766
+ // (175:0) {#if isLoading}
14520
14767
  function create_if_block(ctx) {
14521
14768
  let div;
14522
14769
 
@@ -14524,7 +14771,7 @@
14524
14771
  c: function create() {
14525
14772
  div = element("div");
14526
14773
  attr_dev(div, "class", "ModalLoader");
14527
- add_location(div, file, 163, 2, 5801);
14774
+ add_location(div, file, 175, 2, 6217);
14528
14775
  },
14529
14776
  m: function mount(target, anchor) {
14530
14777
  insert_dev(target, div, anchor);
@@ -14539,14 +14786,14 @@
14539
14786
  block,
14540
14787
  id: create_if_block.name,
14541
14788
  type: "if",
14542
- source: "(163:0) {#if isLoading}",
14789
+ source: "(175:0) {#if isLoading}",
14543
14790
  ctx
14544
14791
  });
14545
14792
 
14546
14793
  return block;
14547
14794
  }
14548
14795
 
14549
- // (240:12) {:else}
14796
+ // (263:12) {:else}
14550
14797
  function create_else_block_5(ctx) {
14551
14798
  let div6;
14552
14799
  let div2;
@@ -14576,7 +14823,9 @@
14576
14823
  let div4;
14577
14824
 
14578
14825
  let t8_value = (/*limitsdata*/ ctx[0] && /*limitsdata*/ ctx[0].expiryDate
14579
- ? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
14826
+ ? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
14827
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
14828
+ : moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
14580
14829
  : "N/A") + "";
14581
14830
 
14582
14831
  let t8;
@@ -14601,21 +14850,21 @@
14601
14850
  div4 = element("div");
14602
14851
  t8 = text(t8_value);
14603
14852
  attr_dev(div0, "class", "InfoCardRowTitle");
14604
- add_location(div0, file, 243, 18, 9958);
14853
+ add_location(div0, file, 266, 18, 11835);
14605
14854
  attr_dev(span, "class", "InfoCardCurrency");
14606
- add_location(span, file, 248, 20, 10198);
14855
+ add_location(span, file, 271, 20, 12075);
14607
14856
  attr_dev(div1, "class", "InfoCardRowValue");
14608
- add_location(div1, file, 246, 18, 10090);
14857
+ add_location(div1, file, 269, 18, 11967);
14609
14858
  attr_dev(div2, "class", "InfoCardRow InfoMainRow");
14610
- add_location(div2, file, 242, 16, 9902);
14859
+ add_location(div2, file, 265, 16, 11779);
14611
14860
  attr_dev(div3, "class", "InfoCardRowTitle");
14612
- add_location(div3, file, 252, 18, 10384);
14861
+ add_location(div3, file, 275, 18, 12261);
14613
14862
  attr_dev(div4, "class", "InfoCardRowValue");
14614
- add_location(div4, file, 253, 18, 10454);
14863
+ add_location(div4, file, 276, 18, 12331);
14615
14864
  attr_dev(div5, "class", "InfoCardRow");
14616
- add_location(div5, file, 251, 16, 10340);
14865
+ add_location(div5, file, 274, 16, 12217);
14617
14866
  attr_dev(div6, "class", "InfoCardBox");
14618
- add_location(div6, file, 241, 14, 9860);
14867
+ add_location(div6, file, 264, 14, 11737);
14619
14868
  },
14620
14869
  m: function mount(target, anchor) {
14621
14870
  insert_dev(target, div6, anchor);
@@ -14647,7 +14896,9 @@
14647
14896
  : "") + "")) set_data_dev(t4, t4_value);
14648
14897
 
14649
14898
  if (dirty[0] & /*limitsdata*/ 1 && t8_value !== (t8_value = (/*limitsdata*/ ctx[0] && /*limitsdata*/ ctx[0].expiryDate
14650
- ? moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
14899
+ ? moment(/*limitsdata*/ ctx[0].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
14900
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
14901
+ : moment(/*limitsdata*/ ctx[0].expiryDate).format("D/M/YYYY - h:mm A")
14651
14902
  : "N/A") + "")) set_data_dev(t8, t8_value);
14652
14903
  },
14653
14904
  d: function destroy(detaching) {
@@ -14659,14 +14910,14 @@
14659
14910
  block,
14660
14911
  id: create_else_block_5.name,
14661
14912
  type: "else",
14662
- source: "(240:12) {:else}",
14913
+ source: "(263:12) {:else}",
14663
14914
  ctx
14664
14915
  });
14665
14916
 
14666
14917
  return block;
14667
14918
  }
14668
14919
 
14669
- // (178:12) {#if Array.isArray(limitsdata)}
14920
+ // (191:12) {#if Array.isArray(limitsdata)}
14670
14921
  function create_if_block_3(ctx) {
14671
14922
  let if_block_anchor;
14672
14923
 
@@ -14710,14 +14961,14 @@
14710
14961
  block,
14711
14962
  id: create_if_block_3.name,
14712
14963
  type: "if",
14713
- source: "(178:12) {#if Array.isArray(limitsdata)}",
14964
+ source: "(191:12) {#if Array.isArray(limitsdata)}",
14714
14965
  ctx
14715
14966
  });
14716
14967
 
14717
14968
  return block;
14718
14969
  }
14719
14970
 
14720
- // (213:14) {:else}
14971
+ // (231:14) {:else}
14721
14972
  function create_else_block_3(ctx) {
14722
14973
  let each_1_anchor;
14723
14974
  let each_value_1 = /*limitsdata*/ ctx[0];
@@ -14744,7 +14995,7 @@
14744
14995
  insert_dev(target, each_1_anchor, anchor);
14745
14996
  },
14746
14997
  p: function update(ctx, dirty) {
14747
- if (dirty[0] & /*removeItemLimit, limitsdata, limitname*/ 16393) {
14998
+ if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup, infocontent, infoname, playercurrency, openInfoPopup, currentDate*/ 417855) {
14748
14999
  each_value_1 = /*limitsdata*/ ctx[0];
14749
15000
  validate_each_argument(each_value_1);
14750
15001
  let i;
@@ -14778,14 +15029,14 @@
14778
15029
  block,
14779
15030
  id: create_else_block_3.name,
14780
15031
  type: "else",
14781
- source: "(213:14) {:else}",
15032
+ source: "(231:14) {:else}",
14782
15033
  ctx
14783
15034
  });
14784
15035
 
14785
15036
  return block;
14786
15037
  }
14787
15038
 
14788
- // (180:14) {#if limitname === 'Time Limit'}
15039
+ // (193:14) {#if limitname === 'Time Limit'}
14789
15040
  function create_if_block_4(ctx) {
14790
15041
  let each_1_anchor;
14791
15042
  let each_value = /*limitsdata*/ ctx[0];
@@ -14812,7 +15063,7 @@
14812
15063
  insert_dev(target, each_1_anchor, anchor);
14813
15064
  },
14814
15065
  p: function update(ctx, dirty) {
14815
- if (dirty[0] & /*removeItemLimit, limitsdata, limitname*/ 16393) {
15066
+ if (dirty[0] & /*removeItemLimit, limitsdata, limitname, isMobile, showPopup, infocontent, infoname, openInfoPopup, currentDate*/ 417839) {
14816
15067
  each_value = /*limitsdata*/ ctx[0];
14817
15068
  validate_each_argument(each_value);
14818
15069
  let i;
@@ -14846,14 +15097,14 @@
14846
15097
  block,
14847
15098
  id: create_if_block_4.name,
14848
15099
  type: "if",
14849
- source: "(180:14) {#if limitname === 'Time Limit'}",
15100
+ source: "(193:14) {#if limitname === 'Time Limit'}",
14850
15101
  ctx
14851
15102
  });
14852
15103
 
14853
15104
  return block;
14854
15105
  }
14855
15106
 
14856
- // (229:24) {:else}
15107
+ // (247:24) {:else}
14857
15108
  function create_else_block_4(ctx) {
14858
15109
  let div;
14859
15110
 
@@ -14862,7 +15113,7 @@
14862
15113
  div = element("div");
14863
15114
  div.textContent = "N/A";
14864
15115
  attr_dev(div, "class", "InfoCardRowValue");
14865
- add_location(div, file, 229, 26, 9403);
15116
+ add_location(div, file, 247, 26, 10679);
14866
15117
  },
14867
15118
  m: function mount(target, anchor) {
14868
15119
  insert_dev(target, div, anchor);
@@ -14877,19 +15128,21 @@
14877
15128
  block,
14878
15129
  id: create_else_block_4.name,
14879
15130
  type: "else",
14880
- source: "(229:24) {:else}",
15131
+ source: "(247:24) {:else}",
14881
15132
  ctx
14882
15133
  });
14883
15134
 
14884
15135
  return block;
14885
15136
  }
14886
15137
 
14887
- // (227:24) {#if itemInfo.expiryDate}
14888
- function create_if_block_10(ctx) {
15138
+ // (245:24) {#if itemInfo.expiryDate}
15139
+ function create_if_block_12(ctx) {
14889
15140
  let div;
14890
15141
 
14891
- let t_value = (/*itemInfo*/ ctx[29]
14892
- ? moment(/*itemInfo*/ ctx[29].expiryDate).format("D/M/YYYY - h:mm A")
15142
+ let t_value = (/*itemInfo*/ ctx[35]
15143
+ ? moment(/*itemInfo*/ ctx[35].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
15144
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
15145
+ : moment(/*itemInfo*/ ctx[35].expiryDate).format("D/M/YYYY - h:mm A")
14893
15146
  : "N/A") + "";
14894
15147
 
14895
15148
  let t;
@@ -14899,15 +15152,17 @@
14899
15152
  div = element("div");
14900
15153
  t = text(t_value);
14901
15154
  attr_dev(div, "class", "InfoCardRowValue");
14902
- add_location(div, file, 227, 26, 9232);
15155
+ add_location(div, file, 245, 26, 10383);
14903
15156
  },
14904
15157
  m: function mount(target, anchor) {
14905
15158
  insert_dev(target, div, anchor);
14906
15159
  append_dev(div, t);
14907
15160
  },
14908
15161
  p: function update(ctx, dirty) {
14909
- if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[29]
14910
- ? moment(/*itemInfo*/ ctx[29].expiryDate).format("D/M/YYYY - h:mm A")
15162
+ if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[35]
15163
+ ? moment(/*itemInfo*/ ctx[35].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
15164
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
15165
+ : moment(/*itemInfo*/ ctx[35].expiryDate).format("D/M/YYYY - h:mm A")
14911
15166
  : "N/A") + "")) set_data_dev(t, t_value);
14912
15167
  },
14913
15168
  d: function destroy(detaching) {
@@ -14917,17 +15172,102 @@
14917
15172
 
14918
15173
  dispatch_dev("SvelteRegisterBlock", {
14919
15174
  block,
14920
- id: create_if_block_10.name,
15175
+ id: create_if_block_12.name,
14921
15176
  type: "if",
14922
- source: "(227:24) {#if itemInfo.expiryDate}",
15177
+ source: "(245:24) {#if itemInfo.expiryDate}",
14923
15178
  ctx
14924
15179
  });
14925
15180
 
14926
15181
  return block;
14927
15182
  }
14928
15183
 
14929
- // (234:20) {#if itemInfo.amount != 'No limit'}
14930
- function create_if_block_9(ctx) {
15184
+ // (254:85)
15185
+ function create_if_block_11(ctx) {
15186
+ let div;
15187
+ let span;
15188
+ let t1;
15189
+ let player_account_gaming_limits_popup;
15190
+ let player_account_gaming_limits_popup_showpopup_value;
15191
+ let player_account_gaming_limits_popup_iteminfoamount_value;
15192
+ let mounted;
15193
+ let dispose;
15194
+
15195
+ function click_handler_2() {
15196
+ return /*click_handler_2*/ ctx[22](/*index*/ ctx[37]);
15197
+ }
15198
+
15199
+ const block = {
15200
+ c: function create() {
15201
+ div = element("div");
15202
+ span = element("span");
15203
+ span.textContent = "i";
15204
+ t1 = space();
15205
+ player_account_gaming_limits_popup = element("player-account-gaming-limits-popup");
15206
+ attr_dev(span, "class", "InfoCardIcon");
15207
+ add_location(span, file, 255, 24, 11219);
15208
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][/*index*/ ctx[37] + 1]);
15209
+ set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
15210
+ set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
15211
+ set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateAmount);
15212
+ set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", /*playercurrency*/ ctx[4]);
15213
+ add_location(player_account_gaming_limits_popup, file, 256, 26, 11338);
15214
+ attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[13] ? "InfoCardIconMobileWrapper" : ""));
15215
+ add_location(div, file, 254, 22, 11115);
15216
+ },
15217
+ m: function mount(target, anchor) {
15218
+ insert_dev(target, div, anchor);
15219
+ append_dev(div, span);
15220
+ append_dev(div, t1);
15221
+ append_dev(div, player_account_gaming_limits_popup);
15222
+
15223
+ if (!mounted) {
15224
+ dispose = listen_dev(span, "click", prevent_default(click_handler_2), false, true, false);
15225
+ mounted = true;
15226
+ }
15227
+ },
15228
+ p: function update(new_ctx, dirty) {
15229
+ ctx = new_ctx;
15230
+
15231
+ if (dirty[0] & /*showPopup*/ 32 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][/*index*/ ctx[37] + 1])) {
15232
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
15233
+ }
15234
+
15235
+ if (dirty[0] & /*infocontent*/ 4) {
15236
+ set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
15237
+ }
15238
+
15239
+ if (dirty[0] & /*infoname*/ 2) {
15240
+ set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
15241
+ }
15242
+
15243
+ if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateAmount)) {
15244
+ set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value);
15245
+ }
15246
+
15247
+ if (dirty[0] & /*playercurrency*/ 16) {
15248
+ set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", /*playercurrency*/ ctx[4]);
15249
+ }
15250
+ },
15251
+ d: function destroy(detaching) {
15252
+ if (detaching) detach_dev(div);
15253
+ mounted = false;
15254
+ dispose();
15255
+ }
15256
+ };
15257
+
15258
+ dispatch_dev("SvelteRegisterBlock", {
15259
+ block,
15260
+ id: create_if_block_11.name,
15261
+ type: "if",
15262
+ source: "(254:85) ",
15263
+ ctx
15264
+ });
15265
+
15266
+ return block;
15267
+ }
15268
+
15269
+ // (252:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}
15270
+ function create_if_block_10(ctx) {
14931
15271
  let div;
14932
15272
  let span;
14933
15273
  let mounted;
@@ -14937,9 +15277,9 @@
14937
15277
  c: function create() {
14938
15278
  div = element("div");
14939
15279
  span = element("span");
14940
- add_location(span, file, 234, 102, 9687);
15280
+ add_location(span, file, 252, 102, 10987);
14941
15281
  attr_dev(div, "class", "InfoCardRemoveIcon");
14942
- add_location(div, file, 234, 22, 9607);
15282
+ add_location(div, file, 252, 22, 10907);
14943
15283
  },
14944
15284
  m: function mount(target, anchor) {
14945
15285
  insert_dev(target, div, anchor);
@@ -14950,7 +15290,7 @@
14950
15290
  div,
14951
15291
  "click",
14952
15292
  function () {
14953
- if (is_function(/*removeItemLimit*/ ctx[14](/*itemInfo*/ ctx[29], /*limitname*/ ctx[3]))) /*removeItemLimit*/ ctx[14](/*itemInfo*/ ctx[29], /*limitname*/ ctx[3]).apply(this, arguments);
15293
+ if (is_function(/*removeItemLimit*/ ctx[17](/*itemInfo*/ ctx[35], /*limitname*/ ctx[3]))) /*removeItemLimit*/ ctx[17](/*itemInfo*/ ctx[35], /*limitname*/ ctx[3]).apply(this, arguments);
14954
15294
  },
14955
15295
  false,
14956
15296
  false,
@@ -14972,32 +15312,32 @@
14972
15312
 
14973
15313
  dispatch_dev("SvelteRegisterBlock", {
14974
15314
  block,
14975
- id: create_if_block_9.name,
15315
+ id: create_if_block_10.name,
14976
15316
  type: "if",
14977
- source: "(234:20) {#if itemInfo.amount != 'No limit'}",
15317
+ source: "(252:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}",
14978
15318
  ctx
14979
15319
  });
14980
15320
 
14981
15321
  return block;
14982
15322
  }
14983
15323
 
14984
- // (215:16) {#each limitsdata as itemInfo}
15324
+ // (233:16) {#each limitsdata as itemInfo, index}
14985
15325
  function create_each_block_1(ctx) {
14986
15326
  let div6;
14987
15327
  let div5;
14988
15328
  let div2;
14989
15329
  let div0;
14990
- let t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].period : "") + "";
15330
+ let t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].period : "") + "";
14991
15331
  let t0;
14992
15332
  let t1;
14993
15333
  let div1;
14994
- let t2_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].amount : 0) + "";
15334
+ let t2_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].amount : 0) + "";
14995
15335
  let t2;
14996
15336
  let t3;
14997
15337
  let span;
14998
15338
 
14999
- let t4_value = (/*itemInfo*/ ctx[29]
15000
- ? /*itemInfo*/ ctx[29].currency
15339
+ let t4_value = (/*itemInfo*/ ctx[35]
15340
+ ? /*itemInfo*/ ctx[35].currency
15001
15341
  : "") + "";
15002
15342
 
15003
15343
  let t4;
@@ -15008,14 +15348,21 @@
15008
15348
  let t8;
15009
15349
  let t9;
15010
15350
 
15011
- function select_block_type_5(ctx, dirty) {
15012
- if (/*itemInfo*/ ctx[29].expiryDate) return create_if_block_10;
15351
+ function select_block_type_6(ctx, dirty) {
15352
+ if (/*itemInfo*/ ctx[35].expiryDate) return create_if_block_12;
15013
15353
  return create_else_block_4;
15014
15354
  }
15015
15355
 
15016
- let current_block_type = select_block_type_5(ctx);
15356
+ let current_block_type = select_block_type_6(ctx);
15017
15357
  let if_block0 = current_block_type(ctx);
15018
- let if_block1 = /*itemInfo*/ ctx[29].amount != "No limit" && create_if_block_9(ctx);
15358
+
15359
+ function select_block_type_7(ctx, dirty) {
15360
+ if (/*itemInfo*/ ctx[35].amount != "No limit" && !/*itemInfo*/ ctx[35].isModified) return create_if_block_10;
15361
+ if (/*itemInfo*/ ctx[35].amount != "No limit" && /*itemInfo*/ ctx[35].isModified) return create_if_block_11;
15362
+ }
15363
+
15364
+ let current_block_type_1 = select_block_type_7(ctx);
15365
+ let if_block1 = current_block_type_1 && current_block_type_1(ctx);
15019
15366
 
15020
15367
  const block = {
15021
15368
  c: function create() {
@@ -15040,21 +15387,21 @@
15040
15387
  if (if_block1) if_block1.c();
15041
15388
  t9 = space();
15042
15389
  attr_dev(div0, "class", "InfoCardRowTitle");
15043
- add_location(div0, file, 218, 24, 8688);
15390
+ add_location(div0, file, 236, 24, 9839);
15044
15391
  attr_dev(span, "class", "InfoCardCurrency");
15045
- add_location(span, file, 221, 26, 8898);
15392
+ add_location(span, file, 239, 26, 10049);
15046
15393
  attr_dev(div1, "class", "InfoCardRowValue");
15047
- add_location(div1, file, 219, 24, 8782);
15394
+ add_location(div1, file, 237, 24, 9933);
15048
15395
  attr_dev(div2, "class", "InfoCardRow InfoMainRow");
15049
- add_location(div2, file, 217, 22, 8626);
15396
+ add_location(div2, file, 235, 22, 9777);
15050
15397
  attr_dev(div3, "class", "InfoCardRowTitle");
15051
- add_location(div3, file, 225, 24, 9104);
15398
+ add_location(div3, file, 243, 24, 10255);
15052
15399
  attr_dev(div4, "class", "InfoCardRow");
15053
- add_location(div4, file, 224, 22, 9054);
15400
+ add_location(div4, file, 242, 22, 10205);
15054
15401
  attr_dev(div5, "class", "InfoCardRowContainer");
15055
- add_location(div5, file, 216, 20, 8569);
15402
+ add_location(div5, file, 234, 20, 9720);
15056
15403
  attr_dev(div6, "class", "InfoCardBox InfoCardMultipleItems");
15057
- add_location(div6, file, 215, 18, 8501);
15404
+ add_location(div6, file, 233, 18, 9652);
15058
15405
  },
15059
15406
  m: function mount(target, anchor) {
15060
15407
  insert_dev(target, div6, anchor);
@@ -15078,14 +15425,14 @@
15078
15425
  append_dev(div6, t9);
15079
15426
  },
15080
15427
  p: function update(ctx, dirty) {
15081
- if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].period : "") + "")) set_data_dev(t0, t0_value);
15082
- if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].amount : 0) + "")) set_data_dev(t2, t2_value);
15428
+ if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].period : "") + "")) set_data_dev(t0, t0_value);
15429
+ if (dirty[0] & /*limitsdata*/ 1 && t2_value !== (t2_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].amount : 0) + "")) set_data_dev(t2, t2_value);
15083
15430
 
15084
- if (dirty[0] & /*limitsdata*/ 1 && t4_value !== (t4_value = (/*itemInfo*/ ctx[29]
15085
- ? /*itemInfo*/ ctx[29].currency
15431
+ if (dirty[0] & /*limitsdata*/ 1 && t4_value !== (t4_value = (/*itemInfo*/ ctx[35]
15432
+ ? /*itemInfo*/ ctx[35].currency
15086
15433
  : "") + "")) set_data_dev(t4, t4_value);
15087
15434
 
15088
- if (current_block_type === (current_block_type = select_block_type_5(ctx)) && if_block0) {
15435
+ if (current_block_type === (current_block_type = select_block_type_6(ctx)) && if_block0) {
15089
15436
  if_block0.p(ctx, dirty);
15090
15437
  } else {
15091
15438
  if_block0.d(1);
@@ -15097,23 +15444,25 @@
15097
15444
  }
15098
15445
  }
15099
15446
 
15100
- if (/*itemInfo*/ ctx[29].amount != "No limit") {
15447
+ if (current_block_type_1 === (current_block_type_1 = select_block_type_7(ctx)) && if_block1) {
15448
+ if_block1.p(ctx, dirty);
15449
+ } else {
15450
+ if (if_block1) if_block1.d(1);
15451
+ if_block1 = current_block_type_1 && current_block_type_1(ctx);
15452
+
15101
15453
  if (if_block1) {
15102
- if_block1.p(ctx, dirty);
15103
- } else {
15104
- if_block1 = create_if_block_9(ctx);
15105
15454
  if_block1.c();
15106
15455
  if_block1.m(div6, t9);
15107
15456
  }
15108
- } else if (if_block1) {
15109
- if_block1.d(1);
15110
- if_block1 = null;
15111
15457
  }
15112
15458
  },
15113
15459
  d: function destroy(detaching) {
15114
15460
  if (detaching) detach_dev(div6);
15115
15461
  if_block0.d();
15116
- if (if_block1) if_block1.d();
15462
+
15463
+ if (if_block1) {
15464
+ if_block1.d();
15465
+ }
15117
15466
  }
15118
15467
  };
15119
15468
 
@@ -15121,14 +15470,14 @@
15121
15470
  block,
15122
15471
  id: create_each_block_1.name,
15123
15472
  type: "each",
15124
- source: "(215:16) {#each limitsdata as itemInfo}",
15473
+ source: "(233:16) {#each limitsdata as itemInfo, index}",
15125
15474
  ctx
15126
15475
  });
15127
15476
 
15128
15477
  return block;
15129
15478
  }
15130
15479
 
15131
- // (193:26) {:else}
15480
+ // (206:26) {:else}
15132
15481
  function create_else_block_2(ctx) {
15133
15482
  let span;
15134
15483
 
@@ -15137,7 +15486,7 @@
15137
15486
  span = element("span");
15138
15487
  span.textContent = "No limit";
15139
15488
  attr_dev(span, "class", "InfoCardCurrency");
15140
- add_location(span, file, 193, 28, 7410);
15489
+ add_location(span, file, 206, 28, 7846);
15141
15490
  },
15142
15491
  m: function mount(target, anchor) {
15143
15492
  insert_dev(target, span, anchor);
@@ -15152,20 +15501,20 @@
15152
15501
  block,
15153
15502
  id: create_else_block_2.name,
15154
15503
  type: "else",
15155
- source: "(193:26) {:else}",
15504
+ source: "(206:26) {:else}",
15156
15505
  ctx
15157
15506
  });
15158
15507
 
15159
15508
  return block;
15160
15509
  }
15161
15510
 
15162
- // (188:26) {#if itemInfo.amount !== 0}
15163
- function create_if_block_7(ctx) {
15164
- let t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].amount : 0) + "";
15511
+ // (201:26) {#if itemInfo.amount !== 0}
15512
+ function create_if_block_8(ctx) {
15513
+ let t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].amount : 0) + "";
15165
15514
  let t0;
15166
15515
  let t1;
15167
15516
  let if_block_anchor;
15168
- let if_block = /*itemInfo*/ ctx[29].amount != "No limit" && create_if_block_8(ctx);
15517
+ let if_block = /*itemInfo*/ ctx[35].amount != "No limit" && create_if_block_9(ctx);
15169
15518
 
15170
15519
  const block = {
15171
15520
  c: function create() {
@@ -15181,11 +15530,11 @@
15181
15530
  insert_dev(target, if_block_anchor, anchor);
15182
15531
  },
15183
15532
  p: function update(ctx, dirty) {
15184
- if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].amount : 0) + "")) set_data_dev(t0, t0_value);
15533
+ if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].amount : 0) + "")) set_data_dev(t0, t0_value);
15185
15534
 
15186
- if (/*itemInfo*/ ctx[29].amount != "No limit") {
15535
+ if (/*itemInfo*/ ctx[35].amount != "No limit") {
15187
15536
  if (if_block) ; else {
15188
- if_block = create_if_block_8(ctx);
15537
+ if_block = create_if_block_9(ctx);
15189
15538
  if_block.c();
15190
15539
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
15191
15540
  }
@@ -15204,17 +15553,17 @@
15204
15553
 
15205
15554
  dispatch_dev("SvelteRegisterBlock", {
15206
15555
  block,
15207
- id: create_if_block_7.name,
15556
+ id: create_if_block_8.name,
15208
15557
  type: "if",
15209
- source: "(188:26) {#if itemInfo.amount !== 0}",
15558
+ source: "(201:26) {#if itemInfo.amount !== 0}",
15210
15559
  ctx
15211
15560
  });
15212
15561
 
15213
15562
  return block;
15214
15563
  }
15215
15564
 
15216
- // (190:28) {#if itemInfo.amount != 'No limit'}
15217
- function create_if_block_8(ctx) {
15565
+ // (203:28) {#if itemInfo.amount != 'No limit'}
15566
+ function create_if_block_9(ctx) {
15218
15567
  let span;
15219
15568
 
15220
15569
  const block = {
@@ -15222,7 +15571,7 @@
15222
15571
  span = element("span");
15223
15572
  span.textContent = "minutes";
15224
15573
  attr_dev(span, "class", "InfoCardCurrency");
15225
- add_location(span, file, 190, 30, 7268);
15574
+ add_location(span, file, 203, 30, 7704);
15226
15575
  },
15227
15576
  m: function mount(target, anchor) {
15228
15577
  insert_dev(target, span, anchor);
@@ -15234,16 +15583,16 @@
15234
15583
 
15235
15584
  dispatch_dev("SvelteRegisterBlock", {
15236
15585
  block,
15237
- id: create_if_block_8.name,
15586
+ id: create_if_block_9.name,
15238
15587
  type: "if",
15239
- source: "(190:28) {#if itemInfo.amount != 'No limit'}",
15588
+ source: "(203:28) {#if itemInfo.amount != 'No limit'}",
15240
15589
  ctx
15241
15590
  });
15242
15591
 
15243
15592
  return block;
15244
15593
  }
15245
15594
 
15246
- // (203:24) {:else}
15595
+ // (216:24) {:else}
15247
15596
  function create_else_block_1(ctx) {
15248
15597
  let div;
15249
15598
 
@@ -15252,7 +15601,7 @@
15252
15601
  div = element("div");
15253
15602
  div.textContent = "N/A";
15254
15603
  attr_dev(div, "class", "InfoCardRowValue");
15255
- add_location(div, file, 203, 26, 7996);
15604
+ add_location(div, file, 216, 26, 8557);
15256
15605
  },
15257
15606
  m: function mount(target, anchor) {
15258
15607
  insert_dev(target, div, anchor);
@@ -15267,19 +15616,21 @@
15267
15616
  block,
15268
15617
  id: create_else_block_1.name,
15269
15618
  type: "else",
15270
- source: "(203:24) {:else}",
15619
+ source: "(216:24) {:else}",
15271
15620
  ctx
15272
15621
  });
15273
15622
 
15274
15623
  return block;
15275
15624
  }
15276
15625
 
15277
- // (201:24) {#if itemInfo.expiryDate}
15278
- function create_if_block_6(ctx) {
15626
+ // (214:24) {#if itemInfo.expiryDate}
15627
+ function create_if_block_7(ctx) {
15279
15628
  let div;
15280
15629
 
15281
- let t_value = (/*itemInfo*/ ctx[29]
15282
- ? moment(/*itemInfo*/ ctx[29].expiryDate).format("D/M/YYYY - h:mm A")
15630
+ let t_value = (/*itemInfo*/ ctx[35]
15631
+ ? moment(/*itemInfo*/ ctx[35].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
15632
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
15633
+ : moment(/*itemInfo*/ ctx[35].expiryDate).format("D/M/YYYY - h:mm A")
15283
15634
  : "N/A") + "";
15284
15635
 
15285
15636
  let t;
@@ -15289,15 +15640,17 @@
15289
15640
  div = element("div");
15290
15641
  t = text(t_value);
15291
15642
  attr_dev(div, "class", "InfoCardRowValue");
15292
- add_location(div, file, 201, 26, 7825);
15643
+ add_location(div, file, 214, 26, 8261);
15293
15644
  },
15294
15645
  m: function mount(target, anchor) {
15295
15646
  insert_dev(target, div, anchor);
15296
15647
  append_dev(div, t);
15297
15648
  },
15298
15649
  p: function update(ctx, dirty) {
15299
- if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[29]
15300
- ? moment(/*itemInfo*/ ctx[29].expiryDate).format("D/M/YYYY - h:mm A")
15650
+ if (dirty[0] & /*limitsdata*/ 1 && t_value !== (t_value = (/*itemInfo*/ ctx[35]
15651
+ ? moment(/*itemInfo*/ ctx[35].expiryDate).year() > /*currentDate*/ ctx[14].year() + 30
15652
+ ? /*currentDate*/ ctx[14].add(5, "years").format("D/M/YYYY - h:mm A")
15653
+ : moment(/*itemInfo*/ ctx[35].expiryDate).format("D/M/YYYY - h:mm A")
15301
15654
  : "N/A") + "")) set_data_dev(t, t_value);
15302
15655
  },
15303
15656
  d: function destroy(detaching) {
@@ -15305,18 +15658,99 @@
15305
15658
  }
15306
15659
  };
15307
15660
 
15661
+ dispatch_dev("SvelteRegisterBlock", {
15662
+ block,
15663
+ id: create_if_block_7.name,
15664
+ type: "if",
15665
+ source: "(214:24) {#if itemInfo.expiryDate}",
15666
+ ctx
15667
+ });
15668
+
15669
+ return block;
15670
+ }
15671
+
15672
+ // (223:85)
15673
+ function create_if_block_6(ctx) {
15674
+ let div;
15675
+ let span;
15676
+ let t1;
15677
+ let player_account_gaming_limits_popup;
15678
+ let player_account_gaming_limits_popup_showpopup_value;
15679
+ let player_account_gaming_limits_popup_iteminfoamount_value;
15680
+ let mounted;
15681
+ let dispose;
15682
+
15683
+ function click_handler_1() {
15684
+ return /*click_handler_1*/ ctx[21](/*index*/ ctx[37]);
15685
+ }
15686
+
15687
+ const block = {
15688
+ c: function create() {
15689
+ div = element("div");
15690
+ span = element("span");
15691
+ span.textContent = "i";
15692
+ t1 = space();
15693
+ player_account_gaming_limits_popup = element("player-account-gaming-limits-popup");
15694
+ attr_dev(span, "class", "InfoCardIcon");
15695
+ add_location(span, file, 224, 24, 9097);
15696
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][/*index*/ ctx[37] + 1]);
15697
+ set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
15698
+ set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
15699
+ set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateMinutes);
15700
+ set_custom_element_data(player_account_gaming_limits_popup, "playercurrency", "minutes");
15701
+ add_location(player_account_gaming_limits_popup, file, 225, 26, 9216);
15702
+ attr_dev(div, "class", "InfoCardIconWrapper " + (/*isMobile*/ ctx[13] ? "InfoCardIconMobileWrapper" : ""));
15703
+ add_location(div, file, 223, 22, 8993);
15704
+ },
15705
+ m: function mount(target, anchor) {
15706
+ insert_dev(target, div, anchor);
15707
+ append_dev(div, span);
15708
+ append_dev(div, t1);
15709
+ append_dev(div, player_account_gaming_limits_popup);
15710
+
15711
+ if (!mounted) {
15712
+ dispose = listen_dev(span, "click", prevent_default(click_handler_1), false, true, false);
15713
+ mounted = true;
15714
+ }
15715
+ },
15716
+ p: function update(new_ctx, dirty) {
15717
+ ctx = new_ctx;
15718
+
15719
+ if (dirty[0] & /*showPopup*/ 32 && player_account_gaming_limits_popup_showpopup_value !== (player_account_gaming_limits_popup_showpopup_value = /*showPopup*/ ctx[5][/*index*/ ctx[37] + 1])) {
15720
+ set_custom_element_data(player_account_gaming_limits_popup, "showpopup", player_account_gaming_limits_popup_showpopup_value);
15721
+ }
15722
+
15723
+ if (dirty[0] & /*infocontent*/ 4) {
15724
+ set_custom_element_data(player_account_gaming_limits_popup, "infocontent", /*infocontent*/ ctx[2]);
15725
+ }
15726
+
15727
+ if (dirty[0] & /*infoname*/ 2) {
15728
+ set_custom_element_data(player_account_gaming_limits_popup, "infoname", /*infoname*/ ctx[1]);
15729
+ }
15730
+
15731
+ if (dirty[0] & /*limitsdata*/ 1 && player_account_gaming_limits_popup_iteminfoamount_value !== (player_account_gaming_limits_popup_iteminfoamount_value = /*itemInfo*/ ctx[35].updateMinutes)) {
15732
+ set_custom_element_data(player_account_gaming_limits_popup, "iteminfoamount", player_account_gaming_limits_popup_iteminfoamount_value);
15733
+ }
15734
+ },
15735
+ d: function destroy(detaching) {
15736
+ if (detaching) detach_dev(div);
15737
+ mounted = false;
15738
+ dispose();
15739
+ }
15740
+ };
15741
+
15308
15742
  dispatch_dev("SvelteRegisterBlock", {
15309
15743
  block,
15310
15744
  id: create_if_block_6.name,
15311
15745
  type: "if",
15312
- source: "(201:24) {#if itemInfo.expiryDate}",
15746
+ source: "(223:85) ",
15313
15747
  ctx
15314
15748
  });
15315
15749
 
15316
15750
  return block;
15317
15751
  }
15318
15752
 
15319
- // (208:20) {#if itemInfo.amount != 'No limit'}
15753
+ // (221:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}
15320
15754
  function create_if_block_5(ctx) {
15321
15755
  let div;
15322
15756
  let span;
@@ -15327,9 +15761,9 @@
15327
15761
  c: function create() {
15328
15762
  div = element("div");
15329
15763
  span = element("span");
15330
- add_location(span, file, 208, 102, 8280);
15764
+ add_location(span, file, 221, 102, 8865);
15331
15765
  attr_dev(div, "class", "InfoCardRemoveIcon");
15332
- add_location(div, file, 208, 22, 8200);
15766
+ add_location(div, file, 221, 22, 8785);
15333
15767
  },
15334
15768
  m: function mount(target, anchor) {
15335
15769
  insert_dev(target, div, anchor);
@@ -15340,7 +15774,7 @@
15340
15774
  div,
15341
15775
  "click",
15342
15776
  function () {
15343
- if (is_function(/*removeItemLimit*/ ctx[14](/*itemInfo*/ ctx[29], /*limitname*/ ctx[3]))) /*removeItemLimit*/ ctx[14](/*itemInfo*/ ctx[29], /*limitname*/ ctx[3]).apply(this, arguments);
15777
+ if (is_function(/*removeItemLimit*/ ctx[17](/*itemInfo*/ ctx[35], /*limitname*/ ctx[3]))) /*removeItemLimit*/ ctx[17](/*itemInfo*/ ctx[35], /*limitname*/ ctx[3]).apply(this, arguments);
15344
15778
  },
15345
15779
  false,
15346
15780
  false,
@@ -15364,20 +15798,20 @@
15364
15798
  block,
15365
15799
  id: create_if_block_5.name,
15366
15800
  type: "if",
15367
- source: "(208:20) {#if itemInfo.amount != 'No limit'}",
15801
+ source: "(221:20) {#if itemInfo.amount != 'No limit' && !itemInfo.isModified}",
15368
15802
  ctx
15369
15803
  });
15370
15804
 
15371
15805
  return block;
15372
15806
  }
15373
15807
 
15374
- // (181:16) {#each limitsdata as itemInfo}
15808
+ // (194:16) {#each limitsdata as itemInfo, index}
15375
15809
  function create_each_block(ctx) {
15376
15810
  let div6;
15377
15811
  let div5;
15378
15812
  let div2;
15379
15813
  let div0;
15380
- let t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].period : "") + "";
15814
+ let t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].period : "") + "";
15381
15815
  let t0;
15382
15816
  let t1;
15383
15817
  let div1;
@@ -15389,7 +15823,7 @@
15389
15823
  let t6;
15390
15824
 
15391
15825
  function select_block_type_3(ctx, dirty) {
15392
- if (/*itemInfo*/ ctx[29].amount !== 0) return create_if_block_7;
15826
+ if (/*itemInfo*/ ctx[35].amount !== 0) return create_if_block_8;
15393
15827
  return create_else_block_2;
15394
15828
  }
15395
15829
 
@@ -15397,13 +15831,20 @@
15397
15831
  let if_block0 = current_block_type(ctx);
15398
15832
 
15399
15833
  function select_block_type_4(ctx, dirty) {
15400
- if (/*itemInfo*/ ctx[29].expiryDate) return create_if_block_6;
15834
+ if (/*itemInfo*/ ctx[35].expiryDate) return create_if_block_7;
15401
15835
  return create_else_block_1;
15402
15836
  }
15403
15837
 
15404
15838
  let current_block_type_1 = select_block_type_4(ctx);
15405
15839
  let if_block1 = current_block_type_1(ctx);
15406
- let if_block2 = /*itemInfo*/ ctx[29].amount != "No limit" && create_if_block_5(ctx);
15840
+
15841
+ function select_block_type_5(ctx, dirty) {
15842
+ if (/*itemInfo*/ ctx[35].amount != "No limit" && !/*itemInfo*/ ctx[35].isModified) return create_if_block_5;
15843
+ if (/*itemInfo*/ ctx[35].amount != "No limit" && /*itemInfo*/ ctx[35].isModified) return create_if_block_6;
15844
+ }
15845
+
15846
+ let current_block_type_2 = select_block_type_5(ctx);
15847
+ let if_block2 = current_block_type_2 && current_block_type_2(ctx);
15407
15848
 
15408
15849
  const block = {
15409
15850
  c: function create() {
@@ -15425,19 +15866,19 @@
15425
15866
  if (if_block2) if_block2.c();
15426
15867
  t6 = space();
15427
15868
  attr_dev(div0, "class", "InfoCardRowTitle");
15428
- add_location(div0, file, 184, 24, 6856);
15869
+ add_location(div0, file, 197, 24, 7292);
15429
15870
  attr_dev(div1, "class", "InfoCardRowValue");
15430
- add_location(div1, file, 185, 24, 6950);
15871
+ add_location(div1, file, 198, 24, 7386);
15431
15872
  attr_dev(div2, "class", "InfoCardRow InfoMainRow");
15432
- add_location(div2, file, 183, 22, 6794);
15873
+ add_location(div2, file, 196, 22, 7230);
15433
15874
  attr_dev(div3, "class", "InfoCardRowTitle");
15434
- add_location(div3, file, 198, 24, 7621);
15875
+ add_location(div3, file, 211, 24, 8057);
15435
15876
  attr_dev(div4, "class", "InfoCardRow");
15436
- add_location(div4, file, 197, 22, 7571);
15877
+ add_location(div4, file, 210, 22, 8007);
15437
15878
  attr_dev(div5, "class", "InfoCardRowContainer");
15438
- add_location(div5, file, 182, 20, 6737);
15879
+ add_location(div5, file, 195, 20, 7173);
15439
15880
  attr_dev(div6, "class", "InfoCardBox InfoCardMultipleItems");
15440
- add_location(div6, file, 181, 18, 6669);
15881
+ add_location(div6, file, 194, 18, 7105);
15441
15882
  },
15442
15883
  m: function mount(target, anchor) {
15443
15884
  insert_dev(target, div6, anchor);
@@ -15458,7 +15899,7 @@
15458
15899
  append_dev(div6, t6);
15459
15900
  },
15460
15901
  p: function update(ctx, dirty) {
15461
- if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[29] ? /*itemInfo*/ ctx[29].period : "") + "")) set_data_dev(t0, t0_value);
15902
+ if (dirty[0] & /*limitsdata*/ 1 && t0_value !== (t0_value = (/*itemInfo*/ ctx[35] ? /*itemInfo*/ ctx[35].period : "") + "")) set_data_dev(t0, t0_value);
15462
15903
 
15463
15904
  if (current_block_type === (current_block_type = select_block_type_3(ctx)) && if_block0) {
15464
15905
  if_block0.p(ctx, dirty);
@@ -15484,24 +15925,26 @@
15484
15925
  }
15485
15926
  }
15486
15927
 
15487
- if (/*itemInfo*/ ctx[29].amount != "No limit") {
15928
+ if (current_block_type_2 === (current_block_type_2 = select_block_type_5(ctx)) && if_block2) {
15929
+ if_block2.p(ctx, dirty);
15930
+ } else {
15931
+ if (if_block2) if_block2.d(1);
15932
+ if_block2 = current_block_type_2 && current_block_type_2(ctx);
15933
+
15488
15934
  if (if_block2) {
15489
- if_block2.p(ctx, dirty);
15490
- } else {
15491
- if_block2 = create_if_block_5(ctx);
15492
15935
  if_block2.c();
15493
15936
  if_block2.m(div6, t6);
15494
15937
  }
15495
- } else if (if_block2) {
15496
- if_block2.d(1);
15497
- if_block2 = null;
15498
15938
  }
15499
15939
  },
15500
15940
  d: function destroy(detaching) {
15501
15941
  if (detaching) detach_dev(div6);
15502
15942
  if_block0.d();
15503
15943
  if_block1.d();
15504
- if (if_block2) if_block2.d();
15944
+
15945
+ if (if_block2) {
15946
+ if_block2.d();
15947
+ }
15505
15948
  }
15506
15949
  };
15507
15950
 
@@ -15509,14 +15952,14 @@
15509
15952
  block,
15510
15953
  id: create_each_block.name,
15511
15954
  type: "each",
15512
- source: "(181:16) {#each limitsdata as itemInfo}",
15955
+ source: "(194:16) {#each limitsdata as itemInfo, index}",
15513
15956
  ctx
15514
15957
  });
15515
15958
 
15516
15959
  return block;
15517
15960
  }
15518
15961
 
15519
- // (262:10) {#if !amountIsUnset && !limitsdata.isModified}
15962
+ // (285:10) {#if !amountIsUnset && !limitsdata.isModified && changeableDataset}
15520
15963
  function create_if_block_2(ctx) {
15521
15964
  let button;
15522
15965
  let mounted;
@@ -15527,13 +15970,13 @@
15527
15970
  button = element("button");
15528
15971
  button.textContent = "Remove Limits";
15529
15972
  attr_dev(button, "class", "InfoCardRemoveButton");
15530
- add_location(button, file, 262, 12, 10902);
15973
+ add_location(button, file, 285, 12, 12927);
15531
15974
  },
15532
15975
  m: function mount(target, anchor) {
15533
15976
  insert_dev(target, button, anchor);
15534
15977
 
15535
15978
  if (!mounted) {
15536
- dispose = listen_dev(button, "click", /*click_handler_1*/ ctx[17], false, false, false);
15979
+ dispose = listen_dev(button, "click", /*click_handler_4*/ ctx[24], false, false, false);
15537
15980
  mounted = true;
15538
15981
  }
15539
15982
  },
@@ -15549,14 +15992,14 @@
15549
15992
  block,
15550
15993
  id: create_if_block_2.name,
15551
15994
  type: "if",
15552
- source: "(262:10) {#if !amountIsUnset && !limitsdata.isModified}",
15995
+ source: "(285:10) {#if !amountIsUnset && !limitsdata.isModified && changeableDataset}",
15553
15996
  ctx
15554
15997
  });
15555
15998
 
15556
15999
  return block;
15557
16000
  }
15558
16001
 
15559
- // (268:4) {#if openLimitsModal}
16002
+ // (291:4) {#if openLimitsModal}
15560
16003
  function create_if_block_1(ctx) {
15561
16004
  let player_account_modal;
15562
16005
  let player_account_gaming_limits_confirmation_modal;
@@ -15567,22 +16010,22 @@
15567
16010
  player_account_modal = element("player-account-modal");
15568
16011
  player_account_gaming_limits_confirmation_modal = element("player-account-gaming-limits-confirmation-modal");
15569
16012
 
15570
- set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[6]
15571
- ? /*removeAllLimitsText*/ ctx[8]
15572
- : /*removeLimitText*/ ctx[9]);
16013
+ set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[7]
16014
+ ? /*removeAllLimitsText*/ ctx[9]
16015
+ : /*removeLimitText*/ ctx[10]);
15573
16016
 
15574
16017
  set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modalsource", "infoCard");
15575
- add_location(player_account_gaming_limits_confirmation_modal, file, 269, 8, 11122);
15576
- add_location(player_account_modal, file, 268, 6, 11091);
16018
+ add_location(player_account_gaming_limits_confirmation_modal, file, 292, 8, 13147);
16019
+ add_location(player_account_modal, file, 291, 6, 13116);
15577
16020
  },
15578
16021
  m: function mount(target, anchor) {
15579
16022
  insert_dev(target, player_account_modal, anchor);
15580
16023
  append_dev(player_account_modal, player_account_gaming_limits_confirmation_modal);
15581
16024
  },
15582
16025
  p: function update(ctx, dirty) {
15583
- if (dirty[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/ 832 && player_account_gaming_limits_confirmation_modal_modaltext_value !== (player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[6]
15584
- ? /*removeAllLimitsText*/ ctx[8]
15585
- : /*removeLimitText*/ ctx[9])) {
16026
+ if (dirty[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/ 1664 && player_account_gaming_limits_confirmation_modal_modaltext_value !== (player_account_gaming_limits_confirmation_modal_modaltext_value = /*removeAllLimits*/ ctx[7]
16027
+ ? /*removeAllLimitsText*/ ctx[9]
16028
+ : /*removeLimitText*/ ctx[10])) {
15586
16029
  set_custom_element_data(player_account_gaming_limits_confirmation_modal, "modaltext", player_account_gaming_limits_confirmation_modal_modaltext_value);
15587
16030
  }
15588
16031
  },
@@ -15595,7 +16038,7 @@
15595
16038
  block,
15596
16039
  id: create_if_block_1.name,
15597
16040
  type: "if",
15598
- source: "(268:4) {#if openLimitsModal}",
16041
+ source: "(291:4) {#if openLimitsModal}",
15599
16042
  ctx
15600
16043
  });
15601
16044
 
@@ -15606,7 +16049,7 @@
15606
16049
  let if_block_anchor;
15607
16050
 
15608
16051
  function select_block_type(ctx, dirty) {
15609
- if (/*isLoading*/ ctx[10]) return create_if_block;
16052
+ if (/*isLoading*/ ctx[12]) return create_if_block;
15610
16053
  return create_else_block;
15611
16054
  }
15612
16055
 
@@ -15655,21 +16098,20 @@
15655
16098
  let { infoname = "" } = $$props;
15656
16099
  let { infocontent = "" } = $$props;
15657
16100
  let { limitname = "" } = $$props;
16101
+ let { playercurrency = "" } = $$props;
16102
+ let { showdeletenotification = false } = $$props;
15658
16103
  let isLoading = false;
15659
-
15660
- // let differencesExist:boolean = false;
15661
- let showPopup = false;
15662
-
16104
+ let showPopup = new Array(5).fill(0);
15663
16105
  let periodLimitsArray = ["Daily", "Weekly", "Monthly"];
15664
16106
  let amountIsUnset = true;
15665
16107
  let removeAllLimits = true;
15666
16108
  let openLimitsModal = false;
15667
16109
  let userAgent = window.navigator.userAgent;
15668
16110
  let isMobile = getDevice(userAgent) === "PC" ? false : true;
15669
- let isLimitUpdateSet = false;
15670
16111
  let removeAllLimitsText = "";
15671
16112
  let removeLimitText = "";
15672
- let changeLimitsText = "";
16113
+ let changeableDataset = true;
16114
+ let currentDate = moment();
15673
16115
 
15674
16116
  const updateLimits = editData => {
15675
16117
  window.postMessage(
@@ -15683,8 +16125,8 @@
15683
16125
  };
15684
16126
 
15685
16127
  const removeLimits = resetData => {
15686
- $$invalidate(7, openLimitsModal = true);
15687
- $$invalidate(6, removeAllLimits = true);
16128
+ $$invalidate(8, openLimitsModal = true);
16129
+ $$invalidate(7, removeAllLimits = true);
15688
16130
  window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
15689
16131
 
15690
16132
  window.postMessage(
@@ -15698,8 +16140,8 @@
15698
16140
  };
15699
16141
 
15700
16142
  const removeItemLimit = (itemData, limitName) => {
15701
- $$invalidate(7, openLimitsModal = true);
15702
- $$invalidate(6, removeAllLimits = false);
16143
+ $$invalidate(8, openLimitsModal = true);
16144
+ $$invalidate(7, removeAllLimits = false);
15703
16145
  window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
15704
16146
 
15705
16147
  window.postMessage(
@@ -15712,8 +16154,20 @@
15712
16154
  );
15713
16155
  };
15714
16156
 
15715
- const openInfoPopup = () => {
15716
- $$invalidate(4, showPopup = true);
16157
+ const openInfoPopup = index => {
16158
+ window.postMessage(
16159
+ {
16160
+ type: "ClosePlayerAccountGamingLimitsPopup"
16161
+ },
16162
+ window.location.href
16163
+ );
16164
+
16165
+ setTimeout(
16166
+ () => {
16167
+ $$invalidate(5, showPopup[index] = true, showPopup);
16168
+ },
16169
+ 50
16170
+ );
15717
16171
  };
15718
16172
 
15719
16173
  const constructDefaultFields = limitsArray => {
@@ -15729,7 +16183,7 @@
15729
16183
 
15730
16184
  limitsArray.forEach(itemData => {
15731
16185
  if (itemData.period === limitsData) {
15732
- if (itemData.amount !== "No limit") $$invalidate(5, amountIsUnset = false);
16186
+ if (itemData.amount !== "No limit") $$invalidate(6, amountIsUnset = false);
15733
16187
  }
15734
16188
  });
15735
16189
  });
@@ -15801,8 +16255,16 @@
15801
16255
  ? "wagering limit"
15802
16256
  : "loss limit";
15803
16257
 
15804
- $$invalidate(8, removeAllLimitsText = `Are you sure you want to remove all the ${limitType}s?`);
15805
- $$invalidate(9, removeLimitText = `Are you sure you want to remove the ${limitType}?`);
16258
+ $$invalidate(9, removeAllLimitsText = `Are you sure you want to remove all the ${limitType}s?`);
16259
+ $$invalidate(10, removeLimitText = `Are you sure you want to remove the ${limitType}?`);
16260
+ };
16261
+
16262
+ const alterableDataset = data => {
16263
+ data.forEach(dataItem => {
16264
+ if (dataItem.isModified) {
16265
+ $$invalidate(11, changeableDataset = false);
16266
+ }
16267
+ });
15806
16268
  };
15807
16269
 
15808
16270
  const initialLoad = () => {
@@ -15810,6 +16272,8 @@
15810
16272
 
15811
16273
  if (limitname === "Deposit Limit" || limitname === "Time Limit") {
15812
16274
  if (Array.isArray(limitsdata)) {
16275
+ alterableDataset(limitsdata);
16276
+
15813
16277
  // order incoming arrays from NorWAY by period
15814
16278
  limitsdata.sort(orderByPeriod);
15815
16279
 
@@ -15819,9 +16283,9 @@
15819
16283
  } else {
15820
16284
  if (!limitsdata.hasOwnProperty("period")) {
15821
16285
  $$invalidate(0, limitsdata = addDefaultValues());
15822
- $$invalidate(5, amountIsUnset = limitsdata.amount == "No limit" ? true : false);
16286
+ $$invalidate(6, amountIsUnset = limitsdata.amount == "No limit" ? true : false);
15823
16287
  } else {
15824
- $$invalidate(5, amountIsUnset = limitsdata.amount == "No limit" ? true : false);
16288
+ $$invalidate(6, amountIsUnset = limitsdata.amount == "No limit" ? true : false);
15825
16289
  }
15826
16290
  }
15827
16291
  };
@@ -15830,11 +16294,11 @@
15830
16294
  if (e.data) {
15831
16295
  switch (e.data.type) {
15832
16296
  case "ClosePlayerAccountGamingLimitsPopup":
15833
- $$invalidate(4, showPopup = false);
16297
+ $$invalidate(5, showPopup = new Array(5).fill(0));
15834
16298
  break;
15835
16299
  case "ModalClosed":
15836
- $$invalidate(7, openLimitsModal = false);
15837
- $$invalidate(6, removeAllLimits = false);
16300
+ $$invalidate(8, openLimitsModal = false);
16301
+ $$invalidate(7, removeAllLimits = false);
15838
16302
  break;
15839
16303
  }
15840
16304
  }
@@ -15848,20 +16312,32 @@
15848
16312
  };
15849
16313
  });
15850
16314
 
15851
- const writable_props = ["limitsdata", "infoname", "infocontent", "limitname"];
16315
+ const writable_props = [
16316
+ "limitsdata",
16317
+ "infoname",
16318
+ "infocontent",
16319
+ "limitname",
16320
+ "playercurrency",
16321
+ "showdeletenotification"
16322
+ ];
15852
16323
 
15853
16324
  Object.keys($$props).forEach(key => {
15854
16325
  if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
15855
16326
  });
15856
16327
 
15857
- const click_handler = () => updateLimits(limitsdata);
15858
- const click_handler_1 = () => removeLimits(limitsdata);
16328
+ const click_handler = () => openInfoPopup(0);
16329
+ const click_handler_1 = index => openInfoPopup(index + 1);
16330
+ const click_handler_2 = index => openInfoPopup(index + 1);
16331
+ const click_handler_3 = () => updateLimits(limitsdata);
16332
+ const click_handler_4 = () => removeLimits(limitsdata);
15859
16333
 
15860
16334
  $$self.$$set = $$props => {
15861
16335
  if ("limitsdata" in $$props) $$invalidate(0, limitsdata = $$props.limitsdata);
15862
16336
  if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
15863
16337
  if ("infocontent" in $$props) $$invalidate(2, infocontent = $$props.infocontent);
15864
16338
  if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
16339
+ if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
16340
+ if ("showdeletenotification" in $$props) $$invalidate(19, showdeletenotification = $$props.showdeletenotification);
15865
16341
  };
15866
16342
 
15867
16343
  $$self.$capture_state = () => ({
@@ -15872,6 +16348,8 @@
15872
16348
  infoname,
15873
16349
  infocontent,
15874
16350
  limitname,
16351
+ playercurrency,
16352
+ showdeletenotification,
15875
16353
  isLoading,
15876
16354
  showPopup,
15877
16355
  periodLimitsArray,
@@ -15880,10 +16358,10 @@
15880
16358
  openLimitsModal,
15881
16359
  userAgent,
15882
16360
  isMobile,
15883
- isLimitUpdateSet,
15884
16361
  removeAllLimitsText,
15885
16362
  removeLimitText,
15886
- changeLimitsText,
16363
+ changeableDataset,
16364
+ currentDate,
15887
16365
  updateLimits,
15888
16366
  removeLimits,
15889
16367
  removeItemLimit,
@@ -15893,6 +16371,7 @@
15893
16371
  insertDefaultPeriodData,
15894
16372
  orderByPeriod,
15895
16373
  setLimitModalTexts,
16374
+ alterableDataset,
15896
16375
  initialLoad,
15897
16376
  messageHandler
15898
16377
  });
@@ -15902,18 +16381,20 @@
15902
16381
  if ("infoname" in $$props) $$invalidate(1, infoname = $$props.infoname);
15903
16382
  if ("infocontent" in $$props) $$invalidate(2, infocontent = $$props.infocontent);
15904
16383
  if ("limitname" in $$props) $$invalidate(3, limitname = $$props.limitname);
15905
- if ("isLoading" in $$props) $$invalidate(10, isLoading = $$props.isLoading);
15906
- if ("showPopup" in $$props) $$invalidate(4, showPopup = $$props.showPopup);
16384
+ if ("playercurrency" in $$props) $$invalidate(4, playercurrency = $$props.playercurrency);
16385
+ if ("showdeletenotification" in $$props) $$invalidate(19, showdeletenotification = $$props.showdeletenotification);
16386
+ if ("isLoading" in $$props) $$invalidate(12, isLoading = $$props.isLoading);
16387
+ if ("showPopup" in $$props) $$invalidate(5, showPopup = $$props.showPopup);
15907
16388
  if ("periodLimitsArray" in $$props) periodLimitsArray = $$props.periodLimitsArray;
15908
- if ("amountIsUnset" in $$props) $$invalidate(5, amountIsUnset = $$props.amountIsUnset);
15909
- if ("removeAllLimits" in $$props) $$invalidate(6, removeAllLimits = $$props.removeAllLimits);
15910
- if ("openLimitsModal" in $$props) $$invalidate(7, openLimitsModal = $$props.openLimitsModal);
16389
+ if ("amountIsUnset" in $$props) $$invalidate(6, amountIsUnset = $$props.amountIsUnset);
16390
+ if ("removeAllLimits" in $$props) $$invalidate(7, removeAllLimits = $$props.removeAllLimits);
16391
+ if ("openLimitsModal" in $$props) $$invalidate(8, openLimitsModal = $$props.openLimitsModal);
15911
16392
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
15912
- if ("isMobile" in $$props) $$invalidate(11, isMobile = $$props.isMobile);
15913
- if ("isLimitUpdateSet" in $$props) isLimitUpdateSet = $$props.isLimitUpdateSet;
15914
- if ("removeAllLimitsText" in $$props) $$invalidate(8, removeAllLimitsText = $$props.removeAllLimitsText);
15915
- if ("removeLimitText" in $$props) $$invalidate(9, removeLimitText = $$props.removeLimitText);
15916
- if ("changeLimitsText" in $$props) changeLimitsText = $$props.changeLimitsText;
16393
+ if ("isMobile" in $$props) $$invalidate(13, isMobile = $$props.isMobile);
16394
+ if ("removeAllLimitsText" in $$props) $$invalidate(9, removeAllLimitsText = $$props.removeAllLimitsText);
16395
+ if ("removeLimitText" in $$props) $$invalidate(10, removeLimitText = $$props.removeLimitText);
16396
+ if ("changeableDataset" in $$props) $$invalidate(11, changeableDataset = $$props.changeableDataset);
16397
+ if ("currentDate" in $$props) $$invalidate(14, currentDate = $$props.currentDate);
15917
16398
  };
15918
16399
 
15919
16400
  if ($$props && "$$inject" in $$props) {
@@ -15931,27 +16412,34 @@
15931
16412
  infoname,
15932
16413
  infocontent,
15933
16414
  limitname,
16415
+ playercurrency,
15934
16416
  showPopup,
15935
16417
  amountIsUnset,
15936
16418
  removeAllLimits,
15937
16419
  openLimitsModal,
15938
16420
  removeAllLimitsText,
15939
16421
  removeLimitText,
16422
+ changeableDataset,
15940
16423
  isLoading,
15941
16424
  isMobile,
16425
+ currentDate,
15942
16426
  updateLimits,
15943
16427
  removeLimits,
15944
16428
  removeItemLimit,
15945
16429
  openInfoPopup,
16430
+ showdeletenotification,
15946
16431
  click_handler,
15947
- click_handler_1
16432
+ click_handler_1,
16433
+ click_handler_2,
16434
+ click_handler_3,
16435
+ click_handler_4
15948
16436
  ];
15949
16437
  }
15950
16438
 
15951
16439
  class PlayerAccountGamingLimitsInfoCard extends SvelteElement {
15952
16440
  constructor(options) {
15953
16441
  super();
15954
- this.shadowRoot.innerHTML = `<style>.InfoCard{padding:20px;color:#000;background:#fff;box-shadow:0px 3px 12px #00000012;border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid #D0046C;align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:#58586B;font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:#FD2839;border:2px solid #FD2839}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:3px;right:0;content:"\\274c";font-size:12px;color:#FFF;line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:#F9F8F8}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#000;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:#D0046C;border:1px solid #D0046C;color:#fff;margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid #000}.InfoCardIconWrapper{position:relative}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}</style>`;
16442
+ this.shadowRoot.innerHTML = `<style>.InfoCard{padding:20px;color:#000;background:#fff;box-shadow:0px 3px 12px #00000012;border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{display:flex;width:20px;height:20px;background:transparent;border:1px solid #D0046C;align-items:center;justify-content:center;border-radius:30px}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:#58586B;font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:#FD2839;border:2px solid #FD2839}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"\\274c";font-size:8px;color:#FFF;line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:#F9F8F8}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#000;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{background:#D0046C;border:1px solid #D0046C;color:#fff;margin-right:10px}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid #000}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid #D0046C;align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:#5E5E30;border:1px solid #5E5E30}</style>`;
15955
16443
 
15956
16444
  init(
15957
16445
  this,
@@ -15967,7 +16455,9 @@
15967
16455
  limitsdata: 0,
15968
16456
  infoname: 1,
15969
16457
  infocontent: 2,
15970
- limitname: 3
16458
+ limitname: 3,
16459
+ playercurrency: 4,
16460
+ showdeletenotification: 19
15971
16461
  },
15972
16462
  [-1, -1]
15973
16463
  );
@@ -15985,7 +16475,14 @@
15985
16475
  }
15986
16476
 
15987
16477
  static get observedAttributes() {
15988
- return ["limitsdata", "infoname", "infocontent", "limitname"];
16478
+ return [
16479
+ "limitsdata",
16480
+ "infoname",
16481
+ "infocontent",
16482
+ "limitname",
16483
+ "playercurrency",
16484
+ "showdeletenotification"
16485
+ ];
15989
16486
  }
15990
16487
 
15991
16488
  get limitsdata() {
@@ -16023,6 +16520,24 @@
16023
16520
  this.$set({ limitname });
16024
16521
  flush();
16025
16522
  }
16523
+
16524
+ get playercurrency() {
16525
+ return this.$$.ctx[4];
16526
+ }
16527
+
16528
+ set playercurrency(playercurrency) {
16529
+ this.$set({ playercurrency });
16530
+ flush();
16531
+ }
16532
+
16533
+ get showdeletenotification() {
16534
+ return this.$$.ctx[19];
16535
+ }
16536
+
16537
+ set showdeletenotification(showdeletenotification) {
16538
+ this.$set({ showdeletenotification });
16539
+ flush();
16540
+ }
16026
16541
  }
16027
16542
 
16028
16543
  !customElements.get('player-account-gaming-limits-info-card') && customElements.define('player-account-gaming-limits-info-card', PlayerAccountGamingLimitsInfoCard);