@everymatrix/player-account-menu 0.0.152 → 0.0.156

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.
@@ -4495,7 +4495,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4495
4495
 
4496
4496
  /* ../general-logout/src/GeneralLogout.svelte generated by Svelte v3.37.0 */
4497
4497
 
4498
- const { console: console_1 } = globals;
4498
+ const { console: console_1$1 } = globals;
4499
4499
  const file$1 = "../general-logout/src/GeneralLogout.svelte";
4500
4500
 
4501
4501
  // (58:0) {:else}
@@ -4758,7 +4758,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4758
4758
  const writable_props = ["endpoint", "session", "buttonlocation"];
4759
4759
 
4760
4760
  Object.keys($$props).forEach(key => {
4761
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
4761
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1$1.warn(`<undefined> was created with unknown prop '${key}'`);
4762
4762
  });
4763
4763
 
4764
4764
  const click_handler = () => logout();
@@ -4884,26 +4884,32 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4884
4884
  !customElements.get('general-logout') && customElements.define('general-logout', GeneralLogout);
4885
4885
 
4886
4886
  /* src/PlayerAccountMenu.svelte generated by Svelte v3.37.0 */
4887
+
4888
+ const { console: console_1 } = globals;
4887
4889
  const file = "src/PlayerAccountMenu.svelte";
4888
4890
 
4889
4891
  function get_each_context(ctx, list, i) {
4890
4892
  const child_ctx = ctx.slice();
4891
- child_ctx[18] = list[i];
4893
+ child_ctx[22] = list[i];
4892
4894
  return child_ctx;
4893
4895
  }
4894
4896
 
4895
- // (76:0) {:else}
4897
+ // (97:0) {:else}
4896
4898
  function create_else_block(ctx) {
4897
4899
  let div2;
4898
4900
  let div0;
4899
4901
  let t0;
4900
- let p;
4902
+ let p0;
4903
+ let t1;
4901
4904
  let t2;
4905
+ let p1;
4902
4906
  let t3;
4903
- let div1;
4904
4907
  let t4;
4905
- let if_block0 = /*isMobile*/ ctx[6] && create_if_block_4(ctx);
4906
- let if_block1 = /*isMobile*/ ctx[6] && create_if_block_3(ctx);
4908
+ let t5;
4909
+ let div1;
4910
+ let t6;
4911
+ let if_block0 = /*isMobile*/ ctx[8] && create_if_block_4(ctx);
4912
+ let if_block1 = /*isMobile*/ ctx[8] && create_if_block_3(ctx);
4907
4913
  let each_value = /*availableMenuItemsArray*/ ctx[2];
4908
4914
  validate_each_argument(each_value);
4909
4915
  let each_blocks = [];
@@ -4912,7 +4918,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4912
4918
  each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
4913
4919
  }
4914
4920
 
4915
- let if_block2 = !/*isMobile*/ ctx[6] && create_if_block_1(ctx);
4921
+ let if_block2 = !/*isMobile*/ ctx[8] && create_if_block_1(ctx);
4916
4922
 
