@esportsplus/ui 0.51.3 → 0.51.5

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 (36) 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/clipboard/onclick.js +13 -13
  10. package/build/components/counter/index.js +34 -34
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +15 -15
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +20 -20
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +33 -33
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +25 -25
  22. package/build/components/root/scss/index.scss +1 -1
  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/textarea/index.js +20 -20
  27. package/build/components/tooltip/menu.d.ts +11 -11
  28. package/build/components/tooltip/menu.js +20 -20
  29. package/build/components/tooltip/onclick.d.ts +1101 -1101
  30. package/build/components/tooltip/onclick.js +14 -14
  31. package/build/components/tooltip/onhover.d.ts +16 -16
  32. package/build/components/tooltip/onhover.js +15 -15
  33. package/build/components/typewriter/index.d.ts +11 -11
  34. package/build/components/typewriter/index.js +14 -14
  35. package/package.json +1 -1
  36. package/src/tokens/scss/font-size.scss +9 -9
@@ -1,21 +1,21 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
6
- content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
7
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
8
- <T extends template_eee533dd50c34162b816f8be4c855b891.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
10
- content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
11
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
12
- <T extends template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
14
- content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
15
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
16
- (attributes: template_eee533dd50c34162b816f8be4c855b891.Attributes, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
18
- content?: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>;
19
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
5
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
6
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
7
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
8
+ <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
10
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
11
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
12
+ <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
14
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
15
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
16
+ (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
18
+ content?: template_eea410626b3047bfa8387f56255749631.Renderable<any>;
19
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,42 +1,42 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
2
- import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
1
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
+ import * as reactivity_eea410626b3047bfa8387f56255749630 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_eee533dd50c34162b816f8be4c855b894 = template_eee533dd50c34162b816f8be4c855b891.template(`<div><!--$--></div>`);
7
- class ReactiveObject_eee533dd50c34162b816f8be4c855b892 extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
8
- #active = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](0);
6
+ const template_eea410626b3047bfa8387f56255749634 = template_eea410626b3047bfa8387f56255749631.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_eea410626b3047bfa8387f56255749632 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
8
+ #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#active);
13
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#active, _v0);
16
+ reactivity_eea410626b3047bfa8387f56255749630.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_eee533dd50c34162b816f8be4c855b892();
22
+ let ref, state = attributes.state || new ReactiveObject_eea410626b3047bfa8387f56255749632();
23
23
  return (() => {
24
- let root_eee533dd50c34162b816f8be4c855b893 = template_eee533dd50c34162b816f8be4c855b894(), element_eee533dd50c34162b816f8be4c855b895 = root_eee533dd50c34162b816f8be4c855b893.firstChild, element_eee533dd50c34162b816f8be4c855b896 = element_eee533dd50c34162b816f8be4c855b895.firstChild, attributes_eee533dd50c34162b816f8be4c855b897 = {};
25
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b895, omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b897);
26
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b895, 'class', () => {
24
+ let root_eea410626b3047bfa8387f56255749633 = template_eea410626b3047bfa8387f56255749634(), element_eea410626b3047bfa8387f56255749635 = root_eea410626b3047bfa8387f56255749633.firstChild, element_eea410626b3047bfa8387f56255749636 = element_eea410626b3047bfa8387f56255749635.firstChild, attributes_eea410626b3047bfa8387f56255749637 = {};
25
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749635, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749637);
26
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749635, 'class', () => {
27
27
  return state.active && '--active';
28
- }, attributes_eee533dd50c34162b816f8be4c855b897);
29
- template_eee533dd50c34162b816f8be4c855b891.onrender(element_eee533dd50c34162b816f8be4c855b895, (element) => {
28
+ }, attributes_eea410626b3047bfa8387f56255749637);
29
+ template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f56255749635, (element) => {
30
30
  (ref = element)[key] = state;
31
31
  });
32
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b895, 'style', () => {
32
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749635, '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_eee533dd50c34162b816f8be4c855b897);
39
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b896, content);
40
- return root_eee533dd50c34162b816f8be4c855b893;
38
+ }, attributes_eea410626b3047bfa8387f56255749637);
39
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f56255749636, content);
40
+ return root_eea410626b3047bfa8387f56255749633;
41
41
  })();
