@esportsplus/ui 0.49.1 → 0.49.2

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 +11 -11
  3. package/build/components/alert/index.js +26 -26
  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 +15 -15
  8. package/build/components/checkbox/index.js +14 -14
  9. package/build/components/clipboard/onclick.js +7 -7
  10. package/build/components/counter/index.js +20 -20
  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 +9 -9
  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 +11 -11
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +21 -21
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +13 -13
  22. package/build/components/scrollbar/index.d.ts +11 -11
  23. package/build/components/scrollbar/index.js +15 -15
  24. package/build/components/select/index.js +24 -24
  25. package/build/components/textarea/index.js +11 -11
  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 +8 -8
  30. package/build/components/tooltip/onhover.d.ts +16 -16
  31. package/build/components/tooltip/onhover.js +9 -9
  32. package/build/components/typewriter/index.d.ts +11 -11
  33. package/build/components/typewriter/index.js +8 -8
  34. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
- const template_88a2fd04bc87484a954d07fc771290fa1x = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b1y = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
4
4
  export default (attributes) => {
5
- let root_88a2fd04bc87484a954d07fc771290fa1w = template_88a2fd04bc87484a954d07fc771290fa1x(), element_88a2fd04bc87484a954d07fc771290fa1y = root_88a2fd04bc87484a954d07fc771290fa1w.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa1z = { "class": "ellipsis" };
6
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa1y, attributes, attributes_88a2fd04bc87484a954d07fc771290fa1z);
7
- return root_88a2fd04bc87484a954d07fc771290fa1w;
5
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b1x = template_0d7f5d57c4bb40d69aedf451c3798d4b1y(), element_0d7f5d57c4bb40d69aedf451c3798d4b1z = root_0d7f5d57c4bb40d69aedf451c3798d4b1x.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b20 = { "class": "ellipsis" };
6
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b1z, attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b20);
7
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b1x;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
2
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_88a2fd04bc87484a954d07fc771290fa21 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<form class='form'><!--$--></form>`);
5
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b22 = template_0d7f5d57c4bb40d69aedf451c3798d4b1.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_88a2fd04bc87484a954d07fc771290fa20 = template_88a2fd04bc87484a954d07fc771290fa21(), element_88a2fd04bc87484a954d07fc771290fa22 = root_88a2fd04bc87484a954d07fc771290fa20.firstChild, element_88a2fd04bc87484a954d07fc771290fa23 = element_88a2fd04bc87484a954d07fc771290fa22.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa24 = { "class": "form" };
33
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa22, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa24);
34
- template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa22, 'click', function (event) {
32
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b21 = template_0d7f5d57c4bb40d69aedf451c3798d4b22(), element_0d7f5d57c4bb40d69aedf451c3798d4b23 = root_0d7f5d57c4bb40d69aedf451c3798d4b21.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b24 = element_0d7f5d57c4bb40d69aedf451c3798d4b23.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b25 = { "class": "form" };
33
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b23, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b25);
34
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b23, '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_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa22, 'submit', async function (event) {
42
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b23, '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_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa23, content);
63
- return root_88a2fd04bc87484a954d07fc771290fa20;
62
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b24, content);
63
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b21;
64
64
  })();
65
65
  };
@@ -1,21 +1,21 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
6
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
7
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
8
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
10
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
11
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
12
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
14
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
15
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
16
- (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
18
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
19
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
5
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
6
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
7
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
8
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
10
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
11
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
12
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
14
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
15
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
16
+ (attributes: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
18
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
19
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,9 +1,9 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { reactive } from '@esportsplus/frontend';
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_88a2fd04bc87484a954d07fc771290fa26 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='highlight'><!--$--></div>`);
6
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b27 = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='highlight'><!--$--></div>`);
7
7
  const OMIT = ['background'];
8
8
  let key = Symbol(), observer = null;
9
9
  export default template.factory((attributes, content) => {
@@ -30,17 +30,17 @@ export default template.factory((attributes, content) => {
30
30
  highlight: 0
31
31
  });
32
32
  return (() => {
33
- let root_88a2fd04bc87484a954d07fc771290fa25 = template_88a2fd04bc87484a954d07fc771290fa26(), element_88a2fd04bc87484a954d07fc771290fa27 = root_88a2fd04bc87484a954d07fc771290fa25.firstChild, element_88a2fd04bc87484a954d07fc771290fa28 = element_88a2fd04bc87484a954d07fc771290fa27.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa29 = { "class": "highlight" };
34
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa27, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa29);
35
- template_88a2fd04bc87484a954d07fc771290fa0.onrender(element_88a2fd04bc87484a954d07fc771290fa27, (element) => {
33
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b26 = template_0d7f5d57c4bb40d69aedf451c3798d4b27(), element_0d7f5d57c4bb40d69aedf451c3798d4b28 = root_0d7f5d57c4bb40d69aedf451c3798d4b26.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b29 = element_0d7f5d57c4bb40d69aedf451c3798d4b28.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2a = { "class": "highlight" };
34
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b28, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b2a);
35
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.onrender(element_0d7f5d57c4bb40d69aedf451c3798d4b28, (element) => {
36
36
  element[key] = state;
37
37
  observer.observe(element);
38
38
  });
39
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa27, 'style', [
39
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b28, 'style', [
40
40
  () => `--highlight: ${state.highlight}`,
41
41
  `--background: ${attributes.background}`,
42
- ], attributes_88a2fd04bc87484a954d07fc771290fa29);
43
- template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa28, content);
44
- return root_88a2fd04bc87484a954d07fc771290fa25;
42
+ ], attributes_0d7f5d57c4bb40d69aedf451c3798d4b2a);
43
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b29, content);
44
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b26;
45
45
  })();
46
46
  });
@@ -1,21 +1,21 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
5
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: string) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
8
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
7
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
8
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: string) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
11
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
13
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: string) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
16
- (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
15
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
16
+ (attributes: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: string) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
19
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: string) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { svg } from '@esportsplus/frontend';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_88a2fd04bc87484a954d07fc771290fa2b = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='icon'><!--$--></div>`);
5
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b2c = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_88a2fd04bc87484a954d07fc771290fa2a = template_88a2fd04bc87484a954d07fc771290fa2b(), element_88a2fd04bc87484a954d07fc771290fa2c = root_88a2fd04bc87484a954d07fc771290fa2a.firstChild, element_88a2fd04bc87484a954d07fc771290fa2d = element_88a2fd04bc87484a954d07fc771290fa2c.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa2e = { "class": "icon" };
9
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2c, attributes, attributes_88a2fd04bc87484a954d07fc771290fa2e);
10
- template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa2d, svg.sprite(icon));
11
- return root_88a2fd04bc87484a954d07fc771290fa2a;
8
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b2b = template_0d7f5d57c4bb40d69aedf451c3798d4b2c(), element_0d7f5d57c4bb40d69aedf451c3798d4b2d = root_0d7f5d57c4bb40d69aedf451c3798d4b2b.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b2e = element_0d7f5d57c4bb40d69aedf451c3798d4b2d.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2f = { "class": "icon" };
9
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2d, attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2f);
10
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b2e, svg.sprite(icon));
11
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b2b;
12
12
  })();