4917
4923
  const block = {
4918
4924
  c: function create() {
@@ -4920,56 +4926,67 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4920
4926
  div0 = element("div");
4921
4927
  if (if_block0) if_block0.c();
4922
4928
  t0 = space();
4923
- p = element("p");
4924
- p.textContent = "Everymatrix";
4929
+ p0 = element("p");
4930
+ t1 = text(/*profileUsername*/ ctx[5]);
4925
4931
  t2 = space();
4932
+ p1 = element("p");
4933
+ t3 = text(/*profileEmail*/ ctx[6]);
4934
+ t4 = space();
4926
4935
  if (if_block1) if_block1.c();
4927
- t3 = space();
4936
+ t5 = space();
4928
4937
  div1 = element("div");
4929
4938
 
4930
4939
  for (let i = 0; i < each_blocks.length; i += 1) {
4931
4940
  each_blocks[i].c();
4932
4941
  }
4933
4942
 
4934
- t4 = space();
4943
+ t6 = space();
4935
4944
  if (if_block2) if_block2.c();
4936
- attr_dev(p, "class", "PlayerAccountMenuUser");
4937
- add_location(p, file, 81, 6, 2807);
4945
+ attr_dev(p0, "class", "PlayerAccountMenuUser");
4946
+ add_location(p0, file, 102, 6, 3349);
4947
+ attr_dev(p1, "class", "PlayerAccountMenuEmail");
4948
+ add_location(p1, file, 103, 6, 3410);
4938
4949
  attr_dev(div0, "class", "PlayerAccountMenuHeader");
4939
- add_location(div0, file, 77, 4, 2663);
4950
+ add_location(div0, file, 98, 4, 3205);
4940
4951
  attr_dev(div1, "class", "PlayerAccountMenuList");
4941
- add_location(div1, file, 89, 4, 3136);
4952
+ add_location(div1, file, 110, 4, 3666);
4942
4953
 
4943
- attr_dev(div2, "class", "PlayerAccountMenuContainer " + (/*isMobile*/ ctx[6]
4954
+ attr_dev(div2, "class", "PlayerAccountMenuContainer " + (/*isMobile*/ ctx[8]
4944
4955
  ? "PlayerAccountMobileContainer"
4945
- : "") + " " + (/*mediaQuery*/ ctx[7].matches && /*isMobile*/ ctx[6]
4956
+ : "") + " " + (/*mediaQuery*/ ctx[9].matches && /*isMobile*/ ctx[8]
4946
4957
  ? "PlayerAccountTabletContainer"
4947
4958
  : ""));
4948
4959
 
4949
- add_location(div2, file, 76, 0, 2498);
4960
+ add_location(div2, file, 97, 0, 3040);
4950
4961
  },
4951
4962
  m: function mount(target, anchor) {
4952
4963
  insert_dev(target, div2, anchor);
4953
4964
  append_dev(div2, div0);
4954
4965
  if (if_block0) if_block0.m(div0, null);
4955
4966
  append_dev(div0, t0);
4956
- append_dev(div0, p);
4967
+ append_dev(div0, p0);
4968
+ append_dev(p0, t1);
4957
4969
  append_dev(div0, t2);
4970
+ append_dev(div0, p1);
4971
+ append_dev(p1, t3);
4972
+ append_dev(div0, t4);
4958
4973
  if (if_block1) if_block1.m(div0, null);
4959
- append_dev(div2, t3);
4974
+ append_dev(div2, t5);
4960
4975
  append_dev(div2, div1);
4961
4976
 
4962
4977
  for (let i = 0; i < each_blocks.length; i += 1) {
4963
4978
  each_blocks[i].m(div1, null);
4964
4979
  }
4965
4980
 
4966
- append_dev(div2, t4);
4981
+ append_dev(div2, t6);
4967
4982
  if (if_block2) if_block2.m(div2, null);
4968
4983
  },
4969
4984
  p: function update(ctx, dirty) {
4970
- if (/*isMobile*/ ctx[6]) if_block1.p(ctx, dirty);
4985
+ if (dirty & /*profileUsername*/ 32) set_data_dev(t1, /*profileUsername*/ ctx[5]);
4986
+ if (dirty & /*profileEmail*/ 64) set_data_dev(t3, /*profileEmail*/ ctx[6]);
4987
+ if (/*isMobile*/ ctx[8]) if_block1.p(ctx, dirty);
4971
4988
 
4972
- if (dirty & /*selected, availableMenuItemsArray, isMobile, openAccountSection, mediaQuery, switchToDefaultDataSets*/ 476) {
4989
+ if (dirty & /*selected, availableMenuItemsArray, isMobile, openAccountSection, mediaQuery, switchToDefaultDataSets*/ 1820) {
4973
4990
  each_value = /*availableMenuItemsArray*/ ctx[2];
4974
4991
  validate_each_argument(each_value);
4975
4992
  let i;
@@ -4993,7 +5010,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
4993
5010
  each_blocks.length = each_value.length;
4994
5011
  }
4995
5012
 
4996
- if (!/*isMobile*/ ctx[6]) if_block2.p(ctx, dirty);
5013
+ if (!/*isMobile*/ ctx[8]) if_block2.p(ctx, dirty);
4997
5014
  },
4998
5015
  d: function destroy(detaching) {
4999
5016
  if (detaching) detach_dev(div2);
@@ -5008,14 +5025,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5008
5025
  block,
5009
5026
  id: create_else_block.name,
5010
5027
  type: "else",
5011
- source: "(76:0) {:else}",
5028
+ source: "(97:0) {:else}",
5012
5029
  ctx
5013
5030
  });
5014
5031
 
5015
5032
  return block;
5016
5033
  }
5017
5034
 
5018
- // (74:0) {#if isLoading}
5035
+ // (95:0) {#if isLoading}
5019
5036
  function create_if_block(ctx) {
5020
5037
  let div;
5021
5038
 
@@ -5023,7 +5040,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5023
5040
  c: function create() {
5024
5041
  div = element("div");
5025
5042
  attr_dev(div, "class", "ModalLoader");
5026
- add_location(div, file, 74, 2, 2458);
5043
+ add_location(div, file, 95, 2, 3000);
5027
5044
  },
5028
5045
  m: function mount(target, anchor) {
5029
5046
  insert_dev(target, div, anchor);
@@ -5038,14 +5055,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5038
5055
  block,
5039
5056
  id: create_if_block.name,
5040
5057
  type: "if",
5041
- source: "(74:0) {#if isLoading}",
5058
+ source: "(95:0) {#if isLoading}",
5042
5059
  ctx
5043
5060
  });
5044
5061
 
5045
5062
  return block;
5046
5063
  }
5047
5064
 
5048
- // (79:6) {#if isMobile}
5065
+ // (100:6) {#if isMobile}
5049
5066
  function create_if_block_4(ctx) {
5050
5067
  let h3;
5051
5068
 
@@ -5054,7 +5071,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5054
5071
  h3 = element("h3");
5055
5072
  h3.textContent = "My Account";
5056
5073
  attr_dev(h3, "class", "PlayerAccountMenuCategoryTitle");
5057
- add_location(h3, file, 79, 8, 2730);
5074
+ add_location(h3, file, 100, 8, 3272);
5058
5075
  },
5059
5076
  m: function mount(target, anchor) {
5060
5077
  insert_dev(target, h3, anchor);
@@ -5068,14 +5085,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5068
5085
  block,
5069
5086
  id: create_if_block_4.name,
5070
5087
  type: "if",
5071
- source: "(79:6) {#if isMobile}",
5088
+ source: "(100:6) {#if isMobile}",
5072
5089
  ctx
5073
5090
  });