42
42
  });
@@ -1,50 +1,50 @@
1
1
  import '@esportsplus/vite/global.d.ts';
2
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
2
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
3
3
  import { svg } from '@esportsplus/template';
4
- import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
4
+ import * as reactivity_eea410626b3047bfa8387f56255749630 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_eee533dd50c34162b816f8be4c855b89a = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='--flex-vertical'><!--$--></div>`);
12
- const template_eee533dd50c34162b816f8be4c855b89f = template_eee533dd50c34162b816f8be4c855b891.template(`<p><!--$--></p>`);
13
- const template_eee533dd50c34162b816f8be4c855b89k = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='--flex-start'><!--$--></div>`);
14
- const template_eee533dd50c34162b816f8be4c855b89n = template_eee533dd50c34162b816f8be4c855b891.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_eee533dd50c34162b816f8be4c855b898 extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
16
- #active = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
11
+ const template_eea410626b3047bfa8387f5625574963a = template_eea410626b3047bfa8387f56255749631.template(`<div class='--flex-vertical'><!--$--></div>`);
12
+ const template_eea410626b3047bfa8387f5625574963f = template_eea410626b3047bfa8387f56255749631.template(`<p><!--$--></p>`);
13
+ const template_eea410626b3047bfa8387f5625574963k = template_eea410626b3047bfa8387f56255749631.template(`<div class='--flex-start'><!--$--></div>`);
14
+ const template_eea410626b3047bfa8387f5625574963n = template_eea410626b3047bfa8387f56255749631.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_eea410626b3047bfa8387f56255749638 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
16
+ #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
17
17
  #messages;
18
- #rerender = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](0);
18
+ #rerender = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](0);
19
19
  #type;
20
20
  constructor(_p0, _p1) {
21
21
  super(null);
22
- this.#messages = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](_p0);
23
- this.#type = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](_p1);
22
+ this.#messages = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](_p0);
23
+ this.#type = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](_p1);
24
24
  }
25
25
  get active() {
26
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#active);
26
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
27
27
  }
28
28
  set active(_v0) {
29
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#active, _v0);
29
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
30
30
  }
31
31
  get messages() {
32
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#messages);
32
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#messages);
33
33
  }
34
34
  set messages(_v1) {
35
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#messages, _v1);
35
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#messages, _v1);
36
36
  }
37
37
  get rerender() {
38
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#rerender);
38
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#rerender);
39
39
  }
40
40
  set rerender(_v2) {
41
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#rerender, _v2);
41
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#rerender, _v2);
42
42
  }
43
43
  get type() {
44
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#type);
44
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#type);
45
45
  }
