@esportsplus/ui 0.49.6 → 0.49.7

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 (34) 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 +24 -24
  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/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +24 -24
  24. package/build/components/select/index.js +40 -40
  25. package/build/components/textarea/index.js +20 -20
  26. package/build/components/tooltip/menu.d.ts +11 -11
  27. package/build/components/tooltip/menu.js +20 -20
  28. package/build/components/tooltip/onclick.d.ts +1101 -1101
  29. package/build/components/tooltip/onclick.js +14 -14
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +15 -15
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +14 -14
  34. package/package.json +3 -3
@@ -1,51 +1,51 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
- import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
+ import * as reactivity_674b8ccc1a634e6cb7742603036f95970 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_2a7920412bac4009b37c4d0863a6596e1b = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div><input></div>`);
8
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e19 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
9
- #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
10
- #error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
7
+ const template_674b8ccc1a634e6cb7742603036f95971b = template_674b8ccc1a634e6cb7742603036f95971.template(`<div><input></div>`);
8
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f959719 extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
9
+ #active = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](false);
10
+ #error = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL]('');
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
15
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
18
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
21
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
24
+ reactivity_674b8ccc1a634e6cb7742603036f95970.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_2a7920412bac4009b37c4d0863a6596e19();
30
+ let state = attributes?.state || new ReactiveObject_674b8ccc1a634e6cb7742603036f959719();
31
31
  if (attributes?.checked) {
32
32
  state.active = true;
33
33
  }
34
34
  return (() => {
35
- let root_2a7920412bac4009b37c4d0863a6596e1a = template_2a7920412bac4009b37c4d0863a6596e1b(), element_2a7920412bac4009b37c4d0863a6596e1c = root_2a7920412bac4009b37c4d0863a6596e1a.firstChild, element_2a7920412bac4009b37c4d0863a6596e1d = element_2a7920412bac4009b37c4d0863a6596e1c.firstElementChild, attributes_2a7920412bac4009b37c4d0863a6596e1e = { "class": "" }, attributes_2a7920412bac4009b37c4d0863a6596e1f = {};
36
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1c, 'class', type, attributes_2a7920412bac4009b37c4d0863a6596e1e);
37
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1c, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e1e);
38
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e1c, this?.attributes && omit(this.attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e1e);
39
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e1c, attributes && omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e1e);
40
- template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'checked', attributes?.checked || root(() => state.active));
41
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1d, 'class', `${type}-tag`, attributes_2a7920412bac4009b37c4d0863a6596e1f);
42
- template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e1d, 'change', (e) => {
35
+ let root_674b8ccc1a634e6cb7742603036f95971a = template_674b8ccc1a634e6cb7742603036f95971b(), element_674b8ccc1a634e6cb7742603036f95971c = root_674b8ccc1a634e6cb7742603036f95971a.firstChild, element_674b8ccc1a634e6cb7742603036f95971d = element_674b8ccc1a634e6cb7742603036f95971c.firstElementChild, attributes_674b8ccc1a634e6cb7742603036f95971e = { "class": "" }, attributes_674b8ccc1a634e6cb7742603036f95971f = {};
36
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95971c, 'class', type, attributes_674b8ccc1a634e6cb7742603036f95971e);
37
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95971c, 'class', () => state.active && '--active', attributes_674b8ccc1a634e6cb7742603036f95971e);
38
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95971c, this?.attributes && omit(this.attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95971e);
39
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95971c, attributes && omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95971e);
40
+ template_674b8ccc1a634e6cb7742603036f95971.setProperty(element_674b8ccc1a634e6cb7742603036f95971d, 'checked', attributes?.checked || root(() => state.active));
41
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95971d, 'class', `${type}-tag`, attributes_674b8ccc1a634e6cb7742603036f95971f);
42
+ template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f95971d, 'change', (e) => {
43
43
  state.active = e.target.checked;
44
44
  });
45
- template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e1d, form.input.onrender(state));
46
- template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
- template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e1d, 'value', attributes?.value || 1);
48
- return root_2a7920412bac4009b37c4d0863a6596e1a;
45
+ template_674b8ccc1a634e6cb7742603036f95971.onrender(element_674b8ccc1a634e6cb7742603036f95971d, form.input.onrender(state));
46
+ template_674b8ccc1a634e6cb7742603036f95971.setProperty(element_674b8ccc1a634e6cb7742603036f95971d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
+ template_674b8ccc1a634e6cb7742603036f95971.setProperty(element_674b8ccc1a634e6cb7742603036f95971d, 'value', attributes?.value || 1);
48
+ return root_674b8ccc1a634e6cb7742603036f95971a;
49
49
  })();
50
50
  }
51
51
  return template;
@@ -1,28 +1,28 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
- import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
+ import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import write from './write.js';
6
- const template_2a7920412bac4009b37c4d0863a6596e1i = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div><!--$--></div>`);
7
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e1g extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
8
- #copied = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
6
+ const template_674b8ccc1a634e6cb7742603036f95971i = template_674b8ccc1a634e6cb7742603036f95971.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f95971g extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
8
+ #copied = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get copied() {
13
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#copied);
13
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#copied);
14
14
  }
