@everymatrix/player-account-controller 0.0.124 → 0.0.128
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.
|
@@ -22775,7 +22775,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22775
22775
|
const { console: console_1 } = globals;
|
|
22776
22776
|
const file = "src/PlayerAccountController.svelte";
|
|
22777
22777
|
|
|
22778
|
-
// (
|
|
22778
|
+
// (236:0) {:else}
|
|
22779
22779
|
function create_else_block(ctx) {
|
|
22780
22780
|
let section;
|
|
22781
22781
|
|
|
@@ -22792,7 +22792,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22792
22792
|
section = element("section");
|
|
22793
22793
|
if_block.c();
|
|
22794
22794
|
attr_dev(section, "class", "PlayerAccountPage " + (/*isMobile*/ ctx[6] ? "PlayerAccountMobilePage" : ""));
|
|
22795
|
-
add_location(section, file,
|
|
22795
|
+
add_location(section, file, 236, 0, 8785);
|
|
22796
22796
|
},
|
|
22797
22797
|
m: function mount(target, anchor) {
|
|
22798
22798
|
insert_dev(target, section, anchor);
|
|
@@ -22811,14 +22811,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22811
22811
|
block,
|
|
22812
22812
|
id: create_else_block.name,
|
|
22813
22813
|
type: "else",
|
|
22814
|
-
source: "(
|
|
22814
|
+
source: "(236:0) {:else}",
|
|
22815
22815
|
ctx
|
|
22816
22816
|
});
|
|
22817
22817
|
|
|
22818
22818
|
return block;
|
|
22819
22819
|
}
|
|
22820
22820
|
|
|
22821
|
-
// (
|
|
22821
|
+
// (234:0) {#if isLoading}
|
|
22822
22822
|
function create_if_block(ctx) {
|
|
22823
22823
|
let div;
|
|
22824
22824
|
|
|
@@ -22826,7 +22826,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22826
22826
|
c: function create() {
|
|
22827
22827
|
div = element("div");
|
|
22828
22828
|
attr_dev(div, "class", "ModalLoader");
|
|
22829
|
-
add_location(div, file,
|
|
22829
|
+
add_location(div, file, 234, 2, 8745);
|
|
22830
22830
|
},
|
|
22831
22831
|
m: function mount(target, anchor) {
|
|
22832
22832
|
insert_dev(target, div, anchor);
|
|
@@ -22841,14 +22841,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22841
22841
|
block,
|
|
22842
22842
|
id: create_if_block.name,
|
|
22843
22843
|
type: "if",
|
|
22844
|
-
source: "(
|
|
22844
|
+
source: "(234:0) {#if isLoading}",
|
|
22845
22845
|
ctx
|
|
22846
22846
|
});
|
|
22847
22847
|
|
|
22848
22848
|
return block;
|
|
22849
22849
|
}
|
|
22850
22850
|
|
|
22851
|
-
// (
|
|
22851
|
+
// (257:4) {:else}
|
|
22852
22852
|
function create_else_block_1(ctx) {
|
|
22853
22853
|
let nav;
|
|
22854
22854
|
let player_account_menu;
|
|
@@ -22881,12 +22881,12 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22881
22881
|
player_account_notifications = element("player-account-notifications");
|
|
22882
22882
|
set_custom_element_data(player_account_menu, "endpoint", /*endpoint*/ ctx[2]);
|
|
22883
22883
|
set_custom_element_data(player_account_menu, "session", /*session*/ ctx[1]);
|
|
22884
|
-
add_location(player_account_menu, file,
|
|
22885
|
-
add_location(nav, file,
|
|
22886
|
-
add_location(main, file,
|
|
22884
|
+
add_location(player_account_menu, file, 258, 8, 9826);
|
|
22885
|
+
add_location(nav, file, 257, 6, 9812);
|
|
22886
|
+
add_location(main, file, 260, 6, 9910);
|
|
22887
22887
|
set_custom_element_data(player_account_notifications, "customnotif", /*customnotifications*/ ctx[0]);
|
|
22888
|
-
add_location(player_account_notifications, file,
|
|
22889
|
-
add_location(aside, file,
|
|
22888
|
+
add_location(player_account_notifications, file, 274, 8, 10572);
|
|
22889
|
+
add_location(aside, file, 273, 6, 10556);
|
|
22890
22890
|
},
|
|
22891
22891
|
m: function mount(target, anchor) {
|
|
22892
22892
|
insert_dev(target, nav, anchor);
|
|
@@ -22939,14 +22939,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22939
22939
|
block,
|
|
22940
22940
|
id: create_else_block_1.name,
|
|
22941
22941
|
type: "else",
|
|
22942
|
-
source: "(
|
|
22942
|
+
source: "(257:4) {:else}",
|
|
22943
22943
|
ctx
|
|
22944
22944
|
});
|
|
22945
22945
|
|
|
22946
22946
|
return block;
|
|
22947
22947
|
}
|
|
22948
22948
|
|
|
22949
|
-
// (
|
|
22949
|
+
// (238:4) {#if isMobile}
|
|
22950
22950
|
function create_if_block_1(ctx) {
|
|
22951
22951
|
let if_block_anchor;
|
|
22952
22952
|
|
|
@@ -22997,21 +22997,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
22997
22997
|
block,
|
|
22998
22998
|
id: create_if_block_1.name,
|
|
22999
22999
|
type: "if",
|
|
23000
|
-
source: "(
|
|
23000
|
+
source: "(238:4) {#if isMobile}",
|
|
23001
23001
|
ctx
|
|
23002
23002
|
});
|
|
23003
23003
|
|
|
23004
23004
|
return block;
|
|
23005
23005
|
}
|
|
23006
23006
|
|
|
23007
|
-
// (
|
|
23007
|
+
// (270:63)
|
|
23008
23008
|
function create_if_block_12(ctx) {
|
|
23009
23009
|
let player_account_closure;
|
|
23010
23010
|
|
|
23011
23011
|
const block = {
|
|
23012
23012
|
c: function create() {
|
|
23013
23013
|
player_account_closure = element("player-account-closure");
|
|
23014
|
-
add_location(player_account_closure, file,
|
|
23014
|
+
add_location(player_account_closure, file, 270, 10, 10472);
|
|
23015
23015
|
},
|
|
23016
23016
|
m: function mount(target, anchor) {
|
|
23017
23017
|
insert_dev(target, player_account_closure, anchor);
|
|
@@ -23025,21 +23025,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23025
23025
|
block,
|
|
23026
23026
|
id: create_if_block_12.name,
|
|
23027
23027
|
type: "if",
|
|
23028
|
-
source: "(
|
|
23028
|
+
source: "(270:63) ",
|
|
23029
23029
|
ctx
|
|
23030
23030
|
});
|
|
23031
23031
|
|
|
23032
23032
|
return block;
|
|
23033
23033
|
}
|
|
23034
23034
|
|
|
23035
|
-
// (
|
|
23035
|
+
// (268:63)
|
|
23036
23036
|
function create_if_block_11(ctx) {
|
|
23037
23037
|
let player_account_timeout;
|
|
23038
23038
|
|
|
23039
23039
|
const block = {
|
|
23040
23040
|
c: function create() {
|
|
23041
23041
|
player_account_timeout = element("player-account-timeout");
|
|
23042
|
-
add_location(player_account_timeout, file,
|
|
23042
|
+
add_location(player_account_timeout, file, 268, 10, 10348);
|
|
23043
23043
|
},
|
|
23044
23044
|
m: function mount(target, anchor) {
|
|
23045
23045
|
insert_dev(target, player_account_timeout, anchor);
|
|
@@ -23053,21 +23053,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23053
23053
|
block,
|
|
23054
23054
|
id: create_if_block_11.name,
|
|
23055
23055
|
type: "if",
|
|
23056
|
-
source: "(
|
|
23056
|
+
source: "(268:63) ",
|
|
23057
23057
|
ctx
|
|
23058
23058
|
});
|
|
23059
23059
|
|
|
23060
23060
|
return block;
|
|
23061
23061
|
}
|
|
23062
23062
|
|
|
23063
|
-
// (
|
|
23063
|
+
// (266:63)
|
|
23064
23064
|
function create_if_block_10(ctx) {
|
|
23065
23065
|
let player_reality_check;
|
|
23066
23066
|
|
|
23067
23067
|
const block = {
|
|
23068
23068
|
c: function create() {
|
|
23069
23069
|
player_reality_check = element("player-reality-check");
|
|
23070
|
-
add_location(player_reality_check, file,
|
|
23070
|
+
add_location(player_reality_check, file, 266, 10, 10228);
|
|
23071
23071
|
},
|
|
23072
23072
|
m: function mount(target, anchor) {
|
|
23073
23073
|
insert_dev(target, player_reality_check, anchor);
|
|
@@ -23081,21 +23081,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23081
23081
|
block,
|
|
23082
23082
|
id: create_if_block_10.name,
|
|
23083
23083
|
type: "if",
|
|
23084
|
-
source: "(
|
|
23084
|
+
source: "(266:63) ",
|
|
23085
23085
|
ctx
|
|
23086
23086
|
});
|
|
23087
23087
|
|
|
23088
23088
|
return block;
|
|
23089
23089
|
}
|
|
23090
23090
|
|
|
23091
|
-
// (
|
|
23091
|
+
// (264:63)
|
|
23092
23092
|
function create_if_block_9(ctx) {
|
|
23093
23093
|
let player_profile_info;
|
|
23094
23094
|
|
|
23095
23095
|
const block = {
|
|
23096
23096
|
c: function create() {
|
|
23097
23097
|
player_profile_info = element("player-profile-info");
|
|
23098
|
-
add_location(player_profile_info, file,
|
|
23098
|
+
add_location(player_profile_info, file, 264, 10, 10110);
|
|
23099
23099
|
},
|
|
23100
23100
|
m: function mount(target, anchor) {
|
|
23101
23101
|
insert_dev(target, player_profile_info, anchor);
|
|
@@ -23109,21 +23109,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23109
23109
|
block,
|
|
23110
23110
|
id: create_if_block_9.name,
|
|
23111
23111
|
type: "if",
|
|
23112
|
-
source: "(
|
|
23112
|
+
source: "(264:63) ",
|
|
23113
23113
|
ctx
|
|
23114
23114
|
});
|
|
23115
23115
|
|
|
23116
23116
|
return block;
|
|
23117
23117
|
}
|
|
23118
23118
|
|
|
23119
|
-
// (
|
|
23119
|
+
// (262:8) {#if switchContent && pageName === widgetTitle[1]}
|
|
23120
23120
|
function create_if_block_8(ctx) {
|
|
23121
23121
|
let player_change_password;
|
|
23122
23122
|
|
|
23123
23123
|
const block = {
|
|
23124
23124
|
c: function create() {
|
|
23125
23125
|
player_change_password = element("player-change-password");
|
|
23126
|
-
add_location(player_change_password, file,
|
|
23126
|
+
add_location(player_change_password, file, 262, 10, 9986);
|
|
23127
23127
|
},
|
|
23128
23128
|
m: function mount(target, anchor) {
|
|
23129
23129
|
insert_dev(target, player_change_password, anchor);
|
|
@@ -23137,21 +23137,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23137
23137
|
block,
|
|
23138
23138
|
id: create_if_block_8.name,
|
|
23139
23139
|
type: "if",
|
|
23140
|
-
source: "(
|
|
23140
|
+
source: "(262:8) {#if switchContent && pageName === widgetTitle[1]}",
|
|
23141
23141
|
ctx
|
|
23142
23142
|
});
|
|
23143
23143
|
|
|
23144
23144
|
return block;
|
|
23145
23145
|
}
|
|
23146
23146
|
|
|
23147
|
-
// (
|
|
23147
|
+
// (253:63)
|
|
23148
23148
|
function create_if_block_7(ctx) {
|
|
23149
23149
|
let player_account_closure;
|
|
23150
23150
|
|
|
23151
23151
|
const block = {
|
|
23152
23152
|
c: function create() {
|
|
23153
23153
|
player_account_closure = element("player-account-closure");
|
|
23154
|
-
add_location(player_account_closure, file,
|
|
23154
|
+
add_location(player_account_closure, file, 253, 10, 9718);
|
|
23155
23155
|
},
|
|
23156
23156
|
m: function mount(target, anchor) {
|
|
23157
23157
|
insert_dev(target, player_account_closure, anchor);
|
|
@@ -23166,21 +23166,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23166
23166
|
block,
|
|
23167
23167
|
id: create_if_block_7.name,
|
|
23168
23168
|
type: "if",
|
|
23169
|
-
source: "(
|
|
23169
|
+
source: "(253:63) ",
|
|
23170
23170
|
ctx
|
|
23171
23171
|
});
|
|
23172
23172
|
|
|
23173
23173
|
return block;
|
|
23174
23174
|
}
|
|
23175
23175
|
|
|
23176
|
-
// (
|
|
23176
|
+
// (251:63)
|
|
23177
23177
|
function create_if_block_6(ctx) {
|
|
23178
23178
|
let player_account_timeout;
|
|
23179
23179
|
|
|
23180
23180
|
const block = {
|
|
23181
23181
|
c: function create() {
|
|
23182
23182
|
player_account_timeout = element("player-account-timeout");
|
|
23183
|
-
add_location(player_account_timeout, file,
|
|
23183
|
+
add_location(player_account_timeout, file, 251, 10, 9594);
|
|
23184
23184
|
},
|
|
23185
23185
|
m: function mount(target, anchor) {
|
|
23186
23186
|
insert_dev(target, player_account_timeout, anchor);
|
|
@@ -23195,21 +23195,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23195
23195
|
block,
|
|
23196
23196
|
id: create_if_block_6.name,
|
|
23197
23197
|
type: "if",
|
|
23198
|
-
source: "(
|
|
23198
|
+
source: "(251:63) ",
|
|
23199
23199
|
ctx
|
|
23200
23200
|
});
|
|
23201
23201
|
|
|
23202
23202
|
return block;
|
|
23203
23203
|
}
|
|
23204
23204
|
|
|
23205
|
-
// (
|
|
23205
|
+
// (249:63)
|
|
23206
23206
|
function create_if_block_5(ctx) {
|
|
23207
23207
|
let player_reality_check;
|
|
23208
23208
|
|
|
23209
23209
|
const block = {
|
|
23210
23210
|
c: function create() {
|
|
23211
23211
|
player_reality_check = element("player-reality-check");
|
|
23212
|
-
add_location(player_reality_check, file,
|
|
23212
|
+
add_location(player_reality_check, file, 249, 10, 9474);
|
|
23213
23213
|
},
|
|
23214
23214
|
m: function mount(target, anchor) {
|
|
23215
23215
|
insert_dev(target, player_reality_check, anchor);
|
|
@@ -23224,21 +23224,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23224
23224
|
block,
|
|
23225
23225
|
id: create_if_block_5.name,
|
|
23226
23226
|
type: "if",
|
|
23227
|
-
source: "(
|
|
23227
|
+
source: "(249:63) ",
|
|
23228
23228
|
ctx
|
|
23229
23229
|
});
|
|
23230
23230
|
|
|
23231
23231
|
return block;
|
|
23232
23232
|
}
|
|
23233
23233
|
|
|
23234
|
-
// (
|
|
23234
|
+
// (247:63)
|
|
23235
23235
|
function create_if_block_4(ctx) {
|
|
23236
23236
|
let player_profile_info;
|
|
23237
23237
|
|
|
23238
23238
|
const block = {
|
|
23239
23239
|
c: function create() {
|
|
23240
23240
|
player_profile_info = element("player-profile-info");
|
|
23241
|
-
add_location(player_profile_info, file,
|
|
23241
|
+
add_location(player_profile_info, file, 247, 10, 9356);
|
|
23242
23242
|
},
|
|
23243
23243
|
m: function mount(target, anchor) {
|
|
23244
23244
|
insert_dev(target, player_profile_info, anchor);
|
|
@@ -23253,21 +23253,21 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23253
23253
|
block,
|
|
23254
23254
|
id: create_if_block_4.name,
|
|
23255
23255
|
type: "if",
|
|
23256
|
-
source: "(
|
|
23256
|
+
source: "(247:63) ",
|
|
23257
23257
|
ctx
|
|
23258
23258
|
});
|
|
23259
23259
|
|
|
23260
23260
|
return block;
|
|
23261
23261
|
}
|
|
23262
23262
|
|
|
23263
|
-
// (
|
|
23263
|
+
// (245:8) {#if switchContent && pageName === widgetTitle[1]}
|
|
23264
23264
|
function create_if_block_3(ctx) {
|
|
23265
23265
|
let player_change_password;
|
|
23266
23266
|
|
|
23267
23267
|
const block = {
|
|
23268
23268
|
c: function create() {
|
|
23269
23269
|
player_change_password = element("player-change-password");
|
|
23270
|
-
add_location(player_change_password, file,
|
|
23270
|
+
add_location(player_change_password, file, 245, 10, 9232);
|
|
23271
23271
|
},
|
|
23272
23272
|
m: function mount(target, anchor) {
|
|
23273
23273
|
insert_dev(target, player_change_password, anchor);
|
|
@@ -23282,14 +23282,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23282
23282
|
block,
|
|
23283
23283
|
id: create_if_block_3.name,
|
|
23284
23284
|
type: "if",
|
|
23285
|
-
source: "(
|
|
23285
|
+
source: "(245:8) {#if switchContent && pageName === widgetTitle[1]}",
|
|
23286
23286
|
ctx
|
|
23287
23287
|
});
|
|
23288
23288
|
|
|
23289
23289
|
return block;
|
|
23290
23290
|
}
|
|
23291
23291
|
|
|
23292
|
-
// (
|
|
23292
|
+
// (239:6) {#if !switchContent}
|
|
23293
23293
|
function create_if_block_2(ctx) {
|
|
23294
23294
|
let nav;
|
|
23295
23295
|
let player_account_menu;
|
|
@@ -23304,11 +23304,11 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23304
23304
|
player_account_notifications = element("player-account-notifications");
|
|
23305
23305
|
set_custom_element_data(player_account_menu, "endpoint", /*endpoint*/ ctx[2]);
|
|
23306
23306
|
set_custom_element_data(player_account_menu, "session", /*session*/ ctx[1]);
|
|
23307
|
-
add_location(player_account_menu, file,
|
|
23307
|
+
add_location(player_account_menu, file, 240, 10, 8963);
|
|
23308
23308
|
set_custom_element_data(player_account_notifications, "customnotif", /*customnotifications*/ ctx[0]);
|
|
23309
|
-
add_location(player_account_notifications, file,
|
|
23309
|
+
add_location(player_account_notifications, file, 241, 10, 9038);
|
|
23310
23310
|
attr_dev(nav, "class", "PlayerAccountMobile");
|
|
23311
|
-
add_location(nav, file,
|
|
23311
|
+
add_location(nav, file, 239, 8, 8919);
|
|
23312
23312
|
},
|
|
23313
23313
|
m: function mount(target, anchor) {
|
|
23314
23314
|
insert_dev(target, nav, anchor);
|
|
@@ -23338,7 +23338,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23338
23338
|
block,
|
|
23339
23339
|
id: create_if_block_2.name,
|
|
23340
23340
|
type: "if",
|
|
23341
|
-
source: "(
|
|
23341
|
+
source: "(239:6) {#if !switchContent}",
|
|
23342
23342
|
ctx
|
|
23343
23343
|
});
|
|
23344
23344
|
|
|
@@ -23394,6 +23394,13 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23394
23394
|
function instance($$self, $$props, $$invalidate) {
|
|
23395
23395
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
23396
23396
|
validate_slots("undefined", slots, []);
|
|
23397
|
+
let { cmsendpoint = "" } = $$props;
|
|
23398
|
+
let { accountpath = "" } = $$props;
|
|
23399
|
+
let { notificationpath = "" } = $$props;
|
|
23400
|
+
let { customnotifications = "" } = $$props;
|
|
23401
|
+
let { playerid = "" } = $$props;
|
|
23402
|
+
let { session = "" } = $$props;
|
|
23403
|
+
let { endpoint = "" } = $$props;
|
|
23397
23404
|
let isLoading = false;
|
|
23398
23405
|
let userAgent = window.navigator.userAgent;
|
|
23399
23406
|
let isMobile = getDevice(userAgent) === "PC" ? false : true;
|
|
@@ -23401,10 +23408,9 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23401
23408
|
let notificationsData = [];
|
|
23402
23409
|
let userId = "";
|
|
23403
23410
|
let sessionId = "";
|
|
23404
|
-
let profileUrl = "https://demo-api.stage.norway.everymatrix.com/v1/player/";
|
|
23405
23411
|
let pageName = "";
|
|
23406
23412
|
|
|
23407
|
-
|
|
23413
|
+
const widgetTitle = [
|
|
23408
23414
|
"Profile Info",
|
|
23409
23415
|
"Change password",
|
|
23410
23416
|
"Reality Check",
|
|
@@ -23412,25 +23418,10 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23412
23418
|
"Account Closure"
|
|
23413
23419
|
];
|
|
23414
23420
|
|
|
23415
|
-
let { cmsendpoint } = $$props;
|
|
23416
|
-
let { accountpath } = $$props;
|
|
23417
|
-
let { notificationpath } = $$props;
|
|
23418
|
-
let { customnotifications } = $$props;
|
|
23419
|
-
let { playerid } = $$props;
|
|
23420
|
-
let { session } = $$props;
|
|
23421
|
-
let { endpoint } = $$props;
|
|
23422
23421
|
const accountMenuEndpointURL = cmsendpoint + accountpath;
|
|
23423
23422
|
const notificationsEndpointURL = cmsendpoint + notificationpath;
|
|
23424
23423
|
let switchContent = false;
|
|
23425
23424
|
|
|
23426
|
-
onMount(() => {
|
|
23427
|
-
window.addEventListener("message", messageHandler, false);
|
|
23428
|
-
|
|
23429
|
-
return () => {
|
|
23430
|
-
window.removeEventListener("message", messageHandler);
|
|
23431
|
-
};
|
|
23432
|
-
});
|
|
23433
|
-
|
|
23434
23425
|
const messageHandler = e => {
|
|
23435
23426
|
if (e.data) {
|
|
23436
23427
|
switch (e.data.type) {
|
|
@@ -23472,7 +23463,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23472
23463
|
},
|
|
23473
23464
|
body: JSON.stringify(sentData)
|
|
23474
23465
|
};
|
|
23475
|
-
fetch(`${
|
|
23466
|
+
fetch(`${endpoint}/player/${userId}/profile`, options).then(res => {
|
|
23476
23467
|
if (res.status == 200) {
|
|
23477
23468
|
window.postMessage({ type: "DisableProfileInfoButtons" }, window.location.href);
|
|
23478
23469
|
}
|
|
@@ -23494,7 +23485,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23494
23485
|
},
|
|
23495
23486
|
body: JSON.stringify(data)
|
|
23496
23487
|
};
|
|
23497
|
-
fetch(`${
|
|
23488
|
+
fetch(`${endpoint}/player/${userId}/password`, optionsChangePassword).then(res => {
|
|
23498
23489
|
if (res.status == 200) {
|
|
23499
23490
|
window.postMessage({ type: "PasswordChangedSuccessfully" }, window.location.href);
|
|
23500
23491
|
} // ERROR
|
|
@@ -23513,7 +23504,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23513
23504
|
},
|
|
23514
23505
|
body: JSON.stringify(dataTimeout)
|
|
23515
23506
|
};
|
|
23516
|
-
fetch(`${
|
|
23507
|
+
fetch(`${endpoint}/player/${userId}/limits`, setTimeout).then(res => {
|
|
23517
23508
|
if (res.status == 200) {
|
|
23518
23509
|
window.postMessage({ type: "LogOut" }, window.location.href);
|
|
23519
23510
|
} // ERROR
|
|
@@ -23538,7 +23529,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23538
23529
|
},
|
|
23539
23530
|
body: JSON.stringify(accountClosureSelection)
|
|
23540
23531
|
};
|
|
23541
|
-
fetch(`${
|
|
23532
|
+
fetch(`${endpoint}/player/${userId}/limits`, optionsAccountClosure).then(res => {
|
|
23542
23533
|
if (res.status == 200) {
|
|
23543
23534
|
window.postMessage({ type: "LogOut" }, window.location.href);
|
|
23544
23535
|
} // ERROR
|
|
@@ -23554,9 +23545,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23554
23545
|
};
|
|
23555
23546
|
|
|
23556
23547
|
const getAccountMenuDetails = url => {
|
|
23557
|
-
fetch(url).then(res =>
|
|
23558
|
-
return res.json();
|
|
23559
|
-
}).then(
|
|
23548
|
+
fetch(url).then(res => res.json()).then(
|
|
23560
23549
|
data => {
|
|
23561
23550
|
menuData = data.items;
|
|
23562
23551
|
|
|
@@ -23575,9 +23564,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23575
23564
|
};
|
|
23576
23565
|
|
|
23577
23566
|
const getNotificationsDetails = url => {
|
|
23578
|
-
fetch(url).then(res =>
|
|
23579
|
-
return res.json();
|
|
23580
|
-
}).then(
|
|
23567
|
+
fetch(url).then(res => res.json()).then(
|
|
23581
23568
|
data => {
|
|
23582
23569
|
if (data.length) {
|
|
23583
23570
|
notificationsData = data[0].acf.support_info_item;
|
|
@@ -23603,7 +23590,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23603
23590
|
headers: { "X-SessionID": sessionId }
|
|
23604
23591
|
};
|
|
23605
23592
|
|
|
23606
|
-
fetch(`${
|
|
23593
|
+
fetch(`${endpoint}/player/${userId}/profile`, options).then(res => {
|
|
23607
23594
|
return res.json();
|
|
23608
23595
|
}).then(
|
|
23609
23596
|
data => {
|
|
@@ -23639,6 +23626,14 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23639
23626
|
getData();
|
|
23640
23627
|
};
|
|
23641
23628
|
|
|
23629
|
+
onMount(() => {
|
|
23630
|
+
window.addEventListener("message", messageHandler, false);
|
|
23631
|
+
|
|
23632
|
+
return () => {
|
|
23633
|
+
window.removeEventListener("message", messageHandler);
|
|
23634
|
+
};
|
|
23635
|
+
});
|
|
23636
|
+
|
|
23642
23637
|
const writable_props = [
|
|
23643
23638
|
"cmsendpoint",
|
|
23644
23639
|
"accountpath",
|
|
@@ -23666,6 +23661,13 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23666
23661
|
$$self.$capture_state = () => ({
|
|
23667
23662
|
onMount,
|
|
23668
23663
|
getDevice,
|
|
23664
|
+
cmsendpoint,
|
|
23665
|
+
accountpath,
|
|
23666
|
+
notificationpath,
|
|
23667
|
+
customnotifications,
|
|
23668
|
+
playerid,
|
|
23669
|
+
session,
|
|
23670
|
+
endpoint,
|
|
23669
23671
|
isLoading,
|
|
23670
23672
|
userAgent,
|
|
23671
23673
|
isMobile,
|
|
@@ -23673,16 +23675,8 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23673
23675
|
notificationsData,
|
|
23674
23676
|
userId,
|
|
23675
23677
|
sessionId,
|
|
23676
|
-
profileUrl,
|
|
23677
23678
|
pageName,
|
|
23678
23679
|
widgetTitle,
|
|
23679
|
-
cmsendpoint,
|
|
23680
|
-
accountpath,
|
|
23681
|
-
notificationpath,
|
|
23682
|
-
customnotifications,
|
|
23683
|
-
playerid,
|
|
23684
|
-
session,
|
|
23685
|
-
endpoint,
|
|
23686
23680
|
accountMenuEndpointURL,
|
|
23687
23681
|
notificationsEndpointURL,
|
|
23688
23682
|
switchContent,
|
|
@@ -23695,6 +23689,13 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23695
23689
|
});
|
|
23696
23690
|
|
|
23697
23691
|
$$self.$inject_state = $$props => {
|
|
23692
|
+
if ("cmsendpoint" in $$props) $$invalidate(8, cmsendpoint = $$props.cmsendpoint);
|
|
23693
|
+
if ("accountpath" in $$props) $$invalidate(9, accountpath = $$props.accountpath);
|
|
23694
|
+
if ("notificationpath" in $$props) $$invalidate(10, notificationpath = $$props.notificationpath);
|
|
23695
|
+
if ("customnotifications" in $$props) $$invalidate(0, customnotifications = $$props.customnotifications);
|
|
23696
|
+
if ("playerid" in $$props) $$invalidate(11, playerid = $$props.playerid);
|
|
23697
|
+
if ("session" in $$props) $$invalidate(1, session = $$props.session);
|
|
23698
|
+
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
23698
23699
|
if ("isLoading" in $$props) $$invalidate(5, isLoading = $$props.isLoading);
|
|
23699
23700
|
if ("userAgent" in $$props) userAgent = $$props.userAgent;
|
|
23700
23701
|
if ("isMobile" in $$props) $$invalidate(6, isMobile = $$props.isMobile);
|
|
@@ -23702,16 +23703,7 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23702
23703
|
if ("notificationsData" in $$props) notificationsData = $$props.notificationsData;
|
|
23703
23704
|
if ("userId" in $$props) userId = $$props.userId;
|
|
23704
23705
|
if ("sessionId" in $$props) sessionId = $$props.sessionId;
|
|
23705
|
-
if ("profileUrl" in $$props) profileUrl = $$props.profileUrl;
|
|
23706
23706
|
if ("pageName" in $$props) $$invalidate(3, pageName = $$props.pageName);
|
|
23707
|
-
if ("widgetTitle" in $$props) $$invalidate(7, widgetTitle = $$props.widgetTitle);
|
|
23708
|
-
if ("cmsendpoint" in $$props) $$invalidate(8, cmsendpoint = $$props.cmsendpoint);
|
|
23709
|
-
if ("accountpath" in $$props) $$invalidate(9, accountpath = $$props.accountpath);
|
|
23710
|
-
if ("notificationpath" in $$props) $$invalidate(10, notificationpath = $$props.notificationpath);
|
|
23711
|
-
if ("customnotifications" in $$props) $$invalidate(0, customnotifications = $$props.customnotifications);
|
|
23712
|
-
if ("playerid" in $$props) $$invalidate(11, playerid = $$props.playerid);
|
|
23713
|
-
if ("session" in $$props) $$invalidate(1, session = $$props.session);
|
|
23714
|
-
if ("endpoint" in $$props) $$invalidate(2, endpoint = $$props.endpoint);
|
|
23715
23707
|
if ("switchContent" in $$props) $$invalidate(4, switchContent = $$props.switchContent);
|
|
23716
23708
|
};
|
|
23717
23709
|
|
|
@@ -23767,37 +23759,6 @@ viewBox="0 0 384.971 384.971" style="enable-background:new 0 0 384.971 384.971;"
|
|
|
23767
23759
|
}
|
|
23768
23760
|
);
|
|
23769
23761
|
|
|
23770
|
-
const { ctx } = this.$$;
|
|
23771
|
-
const props = this.attributes;
|
|
23772
|
-
|
|
23773
|
-
if (/*cmsendpoint*/ ctx[8] === undefined && !("cmsendpoint" in props)) {
|
|
23774
|
-
console_1.warn("<undefined> was created without expected prop 'cmsendpoint'");
|
|
23775
|
-
}
|
|
23776
|
-
|
|
23777
|
-
if (/*accountpath*/ ctx[9] === undefined && !("accountpath" in props)) {
|
|
23778
|
-
console_1.warn("<undefined> was created without expected prop 'accountpath'");
|
|
23779
|
-
}
|
|
23780
|
-
|
|
23781
|
-
if (/*notificationpath*/ ctx[10] === undefined && !("notificationpath" in props)) {
|
|
23782
|
-
console_1.warn("<undefined> was created without expected prop 'notificationpath'");
|
|
23783
|
-
}
|
|
23784
|
-
|
|
23785
|
-
if (/*customnotifications*/ ctx[0] === undefined && !("customnotifications" in props)) {
|
|
23786
|
-
console_1.warn("<undefined> was created without expected prop 'customnotifications'");
|
|
23787
|
-
}
|
|
23788
|
-
|
|
23789
|
-
if (/*playerid*/ ctx[11] === undefined && !("playerid" in props)) {
|
|
23790
|
-
console_1.warn("<undefined> was created without expected prop 'playerid'");
|
|
23791
|
-
}
|
|
23792
|
-
|
|
23793
|
-
if (/*session*/ ctx[1] === undefined && !("session" in props)) {
|
|
23794
|
-
console_1.warn("<undefined> was created without expected prop 'session'");
|
|
23795
|
-
}
|
|
23796
|
-
|
|
23797
|
-
if (/*endpoint*/ ctx[2] === undefined && !("endpoint" in props)) {
|
|
23798
|
-
console_1.warn("<undefined> was created without expected prop 'endpoint'");
|
|
23799
|
-
}
|
|
23800
|
-
|
|
23801
23762
|
if (options) {
|
|
23802
23763
|
if (options.target) {
|
|
23803
23764
|
insert_dev(options.target, this, options.anchor);
|