5074
5091
 
5075
5092
  return block;
5076
5093
  }
5077
5094
 
5078
- // (84:6) {#if isMobile}
5095
+ // (105:6) {#if isMobile}
5079
5096
  function create_if_block_3(ctx) {
5080
5097
  let div;
5081
5098
  let general_logout;
@@ -5087,9 +5104,9 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5087
5104
  set_custom_element_data(general_logout, "endpoint", /*endpoint*/ ctx[1]);
5088
5105
  set_custom_element_data(general_logout, "session", /*session*/ ctx[0]);
5089
5106
  set_custom_element_data(general_logout, "buttonlocation", "PlayerAccountMenu");
5090
- add_location(general_logout, file, 85, 8, 3006);
5107
+ add_location(general_logout, file, 106, 8, 3536);
5091
5108
  attr_dev(div, "class", "PlayerAccountLogOutArea");
5092
- add_location(div, file, 84, 6, 2960);
5109
+ add_location(div, file, 105, 6, 3490);
5093
5110
  },
5094
5111
  m: function mount(target, anchor) {
5095
5112
  insert_dev(target, div, anchor);
@@ -5113,14 +5130,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5113
5130
  block,
5114
5131
  id: create_if_block_3.name,
5115
5132
  type: "if",
5116
- source: "(84:6) {#if isMobile}",
5133
+ source: "(105:6) {#if isMobile}",
5117
5134
  ctx
5118
5135
  });
5119
5136
 
5120
5137
  return block;
5121
5138
  }
5122
5139
 