46
46
  set type(_v3) {
47
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#type, _v3);
47
+ reactivity_eea410626b3047bfa8387f56255749630.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_eee533dd50c34162b816f8be4c855b898(new Set(), '');
96
+ let state = new ReactiveObject_eea410626b3047bfa8387f56255749638(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_eee533dd50c34162b816f8be4c855b89m = template_eee533dd50c34162b816f8be4c855b89n(), element_eee533dd50c34162b816f8be4c855b89o = root_eee533dd50c34162b816f8be4c855b89m.firstChild, element_eee533dd50c34162b816f8be4c855b89p = element_eee533dd50c34162b816f8be4c855b89o.firstChild, element_eee533dd50c34162b816f8be4c855b89q = element_eee533dd50c34162b816f8be4c855b89o.firstElementChild, element_eee533dd50c34162b816f8be4c855b89r = element_eee533dd50c34162b816f8be4c855b89q.firstChild, element_eee533dd50c34162b816f8be4c855b89s = element_eee533dd50c34162b816f8be4c855b89q.nextElementSibling.firstElementChild, element_eee533dd50c34162b816f8be4c855b89t = element_eee533dd50c34162b816f8be4c855b89s.firstElementChild.firstChild, attributes_eee533dd50c34162b816f8be4c855b89u = { "class": " alert anchor anchor--n --flex-row" }, attributes_eee533dd50c34162b816f8be4c855b89v = { "class": " alert-messages --flex-column --flex-fill" }, attributes_eee533dd50c34162b816f8be4c855b89w = { "class": " alert-close button --padding-300" };
112
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b89o, 'class', () => state.active && '--active', attributes_eee533dd50c34162b816f8be4c855b89u);
113
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89o, omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b89u);
114
- new template_eee533dd50c34162b816f8be4c855b891.EffectSlot(element_eee533dd50c34162b816f8be4c855b89p, () => {
111
+ let root_eea410626b3047bfa8387f5625574963m = template_eea410626b3047bfa8387f5625574963n(), element_eea410626b3047bfa8387f5625574963o = root_eea410626b3047bfa8387f5625574963m.firstChild, element_eea410626b3047bfa8387f5625574963p = element_eea410626b3047bfa8387f5625574963o.firstChild, element_eea410626b3047bfa8387f5625574963q = element_eea410626b3047bfa8387f5625574963o.firstElementChild, element_eea410626b3047bfa8387f5625574963r = element_eea410626b3047bfa8387f5625574963q.firstChild, element_eea410626b3047bfa8387f5625574963s = element_eea410626b3047bfa8387f5625574963q.nextElementSibling.firstElementChild, element_eea410626b3047bfa8387f5625574963t = element_eea410626b3047bfa8387f5625574963s.firstElementChild.firstChild, attributes_eea410626b3047bfa8387f5625574963u = { "class": " alert anchor anchor--n --flex-row" }, attributes_eea410626b3047bfa8387f5625574963v = { "class": " alert-messages --flex-column --flex-fill" }, attributes_eea410626b3047bfa8387f5625574963w = { "class": " alert-close button --padding-300" };
112
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f5625574963o, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f5625574963u);
113
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963o, omit(attributes, OMIT), attributes_eea410626b3047bfa8387f5625574963u);
114
+ new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f5625574963p, () => {
115
115
  let type = state.type;
116
116
  return (() => {
117
- let root_eee533dd50c34162b816f8be4c855b899 = template_eee533dd50c34162b816f8be4c855b89a(), element_eee533dd50c34162b816f8be4c855b89b = root_eee533dd50c34162b816f8be4c855b899.firstChild, element_eee533dd50c34162b816f8be4c855b89c = element_eee533dd50c34162b816f8be4c855b89b.firstChild, attributes_eee533dd50c34162b816f8be4c855b89d = { "class": " --flex-vertical", "style": " " };
118
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b89b, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_eee533dd50c34162b816f8be4c855b89d);
119
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b89c, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
- return root_eee533dd50c34162b816f8be4c855b899;
117
+ let root_eea410626b3047bfa8387f56255749639 = template_eea410626b3047bfa8387f5625574963a(), element_eea410626b3047bfa8387f5625574963b = root_eea410626b3047bfa8387f56255749639.firstChild, element_eea410626b3047bfa8387f5625574963c = element_eea410626b3047bfa8387f5625574963b.firstChild, attributes_eea410626b3047bfa8387f5625574963d = { "class": " --flex-vertical", "style": " " };
118
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f5625574963b, 'style', `--color: var(--color-${modifiers[type]}-400);`, attributes_eea410626b3047bfa8387f5625574963d);
119
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f5625574963c, icon({ class: '--size-500' }, type === 'error' ? e : check));
120
+ return root_eea410626b3047bfa8387f56255749639;
121
121
  })();
122
122
  });
