@esportsplus/ui 0.50.12 → 0.50.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.js +41 -41
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +23 -23
  8. package/build/components/checkbox/index.js +23 -23
  9. package/build/components/checkbox/scss/index.scss +1 -1
  10. package/build/components/clipboard/onclick.js +13 -13
  11. package/build/components/counter/index.js +34 -34
  12. package/build/components/ellipsis/index.js +5 -5
  13. package/build/components/form/action.js +8 -8
  14. package/build/components/highlight/index.d.ts +16 -16
  15. package/build/components/highlight/index.js +15 -15
  16. package/build/components/icon/index.d.ts +11 -11
  17. package/build/components/icon/index.js +6 -6
  18. package/build/components/input/index.js +20 -20
  19. package/build/components/loader/index.d.ts +16 -16
  20. package/build/components/loader/index.js +33 -33
  21. package/build/components/loading/index.js +5 -5
  22. package/build/components/range/index.js +25 -25
  23. package/build/components/scrollbar/index.d.ts +11 -11
  24. package/build/components/scrollbar/index.js +24 -24
  25. package/build/components/select/index.js +40 -40
  26. package/build/components/switch/scss/index.scss +1 -1
  27. package/build/components/textarea/index.js +20 -20
  28. package/build/components/tooltip/menu.d.ts +11 -11
  29. package/build/components/tooltip/menu.js +20 -20
  30. package/build/components/tooltip/onclick.d.ts +1101 -1101
  31. package/build/components/tooltip/onclick.js +14 -14
  32. package/build/components/tooltip/onhover.d.ts +16 -16
  33. package/build/components/tooltip/onhover.js +15 -15
  34. package/build/components/typewriter/index.d.ts +11 -11
  35. package/build/components/typewriter/index.js +14 -14
  36. package/package.json +1 -1
  37. package/src/components/checkbox/scss/variables.scss +4 -6
  38. package/src/components/switch/scss/variables.scss +4 -6