5123
- // (96:12) {:else}
5140
+ // (117:12) {:else}
5124
5141
  function create_else_block_1(ctx) {
5125
5142
  let img;
5126
5143
  let img_src_value;
@@ -5129,18 +5146,18 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5129
5146
  c: function create() {
5130
5147
  img = element("img");
5131
5148
 
5132
- attr_dev(img, "class", "PlayerAccountMenuItemIcon " + (/*isMobile*/ ctx[6]
5149
+ attr_dev(img, "class", "PlayerAccountMenuItemIcon " + (/*isMobile*/ ctx[8]
5133
5150
  ? "PlayerAccountMenuItemIconMobile"
5134
5151
  : ""));
5135
5152
 
5136
- if (img.src !== (img_src_value = /*menuItem*/ ctx[18].menu_item_icon)) attr_dev(img, "src", img_src_value);
5137
- add_location(img, file, 96, 14, 3734);
5153
+ if (img.src !== (img_src_value = /*menuItem*/ ctx[22].menu_item_icon)) attr_dev(img, "src", img_src_value);
5154
+ add_location(img, file, 117, 14, 4264);
5138
5155
  },
5139
5156
  m: function mount(target, anchor) {
5140
5157
  insert_dev(target, img, anchor);
5141
5158
  },
5142
5159
  p: function update(ctx, dirty) {
5143
- if (dirty & /*availableMenuItemsArray*/ 4 && img.src !== (img_src_value = /*menuItem*/ ctx[18].menu_item_icon)) {
5160
+ if (dirty & /*availableMenuItemsArray*/ 4 && img.src !== (img_src_value = /*menuItem*/ ctx[22].menu_item_icon)) {
5144
5161
  attr_dev(img, "src", img_src_value);
5145
5162
  }
5146
5163
  },
@@ -5153,38 +5170,38 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5153
5170
  block,
5154
5171
  id: create_else_block_1.name,
5155
5172
  type: "else",
5156
- source: "(96:12) {:else}",
5173
+ source: "(117:12) {:else}",
5157
5174
  ctx
5158
5175
  });
5159
5176
 
5160
5177
  return block;
5161
5178
  }
5162
5179
 
5163
- // (94:12) {#if switchToDefaultDataSets}
5180
+ // (115:12) {#if switchToDefaultDataSets}
5164
5181
  function create_if_block_2(ctx) {
5165
5182
  let span;
5166
- let raw_value = /*menuItem*/ ctx[18].menu_item_icon + "";
5183
+ let raw_value = /*menuItem*/ ctx[22].menu_item_icon + "";
5167
5184
 
5168
5185
  const block = {
5169
5186
  c: function create() {
5170
5187
  span = element("span");
5171
5188
 
5172
- set_style(span, "width", !/*isMobile*/ ctx[6]
5189
+ set_style(span, "width", !/*isMobile*/ ctx[8]
5173
5190
  ? "20px"
5174
- : /*mediaQuery*/ ctx[7].matches ? "80px" : "40px");
5191
+ : /*mediaQuery*/ ctx[9].matches ? "80px" : "40px");
5175
5192
 
5176
- set_style(span, "height", !/*isMobile*/ ctx[6]
5193
+ set_style(span, "height", !/*isMobile*/ ctx[8]
5177
5194
  ? "20px"
5178
- : /*mediaQuery*/ ctx[7].matches ? "80px" : "40px");
5195
+ : /*mediaQuery*/ ctx[9].matches ? "80px" : "40px");
5179
5196
 
5180
- add_location(span, file, 94, 14, 3507);
5197
+ add_location(span, file, 115, 14, 4037);
5181
5198
  },
5182
5199
  m: function mount(target, anchor) {
5183
5200
  insert_dev(target, span, anchor);
5184
5201
  span.innerHTML = raw_value;
5185
5202
  },
5186
5203
  p: function update(ctx, dirty) {
5187
- if (dirty & /*availableMenuItemsArray*/ 4 && raw_value !== (raw_value = /*menuItem*/ ctx[18].menu_item_icon + "")) span.innerHTML = raw_value; },
5204
+ if (dirty & /*availableMenuItemsArray*/ 4 && raw_value !== (raw_value = /*menuItem*/ ctx[22].menu_item_icon + "")) span.innerHTML = raw_value; },
5188
5205
  d: function destroy(detaching) {
5189
5206
  if (detaching) detach_dev(span);
5190
5207
  }
@@ -5194,20 +5211,20 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5194
5211
  block,
5195
5212
  id: create_if_block_2.name,
5196
5213
  type: "if",
5197
- source: "(94:12) {#if switchToDefaultDataSets}",
5214
+ source: "(115:12) {#if switchToDefaultDataSets}",
5198
5215
  ctx
5199
5216
  });
5200
5217
 
5201
5218
  return block;
5202
5219
  }
5203
5220
 