13
13
  });
@@ -1,27 +1,27 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { reactive } from '@esportsplus/frontend';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_88a2fd04bc87484a954d07fc771290fa2g = template_88a2fd04bc87484a954d07fc771290fa0.template(`<input class='input' />`);
5
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b2h = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<input class='input' />`);
6
6
  export default function (attributes) {
7
7
  let state = attributes.state || reactive({
8
8
  active: false,
9
9
  error: ''
10
10
  });
11
11
  return (() => {
12
- let root_88a2fd04bc87484a954d07fc771290fa2f = template_88a2fd04bc87484a954d07fc771290fa2g(), element_88a2fd04bc87484a954d07fc771290fa2h = root_88a2fd04bc87484a954d07fc771290fa2f.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa2i = { "class": "input" };
13
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2h, this?.attributes, attributes_88a2fd04bc87484a954d07fc771290fa2i);
14
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2h, attributes, attributes_88a2fd04bc87484a954d07fc771290fa2i);
15
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa2h, 'class', () => state.active && '--active', attributes_88a2fd04bc87484a954d07fc771290fa2i);
16
- template_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa2h, 'focusin', () => {
12
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b2g = template_0d7f5d57c4bb40d69aedf451c3798d4b2h(), element_0d7f5d57c4bb40d69aedf451c3798d4b2i = root_0d7f5d57c4bb40d69aedf451c3798d4b2g.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2j = { "class": "input" };
13
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, this?.attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2j);
14
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2j);
15
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, 'class', () => state.active && '--active', attributes_0d7f5d57c4bb40d69aedf451c3798d4b2j);
16
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, 'focusin', () => {
17
17
  state.active = true;
18
18
  });
19
- template_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa2h, 'focusout', () => {
19
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, 'focusout', () => {
20
20
  state.active = false;
21
21
  });
22
- template_88a2fd04bc87484a954d07fc771290fa0.onrender(element_88a2fd04bc87484a954d07fc771290fa2h, form.input.onrender(state));
23
- template_88a2fd04bc87484a954d07fc771290fa0.setProperty(element_88a2fd04bc87484a954d07fc771290fa2h, 'type', (attributes.type || 'text'));
24
- return root_88a2fd04bc87484a954d07fc771290fa2f;
22
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.onrender(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, form.input.onrender(state));
23
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperty(element_0d7f5d57c4bb40d69aedf451c3798d4b2i, 'type', (attributes.type || 'text'));
24
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b2g;
25
25
  })();
26
26
  }
27
27
  ;
@@ -1,21 +1,21 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
6
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
7
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
8
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
10
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
11
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
12
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
14
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
15
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
16
- (attributes: template_88a2fd04bc87484a954d07fc771290fa0.Attributes, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_88a2fd04bc87484a954d07fc771290fa0.Attributes | undefined;
18
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
19
- }, attributes: Readonly<template_88a2fd04bc87484a954d07fc771290fa0.Attributes>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
5
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
6
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
7
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
8
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
10
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
11
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
12
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
14
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
15
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
16
+ (attributes: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes | undefined;
18
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
19
+ }, attributes: Readonly<template_0d7f5d57c4bb40d69aedf451c3798d4b1.Attributes>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,10 +1,10 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { reactive } from '@esportsplus/frontend';
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_88a2fd04bc87484a954d07fc771290fa2k = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
- const template_88a2fd04bc87484a954d07fc771290fa2r = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
6
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b2l = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='loader-content'><div class='loader-logo text --flex-center --text-uppercase --text-600' style='color: var(--color-grey-500);'><!--$--></div></div>`);
7
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b2s = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='loader '><div class='loader '><!--$--></div></div>`);
8
8
  const OMIT = ['loader-content', 'loader-logo'];
9
9
  export default template.factory((attributes, content) => {
10
10
  let state = reactive({
@@ -18,39 +18,39 @@ export default template.factory((attributes, content) => {
18
18
  }
19
19
  let i = 0;
20
20
  return (() => {
21
- let root_88a2fd04bc87484a954d07fc771290fa2q = template_88a2fd04bc87484a954d07fc771290fa2r(), element_88a2fd04bc87484a954d07fc771290fa2s = root_88a2fd04bc87484a954d07fc771290fa2q.firstChild, element_88a2fd04bc87484a954d07fc771290fa2t = element_88a2fd04bc87484a954d07fc771290fa2s.firstElementChild, element_88a2fd04bc87484a954d07fc771290fa2u = element_88a2fd04bc87484a954d07fc771290fa2t.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa2v = { "class": "loader" }, attributes_88a2fd04bc87484a954d07fc771290fa2w = { "class": "loader" };
22
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa2s, 'class', () => state.load && 'loader--load', attributes_88a2fd04bc87484a954d07fc771290fa2v);
23
- template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa2s, 'animationend', (e) => {
21
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b2r = template_0d7f5d57c4bb40d69aedf451c3798d4b2s(), element_0d7f5d57c4bb40d69aedf451c3798d4b2t = root_0d7f5d57c4bb40d69aedf451c3798d4b2r.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b2u = element_0d7f5d57c4bb40d69aedf451c3798d4b2t.firstElementChild, element_0d7f5d57c4bb40d69aedf451c3798d4b2v = element_0d7f5d57c4bb40d69aedf451c3798d4b2u.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2w = { "class": "loader" }, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2x = { "class": "loader" };
22
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b2t, 'class', () => state.load && 'loader--load', attributes_0d7f5d57c4bb40d69aedf451c3798d4b2w);
23
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b2t, 'animationend', (e) => {
24
24
  i++;
25
25
  if (e.animationName === 'move' && i > 1) {
26
26
  state.remove = true;
27
27
  }
28
28
  });
29
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2s, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa2v);
30
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa2t, 'class', () => state.load && 'loader--load', attributes_88a2fd04bc87484a954d07fc771290fa2w);
31
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2t, !content && {
29
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2t, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b2w);
30
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b2u, 'class', () => state.load && 'loader--load', attributes_0d7f5d57c4bb40d69aedf451c3798d4b2x);
31
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2u, !content && {
32
32
  onconnect: () => {
33
33
  state.load = true;
34
34
  }
35
- }, attributes_88a2fd04bc87484a954d07fc771290fa2w);
36
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2t, attributes.loader, attributes_88a2fd04bc87484a954d07fc771290fa2w);
37
- template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa2u, content && (() => {
38
- let root_88a2fd04bc87484a954d07fc771290fa2j = template_88a2fd04bc87484a954d07fc771290fa2k(), element_88a2fd04bc87484a954d07fc771290fa2l = root_88a2fd04bc87484a954d07fc771290fa2j.firstChild, element_88a2fd04bc87484a954d07fc771290fa2m = element_88a2fd04bc87484a954d07fc771290fa2l.firstElementChild, element_88a2fd04bc87484a954d07fc771290fa2n = element_88a2fd04bc87484a954d07fc771290fa2m.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa2o = { "class": "loader-content" }, attributes_88a2fd04bc87484a954d07fc771290fa2p = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
39
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2l, attributes['loader-content'], attributes_88a2fd04bc87484a954d07fc771290fa2o);
40
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2m, attributes['loader-logo'], attributes_88a2fd04bc87484a954d07fc771290fa2p);
41
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa2m, 'class', () => state.scale && 'loader-logo--scale', attributes_88a2fd04bc87484a954d07fc771290fa2p);
42
- template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa2m, 'animationend', ({ animationName: name }) => {
35
+ }, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2x);
36
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2u, attributes.loader, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2x);
37
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b2v, content && (() => {
38
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b2k = template_0d7f5d57c4bb40d69aedf451c3798d4b2l(), element_0d7f5d57c4bb40d69aedf451c3798d4b2m = root_0d7f5d57c4bb40d69aedf451c3798d4b2k.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b2n = element_0d7f5d57c4bb40d69aedf451c3798d4b2m.firstElementChild, element_0d7f5d57c4bb40d69aedf451c3798d4b2o = element_0d7f5d57c4bb40d69aedf451c3798d4b2n.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2p = { "class": "loader-content" }, attributes_0d7f5d57c4bb40d69aedf451c3798d4b2q = { "class": "loader-logo text --flex-center --text-uppercase --text-600", "style": "color:;var(--color-grey-500);" };
39
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2m, attributes['loader-content'], attributes_0d7f5d57c4bb40d69aedf451c3798d4b2p);
40
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b2n, attributes['loader-logo'], attributes_0d7f5d57c4bb40d69aedf451c3798d4b2q);
41
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b2n, 'class', () => state.scale && 'loader-logo--scale', attributes_0d7f5d57c4bb40d69aedf451c3798d4b2q);
42
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b2n, 'animationend', ({ animationName: name }) => {
43
43
  if (name === 'scale') {
44
44
  state.load = true;
45
45
  }
46
46
  });
47
- template_88a2fd04bc87484a954d07fc771290fa0.onconnect(element_88a2fd04bc87484a954d07fc771290fa2m, () => {
47
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.onconnect(element_0d7f5d57c4bb40d69aedf451c3798d4b2n, () => {
48
48
  state.scale = true;
49
49
  });
50
- template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa2n, content);
51
- return root_88a2fd04bc87484a954d07fc771290fa2j;
50
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b2o, content);
51
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b2k;
52
52
  })());
53
- return root_88a2fd04bc87484a954d07fc771290fa2q;
53
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b2r;
54
54
  })();
55
55
  };
56
56
  });
@@ -1,10 +1,10 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import './scss/index.scss';
3
- const template_88a2fd04bc87484a954d07fc771290fa2y = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
3
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b2z = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);'></div>`);
4
4
  export default (attributes) => {
5
5
  return (() => {
6
- let root_88a2fd04bc87484a954d07fc771290fa2x = template_88a2fd04bc87484a954d07fc771290fa2y(), element_88a2fd04bc87484a954d07fc771290fa2z = root_88a2fd04bc87484a954d07fc771290fa2x.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa30 = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa2z, attributes, attributes_88a2fd04bc87484a954d07fc771290fa30);
8
- return root_88a2fd04bc87484a954d07fc771290fa2x;
6
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b2y = template_0d7f5d57c4bb40d69aedf451c3798d4b2z(), element_0d7f5d57c4bb40d69aedf451c3798d4b30 = root_0d7f5d57c4bb40d69aedf451c3798d4b2y.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b31 = { "class": "loading --border-width-700 --size-800", "style": "--border-color:;var(--color-border-500);" };
7
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b30, attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b31);
8
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b2y;
9
9
  })();