@@ -1,21 +1,21 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
6
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
7
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
8
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
10
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
11
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
12
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
14
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
15
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
16
- (attributes: template_31dfc3aae3354e00a148889c23732a6c1.Attributes, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
18
- content?: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>;
19
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
5
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
6
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
7
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
8
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
10
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
11
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
12
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
14
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
15
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
16
+ (attributes: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
18
+ content?: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>;
19
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,42 +1,42 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import './scss/index.scss';
6
- const template_31dfc3aae3354e00a148889c23732a6c4 = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div><!--$--></div>`);
7
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c2 extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
8
- #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](0);
6
+ const template_8d320e78acc84a40aecd0d8b5125cc234 = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc232 extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
8
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
13
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
16
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['state'];
20
20
  let key = Symbol();
21
21
  export default template.factory(function (attributes, content) {
22
- let ref, state = attributes.state || new ReactiveObject_31dfc3aae3354e00a148889c23732a6c2();
22
+ let ref, state = attributes.state || new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc232();
23
23
  return (() => {
24
- let root_31dfc3aae3354e00a148889c23732a6c3 = template_31dfc3aae3354e00a148889c23732a6c4(), element_31dfc3aae3354e00a148889c23732a6c5 = root_31dfc3aae3354e00a148889c23732a6c3.firstChild, element_31dfc3aae3354e00a148889c23732a6c6 = element_31dfc3aae3354e00a148889c23732a6c5.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c7 = {};
25
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c5, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c7);
26
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c5, 'class', () => {
24
+ let root_8d320e78acc84a40aecd0d8b5125cc233 = template_8d320e78acc84a40aecd0d8b5125cc234(), element_8d320e78acc84a40aecd0d8b5125cc235 = root_8d320e78acc84a40aecd0d8b5125cc233.firstChild, element_8d320e78acc84a40aecd0d8b5125cc236 = element_8d320e78acc84a40aecd0d8b5125cc235.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc237 = {};
25
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc235, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc237);
26
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc235, 'class', () => {
27
27
  return state.active && '--active';
28
- }, attributes_31dfc3aae3354e00a148889c23732a6c7);
29
- template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c5, (element) => {
28
+ }, attributes_8d320e78acc84a40aecd0d8b5125cc237);
29
+ template_8d320e78acc84a40aecd0d8b5125cc231.onrender(element_8d320e78acc84a40aecd0d8b5125cc235, (element) => {
30
30
  (ref = element)[key] = state;
31
31
  });
32
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c5, 'style', () => {
32
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc235, 'style', () => {
33
33
  let parent = ref.closest('accordion');
34
34
  if (parent && key in parent) {
35
35
  parent[key].active = (+parent[key].active) + 1;
36
36
  }
37
37
  return state.active && `--max-height: ${ref.scrollHeight}`;
38
- }, attributes_31dfc3aae3354e00a148889c23732a6c7);
39
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c6, content);
40
- return root_31dfc3aae3354e00a148889c23732a6c3;
38
+ }, attributes_8d320e78acc84a40aecd0d8b5125cc237);
39
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc236, content);
40
+ return root_8d320e78acc84a40aecd0d8b5125cc233;
41
41
  })();
42
42
  });
@@ -1,50 +1,50 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
3
3
  import { svg } from '@esportsplus/template';
4
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
4
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
5
5
  import { omit } from '@esportsplus/utilities';
6
6
  import { icon } from '@esportsplus/ui';
7
7
  import check from './svg/check.svg';
8
8
  import close from './svg/close.svg';
9
9
  import e from './svg/error.svg';
10
10
  import './scss/index.scss';
11
- const template_31dfc3aae3354e00a148889c23732a6ca = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='--flex-vertical'><!--$--></div>`);
12
- const template_31dfc3aae3354e00a148889c23732a6cf = template_31dfc3aae3354e00a148889c23732a6c1.template(`<p><!--$--></p>`);
13
- const template_31dfc3aae3354e00a148889c23732a6ck = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='--flex-start'><!--$--></div>`);
14
- const template_31dfc3aae3354e00a148889c23732a6cn = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='alert anchor anchor--n --flex-row'><!--$--><div class='alert-messages --flex-column --flex-fill'><!--$--></div><div class="--flex-vertical"><div class='alert-close button --padding-300'><div class="icon" style='--size: 14px;'><!--$--></div></div></div></div>`);
15
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c8 extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
16
- #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
11
+ const template_8d320e78acc84a40aecd0d8b5125cc23a = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='--flex-vertical'><!--$--></div>`);
12
+ const template_8d320e78acc84a40aecd0d8b5125cc23f = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<p><!--$--></p>`);
13
+ const template_8d320e78acc84a40aecd0d8b5125cc23k = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='--flex-start'><!--$--></div>`);
14
+ const template_8d320e78acc84a40aecd0d8b5125cc23n = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='alert anchor anchor--n --flex-row'><!--$--><div class='alert-messages --flex-column --flex-fill'><!--$--></div><div class="--flex-vertical"><div class='alert-close button --padding-300'><div class="icon" style='--size: 14px;'><!--$--></div></div></div></div>`);
15
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc238 extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
16
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
17
17
  #messages;
18
- #rerender = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](0);
18
+ #rerender = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](0);
19
19
  #type;
20
20
  constructor(_p0, _p1) {
21
21
  super(null);
22
- this.#messages = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](_p0);
23
- this.#type = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](_p1);
22
+ this.#messages = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](_p0);
23
+ this.#type = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](_p1);
24
24
  }
25
25
  get active() {
26
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
26
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
27
27
  }
28
28
  set active(_v0) {
29
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
29
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
30
30
  }
31
31
  get messages() {
32
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#messages);
32
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#messages);
33
33
  }
34
34
  set messages(_v1) {
35
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#messages, _v1);
35
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#messages, _v1);
36
36
  }
37
37
  get rerender() {
38
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#rerender);
38
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#rerender);
39
39
  }
40
40
  set rerender(_v2) {
41
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#rerender, _v2);
41
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#rerender, _v2);
42
42
  }
43
43
  get type() {
44
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#type);
44
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#type);
45
45
  }
46
46
  set type(_v3) {
47
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#type, _v3);
47
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#type, _v3);
48
48
  }
49
49
  }
50
50
  const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
@@ -93,7 +93,7 @@ function deactivate(state) {
93
93
  }, timeout);
94
94
  }