123
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89q, attributes['alert-messages'], attributes_eee533dd50c34162b816f8be4c855b89v);
124
- new template_eee533dd50c34162b816f8be4c855b891.EffectSlot(element_eee533dd50c34162b816f8be4c855b89r, () => {
123
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963q, attributes['alert-messages'], attributes_eea410626b3047bfa8387f5625574963v);
124
+ new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f5625574963r, () => {
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_eee533dd50c34162b816f8be4c855b89e = template_eee533dd50c34162b816f8be4c855b89f(), element_eee533dd50c34162b816f8be4c855b89g = root_eee533dd50c34162b816f8be4c855b89e.firstChild, element_eee533dd50c34162b816f8be4c855b89h = element_eee533dd50c34162b816f8be4c855b89g.firstChild, attributes_eee533dd50c34162b816f8be4c855b89i = {};
130
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89g, message, attributes_eee533dd50c34162b816f8be4c855b89i);
131
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b89h, content);
132
- return root_eee533dd50c34162b816f8be4c855b89e;
129
+ let root_eea410626b3047bfa8387f5625574963e = template_eea410626b3047bfa8387f5625574963f(), element_eea410626b3047bfa8387f5625574963g = root_eea410626b3047bfa8387f5625574963e.firstChild, element_eea410626b3047bfa8387f5625574963h = element_eea410626b3047bfa8387f5625574963g.firstChild, attributes_eea410626b3047bfa8387f5625574963i = {};
130
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963g, message, attributes_eea410626b3047bfa8387f5625574963i);
131
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f5625574963h, content);
132
+ return root_eea410626b3047bfa8387f5625574963e;
133
133
  })();
134
134
  }
135
135
  return (() => {
136
- let root_eee533dd50c34162b816f8be4c855b89j = template_eee533dd50c34162b816f8be4c855b89k(), element_eee533dd50c34162b816f8be4c855b89l = root_eee533dd50c34162b816f8be4c855b89j.firstChild.firstChild;
137
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b89l, content);
138
- return root_eee533dd50c34162b816f8be4c855b89j;
136
+ let root_eea410626b3047bfa8387f5625574963j = template_eea410626b3047bfa8387f5625574963k(), element_eea410626b3047bfa8387f5625574963l = root_eea410626b3047bfa8387f5625574963j.firstChild.firstChild;
137
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f5625574963l, content);
138
+ return root_eea410626b3047bfa8387f5625574963j;
139
139
  })();
140
140
  });
141
141
  });
142
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b89s, 'click', () => deactivate(state));
143
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89s, attributes['alert-close'], attributes_eee533dd50c34162b816f8be4c855b89w);
144
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b89t, svg.sprite(close));
145
- return root_eee533dd50c34162b816f8be4c855b89m;
142
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f5625574963s, 'click', () => deactivate(state));
143
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963s, attributes['alert-close'], attributes_eea410626b3047bfa8387f5625574963w);
144
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f5625574963t, svg.sprite(close));
145
+ return root_eea410626b3047bfa8387f5625574963m;
146
146
  })(),
147
147
  deactivate: () => deactivate(state),
148
148
  error,