10
10
  };
@@ -1,8 +1,8 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { reactive, root } from '@esportsplus/frontend';
3
3
  import form from '../../components/form/index.js';
4
4
  import './scss/index.scss';
5
- const template_88a2fd04bc87484a954d07fc771290fa32 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<input class='range --border-state --border-black' type='range' />`);
5
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b33 = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<input class='range --border-state --border-black' type='range' />`);
6
6
  export default function (attributes) {
7
7
  let { max, min } = attributes, state = attributes.state || reactive({
8
8
  active: false,
@@ -13,23 +13,23 @@ export default function (attributes) {
13
13
  state.value = Number(attributes.value);
14
14
  }
15
15
  return (() => {
16
- let root_88a2fd04bc87484a954d07fc771290fa31 = template_88a2fd04bc87484a954d07fc771290fa32(), element_88a2fd04bc87484a954d07fc771290fa33 = root_88a2fd04bc87484a954d07fc771290fa31.firstChild, attributes_88a2fd04bc87484a954d07fc771290fa34 = { "class": "range --border-state --border-black", "style": "" };
17
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa33, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_88a2fd04bc87484a954d07fc771290fa34);
18
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa33, this?.attributes, attributes_88a2fd04bc87484a954d07fc771290fa34);
19
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa33, attributes, attributes_88a2fd04bc87484a954d07fc771290fa34);
20
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa33, 'class', () => state.active && '--active', attributes_88a2fd04bc87484a954d07fc771290fa34);
21
- template_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa33, 'focusin', () => {
16
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b32 = template_0d7f5d57c4bb40d69aedf451c3798d4b33(), element_0d7f5d57c4bb40d69aedf451c3798d4b34 = root_0d7f5d57c4bb40d69aedf451c3798d4b32.firstChild, attributes_0d7f5d57c4bb40d69aedf451c3798d4b35 = { "class": "range --border-state --border-black", "style": "" };
17
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'style', () => `--thumb-position: ${((state.value - min) / (max - min)) * 100}%`, attributes_0d7f5d57c4bb40d69aedf451c3798d4b35);
18
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b34, this?.attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b35);
19
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b34, attributes, attributes_0d7f5d57c4bb40d69aedf451c3798d4b35);
20
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'class', () => state.active && '--active', attributes_0d7f5d57c4bb40d69aedf451c3798d4b35);
21
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'focusin', () => {
22
22
  state.active = true;
23
23
  });