15
15
  set copied(_v0) {
16
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#copied, _v0);
16
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#copied, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['timeout', 'value'];
20
20
  export default template.factory(function (attributes, content) {
21
- let state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e1g(), timeout = attributes.timeout || 1000 * 2;
21
+ let state = new ReactiveObject_674b8ccc1a634e6cb7742603036f95971g(), timeout = attributes.timeout || 1000 * 2;
22
22
  return (() => {
23
- let root_2a7920412bac4009b37c4d0863a6596e1h = template_2a7920412bac4009b37c4d0863a6596e1i(), element_2a7920412bac4009b37c4d0863a6596e1j = root_2a7920412bac4009b37c4d0863a6596e1h.firstChild, element_2a7920412bac4009b37c4d0863a6596e1k = element_2a7920412bac4009b37c4d0863a6596e1j.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e1l = {};
24
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e1j, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e1l);
25
- template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e1j, 'click', (e) => {
23
+ let root_674b8ccc1a634e6cb7742603036f95971h = template_674b8ccc1a634e6cb7742603036f95971i(), element_674b8ccc1a634e6cb7742603036f95971j = root_674b8ccc1a634e6cb7742603036f95971h.firstChild, element_674b8ccc1a634e6cb7742603036f95971k = element_674b8ccc1a634e6cb7742603036f95971j.firstChild, attributes_674b8ccc1a634e6cb7742603036f95971l = {};
24
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95971j, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95971l);
25
+ template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f95971j, 'click', (e) => {
26
26
  e.preventDefault();
27
27
  e.stopPropagation();
28
28
  write(attributes.value).then(() => {
@@ -32,7 +32,7 @@ export default template.factory(function (attributes, content) {
32
32
  }, timeout);
33
33
  });
34
34
  });
35
- new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596e1k, () => content(state));
36
- return root_2a7920412bac4009b37c4d0863a6596e1h;
35
+ new template_674b8ccc1a634e6cb7742603036f95971.EffectSlot(element_674b8ccc1a634e6cb7742603036f95971k, () => content(state));
36
+ return root_674b8ccc1a634e6cb7742603036f95971h;
37
37
  })();
38
38
  });
@@ -1,41 +1,41 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
- import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
+ import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
3
3
  import { effect } from '@esportsplus/reactivity';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import './scss/index.scss';
6
- const template_2a7920412bac4009b37c4d0863a6596e1p = template_2a7920412bac4009b37c4d0863a6596e1.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
- const template_2a7920412bac4009b37c4d0863a6596e1s = template_2a7920412bac4009b37c4d0863a6596e1.template(`<span><!--$--></span>`);
8
- const template_2a7920412bac4009b37c4d0863a6596e1v = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
- const template_2a7920412bac4009b37c4d0863a6596e20 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='counter'><!--$--></div>`);
10
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e1m extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
11
- #value = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](-1);
6
+ const template_674b8ccc1a634e6cb7742603036f95971p = template_674b8ccc1a634e6cb7742603036f95971.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
+ const template_674b8ccc1a634e6cb7742603036f95971s = template_674b8ccc1a634e6cb7742603036f95971.template(`<span><!--$--></span>`);
8
+ const template_674b8ccc1a634e6cb7742603036f95971v = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
+ const template_674b8ccc1a634e6cb7742603036f959720 = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='counter'><!--$--></div>`);
10
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f95971m extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
11
+ #value = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](-1);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get value() {
16
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#value);
16
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#value);
17
17
  }