95
95
  export default (attributes) => {
96
- let state = new ReactiveObject_31dfc3aae3354e00a148889c23732a6c8(new Set(), '');
96
+ let state = new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc238(new Set(), '');
97
97
  const error = (messages, seconds = 0) => activate('error', messages, seconds, state);
98
98
  error.response = (response) => {
99
99
  if (response.ok) {
@@ -108,41 +108,41 @@ export default (attributes) => {
108
108
  };
109
109
  return {
110
110
  content: (() => {
111
- let root_31dfc3aae3354e00a148889c23732a6cm = template_31dfc3aae3354e00a148889c23732a6cn(), element_31dfc3aae3354e00a148889c23732a6co = root_31dfc3aae3354e00a148889c23732a6cm.firstChild, element_31dfc3aae3354e00a148889c23732a6cp = element_31dfc3aae3354e00a148889c23732a6co.firstChild, element_31dfc3aae3354e00a148889c23732a6cq = element_31dfc3aae3354e00a148889c23732a6co.firstElementChild, element_31dfc3aae3354e00a148889c23732a6cr = element_31dfc3aae3354e00a148889c23732a6cq.firstChild, element_31dfc3aae3354e00a148889c23732a6cs = element_31dfc3aae3354e00a148889c23732a6cq.nextElementSibling.firstElementChild, element_31dfc3aae3354e00a148889c23732a6ct = element_31dfc3aae3354e00a148889c23732a6cs.firstElementChild.firstChild, attributes_31dfc3aae3354e00a148889c23732a6cu = { "class": "alert anchor anchor--n --flex-row" }, attributes_31dfc3aae3354e00a148889c23732a6cv = { "class": "alert-messages --flex-column --flex-fill" }, attributes_31dfc3aae3354e00a148889c23732a6cw = { "class": "alert-close button --padding-300" };
112
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6co, 'class', () => state.active && '--active', attributes_31dfc3aae3354e00a148889c23732a6cu);
113
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6co, omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6cu);
114
- new template_31dfc3aae3354e00a148889c23732a6c1.EffectSlot(element_31dfc3aae3354e00a148889c23732a6cp, () => {
111
+ let root_8d320e78acc84a40aecd0d8b5125cc23m = template_8d320e78acc84a40aecd0d8b5125cc23n(), element_8d320e78acc84a40aecd0d8b5125cc23o = root_8d320e78acc84a40aecd0d8b5125cc23m.firstChild, element_8d320e78acc84a40aecd0d8b5125cc23p = element_8d320e78acc84a40aecd0d8b5125cc23o.firstChild, element_8d320e78acc84a40aecd0d8b5125cc23q = element_8d320e78acc84a40aecd0d8b5125cc23o.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc23r = element_8d320e78acc84a40aecd0d8b5125cc23q.firstChild, element_8d320e78acc84a40aecd0d8b5125cc23s = element_8d320e78acc84a40aecd0d8b5125cc23q.nextElementSibling.firstElementChild, element_8d320e78acc84a40aecd0d8b5125cc23t = element_8d320e78acc84a40aecd0d8b5125cc23s.firstElementChild.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc23u = { "class": "alert anchor anchor--n --flex-row" }, attributes_8d320e78acc84a40aecd0d8b5125cc23v = { "class": "alert-messages --flex-column --flex-fill" }, attributes_8d320e78acc84a40aecd0d8b5125cc23w = { "class": "alert-close button --padding-300" };
112
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc23o, 'class', () => state.active && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc23u);
113
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23o, omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc23u);
114
+ new template_8d320e78acc84a40aecd0d8b5125cc231.EffectSlot(element_8d320e78acc84a40aecd0d8b5125cc23p, () => {
115
115
  let type = state.type;
116
116
  return (() => {
117
- let root_31dfc3aae3354e00a148889c23732a6c9 = template_31dfc3aae3354e00a148889c23732a6ca(), element_31dfc3aae3354e00a148889c23732a6cb = root_31dfc3aae3354e00a148889c23732a6c9.firstChild, element_31dfc3aae3354e00a148889c23732a6cc = element_31dfc3aae3354e00a148889c23732a6cb.firstChild, attributes_31dfc3aae3354e00a148889c23732a6cd = { "class": "--flex-vertical", "style": "" };
118
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6cb, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_31dfc3aae3354e00a148889c23732a6cd);
119
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6cc, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
- return root_31dfc3aae3354e00a148889c23732a6c9;
117
+ let root_8d320e78acc84a40aecd0d8b5125cc239 = template_8d320e78acc84a40aecd0d8b5125cc23a(), element_8d320e78acc84a40aecd0d8b5125cc23b = root_8d320e78acc84a40aecd0d8b5125cc239.firstChild, element_8d320e78acc84a40aecd0d8b5125cc23c = element_8d320e78acc84a40aecd0d8b5125cc23b.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc23d = { "class": "--flex-vertical", "style": "" };
118
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc23b, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_8d320e78acc84a40aecd0d8b5125cc23d);
119
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc23c, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
+ return root_8d320e78acc84a40aecd0d8b5125cc239;
121
121
  })();
122
122
  });
123
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6cq, attributes['alert-messages'], attributes_31dfc3aae3354e00a148889c23732a6cv);
124
- new template_31dfc3aae3354e00a148889c23732a6c1.EffectSlot(element_31dfc3aae3354e00a148889c23732a6cr, () => {
123
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23q, attributes['alert-messages'], attributes_8d320e78acc84a40aecd0d8b5125cc23v);
124
+ new template_8d320e78acc84a40aecd0d8b5125cc231.EffectSlot(element_8d320e78acc84a40aecd0d8b5125cc23r, () => {
125
125
  let message = attributes['alert-message'];
126
126
  return state.rerender && [...state.messages].map((content) => {
127
127
  if (typeof content === 'string') {
128
128
  return (() => {
129
- let root_31dfc3aae3354e00a148889c23732a6ce = template_31dfc3aae3354e00a148889c23732a6cf(), element_31dfc3aae3354e00a148889c23732a6cg = root_31dfc3aae3354e00a148889c23732a6ce.firstChild, element_31dfc3aae3354e00a148889c23732a6ch = element_31dfc3aae3354e00a148889c23732a6cg.firstChild, attributes_31dfc3aae3354e00a148889c23732a6ci = {};
130
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6cg, message, attributes_31dfc3aae3354e00a148889c23732a6ci);
131
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6ch, content);
132
- return root_31dfc3aae3354e00a148889c23732a6ce;
129
+ let root_8d320e78acc84a40aecd0d8b5125cc23e = template_8d320e78acc84a40aecd0d8b5125cc23f(), element_8d320e78acc84a40aecd0d8b5125cc23g = root_8d320e78acc84a40aecd0d8b5125cc23e.firstChild, element_8d320e78acc84a40aecd0d8b5125cc23h = element_8d320e78acc84a40aecd0d8b5125cc23g.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc23i = {};
130
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23g, message, attributes_8d320e78acc84a40aecd0d8b5125cc23i);
131
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc23h, content);
132
+ return root_8d320e78acc84a40aecd0d8b5125cc23e;
133
133
  })();
134
134
  }
135
135
  return (() => {
136
- let root_31dfc3aae3354e00a148889c23732a6cj = template_31dfc3aae3354e00a148889c23732a6ck(), element_31dfc3aae3354e00a148889c23732a6cl = root_31dfc3aae3354e00a148889c23732a6cj.firstChild.firstChild;
137
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6cl, content);
138
- return root_31dfc3aae3354e00a148889c23732a6cj;
136
+ let root_8d320e78acc84a40aecd0d8b5125cc23j = template_8d320e78acc84a40aecd0d8b5125cc23k(), element_8d320e78acc84a40aecd0d8b5125cc23l = root_8d320e78acc84a40aecd0d8b5125cc23j.firstChild.firstChild;
137
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc23l, content);
138
+ return root_8d320e78acc84a40aecd0d8b5125cc23j;
139
139
  })();
