@devschile/chucao 1.0.0
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.
- package/LICENSE +21 -0
- package/README.md +358 -0
- package/dist/chucao/chucao.css +2 -0
- package/dist/chucao/chucao.esm.js +2 -0
- package/dist/chucao/chucao.esm.js.map +1 -0
- package/dist/chucao/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/chucao/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/chucao/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/chucao/index.esm.js +2 -0
- package/dist/chucao/index.esm.js.map +1 -0
- package/dist/chucao/p-2eeff869.entry.js +2 -0
- package/dist/chucao/p-2eeff869.entry.js.map +1 -0
- package/dist/chucao/p-QBEhw78y.js +3 -0
- package/dist/chucao/p-QBEhw78y.js.map +1 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js +187 -0
- package/dist/cjs/ch-badge_5.cjs.entry.js.map +1 -0
- package/dist/cjs/chucao.cjs.js +27 -0
- package/dist/cjs/chucao.cjs.js.map +1 -0
- package/dist/cjs/index-Do8JpTKQ.js +1485 -0
- package/dist/cjs/index-Do8JpTKQ.js.map +1 -0
- package/dist/cjs/index.cjs.js +98 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +17 -0
- package/dist/collection/components/ch-badge/ch-badge.css +27 -0
- package/dist/collection/components/ch-badge/ch-badge.js +53 -0
- package/dist/collection/components/ch-badge/ch-badge.js.map +1 -0
- package/dist/collection/components/ch-button/ch-button.css +58 -0
- package/dist/collection/components/ch-button/ch-button.js +132 -0
- package/dist/collection/components/ch-button/ch-button.js.map +1 -0
- package/dist/collection/components/ch-card/ch-card.css +44 -0
- package/dist/collection/components/ch-card/ch-card.js +19 -0
- package/dist/collection/components/ch-card/ch-card.js.map +1 -0
- package/dist/collection/components/ch-input/ch-input.css +43 -0
- package/dist/collection/components/ch-input/ch-input.js +240 -0
- package/dist/collection/components/ch-input/ch-input.js.map +1 -0
- package/dist/collection/components/ch-select/ch-select.css +45 -0
- package/dist/collection/components/ch-select/ch-select.js +220 -0
- package/dist/collection/components/ch-select/ch-select.js.map +1 -0
- package/dist/collection/fonts/fira-sans-latin-400-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-600-normal.woff2 +0 -0
- package/dist/collection/fonts/fira-sans-latin-700-normal.woff2 +0 -0
- package/dist/collection/fonts/inconsolata-latin-400-normal.woff2 +0 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/tokens/tokens.js +70 -0
- package/dist/collection/tokens/tokens.js.map +1 -0
- package/dist/collection/tokens/types.js +2 -0
- package/dist/collection/tokens/types.js.map +1 -0
- package/dist/components/ch-badge.d.ts +11 -0
- package/dist/components/ch-badge.js +2 -0
- package/dist/components/ch-badge.js.map +1 -0
- package/dist/components/ch-button.d.ts +11 -0
- package/dist/components/ch-button.js +2 -0
- package/dist/components/ch-button.js.map +1 -0
- package/dist/components/ch-card.d.ts +11 -0
- package/dist/components/ch-card.js +2 -0
- package/dist/components/ch-card.js.map +1 -0
- package/dist/components/ch-input.d.ts +11 -0
- package/dist/components/ch-input.js +2 -0
- package/dist/components/ch-input.js.map +1 -0
- package/dist/components/ch-select.d.ts +11 -0
- package/dist/components/ch-select.js +2 -0
- package/dist/components/ch-select.js.map +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-BImgfbXx.js +2 -0
- package/dist/components/p-BImgfbXx.js.map +1 -0
- package/dist/esm/ch-badge_5.entry.js +181 -0
- package/dist/esm/ch-badge_5.entry.js.map +1 -0
- package/dist/esm/chucao.js +23 -0
- package/dist/esm/chucao.js.map +1 -0
- package/dist/esm/index-QBEhw78y.js +1476 -0
- package/dist/esm/index-QBEhw78y.js.map +1 -0
- package/dist/esm/index.js +74 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ch-badge/ch-badge.d.ts +8 -0
- package/dist/types/components/ch-button/ch-button.d.ts +24 -0
- package/dist/types/components/ch-card/ch-card.d.ts +3 -0
- package/dist/types/components/ch-input/ch-input.d.ts +44 -0
- package/dist/types/components/ch-select/ch-select.d.ts +44 -0
- package/dist/types/components.d.ts +348 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/types/tokens/tokens.d.ts +69 -0
- package/dist/types/tokens/types.d.ts +5 -0
- package/dist-react/components.d.ts +29 -0
- package/dist-react/components.js +51 -0
- package/dist-react/components.ts +81 -0
- package/dist-vue/index.d.ts +7 -0
- package/dist-vue/index.js +47 -0
- package/dist-vue/index.ts +63 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +125 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 devsChile
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
[](https://stenciljs.com)
|
|
2
|
+
|
|
3
|
+
# Chucao
|
|
4
|
+
|
|
5
|
+
<img src="chucao-logo.png" width="250">
|
|
6
|
+
|
|
7
|
+
Kit de marca + sistema de diseño web de devsChile, listo para reusar en
|
|
8
|
+
proyectos nuevos. Pensado para copiarse y usarse directo, sin depender de
|
|
9
|
+
piezas externas.
|
|
10
|
+
|
|
11
|
+
🔗 **[devschile.github.io/chucao](https://devschile.github.io/chucao/)**
|
|
12
|
+
|
|
13
|
+
- guía gráfica: paleta, tipografía, todas las variantes del isotipo y el set
|
|
14
|
+
de favicon, renderizados
|
|
15
|
+
- rama `docs`, publicada con GitHub Pages
|
|
16
|
+
|
|
17
|
+
**Empieza por [`DESIGN.md`](DESIGN.md)** — es la referencia completa: identidad
|
|
18
|
+
de marca (isotipo y logotipo, paleta oficial, reglas de uso) y el sistema de diseño web
|
|
19
|
+
(colores, tipografía, componentes CSS de referencia) que se usó construyendo
|
|
20
|
+
[pegas.devschile.cl](https://pegas.devschile.cl) y
|
|
21
|
+
[semanario.devschile.cl](https://semanario.devschile.cl).
|
|
22
|
+
|
|
23
|
+
Este proyecto agrega lo que `DESIGN.md` describe pero no traía: los
|
|
24
|
+
archivos de imagen reales.
|
|
25
|
+
|
|
26
|
+
Además, el sistema de diseño está empaquetado como una librería de Web
|
|
27
|
+
Components framework-agnostic hecha con [StencilJS](https://stenciljs.com),
|
|
28
|
+
publicada en npm como `@devschile/chucao` (ver más abajo, "Librería de
|
|
29
|
+
componentes (StencilJS)").
|
|
30
|
+
|
|
31
|
+
## Librería de componentes (StencilJS)
|
|
32
|
+
|
|
33
|
+
El sistema de diseño de Chucao (colores, tipografía, espaciado, layout — ver
|
|
34
|
+
[`DESIGN.md`](DESIGN.md) y [`chucao-tokens.json`](chucao-tokens.json))
|
|
35
|
+
está empaquetado como Web Components framework-agnostic usando
|
|
36
|
+
[StencilJS](https://stenciljs.com), publicados en npm como `@devschile/chucao`.
|
|
37
|
+
|
|
38
|
+
Los componentes de Stencil son simplemente Web Components estándar, así que
|
|
39
|
+
funcionan en React, Vue, Angular, Svelte o sin ningún framework.
|
|
40
|
+
|
|
41
|
+
### Getting started
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pnpm install
|
|
45
|
+
pnpm start
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
To build the components for production:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pnpm run build
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
To run the component tests:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pnpm test
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
To run the tests with a coverage report:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pnpm run test:coverage
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Component tests live next to each component as `<component>.plugin.spec.tsx`
|
|
67
|
+
(e.g. `src/components/ch-badge/ch-badge.plugin.spec.tsx`) and import the
|
|
68
|
+
component's source file directly (e.g. `import './ch-badge.tsx';`). This uses
|
|
69
|
+
`@stencil/vitest`'s experimental `stencilVitestPlugin`, which compiles each
|
|
70
|
+
component on-the-fly instead of testing against pre-built `dist` bundles —
|
|
71
|
+
that's what makes the coverage report in `pnpm run test:coverage` reflect
|
|
72
|
+
real, per-component line/branch/function coverage. Testing against pre-built
|
|
73
|
+
bundles (the previous approach) doesn't give Vitest a way to instrument
|
|
74
|
+
individual source files, so coverage numbers were always 0%; see the
|
|
75
|
+
[`@stencil/vitest` README](https://github.com/stenciljs/vitest#stencil-vitest-plugin)
|
|
76
|
+
for more details, including its known limitation around cross-file class
|
|
77
|
+
inheritance.
|
|
78
|
+
|
|
79
|
+
Coverage uses the `istanbul` provider rather than the default `v8` provider,
|
|
80
|
+
and excludes the generated `constructor` method
|
|
81
|
+
(`coverage.ignoreClassMethods` in `vitest.config.mts`). The `v8` provider maps
|
|
82
|
+
coverage from compiled bytecode back to source via source maps, which
|
|
83
|
+
misattributed an untestable, framework-generated constructor branch (used
|
|
84
|
+
only for server-side hydration) back onto each component's `@Component(...)`
|
|
85
|
+
decorator, showing a bogus "else path not taken" there. `istanbul` instruments
|
|
86
|
+
the original source directly, so the branch numbers now reflect real,
|
|
87
|
+
testable code paths only.
|
|
88
|
+
|
|
89
|
+
Need help with Stencil itself? Check out the
|
|
90
|
+
[docs](https://stenciljs.com/docs/my-first-component).
|
|
91
|
+
|
|
92
|
+
### Project structure
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
src/
|
|
96
|
+
├── components/ Stencil components (one folder per component)
|
|
97
|
+
├── global/ Global stylesheet (utility classes & CSS variables), bundled into every build
|
|
98
|
+
├── tokens/ Design tokens generated by toki — do not edit by hand
|
|
99
|
+
└── index.ts Public entry point (re-exports tokens)
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Design tokens
|
|
103
|
+
|
|
104
|
+
The files under [`src/tokens`](src/tokens) (`tokens.ts`, `tokens.css`,
|
|
105
|
+
`tokens.d.ts`, `types.ts`) are generated from
|
|
106
|
+
[`chucao-tokens.json`](chucao-tokens.json) by
|
|
107
|
+
[toki](https://github.com/devschile/toki) — **do not edit them by hand**.
|
|
108
|
+
[`src/global/chucao.css`](src/global/chucao.css) (the file bundled into every
|
|
109
|
+
build via `globalStyle`) imports `tokens.css` directly, so there's a single
|
|
110
|
+
source of truth for the generated `:root` custom properties. See
|
|
111
|
+
[`src/tokens/README.md`](src/tokens/README.md) for their naming conventions,
|
|
112
|
+
CSS custom properties and TypeScript usage.
|
|
113
|
+
|
|
114
|
+
### Naming & API conventions
|
|
115
|
+
|
|
116
|
+
When creating new component tags, avoid using `chucao` or `stencil` alone as
|
|
117
|
+
the tag name; instead prefix component tags with `ch-` (e.g. `ch-input`) so
|
|
118
|
+
they don't collide with other libraries on the page.
|
|
119
|
+
|
|
120
|
+
Beyond tag naming, follow these conventions — already used consistently
|
|
121
|
+
across `ch-badge`, `ch-button`, `ch-card`, `ch-input`, and `ch-select` — so
|
|
122
|
+
future components stay consistent as the library grows. See
|
|
123
|
+
[`docs/v1-readiness.md`](docs/v1-readiness.md) for the full readiness
|
|
124
|
+
assessment that identified and documented these conventions.
|
|
125
|
+
|
|
126
|
+
- **Custom events**: prefix with `ch` and use camelCase (`chClick`,
|
|
127
|
+
`chChange`, `chInput`), mirroring the native event they wrap (`click`,
|
|
128
|
+
`change`, `input`).
|
|
129
|
+
- **Variant props**: type them as a string union (e.g.
|
|
130
|
+
`'primary' | 'secondary'`) and export the union as a named type alongside
|
|
131
|
+
the component class (e.g. `ChButtonVariant`, `ChBadgeVariant`), so
|
|
132
|
+
consumers can import and reuse the type.
|
|
133
|
+
- **Standard interactive-component props**: any component that wraps a
|
|
134
|
+
native form control should expose `disabled` (`@Prop() disabled = false;`),
|
|
135
|
+
`required` (`@Prop() required = false;`), `name` (`@Prop() name?: string;`),
|
|
136
|
+
and, when it holds a value, `value` as `@Prop({ mutable: true }) value = ''`
|
|
137
|
+
— reflect each prop straight onto the native element (e.g.
|
|
138
|
+
`<button disabled={this.disabled}>`, `<input disabled={this.disabled} required={this.required} />`).
|
|
139
|
+
This is the pattern `ch-input` and `ch-select` already follow, and that
|
|
140
|
+
`ch-button` was updated to match.
|
|
141
|
+
- **Accessibility**: prefer native, keyboard-accessible elements
|
|
142
|
+
(`<button>`, `<input>`, `<select>`) inside the shadow root instead of
|
|
143
|
+
reimplementing their semantics — this is what gives `ch-button`,
|
|
144
|
+
`ch-input`, and `ch-select` working Tab/Space/Enter navigation for free.
|
|
145
|
+
Because `aria-*` attributes set on the custom element host aren't
|
|
146
|
+
automatically forwarded into the shadow DOM, components that need a
|
|
147
|
+
label expose it explicitly: `ch-input`/`ch-select` accept a `label` prop
|
|
148
|
+
rendered as a `<label>` associated via a generated `id`/`for` pair, and
|
|
149
|
+
`ch-button` accepts a `label` prop applied as `aria-label` on the native
|
|
150
|
+
`<button>` (for icon-only buttons). Interactive elements must also keep a
|
|
151
|
+
visible `:focus-visible` style (see `ch-button.css`) so keyboard users can
|
|
152
|
+
see where focus is.
|
|
153
|
+
|
|
154
|
+
### Using this library
|
|
155
|
+
|
|
156
|
+
There are two strategies to consume Stencil component libraries published to
|
|
157
|
+
npm. You can read more about them in the
|
|
158
|
+
[Stencil docs](https://stenciljs.com/docs/publishing).
|
|
159
|
+
|
|
160
|
+
#### Lazy loading
|
|
161
|
+
|
|
162
|
+
If your project is built with the [`dist`](https://stenciljs.com/docs/distribution)
|
|
163
|
+
output target, import a small bootstrap script that registers all components
|
|
164
|
+
and loads individual component scripts lazily:
|
|
165
|
+
|
|
166
|
+
```html
|
|
167
|
+
<script type="module" src="https://unpkg.com/@devschile/chucao"></script>
|
|
168
|
+
<!--
|
|
169
|
+
To avoid unpkg.com redirects to the actual file, you can also directly import:
|
|
170
|
+
https://unpkg.com/@devschile/chucao@1.0.0/dist/chucao/chucao.esm.js
|
|
171
|
+
-->
|
|
172
|
+
<ch-button>Click me</ch-button>
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
You can also import the script as part of your `node_modules` in your
|
|
176
|
+
application's entry file:
|
|
177
|
+
|
|
178
|
+
```tsx
|
|
179
|
+
import '@devschile/chucao/dist/chucao/chucao.esm.js';
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
#### Standalone
|
|
183
|
+
|
|
184
|
+
If you'd rather import components individually as plain Web Components (e.g.
|
|
185
|
+
in a Svelte/SvelteKit app, which has first-class custom-elements support and
|
|
186
|
+
needs no extra wrapper package), use the
|
|
187
|
+
[`dist-custom-elements`](https://stenciljs.com/docs/custom-elements) output
|
|
188
|
+
target:
|
|
189
|
+
|
|
190
|
+
```tsx
|
|
191
|
+
import '@devschile/chucao/ch-button';
|
|
192
|
+
|
|
193
|
+
function App() {
|
|
194
|
+
return (
|
|
195
|
+
<div>
|
|
196
|
+
<ch-button>Click me</ch-button>
|
|
197
|
+
</div>
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export default App;
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Framework wrappers
|
|
205
|
+
|
|
206
|
+
In addition to the framework-agnostic Web Components above, this library
|
|
207
|
+
ships dedicated wrapper packages so components feel native in React and Vue.
|
|
208
|
+
|
|
209
|
+
#### React
|
|
210
|
+
|
|
211
|
+
Components are wrapped with
|
|
212
|
+
[`@stencil/react-output-target`](https://www.npmjs.com/package/@stencil/react-output-target),
|
|
213
|
+
built to `dist-react/` and exposed as `@devschile/chucao/react`. Install the
|
|
214
|
+
runtime peer dependency in your React app:
|
|
215
|
+
|
|
216
|
+
```bash
|
|
217
|
+
pnpm install @stencil/react-output-target
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
```tsx
|
|
221
|
+
import { ChButton } from '@devschile/chucao/react';
|
|
222
|
+
|
|
223
|
+
function App() {
|
|
224
|
+
return <ChButton>Click me</ChButton>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export default App;
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
#### Vue
|
|
231
|
+
|
|
232
|
+
Components are wrapped with
|
|
233
|
+
[`@stencil/vue-output-target`](https://www.npmjs.com/package/@stencil/vue-output-target),
|
|
234
|
+
built to `dist-vue/` and exposed as `@devschile/chucao/vue`. Install the
|
|
235
|
+
runtime peer dependency in your Vue app:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
pnpm install @stencil/vue-output-target
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
```vue
|
|
242
|
+
<script setup lang="ts">
|
|
243
|
+
import { ChButton } from '@devschile/chucao/vue';
|
|
244
|
+
</script>
|
|
245
|
+
|
|
246
|
+
<template>
|
|
247
|
+
<ChButton>Click me</ChButton>
|
|
248
|
+
</template>
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
The Vue wrappers automatically register their underlying custom elements on
|
|
252
|
+
import — no separate `@devschile/chucao/loader` import is required.
|
|
253
|
+
|
|
254
|
+
#### Svelte / SvelteKit
|
|
255
|
+
|
|
256
|
+
Svelte doesn't need a dedicated wrapper package — it has first-class support
|
|
257
|
+
for custom elements, so the standalone approach above (importing from
|
|
258
|
+
[`dist-custom-elements`](https://stenciljs.com/docs/custom-elements)) works
|
|
259
|
+
directly:
|
|
260
|
+
|
|
261
|
+
```svelte
|
|
262
|
+
<script lang="ts">
|
|
263
|
+
import '@devschile/chucao/ch-button';
|
|
264
|
+
</script>
|
|
265
|
+
|
|
266
|
+
<ch-button>Click me</ch-button>
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
In SvelteKit, guard the import so it only runs in the browser (custom
|
|
270
|
+
elements rely on the DOM), e.g. inside `onMount` or a `+layout.ts` with
|
|
271
|
+
`browser` from `$app/environment`.
|
|
272
|
+
|
|
273
|
+
## Qué hay en `assets/`
|
|
274
|
+
|
|
275
|
+
```
|
|
276
|
+
assets/
|
|
277
|
+
├── brand/
|
|
278
|
+
│ ├── huemul-icono.png El huemul solo, full color (600×663)
|
|
279
|
+
│ ├── huemul-icono.svg Igual, vector real
|
|
280
|
+
│ ├── huemul-icono-contorno.svg El huemul + contorno blanco, para fondo oscuro, vector real
|
|
281
|
+
│ ├── huemul-icono-trazo.svg Solo el trazo, sin relleno, vector real (extra, no es
|
|
282
|
+
│ │ una de las 3 variantes oficiales de DESIGN.md)
|
|
283
|
+
│ ├── huemul-icono-blanco.png El huemul solo, monocromo blanco (593×665)
|
|
284
|
+
│ ├── huemul-icono-blanco.svg Igual, ver nota abajo sobre este archivo
|
|
285
|
+
│ ├── devschile-wordmark.png "<devschile/>", solo texto (639×153)
|
|
286
|
+
│ └── devschile-wordmark.svg Igual, vector real
|
|
287
|
+
│
|
|
288
|
+
└── favicon/
|
|
289
|
+
├── favicon.ico Multi-resolución (16/32/48), navegadores viejos
|
|
290
|
+
├── favicon-16x16.png
|
|
291
|
+
├── favicon-32x32.png
|
|
292
|
+
├── favicon-48x48.png
|
|
293
|
+
├── apple-touch-icon.png 180×180
|
|
294
|
+
├── android-chrome-192x192.png
|
|
295
|
+
├── android-chrome-512x512.png
|
|
296
|
+
├── favicon.svg
|
|
297
|
+
├── site.webmanifest
|
|
298
|
+
└── huemul-icono-cuadrado.png Base cuadrada (663×663, con relleno
|
|
299
|
+
transparente) sin comprimir — fuente
|
|
300
|
+
limpia para generar otros tamaños
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Los nombres en `assets/brand/` coinciden a propósito con las rutas que ya usa
|
|
304
|
+
la tabla de `DESIGN.md` (`assets/brand/huemul-icono.png`, etc.), así que el
|
|
305
|
+
markdown no necesita ningún ajuste.
|
|
306
|
+
|
|
307
|
+
### ⚠️ Sobre `huemul-icono-blanco.svg`
|
|
308
|
+
|
|
309
|
+
Es el único `.svg` que sigue siendo _placeholder_: el PNG original embebido tal
|
|
310
|
+
cual dentro de un contenedor `<svg><image href="data:image/png;base64,...">`.
|
|
311
|
+
Sirve para cualquier lugar que pida la extensión `.svg`, pero no es un _path_
|
|
312
|
+
editable ni escala con nitidez real ya que sigue siendo un _raster_.
|
|
313
|
+
|
|
314
|
+
El resto de los `.svg` de `assets/brand/` (`huemul-icono`,
|
|
315
|
+
`huemul-icono-contorno`, `huemul-icono-trazo`, `devschile-wordmark`) **son
|
|
316
|
+
vectorizados reales**, con paths editables.
|
|
317
|
+
Si consigues la variante monocroma blanca en vector, reemplaza
|
|
318
|
+
`huemul-icono-blanco.svg` con eso y esta nota deja de aplicar.
|
|
319
|
+
|
|
320
|
+
### Uso rápido del favicon
|
|
321
|
+
|
|
322
|
+
```html
|
|
323
|
+
<link rel="icon" href="/favicon/favicon.ico" sizes="any" />
|
|
324
|
+
<link rel="icon" type="image/svg+xml" href="/favicon/favicon.svg" />
|
|
325
|
+
<link rel="apple-touch-icon" href="/favicon/apple-touch-icon.png" />
|
|
326
|
+
<link rel="manifest" href="/favicon/site.webmanifest" />
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
## Licencia de los assets de marca
|
|
330
|
+
|
|
331
|
+
Los archivos de `assets/brand/` reproducen el mismo logo oficial de devsChile que está en
|
|
332
|
+
[devschile/media-press](https://github.com/devschile/media-press), bajo
|
|
333
|
+
[CC BY-NC-ND 4.0](http://creativecommons.org/licenses/by-nc-nd/4.0/):
|
|
334
|
+
**atribución, no comercial, sin derivados**. Los PNG son copias directas sin
|
|
335
|
+
modificar, los `.svg` vectoriales (todos salvo `huemul-icono-blanco.svg`) son
|
|
336
|
+
el mismo diseño exportado con paths reales, y el set de favicon es una
|
|
337
|
+
redimensión del icono. Nada cambia el color, la forma ni el trazo del
|
|
338
|
+
isotipo, así que todos caen bajo la misma licencia.
|
|
339
|
+
|
|
340
|
+
Para proyectos de la propia comunidad devsChile esto ya está cubierto (ver
|
|
341
|
+
"Reglas de uso" en `DESIGN.md`). Para cualquier uso comercial, o para
|
|
342
|
+
modificar el logo más allá de lo que hay acá, se necesita permiso explícito de
|
|
343
|
+
los administradores de devsChile. El imagotipo combinado, la versión
|
|
344
|
+
vectorial (`.ai`) y la documentación oficial (guía de estilo, guía de uso,
|
|
345
|
+
troquel de stickers) no se incluyen acá: están en
|
|
346
|
+
[devschile/media-press](https://github.com/devschile/media-press).
|
|
347
|
+
|
|
348
|
+
## Cómo reusar esto en un proyecto nuevo
|
|
349
|
+
|
|
350
|
+
1. Copia `DESIGN.md` al proyecto (o solo referéncialo desde acá) para tener a
|
|
351
|
+
mano la paleta, tipografía y componentes CSS de referencia — sección
|
|
352
|
+
"2. Sistema de diseño web".
|
|
353
|
+
2. Copia de `assets/` lo que el proyecto necesite: como mínimo el favicon y el
|
|
354
|
+
`huemul-icono.png` (o `.svg`) para el header.
|
|
355
|
+
3. El acento teal (`#2dd4bf`) es intercambiable; el isotipo y el logotipo no
|
|
356
|
+
lo son (ver "Reglas de uso" en `DESIGN.md`).
|
|
357
|
+
|
|
358
|
+
_Hecho por la comunidad, para la comunidad. 🦌_
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--spacing-radius:6px;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),
|
|
2
|
+
radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--spacing-radius)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:0.5rem}.ch-gap-md{gap:1rem}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{p as e,g as a,b as r}from"./p-QBEhw78y.js";export{s as setNonce}from"./p-QBEhw78y.js";var t=()=>{const a=import.meta.url;const r={};if(a!==""){r.resourcesUrl=new URL(".",a).href}return e(r)};t().then((async e=>{await a();return r([["p-2eeff869",[[769,"ch-badge",{variant:[1]}],[769,"ch-button",{variant:[1],disabled:[4],label:[1]}],[257,"ch-card"],[513,"ch-input",{label:[1],type:[1],value:[1025],placeholder:[1],name:[1],disabled:[4],required:[4]}],[513,"ch-select",{label:[1],options:[16],value:[1025],placeholder:[1],name:[1],disabled:[4],required:[4]}]]]],e)}));
|
|
2
|
+
//# sourceMappingURL=chucao.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chucao.esm.js","sources":["node_modules/.pnpm/@stencil+core@4.43.5/node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, H, promiseResolve, win } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? win.document && Array.from(win.document.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG;AACpC,EAAE,MAAM,IAAI,GAAiE,EAAE;AAC/E,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI;AACrD;AACA,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;AAC7B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE;AACvB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC;AAC7D,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const a="#100a1c";const o="#201e40";const n="#261226";const s="rgba(32, 30, 64, 0.6)";const t="rgba(45, 212, 191, 0.08)";const r="rgba(255, 255, 255, 0.08)";const e="rgba(45, 212, 191, 0.3)";const c="#2dd4bf";const b="#5ee8d4";const d="#4ade80";const g="rgba(34, 197, 94, 0.18)";const f="#f87171";const i="rgba(248, 113, 113, 0.15)";const u="#ffffff";const l="rgba(255, 255, 255, 0.55)";const p="#85422b";const h="#b45b38";const m="#1d1d1b";const v="Fira Sans, Droid Sans, Helvetica Neue, sans-serif";const y="Inconsolata, monospace";const k="6px";const x="68rem";const w={color:{background:{base:"#100a1c",topGlow:"#201e40",bottomGlow:"#261226"},surface:{default:"rgba(32, 30, 64, 0.6)",hover:"rgba(45, 212, 191, 0.08)"},border:{default:"rgba(255, 255, 255, 0.08)",hover:"rgba(45, 212, 191, 0.3)"},accent:{default:"#2dd4bf",hover:"#5ee8d4"},status:{positive:"#4ade80",positiveBackground:"rgba(34, 197, 94, 0.18)",warning:"#f87171",warningBackground:"rgba(248, 113, 113, 0.15)"},text:{primary:"#ffffff",secondary:"rgba(255, 255, 255, 0.55)"},brand:{huemulDark:"#85422b",huemulLight:"#b45b38",stroke:"#1d1d1b"}},typography:{body:"Fira Sans, Droid Sans, Helvetica Neue, sans-serif",heading:"Inconsolata, monospace"},spacing:{radius:"6px"},layout:{maxWidth:"68rem"}};export{c as colorAccentDefault,b as colorAccentHover,a as colorBackgroundBase,n as colorBackgroundBottomGlow,o as colorBackgroundTopGlow,r as colorBorderDefault,e as colorBorderHover,p as colorBrandHuemulDark,h as colorBrandHuemulLight,m as colorBrandStroke,d as colorStatusPositive,g as colorStatusPositiveBackground,f as colorStatusWarning,i as colorStatusWarningBackground,s as colorSurfaceDefault,t as colorSurfaceHover,u as colorTextPrimary,l as colorTextSecondary,x as layoutMaxWidth,k as spacingRadius,w as tokens,v as typographyBody,y as typographyHeading};
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["src/tokens/tokens.ts"],"sourcesContent":["/* Generated by toki v1.10.0 — do not edit */\n\nexport const colorBackgroundBase = '#100a1c';\nexport const colorBackgroundTopGlow = '#201e40';\nexport const colorBackgroundBottomGlow = '#261226';\nexport const colorSurfaceDefault = 'rgba(32, 30, 64, 0.6)';\nexport const colorSurfaceHover = 'rgba(45, 212, 191, 0.08)';\nexport const colorBorderDefault = 'rgba(255, 255, 255, 0.08)';\nexport const colorBorderHover = 'rgba(45, 212, 191, 0.3)';\nexport const colorAccentDefault = '#2dd4bf';\nexport const colorAccentHover = '#5ee8d4';\nexport const colorStatusPositive = '#4ade80';\nexport const colorStatusPositiveBackground = 'rgba(34, 197, 94, 0.18)';\nexport const colorStatusWarning = '#f87171';\nexport const colorStatusWarningBackground = 'rgba(248, 113, 113, 0.15)';\nexport const colorTextPrimary = '#ffffff';\nexport const colorTextSecondary = 'rgba(255, 255, 255, 0.55)';\nexport const colorBrandHuemulDark = '#85422b';\nexport const colorBrandHuemulLight = '#b45b38';\nexport const colorBrandStroke = '#1d1d1b';\nexport const typographyBody = 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif';\nexport const typographyHeading = 'Inconsolata, monospace';\nexport const spacingRadius = '6px';\nexport const layoutMaxWidth = '68rem';\n\nexport const tokens = {\n color: {\n background: {\n base: '#100a1c',\n topGlow: '#201e40',\n bottomGlow: '#261226',\n },\n surface: {\n default: 'rgba(32, 30, 64, 0.6)',\n hover: 'rgba(45, 212, 191, 0.08)',\n },\n border: {\n default: 'rgba(255, 255, 255, 0.08)',\n hover: 'rgba(45, 212, 191, 0.3)',\n },\n accent: {\n default: '#2dd4bf',\n hover: '#5ee8d4',\n },\n status: {\n positive: '#4ade80',\n positiveBackground: 'rgba(34, 197, 94, 0.18)',\n warning: '#f87171',\n warningBackground: 'rgba(248, 113, 113, 0.15)',\n },\n text: {\n primary: '#ffffff',\n secondary: 'rgba(255, 255, 255, 0.55)',\n },\n brand: {\n huemulDark: '#85422b',\n huemulLight: '#b45b38',\n stroke: '#1d1d1b',\n },\n },\n typography: {\n body: 'Fira Sans, Droid Sans, Helvetica Neue, sans-serif',\n heading: 'Inconsolata, monospace',\n },\n spacing: {\n radius: '6px',\n },\n layout: {\n maxWidth: '68rem',\n },\n} as const;\n\nexport type TokenCategory = keyof typeof tokens;\n"],"names":[],"mappings":"AAAA;AAEO,MAAM,mBAAmB,GAAG;AAC5B,MAAM,sBAAsB,GAAG;AAC/B,MAAM,yBAAyB,GAAG;AAClC,MAAM,mBAAmB,GAAG;AAC5B,MAAM,iBAAiB,GAAG;AAC1B,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,gBAAgB,GAAG;AACzB,MAAM,mBAAmB,GAAG;AAC5B,MAAM,6BAA6B,GAAG;AACtC,MAAM,kBAAkB,GAAG;AAC3B,MAAM,4BAA4B,GAAG;AACrC,MAAM,gBAAgB,GAAG;AACzB,MAAM,kBAAkB,GAAG;AAC3B,MAAM,oBAAoB,GAAG;AAC7B,MAAM,qBAAqB,GAAG;AAC9B,MAAM,gBAAgB,GAAG;AACzB,MAAM,cAAc,GAAG;AACvB,MAAM,iBAAiB,GAAG;AAC1B,MAAM,aAAa,GAAG;AACtB,MAAM,cAAc,GAAG;AAEvB,MAAM,MAAM,GAAG;AACpB,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE;AACV,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,UAAU,EAAE,SAAS;AACtB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,uBAAuB;AAChC,YAAA,KAAK,EAAE,0BAA0B;AAClC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,2BAA2B;AACpC,YAAA,KAAK,EAAE,yBAAyB;AACjC,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,KAAK,EAAE,SAAS;AACjB,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,kBAAkB,EAAE,yBAAyB;AAC7C,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,iBAAiB,EAAE,2BAA2B;AAC/C,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,SAAS,EAAE,2BAA2B;AACvC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,WAAW,EAAE,SAAS;AACtB,YAAA,MAAM,EAAE,SAAS;AAClB,SAAA;AACF,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,mDAAmD;AACzD,QAAA,OAAO,EAAE,wBAAwB;AAClC,KAAA;AACD,IAAA,OAAO,EAAE;AACP,QAAA,MAAM,EAAE,KAAK;AACd,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,h as r,H as t,c as a}from"./p-QBEhw78y.js";const o=()=>`:host{display:inline-block}.badge{display:inline-block;padding:0.18rem 0.6rem;border-radius:999px;font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.03em}.badge--default{background:var(--color-surface-hover);color:var(--accent)}.badge--positive{background:var(--color-status-positive-background);color:var(--color-status-positive)}.badge--warning{background:var(--color-status-warning-background);color:var(--color-status-warning)}`;const s=class{constructor(r){e(this,r)}variant="default";render(){return r(t,{key:"9bac1191887568872ad75b1eec3a6084310253db"},r("span",{key:"fae2007c430f102f8ad4e0cc7d97c606dde69eed",class:{badge:true,[`badge--${this.variant}`]:true}},r("slot",{key:"56913dac3a8c18e76a419c22c27c69ca1adc8cc0"})))}};s.style=o();const i=()=>`:host{display:inline-block}.btn{display:inline-flex;align-items:center;gap:0.35rem;border:none;cursor:pointer;font-family:inherit;font-size:inherit}.btn:disabled{opacity:0.5;cursor:not-allowed}.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.btn--primary{background-color:var(--accent);color:#06210f;font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;transition:background-color 0.2s, transform 0.15s}.btn--primary:hover{background-color:var(--accent-hover);transform:translateY(-1px)}.btn--secondary{background-color:transparent;color:var(--text);font-weight:700;padding:0.25rem 0.8rem;border-radius:999px;border:1px solid var(--border);transition:border-color 0.2s, background-color 0.2s, transform 0.15s}.btn--secondary:hover{border-color:var(--border-hover);background-color:var(--surface-hover);transform:translateY(-1px)}`;const c=class{constructor(r){e(this,r);this.chClick=a(this,"chClick")}variant="primary";disabled=false;label;chClick;handleClick=e=>{this.chClick.emit(e)};render(){return r(t,{key:"ac7192a829924909b5068272786a301ae94f722c"},r("button",{key:"74e32d6dcc873224e48101b13019df73aeac45c9",class:{btn:true,[`btn--${this.variant}`]:true},type:"button",disabled:this.disabled,"aria-label":this.label,onClick:this.handleClick},r("slot",{key:"2aee1cf56fec308e43d2abce2af9752fe7bc6f47"})))}};c.style=i();const d=()=>`:host{display:block}::slotted(p){color:var(--text-muted)}.card{color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.35rem 1.5rem;backdrop-filter:blur(10px);position:relative;overflow:hidden;transition:border-color 0.2s, transform 0.15s, box-shadow 0.2s}.card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);opacity:0;transition:opacity 0.2s}.card:hover{border-color:var(--border-hover);transform:translateX(2px);box-shadow:0 4px 20px rgba(45, 212, 191, 0.06)}.card:hover::before{opacity:1}`;const n=class{constructor(r){e(this,r)}render(){return r(t,{key:"e9685d92d3ffe08fb37088c0743534fd2701ecbb"},r("div",{key:"98317e248251b8d23baea9dd3810fc94953dabc4",class:"card"},r("slot",{key:"842e2fe5f72c74f1a14f20957e2edfd882b71edc"})))}};n.style=d();const l=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.input{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;transition:border-color 0.2s, box-shadow 0.2s}.input::placeholder{color:var(--text-muted)}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.input:disabled{opacity:0.5;cursor:not-allowed}`;let b=0;const h=class{constructor(r){e(this,r);this.chInput=a(this,"chInput");this.chChange=a(this,"chChange")}inputId=`ch-input-${++b}`;label;type="text";value="";placeholder;name;disabled=false;required=false;chInput;chChange;handleInput=e=>{this.value=e.target.value;this.chInput.emit(this.value)};handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};render(){return r(t,{key:"83f68aa09efcfcd544012ffde27f116c122ba215"},this.label&&r("label",{key:"d8ca4d52450a024991a3c8f22876483d2031593c",class:"label",htmlFor:this.inputId},this.label),r("input",{key:"fe8c7ce352397b8b0401226501039fc87e8cef57",id:this.label?this.inputId:undefined,class:"input",type:this.type,name:this.name,placeholder:this.placeholder,disabled:this.disabled,required:this.required,value:this.value,onInput:this.handleInput,onChange:this.handleChange}))}};h.style=l();const u=()=>`:host{display:inline-block;width:100%}.label{display:block;margin-bottom:0.35rem;font-size:0.85rem;font-weight:600;color:var(--text)}.select{box-sizing:border-box;width:100%;padding:0.8rem 1.25rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);backdrop-filter:blur(10px);font-family:inherit;font-size:inherit;cursor:pointer;transition:border-color 0.2s, box-shadow 0.2s}.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45, 212, 191, 0.12);outline:none}.select:disabled{opacity:0.5;cursor:not-allowed}.select option{background:var(--bg);color:var(--text)}`;let f=0;const p=class{constructor(r){e(this,r);this.chChange=a(this,"chChange")}selectId=`ch-select-${++f}`;label;options=[];value;placeholder;name;disabled=false;required=false;chChange;handleChange=e=>{this.value=e.target.value;this.chChange.emit(this.value)};render(){return r(t,{key:"57cb1bebbc8ab5ddc01ca1d568cd6871ad6591a2"},this.label&&r("label",{key:"4f89a32b4dea704c6e4f59d7c070281bffbe6dae",class:"label",htmlFor:this.selectId},this.label),r("select",{key:"f4d5badf61e6d72f3f1c9383a0f1b4093303acd3",id:this.label?this.selectId:undefined,class:"select",name:this.name,disabled:this.disabled,required:this.required,onChange:this.handleChange},this.placeholder&&r("option",{key:"241c5db4c8947c8b6bb0ad855e71e99b7315eb73",value:"",disabled:true,hidden:true,selected:!this.value},this.placeholder),this.options.map((e=>r("option",{value:e.value,disabled:e.disabled,selected:e.value===this.value},e.label)))))}};p.style=u();export{s as ch_badge,c as ch_button,n as ch_card,h as ch_input,p as ch_select};
|
|
2
|
+
//# sourceMappingURL=p-2eeff869.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["chBadgeCss","ChBadge","variant","render","h","Host","key","class","badge","this","chButtonCss","ChButton","disabled","label","chClick","handleClick","ev","emit","btn","type","onClick","chCardCss","ChCard","chInputCss","inputIds","ChInput","inputId","value","placeholder","name","required","chInput","chChange","handleInput","target","handleChange","htmlFor","id","undefined","onInput","onChange","chSelectCss","selectIds","ChSelect","selectId","options","hidden","selected","map","option"],"sources":["src/components/ch-badge/ch-badge.css?tag=ch-badge&encapsulation=shadow","src/components/ch-badge/ch-badge.tsx","src/components/ch-button/ch-button.css?tag=ch-button&encapsulation=shadow","src/components/ch-button/ch-button.tsx","src/components/ch-card/ch-card.css?tag=ch-card&encapsulation=shadow","src/components/ch-card/ch-card.tsx","src/components/ch-input/ch-input.css?tag=ch-input&encapsulation=shadow","src/components/ch-input/ch-input.tsx","src/components/ch-select/ch-select.css?tag=ch-select&encapsulation=shadow","src/components/ch-select/ch-select.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n.badge {\n display: inline-block;\n padding: 0.18rem 0.6rem;\n border-radius: 999px;\n font-size: 0.68rem;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n}\n\n.badge--default {\n background: var(--color-surface-hover);\n color: var(--accent);\n}\n\n.badge--positive {\n background: var(--color-status-positive-background);\n color: var(--color-status-positive);\n}\n.badge--warning {\n background: var(--color-status-warning-background);\n color: var(--color-status-warning);\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\nexport type ChBadgeVariant = 'default' | 'positive' | 'warning';\n\n@Component({\n tag: 'ch-badge',\n styleUrl: 'ch-badge.css',\n shadow: true,\n})\nexport class ChBadge {\n /**\n * The visual style of the badge. Either `default`, `positive`, or `warning`.\n */\n @Prop() variant: ChBadgeVariant = 'default';\n\n render() {\n return (\n <Host>\n <span class={{ badge: true, [`badge--${this.variant}`]: true }}>\n <slot></slot>\n </span>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n}\n\n.btn {\n display: inline-flex;\n align-items: center;\n gap: 0.35rem;\n border: none;\n cursor: pointer;\n font-family: inherit;\n font-size: inherit;\n}\n\n.btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.btn:focus-visible {\n outline: 2px solid var(--accent);\n outline-offset: 2px;\n}\n\n.btn--primary {\n background-color: var(--accent);\n color: #06210f;\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n transition:\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--primary:hover {\n background-color: var(--accent-hover);\n transform: translateY(-1px);\n}\n\n.btn--secondary {\n background-color: transparent;\n color: var(--text);\n font-weight: 700;\n padding: 0.25rem 0.8rem;\n border-radius: 999px;\n border: 1px solid var(--border);\n transition:\n border-color 0.2s,\n background-color 0.2s,\n transform 0.15s;\n}\n\n.btn--secondary:hover {\n border-color: var(--border-hover);\n background-color: var(--surface-hover);\n transform: translateY(-1px);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport type ChButtonVariant = 'primary' | 'secondary';\n\n@Component({\n tag: 'ch-button',\n styleUrl: 'ch-button.css',\n shadow: true,\n})\nexport class ChButton {\n /**\n * The visual style of the button. Either `primary` or `secondary`.\n */\n @Prop() variant: ChButtonVariant = 'primary';\n\n /**\n * Whether the button is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Accessible label set as `aria-label` on the native `<button>`. Use it\n * when the button's content doesn't convey its purpose on its own (e.g.\n * an icon-only button).\n */\n @Prop() label?: string;\n\n /**\n * Emitted when the button is clicked.\n */\n @Event() chClick: EventEmitter<MouseEvent>;\n\n private handleClick = (ev: MouseEvent) => {\n this.chClick.emit(ev);\n };\n\n render() {\n return (\n <Host>\n <button\n class={{ btn: true, [`btn--${this.variant}`]: true }}\n type=\"button\"\n disabled={this.disabled}\n aria-label={this.label}\n onClick={this.handleClick}\n >\n <slot></slot>\n </button>\n </Host>\n );\n }\n}\n",":host {\n display: block;\n}\n\n::slotted(p) {\n color: var(--text-muted);\n}\n\n.card {\n color: var(--text);\n background: var(--surface);\n border: 1px solid var(--border);\n border-radius: var(--radius);\n padding: 1.35rem 1.5rem;\n backdrop-filter: blur(10px);\n position: relative;\n overflow: hidden;\n transition:\n border-color 0.2s,\n transform 0.15s,\n box-shadow 0.2s;\n}\n\n.card::before {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n width: 3px;\n background: var(--accent);\n opacity: 0;\n transition: opacity 0.2s;\n}\n\n.card:hover {\n border-color: var(--border-hover);\n transform: translateX(2px);\n box-shadow: 0 4px 20px rgba(45, 212, 191, 0.06);\n}\n\n.card:hover::before {\n opacity: 1;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'ch-card',\n styleUrl: 'ch-card.css',\n shadow: true,\n})\nexport class ChCard {\n render() {\n return (\n <Host>\n <div class=\"card\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.input {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.input::placeholder {\n color: var(--text-muted);\n}\n\n.input:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.input:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nlet inputIds = 0;\n\n@Component({\n tag: 'ch-input',\n styleUrl: 'ch-input.css',\n shadow: true,\n})\nexport class ChInput {\n private readonly inputId = `ch-input-${++inputIds}`;\n\n /**\n * Visible label rendered above the input and associated with it via\n * `for`/`id`, so assistive technology announces the input's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The type of the input, mirroring the native `<input type>` attribute.\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({ mutable: true }) value = '';\n\n /**\n * Placeholder text shown when the input is empty.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the input, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the input is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether the input is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted on every keystroke, with the current input value.\n */\n @Event() chInput: EventEmitter<string>;\n\n /**\n * Emitted when the input value is committed (on native `change`).\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleInput = (ev: InputEvent) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chInput.emit(this.value);\n };\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLInputElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.inputId}>\n {this.label}\n </label>\n )}\n <input\n id={this.label ? this.inputId : undefined}\n class=\"input\"\n type={this.type}\n name={this.name}\n placeholder={this.placeholder}\n disabled={this.disabled}\n required={this.required}\n value={this.value}\n onInput={this.handleInput}\n onChange={this.handleChange}\n />\n </Host>\n );\n }\n}\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n.label {\n display: block;\n margin-bottom: 0.35rem;\n font-size: 0.85rem;\n font-weight: 600;\n color: var(--text);\n}\n\n.select {\n box-sizing: border-box;\n width: 100%;\n padding: 0.8rem 1.25rem;\n border-radius: var(--radius);\n border: 1px solid var(--border);\n background: var(--surface);\n color: var(--text);\n backdrop-filter: blur(10px);\n font-family: inherit;\n font-size: inherit;\n cursor: pointer;\n transition:\n border-color 0.2s,\n box-shadow 0.2s;\n}\n\n.select:focus {\n border-color: var(--accent);\n box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);\n outline: none;\n}\n\n.select:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.select option {\n background: var(--bg);\n color: var(--text);\n}\n","import { Component, Event, type EventEmitter, Host, Prop, h } from '@stencil/core';\n\nexport interface ChSelectOption {\n label: string;\n value: string;\n disabled?: boolean;\n}\n\nlet selectIds = 0;\n\n@Component({\n tag: 'ch-select',\n styleUrl: 'ch-select.css',\n shadow: true,\n})\nexport class ChSelect {\n private readonly selectId = `ch-select-${++selectIds}`;\n\n /**\n * Visible label rendered above the select and associated with it via\n * `for`/`id`, so assistive technology announces the select's purpose.\n */\n @Prop() label?: string;\n\n /**\n * The list of options rendered inside the select.\n */\n @Prop() options: ChSelectOption[] = [];\n\n /**\n * The value of the selected option.\n */\n @Prop({ mutable: true }) value?: string;\n\n /**\n * Placeholder shown as a disabled, hidden first option when no value is selected.\n */\n @Prop() placeholder?: string;\n\n /**\n * The name of the select, submitted with form data.\n */\n @Prop() name?: string;\n\n /**\n * Whether the select is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Whether a value is required.\n */\n @Prop() required = false;\n\n /**\n * Emitted when the selected option changes, with the new value.\n */\n @Event() chChange: EventEmitter<string>;\n\n private handleChange = (ev: Event) => {\n this.value = (ev.target as HTMLSelectElement).value;\n this.chChange.emit(this.value);\n };\n\n render() {\n return (\n <Host>\n {this.label && (\n <label class=\"label\" htmlFor={this.selectId}>\n {this.label}\n </label>\n )}\n <select\n id={this.label ? this.selectId : undefined}\n class=\"select\"\n name={this.name}\n disabled={this.disabled}\n required={this.required}\n onChange={this.handleChange}\n >\n {this.placeholder && (\n <option value=\"\" disabled hidden selected={!this.value}>\n {this.placeholder}\n </option>\n )}\n {this.options.map(option => (\n <option value={option.value} disabled={option.disabled} selected={option.value === this.value}>\n {option.label}\n </option>\n ))}\n </select>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAa,IAAM,2c,MCSZC,EAAO,M,yBAIVC,QAA0B,UAElC,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,QAAAE,IAAA,2CAAMC,MAAO,CAAEC,MAAO,KAAM,CAAC,UAAUC,KAAKP,WAAY,OACtDE,EAAA,QAAAE,IAAA,8C,eCnBV,MAAMI,EAAc,IAAM,w2B,MCSbC,EAAQ,M,wDAIXT,QAA2B,UAK3BU,SAAW,MAOXC,MAKCC,QAEDC,YAAeC,IACrBP,KAAKK,QAAQG,KAAKD,EAAG,EAGvB,MAAAb,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CACEC,MAAO,CAAEW,IAAK,KAAM,CAAC,QAAQT,KAAKP,WAAY,MAC9CiB,KAAK,SACLP,SAAUH,KAAKG,SAAQ,aACXH,KAAKI,MACjBO,QAASX,KAAKM,aAEdX,EAAA,QAAAE,IAAA,8C,eC9CV,MAAMe,EAAY,IAAM,8lB,MCOXC,EAAM,M,yBACjB,MAAAnB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,QACTH,EAAA,QAAAE,IAAA,8C,eCZV,MAAMiB,EAAa,IAAM,+lBCEzB,IAAIC,EAAW,E,MAOFC,EAAO,M,yFACDC,QAAU,cAAcF,IAMjCX,MAKAM,KAAO,OAKUQ,MAAQ,GAKzBC,YAKAC,KAKAjB,SAAW,MAKXkB,SAAW,MAKVC,QAKAC,SAEDC,YAAejB,IACrBP,KAAKkB,MAASX,EAAGkB,OAA4BP,MAC7ClB,KAAKsB,QAAQd,KAAKR,KAAKkB,MAAM,EAGvBQ,aAAgBnB,IACtBP,KAAKkB,MAASX,EAAGkB,OAA4BP,MAC7ClB,KAAKuB,SAASf,KAAKR,KAAKkB,MAAM,EAGhC,MAAAxB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFG,KAAKI,OACJT,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQ6B,QAAS3B,KAAKiB,SAChCjB,KAAKI,OAGVT,EAAA,SAAAE,IAAA,2CACE+B,GAAI5B,KAAKI,MAAQJ,KAAKiB,QAAUY,UAChC/B,MAAM,QACNY,KAAMV,KAAKU,KACXU,KAAMpB,KAAKoB,KACXD,YAAanB,KAAKmB,YAClBhB,SAAUH,KAAKG,SACfkB,SAAUrB,KAAKqB,SACfH,MAAOlB,KAAKkB,MACZY,QAAS9B,KAAKwB,YACdO,SAAU/B,KAAK0B,e,eCtFzB,MAAMM,EAAc,IAAM,2nBCQ1B,IAAIC,EAAY,E,MAOHC,EAAQ,M,0DACFC,SAAW,eAAeF,IAMnC7B,MAKAgC,QAA4B,GAKXlB,MAKjBC,YAKAC,KAKAjB,SAAW,MAKXkB,SAAW,MAKVE,SAEDG,aAAgBnB,IACtBP,KAAKkB,MAASX,EAAGkB,OAA6BP,MAC9ClB,KAAKuB,SAASf,KAAKR,KAAKkB,MAAM,EAGhC,MAAAxB,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,4CACFG,KAAKI,OACJT,EAAA,SAAAE,IAAA,2CAAOC,MAAM,QAAQ6B,QAAS3B,KAAKmC,UAChCnC,KAAKI,OAGVT,EAAA,UAAAE,IAAA,2CACE+B,GAAI5B,KAAKI,MAAQJ,KAAKmC,SAAWN,UACjC/B,MAAM,SACNsB,KAAMpB,KAAKoB,KACXjB,SAAUH,KAAKG,SACfkB,SAAUrB,KAAKqB,SACfU,SAAU/B,KAAK0B,cAEd1B,KAAKmB,aACJxB,EAAA,UAAAE,IAAA,2CAAQqB,MAAM,GAAGf,SAAQ,KAACkC,OAAM,KAACC,UAAWtC,KAAKkB,OAC9ClB,KAAKmB,aAGTnB,KAAKoC,QAAQG,KAAIC,GAChB7C,EAAA,UAAQuB,MAAOsB,EAAOtB,MAAOf,SAAUqC,EAAOrC,SAAUmC,SAAUE,EAAOtB,QAAUlB,KAAKkB,OACrFsB,EAAOpC,U","ignoreList":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="chucao";const t={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,prop:true,propChangeCallback:false,updatable:true};const n=()=>{};const r=":root{--color-background-base:#100a1c;--color-background-top-glow:#201e40;--color-background-bottom-glow:#261226;--color-surface-default:rgba(32, 30, 64, 0.6);--color-surface-hover:rgba(45, 212, 191, 0.08);--color-border-default:rgba(255, 255, 255, 0.08);--color-border-hover:rgba(45, 212, 191, 0.3);--color-accent-default:#2dd4bf;--color-accent-hover:#5ee8d4;--color-status-positive:#4ade80;--color-status-positive-background:rgba(34, 197, 94, 0.18);--color-status-warning:#f87171;--color-status-warning-background:rgba(248, 113, 113, 0.15);--color-text-primary:#ffffff;--color-text-secondary:rgba(255, 255, 255, 0.55);--color-brand-huemul-dark:#85422b;--color-brand-huemul-light:#b45b38;--color-brand-stroke:#1d1d1b;--typography-body:Fira Sans, Droid Sans, Helvetica Neue, sans-serif;--typography-heading:Inconsolata, monospace;--spacing-radius:6px;--layout-max-width:68rem}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/fira-sans-latin-400-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/fira-sans-latin-600-normal.woff2') format('woff2')}@font-face{font-family:'Fira Sans';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/fira-sans-latin-700-normal.woff2') format('woff2')}@font-face{font-family:'Inconsolata';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/inconsolata-latin-400-normal.woff2') format('woff2')}:root{--bg:var(--color-background-base);--bg-gradient:radial-gradient(50% 30% ellipse at center top, var(--color-background-top-glow) 0%, rgba(0, 0, 0, 0) 100%),\n radial-gradient(60% 50% ellipse at center bottom, var(--color-background-bottom-glow) 0%, var(--color-background-base) 100%);--surface:var(--color-surface-default);--surface-hover:var(--color-surface-hover);--border:var(--color-border-default);--border-hover:var(--color-border-hover);--text:var(--color-text-primary);--text-muted:var(--color-text-secondary);--accent:var(--color-accent-default);--accent-hover:var(--color-accent-hover);--font-body:var(--typography-body);--font-heading:var(--typography-heading);--radius:var(--spacing-radius)}body{font-family:var(--font-body)}.ch-container{width:100%;max-width:var(--layout-max-width);margin-inline:auto}.ch-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.ch-flex{display:flex}.ch-flex-col{display:flex;flex-direction:column}.ch-items-center{align-items:center}.ch-justify-center{justify-content:center}.ch-justify-between{justify-content:space-between}.ch-gap-sm{gap:0.5rem}.ch-gap-md{gap:1rem}.ch-text-center{text-align:center}.ch-text-primary{color:var(--text)}.ch-text-muted{color:var(--text-muted)}.ch-text-accent{color:var(--accent)}.ch-heading{font-family:var(--font-heading)}";function o(e,t,n){const r=typeof HTMLElement!=="undefined"?HTMLElement.prototype:null;while(e&&e!==r){const r=Object.getOwnPropertyDescriptor(e,t);if(r&&(!n||r.get))return r;e=Object.getPrototypeOf(e)}return void 0}var l=(e,t)=>{var n;const r=t.t;const l=Object.entries((n=r.o)!=null?n:{});l.map((([n,[r]])=>{if(r&31||r&32){const r=e[n];const l=o(Object.getPrototypeOf(e),n,true)||Object.getOwnPropertyDescriptor(e,n);if(l){Object.defineProperty(e,n,{get(){return l.get.call(this)},set(e){l.set.call(this,e)},configurable:true,enumerable:true})}if(t.l.has(n)){e[n]=t.l.get(n)}else if(r!==void 0){e[n]=r}}}))};var i=e=>{if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var s=(e,n)=>{if(!n)return;e.__stencil__getHostRef=()=>n;n.i=e;if(n.t.u&512&&t.prop){l(e,n)}};var a=(e,t)=>{const n={u:0,$hostElement$:e,t,l:new Map,v:new Map};{n.h=new Promise((e=>n.p=e));e["s-p"]=[];e["s-rc"]=[]}{n.m=[]}const r=n;e.__stencil__getHostRef=()=>r;return r};var c=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var u=new Map;var d=(e,t,n)=>{const r=e.$.replace(/-/g,"_");const o=e.S;if(!o){return void 0}const l=u.get(o);if(l){return l[r]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((e=>{{u.set(o,e)}return e[r]}),(e=>{f(e,t.$hostElement$)}))};var v=new Map;var h="{visibility:hidden}.hydrated{visibility:inherit}";var p="slot-fb{display:contents}slot-fb[hidden]{display:none}";var m=typeof window!=="undefined"?window:{};var y={u:0,j:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)};var b=e=>Promise.resolve(e);var g=(()=>{try{if(!m.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var w=g?(()=>!!m.document&&Object.getOwnPropertyDescriptor(m.document.adoptedStyleSheets,"length").writable)():false;var $=false;var S=[];var j=[];var x=(e,t)=>n=>{e.push(n);if(!$){$=true;if(t&&y.u&4){C(O)}else{y.raf(O)}}};var k=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var O=()=>{k(S);{k(j);if($=S.length>0){y.raf(O)}}};var C=e=>b().then(e);var M=x(j,true);function E(e){if(!g)return void 0;const t=new CSSStyleSheet;t.replaceSync(e);return t}var L;function R(e){var t;const n={mode:"open"};const o=this.attachShadow(n);if(L===void 0)L=(t=E(r))!=null?t:null;if(L){if(w){o.adoptedStyleSheets.push(L)}else{o.adoptedStyleSheets=[...o.adoptedStyleSheets,L]}}else if(!g){const e=document.createElement("style");e.innerHTML=r;o.prepend(e)}}var A=(e,t="")=>{{return()=>{}}};var D=(e,t)=>{{return()=>{}}};function H(e){var t,n,r;return(r=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?r:void 0}var N=new WeakMap;var U=(e,t,n)=>{let r=v.get(e);if(g&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}v.set(e,r)};var F=(e,t,n)=>{var r,o,l;const i=T(t);const s=v.get(i);if(!m.document){return i}e=e.nodeType===11?e:m.document;if(s){if(typeof s==="string"){e=e.head||e;let n=N.get(e);let l;if(!n){N.set(e,n=new Set)}if(!n.has(i)){l=m.document.createElement("style");l.textContent=s;const a=(r=y.k)!=null?r:H(m.document);if(a!=null){l.setAttribute("nonce",a)}if(!(t.u&1)){if(e.nodeName==="HEAD"){const t=e.querySelectorAll("link[rel=preconnect]");const n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(l,(n==null?void 0:n.parentNode)===e?n:null)}else if("host"in e){if(g){const t=(o=e.defaultView)!=null?o:e.ownerDocument.defaultView;const n=new t.CSSStyleSheet;n.replaceSync(s);if(w){e.adoptedStyleSheets.unshift(n)}else{e.adoptedStyleSheets=[n,...e.adoptedStyleSheets]}}else{const t=e.querySelector("style");if(t&&true){t.textContent=s+t.textContent}else{e.prepend(l)}}}else{e.append(l)}}if(t.u&1){e.insertBefore(l,null)}if(t.u&4){l.textContent+=p}if(n){n.add(i)}}}else{let t=N.get(e);if(!t){N.set(e,t=new Set)}if(!t.has(i)){const n=(l=e.defaultView)!=null?l:e.ownerDocument.defaultView;let r;if(s.constructor===n.CSSStyleSheet){r=s}else{r=new n.CSSStyleSheet;for(let e=0;e<s.cssRules.length;e++){r.insertRule(s.cssRules[e].cssText,e)}}if(w){e.adoptedStyleSheets.push(r)}else{e.adoptedStyleSheets=[...e.adoptedStyleSheets,r]}t.add(i)}}}return i};var P=e=>{const t=e.t;const n=e.$hostElement$;const r=t.u;const o=A("attachStyles",t.$);const l=F(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=l;n.classList.add(l+"-h")}o()};var T=(e,t)=>"sc-"+e.$;var z=e=>{e=typeof e;return e==="object"||e==="function"};var W=(e,t,...n)=>{if(typeof e==="string"){e=Ne(e)}let r=null;let o=null;let l=false;let i=false;const s=[];const a=t=>{for(let n=0;n<t.length;n++){r=t[n];if(Array.isArray(r)){a(r)}else if(r!=null&&typeof r!=="boolean"){if(l=typeof e!=="function"&&!z(r)){r=String(r)}if(l&&i){s[s.length-1].O+=r}else{s.push(l?I(null,r):r)}i=l}}};a(n);if(t){if(t.key){o=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=I(e,null);c.C=t;if(s.length>0){c.M=s}{c.L=o}return c};var I=(e,t)=>{const n={u:0,R:e,O:t!=null?t:null,A:null,M:null};{n.C=null}{n.L=null}return n};var V={};var q=e=>e&&e.R===V;var G=(e,t,n)=>{if(e!=null&&!z(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&1){return String(e)}return e}return e};var Y=e=>{var t;return(t=i(e))==null?void 0:t.$hostElement$};var Z=(e,t,n)=>{const r=Y(e);return{emit:e=>_(r,t,{bubbles:true,composed:true,cancelable:true,detail:e})}};var _=(e,t,n)=>{const r=y.ce(t,n);e.dispatchEvent(r);return r};var B=(e,t,n,r,o,l,s)=>{if(n===r){return}let a=c(e,t);let f=t.toLowerCase();if(t==="class"){const t=e.classList;const o=K(n);let l=K(r);{t.remove(...o.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!o.includes(e))))}}else if(t==="key");else if(!a&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(c(m,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(n||r){const o=t.endsWith(Q);t=t.replace(X,"");if(n){y.rel(e,t,n,o)}if(r){y.ael(e,t,r,o)}}}else if(t[0]==="a"&&t.startsWith("attr:")){const n=t.slice(5);let o;{const t=i(e);if(t&&t.t&&t.t.o){const e=t.t.o[n];if(e&&e[1]){o=e[1]}}}if(!o){o=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(r==null||r===false){if(r!==false||e.getAttribute(o)===""){e.removeAttribute(o)}}else{e.setAttribute(o,r===true?"":r)}return}else if(t[0]==="p"&&t.startsWith("prop:")){const n=t.slice(5);try{e[n]=r}catch(e){}return}else{const i=z(r);if((a||i&&r!==null)&&!o){try{if(!e.tagName.includes("-")){const o=r==null?"":r;if(t==="list"){a=false}else if(n==null||e[t]!==o){if(typeof e.__lookupSetter__(t)==="function"){e[t]=o}else{e.setAttribute(t,o)}}}else if(e[t]!==r){e[t]=r}}catch(e){}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!a||l&4||o)&&!i&&e.nodeType===1){r=r===true?"":r;{e.setAttribute(t,r)}}}};var J=/\s/;var K=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(J)};var Q="Capture";var X=new RegExp(Q+"$");var ee=(e,t,n,r)=>{const o=t.A.nodeType===11&&t.A.host?t.A.host:t.A;const l=e&&e.C||{};const i=t.C||{};{for(const e of te(Object.keys(l))){if(!(e in i)){B(o,e,l[e],void 0,n,t.u)}}}for(const e of te(Object.keys(i))){B(o,e,l[e],i[e],n,t.u)}};function te(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var ne;var re=false;var oe=false;var le=(e,t,n)=>{const r=t.M[n];let o=0;let l;let i;if(r.O!=null){l=r.A=m.document.createTextNode(r.O)}else{if(!m.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}l=r.A=m.document.createElement(r.R);{ee(null,r,oe)}if(r.M){const t=r.R==="template"?l.content:l;for(o=0;o<r.M.length;++o){i=le(e,r,o);if(i){t.appendChild(i)}}}}l["s-hn"]=ne;return l};var ie=e=>{y.u|=1;const t=e.closest(ne.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((e=>e["s-cr"]));const r=Array.from(e.__childNodes||e.childNodes);for(const e of n?r.reverse():r){if(e["s-sh"]!=null){de(t,e,n!=null?n:null);e["s-sh"]=void 0}}}y.u&=-2};var se=(e,t,n,r,o,l)=>{let i=e;let s;if(i.shadowRoot&&i.tagName===ne){i=i.shadowRoot}if(n.R==="template"){i=i.content}for(;o<=l;++o){if(r[o]){s=le(null,n,o);if(s){r[o].A=s;de(i,s,t)}}}};var ae=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.A;if(e){e.remove()}}}};var ce=(e,t,n,r,o=false)=>{let l=0;let i=0;let s=0;let a=0;let c=t.length-1;let f=t[0];let u=t[c];let d=r.length-1;let v=r[0];let h=r[d];let p;let m;const y=n.R==="template"?e.content:e;while(l<=c&&i<=d){if(f==null){f=t[++l]}else if(u==null){u=t[--c]}else if(v==null){v=r[++i]}else if(h==null){h=r[--d]}else if(fe(f,v,o)){ue(f,v,o);f=t[++l];v=r[++i]}else if(fe(u,h,o)){ue(u,h,o);u=t[--c];h=r[--d]}else if(fe(f,h,o)){ue(f,h,o);de(y,f.A,u.A.nextSibling);f=t[++l];h=r[--d]}else if(fe(u,v,o)){ue(u,v,o);de(y,u.A,f.A);u=t[--c];v=r[++i]}else{s=-1;{for(a=l;a<=c;++a){if(t[a]&&t[a].L!==null&&t[a].L===v.L){s=a;break}}}if(s>=0){m=t[s];if(m.R!==v.R){p=le(t&&t[i],n,s)}else{ue(m,v,o);t[s]=void 0;p=m.A}v=r[++i]}else{p=le(t&&t[i],n,i);v=r[++i]}if(p){{de(f.A.parentNode,p,f.A)}}}}if(l>c){se(e,r[d+1]==null?null:r[d+1].A,n,r,i,d)}else if(i>d){ae(t,l,c)}};var fe=(e,t,n=false)=>{if(e.R===t.R){if(!n){return e.L===t.L}if(n&&!e.L&&t.L){e.L=t.L}return true}return false};var ue=(e,n,r=false)=>{const o=n.A=e.A;const l=e.M;const i=n.M;const s=n.R;const a=n.O;if(a==null){{if(s==="slot"&&!re){if(e.D!==n.D){n.A["s-sn"]=n.D||"";ie(n.A.parentElement)}}ee(e,n,oe)}if(l!==null&&i!==null){ce(o,l,n,i,r)}else if(i!==null){if(e.O!==null){o.textContent=""}se(o,null,n,i,0,i.length-1)}else if(!r&&t.updatable&&l!==null){ae(l,0,l.length-1)}else;}else if(e.O!==a){o.data=a}};var de=(e,t,n,r)=>{if(e.__insertBefore){return e.__insertBefore(t,n)}else{return e==null?void 0:e.insertBefore(t,n)}};var ve=(e,t,n=false)=>{const r=e.$hostElement$;const o=e.t;const l=e.H||I(null,null);const i=q(t);const s=i?t:W(null,null,t);ne=r.tagName;if(n&&s.C){for(const e of Object.keys(s.C)){if(r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){s.C[e]=r[e]}}}s.R=null;s.u|=4;e.H=s;s.A=l.A=r.shadowRoot||r;re=!!(o.u&1)&&!(o.u&128);ue(l,s,n)};var he=(e,t)=>{if(t&&!e.N&&t["s-p"]){const n=t["s-p"].push(new Promise((r=>e.N=()=>{t["s-p"].splice(n-1,1);r()})))}};var pe=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}he(e,e.U);const n=()=>me(e,t);if(t){queueMicrotask((()=>{n()}));return}return M(n)};var me=(e,t)=>{const n=e.$hostElement$;const r=A("scheduleUpdate",e.t.$);const o=e.i;if(!o){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let l;if(t){{if(e.m.length){e.m.forEach((e=>e(n)))}}l=je(o,"componentWillLoad",void 0,n)}else{l=je(o,"componentWillUpdate",void 0,n)}l=ye(l,(()=>je(o,"componentWillRender",void 0,n)));r();return ye(l,(()=>ge(e,o,t)))};var ye=(e,t)=>be(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var be=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var ge=async(e,t,n)=>{var r;const o=e.$hostElement$;const l=A("update",e.t.$);const i=o["s-rc"];if(n){P(e)}const s=A("render",e.t.$);{we(e,t,o,n)}if(i){i.map((e=>e()));o["s-rc"]=void 0}s();l();{const t=(r=o["s-p"])!=null?r:[];const n=()=>$e(e);if(t.length===0){n()}else{Promise.all(t).then(n).catch(n);e.u|=4;t.length=0}}};var we=(e,t,n,r)=>{try{t=t.render();{e.u&=-17}{e.u|=2}{{{ve(e,t,r)}}}}catch(t){f(t,e.$hostElement$)}return null};var $e=e=>{const t=e.t.$;const n=e.$hostElement$;const r=A("postUpdate",t);const o=e.i;const l=e.U;je(o,"componentDidRender",void 0,n);if(!(e.u&64)){e.u|=64;{xe(n)}je(o,"componentDidLoad",void 0,n);r();{e.p(n);if(!l){Se()}}}else{je(o,"componentDidUpdate",void 0,n);r()}{if(e.N){e.N();e.N=void 0}if(e.u&512){C((()=>pe(e,false)))}e.u&=-517}};var Se=t=>{C((()=>_(m,"appload",{detail:{namespace:e}})))};var je=(e,t,n,r)=>{if(e&&e[t]){try{return e[t](n)}catch(e){f(e,r)}}return void 0};var xe=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var ke=(e,t)=>i(e).l.get(t);var Oe=(e,t,n,r)=>{const o=i(e);if(!o){return}if(!o){throw new Error(`Couldn't find host element for "${r.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`)}const l=o.l.get(t);const s=o.u;const a=o.i;n=G(n,r.o[t][0]);const c=Number.isNaN(l)&&Number.isNaN(n);const f=n!==l&&!c;if((!(s&8)||l===void 0)&&f){o.l.set(t,n);if(s&2){if(a.componentShouldUpdate){const e=a.componentShouldUpdate(n,l,t);if(e===false&&!(s&16)){return}}if(!(s&16)){pe(o,false)}}}};var Ce=(e,n,r)=>{var l,s;const a=e.prototype;if(n.o||t.propChangeCallback){const c=Object.entries((l=n.o)!=null?l:{});c.map((([e,[t]])=>{if(t&31||r&2&&t&32){const{get:l,set:s}=o(a,e)||{};if(l)n.o[e][0]|=2048;if(s)n.o[e][0]|=4096;if(r&1||!l){Object.defineProperty(a,e,{get(){{if((n.o[e][0]&2048)===0){return ke(this,e)}const t=i(this);const r=t?t.i:a;if(!r)return;return r[e]}},configurable:true,enumerable:true})}Object.defineProperty(a,e,{set(o){const l=i(this);if(!l){return}if(s){const r=t&32?this[e]:l.$hostElement$[e];if(typeof r==="undefined"&&l.l.get(e)){o=l.l.get(e)}s.apply(this,[G(o,t)]);o=t&32?this[e]:l.$hostElement$[e];Oe(this,e,o,n);return}{if((r&1)===0||(n.o[e][0]&4096)===0){Oe(this,e,o,n);if(r&1&&!l.i){l.m.push((()=>{if(n.o[e][0]&4096&&l.i[e]!==l.l.get(e)){l.i[e]=o}}))}return}const i=()=>{const r=l.i[e];if(!l.l.get(e)&&r){l.l.set(e,r)}l.i[e]=G(o,t);Oe(this,e,l.i[e],n)};if(l.i){i()}else{l.m.push((()=>{i()}))}}}})}}));if(r&1){const r=new Map;a.attributeChangedCallback=function(e,o,l){y.jmp((()=>{var s;const f=r.get(e);const u=i(this);if(this.hasOwnProperty(f)&&t.lazyLoad){l=this[f];delete this[f]}if(a.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==l){return}else if(f==null){const t=u==null?void 0:u.u;if(u&&t&&!(t&8)&&l!==o){const r=u.i;const i=(s=n.F)==null?void 0:s[e];i==null?void 0:i.forEach((n=>{const[[i,s]]=Object.entries(n);if(r[i]!=null&&(t&128||s&1)){r[i].call(r,l,o,e)}}))}return}const d=c.find((([e])=>e===f));const v=d&&d[1][0]&4;const h=v&&l===null&&this[f]===void 0;if(v){l=l===null||l==="false"?false:true}const p=Object.getOwnPropertyDescriptor(a,f);if(!h&&l!=this[f]&&(!p.get||!!p.set)){this[f]=l}}))};e.observedAttributes=Array.from(new Set([...Object.keys((s=n.F)!=null?s:{}),...c.filter((([e,t])=>t[0]&31)).map((([e,t])=>{const n=t[1]||e;r.set(n,e);return n}))]))}}return e};var Me=async(e,n,r,o)=>{let l;try{if((n.u&32)===0){n.u|=32;const o=r.S;if(o){const t=d(r,n);if(t&&"then"in t){const e=D();l=await t;e()}else{l=t}if(!l){throw new Error(`Constructor for "${r.$}#${n.P}" was not found`)}if(!l.isProxied){Ce(l,r,2);l.isProxied=true}const o=A("createInstance",r.$);{n.u|=8}try{new l(n)}catch(t){f(t,e)}{n.u&=-9}o();{Ee(n.i,e)}}else{l=e.constructor;const t=e.localName;customElements.whenDefined(t).then((()=>n.u|=128))}if(l&&l.style){let e;if(typeof l.style==="string"){e=l.style}const n=T(r);if(!v.has(n)||t.hotModuleReplacement){const t=A("registerStyles",r.$);U(n,e,!!(r.u&1));t()}}}const o=n.U;const i=()=>pe(n,true);if(o&&o["s-rc"]){o["s-rc"].push(i)}else{i()}}catch(t){f(t,e);if(n.N){n.N();n.N=void 0}if(n.p){n.p(e)}}};var Ee=(e,t)=>{{je(e,"connectedCallback",void 0,t)}};var Le=e=>{if((y.u&1)===0){const t=i(e);if(!t){return}const n=t.t;const r=A("connectedCallback",n.$);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){he(t,t.U=n);break}}}if(n.o){Object.entries(n.o).map((([t,[n]])=>{if(n&31&&Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];delete e[t];e[t]=n}}))}{Me(e,t,n)}}else{if(t==null?void 0:t.i){Ee(t.i,e)}else if(t==null?void 0:t.h){t.h.then((()=>Ee(t.i,e)))}}r()}};var Re=(e,t)=>{{je(e,"disconnectedCallback",void 0,t||e)}};var Ae=async e=>{if((y.u&1)===0){const t=i(e);if(t==null?void 0:t.i){Re(t.i,e)}else if(t==null?void 0:t.h){t.h.then((()=>Re(t.i,e)))}}if(N.has(e)){N.delete(e)}if(e.shadowRoot&&N.has(e.shadowRoot)){N.delete(e.shadowRoot)}};var De=(e,t={})=>{var n;if(!m.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}const r=A();const o=[];const l=t.exclude||[];const s=m.customElements;const c=m.document.head;const f=c.querySelector("meta[charset]");const u=m.document.createElement("style");const d=[];let v;let p=true;Object.assign(y,t);y.j=new URL(t.resourcesUrl||"./",m.document.baseURI).href;e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],o:t[2],T:t[3]};{n.o=t[2]}const r=Ne(n.$);const c=class extends HTMLElement{["s-p"];["s-rc"];hasRegisteredEventListeners=false;constructor(e){super(e);e=this;a(e,n);if(n.u&1){{if(!e.shadowRoot){R.call(e,n)}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${n.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){const e=i(this);if(!e){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(v){clearTimeout(v);v=null}if(p){d.push(this)}else{y.jmp((()=>Le(this)))}}disconnectedCallback(){y.jmp((()=>Ae(this)));y.raf((()=>{var e;const t=i(this);if(!t){return}const n=d.findIndex((e=>e===this));if(n>-1){d.splice(n,1)}if(((e=t==null?void 0:t.H)==null?void 0:e.A)instanceof Node&&!t.H.A.isConnected){delete t.H.A}}))}componentOnReady(){var e;return(e=i(this))==null?void 0:e.h}};n.S=e[0];if(!l.includes(r)&&!s.get(r)){o.push(r);s.define(r,Ce(c,n,1))}}))}));if(o.length>0){{u.textContent+=o.sort()+h}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(n=y.k)!=null?n:H(m.document);if(e!=null){u.setAttribute("nonce",e)}c.insertBefore(u,f?f.nextSibling:c.firstChild)}}p=false;if(d.length){d.map((e=>e.connectedCallback()))}else{{y.jmp((()=>v=setTimeout(Se,30)))}}r()};var He=e=>y.k=e;function Ne(e){return e}export{V as H,De as b,Z as c,n as g,W as h,b as p,s as r,He as s};
|
|
3
|
+
//# sourceMappingURL=p-QBEhw78y.js.map
|