@@ -1,18 +1,18 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 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_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
8
- <T extends template_eee533dd50c34162b816f8be4c855b891.Attributes>(attributes: T): ReturnType<(this: {
7
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
8
+ <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
9
9
  attributes?: Attributes;
10
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
11
- <T extends template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>(content: T): ReturnType<(this: {
10
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
11
+ <T extends template_eea410626b3047bfa8387f56255749631.Renderable<any>>(content: T): ReturnType<(this: {
12
12
  attributes?: Attributes;
13
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
14
- (attributes: template_eee533dd50c34162b816f8be4c855b891.Attributes, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>): ReturnType<(this: {
13
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
14
+ (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>): ReturnType<(this: {
15
15
  attributes?: Attributes;
16
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: template_eee533dd50c34162b816f8be4c855b891.Renderable<any>) => template_eee533dd50c34162b816f8be4c855b891.Renderable<any>>;
16
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: template_eea410626b3047bfa8387f56255749631.Renderable<any>) => template_eea410626b3047bfa8387f56255749631.Renderable<any>>;
17
17
  };
18
18
  export default _default;
@@ -1,16 +1,16 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 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_eee533dd50c34162b816f8be4c855b89y = template_eee533dd50c34162b816f8be4c855b891.template(`<a class='back link --padding-0px --flex-vertical'><!--$--><!--$--></a>`);
6
+ const template_eea410626b3047bfa8387f5625574963y = template_eea410626b3047bfa8387f56255749631.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_eee533dd50c34162b816f8be4c855b89x = template_eee533dd50c34162b816f8be4c855b89y(), element_eee533dd50c34162b816f8be4c855b89z = root_eee533dd50c34162b816f8be4c855b89x.firstChild, element_eee533dd50c34162b816f8be4c855b8910 = element_eee533dd50c34162b816f8be4c855b89z.firstChild, element_eee533dd50c34162b816f8be4c855b8911 = element_eee533dd50c34162b816f8be4c855b8910.nextSibling, attributes_eee533dd50c34162b816f8be4c855b8912 = { "class": " back link --padding-0px --flex-vertical" };
10
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89z, this.attributes, attributes_eee533dd50c34162b816f8be4c855b8912);
11
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b89z, attributes, attributes_eee533dd50c34162b816f8be4c855b8912);
12
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b8910, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
- template_eee533dd50c34162b816f8be4c855b891.slot(element_eee533dd50c34162b816f8be4c855b8911, content);
14
- return root_eee533dd50c34162b816f8be4c855b89x;
9
+ let root_eea410626b3047bfa8387f5625574963x = template_eea410626b3047bfa8387f5625574963y(), element_eea410626b3047bfa8387f5625574963z = root_eea410626b3047bfa8387f5625574963x.firstChild, element_eea410626b3047bfa8387f562557496310 = element_eea410626b3047bfa8387f5625574963z.firstChild, element_eea410626b3047bfa8387f562557496311 = element_eea410626b3047bfa8387f562557496310.nextSibling, attributes_eea410626b3047bfa8387f562557496312 = { "class": " back link --padding-0px --flex-vertical" };
10
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963z, this.attributes, attributes_eea410626b3047bfa8387f562557496312);
11
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f5625574963z, attributes, attributes_eea410626b3047bfa8387f562557496312);
12
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f562557496310, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
13
+ template_eea410626b3047bfa8387f56255749631.slot(element_eea410626b3047bfa8387f562557496311, content);
14
+ return root_eea410626b3047bfa8387f5625574963x;
15
15
  })();
16
16
  });
@@ -1,24 +1,24 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
1
+ import * as template_eea410626b3047bfa8387f56255749631 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_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
6
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
7
7
  content?: ((state: {
8
8
  holding: boolean;
9
9
  complete: boolean;
10
10
  }) => Renderable<any>) | undefined;
11
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
11
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: (state: {
12
12
  holding: boolean;
13
13
  complete: boolean;
14
14
  }) => Renderable<any>) => Renderable<any>>;