18
18
  set value(_v0) {
19
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#value, _v0);
19
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#value, _v0);
20
20
  }
21
21
  }
22
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e1n extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
23
- #length = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
22
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f95971n extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
23
+ #length = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](0);
24
24
  #test;
25
25
  #render;
26
26
  constructor(_p0, _p1) {
27
27
  super(null);
28
- this.#test = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.COMPUTED](_p0);
29
- this.#render = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.REACTIVE_ARRAY](_p1);
28
+ this.#test = this[reactivity_674b8ccc1a634e6cb7742603036f95970.COMPUTED](_p0);
29
+ this.#render = this[reactivity_674b8ccc1a634e6cb7742603036f95970.REACTIVE_ARRAY](_p1);
30
30
  }
31
31
  get length() {
32
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#length);
32
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#length);
33
33
  }
34
34
  set length(_v0) {
35
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#length, _v0);
35
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#length, _v0);
36
36
  }
37
37
  get test() {
38
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#test);
38
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#test);
39
39
  }
40
40
  get render() {
41
41
  return this.#render;
@@ -44,12 +44,12 @@ class ReactiveObject_2a7920412bac4009b37c4d0863a6596e1n extends reactivity_2a792
44
44
  const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
45
45
  let formatters = {};
46
46
  export default (attributes) => {
47
- let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e1m(), formatter = currency === 'IGNORE'
47
+ let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_674b8ccc1a634e6cb7742603036f95971m(), formatter = currency === 'IGNORE'
48
48
  ? undefined
49
49
  : formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
50
50
  style: 'currency',
51
51
  currency: currency || 'USD'
52
- }), rendering = true, state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e1n(() => 'sds', []), render = new reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveArray();
52
+ }), rendering = true, state = new ReactiveObject_674b8ccc1a634e6cb7742603036f95971n(() => 'sds', []), render = new reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveArray();
53
53
  decimals ??= 2;