24
- template_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa33, 'focusout', () => {
24
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'focusout', () => {
25
25
  state.active = false;
26
26
  });
27
- template_88a2fd04bc87484a954d07fc771290fa0.delegate(element_88a2fd04bc87484a954d07fc771290fa33, 'input', (e) => {
27
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.delegate(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'input', (e) => {
28
28
  state.value = Number(e.target.value);
29
29
  });
30
- template_88a2fd04bc87484a954d07fc771290fa0.onrender(element_88a2fd04bc87484a954d07fc771290fa33, form.input.onrender(state));
31
- template_88a2fd04bc87484a954d07fc771290fa0.setProperty(element_88a2fd04bc87484a954d07fc771290fa33, 'value', root(() => attributes?.value || state.value || 0));
32
- return root_88a2fd04bc87484a954d07fc771290fa31;
30
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.onrender(element_0d7f5d57c4bb40d69aedf451c3798d4b34, form.input.onrender(state));
31
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperty(element_0d7f5d57c4bb40d69aedf451c3798d4b34, 'value', root(() => attributes?.value || state.value || 0));
32
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b32;
33
33
  })();
34
34
  }
35
35
  ;
@@ -1,4 +1,4 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { Attributes } from '@esportsplus/frontend';
3
3
  import './scss/index.scss';