15
- <T extends template_eee533dd50c34162b816f8be4c855b891.Attributes>(attributes: T): ReturnType<(this: {
16
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
15
+ <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
16
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
17
17
  content?: ((state: {
18
18
  holding: boolean;
19
19
  complete: boolean;
20
20
  }) => Renderable<any>) | undefined;
21
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
21
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.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_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
29
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
30
30
  content?: ((state: {
31
31
  holding: boolean;
32
32
  complete: boolean;
33
33
  }) => Renderable<any>) | undefined;
34
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
34
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: (state: {
35
35
  holding: boolean;
36
36
  complete: boolean;
37
37
  }) => Renderable<any>) => Renderable<any>>;
38
- (attributes: template_eee533dd50c34162b816f8be4c855b891.Attributes, content: (state: {
38
+ (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: (state: {
39
39
  holding: boolean;
40
40
  complete: boolean;
41
41
  }) => Renderable<any>): ReturnType<(this: {
42
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
42
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
43
43
  content?: ((state: {
44
44
  holding: boolean;
45
45
  complete: boolean;
46
46
  }) => Renderable<any>) | undefined;
47
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
47
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.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_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
55
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
56
56
  content?: ((state: {
57
57
  holding: boolean;
58
58
  complete: boolean;
59
59
  }) => Renderable<any>) | undefined;
60
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
60
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: (state: {
61
61
  holding: boolean;
62
62
  complete: boolean;
63
63
  }) => Renderable<any>) => Renderable<any>>;
64
- <T extends template_eee533dd50c34162b816f8be4c855b891.Attributes>(attributes: T): ReturnType<(this: {
65
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
64
+ <T extends template_eea410626b3047bfa8387f56255749631.Attributes>(attributes: T): ReturnType<(this: {
65
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
66
66
  content?: ((state: {
67
67
  holding: boolean;
68
68
  complete: boolean;
69
69
  }) => Renderable<any>) | undefined;
70
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
70
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.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_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
78
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
79
79
  content?: ((state: {
80
80
  holding: boolean;
81
81
  complete: boolean;
82
82
  }) => Renderable<any>) | undefined;
83
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
83
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.Attributes>, content: (state: {
84
84
  holding: boolean;
85
85
  complete: boolean;
86
86
  }) => Renderable<any>) => Renderable<any>>;
87
- (attributes: template_eee533dd50c34162b816f8be4c855b891.Attributes, content: (state: {
87
+ (attributes: template_eea410626b3047bfa8387f56255749631.Attributes, content: (state: {
88
88
  holding: boolean;
89
89
  complete: boolean;
90
90
  }) => Renderable<any>): ReturnType<(this: {
91
- attributes?: template_eee533dd50c34162b816f8be4c855b891.Attributes | undefined;
91
+ attributes?: template_eea410626b3047bfa8387f56255749631.Attributes | undefined;
92
92
  content?: ((state: {
93
93
  holding: boolean;
94
94
  complete: boolean;
95
95
  }) => Renderable<any>) | undefined;
96
- }, attributes: Readonly<template_eee533dd50c34162b816f8be4c855b891.Attributes>, content: (state: {
96
+ }, attributes: Readonly<template_eea410626b3047bfa8387f56255749631.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_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
2
- import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
1
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
+ import * as reactivity_eea410626b3047bfa8387f56255749630 from '@esportsplus/reactivity';
3
3
  import template from '../template/index.js';
4
4
  import './scss/index.scss';
5
- const template_eee533dd50c34162b816f8be4c855b8915 = template_eee533dd50c34162b816f8be4c855b891.template(`<div class='button '><!--$--></div>`);
6
- class ReactiveObject_eee533dd50c34162b816f8be4c855b8913 extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
7
- #complete = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
8
- #holding = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
5
+ const template_eea410626b3047bfa8387f562557496315 = template_eea410626b3047bfa8387f56255749631.template(`<div class='button '><!--$--></div>`);
6
+ class ReactiveObject_eea410626b3047bfa8387f562557496313 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
7
+ #complete = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
8
+ #holding = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get complete() {
13
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#complete);
13
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#complete);
14
14
  }
15
15
  set complete(_v0) {
16
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#complete, _v0);
16
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#complete, _v0);
17
17
  }
18
18
  get holding() {
19
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#holding);
19
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#holding);
20
20
  }
21
21
  set holding(_v1) {
22
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#holding, _v1);
22
+ reactivity_eea410626b3047bfa8387f56255749630.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_eee533dd50c34162b816f8be4c855b8913();
30
+ }, state = new ReactiveObject_eea410626b3047bfa8387f562557496313();
31
31
  return (() => {
32
- let root_eee533dd50c34162b816f8be4c855b8914 = template_eee533dd50c34162b816f8be4c855b8915(), element_eee533dd50c34162b816f8be4c855b8916 = root_eee533dd50c34162b816f8be4c855b8914.firstChild, element_eee533dd50c34162b816f8be4c855b8917 = element_eee533dd50c34162b816f8be4c855b8916.firstChild, attributes_eee533dd50c34162b816f8be4c855b8918 = { "class": " button " };
33
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b8916, 'class', () => state.holding && 'button--holding', attributes_eee533dd50c34162b816f8be4c855b8918);
34
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'mousedown', (e) => {
32
+ let root_eea410626b3047bfa8387f562557496314 = template_eea410626b3047bfa8387f562557496315(), element_eea410626b3047bfa8387f562557496316 = root_eea410626b3047bfa8387f562557496314.firstChild, element_eea410626b3047bfa8387f562557496317 = element_eea410626b3047bfa8387f562557496316.firstChild, attributes_eea410626b3047bfa8387f562557496318 = { "class": " button " };
33
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f562557496316, 'class', () => state.holding && 'button--holding', attributes_eea410626b3047bfa8387f562557496318);
34
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'mousedown', (e) => {
35
35
  e.preventDefault();
36
36
  state.holding = true;
37
37
  });
38
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b8916, attributes, attributes_eee533dd50c34162b816f8be4c855b8918);
39
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'animationend', (e) => {
38
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f562557496316, attributes, attributes_eea410626b3047bfa8387f562557496318);
39
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'animationend', (e) => {
40
40
  if (e.animationName === 'buttonHolding') {
41
41
  state.complete = true;
42
42
  }
43
43
  });
44
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'click', () => { });
45
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'mousedown', (e) => {
44
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'click', () => { });
45
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'mousedown', (e) => {
46
46
  e.preventDefault();
47
47
  state.holding = true;
48
48
  });
49
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'mouseup', end);
50
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'touchend', end);
51
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b8916, 'touchstart', (e) => {
49
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'mouseup', end);
50
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'touchend', end);
51
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f562557496316, 'touchstart', (e) => {
52
52
  e.preventDefault();
53
53
  state.holding = true;
54
54
  });
55
- new template_eee533dd50c34162b816f8be4c855b891.EffectSlot(element_eee533dd50c34162b816f8be4c855b8917, () => content(state));
56
- return root_eee533dd50c34162b816f8be4c855b8914;
55
+ new template_eea410626b3047bfa8387f56255749631.EffectSlot(element_eea410626b3047bfa8387f562557496317, () => content(state));
56
+ return root_eea410626b3047bfa8387f562557496314;
57
57
  })();
58
58
  });