54
54
  effect(() => {
55
55
  if (api.value !== -1) {
@@ -84,33 +84,33 @@ export default (attributes) => {
84
84
  }
85
85
  });
86
86
  return (() => {
87
- let root_2a7920412bac4009b37c4d0863a6596e1z = template_2a7920412bac4009b37c4d0863a6596e20(), element_2a7920412bac4009b37c4d0863a6596e21 = root_2a7920412bac4009b37c4d0863a6596e1z.firstChild, element_2a7920412bac4009b37c4d0863a6596e22 = element_2a7920412bac4009b37c4d0863a6596e21.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e23 = { "class": "counter" };
88
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e21, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e23);
89
- new template_2a7920412bac4009b37c4d0863a6596e1.EffectSlot(element_2a7920412bac4009b37c4d0863a6596e22, () => {
87
+ let root_674b8ccc1a634e6cb7742603036f95971z = template_674b8ccc1a634e6cb7742603036f959720(), element_674b8ccc1a634e6cb7742603036f959721 = root_674b8ccc1a634e6cb7742603036f95971z.firstChild, element_674b8ccc1a634e6cb7742603036f959722 = element_674b8ccc1a634e6cb7742603036f959721.firstChild, attributes_674b8ccc1a634e6cb7742603036f959723 = { "class": "counter" };
88
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f959721, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f959723);
89
+ new template_674b8ccc1a634e6cb7742603036f95971.EffectSlot(element_674b8ccc1a634e6cb7742603036f959722, () => {
90
90
  let n = state.length;
91
91
  if (n === 0) {
92
92
  return '';
93
93
  }
94
- return new template_2a7920412bac4009b37c4d0863a6596e1.ArraySlot(render, function (value) {
94
+ return new template_674b8ccc1a634e6cb7742603036f95971.ArraySlot(render, function (value) {
95
95
  if (isNaN(parseInt(value, 10))) {
96
96
  return (() => {
97
- let root_2a7920412bac4009b37c4d0863a6596e1o = template_2a7920412bac4009b37c4d0863a6596e1p(), element_2a7920412bac4009b37c4d0863a6596e1q = root_2a7920412bac4009b37c4d0863a6596e1o.firstChild.firstChild;
98
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e1q, value);
99
- return root_2a7920412bac4009b37c4d0863a6596e1o;
97
+ let root_674b8ccc1a634e6cb7742603036f95971o = template_674b8ccc1a634e6cb7742603036f95971p(), element_674b8ccc1a634e6cb7742603036f95971q = root_674b8ccc1a634e6cb7742603036f95971o.firstChild.firstChild;
98
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95971q, value);
99
+ return root_674b8ccc1a634e6cb7742603036f95971o;
100
100
  })();
101
101
  }
102
102
  return (() => {
103
- let root_2a7920412bac4009b37c4d0863a6596e1u = template_2a7920412bac4009b37c4d0863a6596e1v(), element_2a7920412bac4009b37c4d0863a6596e1w = root_2a7920412bac4009b37c4d0863a6596e1u.firstChild.firstElementChild, element_2a7920412bac4009b37c4d0863a6596e1x = element_2a7920412bac4009b37c4d0863a6596e1w.firstChild.nextSibling, attributes_2a7920412bac4009b37c4d0863a6596e1y = { "class": "counter-character-track", "style": "" };
104
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e1w, 'style', `--value: ${value}`, attributes_2a7920412bac4009b37c4d0863a6596e1y);
105
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e1x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
- let root_2a7920412bac4009b37c4d0863a6596e1r = template_2a7920412bac4009b37c4d0863a6596e1s(), element_2a7920412bac4009b37c4d0863a6596e1t = root_2a7920412bac4009b37c4d0863a6596e1r.firstChild.firstChild;
107
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e1t, value);
108
- return root_2a7920412bac4009b37c4d0863a6596e1r;
103
+ let root_674b8ccc1a634e6cb7742603036f95971u = template_674b8ccc1a634e6cb7742603036f95971v(), element_674b8ccc1a634e6cb7742603036f95971w = root_674b8ccc1a634e6cb7742603036f95971u.firstChild.firstElementChild, element_674b8ccc1a634e6cb7742603036f95971x = element_674b8ccc1a634e6cb7742603036f95971w.firstChild.nextSibling, attributes_674b8ccc1a634e6cb7742603036f95971y = { "class": "counter-character-track", "style": "" };
104
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95971w, 'style', `--value: ${value}`, attributes_674b8ccc1a634e6cb7742603036f95971y);
105
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95971x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
+ let root_674b8ccc1a634e6cb7742603036f95971r = template_674b8ccc1a634e6cb7742603036f95971s(), element_674b8ccc1a634e6cb7742603036f95971t = root_674b8ccc1a634e6cb7742603036f95971r.firstChild.firstChild;
107
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95971t, value);
108
+ return root_674b8ccc1a634e6cb7742603036f95971r;
109
109
  }));
110
- return root_2a7920412bac4009b37c4d0863a6596e1u;
110
+ return root_674b8ccc1a634e6cb7742603036f95971u;
111
111
  })();
112
112
  });
113
113
  });
114
- return root_2a7920412bac4009b37c4d0863a6596e1z;
114
+ return root_674b8ccc1a634e6cb7742603036f95971z;
115
115
  })();
116
116
  };