140
140
  });
141
141
  });
142
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6cs, 'click', () => deactivate(state));
143
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6cs, attributes['alert-close'], attributes_31dfc3aae3354e00a148889c23732a6cw);
144
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6ct, svg.sprite(close));
145
- return root_31dfc3aae3354e00a148889c23732a6cm;
142
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc23s, 'click', () => deactivate(state));
143
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23s, attributes['alert-close'], attributes_8d320e78acc84a40aecd0d8b5125cc23w);
144
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc23t, svg.sprite(close));
145
+ return root_8d320e78acc84a40aecd0d8b5125cc23m;
146
146
  })(),
147
147
  deactivate: () => deactivate(state),
148
148
  error,
@@ -1,18 +1,18 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import { Attributes } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  declare const _default: {
5
5
  (): ReturnType<(this: {
6
6
  attributes?: Attributes;
7
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
8
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Attributes>(attributes: T): ReturnType<(this: {
7
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
8
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>(attributes: T): ReturnType<(this: {
9
9
  attributes?: Attributes;
10
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
11
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>(content: T): ReturnType<(this: {
10
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
11
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: Attributes;
13
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
14
- (attributes: template_31dfc3aae3354e00a148889c23732a6c1.Attributes, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>): ReturnType<(this: {
13
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
14
+ (attributes: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>): ReturnType<(this: {
15
15
  attributes?: Attributes;
16
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>) => template_31dfc3aae3354e00a148889c23732a6c1.Renderable<any>>;
16
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>) => template_8d320e78acc84a40aecd0d8b5125cc231.Renderable<any>>;
17
17
  };
18
18
  export default _default;
@@ -1,16 +1,16 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import icon from '../../components/icon/index.js';
3
3
  import template from '../../components/template/index.js';
4
4
  import arrow from './svg/arrow.svg';
5
5
  import './scss/index.scss';
6
- const template_31dfc3aae3354e00a148889c23732a6cy = template_31dfc3aae3354e00a148889c23732a6c1.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
6
+ const template_8d320e78acc84a40aecd0d8b5125cc23y = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
7
7
  export default template.factory(function (attributes, content) {
8
8
  return (() => {
9
- let root_31dfc3aae3354e00a148889c23732a6cx = template_31dfc3aae3354e00a148889c23732a6cy(), element_31dfc3aae3354e00a148889c23732a6cz = root_31dfc3aae3354e00a148889c23732a6cx.firstChild, element_31dfc3aae3354e00a148889c23732a6c10 = element_31dfc3aae3354e00a148889c23732a6cz.firstChild, element_31dfc3aae3354e00a148889c23732a6c11 = element_31dfc3aae3354e00a148889c23732a6c10.nextSibling, attributes_31dfc3aae3354e00a148889c23732a6c12 = { "class": "back link --padding-0px --flex-vertical" };
10
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6cz, this.attributes, attributes_31dfc3aae3354e00a148889c23732a6c12);
11
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6cz, attributes, attributes_31dfc3aae3354e00a148889c23732a6c12);
12
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c10, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_31dfc3aae3354e00a148889c23732a6c1.slot(element_31dfc3aae3354e00a148889c23732a6c11, content);
14
- return root_31dfc3aae3354e00a148889c23732a6cx;
9
+ let root_8d320e78acc84a40aecd0d8b5125cc23x = template_8d320e78acc84a40aecd0d8b5125cc23y(), element_8d320e78acc84a40aecd0d8b5125cc23z = root_8d320e78acc84a40aecd0d8b5125cc23x.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2310 = element_8d320e78acc84a40aecd0d8b5125cc23z.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2311 = element_8d320e78acc84a40aecd0d8b5125cc2310.nextSibling, attributes_8d320e78acc84a40aecd0d8b5125cc2312 = { "class": "back link --padding-0px --flex-vertical" };
10
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23z, this.attributes, attributes_8d320e78acc84a40aecd0d8b5125cc2312);
11
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc23z, attributes, attributes_8d320e78acc84a40aecd0d8b5125cc2312);
12
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc2310, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
+ template_8d320e78acc84a40aecd0d8b5125cc231.slot(element_8d320e78acc84a40aecd0d8b5125cc2311, content);
14
+ return root_8d320e78acc84a40aecd0d8b5125cc23x;
15
15
  })();
16
16
  });
@@ -1,24 +1,24 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
2
  import { Renderable } from '@esportsplus/template';
3
3
  import './scss/index.scss';
4
4
  declare const hold: {
5
5
  (): ReturnType<(this: {
6
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
6
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
7
7
  content?: ((state: {
8
8
  holding: boolean;
9
9
  complete: boolean;
10
10
  }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
11
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
12
12
  holding: boolean;
13
13
  complete: boolean;
14
14
  }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
15
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>(attributes: T): ReturnType<(this: {
16
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
17
17
  content?: ((state: {
18
18
  holding: boolean;
19
19
  complete: boolean;
20
20
  }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
21
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
22
22
  holding: boolean;
23
23
  complete: boolean;
24
24
  }) => Renderable<any>) => Renderable<any>>;
@@ -26,25 +26,25 @@ declare const hold: {
26
26
  holding: boolean;
27
27
  complete: boolean;
28
28
  }) => Renderable<any>>(content: T): ReturnType<(this: {
29
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
29
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
30
30
  content?: ((state: {
31
31
  holding: boolean;
32
32
  complete: boolean;
33
33
  }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
34
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
35
35
  holding: boolean;
36
36
  complete: boolean;
37
37
  }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_31dfc3aae3354e00a148889c23732a6c1.Attributes, content: (state: {
38
+ (attributes: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes, content: (state: {
39
39
  holding: boolean;
40
40
  complete: boolean;
41
41
  }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
42
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
43
43
  content?: ((state: {
44
44
  holding: boolean;
45
45
  complete: boolean;
46
46
  }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
47
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
48
48
  holding: boolean;
49
49
  complete: boolean;
50
50
  }) => Renderable<any>) => Renderable<any>>;
@@ -52,22 +52,22 @@ declare const hold: {
52
52
  declare const _default: {
53
53
  hold: {
54
54
  (): ReturnType<(this: {
55
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
55
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
56
56
  content?: ((state: {
57
57
  holding: boolean;
58
58
  complete: boolean;
59
59
  }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
60
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
61
61
  holding: boolean;
62
62
  complete: boolean;
63
63
  }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_31dfc3aae3354e00a148889c23732a6c1.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
64
+ <T extends template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>(attributes: T): ReturnType<(this: {
65
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
66
66
  content?: ((state: {
67
67
  holding: boolean;
68
68
  complete: boolean;
69
69
  }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
70
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
71
71
  holding: boolean;
72
72
  complete: boolean;
73
73
  }) => Renderable<any>) => Renderable<any>>;
@@ -75,25 +75,25 @@ declare const _default: {
75
75
  holding: boolean;
76
76
  complete: boolean;
77
77
  }) => Renderable<any>>(content: T): ReturnType<(this: {
78
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
78
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
79
79
  content?: ((state: {
80
80
  holding: boolean;
81
81
  complete: boolean;
82
82
  }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
83
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
84
84
  holding: boolean;
85
85
  complete: boolean;
86
86
  }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_31dfc3aae3354e00a148889c23732a6c1.Attributes, content: (state: {
87
+ (attributes: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes, content: (state: {
88
88
  holding: boolean;
89
89
  complete: boolean;
90
90
  }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_31dfc3aae3354e00a148889c23732a6c1.Attributes | undefined;
91
+ attributes?: template_8d320e78acc84a40aecd0d8b5125cc231.Attributes | undefined;
92
92
  content?: ((state: {
93
93
  holding: boolean;
94
94
  complete: boolean;
95
95
  }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_31dfc3aae3354e00a148889c23732a6c1.Attributes>, content: (state: {
96
+ }, attributes: Readonly<template_8d320e78acc84a40aecd0d8b5125cc231.Attributes>, content: (state: {
97
97
  holding: boolean;
98
98
  complete: boolean;
99
99
  }) => Renderable<any>) => Renderable<any>>;
@@ -1,25 +1,25 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import template from '../template/index.js';
4
4
  import './scss/index.scss';
5
- const template_31dfc3aae3354e00a148889c23732a6c15 = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div class='button '><!--$--></div>`);
6
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c13 extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
7
- #complete = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
8
- #holding = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
5
+ const template_8d320e78acc84a40aecd0d8b5125cc2315 = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div class='button '><!--$--></div>`);
6
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2313 extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
7
+ #complete = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
8
+ #holding = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get complete() {
13
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#complete);
13
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#complete);
14
14
  }
15
15
  set complete(_v0) {
16
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#complete, _v0);
16
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#complete, _v0);
17
17
  }
18
18
  get holding() {
19
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#holding);
19
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#holding);
20
20
  }
21
21
  set holding(_v1) {
22
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#holding, _v1);
22
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#holding, _v1);
23
23
  }
24
24
  }
25
25
  const hold = template.factory(function (attributes, content) {
@@ -27,33 +27,33 @@ const hold = template.factory(function (attributes, content) {
27
27
  if (!state.complete) {
28
28
  state.holding = false;
29
29
  }
30
- }, state = new ReactiveObject_31dfc3aae3354e00a148889c23732a6c13();
30
+ }, state = new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2313();
31
31
  return (() => {
32
- let root_31dfc3aae3354e00a148889c23732a6c14 = template_31dfc3aae3354e00a148889c23732a6c15(), element_31dfc3aae3354e00a148889c23732a6c16 = root_31dfc3aae3354e00a148889c23732a6c14.firstChild, element_31dfc3aae3354e00a148889c23732a6c17 = element_31dfc3aae3354e00a148889c23732a6c16.firstChild, attributes_31dfc3aae3354e00a148889c23732a6c18 = { "class": "button" };
33
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c16, 'class', () => state.holding && 'button--holding', attributes_31dfc3aae3354e00a148889c23732a6c18);
34
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'mousedown', (e) => {
32
+ let root_8d320e78acc84a40aecd0d8b5125cc2314 = template_8d320e78acc84a40aecd0d8b5125cc2315(), element_8d320e78acc84a40aecd0d8b5125cc2316 = root_8d320e78acc84a40aecd0d8b5125cc2314.firstChild, element_8d320e78acc84a40aecd0d8b5125cc2317 = element_8d320e78acc84a40aecd0d8b5125cc2316.firstChild, attributes_8d320e78acc84a40aecd0d8b5125cc2318 = { "class": "button" };
33
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc2316, 'class', () => state.holding && 'button--holding', attributes_8d320e78acc84a40aecd0d8b5125cc2318);
34
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'mousedown', (e) => {
35
35
  e.preventDefault();
36
36
  state.holding = true;
37
37
  });
38
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c16, attributes, attributes_31dfc3aae3354e00a148889c23732a6c18);
39
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'animationend', (e) => {
38
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc2316, attributes, attributes_8d320e78acc84a40aecd0d8b5125cc2318);
39
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'animationend', (e) => {
40
40
  if (e.animationName === 'buttonHolding') {
41
41
  state.complete = true;
42
42
  }
43
43
  });
44
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'click', () => { });
45
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'mousedown', (e) => {
44
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'click', () => { });
45
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'mousedown', (e) => {
46
46
  e.preventDefault();
47
47
  state.holding = true;
48
48
  });
49
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'mouseup', end);
50
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'touchend', end);
51
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c16, 'touchstart', (e) => {
49
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'mouseup', end);
50
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'touchend', end);
51
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc2316, 'touchstart', (e) => {
52
52
  e.preventDefault();
53
53
  state.holding = true;
54
54
  });
55
- new template_31dfc3aae3354e00a148889c23732a6c1.EffectSlot(element_31dfc3aae3354e00a148889c23732a6c17, () => content(state));
56
- return root_31dfc3aae3354e00a148889c23732a6c14;
55
+ new template_8d320e78acc84a40aecd0d8b5125cc231.EffectSlot(element_8d320e78acc84a40aecd0d8b5125cc2317, () => content(state));
56
+ return root_8d320e78acc84a40aecd0d8b5125cc2314;
57
57
  })();
58
58
  });
59
59
  export default { hold };
@@ -1,51 +1,51 @@
1
- import * as template_31dfc3aae3354e00a148889c23732a6c1 from '@esportsplus/template';
2
- import * as reactivity_31dfc3aae3354e00a148889c23732a6c0 from '@esportsplus/reactivity';
1
+ import * as template_8d320e78acc84a40aecd0d8b5125cc231 from '@esportsplus/template';
2
+ import * as reactivity_8d320e78acc84a40aecd0d8b5125cc230 from '@esportsplus/reactivity';
3
3
  import { root } from '@esportsplus/reactivity';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import form from '../../components/form/index.js';
6
6
  import './scss/index.scss';
7
- const template_31dfc3aae3354e00a148889c23732a6c1b = template_31dfc3aae3354e00a148889c23732a6c1.template(`<div><input></div>`);
8
- class ReactiveObject_31dfc3aae3354e00a148889c23732a6c19 extends reactivity_31dfc3aae3354e00a148889c23732a6c0.ReactiveObject {
9
- #active = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL](false);
10
- #error = this[reactivity_31dfc3aae3354e00a148889c23732a6c0.SIGNAL]('');
7
+ const template_8d320e78acc84a40aecd0d8b5125cc231b = template_8d320e78acc84a40aecd0d8b5125cc231.template(`<div><input></div>`);
8
+ class ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2319 extends reactivity_8d320e78acc84a40aecd0d8b5125cc230.ReactiveObject {
9
+ #active = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL](false);
10
+ #error = this[reactivity_8d320e78acc84a40aecd0d8b5125cc230.SIGNAL]('');
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#active);
15
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#active, _v0);
18
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_31dfc3aae3354e00a148889c23732a6c0.read(this.#error);
21
+ return reactivity_8d320e78acc84a40aecd0d8b5125cc230.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_31dfc3aae3354e00a148889c23732a6c0.write(this.#error, _v1);
24
+ reactivity_8d320e78acc84a40aecd0d8b5125cc230.write(this.#error, _v1);
25
25
  }
26
26
  }
27
27
  const OMIT = ['checked', 'value'];
28
28
  const factory = (type) => {
29
29
  function template(attributes) {
30
- let state = attributes?.state || new ReactiveObject_31dfc3aae3354e00a148889c23732a6c19();
30
+ let state = attributes?.state || new ReactiveObject_8d320e78acc84a40aecd0d8b5125cc2319();
31
31
  if (attributes?.checked) {
32
32
  state.active = true;
33
33
  }
34
34
  return (() => {
35
- let root_31dfc3aae3354e00a148889c23732a6c1a = template_31dfc3aae3354e00a148889c23732a6c1b(), element_31dfc3aae3354e00a148889c23732a6c1c = root_31dfc3aae3354e00a148889c23732a6c1a.firstChild, element_31dfc3aae3354e00a148889c23732a6c1d = element_31dfc3aae3354e00a148889c23732a6c1c.firstElementChild, attributes_31dfc3aae3354e00a148889c23732a6c1e = { "class": "" }, attributes_31dfc3aae3354e00a148889c23732a6c1f = {};
36
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c1c, 'class', type, attributes_31dfc3aae3354e00a148889c23732a6c1e);
37
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c1c, 'class', () => state.active && '--active', attributes_31dfc3aae3354e00a148889c23732a6c1e);
38
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c1c, this?.attributes && omit(this.attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c1e);
39
- template_31dfc3aae3354e00a148889c23732a6c1.setProperties(element_31dfc3aae3354e00a148889c23732a6c1c, attributes && omit(attributes, OMIT), attributes_31dfc3aae3354e00a148889c23732a6c1e);
40
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c1d, 'checked', attributes?.checked || root(() => state.active));
41
- template_31dfc3aae3354e00a148889c23732a6c1.setList(element_31dfc3aae3354e00a148889c23732a6c1d, 'class', `${type}-tag`, attributes_31dfc3aae3354e00a148889c23732a6c1f);
42
- template_31dfc3aae3354e00a148889c23732a6c1.delegate(element_31dfc3aae3354e00a148889c23732a6c1d, 'change', (e) => {
35
+ let root_8d320e78acc84a40aecd0d8b5125cc231a = template_8d320e78acc84a40aecd0d8b5125cc231b(), element_8d320e78acc84a40aecd0d8b5125cc231c = root_8d320e78acc84a40aecd0d8b5125cc231a.firstChild, element_8d320e78acc84a40aecd0d8b5125cc231d = element_8d320e78acc84a40aecd0d8b5125cc231c.firstElementChild, attributes_8d320e78acc84a40aecd0d8b5125cc231e = { "class": "" }, attributes_8d320e78acc84a40aecd0d8b5125cc231f = {};
36
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc231c, 'class', type, attributes_8d320e78acc84a40aecd0d8b5125cc231e);
37
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc231c, 'class', () => state.active && '--active', attributes_8d320e78acc84a40aecd0d8b5125cc231e);
38
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc231c, this?.attributes && omit(this.attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc231e);
39
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperties(element_8d320e78acc84a40aecd0d8b5125cc231c, attributes && omit(attributes, OMIT), attributes_8d320e78acc84a40aecd0d8b5125cc231e);
40
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc231d, 'checked', attributes?.checked || root(() => state.active));
41
+ template_8d320e78acc84a40aecd0d8b5125cc231.setList(element_8d320e78acc84a40aecd0d8b5125cc231d, 'class', `${type}-tag`, attributes_8d320e78acc84a40aecd0d8b5125cc231f);
42
+ template_8d320e78acc84a40aecd0d8b5125cc231.delegate(element_8d320e78acc84a40aecd0d8b5125cc231d, 'change', (e) => {
43
43
  state.active = e.target.checked;
44
44
  });
45
- template_31dfc3aae3354e00a148889c23732a6c1.onrender(element_31dfc3aae3354e00a148889c23732a6c1d, form.input.onrender(state));
46
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c1d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
- template_31dfc3aae3354e00a148889c23732a6c1.setProperty(element_31dfc3aae3354e00a148889c23732a6c1d, 'value', attributes?.value || 1);
48
- return root_31dfc3aae3354e00a148889c23732a6c1a;
45
+ template_8d320e78acc84a40aecd0d8b5125cc231.onrender(element_8d320e78acc84a40aecd0d8b5125cc231d, form.input.onrender(state));
46
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc231d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
+ template_8d320e78acc84a40aecd0d8b5125cc231.setProperty(element_8d320e78acc84a40aecd0d8b5125cc231d, 'value', attributes?.value || 1);
48
+ return root_8d320e78acc84a40aecd0d8b5125cc231a;
49
49
  })();
50
50
  }
51
51
  return template;