4
4
  type A = Attributes & {
@@ -8,20 +8,20 @@ type A = Attributes & {
8
8
  declare const _default: {
9
9
  (): ReturnType<(this: {
10
10
  attributes?: A | undefined;
11
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
12
- }, attributes: Readonly<A>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
11
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
12
+ }, attributes: Readonly<A>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
13
13
  <T extends A>(attributes: T): ReturnType<(this: {
14
14
  attributes?: A | undefined;
15
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
16
- }, attributes: Readonly<A>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
17
- <T extends template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>(content: T): ReturnType<(this: {
15
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
16
+ }, attributes: Readonly<A>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
17
+ <T extends template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>(content: T): ReturnType<(this: {
18
18
  attributes?: A | undefined;
19
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
20
- }, attributes: Readonly<A>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
21
- (attributes: A, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>): ReturnType<(this: {
19
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
20
+ }, attributes: Readonly<A>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
21
+ (attributes: A, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>): ReturnType<(this: {
22
22
  attributes?: A | undefined;
23
- content?: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>;
24
- }, attributes: Readonly<A>, content: template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>) => template_88a2fd04bc87484a954d07fc771290fa0.Renderable<any>>;
23
+ content?: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>;
24
+ }, attributes: Readonly<A>, content: template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>) => template_0d7f5d57c4bb40d69aedf451c3798d4b1.Renderable<any>>;
25
25
  };
26
26
  export default _default;
27
27
  export type { A as Attributes };
@@ -1,9 +1,9 @@
1
- import * as template_88a2fd04bc87484a954d07fc771290fa0 from '@esportsplus/frontend';
1
+ import * as template_0d7f5d57c4bb40d69aedf451c3798d4b1 from '@esportsplus/frontend';
2
2
  import { reactive } from '@esportsplus/frontend';
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_88a2fd04bc87484a954d07fc771290fa36 = template_88a2fd04bc87484a954d07fc771290fa0.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
6
+ const template_0d7f5d57c4bb40d69aedf451c3798d4b37 = template_0d7f5d57c4bb40d69aedf451c3798d4b1.template(`<div class='scrollbar-container'><div class='scrollbar-container-content'><!--$--></div><div class='scrollbar'></div></div>`);
7
7
  const OMIT = ['scrollbar', 'scrollbar-container-content'];
8
8
  let root = document.body, width;
9
9
  export default template.factory(function (attributes, content) {
@@ -12,12 +12,12 @@ export default template.factory(function (attributes, content) {
12
12
  translate: 0
13
13
  });
14
14
  return (() => {
15
- let root_88a2fd04bc87484a954d07fc771290fa35 = template_88a2fd04bc87484a954d07fc771290fa36(), element_88a2fd04bc87484a954d07fc771290fa37 = root_88a2fd04bc87484a954d07fc771290fa35.firstChild, element_88a2fd04bc87484a954d07fc771290fa38 = element_88a2fd04bc87484a954d07fc771290fa37.firstElementChild, element_88a2fd04bc87484a954d07fc771290fa39 = element_88a2fd04bc87484a954d07fc771290fa38.firstChild, element_88a2fd04bc87484a954d07fc771290fa3a = element_88a2fd04bc87484a954d07fc771290fa38.nextElementSibling, attributes_88a2fd04bc87484a954d07fc771290fa3b = { "class": "scrollbar-container" }, attributes_88a2fd04bc87484a954d07fc771290fa3c = { "class": "scrollbar-container-content" }, attributes_88a2fd04bc87484a954d07fc771290fa3d = { "class": "scrollbar" };
16
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa37, this?.attributes && omit(this.attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa3b);
17
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa37, omit(attributes, OMIT), attributes_88a2fd04bc87484a954d07fc771290fa3b);
18
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa38, this?.attributes?.['scrollbar-container-content'], attributes_88a2fd04bc87484a954d07fc771290fa3c);
19
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa38, attributes['scrollbar-container-content'], attributes_88a2fd04bc87484a954d07fc771290fa3c);
20
- template_88a2fd04bc87484a954d07fc771290fa0.on(element_88a2fd04bc87484a954d07fc771290fa38, 'scroll', function () {
15
+ let root_0d7f5d57c4bb40d69aedf451c3798d4b36 = template_0d7f5d57c4bb40d69aedf451c3798d4b37(), element_0d7f5d57c4bb40d69aedf451c3798d4b38 = root_0d7f5d57c4bb40d69aedf451c3798d4b36.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b39 = element_0d7f5d57c4bb40d69aedf451c3798d4b38.firstElementChild, element_0d7f5d57c4bb40d69aedf451c3798d4b3a = element_0d7f5d57c4bb40d69aedf451c3798d4b39.firstChild, element_0d7f5d57c4bb40d69aedf451c3798d4b3b = element_0d7f5d57c4bb40d69aedf451c3798d4b39.nextElementSibling, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3c = { "class": "scrollbar-container" }, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3d = { "class": "scrollbar-container-content" }, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3e = { "class": "scrollbar" };
16
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b38, this?.attributes && omit(this.attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b3c);
17
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b38, omit(attributes, OMIT), attributes_0d7f5d57c4bb40d69aedf451c3798d4b3c);
18
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b39, this?.attributes?.['scrollbar-container-content'], attributes_0d7f5d57c4bb40d69aedf451c3798d4b3d);
19
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b39, attributes['scrollbar-container-content'], attributes_0d7f5d57c4bb40d69aedf451c3798d4b3d);
20
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.on(element_0d7f5d57c4bb40d69aedf451c3798d4b39, 'scroll', function () {
21
21
  if (width === undefined) {
22
22
  width = this.offsetWidth - this.clientWidth;
23
23
  if (width && width !== 17) {
@@ -27,14 +27,14 @@ export default template.factory(function (attributes, content) {
27
27
  state.height = (this.clientHeight / this.scrollHeight) * 100;
28
28
  state.translate = (this.scrollTop / this.clientHeight) * 100;
29
29
  });
30
- template_88a2fd04bc87484a954d07fc771290fa0.slot(element_88a2fd04bc87484a954d07fc771290fa39, content);
31
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa3a, this?.attributes?.scrollbar, attributes_88a2fd04bc87484a954d07fc771290fa3d);
32
- template_88a2fd04bc87484a954d07fc771290fa0.setProperties(element_88a2fd04bc87484a954d07fc771290fa3a, attributes.scrollbar, attributes_88a2fd04bc87484a954d07fc771290fa3d);
33
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa3a, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_88a2fd04bc87484a954d07fc771290fa3d);
34
- template_88a2fd04bc87484a954d07fc771290fa0.setList(element_88a2fd04bc87484a954d07fc771290fa3a, 'style', () => `
30
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.slot(element_0d7f5d57c4bb40d69aedf451c3798d4b3a, content);
31
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b3b, this?.attributes?.scrollbar, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3e);
32
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setProperties(element_0d7f5d57c4bb40d69aedf451c3798d4b3b, attributes.scrollbar, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3e);
33
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b3b, 'class', () => state.height >= 100 && 'scrollbar--hidden', attributes_0d7f5d57c4bb40d69aedf451c3798d4b3e);
34
+ template_0d7f5d57c4bb40d69aedf451c3798d4b1.setList(element_0d7f5d57c4bb40d69aedf451c3798d4b3b, 'style', () => `
35
35
  --translate: translate3d(0, ${state.translate}%, 0);
36
36
  --height: ${state.height}%;
37
- `, attributes_88a2fd04bc87484a954d07fc771290fa3d);
38
- return root_88a2fd04bc87484a954d07fc771290fa35;
37
+ `, attributes_0d7f5d57c4bb40d69aedf451c3798d4b3e);
38
+ return root_0d7f5d57c4bb40d69aedf451c3798d4b36;
39
39
  })();
40
40
  });