59
59
  export default { hold };
@@ -1,51 +1,51 @@
1
- import * as template_eee533dd50c34162b816f8be4c855b891 from '@esportsplus/template';
2
- import * as reactivity_eee533dd50c34162b816f8be4c855b890 from '@esportsplus/reactivity';
1
+ import * as template_eea410626b3047bfa8387f56255749631 from '@esportsplus/template';
2
+ import * as reactivity_eea410626b3047bfa8387f56255749630 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_eee533dd50c34162b816f8be4c855b891b = template_eee533dd50c34162b816f8be4c855b891.template(`<div><input></div>`);
8
- class ReactiveObject_eee533dd50c34162b816f8be4c855b8919 extends reactivity_eee533dd50c34162b816f8be4c855b890.ReactiveObject {
9
- #active = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL](false);
10
- #error = this[reactivity_eee533dd50c34162b816f8be4c855b890.SIGNAL]('');
7
+ const template_eea410626b3047bfa8387f56255749631b = template_eea410626b3047bfa8387f56255749631.template(`<div><input></div>`);
8
+ class ReactiveObject_eea410626b3047bfa8387f562557496319 extends reactivity_eea410626b3047bfa8387f56255749630.ReactiveObject {
9
+ #active = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL](false);
10
+ #error = this[reactivity_eea410626b3047bfa8387f56255749630.SIGNAL]('');
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#active);
15
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#active, _v0);
18
+ reactivity_eea410626b3047bfa8387f56255749630.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_eee533dd50c34162b816f8be4c855b890.read(this.#error);
21
+ return reactivity_eea410626b3047bfa8387f56255749630.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_eee533dd50c34162b816f8be4c855b890.write(this.#error, _v1);
24
+ reactivity_eea410626b3047bfa8387f56255749630.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_eee533dd50c34162b816f8be4c855b8919();
30
+ let state = attributes?.state || new ReactiveObject_eea410626b3047bfa8387f562557496319();
31
31
  if (attributes?.checked) {
32
32
  state.active = true;
33
33
  }
34
34
  return (() => {
35
- let root_eee533dd50c34162b816f8be4c855b891a = template_eee533dd50c34162b816f8be4c855b891b(), element_eee533dd50c34162b816f8be4c855b891c = root_eee533dd50c34162b816f8be4c855b891a.firstChild, element_eee533dd50c34162b816f8be4c855b891d = element_eee533dd50c34162b816f8be4c855b891c.firstElementChild, attributes_eee533dd50c34162b816f8be4c855b891e = { "class": " " }, attributes_eee533dd50c34162b816f8be4c855b891f = {};
36
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b891c, 'class', type, attributes_eee533dd50c34162b816f8be4c855b891e);
37
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b891c, 'class', () => state.active && '--active', attributes_eee533dd50c34162b816f8be4c855b891e);
38
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b891c, this?.attributes && omit(this.attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b891e);
39
- template_eee533dd50c34162b816f8be4c855b891.setProperties(element_eee533dd50c34162b816f8be4c855b891c, attributes && omit(attributes, OMIT), attributes_eee533dd50c34162b816f8be4c855b891e);
40
- template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b891d, 'checked', attributes?.checked || root(() => state.active));
41
- template_eee533dd50c34162b816f8be4c855b891.setList(element_eee533dd50c34162b816f8be4c855b891d, 'class', `${type}-tag`, attributes_eee533dd50c34162b816f8be4c855b891f);
42
- template_eee533dd50c34162b816f8be4c855b891.delegate(element_eee533dd50c34162b816f8be4c855b891d, 'change', (e) => {
35
+ let root_eea410626b3047bfa8387f56255749631a = template_eea410626b3047bfa8387f56255749631b(), element_eea410626b3047bfa8387f56255749631c = root_eea410626b3047bfa8387f56255749631a.firstChild, element_eea410626b3047bfa8387f56255749631d = element_eea410626b3047bfa8387f56255749631c.firstElementChild, attributes_eea410626b3047bfa8387f56255749631e = { "class": " " }, attributes_eea410626b3047bfa8387f56255749631f = {};
36
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749631c, 'class', type, attributes_eea410626b3047bfa8387f56255749631e);
37
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749631c, 'class', () => state.active && '--active', attributes_eea410626b3047bfa8387f56255749631e);
38
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749631c, this?.attributes && omit(this.attributes, OMIT), attributes_eea410626b3047bfa8387f56255749631e);
39
+ template_eea410626b3047bfa8387f56255749631.setProperties(element_eea410626b3047bfa8387f56255749631c, attributes && omit(attributes, OMIT), attributes_eea410626b3047bfa8387f56255749631e);
40
+ template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749631d, 'checked', attributes?.checked || root(() => state.active));
41
+ template_eea410626b3047bfa8387f56255749631.setList(element_eea410626b3047bfa8387f56255749631d, 'class', `${type}-tag`, attributes_eea410626b3047bfa8387f56255749631f);
42
+ template_eea410626b3047bfa8387f56255749631.delegate(element_eea410626b3047bfa8387f56255749631d, 'change', (e) => {
43
43
  state.active = e.target.checked;
44
44
  });
45
- template_eee533dd50c34162b816f8be4c855b891.onrender(element_eee533dd50c34162b816f8be4c855b891d, form.input.onrender(state));
46
- template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b891d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
- template_eee533dd50c34162b816f8be4c855b891.setProperty(element_eee533dd50c34162b816f8be4c855b891d, 'value', attributes?.value || 1);
48
- return root_eee533dd50c34162b816f8be4c855b891a;
45
+ template_eea410626b3047bfa8387f56255749631.onrender(element_eea410626b3047bfa8387f56255749631d, form.input.onrender(state));
46
+ template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749631d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
+ template_eea410626b3047bfa8387f56255749631.setProperty(element_eea410626b3047bfa8387f56255749631d, 'value', attributes?.value || 1);
48
+ return root_eea410626b3047bfa8387f56255749631a;
49
49
  })();
50
50
  }
51
51
  return template;