@@ -1,8 +1,8 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_2a7920412bac4009b37c4d0863a6596e25 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_674b8ccc1a634e6cb7742603036f959725 = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
4
4
  export default (attributes) => {
5
- let root_2a7920412bac4009b37c4d0863a6596e24 = template_2a7920412bac4009b37c4d0863a6596e25(), element_2a7920412bac4009b37c4d0863a6596e26 = root_2a7920412bac4009b37c4d0863a6596e24.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e27 = { "class": "ellipsis" };
6
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e26, attributes, attributes_2a7920412bac4009b37c4d0863a6596e27);
7
- return root_2a7920412bac4009b37c4d0863a6596e24;
5
+ let root_674b8ccc1a634e6cb7742603036f959724 = template_674b8ccc1a634e6cb7742603036f959725(), element_674b8ccc1a634e6cb7742603036f959726 = root_674b8ccc1a634e6cb7742603036f959724.firstChild, attributes_674b8ccc1a634e6cb7742603036f959727 = { "class": "ellipsis" };
6
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f959726, attributes, attributes_674b8ccc1a634e6cb7742603036f959727);
7
+ return root_674b8ccc1a634e6cb7742603036f959724;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_2a7920412bac4009b37c4d0863a6596e29 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<form class='form'><!--$--></form>`);
5
+ const template_674b8ccc1a634e6cb7742603036f959729 = template_674b8ccc1a634e6cb7742603036f95971.template(`<form class='form'><!--$--></form>`);
6
6
  const OMIT = ['action', 'state'];
7
7
  function parse(input) {
8
8
  let data = {};
@@ -29,9 +29,9 @@ function parse(input) {
29
29
  export default (attributes, content) => {
30
30
  let { action, state } = attributes;
31
31
  return (() => {
32
- let root_2a7920412bac4009b37c4d0863a6596e28 = template_2a7920412bac4009b37c4d0863a6596e29(), element_2a7920412bac4009b37c4d0863a6596e2a = root_2a7920412bac4009b37c4d0863a6596e28.firstChild, element_2a7920412bac4009b37c4d0863a6596e2b = element_2a7920412bac4009b37c4d0863a6596e2a.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e2c = { "class": "form" };
33
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2a, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e2c);
34
- template_2a7920412bac4009b37c4d0863a6596e1.delegate(element_2a7920412bac4009b37c4d0863a6596e2a, 'click', function (event) {
32
+ let root_674b8ccc1a634e6cb7742603036f959728 = template_674b8ccc1a634e6cb7742603036f959729(), element_674b8ccc1a634e6cb7742603036f95972a = root_674b8ccc1a634e6cb7742603036f959728.firstChild, element_674b8ccc1a634e6cb7742603036f95972b = element_674b8ccc1a634e6cb7742603036f95972a.firstChild, attributes_674b8ccc1a634e6cb7742603036f95972c = { "class": "form" };
33
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95972a, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95972c);
34
+ template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f95972a, 'click', function (event) {
35
35
  let trigger = event.target;
36
36
  if (trigger?.type !== 'submit') {
37
37
  return;
@@ -39,7 +39,7 @@ export default (attributes, content) => {
39
39
  event.preventDefault();
40
40
  this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
41
41
  });
42
- template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e2a, 'submit', async function (event) {
42
+ template_674b8ccc1a634e6cb7742603036f95971.on(element_674b8ccc1a634e6cb7742603036f95972a, 'submit', async function (event) {
43
43
  event.preventDefault();
44
44
  if (state) {
45
45
  state.processing = true;
@@ -59,7 +59,7 @@ export default (attributes, content) => {
59
59
  state.processing = false;
60
60
  }
61
61
  });
62
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e2b, content);
63
- return root_2a7920412bac4009b37c4d0863a6596e28;
62
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95972b, content);
63
+ return root_674b8ccc1a634e6cb7742603036f959728;
64
64
  })();
65
65
  };
@@ -1,21 +1,21 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
6
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
7
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
8
- <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
10
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
11
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
12
- <T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
14
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
15
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
16
- (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
18
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
19
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
5
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
6
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
7
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
8
+ <T extends template_674b8ccc1a634e6cb7742603036f95971.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
10
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
11
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
12
+ <T extends template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
14
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
15
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
16
+ (attributes: template_674b8ccc1a634e6cb7742603036f95971.Attributes, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
18
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
19
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,19 +1,19 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
- import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
+ import * as reactivity_674b8ccc1a634e6cb7742603036f95970 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_2a7920412bac4009b37c4d0863a6596e2f = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='highlight'><!--$--></div>`);
7
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e2d extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
8
- #highlight = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](0);
6
+ const template_674b8ccc1a634e6cb7742603036f95972f = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='highlight'><!--$--></div>`);
7
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f95972d extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
8
+ #highlight = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get highlight() {
13
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#highlight);
13
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#highlight);
14
14
  }
15
15
  set highlight(_v0) {
16
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#highlight, _v0);
16
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#highlight, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['background'];
@@ -38,19 +38,19 @@ export default template.factory((attributes, content) => {
38
38
  }
39
39
  }, { threshold: 1 });
40
40
  }
41
- let state = new ReactiveObject_2a7920412bac4009b37c4d0863a6596e2d();
41
+ let state = new ReactiveObject_674b8ccc1a634e6cb7742603036f95972d();
42
42
  return (() => {
43
- let root_2a7920412bac4009b37c4d0863a6596e2e = template_2a7920412bac4009b37c4d0863a6596e2f(), element_2a7920412bac4009b37c4d0863a6596e2g = root_2a7920412bac4009b37c4d0863a6596e2e.firstChild, element_2a7920412bac4009b37c4d0863a6596e2h = element_2a7920412bac4009b37c4d0863a6596e2g.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e2i = { "class": "highlight" };
44
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2g, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e2i);
45
- template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e2g, (element) => {
43
+ let root_674b8ccc1a634e6cb7742603036f95972e = template_674b8ccc1a634e6cb7742603036f95972f(), element_674b8ccc1a634e6cb7742603036f95972g = root_674b8ccc1a634e6cb7742603036f95972e.firstChild, element_674b8ccc1a634e6cb7742603036f95972h = element_674b8ccc1a634e6cb7742603036f95972g.firstChild, attributes_674b8ccc1a634e6cb7742603036f95972i = { "class": "highlight" };
44
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95972g, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95972i);
45
+ template_674b8ccc1a634e6cb7742603036f95971.onrender(element_674b8ccc1a634e6cb7742603036f95972g, (element) => {
46
46
  element[key] = state;
47
47
  observer.observe(element);
48
48
  });
49
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e2g, 'style', [
49
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95972g, 'style', [
50
50
  () => `--highlight: ${state.highlight}`,
51
51
  `--background: ${attributes.background}`,
52
- ], attributes_2a7920412bac4009b37c4d0863a6596e2i);
53
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e2h, content);
54
- return root_2a7920412bac4009b37c4d0863a6596e2e;
52
+ ], attributes_674b8ccc1a634e6cb7742603036f95972i);
53
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95972h, content);
54
+ return root_674b8ccc1a634e6cb7742603036f95972e;
55
55
  })();
56
56
  });
@@ -1,21 +1,21 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
5
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: string) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
8
- <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
7
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
8
+ <T extends template_674b8ccc1a634e6cb7742603036f95971.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: string) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
11
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
13
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: string) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
16
- (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
15
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
16
+ (attributes: template_674b8ccc1a634e6cb7742603036f95971.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: string) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
19
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
2
  import { svg } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_2a7920412bac4009b37c4d0863a6596e2k = template_2a7920412bac4009b37c4d0863a6596e1.template(`<div class='icon'><!--$--></div>`);
5
+ const template_674b8ccc1a634e6cb7742603036f95972k = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_2a7920412bac4009b37c4d0863a6596e2j = template_2a7920412bac4009b37c4d0863a6596e2k(), element_2a7920412bac4009b37c4d0863a6596e2l = root_2a7920412bac4009b37c4d0863a6596e2j.firstChild, element_2a7920412bac4009b37c4d0863a6596e2m = element_2a7920412bac4009b37c4d0863a6596e2l.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e2n = { "class": "icon" };
9
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2l, attributes, attributes_2a7920412bac4009b37c4d0863a6596e2n);
10
- template_2a7920412bac4009b37c4d0863a6596e1.slot(element_2a7920412bac4009b37c4d0863a6596e2m, svg.sprite(icon));
11
- return root_2a7920412bac4009b37c4d0863a6596e2j;
8
+ let root_674b8ccc1a634e6cb7742603036f95972j = template_674b8ccc1a634e6cb7742603036f95972k(), element_674b8ccc1a634e6cb7742603036f95972l = root_674b8ccc1a634e6cb7742603036f95972j.firstChild, element_674b8ccc1a634e6cb7742603036f95972m = element_674b8ccc1a634e6cb7742603036f95972l.firstChild, attributes_674b8ccc1a634e6cb7742603036f95972n = { "class": "icon" };
9
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95972l, attributes, attributes_674b8ccc1a634e6cb7742603036f95972n);
10
+ template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95972m, svg.sprite(icon));
11
+ return root_674b8ccc1a634e6cb7742603036f95972j;
12
12
  })();
13
13
  });
@@ -1,43 +1,43 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
2
- import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
+ import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_2a7920412bac4009b37c4d0863a6596e2q = template_2a7920412bac4009b37c4d0863a6596e1.template(`<input class='input' />`);
6
- class ReactiveObject_2a7920412bac4009b37c4d0863a6596e2o extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
7
- #active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
8
- #error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
5
+ const template_674b8ccc1a634e6cb7742603036f95972q = template_674b8ccc1a634e6cb7742603036f95971.template(`<input class='input' />`);
6
+ class ReactiveObject_674b8ccc1a634e6cb7742603036f95972o extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
7
+ #active = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](false);
8
+ #error = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL]('');
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
13
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
16
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#active, _v0);
17
17
  }
18
18
  get error() {
19
- return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
19
+ return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#error);
20
20
  }
21
21
  set error(_v1) {
22
- reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
22
+ reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#error, _v1);
23
23
  }
24
24
  }
25
25
  export default function (attributes) {
26
- let state = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e2o();
26
+ let state = attributes.state || new ReactiveObject_674b8ccc1a634e6cb7742603036f95972o();
27
27
  return (() => {
28
- let root_2a7920412bac4009b37c4d0863a6596e2p = template_2a7920412bac4009b37c4d0863a6596e2q(), element_2a7920412bac4009b37c4d0863a6596e2r = root_2a7920412bac4009b37c4d0863a6596e2p.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e2s = { "class": "input" };
29
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2r, this?.attributes, attributes_2a7920412bac4009b37c4d0863a6596e2s);
30
- template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e2r, attributes, attributes_2a7920412bac4009b37c4d0863a6596e2s);
31
- template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e2r, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e2s);
32
- template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e2r, 'focusin', () => {
28
+ let root_674b8ccc1a634e6cb7742603036f95972p = template_674b8ccc1a634e6cb7742603036f95972q(), element_674b8ccc1a634e6cb7742603036f95972r = root_674b8ccc1a634e6cb7742603036f95972p.firstChild, attributes_674b8ccc1a634e6cb7742603036f95972s = { "class": "input" };
29
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95972r, this?.attributes, attributes_674b8ccc1a634e6cb7742603036f95972s);
30
+ template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95972r, attributes, attributes_674b8ccc1a634e6cb7742603036f95972s);
31
+ template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95972r, 'class', () => state.active && '--active', attributes_674b8ccc1a634e6cb7742603036f95972s);
32
+ template_674b8ccc1a634e6cb7742603036f95971.on(element_674b8ccc1a634e6cb7742603036f95972r, 'focusin', () => {
33
33
  state.active = true;
34
34
  });
35
- template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e2r, 'focusout', () => {
35
+ template_674b8ccc1a634e6cb7742603036f95971.on(element_674b8ccc1a634e6cb7742603036f95972r, 'focusout', () => {
36
36
  state.active = false;
37
37
  });
38
- template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e2r, form.input.onrender(state));
39
- template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e2r, 'type', (attributes.type || 'text'));
40
- return root_2a7920412bac4009b37c4d0863a6596e2p;
38
+ template_674b8ccc1a634e6cb7742603036f95971.onrender(element_674b8ccc1a634e6cb7742603036f95972r, form.input.onrender(state));
39
+ template_674b8ccc1a634e6cb7742603036f95971.setProperty(element_674b8ccc1a634e6cb7742603036f95972r, 'type', (attributes.type || 'text'));
40
+ return root_674b8ccc1a634e6cb7742603036f95972p;
41
41
  })();
42
42
  }
43
43
  ;
@@ -1,21 +1,21 @@
1
- import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
1
+ import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
6
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
7
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
8
- <T extends template_2a7920412bac4009b37c4d0863a6596e1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
10
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
11
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
12
- <T extends template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
14
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
15
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
16
- (attributes: template_2a7920412bac4009b37c4d0863a6596e1.Attributes, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_2a7920412bac4009b37c4d0863a6596e1.Attributes | undefined;
18
- content?: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>;
19
- }, attributes: Readonly<template_2a7920412bac4009b37c4d0863a6596e1.Attributes>, content: template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>) => template_2a7920412bac4009b37c4d0863a6596e1.Renderable<any>>;
5
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
6
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
7
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
8
+ <T extends template_674b8ccc1a634e6cb7742603036f95971.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
10
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
11
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
12
+ <T extends template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
14
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
15
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
16
+ (attributes: template_674b8ccc1a634e6cb7742603036f95971.Attributes, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
18
+ content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
19
+ }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
20
20
  };
21
21
  export default _default;