5204
- // (91:6) {#each availableMenuItemsArray as menuItem}
5221
+ // (112:6) {#each availableMenuItemsArray as menuItem}
5205
5222
  function create_each_block(ctx) {
5206
5223
  let div;
5207
5224
  let p;
5208
5225
  let t0;
5209
5226
  let span;
5210
- let t1_value = /*menuItem*/ ctx[18].title + "";
5227
+ let t1_value = /*menuItem*/ ctx[22].title + "";
5211
5228
  let t1;
5212
5229
  let t2;
5213
5230
  let div_class_value;
@@ -5223,7 +5240,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5223
5240
  let if_block = current_block_type(ctx);
5224
5241
 
5225
5242
  function click_handler() {
5226
- return /*click_handler*/ ctx[9](/*menuItem*/ ctx[18]);
5243
+ return /*click_handler*/ ctx[12](/*menuItem*/ ctx[22]);
5227
5244
  }
5228
5245
 
5229
5246
  const block = {
@@ -5236,15 +5253,15 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5236
5253
  t1 = text(t1_value);
5237
5254
  t2 = space();
5238
5255
  attr_dev(span, "class", "PlayerAccountMenuItemTitle");
5239
- add_location(span, file, 98, 12, 3888);
5256
+ add_location(span, file, 119, 12, 4418);
5240
5257
  attr_dev(p, "class", "PlayerAccountMenuItemWrapper");
5241
- add_location(p, file, 92, 10, 3410);
5258
+ add_location(p, file, 113, 10, 3940);
5242
5259
 
5243
- attr_dev(div, "class", div_class_value = "PlayerAccountMenuItemBox " + (/*selected*/ ctx[3] === /*menuItem*/ ctx[18].ID && !/*isMobile*/ ctx[6]
5260
+ attr_dev(div, "class", div_class_value = "PlayerAccountMenuItemBox " + (/*selected*/ ctx[3] === /*menuItem*/ ctx[22].ID && !/*isMobile*/ ctx[8]
5244
5261
  ? "PlayerAccountMenuActiveItemBox"
5245
5262
  : ""));
5246
5263
 
5247
- add_location(div, file, 91, 8, 3230);
5264
+ add_location(div, file, 112, 8, 3760);
5248
5265
  },
5249
5266
  m: function mount(target, anchor) {
5250
5267
  insert_dev(target, div, anchor);
@@ -5275,9 +5292,9 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5275
5292
  }
5276
5293
  }
5277
5294
 
5278
- if (dirty & /*availableMenuItemsArray*/ 4 && t1_value !== (t1_value = /*menuItem*/ ctx[18].title + "")) set_data_dev(t1, t1_value);
5295
+ if (dirty & /*availableMenuItemsArray*/ 4 && t1_value !== (t1_value = /*menuItem*/ ctx[22].title + "")) set_data_dev(t1, t1_value);
5279
5296
 
5280
- if (dirty & /*selected, availableMenuItemsArray*/ 12 && div_class_value !== (div_class_value = "PlayerAccountMenuItemBox " + (/*selected*/ ctx[3] === /*menuItem*/ ctx[18].ID && !/*isMobile*/ ctx[6]
5297
+ if (dirty & /*selected, availableMenuItemsArray*/ 12 && div_class_value !== (div_class_value = "PlayerAccountMenuItemBox " + (/*selected*/ ctx[3] === /*menuItem*/ ctx[22].ID && !/*isMobile*/ ctx[8]
5281
5298
  ? "PlayerAccountMenuActiveItemBox"
5282
5299
  : ""))) {
5283
5300
  attr_dev(div, "class", div_class_value);
@@ -5295,14 +5312,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5295
5312
  block,
5296
5313
  id: create_each_block.name,
5297
5314
  type: "each",
5298
- source: "(91:6) {#each availableMenuItemsArray as menuItem}",
5315
+ source: "(112:6) {#each availableMenuItemsArray as menuItem}",
5299
5316
  ctx
5300
5317
  });
5301
5318
 
5302
5319
  return block;
5303
5320
  }
5304
5321
 
5305
- // (104:4) {#if !isMobile}
5322
+ // (125:4) {#if !isMobile}
5306
5323
  function create_if_block_1(ctx) {
5307
5324
  let div;
5308
5325
  let general_logout;
@@ -5314,9 +5331,9 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5314
5331
  set_custom_element_data(general_logout, "endpoint", /*endpoint*/ ctx[1]);
5315
5332
  set_custom_element_data(general_logout, "session", /*session*/ ctx[0]);
5316
5333
  set_custom_element_data(general_logout, "buttonlocation", "PlayerAccountMenu");
5317
- add_location(general_logout, file, 105, 8, 4080);
5334
+ add_location(general_logout, file, 126, 8, 4610);
5318
5335
  attr_dev(div, "class", "PlayerAccountLogOutArea");
5319
- add_location(div, file, 104, 6, 4034);
5336
+ add_location(div, file, 125, 6, 4564);
5320
5337
  },
5321
5338
  m: function mount(target, anchor) {
5322
5339
  insert_dev(target, div, anchor);
@@ -5340,7 +5357,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5340
5357
  block,
5341
5358
  id: create_if_block_1.name,
5342
5359
  type: "if",
5343
- source: "(104:4) {#if !isMobile}",
5360
+ source: "(125:4) {#if !isMobile}",
5344
5361
  ctx
5345
5362
  });
5346
5363
 
@@ -5351,7 +5368,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5351
5368
  let if_block_anchor;
5352
5369
 
5353
5370
  function select_block_type(ctx, dirty) {
5354
- if (/*isLoading*/ ctx[5]) return create_if_block;
5371
+ if (/*isLoading*/ ctx[7]) return create_if_block;
5355
5372
  return create_else_block;
5356
5373
  }
5357
5374
 
@@ -5398,6 +5415,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5398
5415
  validate_slots("undefined", slots, []);
5399
5416
  let { endpoint = "" } = $$props;
5400
5417
  let { session = "" } = $$props;
5418
+ let { playerid = "" } = $$props;
5401
5419
  let isLoading = false;
5402
5420
  let availableMenuItemsArray = [];
5403
5421
  let selected = 0;
@@ -5406,6 +5424,8 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5406
5424
  let defaultMenuItemsArray = [];
5407
5425
  let switchToDefaultDataSets = true;
5408
5426
  let sessionId = "";
5427
+ let profileUsername = "";
5428
+ let profileEmail = "";
5409
5429
  const mediaQuery = window.matchMedia("(min-width: 768px)");
5410
5430
 
5411
5431
  onMount(() => {
@@ -5431,6 +5451,26 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5431
5451
  }
5432
5452
  };
5433
5453
 
5454
+ const getPlayerInfo = () => {
5455
+ let options = {
5456
+ method: "GET",
5457
+ headers: {
5458
+ "playerId": playerid,
5459
+ "X-SessionID": session
5460
+ }
5461
+ };
5462
+
5463
+ fetch(`${endpoint}/player/${playerid}/profile`, options).then(res => res.json()).then(
5464
+ data => {
5465
+ $$invalidate(5, profileUsername = data.username);
5466
+ $$invalidate(6, profileEmail = data.email);
5467
+ },
5468
+ err => {
5469
+ console.error(err);
5470
+ }
5471
+ );
5472
+ };
5473
+
5434
5474
  const adjustContentToDevice = () => {
5435
5475
  defaultMenuItemsArray = [
5436
5476
  {
@@ -5491,12 +5531,13 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5491
5531
 
5492
5532
  const initialLoad = () => {
5493
5533
  adjustContentToDevice();
5534
+ getPlayerInfo();
5494
5535
  };
5495
5536
 
5496
- const writable_props = ["endpoint", "session"];
5537
+ const writable_props = ["endpoint", "session", "playerid"];
5497
5538
 
5498
5539
  Object.keys($$props).forEach(key => {
5499
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
5540
+ if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console_1.warn(`<undefined> was created with unknown prop '${key}'`);
5500
5541
  });
5501
5542
 
5502
5543
  const click_handler = menuItem => openAccountSection(menuItem);
@@ -5504,6 +5545,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5504
5545
  $$self.$$set = $$props => {
5505
5546
  if ("endpoint" in $$props) $$invalidate(1, endpoint = $$props.endpoint);
5506
5547
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
5548
+ if ("playerid" in $$props) $$invalidate(11, playerid = $$props.playerid);
5507
5549
  };
5508
5550
 
5509
5551
  $$self.$capture_state = () => ({
@@ -5512,6 +5554,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5512
5554
  generalIcon,
5513
5555
  endpoint,
5514
5556
  session,
5557
+ playerid,
5515
5558
  isLoading,
5516
5559
  availableMenuItemsArray,
5517
5560
  selected,
@@ -5520,8 +5563,11 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5520
5563
  defaultMenuItemsArray,
5521
5564
  switchToDefaultDataSets,
5522
5565
  sessionId,
5566
+ profileUsername,
5567
+ profileEmail,
5523
5568
  mediaQuery,
5524
5569
  messageHandler,
5570
+ getPlayerInfo,
5525
5571
  adjustContentToDevice,
5526
5572
  loadMenuItems,
5527
5573
  openAccountSection,
@@ -5532,14 +5578,17 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5532
5578
  $$self.$inject_state = $$props => {
5533
5579
  if ("endpoint" in $$props) $$invalidate(1, endpoint = $$props.endpoint);
5534
5580
  if ("session" in $$props) $$invalidate(0, session = $$props.session);
5535
- if ("isLoading" in $$props) $$invalidate(5, isLoading = $$props.isLoading);
5581
+ if ("playerid" in $$props) $$invalidate(11, playerid = $$props.playerid);
5582
+ if ("isLoading" in $$props) $$invalidate(7, isLoading = $$props.isLoading);
5536
5583
  if ("availableMenuItemsArray" in $$props) $$invalidate(2, availableMenuItemsArray = $$props.availableMenuItemsArray);
5537
5584
  if ("selected" in $$props) $$invalidate(3, selected = $$props.selected);
5538
5585
  if ("userAgent" in $$props) userAgent = $$props.userAgent;
5539
- if ("isMobile" in $$props) $$invalidate(6, isMobile = $$props.isMobile);
5586
+ if ("isMobile" in $$props) $$invalidate(8, isMobile = $$props.isMobile);
5540
5587
  if ("defaultMenuItemsArray" in $$props) defaultMenuItemsArray = $$props.defaultMenuItemsArray;
5541
5588
  if ("switchToDefaultDataSets" in $$props) $$invalidate(4, switchToDefaultDataSets = $$props.switchToDefaultDataSets);
5542
5589
  if ("sessionId" in $$props) sessionId = $$props.sessionId;
5590
+ if ("profileUsername" in $$props) $$invalidate(5, profileUsername = $$props.profileUsername);
5591
+ if ("profileEmail" in $$props) $$invalidate(6, profileEmail = $$props.profileEmail);
5543
5592
  };
5544
5593
 
5545
5594
  if ($$props && "$$inject" in $$props) {
@@ -5547,8 +5596,8 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5547
5596
  }
5548
5597
 
5549
5598
  $$self.$$.update = () => {
5550
- if ($$self.$$.dirty & /*endpoint, session*/ 3) {
5551
- endpoint && session && initialLoad();
5599
+ if ($$self.$$.dirty & /*endpoint, session, playerid*/ 2051) {
5600
+ endpoint && session && playerid && initialLoad();
5552
5601
  }
5553
5602
  };
5554
5603
 
@@ -5558,10 +5607,13 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5558
5607
  availableMenuItemsArray,
5559
5608
  selected,
5560
5609
  switchToDefaultDataSets,
5610
+ profileUsername,
5611
+ profileEmail,
5561
5612
  isLoading,
5562
5613
  isMobile,
5563
5614
  mediaQuery,
5564
5615
  openAccountSection,
5616
+ playerid,
5565
5617
  click_handler
5566
5618
  ];
5567
5619
  }
@@ -5569,7 +5621,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5569
5621
  class PlayerAccountMenu extends SvelteElement {
5570
5622
  constructor(options) {
5571
5623
  super();
5572
- this.shadowRoot.innerHTML = `<style>.PlayerAccountMenuContainer{color:#fff;position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:#FFF;flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #FFFFFF4A}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:unset;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:40px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c9c9c9 #58586B}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:#58586B}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:#c9c9c9}.PlayerAccountLogOutArea{background:#58586B;color:#fff;width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:#07072A;border-bottom:1px solid #07072A}.PlayerAccountMobileContainer{height:unset;color:#07072A}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:18px}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid #2F313E;border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:#D0046C;border-bottom:1px solid #D0046C}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:40px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:10px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:14px;padding:0 5px 15px 5px;font-weight:600;word-break:break-word;text-align:center;color:#FFF}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>`;
5624
+ this.shadowRoot.innerHTML = `<style>.PlayerAccountMenuContainer{color:#fff;position:relative;height:100vh;display:flex;flex-direction:column}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper{margin:0;word-break:break-all;display:flex;align-items:center}.PlayerAccountMenuContainer .PlayerAccountMenuItemWrapper span{display:flex;align-items:center}.PlayerAccountMenuHeader{color:#FFF;flex-grow:0;padding:30px 20px}.PlayerAccountMenuHeader .PlayerAccountMenuUser{margin-bottom:5px;font-size:18px}.PlayerAccountMenuHeader .PlayerAccountMenuEmail{font-size:14px}.PlayerAccountMenuHeader p{font-weight:300}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerAccountMenuItemTitle{margin-left:20px}.PlayerAccountMenuItemBox:not(:last-child){border-bottom:1px solid #FFFFFF4A}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:unset;padding-top:unset}.PlayerAccountMenuItemBox .PlayerAccountMenuItemIconMobile{width:40px;padding-top:15px}.PlayerAccountMenuList{flex-grow:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c9c9c9 #58586B}.PlayerAccountMenuList::-webkit-scrollbar{width:6px}.PlayerAccountMenuList::-webkit-scrollbar-track{background:#58586B}.PlayerAccountMenuList::-webkit-scrollbar-thumb{background:#c9c9c9}.PlayerAccountLogOutArea{background:#58586B;color:#fff;width:100%;flex-grow:0}.PlayerAccountMenuActiveItemBox{background:#07072A;border-bottom:1px solid #07072A}.PlayerAccountMobileContainer{height:unset;color:#07072A}.PlayerAccountMobileContainer .PlayerAccountMenuCategoryTitle{margin-top:0;font-weight:600}.PlayerAccountMobileContainer .PlayerAccountMenuItemTitle{margin-left:0;text-transform:capitalize;line-height:18px}.PlayerAccountMobileContainer .PlayerAccountMenuEmail{margin:0}.PlayerAccountMobileContainer .PlayerAccountMenuList{display:grid;grid-template-columns:calc(33% - 6.66px) calc(33% - 6.66px) calc(33% - 6.66px);column-gap:10px;row-gap:10px;padding:0 20px 20px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox{border:1px solid #2F313E;border-radius:5px;height:auto;justify-content:center;padding-bottom:calc(100% - 22px);position:relative}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox.PlayerAccountMenuActiveItemBox{background:#D0046C;border-bottom:1px solid #D0046C}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:40px}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{display:flex;align-items:center;justify-content:space-between;flex-flow:column;gap:10px;position:absolute;top:0;bottom:0;left:0;right:0}.PlayerAccountMobileContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:14px;padding:0 5px 15px 5px;font-weight:600;word-break:break-word;text-align:center;color:#FFF}.PlayerAccountMobileContainer .PlayerAccountLogOutArea{position:absolute;right:18px;top:56px;bottom:unset;background:transparent;width:48px}.PlayerAccountTabletContainer .PlayerAccountMenuHeader{padding:30px 40px}.PlayerAccountTabletContainer .PlayerAccountMenuCategoryTitle{font-size:32px}.PlayerAccountTabletContainer .PlayerAccountMenuUser{font-size:26px}.PlayerAccountTabletContainer .PlayerAccountMenuEmail{font-size:20px}.PlayerAccountTabletContainer .PlayerAccountMenuList{column-gap:20px;row-gap:20px;padding:0 40px 40px;grid-template-columns:calc(33% - 11px) calc(33% - 11px) calc(33% - 11px)}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemBox .PlayerAccountMenuItemIcon{width:80px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper{gap:28px}.PlayerAccountTabletContainer .PlayerAccountMenuList .PlayerAccountMenuItemWrapper .PlayerAccountMenuItemTitle{font-size:24px}.PlayerAccountTabletContainer .PlayerAccountLogOutArea{right:54px;top:72px}</style>`;
5573
5625
 
5574
5626
  init(
5575
5627
  this,
@@ -5581,7 +5633,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5581
5633
  instance,
5582
5634
  create_fragment,
5583
5635
  safe_not_equal,
5584
- { endpoint: 1, session: 0 }
5636
+ { endpoint: 1, session: 0, playerid: 11 }
5585
5637
  );
5586
5638
 
5587
5639
  if (options) {
@@ -5597,7 +5649,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5597
5649
  }
5598
5650
 
5599
5651
  static get observedAttributes() {
5600
- return ["endpoint", "session"];
5652
+ return ["endpoint", "session", "playerid"];
5601
5653
  }
5602
5654
 
5603
5655
  get endpoint() {
@@ -5617,6 +5669,15 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
5617
5669
  this.$set({ session });
5618
5670
  flush();
5619
5671
  }
5672
+
5673
+ get playerid() {
5674
+ return this.$$.ctx[11];
5675
+ }
5676
+
5677
+ set playerid(playerid) {
5678
+ this.$set({ playerid });
5679
+ flush();
5680
+ }
5620
5681
  }
5621
5682
 
5622
5683
  !customElements.get('player-account-menu') && customElements.define('player-account-menu', PlayerAccountMenu);