@everymatrix/general-player-register-form-step1 0.0.190 → 0.0.194

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.
@@ -1,1835 +1,2 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
- typeof define === 'function' && define.amd ? define(factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.app = factory());
5
- }(this, (function () { 'use strict';
6
-
7
- function noop() { }
8
- function add_location(element, file, line, column, char) {
9
- element.__svelte_meta = {
10
- loc: { file, line, column, char }
11
- };
12
- }
13
- function run(fn) {
14
- return fn();
15
- }
16
- function blank_object() {
17
- return Object.create(null);
18
- }
19
- function run_all(fns) {
20
- fns.forEach(run);
21
- }
22
- function is_function(thing) {
23
- return typeof thing === 'function';
24
- }
25
- function safe_not_equal(a, b) {
26
- return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
27
- }
28
- function is_empty(obj) {
29
- return Object.keys(obj).length === 0;
30
- }
31
-
32
- function append(target, node) {
33
- target.appendChild(node);
34
- }
35
- function insert(target, node, anchor) {
36
- target.insertBefore(node, anchor || null);
37
- }
38
- function detach(node) {
39
- node.parentNode.removeChild(node);
40
- }
41
- function element(name) {
42
- return document.createElement(name);
43
- }
44
- function svg_element(name) {
45
- return document.createElementNS('http://www.w3.org/2000/svg', name);
46
- }
47
- function text(data) {
48
- return document.createTextNode(data);
49
- }
50
- function space() {
51
- return text(' ');
52
- }
53
- function listen(node, event, handler, options) {
54
- node.addEventListener(event, handler, options);
55
- return () => node.removeEventListener(event, handler, options);
56
- }
57
- function attr(node, attribute, value) {
58
- if (value == null)
59
- node.removeAttribute(attribute);
60
- else if (node.getAttribute(attribute) !== value)
61
- node.setAttribute(attribute, value);
62
- }
63
- function children(element) {
64
- return Array.from(element.childNodes);
65
- }
66
- function set_input_value(input, value) {
67
- input.value = value == null ? '' : value;
68
- }
69
- function custom_event(type, detail) {
70
- const e = document.createEvent('CustomEvent');
71
- e.initCustomEvent(type, false, false, detail);
72
- return e;
73
- }
74
- function attribute_to_object(attributes) {
75
- const result = {};
76
- for (const attribute of attributes) {
77
- result[attribute.name] = attribute.value;
78
- }
79
- return result;
80
- }
81
-
82
- let current_component;
83
- function set_current_component(component) {
84
- current_component = component;
85
- }
86
- function get_current_component() {
87
- if (!current_component)
88
- throw new Error('Function called outside component initialization');
89
- return current_component;
90
- }
91
- function onMount(fn) {
92
- get_current_component().$$.on_mount.push(fn);
93
- }
94
-
95
- const dirty_components = [];
96
- const binding_callbacks = [];
97
- const render_callbacks = [];
98
- const flush_callbacks = [];
99
- const resolved_promise = Promise.resolve();
100
- let update_scheduled = false;
101
- function schedule_update() {
102
- if (!update_scheduled) {
103
- update_scheduled = true;
104
- resolved_promise.then(flush);
105
- }
106
- }
107
- function add_render_callback(fn) {
108
- render_callbacks.push(fn);
109
- }
110
- let flushing = false;
111
- const seen_callbacks = new Set();
112
- function flush() {
113
- if (flushing)
114
- return;
115
- flushing = true;
116
- do {
117
- // first, call beforeUpdate functions
118
- // and update components
119
- for (let i = 0; i < dirty_components.length; i += 1) {
120
- const component = dirty_components[i];
121
- set_current_component(component);
122
- update(component.$$);
123
- }
124
- set_current_component(null);
125
- dirty_components.length = 0;
126
- while (binding_callbacks.length)
127
- binding_callbacks.pop()();
128
- // then, once components are updated, call
129
- // afterUpdate functions. This may cause
130
- // subsequent updates...
131
- for (let i = 0; i < render_callbacks.length; i += 1) {
132
- const callback = render_callbacks[i];
133
- if (!seen_callbacks.has(callback)) {
134
- // ...so guard against infinite loops
135
- seen_callbacks.add(callback);
136
- callback();
137
- }
138
- }
139
- render_callbacks.length = 0;
140
- } while (dirty_components.length);
141
- while (flush_callbacks.length) {
142
- flush_callbacks.pop()();
143
- }
144
- update_scheduled = false;
145
- flushing = false;
146
- seen_callbacks.clear();
147
- }
148
- function update($$) {
149
- if ($$.fragment !== null) {
150
- $$.update();
151
- run_all($$.before_update);
152
- const dirty = $$.dirty;
153
- $$.dirty = [-1];
154
- $$.fragment && $$.fragment.p($$.ctx, dirty);
155
- $$.after_update.forEach(add_render_callback);
156
- }
157
- }
158
- const outroing = new Set();
159
- function transition_in(block, local) {
160
- if (block && block.i) {
161
- outroing.delete(block);
162
- block.i(local);
163
- }
164
- }
165
- function mount_component(component, target, anchor, customElement) {
166
- const { fragment, on_mount, on_destroy, after_update } = component.$$;
167
- fragment && fragment.m(target, anchor);
168
- if (!customElement) {
169
- // onMount happens before the initial afterUpdate
170
- add_render_callback(() => {
171
- const new_on_destroy = on_mount.map(run).filter(is_function);
172
- if (on_destroy) {
173
- on_destroy.push(...new_on_destroy);
174
- }
175
- else {
176
- // Edge case - component was destroyed immediately,
177
- // most likely as a result of a binding initialising
178
- run_all(new_on_destroy);
179
- }
180
- component.$$.on_mount = [];
181
- });
182
- }
183
- after_update.forEach(add_render_callback);
184
- }
185
- function destroy_component(component, detaching) {
186
- const $$ = component.$$;
187
- if ($$.fragment !== null) {
188
- run_all($$.on_destroy);
189
- $$.fragment && $$.fragment.d(detaching);
190
- // TODO null out other refs, including component.$$ (but need to
191
- // preserve final state?)
192
- $$.on_destroy = $$.fragment = null;
193
- $$.ctx = [];
194
- }
195
- }
196
- function make_dirty(component, i) {
197
- if (component.$$.dirty[0] === -1) {
198
- dirty_components.push(component);
199
- schedule_update();
200
- component.$$.dirty.fill(0);
201
- }
202
- component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
203
- }
204
- function init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {
205
- const parent_component = current_component;
206
- set_current_component(component);
207
- const $$ = component.$$ = {
208
- fragment: null,
209
- ctx: null,
210
- // state
211
- props,
212
- update: noop,
213
- not_equal,
214
- bound: blank_object(),
215
- // lifecycle
216
- on_mount: [],
217
- on_destroy: [],
218
- on_disconnect: [],
219
- before_update: [],
220
- after_update: [],
221
- context: new Map(parent_component ? parent_component.$$.context : options.context || []),
222
- // everything else
223
- callbacks: blank_object(),
224
- dirty,
225
- skip_bound: false
226
- };
227
- let ready = false;
228
- $$.ctx = instance
229
- ? instance(component, options.props || {}, (i, ret, ...rest) => {
230
- const value = rest.length ? rest[0] : ret;
231
- if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
232
- if (!$$.skip_bound && $$.bound[i])
233
- $$.bound[i](value);
234
- if (ready)
235
- make_dirty(component, i);
236
- }
237
- return ret;
238
- })
239
- : [];
240
- $$.update();
241
- ready = true;
242
- run_all($$.before_update);
243
- // `false` as a special case of no DOM component
244
- $$.fragment = create_fragment ? create_fragment($$.ctx) : false;
245
- if (options.target) {
246
- if (options.hydrate) {
247
- const nodes = children(options.target);
248
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
249
- $$.fragment && $$.fragment.l(nodes);
250
- nodes.forEach(detach);
251
- }
252
- else {
253
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
254
- $$.fragment && $$.fragment.c();
255
- }
256
- if (options.intro)
257
- transition_in(component.$$.fragment);
258
- mount_component(component, options.target, options.anchor, options.customElement);
259
- flush();
260
- }
261
- set_current_component(parent_component);
262
- }
263
- let SvelteElement;
264
- if (typeof HTMLElement === 'function') {
265
- SvelteElement = class extends HTMLElement {
266
- constructor() {
267
- super();
268
- this.attachShadow({ mode: 'open' });
269
- }
270
- connectedCallback() {
271
- const { on_mount } = this.$$;
272
- this.$$.on_disconnect = on_mount.map(run).filter(is_function);
273
- // @ts-ignore todo: improve typings
274
- for (const key in this.$$.slotted) {
275
- // @ts-ignore todo: improve typings
276
- this.appendChild(this.$$.slotted[key]);
277
- }
278
- }
279
- attributeChangedCallback(attr, _oldValue, newValue) {
280
- this[attr] = newValue;
281
- }
282
- disconnectedCallback() {
283
- run_all(this.$$.on_disconnect);
284
- }
285
- $destroy() {
286
- destroy_component(this, 1);
287
- this.$destroy = noop;
288
- }
289
- $on(type, callback) {
290
- // TODO should this delegate to addEventListener?
291
- const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
292
- callbacks.push(callback);
293
- return () => {
294
- const index = callbacks.indexOf(callback);
295
- if (index !== -1)
296
- callbacks.splice(index, 1);
297
- };
298
- }
299
- $set($$props) {
300
- if (this.$$set && !is_empty($$props)) {
301
- this.$$.skip_bound = true;
302
- this.$$set($$props);
303
- this.$$.skip_bound = false;
304
- }
305
- }
306
- };
307
- }
308
-
309
- function dispatch_dev(type, detail) {
310
- document.dispatchEvent(custom_event(type, Object.assign({ version: '3.37.0' }, detail)));
311
- }
312
- function append_dev(target, node) {
313
- dispatch_dev('SvelteDOMInsert', { target, node });
314
- append(target, node);
315
- }
316
- function insert_dev(target, node, anchor) {
317
- dispatch_dev('SvelteDOMInsert', { target, node, anchor });
318
- insert(target, node, anchor);
319
- }
320
- function detach_dev(node) {
321
- dispatch_dev('SvelteDOMRemove', { node });
322
- detach(node);
323
- }
324
- function listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {
325
- const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];
326
- if (has_prevent_default)
327
- modifiers.push('preventDefault');
328
- if (has_stop_propagation)
329
- modifiers.push('stopPropagation');
330
- dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });
331
- const dispose = listen(node, event, handler, options);
332
- return () => {
333
- dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });
334
- dispose();
335
- };
336
- }
337
- function attr_dev(node, attribute, value) {
338
- attr(node, attribute, value);
339
- if (value == null)
340
- dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });
341
- else
342
- dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });
343
- }
344
- function prop_dev(node, property, value) {
345
- node[property] = value;
346
- dispatch_dev('SvelteDOMSetProperty', { node, property, value });
347
- }
348
- function validate_slots(name, slot, keys) {
349
- for (const slot_key of Object.keys(slot)) {
350
- if (!~keys.indexOf(slot_key)) {
351
- console.warn(`<${name}> received an unexpected slot "${slot_key}".`);
352
- }
353
- }
354
- }
355
-
356
- /* src/GeneralPlayerRegisterFormStep1.svelte generated by Svelte v3.37.0 */
357
- const file = "src/GeneralPlayerRegisterFormStep1.svelte";
358
-
359
- // (165:4) {#if invalidEmail}
360
- function create_if_block_7(ctx) {
361
- let p;
362
-
363
- const block = {
364
- c: function create() {
365
- p = element("p");
366
- p.textContent = "Email should contain '@' and a 2-3 letter long domain.";
367
- attr_dev(p, "class", "InvalidInput");
368
- add_location(p, file, 165, 6, 5288);
369
- },
370
- m: function mount(target, anchor) {
371
- insert_dev(target, p, anchor);
372
- },
373
- d: function destroy(detaching) {
374
- if (detaching) detach_dev(p);
375
- }
376
- };
377
-
378
- dispatch_dev("SvelteRegisterBlock", {
379
- block,
380
- id: create_if_block_7.name,
381
- type: "if",
382
- source: "(165:4) {#if invalidEmail}",
383
- ctx
384
- });
385
-
386
- return block;
387
- }
388
-
389
- // (172:4) {#if invalidName}
390
- function create_if_block_6(ctx) {
391
- let p;
392
-
393
- const block = {
394
- c: function create() {
395
- p = element("p");
396
- p.textContent = "Name must be at least 2 characters long and contain no special characters.";
397
- attr_dev(p, "class", "InvalidInput");
398
- add_location(p, file, 172, 6, 5653);
399
- },
400
- m: function mount(target, anchor) {
401
- insert_dev(target, p, anchor);
402
- },
403
- d: function destroy(detaching) {
404
- if (detaching) detach_dev(p);
405
- }
406
- };
407
-
408
- dispatch_dev("SvelteRegisterBlock", {
409
- block,
410
- id: create_if_block_6.name,
411
- type: "if",
412
- source: "(172:4) {#if invalidName}",
413
- ctx
414
- });
415
-
416
- return block;
417
- }
418
-
419
- // (181:4) {:else}
420
- function create_else_block_1(ctx) {
421
- let svg;
422
- let defs;
423
- let style;
424
- let t;
425
- let g;
426
- let path;
427
- let circle;
428
- let mounted;
429
- let dispose;
430
-
431
- const block = {
432
- c: function create() {
433
- svg = svg_element("svg");
434
- defs = svg_element("defs");
435
- style = svg_element("style");
436
- t = text(".a{fill:#07072a;}");
437
- g = svg_element("g");
438
- path = svg_element("path");
439
- circle = svg_element("circle");
440
- add_location(style, file, 181, 172, 7964);
441
- add_location(defs, file, 181, 166, 7958);
442
- attr_dev(path, "class", "a");
443
- attr_dev(path, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z");
444
- attr_dev(path, "transform", "translate(0)");
445
- add_location(path, file, 181, 253, 8045);
446
- attr_dev(circle, "class", "a");
447
- attr_dev(circle, "cx", "2.779");
448
- attr_dev(circle, "cy", "2.779");
449
- attr_dev(circle, "r", "2.779");
450
- attr_dev(circle, "transform", "translate(20.827 30.303)");
451
- add_location(circle, file, 181, 1023, 8815);
452
- attr_dev(g, "transform", "translate(-14.185 -27.832)");
453
- add_location(g, file, 181, 211, 8003);
454
- attr_dev(svg, "class", "TogglePasswordVisibility");
455
- attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
456
- attr_dev(svg, "width", "18.843");
457
- attr_dev(svg, "height", "10.5");
458
- attr_dev(svg, "viewBox", "0 0 18.843 10.5");
459
- add_location(svg, file, 181, 6, 7798);
460
- },
461
- m: function mount(target, anchor) {
462
- insert_dev(target, svg, anchor);
463
- append_dev(svg, defs);
464
- append_dev(defs, style);
465
- append_dev(style, t);
466
- append_dev(svg, g);
467
- append_dev(g, path);
468
- append_dev(g, circle);
469
-
470
- if (!mounted) {
471
- dispose = listen_dev(svg, "click", /*click_handler_2*/ ctx[35], false, false, false);
472
- mounted = true;
473
- }
474
- },
475
- p: noop,
476
- d: function destroy(detaching) {
477
- if (detaching) detach_dev(svg);
478
- mounted = false;
479
- dispose();
480
- }
481
- };
482
-
483
- dispatch_dev("SvelteRegisterBlock", {
484
- block,
485
- id: create_else_block_1.name,
486
- type: "else",
487
- source: "(181:4) {:else}",
488
- ctx
489
- });
490
-
491
- return block;
492
- }
493
-
494
- // (179:4) {#if isPasswordVisible}
495
- function create_if_block_5(ctx) {
496
- let svg;
497
- let defs;
498
- let style;
499
- let t;
500
- let g2;
501
- let circle;
502
- let g0;
503
- let path0;
504
- let path1;
505
- let g1;
506
- let path2;
507
- let path3;
508
- let rect;
509
- let mounted;
510
- let dispose;
511
-
512
- const block = {
513
- c: function create() {
514
- svg = svg_element("svg");
515
- defs = svg_element("defs");
516
- style = svg_element("style");
517
- t = text(".a{fill:#07072a;}");
518
- g2 = svg_element("g");
519
- circle = svg_element("circle");
520
- g0 = svg_element("g");
521
- path0 = svg_element("path");
522
- path1 = svg_element("path");
523
- g1 = svg_element("g");
524
- path2 = svg_element("path");
525
- path3 = svg_element("path");
526
- rect = svg_element("rect");
527
- add_location(style, file, 179, 176, 6266);
528
- add_location(defs, file, 179, 170, 6260);
529
- attr_dev(circle, "class", "a");
530
- attr_dev(circle, "cx", "0.05");
531
- attr_dev(circle, "cy", "0.05");
532
- attr_dev(circle, "r", "0.05");
533
- attr_dev(circle, "transform", "translate(121.017 31.148)");
534
- add_location(circle, file, 179, 258, 6348);
535
- attr_dev(path0, "class", "a");
536
- attr_dev(path0, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z");
537
- attr_dev(path0, "transform", "translate(-142.164 -39.123)");
538
- add_location(path0, file, 179, 384, 6474);
539
- attr_dev(path1, "class", "a");
540
- attr_dev(path1, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z");
541
- attr_dev(path1, "transform", "translate(-136.413 -42.068)");
542
- add_location(path1, file, 179, 492, 6582);
543
- attr_dev(g0, "transform", "translate(117.499 27.37)");
544
- add_location(g0, file, 179, 344, 6434);
545
- attr_dev(path2, "class", "a");
546
- attr_dev(path2, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z");
547
- attr_dev(path2, "transform", "translate(-110.856 -33.157)");
548
- add_location(path2, file, 179, 643, 6733);
549
- attr_dev(path3, "class", "a");
550
- attr_dev(path3, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z");
551
- attr_dev(path3, "transform", "translate(-130.743 -29.617)");
552
- add_location(path3, file, 179, 1102, 7192);
553
- attr_dev(g1, "transform", "translate(110.856 24.899)");
554
- add_location(g1, file, 179, 602, 6692);
555
- attr_dev(rect, "class", "a");
556
- attr_dev(rect, "width", "0.972");
557
- attr_dev(rect, "height", "15.861");
558
- attr_dev(rect, "rx", "0.486");
559
- attr_dev(rect, "transform", "translate(114.827 23.858) rotate(-39.315)");
560
- add_location(rect, file, 179, 1567, 7657);
561
- attr_dev(g2, "transform", "translate(-110.856 -23.242)");
562
- add_location(g2, file, 179, 215, 6305);
563
- attr_dev(svg, "class", "TogglePasswordVisibility");
564
- attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
565
- attr_dev(svg, "width", "18.844");
566
- attr_dev(svg, "height", "12.887");
567
- attr_dev(svg, "viewBox", "0 0 18.844 12.887");
568
- add_location(svg, file, 179, 6, 6096);
569
- },
570
- m: function mount(target, anchor) {
571
- insert_dev(target, svg, anchor);
572
- append_dev(svg, defs);
573
- append_dev(defs, style);
574
- append_dev(style, t);
575
- append_dev(svg, g2);
576
- append_dev(g2, circle);
577
- append_dev(g2, g0);
578
- append_dev(g0, path0);
579
- append_dev(g0, path1);
580
- append_dev(g2, g1);
581
- append_dev(g1, path2);
582
- append_dev(g1, path3);
583
- append_dev(g2, rect);
584
-
585
- if (!mounted) {
586
- dispose = listen_dev(svg, "click", /*click_handler_1*/ ctx[34], false, false, false);
587
- mounted = true;
588
- }
589
- },
590
- p: noop,
591
- d: function destroy(detaching) {
592
- if (detaching) detach_dev(svg);
593
- mounted = false;
594
- dispose();
595
- }
596
- };
597
-
598
- dispatch_dev("SvelteRegisterBlock", {
599
- block,
600
- id: create_if_block_5.name,
601
- type: "if",
602
- source: "(179:4) {#if isPasswordVisible}",
603
- ctx
604
- });
605
-
606
- return block;
607
- }
608
-
609
- // (184:4) {#if invalidPassword}
610
- function create_if_block_4(ctx) {
611
- let p;
612
-
613
- const block = {
614
- c: function create() {
615
- p = element("p");
616
- p.textContent = "Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.";
617
- attr_dev(p, "class", "InvalidInput");
618
- add_location(p, file, 184, 6, 8956);
619
- },
620
- m: function mount(target, anchor) {
621
- insert_dev(target, p, anchor);
622
- },
623
- d: function destroy(detaching) {
624
- if (detaching) detach_dev(p);
625
- }
626
- };
627
-
628
- dispatch_dev("SvelteRegisterBlock", {
629
- block,
630
- id: create_if_block_4.name,
631
- type: "if",
632
- source: "(184:4) {#if invalidPassword}",
633
- ctx
634
- });
635
-
636
- return block;
637
- }
638
-
639
- // (193:4) {:else}
640
- function create_else_block(ctx) {
641
- let svg;
642
- let defs;
643
- let style;
644
- let t;
645
- let g;
646
- let path;
647
- let circle;
648
- let mounted;
649
- let dispose;
650
-
651
- const block = {
652
- c: function create() {
653
- svg = svg_element("svg");
654
- defs = svg_element("defs");
655
- style = svg_element("style");
656
- t = text(".a{fill:#07072a;}");
657
- g = svg_element("g");
658
- path = svg_element("path");
659
- circle = svg_element("circle");
660
- add_location(style, file, 193, 186, 11398);
661
- add_location(defs, file, 193, 180, 11392);
662
- attr_dev(path, "class", "a");
663
- attr_dev(path, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z");
664
- attr_dev(path, "transform", "translate(0)");
665
- add_location(path, file, 193, 267, 11479);
666
- attr_dev(circle, "class", "a");
667
- attr_dev(circle, "cx", "2.779");
668
- attr_dev(circle, "cy", "2.779");
669
- attr_dev(circle, "r", "2.779");
670
- attr_dev(circle, "transform", "translate(20.827 30.303)");
671
- add_location(circle, file, 193, 1037, 12249);
672
- attr_dev(g, "transform", "translate(-14.185 -27.832)");
673
- add_location(g, file, 193, 225, 11437);
674
- attr_dev(svg, "class", "ToggleConfirmPasswordVisibility");
675
- attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
676
- attr_dev(svg, "width", "18.843");
677
- attr_dev(svg, "height", "10.5");
678
- attr_dev(svg, "viewBox", "0 0 18.843 10.5");
679
- add_location(svg, file, 193, 6, 11218);
680
- },
681
- m: function mount(target, anchor) {
682
- insert_dev(target, svg, anchor);
683
- append_dev(svg, defs);
684
- append_dev(defs, style);
685
- append_dev(style, t);
686
- append_dev(svg, g);
687
- append_dev(g, path);
688
- append_dev(g, circle);
689
-
690
- if (!mounted) {
691
- dispose = listen_dev(svg, "click", /*click_handler_4*/ ctx[39], false, false, false);
692
- mounted = true;
693
- }
694
- },
695
- p: noop,
696
- d: function destroy(detaching) {
697
- if (detaching) detach_dev(svg);
698
- mounted = false;
699
- dispose();
700
- }
701
- };
702
-
703
- dispatch_dev("SvelteRegisterBlock", {
704
- block,
705
- id: create_else_block.name,
706
- type: "else",
707
- source: "(193:4) {:else}",
708
- ctx
709
- });
710
-
711
- return block;
712
- }
713
-
714
- // (191:4) {#if isConfirmPasswordVisible}
715
- function create_if_block_3(ctx) {
716
- let svg;
717
- let defs;
718
- let style;
719
- let t;
720
- let g2;
721
- let circle;
722
- let g0;
723
- let path0;
724
- let path1;
725
- let g1;
726
- let path2;
727
- let path3;
728
- let rect;
729
- let mounted;
730
- let dispose;
731
-
732
- const block = {
733
- c: function create() {
734
- svg = svg_element("svg");
735
- defs = svg_element("defs");
736
- style = svg_element("style");
737
- t = text(".a{fill:#07072a;}");
738
- g2 = svg_element("g");
739
- circle = svg_element("circle");
740
- g0 = svg_element("g");
741
- path0 = svg_element("path");
742
- path1 = svg_element("path");
743
- g1 = svg_element("g");
744
- path2 = svg_element("path");
745
- path3 = svg_element("path");
746
- rect = svg_element("rect");
747
- add_location(style, file, 191, 190, 9686);
748
- add_location(defs, file, 191, 184, 9680);
749
- attr_dev(circle, "class", "a");
750
- attr_dev(circle, "cx", "0.05");
751
- attr_dev(circle, "cy", "0.05");
752
- attr_dev(circle, "r", "0.05");
753
- attr_dev(circle, "transform", "translate(121.017 31.148)");
754
- add_location(circle, file, 191, 272, 9768);
755
- attr_dev(path0, "class", "a");
756
- attr_dev(path0, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z");
757
- attr_dev(path0, "transform", "translate(-142.164 -39.123)");
758
- add_location(path0, file, 191, 398, 9894);
759
- attr_dev(path1, "class", "a");
760
- attr_dev(path1, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z");
761
- attr_dev(path1, "transform", "translate(-136.413 -42.068)");
762
- add_location(path1, file, 191, 506, 10002);
763
- attr_dev(g0, "transform", "translate(117.499 27.37)");
764
- add_location(g0, file, 191, 358, 9854);
765
- attr_dev(path2, "class", "a");
766
- attr_dev(path2, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z");
767
- attr_dev(path2, "transform", "translate(-110.856 -33.157)");
768
- add_location(path2, file, 191, 657, 10153);
769
- attr_dev(path3, "class", "a");
770
- attr_dev(path3, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z");
771
- attr_dev(path3, "transform", "translate(-130.743 -29.617)");
772
- add_location(path3, file, 191, 1116, 10612);
773
- attr_dev(g1, "transform", "translate(110.856 24.899)");
774
- add_location(g1, file, 191, 616, 10112);
775
- attr_dev(rect, "class", "a");
776
- attr_dev(rect, "width", "0.972");
777
- attr_dev(rect, "height", "15.861");
778
- attr_dev(rect, "rx", "0.486");
779
- attr_dev(rect, "transform", "translate(114.827 23.858) rotate(-39.315)");
780
- add_location(rect, file, 191, 1581, 11077);
781
- attr_dev(g2, "transform", "translate(-110.856 -23.242)");
782
- add_location(g2, file, 191, 229, 9725);
783
- attr_dev(svg, "class", "ToggleConfirmPasswordVisibility");
784
- attr_dev(svg, "xmlns", "http://www.w3.org/2000/svg");
785
- attr_dev(svg, "width", "18.844");
786
- attr_dev(svg, "height", "12.887");
787
- attr_dev(svg, "viewBox", "0 0 18.844 12.887");
788
- add_location(svg, file, 191, 6, 9502);
789
- },
790
- m: function mount(target, anchor) {
791
- insert_dev(target, svg, anchor);
792
- append_dev(svg, defs);
793
- append_dev(defs, style);
794
- append_dev(style, t);
795
- append_dev(svg, g2);
796
- append_dev(g2, circle);
797
- append_dev(g2, g0);
798
- append_dev(g0, path0);
799
- append_dev(g0, path1);
800
- append_dev(g2, g1);
801
- append_dev(g1, path2);
802
- append_dev(g1, path3);
803
- append_dev(g2, rect);
804
-
805
- if (!mounted) {
806
- dispose = listen_dev(svg, "click", /*click_handler_3*/ ctx[38], false, false, false);
807
- mounted = true;
808
- }
809
- },
810
- p: noop,
811
- d: function destroy(detaching) {
812
- if (detaching) detach_dev(svg);
813
- mounted = false;
814
- dispose();
815
- }
816
- };
817
-
818
- dispatch_dev("SvelteRegisterBlock", {
819
- block,
820
- id: create_if_block_3.name,
821
- type: "if",
822
- source: "(191:4) {#if isConfirmPasswordVisible}",
823
- ctx
824
- });
825
-
826
- return block;
827
- }
828
-
829
- // (196:4) {#if invalidConfirmPassword}
830
- function create_if_block_2(ctx) {
831
- let p;
832
-
833
- const block = {
834
- c: function create() {
835
- p = element("p");
836
- p.textContent = "Do not match with password.";
837
- attr_dev(p, "class", "InvalidInput");
838
- add_location(p, file, 196, 6, 12397);
839
- },
840
- m: function mount(target, anchor) {
841
- insert_dev(target, p, anchor);
842
- },
843
- d: function destroy(detaching) {
844
- if (detaching) detach_dev(p);
845
- }
846
- };
847
-
848
- dispatch_dev("SvelteRegisterBlock", {
849
- block,
850
- id: create_if_block_2.name,
851
- type: "if",
852
- source: "(196:4) {#if invalidConfirmPassword}",
853
- ctx
854
- });
855
-
856
- return block;
857
- }
858
-
859
- // (203:4) {#if invalidSecurityQuestion}
860
- function create_if_block_1(ctx) {
861
- let p;
862
-
863
- const block = {
864
- c: function create() {
865
- p = element("p");
866
- p.textContent = "Security question must be at least 1 character long and maximum 120 characters.";
867
- attr_dev(p, "class", "InvalidInput");
868
- add_location(p, file, 203, 6, 12811);
869
- },
870
- m: function mount(target, anchor) {
871
- insert_dev(target, p, anchor);
872
- },
873
- d: function destroy(detaching) {
874
- if (detaching) detach_dev(p);
875
- }
876
- };
877
-
878
- dispatch_dev("SvelteRegisterBlock", {
879
- block,
880
- id: create_if_block_1.name,
881
- type: "if",
882
- source: "(203:4) {#if invalidSecurityQuestion}",
883
- ctx
884
- });
885
-
886
- return block;
887
- }
888
-
889
- // (210:4) {#if invalidSecurityAnswer}
890
- function create_if_block(ctx) {
891
- let p;
892
-
893
- const block = {
894
- c: function create() {
895
- p = element("p");
896
- p.textContent = "Security answer must be at least 1 character long and maximum 120 characters.";
897
- attr_dev(p, "class", "InvalidInput");
898
- add_location(p, file, 210, 6, 13262);
899
- },
900
- m: function mount(target, anchor) {
901
- insert_dev(target, p, anchor);
902
- },
903
- d: function destroy(detaching) {
904
- if (detaching) detach_dev(p);
905
- }
906
- };
907
-
908
- dispatch_dev("SvelteRegisterBlock", {
909
- block,
910
- id: create_if_block.name,
911
- type: "if",
912
- source: "(210:4) {#if invalidSecurityAnswer}",
913
- ctx
914
- });
915
-
916
- return block;
917
- }
918
-
919
- function create_fragment(ctx) {
920
- let div0;
921
- let h2;
922
- let t1;
923
- let p;
924
- let t2;
925
- let span0;
926
- let t4;
927
- let div7;
928
- let div1;
929
- let label0;
930
- let t5;
931
- let span1;
932
- let t7;
933
- let input0;
934
- let t8;
935
- let div1_class_value;
936
- let t9;
937
- let div2;
938
- let label1;
939
- let t10;
940
- let span2;
941
- let t12;
942
- let input1;
943
- let t13;
944
- let div2_class_value;
945
- let t14;
946
- let div3;
947
- let label2;
948
- let t15;
949
- let span3;
950
- let t17;
951
- let input2;
952
- let t18;
953
- let t19;
954
- let div3_class_value;
955
- let t20;
956
- let div4;
957
- let label3;
958
- let t21;
959
- let span4;
960
- let t23;
961
- let input3;
962
- let t24;
963
- let t25;
964
- let div4_class_value;
965
- let t26;
966
- let div5;
967
- let label4;
968
- let t27;
969
- let span5;
970
- let t29;
971
- let input4;
972
- let t30;
973
- let div5_class_value;
974
- let t31;
975
- let div6;
976
- let label5;
977
- let t32;
978
- let span6;
979
- let t34;
980
- let input5;
981
- let t35;
982
- let div6_class_value;
983
- let t36;
984
- let button;
985
- let t37;
986
- let button_disabled_value;
987
- let mounted;
988
- let dispose;
989
- let if_block0 = /*invalidEmail*/ ctx[0] && create_if_block_7(ctx);
990
- let if_block1 = /*invalidName*/ ctx[1] && create_if_block_6(ctx);
991
-
992
- function select_block_type(ctx, dirty) {
993
- if (/*isPasswordVisible*/ ctx[12]) return create_if_block_5;
994
- return create_else_block_1;
995
- }
996
-
997
- let current_block_type = select_block_type(ctx);
998
- let if_block2 = current_block_type(ctx);
999
- let if_block3 = /*invalidPassword*/ ctx[2] && create_if_block_4(ctx);
1000
-
1001
- function select_block_type_1(ctx, dirty) {
1002
- if (/*isConfirmPasswordVisible*/ ctx[13]) return create_if_block_3;
1003
- return create_else_block;
1004
- }
1005
-
1006
- let current_block_type_1 = select_block_type_1(ctx);
1007
- let if_block4 = current_block_type_1(ctx);
1008
- let if_block5 = /*invalidConfirmPassword*/ ctx[3] && create_if_block_2(ctx);
1009
- let if_block6 = /*invalidSecurityQuestion*/ ctx[4] && create_if_block_1(ctx);
1010
- let if_block7 = /*invalidSecurityAnswer*/ ctx[5] && create_if_block(ctx);
1011
-
1012
- const block = {
1013
- c: function create() {
1014
- div0 = element("div");
1015
- h2 = element("h2");
1016
- h2.textContent = "Create your account";
1017
- t1 = space();
1018
- p = element("p");
1019
- t2 = text("Already have an account? ");
1020
- span0 = element("span");
1021
- span0.textContent = "Login";
1022
- t4 = space();
1023
- div7 = element("div");
1024
- div1 = element("div");
1025
- label0 = element("label");
1026
- t5 = text("Email:");
1027
- span1 = element("span");
1028
- span1.textContent = "*";
1029
- t7 = space();
1030
- input0 = element("input");
1031
- t8 = space();
1032
- if (if_block0) if_block0.c();
1033
- t9 = space();
1034
- div2 = element("div");
1035
- label1 = element("label");
1036
- t10 = text("Username:");
1037
- span2 = element("span");
1038
- span2.textContent = "*";
1039
- t12 = space();
1040
- input1 = element("input");
1041
- t13 = space();
1042
- if (if_block1) if_block1.c();
1043
- t14 = space();
1044
- div3 = element("div");
1045
- label2 = element("label");
1046
- t15 = text("Password:");
1047
- span3 = element("span");
1048
- span3.textContent = "*";
1049
- t17 = space();
1050
- input2 = element("input");
1051
- t18 = space();
1052
- if_block2.c();
1053
- t19 = space();
1054
- if (if_block3) if_block3.c();
1055
- t20 = space();
1056
- div4 = element("div");
1057
- label3 = element("label");
1058
- t21 = text("Confirm Password:");
1059
- span4 = element("span");
1060
- span4.textContent = "*";
1061
- t23 = space();
1062
- input3 = element("input");
1063
- t24 = space();
1064
- if_block4.c();
1065
- t25 = space();
1066
- if (if_block5) if_block5.c();
1067
- t26 = space();
1068
- div5 = element("div");
1069
- label4 = element("label");
1070
- t27 = text("Security Question:");
1071
- span5 = element("span");
1072
- span5.textContent = "*";
1073
- t29 = space();
1074
- input4 = element("input");
1075
- t30 = space();
1076
- if (if_block6) if_block6.c();
1077
- t31 = space();
1078
- div6 = element("div");
1079
- label5 = element("label");
1080
- t32 = text("Security Answer:");
1081
- span6 = element("span");
1082
- span6.textContent = "*";
1083
- t34 = space();
1084
- input5 = element("input");
1085
- t35 = space();
1086
- if (if_block7) if_block7.c();
1087
- t36 = space();
1088
- button = element("button");
1089
- t37 = text("Next");
1090
- this.c = noop;
1091
- attr_dev(h2, "class", "RegisterFormTitle");
1092
- add_location(h2, file, 157, 2, 4793);
1093
- attr_dev(span0, "class", "FormLoginCallToAction");
1094
- add_location(span0, file, 158, 59, 4907);
1095
- attr_dev(p, "class", "RegisterFormSubtitle");
1096
- add_location(p, file, 158, 2, 4850);
1097
- attr_dev(div0, "class", "RegisterFormHeader");
1098
- add_location(div0, file, 156, 0, 4758);
1099
- attr_dev(span1, "class", "FormRequired");
1100
- add_location(span1, file, 162, 29, 5131);
1101
- attr_dev(label0, "for", "Email");
1102
- add_location(label0, file, 162, 4, 5106);
1103
- attr_dev(input0, "type", "text");
1104
- attr_dev(input0, "id", "Email");
1105
- add_location(input0, file, 163, 4, 5179);
1106
- attr_dev(div1, "class", div1_class_value = "EmailContainer " + (/*invalidEmail*/ ctx[0] ? "InvalidField" : ""));
1107
- add_location(div1, file, 161, 2, 5036);
1108
- attr_dev(span2, "class", "FormRequired");
1109
- add_location(span2, file, 169, 35, 5491);
1110
- attr_dev(label1, "for", "UserName");
1111
- add_location(label1, file, 169, 4, 5460);
1112
- attr_dev(input1, "type", "text");
1113
- attr_dev(input1, "id", "UserName");
1114
- add_location(input1, file, 170, 4, 5539);
1115
- attr_dev(div2, "class", div2_class_value = "UserContainer " + (/*invalidName*/ ctx[1] ? "InvalidField" : ""));
1116
- add_location(div2, file, 168, 2, 5392);
1117
- attr_dev(span3, "class", "FormRequired");
1118
- add_location(span3, file, 176, 35, 5884);
1119
- attr_dev(label2, "for", "Password");
1120
- add_location(label2, file, 176, 4, 5853);
1121
- attr_dev(input2, "type", "password");
1122
- attr_dev(input2, "id", "Password");
1123
- add_location(input2, file, 177, 4, 5932);
1124
- attr_dev(div3, "class", div3_class_value = "PasswordContainer " + (/*invalidPassword*/ ctx[2] ? "InvalidField" : ""));
1125
- add_location(div3, file, 175, 2, 5777);
1126
- attr_dev(span4, "class", "FormRequired");
1127
- add_location(span4, file, 188, 50, 9255);
1128
- attr_dev(label3, "for", "ConfirmPassword");
1129
- add_location(label3, file, 188, 4, 9209);
1130
- attr_dev(input3, "type", "password");
1131
- attr_dev(input3, "id", "ConfirmPassword");
1132
- add_location(input3, file, 189, 4, 9303);
1133
- attr_dev(div4, "class", div4_class_value = "ConfirmPasswordContainer " + (/*invalidConfirmPassword*/ ctx[3] ? "InvalidField" : ""));
1134
- add_location(div4, file, 187, 2, 9119);
1135
- attr_dev(span5, "class", "FormRequired");
1136
- add_location(span5, file, 200, 52, 12614);
1137
- attr_dev(label4, "for", "SecurityQuestion");
1138
- add_location(label4, file, 200, 4, 12566);
1139
- attr_dev(input4, "type", "text");
1140
- attr_dev(input4, "id", "SecurityQuestion");
1141
- add_location(input4, file, 201, 4, 12662);
1142
- attr_dev(div5, "class", div5_class_value = "SecurityQuestionContainer " + (/*invalidSecurityQuestion*/ ctx[4] ? "InvalidField" : ""));
1143
- add_location(div5, file, 199, 2, 12474);
1144
- attr_dev(span6, "class", "FormRequired");
1145
- add_location(span6, file, 207, 48, 13072);
1146
- attr_dev(label5, "for", "SecurityAnswer");
1147
- add_location(label5, file, 207, 4, 13028);
1148
- attr_dev(input5, "type", "text");
1149
- attr_dev(input5, "id", "SecurityAnswer");
1150
- add_location(input5, file, 208, 4, 13120);
1151
- attr_dev(div6, "class", div6_class_value = "SecurityAnswerContainer " + (/*invalidSecurityAnswer*/ ctx[5] ? "InvalidField" : ""));
1152
- add_location(div6, file, 206, 2, 12940);
1153
- attr_dev(div7, "class", "RegisterFormContent");
1154
- add_location(div7, file, 160, 0, 5000);
1155
- attr_dev(button, "class", "RegisterStepNext");
1156
- button.disabled = button_disabled_value = !/*isValid*/ ctx[16];
1157
- add_location(button, file, 214, 0, 13394);
1158
- },
1159
- l: function claim(nodes) {
1160
- throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
1161
- },
1162
- m: function mount(target, anchor) {
1163
- insert_dev(target, div0, anchor);
1164
- append_dev(div0, h2);
1165
- append_dev(div0, t1);
1166
- append_dev(div0, p);
1167
- append_dev(p, t2);
1168
- append_dev(p, span0);
1169
- insert_dev(target, t4, anchor);
1170
- insert_dev(target, div7, anchor);
1171
- append_dev(div7, div1);
1172
- append_dev(div1, label0);
1173
- append_dev(label0, t5);
1174
- append_dev(label0, span1);
1175
- append_dev(div1, t7);
1176
- append_dev(div1, input0);
1177
- set_input_value(input0, /*userEmail*/ ctx[7]);
1178
- append_dev(div1, t8);
1179
- if (if_block0) if_block0.m(div1, null);
1180
- append_dev(div7, t9);
1181
- append_dev(div7, div2);
1182
- append_dev(div2, label1);
1183
- append_dev(label1, t10);
1184
- append_dev(label1, span2);
1185
- append_dev(div2, t12);
1186
- append_dev(div2, input1);
1187
- set_input_value(input1, /*userValue*/ ctx[6]);
1188
- append_dev(div2, t13);
1189
- if (if_block1) if_block1.m(div2, null);
1190
- append_dev(div7, t14);
1191
- append_dev(div7, div3);
1192
- append_dev(div3, label2);
1193
- append_dev(label2, t15);
1194
- append_dev(label2, span3);
1195
- append_dev(div3, t17);
1196
- append_dev(div3, input2);
1197
- set_input_value(input2, /*userPassword*/ ctx[8]);
1198
- /*input2_binding*/ ctx[33](input2);
1199
- append_dev(div3, t18);
1200
- if_block2.m(div3, null);
1201
- append_dev(div3, t19);
1202
- if (if_block3) if_block3.m(div3, null);
1203
- append_dev(div7, t20);
1204
- append_dev(div7, div4);
1205
- append_dev(div4, label3);
1206
- append_dev(label3, t21);
1207
- append_dev(label3, span4);
1208
- append_dev(div4, t23);
1209
- append_dev(div4, input3);
1210
- set_input_value(input3, /*confirmUserPassword*/ ctx[9]);
1211
- /*input3_binding*/ ctx[37](input3);
1212
- append_dev(div4, t24);
1213
- if_block4.m(div4, null);
1214
- append_dev(div4, t25);
1215
- if (if_block5) if_block5.m(div4, null);
1216
- append_dev(div7, t26);
1217
- append_dev(div7, div5);
1218
- append_dev(div5, label4);
1219
- append_dev(label4, t27);
1220
- append_dev(label4, span5);
1221
- append_dev(div5, t29);
1222
- append_dev(div5, input4);
1223
- set_input_value(input4, /*securityQuestion*/ ctx[10]);
1224
- append_dev(div5, t30);
1225
- if (if_block6) if_block6.m(div5, null);
1226
- append_dev(div7, t31);
1227
- append_dev(div7, div6);
1228
- append_dev(div6, label5);
1229
- append_dev(label5, t32);
1230
- append_dev(label5, span6);
1231
- append_dev(div6, t34);
1232
- append_dev(div6, input5);
1233
- set_input_value(input5, /*securityAnswer*/ ctx[11]);
1234
- append_dev(div6, t35);
1235
- if (if_block7) if_block7.m(div6, null);
1236
- insert_dev(target, t36, anchor);
1237
- insert_dev(target, button, anchor);
1238
- append_dev(button, t37);
1239
-
1240
- if (!mounted) {
1241
- dispose = [
1242
- listen_dev(span0, "click", /*click_handler*/ ctx[29], false, false, false),
1243
- listen_dev(input0, "input", /*input0_input_handler*/ ctx[30]),
1244
- listen_dev(input0, "blur", /*validateEmail*/ ctx[18], false, false, false),
1245
- listen_dev(input1, "input", /*input1_input_handler*/ ctx[31]),
1246
- listen_dev(input1, "blur", /*validateUserName*/ ctx[19], false, false, false),
1247
- listen_dev(input2, "input", /*input2_input_handler*/ ctx[32]),
1248
- listen_dev(input2, "blur", /*validatePassword*/ ctx[24], false, false, false),
1249
- listen_dev(input3, "input", /*input3_input_handler*/ ctx[36]),
1250
- listen_dev(input3, "blur", /*validateConfirmPassword*/ ctx[25], false, false, false),
1251
- listen_dev(input4, "input", /*input4_input_handler*/ ctx[40]),
1252
- listen_dev(input4, "blur", /*validateSecurityQuestion*/ ctx[26], false, false, false),
1253
- listen_dev(input5, "input", /*input5_input_handler*/ ctx[41]),
1254
- listen_dev(input5, "keyup", /*validateSecurityAnswer*/ ctx[27], false, false, false),
1255
- listen_dev(button, "click", /*goNext*/ ctx[28], false, false, false)
1256
- ];
1257
-
1258
- mounted = true;
1259
- }
1260
- },
1261
- p: function update(ctx, dirty) {
1262
- if (dirty[0] & /*userEmail*/ 128 && input0.value !== /*userEmail*/ ctx[7]) {
1263
- set_input_value(input0, /*userEmail*/ ctx[7]);
1264
- }
1265
-
1266
- if (/*invalidEmail*/ ctx[0]) {
1267
- if (if_block0) ; else {
1268
- if_block0 = create_if_block_7(ctx);
1269
- if_block0.c();
1270
- if_block0.m(div1, null);
1271
- }
1272
- } else if (if_block0) {
1273
- if_block0.d(1);
1274
- if_block0 = null;
1275
- }
1276
-
1277
- if (dirty[0] & /*invalidEmail*/ 1 && div1_class_value !== (div1_class_value = "EmailContainer " + (/*invalidEmail*/ ctx[0] ? "InvalidField" : ""))) {
1278
- attr_dev(div1, "class", div1_class_value);
1279
- }
1280
-
1281
- if (dirty[0] & /*userValue*/ 64 && input1.value !== /*userValue*/ ctx[6]) {
1282
- set_input_value(input1, /*userValue*/ ctx[6]);
1283
- }
1284
-
1285
- if (/*invalidName*/ ctx[1]) {
1286
- if (if_block1) ; else {
1287
- if_block1 = create_if_block_6(ctx);
1288
- if_block1.c();
1289
- if_block1.m(div2, null);
1290
- }
1291
- } else if (if_block1) {
1292
- if_block1.d(1);
1293
- if_block1 = null;
1294
- }
1295
-
1296
- if (dirty[0] & /*invalidName*/ 2 && div2_class_value !== (div2_class_value = "UserContainer " + (/*invalidName*/ ctx[1] ? "InvalidField" : ""))) {
1297
- attr_dev(div2, "class", div2_class_value);
1298
- }
1299
-
1300
- if (dirty[0] & /*userPassword*/ 256 && input2.value !== /*userPassword*/ ctx[8]) {
1301
- set_input_value(input2, /*userPassword*/ ctx[8]);
1302
- }
1303
-
1304
- if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block2) {
1305
- if_block2.p(ctx, dirty);
1306
- } else {
1307
- if_block2.d(1);
1308
- if_block2 = current_block_type(ctx);
1309
-
1310
- if (if_block2) {
1311
- if_block2.c();
1312
- if_block2.m(div3, t19);
1313
- }
1314
- }
1315
-
1316
- if (/*invalidPassword*/ ctx[2]) {
1317
- if (if_block3) ; else {
1318
- if_block3 = create_if_block_4(ctx);
1319
- if_block3.c();
1320
- if_block3.m(div3, null);
1321
- }
1322
- } else if (if_block3) {
1323
- if_block3.d(1);
1324
- if_block3 = null;
1325
- }
1326
-
1327
- if (dirty[0] & /*invalidPassword*/ 4 && div3_class_value !== (div3_class_value = "PasswordContainer " + (/*invalidPassword*/ ctx[2] ? "InvalidField" : ""))) {
1328
- attr_dev(div3, "class", div3_class_value);
1329
- }
1330
-
1331
- if (dirty[0] & /*confirmUserPassword*/ 512 && input3.value !== /*confirmUserPassword*/ ctx[9]) {
1332
- set_input_value(input3, /*confirmUserPassword*/ ctx[9]);
1333
- }
1334
-
1335
- if (current_block_type_1 === (current_block_type_1 = select_block_type_1(ctx)) && if_block4) {
1336
- if_block4.p(ctx, dirty);
1337
- } else {
1338
- if_block4.d(1);
1339
- if_block4 = current_block_type_1(ctx);
1340
-
1341
- if (if_block4) {
1342
- if_block4.c();
1343
- if_block4.m(div4, t25);
1344
- }
1345
- }
1346
-
1347
- if (/*invalidConfirmPassword*/ ctx[3]) {
1348
- if (if_block5) ; else {
1349
- if_block5 = create_if_block_2(ctx);
1350
- if_block5.c();
1351
- if_block5.m(div4, null);
1352
- }
1353
- } else if (if_block5) {
1354
- if_block5.d(1);
1355
- if_block5 = null;
1356
- }
1357
-
1358
- if (dirty[0] & /*invalidConfirmPassword*/ 8 && div4_class_value !== (div4_class_value = "ConfirmPasswordContainer " + (/*invalidConfirmPassword*/ ctx[3] ? "InvalidField" : ""))) {
1359
- attr_dev(div4, "class", div4_class_value);
1360
- }
1361
-
1362
- if (dirty[0] & /*securityQuestion*/ 1024 && input4.value !== /*securityQuestion*/ ctx[10]) {
1363
- set_input_value(input4, /*securityQuestion*/ ctx[10]);
1364
- }
1365
-
1366
- if (/*invalidSecurityQuestion*/ ctx[4]) {
1367
- if (if_block6) ; else {
1368
- if_block6 = create_if_block_1(ctx);
1369
- if_block6.c();
1370
- if_block6.m(div5, null);
1371
- }
1372
- } else if (if_block6) {
1373
- if_block6.d(1);
1374
- if_block6 = null;
1375
- }
1376
-
1377
- if (dirty[0] & /*invalidSecurityQuestion*/ 16 && div5_class_value !== (div5_class_value = "SecurityQuestionContainer " + (/*invalidSecurityQuestion*/ ctx[4] ? "InvalidField" : ""))) {
1378
- attr_dev(div5, "class", div5_class_value);
1379
- }
1380
-
1381
- if (dirty[0] & /*securityAnswer*/ 2048 && input5.value !== /*securityAnswer*/ ctx[11]) {
1382
- set_input_value(input5, /*securityAnswer*/ ctx[11]);
1383
- }
1384
-
1385
- if (/*invalidSecurityAnswer*/ ctx[5]) {
1386
- if (if_block7) ; else {
1387
- if_block7 = create_if_block(ctx);
1388
- if_block7.c();
1389
- if_block7.m(div6, null);
1390
- }
1391
- } else if (if_block7) {
1392
- if_block7.d(1);
1393
- if_block7 = null;
1394
- }
1395
-
1396
- if (dirty[0] & /*invalidSecurityAnswer*/ 32 && div6_class_value !== (div6_class_value = "SecurityAnswerContainer " + (/*invalidSecurityAnswer*/ ctx[5] ? "InvalidField" : ""))) {
1397
- attr_dev(div6, "class", div6_class_value);
1398
- }
1399
-
1400
- if (dirty[0] & /*isValid*/ 65536 && button_disabled_value !== (button_disabled_value = !/*isValid*/ ctx[16])) {
1401
- prop_dev(button, "disabled", button_disabled_value);
1402
- }
1403
- },
1404
- i: noop,
1405
- o: noop,
1406
- d: function destroy(detaching) {
1407
- if (detaching) detach_dev(div0);
1408
- if (detaching) detach_dev(t4);
1409
- if (detaching) detach_dev(div7);
1410
- if (if_block0) if_block0.d();
1411
- if (if_block1) if_block1.d();
1412
- /*input2_binding*/ ctx[33](null);
1413
- if_block2.d();
1414
- if (if_block3) if_block3.d();
1415
- /*input3_binding*/ ctx[37](null);
1416
- if_block4.d();
1417
- if (if_block5) if_block5.d();
1418
- if (if_block6) if_block6.d();
1419
- if (if_block7) if_block7.d();
1420
- if (detaching) detach_dev(t36);
1421
- if (detaching) detach_dev(button);
1422
- mounted = false;
1423
- run_all(dispose);
1424
- }
1425
- };
1426
-
1427
- dispatch_dev("SvelteRegisterBlock", {
1428
- block,
1429
- id: create_fragment.name,
1430
- type: "component",
1431
- source: "",
1432
- ctx
1433
- });
1434
-
1435
- return block;
1436
- }
1437
-
1438
- function instance($$self, $$props, $$invalidate) {
1439
- let { $$slots: slots = {}, $$scope } = $$props;
1440
- validate_slots("undefined", slots, []);
1441
- let invalidEmail = false;
1442
- let invalidName = false;
1443
- let invalidPassword = false;
1444
- let invalidConfirmPassword = false;
1445
- let invalidSecurityQuestion = false;
1446
- let invalidSecurityAnswer = false;
1447
- let userValue = "";
1448
- let userEmail = "";
1449
- let userPassword = "";
1450
- let confirmUserPassword = "";
1451
- let securityQuestion = "";
1452
- let securityAnswer = "";
1453
- let isPasswordVisible = false;
1454
- let isConfirmPasswordVisible = false;
1455
- let passwordVisibilityToggle;
1456
- let confirmPasswordVisibilityToggle;
1457
- let isValid = false;
1458
-
1459
- const checkIsValid = () => {
1460
- $$invalidate(16, isValid = !(invalidEmail || invalidName || invalidPassword || invalidConfirmPassword || invalidSecurityQuestion || invalidSecurityAnswer));
1461
-
1462
- if (userValue.length <= 0 || userEmail.length <= 0 || userPassword.length <= 0 || confirmUserPassword.length <= 0 || securityQuestion.length <= 0 || securityAnswer.length <= 0) {
1463
- $$invalidate(16, isValid = false);
1464
- }
1465
- };
1466
-
1467
- const switchToLogin = () => {
1468
- window.postMessage({ type: "ToLogin" }, window.location.href);
1469
- };
1470
-
1471
- const regexValidators = {
1472
- user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,
1473
- email: /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]{2,3}$/,
1474
- password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
1475
- };
1476
-
1477
- const checkEmailIdentifier = email => {
1478
- if (regexValidators.email.test(email)) {
1479
- return true;
1480
- }
1481
-
1482
- return false;
1483
- };
1484
-
1485
- const validateEmail = () => {
1486
- $$invalidate(0, invalidEmail = !checkEmailIdentifier(userEmail));
1487
- checkIsValid();
1488
- };
1489
-
1490
- const checkUserIdentifier = user => {
1491
- if (regexValidators.user.test(user)) {
1492
- return true;
1493
- }
1494
-
1495
- return false;
1496
- };
1497
-
1498
- const validateUserName = () => {
1499
- $$invalidate(1, invalidName = !checkUserIdentifier(userValue));
1500
- checkIsValid();
1501
- };
1502
-
1503
- const showPassword = () => {
1504
- $$invalidate(12, isPasswordVisible = true);
1505
- togglePasswordVisibility();
1506
- };
1507
-
1508
- const showConfirmPassword = () => {
1509
- $$invalidate(13, isConfirmPasswordVisible = true);
1510
- toggleConfirmPasswordVisibility();
1511
- };
1512
-
1513
- const hidePassword = () => {
1514
- $$invalidate(12, isPasswordVisible = false);
1515
- togglePasswordVisibility();
1516
- };
1517
-
1518
- const hideConfirmPassword = () => {
1519
- $$invalidate(13, isConfirmPasswordVisible = false);
1520
- toggleConfirmPasswordVisibility();
1521
- };
1522
-
1523
- const togglePasswordVisibility = () => {
1524
- $$invalidate(14, passwordVisibilityToggle.type = isPasswordVisible ? "text" : "password", passwordVisibilityToggle);
1525
- };
1526
-
1527
- const toggleConfirmPasswordVisibility = () => {
1528
- $$invalidate(15, confirmPasswordVisibilityToggle.type = isConfirmPasswordVisible ? "text" : "password", confirmPasswordVisibilityToggle);
1529
- };
1530
-
1531
- const checkUserPassword = password => {
1532
- if (regexValidators.password.test(password)) {
1533
- return true;
1534
- }
1535
-
1536
- return false;
1537
- };
1538
-
1539
- const validatePassword = () => {
1540
- $$invalidate(2, invalidPassword = !checkUserPassword(userPassword));
1541
-
1542
- if (userPassword !== confirmUserPassword && confirmUserPassword.length > 0) {
1543
- $$invalidate(3, invalidConfirmPassword = true);
1544
- }
1545
-
1546
- checkIsValid();
1547
- };
1548
-
1549
- const checkUserConfirmPassword = () => {
1550
- if (userPassword === confirmUserPassword) {
1551
- return true;
1552
- }
1553
-
1554
- return false;
1555
- };
1556
-
1557
- const validateConfirmPassword = () => {
1558
- $$invalidate(3, invalidConfirmPassword = !checkUserConfirmPassword());
1559
- checkIsValid();
1560
- };
1561
-
1562
- const checkSecurityQuestion = () => {
1563
- if (securityQuestion && securityQuestion.length <= 120) {
1564
- return true;
1565
- }
1566
-
1567
- return false;
1568
- };
1569
-
1570
- const validateSecurityQuestion = () => {
1571
- $$invalidate(4, invalidSecurityQuestion = !checkSecurityQuestion());
1572
- checkIsValid();
1573
- };
1574
-
1575
- const checkSecurityAnswer = () => {
1576
- if (securityAnswer && securityAnswer.length <= 120) {
1577
- return true;
1578
- }
1579
-
1580
- return false;
1581
- };
1582
-
1583
- const validateSecurityAnswer = () => {
1584
- $$invalidate(5, invalidSecurityAnswer = !checkSecurityAnswer());
1585
- checkIsValid();
1586
- };
1587
-
1588
- const goNext = () => {
1589
- let registerStepOneData = {
1590
- userEmail,
1591
- userValue,
1592
- userPassword,
1593
- confirmUserPassword,
1594
- securityQuestion,
1595
- securityAnswer
1596
- };
1597
-
1598
- window.postMessage(
1599
- {
1600
- type: "RegisterStepOne",
1601
- registerStepOneData
1602
- },
1603
- window.location.href
1604
- );
1605
- };
1606
-
1607
- const messageHandler = e => {
1608
- if (e.data) {
1609
- switch (e.data.type) {
1610
- case "StepOneDataBackup":
1611
- $$invalidate(7, userEmail = e.data.userData.email);
1612
- $$invalidate(6, userValue = e.data.userData.username);
1613
- $$invalidate(8, userPassword = e.data.userData.password);
1614
- $$invalidate(9, confirmUserPassword = e.data.userData.password);
1615
- $$invalidate(10, securityQuestion = e.data.userData.securityQuestion);
1616
- $$invalidate(11, securityAnswer = e.data.userData.securityAnswer);
1617
- checkIsValid();
1618
- break;
1619
- }
1620
- }
1621
- };
1622
-
1623
- onMount(() => {
1624
- window.addEventListener("message", messageHandler, false);
1625
-
1626
- return () => {
1627
- window.removeEventListener("message", messageHandler);
1628
- };
1629
- });
1630
-
1631
- const writable_props = [];
1632
-
1633
- Object.keys($$props).forEach(key => {
1634
- if (!~writable_props.indexOf(key) && key.slice(0, 2) !== "$$") console.warn(`<undefined> was created with unknown prop '${key}'`);
1635
- });
1636
-
1637
- const click_handler = () => switchToLogin();
1638
-
1639
- function input0_input_handler() {
1640
- userEmail = this.value;
1641
- $$invalidate(7, userEmail);
1642
- }
1643
-
1644
- function input1_input_handler() {
1645
- userValue = this.value;
1646
- $$invalidate(6, userValue);
1647
- }
1648
-
1649
- function input2_input_handler() {
1650
- userPassword = this.value;
1651
- $$invalidate(8, userPassword);
1652
- }
1653
-
1654
- function input2_binding($$value) {
1655
- binding_callbacks[$$value ? "unshift" : "push"](() => {
1656
- passwordVisibilityToggle = $$value;
1657
- $$invalidate(14, passwordVisibilityToggle);
1658
- });
1659
- }
1660
-
1661
- const click_handler_1 = () => hidePassword();
1662
- const click_handler_2 = () => showPassword();
1663
-
1664
- function input3_input_handler() {
1665
- confirmUserPassword = this.value;
1666
- $$invalidate(9, confirmUserPassword);
1667
- }
1668
-
1669
- function input3_binding($$value) {
1670
- binding_callbacks[$$value ? "unshift" : "push"](() => {
1671
- confirmPasswordVisibilityToggle = $$value;
1672
- $$invalidate(15, confirmPasswordVisibilityToggle);
1673
- });
1674
- }
1675
-
1676
- const click_handler_3 = () => hideConfirmPassword();
1677
- const click_handler_4 = () => showConfirmPassword();
1678
-
1679
- function input4_input_handler() {
1680
- securityQuestion = this.value;
1681
- $$invalidate(10, securityQuestion);
1682
- }
1683
-
1684
- function input5_input_handler() {
1685
- securityAnswer = this.value;
1686
- $$invalidate(11, securityAnswer);
1687
- }
1688
-
1689
- $$self.$capture_state = () => ({
1690
- onMount,
1691
- invalidEmail,
1692
- invalidName,
1693
- invalidPassword,
1694
- invalidConfirmPassword,
1695
- invalidSecurityQuestion,
1696
- invalidSecurityAnswer,
1697
- userValue,
1698
- userEmail,
1699
- userPassword,
1700
- confirmUserPassword,
1701
- securityQuestion,
1702
- securityAnswer,
1703
- isPasswordVisible,
1704
- isConfirmPasswordVisible,
1705
- passwordVisibilityToggle,
1706
- confirmPasswordVisibilityToggle,
1707
- isValid,
1708
- checkIsValid,
1709
- switchToLogin,
1710
- regexValidators,
1711
- checkEmailIdentifier,
1712
- validateEmail,
1713
- checkUserIdentifier,
1714
- validateUserName,
1715
- showPassword,
1716
- showConfirmPassword,
1717
- hidePassword,
1718
- hideConfirmPassword,
1719
- togglePasswordVisibility,
1720
- toggleConfirmPasswordVisibility,
1721
- checkUserPassword,
1722
- validatePassword,
1723
- checkUserConfirmPassword,
1724
- validateConfirmPassword,
1725
- checkSecurityQuestion,
1726
- validateSecurityQuestion,
1727
- checkSecurityAnswer,
1728
- validateSecurityAnswer,
1729
- goNext,
1730
- messageHandler
1731
- });
1732
-
1733
- $$self.$inject_state = $$props => {
1734
- if ("invalidEmail" in $$props) $$invalidate(0, invalidEmail = $$props.invalidEmail);
1735
- if ("invalidName" in $$props) $$invalidate(1, invalidName = $$props.invalidName);
1736
- if ("invalidPassword" in $$props) $$invalidate(2, invalidPassword = $$props.invalidPassword);
1737
- if ("invalidConfirmPassword" in $$props) $$invalidate(3, invalidConfirmPassword = $$props.invalidConfirmPassword);
1738
- if ("invalidSecurityQuestion" in $$props) $$invalidate(4, invalidSecurityQuestion = $$props.invalidSecurityQuestion);
1739
- if ("invalidSecurityAnswer" in $$props) $$invalidate(5, invalidSecurityAnswer = $$props.invalidSecurityAnswer);
1740
- if ("userValue" in $$props) $$invalidate(6, userValue = $$props.userValue);
1741
- if ("userEmail" in $$props) $$invalidate(7, userEmail = $$props.userEmail);
1742
- if ("userPassword" in $$props) $$invalidate(8, userPassword = $$props.userPassword);
1743
- if ("confirmUserPassword" in $$props) $$invalidate(9, confirmUserPassword = $$props.confirmUserPassword);
1744
- if ("securityQuestion" in $$props) $$invalidate(10, securityQuestion = $$props.securityQuestion);
1745
- if ("securityAnswer" in $$props) $$invalidate(11, securityAnswer = $$props.securityAnswer);
1746
- if ("isPasswordVisible" in $$props) $$invalidate(12, isPasswordVisible = $$props.isPasswordVisible);
1747
- if ("isConfirmPasswordVisible" in $$props) $$invalidate(13, isConfirmPasswordVisible = $$props.isConfirmPasswordVisible);
1748
- if ("passwordVisibilityToggle" in $$props) $$invalidate(14, passwordVisibilityToggle = $$props.passwordVisibilityToggle);
1749
- if ("confirmPasswordVisibilityToggle" in $$props) $$invalidate(15, confirmPasswordVisibilityToggle = $$props.confirmPasswordVisibilityToggle);
1750
- if ("isValid" in $$props) $$invalidate(16, isValid = $$props.isValid);
1751
- };
1752
-
1753
- if ($$props && "$$inject" in $$props) {
1754
- $$self.$inject_state($$props.$$inject);
1755
- }
1756
-
1757
- return [
1758
- invalidEmail,
1759
- invalidName,
1760
- invalidPassword,
1761
- invalidConfirmPassword,
1762
- invalidSecurityQuestion,
1763
- invalidSecurityAnswer,
1764
- userValue,
1765
- userEmail,
1766
- userPassword,
1767
- confirmUserPassword,
1768
- securityQuestion,
1769
- securityAnswer,
1770
- isPasswordVisible,
1771
- isConfirmPasswordVisible,
1772
- passwordVisibilityToggle,
1773
- confirmPasswordVisibilityToggle,
1774
- isValid,
1775
- switchToLogin,
1776
- validateEmail,
1777
- validateUserName,
1778
- showPassword,
1779
- showConfirmPassword,
1780
- hidePassword,
1781
- hideConfirmPassword,
1782
- validatePassword,
1783
- validateConfirmPassword,
1784
- validateSecurityQuestion,
1785
- validateSecurityAnswer,
1786
- goNext,
1787
- click_handler,
1788
- input0_input_handler,
1789
- input1_input_handler,
1790
- input2_input_handler,
1791
- input2_binding,
1792
- click_handler_1,
1793
- click_handler_2,
1794
- input3_input_handler,
1795
- input3_binding,
1796
- click_handler_3,
1797
- click_handler_4,
1798
- input4_input_handler,
1799
- input5_input_handler
1800
- ];
1801
- }
1802
-
1803
- class GeneralPlayerRegisterFormStep1 extends SvelteElement {
1804
- constructor(options) {
1805
- super();
1806
- this.shadowRoot.innerHTML = `<style>.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>`;
1807
-
1808
- init(
1809
- this,
1810
- {
1811
- target: this.shadowRoot,
1812
- props: attribute_to_object(this.attributes),
1813
- customElement: true
1814
- },
1815
- instance,
1816
- create_fragment,
1817
- safe_not_equal,
1818
- {},
1819
- [-1, -1]
1820
- );
1821
-
1822
- if (options) {
1823
- if (options.target) {
1824
- insert_dev(options.target, this, options.anchor);
1825
- }
1826
- }
1827
- }
1828
- }
1829
-
1830
- !customElements.get('general-player-register-form-step1') && customElements.define('general-player-register-form-step1', GeneralPlayerRegisterFormStep1);
1831
-
1832
- return GeneralPlayerRegisterFormStep1;
1833
-
1834
- })));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function xt(){}function d(t){return t()}function p(){return Object.create(null)}function vt(t){t.forEach(d)}function m(t){return"function"==typeof t}function e(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function bt(t,e){t.appendChild(e)}function yt(t,e,n){t.insertBefore(e,n||null)}function Ct(t){t.parentNode.removeChild(t)}function t(t){return document.createElement(t)}function x(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function $t(t){return document.createTextNode(t)}function Ft(){return $t(" ")}function It(t,e,n,a){return t.addEventListener(e,n,a),()=>t.removeEventListener(e,n,a)}function St(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Pt(t,e){t.value=null==e?"":e}let _;function f(t){_=t}const h=[],k=[],a=[],r=[],g=Promise.resolve();let w=!1;function v(t){a.push(t)}let s=!1;const i=new Set;function b(){if(!s){s=!0;do{for(let t=0;t<h.length;t+=1){var e=h[t];f(e),function(t){{var e;null!==t.fragment&&(t.update(),vt(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(v))}}(e.$$)}for(f(null),h.length=0;k.length;)k.pop()();for(let t=0;t<a.length;t+=1){const n=a[t];i.has(n)||(i.add(n),n())}}while(a.length=0,h.length);for(;r.length;)r.pop()();w=!1,s=!1,i.clear()}}const y=new Set;function n(a,t,e,n,r,s,i=[-1]){var o,l=_;f(a);const c=a.$$={fragment:null,ctx:null,props:s,update:xt,not_equal:r,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:i,skip_bound:!1};let u=!1;if(c.ctx=e?e(a,t.props||{},(t,e,...n)=>{n=n.length?n[0]:e;return c.ctx&&r(c.ctx[t],c.ctx[t]=n)&&(!c.skip_bound&&c.bound[t]&&c.bound[t](n),u&&(n=t,-1===(t=a).$$.dirty[0]&&(h.push(t),w||(w=!0,g.then(b)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31)),e}):[],c.update(),u=!0,vt(c.before_update),c.fragment=!!n&&n(c.ctx),t.target){if(t.hydrate){const xt=(n=t.target,Array.from(n.childNodes));c.fragment&&c.fragment.l(xt),xt.forEach(Ct)}else c.fragment&&c.fragment.c();t.intro&&(o=a.$$.fragment)&&o.i&&(y.delete(o),o.i(void 0)),function(e,t,n,a){const{fragment:r,on_mount:s,on_destroy:i,after_update:o}=e.$$;r&&r.m(t,n),a||v(()=>{var t=s.map(d).filter(m);i?i.push(...t):vt(t),e.$$.on_mount=[]}),o.forEach(v)}(a,t.target,t.anchor,t.customElement),b()}f(l)}let o;function At(){let n;return{c(){n=t("p"),n.textContent="Email should contain '@' and a 2-3 letter long domain.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function Et(){let n;return{c(){n=t("p"),n.textContent="Name must be at least 2 characters long and contain no special characters.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function Tt(n){let a,r,s,i,o,l,c,u,d;return{c(){a=x("svg"),r=x("defs"),s=x("style"),i=$t(".a{fill:#07072a;}"),o=x("g"),l=x("path"),c=x("circle"),St(l,"class","a"),St(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),St(l,"transform","translate(0)"),St(c,"class","a"),St(c,"cx","2.779"),St(c,"cy","2.779"),St(c,"r","2.779"),St(c,"transform","translate(20.827 30.303)"),St(o,"transform","translate(-14.185 -27.832)"),St(a,"class","TogglePasswordVisibility"),St(a,"xmlns","http://www.w3.org/2000/svg"),St(a,"width","18.843"),St(a,"height","10.5"),St(a,"viewBox","0 0 18.843 10.5")},m(t,e){yt(t,a,e),bt(a,r),bt(r,s),bt(s,i),bt(a,o),bt(o,l),bt(o,c),u||(d=It(a,"click",n[35]),u=!0)},p:xt,d(t){t&&Ct(a),u=!1,d()}}}function _t(n){let a,r,s,i,o,l,c,u,d,p,m,f,h,g,w;return{c(){a=x("svg"),r=x("defs"),s=x("style"),i=$t(".a{fill:#07072a;}"),o=x("g"),l=x("circle"),c=x("g"),u=x("path"),d=x("path"),p=x("g"),m=x("path"),f=x("path"),h=x("rect"),St(l,"class","a"),St(l,"cx","0.05"),St(l,"cy","0.05"),St(l,"r","0.05"),St(l,"transform","translate(121.017 31.148)"),St(u,"class","a"),St(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),St(u,"transform","translate(-142.164 -39.123)"),St(d,"class","a"),St(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),St(d,"transform","translate(-136.413 -42.068)"),St(c,"transform","translate(117.499 27.37)"),St(m,"class","a"),St(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),St(m,"transform","translate(-110.856 -33.157)"),St(f,"class","a"),St(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),St(f,"transform","translate(-130.743 -29.617)"),St(p,"transform","translate(110.856 24.899)"),St(h,"class","a"),St(h,"width","0.972"),St(h,"height","15.861"),St(h,"rx","0.486"),St(h,"transform","translate(114.827 23.858) rotate(-39.315)"),St(o,"transform","translate(-110.856 -23.242)"),St(a,"class","TogglePasswordVisibility"),St(a,"xmlns","http://www.w3.org/2000/svg"),St(a,"width","18.844"),St(a,"height","12.887"),St(a,"viewBox","0 0 18.844 12.887")},m(t,e){yt(t,a,e),bt(a,r),bt(r,s),bt(s,i),bt(a,o),bt(o,l),bt(o,c),bt(c,u),bt(c,d),bt(o,p),bt(p,m),bt(p,f),bt(o,h),g||(w=It(a,"click",n[34]),g=!0)},p:xt,d(t){t&&Ct(a),g=!1,w()}}}function kt(){let n;return{c(){n=t("p"),n.textContent="Password must be 8-20 characters long, and contain at least 1 uppercase letter, 1 number and 1 special character.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function Mt(n){let a,r,s,i,o,l,c,u,d;return{c(){a=x("svg"),r=x("defs"),s=x("style"),i=$t(".a{fill:#07072a;}"),o=x("g"),l=x("path"),c=x("circle"),St(l,"class","a"),St(l,"d","M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"),St(l,"transform","translate(0)"),St(c,"class","a"),St(c,"cx","2.779"),St(c,"cy","2.779"),St(c,"r","2.779"),St(c,"transform","translate(20.827 30.303)"),St(o,"transform","translate(-14.185 -27.832)"),St(a,"class","ToggleConfirmPasswordVisibility"),St(a,"xmlns","http://www.w3.org/2000/svg"),St(a,"width","18.843"),St(a,"height","10.5"),St(a,"viewBox","0 0 18.843 10.5")},m(t,e){yt(t,a,e),bt(a,r),bt(r,s),bt(s,i),bt(a,o),bt(o,l),bt(o,c),u||(d=It(a,"click",n[39]),u=!0)},p:xt,d(t){t&&Ct(a),u=!1,d()}}}function Rt(n){let a,r,s,i,o,l,c,u,d,p,m,f,h,g,w;return{c(){a=x("svg"),r=x("defs"),s=x("style"),i=$t(".a{fill:#07072a;}"),o=x("g"),l=x("circle"),c=x("g"),u=x("path"),d=x("path"),p=x("g"),m=x("path"),f=x("path"),h=x("rect"),St(l,"class","a"),St(l,"cx","0.05"),St(l,"cy","0.05"),St(l,"r","0.05"),St(l,"transform","translate(121.017 31.148)"),St(u,"class","a"),St(u,"d","M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"),St(u,"transform","translate(-142.164 -39.123)"),St(d,"class","a"),St(d,"d","M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"),St(d,"transform","translate(-136.413 -42.068)"),St(c,"transform","translate(117.499 27.37)"),St(m,"class","a"),St(m,"d","M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"),St(m,"transform","translate(-110.856 -33.157)"),St(f,"class","a"),St(f,"d","M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"),St(f,"transform","translate(-130.743 -29.617)"),St(p,"transform","translate(110.856 24.899)"),St(h,"class","a"),St(h,"width","0.972"),St(h,"height","15.861"),St(h,"rx","0.486"),St(h,"transform","translate(114.827 23.858) rotate(-39.315)"),St(o,"transform","translate(-110.856 -23.242)"),St(a,"class","ToggleConfirmPasswordVisibility"),St(a,"xmlns","http://www.w3.org/2000/svg"),St(a,"width","18.844"),St(a,"height","12.887"),St(a,"viewBox","0 0 18.844 12.887")},m(t,e){yt(t,a,e),bt(a,r),bt(r,s),bt(s,i),bt(a,o),bt(o,l),bt(o,c),bt(c,u),bt(c,d),bt(o,p),bt(p,m),bt(p,f),bt(o,h),g||(w=It(a,"click",n[38]),g=!0)},p:xt,d(t){t&&Ct(a),g=!1,w()}}}function Dt(){let n;return{c(){n=t("p"),n.textContent="Do not match with password.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function Lt(){let n;return{c(){n=t("p"),n.textContent="Security question must be at least 1 character long and maximum 120 characters.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function Zt(){let n;return{c(){n=t("p"),n.textContent="Security answer must be at least 1 character long and maximum 120 characters.",St(n,"class","InvalidInput")},m(t,e){yt(t,n,e)},d(t){t&&Ct(n)}}}function l(n){let a,r,s,i,o,l,c,u,d,p,m,f,h,g,w,x,v,b,y,C,$,F,I,S,P,A,E,T,_,k,M,R,D,L,Z,z,U,H,N,Q,q,B,V,j,O,G,J,K,W,X,Y,tt,et,nt,at,rt,st,it=n[0]&&At(),ot=n[1]&&Et();function lt(t){return t[12]?_t:Tt}let ct=lt(n),ut=ct(n),dt=n[2]&&kt();function pt(t){return t[13]?Rt:Mt}let mt=pt(n),ft=mt(n),ht=n[3]&&Dt(),gt=n[4]&&Lt(),wt=n[5]&&Zt();return{c(){a=t("div"),r=t("h2"),r.textContent="Create your account",s=Ft(),i=t("p"),o=$t("Already have an account? "),l=t("span"),l.textContent="Login",c=Ft(),u=t("div"),d=t("div"),p=t("label"),p.innerHTML='Email:<span class="FormRequired">*</span>',m=Ft(),f=t("input"),h=Ft(),it&&it.c(),w=Ft(),x=t("div"),v=t("label"),v.innerHTML='Username:<span class="FormRequired">*</span>',b=Ft(),y=t("input"),C=Ft(),ot&&ot.c(),F=Ft(),I=t("div"),S=t("label"),S.innerHTML='Password:<span class="FormRequired">*</span>',P=Ft(),A=t("input"),E=Ft(),ut.c(),T=Ft(),dt&&dt.c(),k=Ft(),M=t("div"),R=t("label"),R.innerHTML='Confirm Password:<span class="FormRequired">*</span>',D=Ft(),L=t("input"),Z=Ft(),ft.c(),z=Ft(),ht&&ht.c(),H=Ft(),N=t("div"),Q=t("label"),Q.innerHTML='Security Question:<span class="FormRequired">*</span>',q=Ft(),B=t("input"),V=Ft(),gt&&gt.c(),O=Ft(),G=t("div"),J=t("label"),J.innerHTML='Security Answer:<span class="FormRequired">*</span>',K=Ft(),W=t("input"),X=Ft(),wt&&wt.c(),tt=Ft(),et=t("button"),nt=$t("Next"),this.c=xt,St(r,"class","RegisterFormTitle"),St(l,"class","FormLoginCallToAction"),St(i,"class","RegisterFormSubtitle"),St(a,"class","RegisterFormHeader"),St(p,"for","Email"),St(f,"type","text"),St(f,"id","Email"),St(d,"class",g="EmailContainer "+(n[0]?"InvalidField":"")),St(v,"for","UserName"),St(y,"type","text"),St(y,"id","UserName"),St(x,"class",$="UserContainer "+(n[1]?"InvalidField":"")),St(S,"for","Password"),St(A,"type","password"),St(A,"id","Password"),St(I,"class",_="PasswordContainer "+(n[2]?"InvalidField":"")),St(R,"for","ConfirmPassword"),St(L,"type","password"),St(L,"id","ConfirmPassword"),St(M,"class",U="ConfirmPasswordContainer "+(n[3]?"InvalidField":"")),St(Q,"for","SecurityQuestion"),St(B,"type","text"),St(B,"id","SecurityQuestion"),St(N,"class",j="SecurityQuestionContainer "+(n[4]?"InvalidField":"")),St(J,"for","SecurityAnswer"),St(W,"type","text"),St(W,"id","SecurityAnswer"),St(G,"class",Y="SecurityAnswerContainer "+(n[5]?"InvalidField":"")),St(u,"class","RegisterFormContent"),St(et,"class","RegisterStepNext"),et.disabled=at=!n[16]},m(t,e){yt(t,a,e),bt(a,r),bt(a,s),bt(a,i),bt(i,o),bt(i,l),yt(t,c,e),yt(t,u,e),bt(u,d),bt(d,p),bt(d,m),bt(d,f),Pt(f,n[7]),bt(d,h),it&&it.m(d,null),bt(u,w),bt(u,x),bt(x,v),bt(x,b),bt(x,y),Pt(y,n[6]),bt(x,C),ot&&ot.m(x,null),bt(u,F),bt(u,I),bt(I,S),bt(I,P),bt(I,A),Pt(A,n[8]),n[33](A),bt(I,E),ut.m(I,null),bt(I,T),dt&&dt.m(I,null),bt(u,k),bt(u,M),bt(M,R),bt(M,D),bt(M,L),Pt(L,n[9]),n[37](L),bt(M,Z),ft.m(M,null),bt(M,z),ht&&ht.m(M,null),bt(u,H),bt(u,N),bt(N,Q),bt(N,q),bt(N,B),Pt(B,n[10]),bt(N,V),gt&&gt.m(N,null),bt(u,O),bt(u,G),bt(G,J),bt(G,K),bt(G,W),Pt(W,n[11]),bt(G,X),wt&&wt.m(G,null),yt(t,tt,e),yt(t,et,e),bt(et,nt),rt||(st=[It(l,"click",n[29]),It(f,"input",n[30]),It(f,"blur",n[18]),It(y,"input",n[31]),It(y,"blur",n[19]),It(A,"input",n[32]),It(A,"blur",n[24]),It(L,"input",n[36]),It(L,"blur",n[25]),It(B,"input",n[40]),It(B,"blur",n[26]),It(W,"input",n[41]),It(W,"keyup",n[27]),It(et,"click",n[28])],rt=!0)},p(t,e){128&e[0]&&f.value!==t[7]&&Pt(f,t[7]),t[0]?it||(it=At(),it.c(),it.m(d,null)):it&&(it.d(1),it=null),1&e[0]&&g!==(g="EmailContainer "+(t[0]?"InvalidField":""))&&St(d,"class",g),64&e[0]&&y.value!==t[6]&&Pt(y,t[6]),t[1]?ot||(ot=Et(),ot.c(),ot.m(x,null)):ot&&(ot.d(1),ot=null),2&e[0]&&$!==($="UserContainer "+(t[1]?"InvalidField":""))&&St(x,"class",$),256&e[0]&&A.value!==t[8]&&Pt(A,t[8]),ct===(ct=lt(t))&&ut?ut.p(t,e):(ut.d(1),ut=ct(t),ut&&(ut.c(),ut.m(I,T))),t[2]?dt||(dt=kt(),dt.c(),dt.m(I,null)):dt&&(dt.d(1),dt=null),4&e[0]&&_!==(_="PasswordContainer "+(t[2]?"InvalidField":""))&&St(I,"class",_),512&e[0]&&L.value!==t[9]&&Pt(L,t[9]),mt===(mt=pt(t))&&ft?ft.p(t,e):(ft.d(1),ft=mt(t),ft&&(ft.c(),ft.m(M,z))),t[3]?ht||(ht=Dt(),ht.c(),ht.m(M,null)):ht&&(ht.d(1),ht=null),8&e[0]&&U!==(U="ConfirmPasswordContainer "+(t[3]?"InvalidField":""))&&St(M,"class",U),1024&e[0]&&B.value!==t[10]&&Pt(B,t[10]),t[4]?gt||(gt=Lt(),gt.c(),gt.m(N,null)):gt&&(gt.d(1),gt=null),16&e[0]&&j!==(j="SecurityQuestionContainer "+(t[4]?"InvalidField":""))&&St(N,"class",j),2048&e[0]&&W.value!==t[11]&&Pt(W,t[11]),t[5]?wt||(wt=Zt(),wt.c(),wt.m(G,null)):wt&&(wt.d(1),wt=null),32&e[0]&&Y!==(Y="SecurityAnswerContainer "+(t[5]?"InvalidField":""))&&St(G,"class",Y),65536&e[0]&&at!==(at=!t[16])&&(et.disabled=at)},i:xt,o:xt,d(t){t&&Ct(a),t&&Ct(c),t&&Ct(u),it&&it.d(),ot&&ot.d(),n[33](null),ut.d(),dt&&dt.d(),n[37](null),ft.d(),ht&&ht.d(),gt&&gt.d(),wt&&wt.d(),t&&Ct(tt),t&&Ct(et),rt=!1,vt(st)}}}function c(t,e,n){let a,r,s=!1,i=!1,o=!1,l=!1,c=!1,u=!1,d="",p="",m="",f="",h="",g="",w=!1,x=!1,v=!1;const b=()=>{n(16,v=!(s||i||o||l||c||u)),(d.length<=0||p.length<=0||m.length<=0||f.length<=0||h.length<=0||g.length<=0)&&n(16,v=!1)},y=()=>{window.postMessage({type:"ToLogin"},window.location.href)},C={user:/^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){2})^[a-zA-Z\d]*$/,email:/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,password:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/},$=()=>{n(12,w=!0),P()},F=()=>{n(13,x=!0),A()},I=()=>{n(12,w=!1),P()},S=()=>{n(13,x=!1),A()},P=()=>{n(14,a.type=w?"text":"password",a)},A=()=>{n(15,r.type=x?"text":"password",r)},E=t=>{t.data&&"StepOneDataBackup"===t.data.type&&(n(7,p=t.data.userData.email),n(6,d=t.data.userData.username),n(8,m=t.data.userData.password),n(9,f=t.data.userData.password),n(10,h=t.data.userData.securityQuestion),n(11,g=t.data.userData.securityAnswer),b())};var T;return T=()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}),function(){if(!_)throw new Error("Function called outside component initialization");return _}().$$.on_mount.push(T),[s,i,o,l,c,u,d,p,m,f,h,g,w,x,a,r,v,y,()=>{var t;n(0,(t=p,s=!C.email.test(t))),b()},()=>{var t;n(1,(t=d,i=!C.user.test(t))),b()},$,F,I,S,()=>{var t;n(2,(t=m,o=!C.password.test(t))),m!==f&&0<f.length&&n(3,l=!0),b()},()=>{n(3,l=!(m===f)),b()},()=>{n(4,c=!(h&&h.length<=120)),b()},()=>{n(5,u=!(g&&g.length<=120)),b()},()=>{var t={userEmail:p,userValue:d,userPassword:m,confirmUserPassword:f,securityQuestion:h,securityAnswer:g};window.postMessage({type:"RegisterStepOne",registerStepOneData:t},window.location.href)},()=>y(),function(){p=this.value,n(7,p)},function(){d=this.value,n(6,d)},function(){m=this.value,n(8,m)},function(t){k[t?"unshift":"push"](()=>{a=t,n(14,a)})},()=>I(),()=>$(),function(){f=this.value,n(9,f)},function(t){k[t?"unshift":"push"](()=>{r=t,n(15,r)})},()=>S(),()=>F(),function(){h=this.value,n(10,h)},function(){g=this.value,n(11,g)}]}"function"==typeof HTMLElement&&(o=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(d).filter(m);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){vt(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(vt(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=xt}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class u extends o{constructor(t){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}.RegisterFormTitle{font-size:24px;text-transform:uppercase;font-weight:400;margin:0;padding-bottom:8px}.RegisterFormSubtitle{font-size:14px;margin:0;padding-bottom:20px}.FormLoginCallToAction{color:#D0046C;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.EmailContainer,.UserContainer,.PasswordContainer,.ConfirmPasswordContainer,.SecurityQuestionContainer,.SecurityAnswerContainer{color:#58586B;display:flex;flex-direction:column;padding-bottom:30px;position:relative}.EmailContainer label,.UserContainer label,.PasswordContainer label,.ConfirmPasswordContainer label,.SecurityQuestionContainer label,.SecurityAnswerContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.EmailContainer input,.UserContainer input,.PasswordContainer input,.ConfirmPasswordContainer input,.SecurityQuestionContainer input,.SecurityAnswerContainer input{width:100%;height:44px;border:1px solid #D1D1D1;border-radius:5px;padding:5px;font-size:14px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.EmailContainer.InvalidField input,.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.ConfirmPasswordContainer.InvalidField input,.SecurityQuestionContainer.InvalidField input,.SecurityAnswerContainer.InvalidField input{border:1px solid #D0046C;background:#FBECF4;color:#D0046C}.PasswordContainer,.ConfirmPasswordContainer{position:relative}.PasswordContainer input,.ConfirmPasswordContainer input{padding:5px 30px 5px 15px}.FormRequired{color:#FD2839}.TogglePasswordVisibility,.ToggleConfirmPasswordVisibility{height:13px;position:absolute;right:8px;bottom:45.008px}.InvalidInput{color:#D0046C;font-size:10px;position:absolute;bottom:-3px;line-height:10px}.UserContainer .InvalidInput{bottom:-3px}.RegisterStepNext{color:#fff;background:#D0046C;border:1px solid #D0046C;border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.RegisterStepNext[disabled]{background:#c1c1c1;border:1px solid #c1c1c1;cursor:not-allowed}</style>",n(this,{target:this.shadowRoot,props:function(t){const e={};for(const n of t)e[n.name]=n.value;return e}(this.attributes),customElement:!0},c,l,e,{},[-1,-1]),t&&t.target&&yt(t.target,this,t.anchor)}}return customElements.get("general-player-register-form-step1")||customElements.define("general-player-register-form-step1",u),u});
1835
2
  //# sourceMappingURL=general-player-register-form-step1.js.map