@telesign/boreal-web-components 0.1.0-alpha.0 → 0.1.0-alpha.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.
- package/README.md +202 -0
- package/components-build/bds-banner.js +1 -1
- package/components-build/{my-component.d.ts → bds-button.d.ts} +4 -4
- package/components-build/bds-button.js +1 -0
- package/components-build/bds-typography.js +1 -1
- package/components-build/index.js +1 -1
- package/components-build/p-Ba6iHqJA.js +1 -0
- package/components-build/p-DQR-jjOl.js +1 -0
- package/custom-elements.json +352 -94
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -1
- package/dist/boreal-web-components/boreal-web-components.js +1 -1
- package/dist/boreal-web-components/p-08bd6bed.system.entry.js +1 -0
- package/dist/boreal-web-components/p-1575fe61.system.entry.js +1 -0
- package/dist/boreal-web-components/p-657c12a3.system.entry.js +1 -0
- package/dist/boreal-web-components/p-66bb3c44.entry.js +1 -0
- package/dist/boreal-web-components/p-742f39ef.entry.js +1 -0
- package/dist/boreal-web-components/p-BG1kmb4c.system.js +1 -0
- package/dist/boreal-web-components/p-B_tL_RWF.system.js +2 -0
- package/dist/boreal-web-components/p-Ba6iHqJA.js +1 -0
- package/dist/boreal-web-components/p-DIvR9Mw7.system.js +1 -0
- package/dist/boreal-web-components/p-DKPZ4_C0.system.js +1 -0
- package/dist/boreal-web-components/p-DQR-jjOl.js +1 -0
- package/dist/boreal-web-components/p-DQvmq159.js +2 -0
- package/dist/boreal-web-components/p-e4a075ba.entry.js +1 -0
- package/dist/cjs/{attributes-RPVEtBdj.js → attributes-D0WPida0.js} +0 -9
- package/dist/cjs/bds-banner.cjs.entry.js +4 -3
- package/dist/cjs/bds-button.cjs.entry.js +185 -0
- package/dist/cjs/bds-typography.cjs.entry.js +10 -9
- package/dist/cjs/boreal-web-components.cjs.js +2 -2
- package/dist/cjs/{index-Cdb66Tqj.js → index-C9JKWXwa.js} +41 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/states-C03fKOhs.js +12 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/actions/bds-button/bds-button.css +479 -0
- package/dist/collection/components/actions/bds-button/bds-button.js +459 -0
- package/dist/collection/components/actions/bds-button/types/IButton.js +1 -0
- package/dist/collection/components/actions/bds-button/types/enum.js +15 -0
- package/dist/collection/components/actions/bds-button/types/types.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +5 -5
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +5 -5
- package/dist/collection/types/coreColors.js +6 -0
- package/dist/collection/types/states.js +1 -1
- package/dist/collection/utils/helpers/validateProps.js +16 -0
- package/dist/esm/{attributes-B9wshZ_4.js → attributes-Ba6iHqJA.js} +1 -8
- package/dist/esm/bds-banner.entry.js +3 -2
- package/dist/esm/bds-button.entry.js +183 -0
- package/dist/esm/bds-typography.entry.js +10 -9
- package/dist/esm/boreal-web-components.js +3 -3
- package/dist/esm/{index-DgFiTd6X.js → index-DQvmq159.js} +41 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/states-DQR-jjOl.js +9 -0
- package/dist/{boreal-web-components/p-B9wshZ_4.js → esm-es5/attributes-Ba6iHqJA.js} +1 -1
- package/dist/esm-es5/bds-banner.entry.js +1 -1
- package/dist/esm-es5/bds-button.entry.js +1 -0
- package/dist/esm-es5/bds-typography.entry.js +1 -1
- package/dist/esm-es5/boreal-web-components.js +1 -1
- package/dist/esm-es5/index-DQvmq159.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/states-DQR-jjOl.js +1 -0
- package/dist/types/components/actions/bds-button/bds-button.d.ts +90 -0
- package/dist/types/components/actions/bds-button/types/IButton.d.ts +14 -0
- package/dist/types/components/actions/bds-button/types/enum.d.ts +16 -0
- package/dist/types/components/actions/bds-button/types/types.d.ts +5 -0
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +2 -2
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +2 -2
- package/dist/types/components.d.ts +269 -50
- package/dist/types/types/coreColors.d.ts +8 -0
- package/dist/types/types/states.d.ts +2 -2
- package/dist/types/utils/helpers/validateProps.d.ts +11 -0
- package/package.json +4 -3
- package/components-build/my-component.js +0 -1
- package/components-build/p-B9wshZ_4.js +0 -1
- package/dist/boreal-web-components/p-412d037b.system.entry.js +0 -1
- package/dist/boreal-web-components/p-527a761b.entry.js +0 -1
- package/dist/boreal-web-components/p-5666a22a.system.entry.js +0 -1
- package/dist/boreal-web-components/p-BQdH0ijK.system.js +0 -2
- package/dist/boreal-web-components/p-CMd-Mv-5.system.js +0 -1
- package/dist/boreal-web-components/p-CaVEtaG3.system.js +0 -1
- package/dist/boreal-web-components/p-DgFiTd6X.js +0 -2
- package/dist/boreal-web-components/p-b818618b.entry.js +0 -1
- package/dist/boreal-web-components/p-d596406b.entry.js +0 -1
- package/dist/boreal-web-components/p-e37e7dba.system.entry.js +0 -1
- package/dist/cjs/my-component.cjs.entry.js +0 -29
- package/dist/collection/components/my-component/my-component.css +0 -3
- package/dist/collection/components/my-component/my-component.js +0 -95
- package/dist/esm/my-component.entry.js +0 -27
- package/dist/esm-es5/attributes-B9wshZ_4.js +0 -1
- package/dist/esm-es5/index-DgFiTd6X.js +0 -2
- package/dist/esm-es5/my-component.entry.js +0 -1
- package/dist/types/components/my-component/my-component.d.ts +0 -16
- package/readme.md +0 -111
package/README.md
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# @telesign/boreal-web-components
|
|
2
|
+
|
|
3
|
+
> Framework-agnostic Web Components for the Boreal Design System — built with Stencil, themed with CSS custom properties.
|
|
4
|
+
|
|
5
|
+
[](https://stenciljs.com)
|
|
6
|
+
[](../../LICENSE)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
`@telesign/boreal-web-components` is the core component library of the Boreal Design System. It is built with [Stencil](https://stenciljs.com/), a compile-time tool that generates standards-based [Custom Elements](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements) — web components that run in any browser and integrate with any framework (or no framework at all).
|
|
13
|
+
|
|
14
|
+
All visual styles are driven by CSS custom properties (design tokens), enabling multi-brand theming across Proximus, Connect, Engage, and Protect.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npm install @telesign/boreal-web-components
|
|
22
|
+
# or
|
|
23
|
+
pnpm add @telesign/boreal-web-components
|
|
24
|
+
# or
|
|
25
|
+
yarn add @telesign/boreal-web-components
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Setup
|
|
31
|
+
|
|
32
|
+
### Styles
|
|
33
|
+
|
|
34
|
+
Import the Boreal DS stylesheet in your application entry file:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
import '@telesign/boreal-web-components/dist/boreal-web-components/boreal-web-components.css';
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Icon font
|
|
41
|
+
|
|
42
|
+
Add the Boreal DS icon font to the `<head>` of your `index.html`:
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<link
|
|
46
|
+
rel="stylesheet"
|
|
47
|
+
href="https://resources-borealds.s3.us-east-1.amazonaws.com/icons/current/boreal-styles.css"
|
|
48
|
+
/>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Theming
|
|
52
|
+
|
|
53
|
+
Set the `data-theme` attribute on the `<body>` element to activate a brand theme:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<body data-theme="proximus">
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Available values: `connect` | `engage` | `protect` | `proximus`
|
|
60
|
+
|
|
61
|
+
Each theme maps to a set of CSS custom properties (design tokens) that control color, typography, spacing, and shape across all components. Changing the attribute at runtime switches the active theme instantly.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Usage
|
|
66
|
+
|
|
67
|
+
### Vanilla HTML
|
|
68
|
+
|
|
69
|
+
Load the ESM bundle and stylesheet directly from the package:
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<html>
|
|
73
|
+
<head>
|
|
74
|
+
<link
|
|
75
|
+
rel="stylesheet"
|
|
76
|
+
href="node_modules/@telesign/boreal-web-components/dist/boreal-web-components/boreal-web-components.css"
|
|
77
|
+
/>
|
|
78
|
+
<script
|
|
79
|
+
type="module"
|
|
80
|
+
src="node_modules/@telesign/boreal-web-components/dist/boreal-web-components/boreal-web-components.esm.js"
|
|
81
|
+
></script>
|
|
82
|
+
</head>
|
|
83
|
+
<body data-theme="proximus">
|
|
84
|
+
<bds-banner variant="info">Welcome to Boreal DS</bds-banner>
|
|
85
|
+
</body>
|
|
86
|
+
</html>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Lazy Loading
|
|
90
|
+
|
|
91
|
+
If your project uses a bundler, register all components via the loader and let them load on demand:
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import { defineCustomElements } from '@telesign/boreal-web-components/loader';
|
|
95
|
+
|
|
96
|
+
defineCustomElements();
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Standalone (tree-shakeable)
|
|
100
|
+
|
|
101
|
+
Import individual components directly to keep bundle sizes small:
|
|
102
|
+
|
|
103
|
+
```ts
|
|
104
|
+
import '@telesign/boreal-web-components/components/bds-banner';
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Framework Wrappers
|
|
110
|
+
|
|
111
|
+
For React and Vue applications, framework-specific wrappers provide typed props, event bindings, and (for Vue) `v-model` support out of the box.
|
|
112
|
+
|
|
113
|
+
| Package | Description | Docs |
|
|
114
|
+
| --- | --- | --- |
|
|
115
|
+
| [`@telesign/boreal-react`](https://www.npmjs.com/package/@telesign/boreal-react) | React wrapper | [README](../boreal-react/README.md) |
|
|
116
|
+
| [`@telesign/boreal-vue`](https://www.npmjs.com/package/@telesign/boreal-vue) | Vue 3 wrapper | [README](../boreal-vue/README.md) |
|
|
117
|
+
|
|
118
|
+
> [!NOTE]
|
|
119
|
+
> Both wrapper packages list `@telesign/boreal-web-components` as a dependency and install it automatically. You do not need to install it separately when using a wrapper.
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Events
|
|
124
|
+
|
|
125
|
+
Boreal DS components emit custom DOM events for interactive behaviour. All custom events are prefixed with `bds` followed by the action name — for example `bdsClose`, `bdsChange`, `bdsClick`.
|
|
126
|
+
|
|
127
|
+
This prefix prevents collisions with native browser events and third-party libraries.
|
|
128
|
+
|
|
129
|
+
```html
|
|
130
|
+
<bds-banner variant="info" enable-close>Something happened</bds-banner>
|
|
131
|
+
|
|
132
|
+
<script>
|
|
133
|
+
const banner = document.querySelector('bds-banner');
|
|
134
|
+
banner.addEventListener('bdsClose', (event) => {
|
|
135
|
+
console.log('Banner dismissed', event.detail);
|
|
136
|
+
});
|
|
137
|
+
</script>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Development
|
|
143
|
+
|
|
144
|
+
### Prerequisites
|
|
145
|
+
|
|
146
|
+
This project uses [fnm](https://github.com/Schniz/fnm) to manage Node.js versions. Before running any commands, activate the correct version:
|
|
147
|
+
|
|
148
|
+
```sh
|
|
149
|
+
fnm use
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
You will also need [pnpm](https://pnpm.io/) as the package manager.
|
|
153
|
+
|
|
154
|
+
### Local setup
|
|
155
|
+
|
|
156
|
+
```sh
|
|
157
|
+
# Clone the monorepo and move into this package
|
|
158
|
+
git clone <repo-url> boreal-ds
|
|
159
|
+
cd boreal-ds
|
|
160
|
+
|
|
161
|
+
# Activate the correct Node version
|
|
162
|
+
fnm use
|
|
163
|
+
|
|
164
|
+
# Install all workspace dependencies from the monorepo root
|
|
165
|
+
pnpm install
|
|
166
|
+
|
|
167
|
+
# Build the web-components package
|
|
168
|
+
pnpm --filter @telesign/boreal-web-components build
|
|
169
|
+
|
|
170
|
+
# Start the Stencil dev server with file watching
|
|
171
|
+
pnpm --filter @telesign/boreal-web-components dev
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### Generate a component
|
|
175
|
+
|
|
176
|
+
Stencil includes a generator that scaffolds the component structure interactively:
|
|
177
|
+
|
|
178
|
+
```sh
|
|
179
|
+
pnpm --filter @telesign/boreal-web-components generate
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Available scripts
|
|
183
|
+
|
|
184
|
+
| Script | Description |
|
|
185
|
+
| --- | --- |
|
|
186
|
+
| `build` | Production build via Stencil |
|
|
187
|
+
| `dev` | Dev build with watch + local server |
|
|
188
|
+
| `test` | Run unit tests (Jest + spec) |
|
|
189
|
+
| `e2e` | Run end-to-end tests (Puppeteer) |
|
|
190
|
+
| `generate` | Scaffold a new component interactively |
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Contributing
|
|
195
|
+
|
|
196
|
+
Please read the [Contributing Guidelines](../../CONTRIBUTING.md) at the monorepo root before submitting issues or pull requests.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## License
|
|
201
|
+
|
|
202
|
+
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,t as r,H as s,c as a,h as n,a as o}from"./index.js";import{S as i
|
|
1
|
+
import{p as e,t as r,H as s,c as a,h as n,a as o}from"./index.js";import{S as i}from"./p-DQR-jjOl.js";import{i as t}from"./p-Ba6iHqJA.js";function b(e){return function(e){e.idComponent||(e.idComponent="bds-"+Math.random().toString(36).substr(2,9))}(e),{id:e.idComponent}}const l=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.close=a(this,"close"),this.inheritedAttributes={},this.isClosing=!1,this.isOpen=!0,this.idComponent="",this.variant=i.INFO,this.enableClose=!1,this.handleAnimationEnd=()=>{this.isClosing&&requestAnimationFrame((()=>{this.isClosing=!1,this.isOpen=!1}))}}componentWillLoad(){this.inheritedAttributes={...t(this.el),...b(this)}}async closeBanner(){this.handleCloseBanner()}handleCloseBanner(e){void 0!==e&&e.preventDefault(),this.isClosing=!0,this.close.emit()}handleEscapeKeyClose(e){this.enableClose&&"Escape"===e.key&&this.handleCloseBanner()}getIconName(){const e={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill"};return void 0===e[this.variant]?e.info:e[this.variant]}getAttributes(){return{...this.inheritedAttributes,role:"alert","aria-describedby":this.isOpen?"bds-banner__content":null,"aria-live":"polite","aria-hidden":""+!this.isOpen,tabIndex:this.isOpen?0:-1}}getStyles(){return{"bds-banner":!0,["bds-banner--"+this.variant]:!0,"bds-banner--closing":this.isClosing}}renderCloseIcon(){return n("button",{role:"close-button",class:"bds-banner__close-icon","aria-label":"Alert close button",onClick:e=>this.handleCloseBanner(e)},n("em",{class:"bds-icon-close"}))}render(){if(!this.isOpen)return;const e=this.renderCloseIcon(),r=this.getStyles(),s=this.getIconName();return n(o,{class:r,...this.getAttributes(),onTransitionEnd:this.handleAnimationEnd,onKeyDown:e=>this.handleEscapeKeyClose(e)},n("div",{class:"bds-banner__vertical-line"}),n("div",{class:"bds-banner__container"},n("div",{class:"bds-banner__status-icon",role:"status","aria-live":"polite","aria-label":"status "+this.variant},n("em",{"aria-hidden":"true",class:s})),n("div",{class:"bds-banner__content"},n("div",{class:"bds-banner__title"},n("slot",{name:"title"})),n("div",{class:"bds-banner__body"},n("slot",null)),n("div",{class:"bds-banner__actions"},n("slot",{name:"actions"}))),this.enableClose&&e))}get el(){return this}static get style(){return".bds-banner{position:relative;display:-ms-flexbox;display:flex;border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-info-base);border-radius:var(--boreal-radius-xs);border-left:0;font-family:var(--boreal-typography-font-family-primary);height:100%;-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.bds-banner__vertical-line{width:var(--boreal-spacing-2xs);border-top-left-radius:var(--boreal-radius-xs);border-bottom-left-radius:var(--boreal-radius-xs);background-color:var(--boreal-stroke-info-base)}.bds-banner__container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-xs);padding:var(--boreal-spacing-s)}.bds-banner__content{width:100%}.bds-banner__title{font-weight:var(--boreal-typography-font-weight-semibold);font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md)}.bds-banner__body{padding-top:var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-sm)}.bds-banner__actions{padding-top:var(--boreal-spacing-s);min-height:0px}.bds-banner__actions:empty{display:none}.bds-banner__status-icon{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);margin-top:var(--boreal-spacing-3xs)}.bds-banner__close-icon{background:none;border:none;-ms-flex-item-align:start;align-self:start;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-neutral-base);cursor:pointer}.bds-banner--info{border-color:var(--boreal-stroke-info-base);background-color:var(--boreal-ui-info-lighter)}.bds-banner--info .bds-banner__vertical-line{background-color:var(--boreal-stroke-info-base)}.bds-banner--info .bds-banner__status-icon{color:var(--boreal-stroke-info-base)}.bds-banner--success{border-color:var(--boreal-stroke-success-base);background-color:var(--boreal-ui-success-lighter)}.bds-banner--success .bds-banner__vertical-line{background-color:var(--boreal-stroke-success-base)}.bds-banner--success .bds-banner__status-icon{color:var(--boreal-stroke-success-base)}.bds-banner--warning{border-color:var(--boreal-stroke-warning);background-color:var(--boreal-ui-warning-lighter)}.bds-banner--warning .bds-banner__vertical-line{background-color:var(--boreal-stroke-warning)}.bds-banner--warning .bds-banner__status-icon{color:var(--boreal-stroke-warning)}.bds-banner--danger{border-color:var(--boreal-stroke-danger-base);background-color:var(--boreal-ui-danger-lighter)}.bds-banner--danger .bds-banner__vertical-line{background-color:var(--boreal-stroke-danger-base)}.bds-banner--danger .bds-banner__status-icon{color:var(--boreal-stroke-danger-base)}.bds-banner--closing{opacity:0;height:0}"}},[260,"bds-banner",{idComponent:[1,"id-component"],variant:[1],enableClose:[4,"enable-close"],isClosing:[32],isOpen:[32],closeBanner:[64]}]),d=l,c=function(){"undefined"!=typeof customElements&&["bds-banner"].forEach((e=>{"bds-banner"===e&&(customElements.get(r(e))||customElements.define(r(e),l))}))};export{d as BdsBanner,c as defineCustomElement}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../dist/types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface BdsButton extends Components.BdsButton, HTMLElement {}
|
|
4
|
+
export const BdsButton: {
|
|
5
|
+
prototype: BdsButton;
|
|
6
|
+
new (): BdsButton;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as o,H as t,c as r,h as b,t as e}from"./index.js";import{C as a}from"./p-DQR-jjOl.js";const s={DEFAULT:"default",OUTLINE:"outline",PLAIN:"plain"},n={SMALL:"small",MEDIUM:"medium",LARGE:"large"},d={BUTTON:"button",SUBMIT:"submit",RESET:"reset"},i={DEFAULT:"default",PRIMARY:"primary",SUCCESS:"success",ERROR:"error"};function u(o,t,r,b){const e=r[b];o.includes(e)||(r[b]=t,console.warn(`[BorealDS] Invalid value "${e}" for prop "${b}" on <${r.tagName.toLowerCase()}>. Expected one of: ${o.join(", ")}.`))}const l=o(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.bdsClick=r(this,"bdsClick"),this.internals=this.attachInternals(),this.currentState=a.DEFAULT,this.label="",this.disabled=!1,this.name="",this.type=d.BUTTON,this.color=i.DEFAULT,this.variant=s.DEFAULT,this.size=n.MEDIUM,this.loading=!1,this.disclosure=!1,this.handleKeyDown=o=>{"Enter"!==o.key&&" "!==o.key||(this.currentState=a.ACTIVE,o.preventDefault(),this.bdsClick.emit(o))},this.handleKeyUp=()=>{this.currentState=a.DEFAULT},this.handleClick=o=>{o.preventDefault(),o.stopPropagation(),this.disabled||this.loading||(this.type===d.SUBMIT||this.type===d.RESET?this.processFormClick():this.bdsClick.emit(o))}}checkPropValues(){u(Object.values(d),d.BUTTON,this.el,"type"),u(Object.values(i),i.DEFAULT,this.el,"color"),u(Object.values(s),s.DEFAULT,this.el,"variant"),u(Object.values(n),n.MEDIUM,this.el,"size")}componentWillLoad(){this.checkPropValues()}componentDidLoad(){this.setupFormAssociation()}setupFormAssociation(){const o=this.el.closest("form");this.internalForm=(this.internals&&"form"in this.internals?this.internals.form:null)||o||void 0}processFormClick(){if(void 0===this.internalForm)return void console.warn("[BorealDS Button] No form found for submit/reset action. Please ensure the button is within a form or that the form is properly associated.");const o={[d.SUBMIT]:()=>{"function"==typeof this.internalForm?.requestSubmit?this.internalForm.requestSubmit():this.internalForm?.submit()},[d.RESET]:()=>this.internalForm?.reset()}[this.type];"function"==typeof o&&o()}get getClassMap(){return{"bds-button":!0,"bds-button--is-disabled":this.disabled,"bds-button--is-loading":this.loading,["bds-button--state-"+this.currentState]:!0,["bds-button--"+this.color]:!0,["bds-button--var-"+this.variant]:!0,["bds-button--size-"+this.size]:!0}}render(){return b("button",{key:"937ea6972ca39ef41aec1d8c6459a224c84b8390",name:this.name,class:this.getClassMap,type:this.type,disabled:this.disabled||this.loading,"aria-label":this.label||void 0,"aria-disabled":this.disabled||this.loading,onClick:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},b("div",{key:"f9adeb219026e966ce85db7127696e9bc60adb57",class:"bds-button__content"},b("span",{key:"e4dbb94477218eb831f534ffdd7b816532718b22",class:"bds-button__content-icon bds-button__content-icon--start"},b("slot",{key:"a04168309cfd6bba4eb47d4aa8c2e43f44df4d12",name:"icon"})),b("slot",{key:"47094f3e68f8b98fa16c6ab6e75fa2fcaeb0a8cd"}),b("span",{key:"fb548f03228e22abdb1deaf56b60fcc7ed53a9e9",class:"bds-button__content-badge"},b("slot",{key:"7e2d30d8c750f1472825618be9730ddedc974bd1",name:"badge"})),this.disclosure&&b("span",{key:"eb4ba3930fc8a936d6825ce35961a9a9b2866be6",class:"bds-button__content-icon"},b("i",{key:"8bafff19aedeacc4dfae9fd9a5b9006ffb185d85",class:"bds-icon-chevron-down"}))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}}static get style(){return'bds-button{position:relative;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.bds-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid transparent;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;transition:background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;transition:background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, -webkit-box-shadow 0.3s ease;margin:var(--boreal-spacing-2xs) var(--boreal-spacing-3xs);outline:none;font-family:"Inter", sans-serif;font-weight:var(--boreal-typography-font-weight-semibold);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;vertical-align:middle}.bds-button .bds-button__content{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-2xs)}.bds-button--is-loading{pointer-events:none;position:relative;color:transparent !important}.bds-button--is-loading::after{position:absolute;content:" ";-webkit-box-sizing:inherit;box-sizing:inherit;-webkit-animation:rotateSpinner 0.5s linear infinite;animation:rotateSpinner 0.5s linear infinite;border-radius:9999px;display:block;height:1em;width:1em;rotate:45deg;left:calc(50% - 0.5em);top:calc(50% - 0.5em);border:3px solid;border-right-color:transparent;border-top-color:transparent}.bds-button--size-small{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-xs);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs);line-height:var(--boreal-typography-line-height-xs);height:26px}.bds-button--size-small .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-small .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-xs)}.bds-button--size-small .bds-button__content-icon:empty{display:none}.bds-button--size-small .bds-button__content{}.bds-button--size-small .bds-button__content-badge:empty{display:none}.bds-button--size-small .bds-button__content-badge{display:none}.bds-button--size-medium{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-sm);padding:var(--boreal-spacing-2xs) var(--boreal-spacing-1xs);line-height:var(--boreal-typography-line-height-sm);height:32px}.bds-button--size-medium .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-medium .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-sm)}.bds-button--size-medium .bds-button__content-icon:empty{display:none}.bds-button--size-medium .bds-button__content{}.bds-button--size-medium .bds-button__content-badge:empty{display:none}.bds-button--size-large{border-radius:var(--boreal-radius-xs);font-size:var(--boreal-typography-font-size-md);padding:var(--boreal-spacing-xs);line-height:var(--boreal-typography-line-height-md);height:44px}.bds-button--size-large .bds-button__content{padding:var(--boreal-spacing-3xs) var(--boreal-spacing-2xs)}.bds-button--size-large .bds-button__content-icon{display:-ms-flexbox;display:flex;font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-md)}.bds-button--size-large .bds-button__content-icon:empty{display:none}.bds-button--size-large .bds-button__content{}.bds-button--size-large .bds-button__content-badge:empty{display:none}.bds-button.bds-button--var-default.bds-button--default{color:var(--boreal-text-default);background-color:var(--boreal-ui-inverse);border-color:transparent}.bds-button.bds-button--var-default.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--default:active,.bds-button.bds-button--var-default.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-default.bds-button--primary{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--primary:hover{background-color:var(--boreal-ui-primary-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--primary:focus{background-color:var(--boreal-ui-primary-base);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--primary:active,.bds-button.bds-button--var-default.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-dark);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-primary-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--success{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--success:hover{background-color:var(--boreal-ui-success-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--success:focus{background-color:var(--boreal-ui-success-base);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--success:active,.bds-button.bds-button--var-default.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-dark);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-success-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-default.bds-button--error{color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-base);border-color:transparent}.bds-button.bds-button--var-default.bds-button--error:hover{background-color:var(--boreal-ui-danger-dark);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-default.bds-button--error:focus{background-color:var(--boreal-ui-danger-base);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--error:active,.bds-button.bds-button--var-default.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-dark);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-inverse);background-color:var(--boreal-ui-danger-light);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-default.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-inverse);border-bottom-color:var(--boreal-text-inverse)}.bds-button.bds-button--var-outline{background-color:transparent}.bds-button.bds-button--var-outline.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:var(--boreal-stroke-default-light)}.bds-button.bds-button--var-outline.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--default:active,.bds-button.bds-button--var-outline.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:var(--boreal-stroke-default-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-outline.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:var(--boreal-ui-primary-base)}.bds-button.bds-button--var-outline.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--primary:active,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:var(--boreal-stroke-primary-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-outline.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:var(--boreal-stroke-success-base)}.bds-button.bds-button--var-outline.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--success:active,.bds-button.bds-button--var-outline.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:var(--boreal-stroke-success-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-outline.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:var(--boreal-stroke-danger-base)}.bds-button.bds-button--var-outline.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-outline.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--error:active,.bds-button.bds-button--var-outline.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:var(--boreal-stroke-danger-light);-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-outline.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}.bds-button.bds-button--var-plain{background-color:transparent}.bds-button.bds-button--var-plain.bds-button--default{color:var(--boreal-text-default);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--default:hover{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--default:focus{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--default:active,.bds-button.bds-button--var-plain.bds-button--default.bds-button--state-active{background-color:var(--boreal-ui-default-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-disabled);background-color:var(--boreal-ui-inverse);border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--default.bds-button--is-loading::after{border-left-color:var(--boreal-text-disabled);border-bottom-color:var(--boreal-text-disabled)}.bds-button.bds-button--var-plain.bds-button--primary{color:var(--boreal-text-primary-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--primary:hover{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--primary:focus{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--primary:active,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--state-active{background-color:var(--boreal-ui-primary-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-primary-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--primary.bds-button--is-loading::after{border-left-color:var(--boreal-text-primary-light);border-bottom-color:var(--boreal-text-primary-light)}.bds-button.bds-button--var-plain.bds-button--success{color:var(--boreal-text-success-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--success:hover{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--success:focus{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--success:active,.bds-button.bds-button--var-plain.bds-button--success.bds-button--state-active{background-color:var(--boreal-ui-success-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-success-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--success.bds-button--is-loading::after{border-left-color:var(--boreal-text-success-light);border-bottom-color:var(--boreal-text-success-light)}.bds-button.bds-button--var-plain.bds-button--error{color:var(--boreal-text-danger-base);background-color:transparent;border-color:transparent}.bds-button.bds-button--var-plain.bds-button--error:hover{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15);box-shadow:0 1px 2px 0 rgba(19, 19, 22, 0.15)}.bds-button.bds-button--var-plain.bds-button--error:focus{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus);box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus)}.bds-button.bds-button--var-plain.bds-button--error:active,.bds-button.bds-button--var-plain.bds-button--error.bds-button--state-active{background-color:var(--boreal-ui-danger-lighter);-webkit-box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset;box-shadow:0px 0px 0px 1px var(--boreal-ui-inverse), 0px 0px 0px 3px var(--boreal-stroke-focus), 0 1px 2px 0 rgba(19, 19, 22, 0.15) inset}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-disabled,.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading{cursor:not-allowed;color:var(--boreal-text-danger-light);background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.bds-button.bds-button--var-plain.bds-button--error.bds-button--is-loading::after{border-left-color:var(--boreal-text-danger-light);border-bottom-color:var(--boreal-text-danger-light)}@-webkit-keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotateSpinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}'}},[324,"bds-button",{label:[1],disabled:[4],name:[1],type:[1],color:[1],variant:[1],size:[1],loading:[4],disclosure:[4],currentState:[32]},void 0,{type:[{checkPropValues:0}],color:[{checkPropValues:0}],variant:[{checkPropValues:0}],size:[{checkPropValues:0}]}]),p=l,x=function(){"undefined"!=typeof customElements&&["bds-button"].forEach((o=>{"bds-button"===o&&(customElements.get(e(o))||customElements.define(e(o),l))}))};export{p as BdsButton,x as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as a,a as r,t as i}from"./index.js";import{
|
|
1
|
+
import{p as t,H as e,h as a,a as r,t as i}from"./index.js";import{C as o}from"./p-DQR-jjOl.js";import{i as l}from"./p-Ba6iHqJA.js";const s="md",h={link:{states:[o.DISABLED],size:["sm",s]},label:{states:[o.DISABLED],isRequired:!0,canUseTooltip:!0},heading:{canUseTooltip:!0},subheading:{canUseTooltip:!0},helper:{states:[o.ERROR]},display:{size:["xs","sm",s,"lg","xl"]}},p=(t,e)=>({a:{href:t.state!==o.DISABLED?t.sanitizedHref:null,target:t.target,download:t.isDownloadable?t.filename:null,rel:"_blank"===t.target?"noopener noreferrer":void 0},label:{htmlFor:t.htmlFor}}[e]||{}),y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.inheritedAttributes={},this.variant="display",this.size=s,this.state=o.DEFAULT,this.customClass="",this.element="p",this.align="start",this.ellipsis=!1,this.maxLines=1,this.tooltipText="",this.isRequired=!1,this.htmlFor=void 0,this.href=null,this.target=null,this.isDownloadable=!1,this.filename="download",this.sanitizedHref=""}async updateSanitizedHref(){if("a"===this.getTagName&&null!==this.href){const{sanitizeUrl:t}=await import("./p-noyWJ11s.js").then((function(t){return t.i}));this.sanitizedHref=t(this.href)}else this.sanitizedHref=""}async componentWillLoad(){"a"===this.getTagName&&null!==this.href&&await this.updateSanitizedHref(),this.inheritedAttributes={...l(this.el)}}get getTagName(){return"link"===this.variant?"a":this.element.toLowerCase()}getVariantConfig(){return h[this.variant]??{}}getAccessibilityTags(){const{isRequired:t=null}=this.getVariantConfig();return{"aria-required":this.isRequired&&t,"aria-disabled":this.state===o.DISABLED&&["a","label"].includes(this.getTagName)}}getVariantStateStyles(){const t=this.getVariantConfig();return{["bds-typography--"+this.variant]:!0,["bds-typography--align-"+this.align]:!0,["bds-typography--"+this.state]:!(!t?.states||!t?.states.includes(this.state)),["bds-typography--size-"+this.size]:!(!t?.size||!t?.size.includes(this.size)),"bds-typography--required":!(!t?.isRequired||!this.isRequired),"bds-typography--ellipsis":this.ellipsis&&this.maxLines<=1,"bds-typography--ellipsis-multiline":this.ellipsis&&this.maxLines>1,[this.customClass]:""!==this.customClass}}render(){const t=this.getTagName,e={...p(this,t),...this.inheritedAttributes,...this.getAccessibilityTags()},i=this.getVariantStateStyles(),{canUseTooltip:o=null,isRequired:l=null}=this.getVariantConfig();return a(r,{key:"80c41f5a33f3089005b9cdf2c7db51e07272b5df",class:"bds-typography"},a(t,{key:"623e0a57bf2341ecaeba7e670d01a06f891f4423",class:i,style:{webkitLineClamp:this.maxLines},...e},a("slot",{key:"fa7fa6e7f6cbe6133a1c52bf2f219b2927847a88"}),this.isRequired&&l&&a("em",{key:"aa339d8fbf758491db17ac9c471327a0466bf3dc",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&o&&a("em",{key:"98a6c58192b585fbbe01a93c031e9ae3c20cf3ca",class:"bds-typography__info-icon bds-icon-info-circle"})))}get el(){return this}static get watchers(){return{href:[{updateSanitizedHref:0}]}}static get style(){return".bds-typography{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}"}},[260,"bds-typography",{variant:[513],size:[513],state:[513],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],isRequired:[516,"is-required"],htmlFor:[1,"html-for"],href:[1],target:[1],isDownloadable:[4,"is-downloadable"],filename:[1],sanitizedHref:[32]},void 0,{href:[{updateSanitizedHref:0}]}]),n=y,g=function(){"undefined"!=typeof customElements&&["bds-typography"].forEach((t=>{"bds-typography"===t&&(customElements.get(i(t))||customElements.define(i(t),y))}))};export{n as BdsTypography,g as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>e in t,o=(t,e)=>(0,console.error)(t,e),l=new Map,s="http://www.w3.org/1999/xlink",i="undefined"!=typeof window?window:{},r=i.HTMLElement||class{},c={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=(()=>{try{return!!i.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),u=!!f&&(()=>!!i.document&&Object.getOwnPropertyDescriptor(i.document.adoptedStyleSheets,"length").writable)(),a=!1,d=[],h=[],p=(t,e)=>n=>{t.push(n),a||(a=!0,e&&4&c.i?m(v):c.raf(v))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},v=()=>{b(d),b(h),(a=d.length>0)&&c.raf(v)},m=t=>Promise.resolve(void 0).then(t),y=p(h,!0),$=t=>{const e=new URL(t,c.u);return e.origin!==i.location.origin?e.href:e.pathname},g=t=>c.u=t,j=t=>{const e=z(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&w(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!N(t,k(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&z(t,"childNodes").length&&j(t)}},O=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function w(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||k(o)===n)&&(s.push(o),void 0!==n))return s;s=[...s,...w(o.childNodes,e,n)]}return s}var N=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)k(l)!==e||!n&&l["s-sr"]||o.push(l);return o},S=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,C=(t,e,n)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const l=e["s-cr"].parentNode;z(l,n?"prepend":"appendChild").call(l,o),t["s-ol"]=o,t["s-sh"]=e["s-hn"]},k=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function x(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function E(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=k(t)||"";return{slotNode:w(z(e,"childNodes"),e.tagName,o)[0],slotName:o}}var _=t=>{if(t.__cloneNode)return;const e=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const n=e.call(this,!1);if(t){let t,e,o=0;const l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],s=this.__childNodes||this.childNodes;for(;o<s.length;o++)t=s[o]["s-nr"],e=l.every((t=>!s[o][t])),t&&(n.__appendChild?n.__appendChild(t.cloneNode(!0)):n.appendChild(t.cloneNode(!0))),e&&n.appendChild(s[o].cloneNode(!0))}return n}},A=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=E(t,this);if(n){C(t,n);const o=N(n,e),l=o[o.length-1],s=z(l,"parentNode"),i=z(s,"insertBefore")(t,l.nextSibling);return x(n),j(this),i}return this.__appendChild(t)})},M=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&w(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void j(this)):this.__removeChild(t)})},R=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=k(e))||"",o=w(z(this,"childNodes"),this.tagName,n)[0];if(o){C(e,o,!0);const t=N(o,n)[0],l=z(t,"parentNode"),s=z(l,"insertBefore")(e,z(t,"nextSibling"));return x(o),s}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},F=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},L=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let l;if(o.innerHTML=n,"afterbegin"===t)for(;l=o.firstChild;)this.prepend(l);else if("beforeend"===t)for(;l=o.firstChild;)this.append(l)}},T=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},B=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=E(t,this),l=this.__childNodes?this.childNodes:O(this.childNodes);if(o){let s=!1;if(l.forEach((l=>{if(l!==e&&null!==e);else{if(s=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){C(t,o);const n=z(e,"parentNode");z(n,"insertBefore")(t,e),x(o)}}})),s)return t}const s=null==e?void 0:e.__parentNode;return s&&!this.isSameNode(s)?this.appendChild(t):this.__insertBefore(t,e)})},D=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},P=t=>{q("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:O(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:O(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},U=t=>{class e extends Array{item(t){return this[t]}}q("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),q("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),q("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),q("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...O(this.__childNodes)),t}})},W=t=>{t&&!t.__parentNode&&(q("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},H=["children","nextElementSibling","previousElementSibling"],V=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function q(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;H.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):V.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function z(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var Y,I,Z=new WeakMap,G=t=>"sc-"+t.h,J=t=>"object"==(t=typeof t)||"function"===t,K=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!J(o))&&(o+=""),i&&r?c[c.length-1].p+=o:c.push(i?Q(null,o):o),r=i)};if(f(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,tt);const u=Q(t,null);return u.v=e,c.length>0&&(u.m=c),u.$=l,u.j=s,u},Q=(t,e)=>({i:0,O:t,p:null!=e?e:null,N:null,m:null,v:null,$:null,j:null}),X={},tt={forEach:(t,e)=>t.map(et).forEach(e),map:(t,e)=>t.map(et).map(e).map(nt)},et=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.p}),nt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),K(t.vtag,e,...t.vchildren||[])}const e=Q(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},ot=(t,e)=>null==t||J(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,lt=(t,e)=>{const n=t;return{emit:t=>st(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},st=(t,e,n)=>{const o=c.ce(e,n);return t.dispatchEvent(o),o},it=(t,o,l,r,f,u)=>{if(l===r)return;let a=n(t,o),d=o.toLowerCase();if("class"===o){const e=t.classList,n=ct(l);let o=ct(r);e.remove(...n.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!n.includes(t))))}else if("style"===o){for(const e in l)r&&null!=r[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in r)l&&r[e]===l[e]||(e.includes("-")?t.style.setProperty(e,r[e]):t.style[e]=r[e])}else if("key"===o);else if("ref"===o)r&&_t(r,t);else if(t.__lookupSetter__(o)||"o"!==o[0]||"n"!==o[1]){if("a"===o[0]&&o.startsWith("attr:")){const n=o.slice(5);let l;{const o=e(t);if(o&&o.o&&o.o.t){const t=o.o.t[n];t&&t[1]&&(l=t[1])}}return l||(l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==r||!1===r?!1===r&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===r?"":r))}if("p"===o[0]&&o.startsWith("prop:")){const e=o.slice(5);try{t[e]=r}catch(t){}return}{const e=J(r);if(a||e&&null!==r)try{if(t.tagName.includes("-"))t[o]!==r&&(t[o]=r);else{const e=null==r?"":r;"list"===o?a=!1:null!=l&&t[o]===e||("function"==typeof t.__lookupSetter__(o)?t[o]=e:t.setAttribute(o,e))}}catch(t){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(o=d,n=!0),null==r||!1===r?!1===r&&""!==t.getAttribute(o)||(n?t.removeAttributeNS(s,o):t.removeAttribute(o)):(!a||4&u||f)&&!e&&1===t.nodeType&&(r=!0===r?"":r,n?t.setAttributeNS(s,o,r):t.setAttribute(o,r))}}else if(o="-"===o[2]?o.slice(3):n(i,d)?d.slice(2):d[2]+o.slice(3),l||r){const e=o.endsWith(ft);o=o.replace(ut,""),l&&c.rel(t,o,l,e),r&&c.ael(t,o,r,e)}},rt=/\s/,ct=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(rt):[]),ft="Capture",ut=RegExp(ft+"$"),at=(t,e,n)=>{const o=11===e.N.nodeType&&e.N.host?e.N.host:e.N,l=t&&t.v||{},s=e.v||{};for(const t of dt(Object.keys(l)))t in s||it(o,t,l[t],void 0,n,e.i);for(const t of dt(Object.keys(s)))it(o,t,l[t],s[t],n,e.i)};function dt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var ht=!1,pt=!1,bt=!1,vt=!1,mt=[],yt=[],$t=(t,e,n)=>{var o;const l=e.m[n];let s,r,c,f=0;if(ht||(bt=!0,"slot"===l.O&&(l.i|=l.m?2:1)),null!=l.p)s=l.N=i.document.createTextNode(l.p);else if(1&l.i)s=l.N=i.document.createTextNode(""),at(null,l,vt);else{if(!i.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.N=i.document.createElement(!ht&&2&l.i?"slot-fb":l.O),at(null,l,vt),l.m){const e="template"===l.O?s.content:s;for(f=0;f<l.m.length;++f)r=$t(t,l,f),r&&e.appendChild(r)}}return s["s-hn"]=I,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=Y,s["s-sn"]=l.j||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:O(l.childNodes)).forEach((t=>{o===k(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),c=t&&t.m&&t.m[n],c&&c.O===l.O&&t.N&>(t.N)),s},gt=t=>{c.i|=1;const e=t.closest(I.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(At(e,t,null!=n?n:null),t["s-sh"]=void 0,bt=!0)}c.i&=-2},jt=(t,e)=>{c.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===I&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==I&&o["s-ol"]&&(At(St(o).parentNode,o,St(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,bt=!0),e&&jt(o,e)}c.i&=-2},Ot=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===n.O&&(r=r.content);l<=s;++l)o[l]&&(i=$t(null,n,l),i&&(o[l].N=i,At(r,i,St(e))))},wt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.N;Et(e),t&&(pt=!0,t["s-ol"]?t["s-ol"].remove():jt(t,!0),t.remove())}}},Nt=(t,e,n=!1)=>t.O===e.O&&("slot"===t.O?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),St=t=>t&&t["s-ol"]||t,Ct=(t,e,n=!1)=>{const o=e.N=t.N,l=t.m,s=e.m,i=e.p;let r;null==i?("slot"!==e.O||ht||t.j!==e.j&&(e.N["s-sn"]=e.j||"",gt(e.N.parentElement)),at(t,e,vt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,b=o[0],v=o[p];const m="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==b)b=o[++c];else if(null==v)v=o[--p];else if(Nt(d,b,l))Ct(d,b,l),d=e[++r],b=o[++c];else if(Nt(h,v,l))Ct(h,v,l),h=e[--a],v=o[--p];else if(Nt(d,v,l))"slot"!==d.O&&"slot"!==v.O||jt(d.N.parentNode,!1),Ct(d,v,l),At(m,d.N,h.N.nextSibling),d=e[++r],v=o[--p];else if(Nt(h,b,l))"slot"!==d.O&&"slot"!==v.O||jt(h.N.parentNode,!1),Ct(h,b,l),At(m,h.N,d.N),h=e[--a],b=o[++c];else{for(f=-1,u=r;u<=a;++u)if(e[u]&&null!==e[u].$&&e[u].$===b.$){f=u;break}f>=0?(i=e[f],i.O!==b.O?s=$t(e&&e[c],n,f):(Ct(i,b,l),e[f]=void 0,s=i.N),b=o[++c]):(s=$t(e&&e[c],n,c),b=o[++c]),s&&At(St(d.N).parentNode,s,St(d.N))}r>a?Ot(t,null==o[p+1]?null:o[p+1].N,n,o,c,p):c>p&&wt(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.p&&(o.textContent=""),Ot(o,null,e,s,0,s.length-1)):!n&&null!==l&&wt(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.p!==i&&(o.data=i)},kt=[],xt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(S(e,l)){let n=kt.find((t=>t.S===e));pt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.S["s-sh"]=t["s-hn"],n.C=t):(e["s-sh"]=t["s-hn"],kt.push({C:t,S:e})),e["s-sr"]&&kt.map((t=>{S(t.S,e["s-sn"])&&(n=kt.find((t=>t.S===e)),n&&!t.C&&(t.C=n.C))}))}else kt.some((t=>t.S===e))||kt.push({S:e})}1===t.nodeType&&xt(t)}},Et=t=>{t.v&&t.v.ref&&mt.push((()=>t.v.ref(null))),t.m&&t.m.map(Et)},_t=(t,e)=>{yt.push((()=>t(e)))},At=(t,e,n,o)=>{if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&W(e),t.insertBefore(e,n);const{slotNode:l}=E(e);return l&&!o&&x(l),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Mt=(t,e,n=!1)=>{var o,l,s,r,f;const u=t.$hostElement$,a=t.o,d=t.k||Q(null,null),h=(t=>t&&t.O===X)(e)?e:K(null,null,e);if(I=u.tagName,a._&&(h.v=h.v||{},a._.forEach((([t,e])=>{h.v[e]=u[t]}))),n&&h.v)for(const t of Object.keys(h.v))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(h.v[t]=u[t]);if(h.O=null,h.i|=4,t.k=h,h.N=d.N=u,ht=false,Y=u["s-cr"],pt=!1,Ct(d,h,n),c.i|=1,bt){xt(h.N);for(const t of kt){const e=t.S;if(!e["s-ol"]&&i.document){const t=i.document.createTextNode("");t["s-nr"]=e,At(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of kt){const e=t.S,c=t.C;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(o=e.hidden)&&o),c){const t=c.parentNode;let o=c.nextSibling;if(o&&1===o.nodeType){let n=null==(l=e["s-ol"])?void 0:l.previousSibling;for(;n;){let l=null!=(s=n["s-nr"])?s:null;if(l&&l["s-sn"]===e["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===e||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}n=n.previousSibling}}if((!o&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==o)&&e!==o){if(At(t,e,o,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=i.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,At(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(r=e["s-ih"])&&r)}e&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===e.nodeType&&(e.hidden=!0)}}if(pt&&j(h.N),c.i&=-2,kt.length=0,!ht&&!(1&a.i)&&u["s-cr"]){const t=h.N.__childNodes||h.N.childNodes;for(const e of t)if(e["s-hn"]!==I&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(f=e.hidden)&&f),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=i.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],At(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}Y=void 0,mt.forEach((t=>t())),mt.length=0,yt.forEach((t=>t())),yt.length=0},Rt=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Ft=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Rt(t,t.M);const n=()=>Lt(t,e);if(!e)return y(n);queueMicrotask((()=>{n()}))},Lt=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw 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;return l=Ht(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=Tt(l,(()=>Ht(o,"componentWillRender",void 0,n))),Tt(l,(()=>Dt(t,o,e)))},Tt=(t,e)=>Bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Dt=async(t,e,n)=>{var o;const s=t.$hostElement$,r=s["s-rc"];n&&(t=>{const e=t.o;((t,e)=>{var n,o,s;const r=G(e),a=l.get(r);if(!i.document)return r;if(t=11===t.nodeType?t:i.document,a)if("string"==typeof a){let l,s=Z.get(t=t.head||t);if(s||Z.set(t,s=new Set),!s.has(r)){l=i.document.createElement("style"),l.textContent=a;const d=null!=(n=c.R)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=i.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&l.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(a),u?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=a+e.textContent:t.prepend(l)}else t.append(l);1&e.i&&t.insertBefore(l,null),4&e.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(r)}}else{let e=Z.get(t);if(e||Z.set(t,e=new Set),!e.has(r)){const n=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let o;if(a.constructor===n.CSSStyleSheet)o=a;else{o=new n.CSSStyleSheet;for(let t=0;t<a.cssRules.length;t++)o.insertRule(a.cssRules[t].cssText,t)}u?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(r)}}})(t.$hostElement$.getRootNode(),e)})(t);Pt(t,e,s,n),r&&(r.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Ut(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},Pt=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,Mt(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Ut=t=>{const e=t.$hostElement$,n=e,o=t.M;Ht(n,"componentDidRender",void 0,e),64&t.i?Ht(n,"componentDidUpdate",void 0,e):(t.i|=64,Vt(e),Ht(n,"componentDidLoad",void 0,e),t.F(e),o||Wt()),t.A&&(t.A(),t.A=void 0),512&t.i&&m((()=>Ft(t,!1))),t.i&=-517},Wt=()=>{m((()=>st(i,"appload",{detail:{namespace:"boreal-web-components"}})))},Ht=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},Vt=t=>t.classList.add("hydrated"),qt=(t,n,l,s)=>{const i=e(t);if(!i)return;const r=t,c=i.l.get(n),f=i.i,u=r;if(!((l=ot(l,s.t[n][0]))===c||Number.isNaN(c)&&Number.isNaN(l))){if(i.l.set(n,l),s.L){const t=s.L[n];t&&t.map((t=>{try{const[[e,o]]=Object.entries(t);(128&f||1&o)&&(u?u[e](l,c,n):i.T.push((()=>{i.B[e](l,c,n)})))}catch(t){o(t,r)}}))}if(2&f){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(l,c,n)&&!(16&f))return;16&f||Ft(i,!1)}}},zt=(t,n)=>{var o,l;const s=t.prototype;{t.watchers&&!n.L&&(n.L=t.watchers),t.deserializers&&!n.D&&(n.D=t.deserializers),t.serializers&&!n.P&&(n.P=t.serializers);const i=Object.entries(null!=(o=n.t)?o:{});i.map((([t,[o]])=>{if(31&o||32&o){const{get:l,set:i}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(n.t[t][0]|=2048),i&&(n.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return l?l.apply(this):((t,n)=>e(this).l.get(n))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=e(this);if(s){if(i)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),i.call(this,ot(l,o)),void qt(this,t,l=32&o?this[t]:s.$hostElement$[t],n);qt(this,t,l,n)}}})}}));{const o=new Map;s.attributeChangedCallback=function(t,l,r){c.jmp((()=>{var c;const f=o.get(t),u=e(this);if(this.hasOwnProperty(f),s.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==r)return;if(null==f){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&r!==l){const o=this,s=null==(c=n.L)?void 0:c[t];null==s||s.forEach((n=>{const[[s,i]]=Object.entries(n);null!=o[s]&&(128&e||1&i)&&o[s].call(o,r,l,t)}))}return}const a=i.find((([t])=>t===f));a&&4&a[1][0]&&(r=null!==r&&"false"!==r);const d=Object.getOwnPropertyDescriptor(s,f);r==this[f]||d.get&&!d.set||(this[f]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n.L)?l:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n._)||l.push([t,s])),s}))]))}}return t},Yt=(n,s)=>{const r={i:s[0],h:s[1]};try{r.t=s[2],r.L=n.L,r.D=n.D,r.P=n.P,r._=[],!(1&r.i)&&256&r.i?(t=>{_(t),A(t),F(t),R(t),D(t),L(t),T(t),B(t),P(t),U(t),M(t)})(n.prototype):_(n.prototype);const u=n.prototype.connectedCallback,a=n.prototype.disconnectedCallback;return Object.assign(n.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,n)=>{const o={i:0,$hostElement$:e,o:n,l:new Map,U:new Map};o.W=new Promise((t=>o.F=t)),e["s-p"]=[],e["s-rc"]=[];const l=o;e.__stencil__getHostRef=()=>l,512&n.i&&t(e,o)})(this,r)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!e(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&c.i)){const n=e(t);if(!n)return;const s=n.o,r=()=>{};if(1&n.i)(null==n?void 0:n.B)||(null==n?void 0:n.W)&&n.W.then((()=>{}));else{n.i|=1,12&s.i&&(t=>{if(!i.document)return;const e=t["s-cr"]=i.document.createComment("");e["s-cn"]=!0,At(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Rt(n,n.M=e);break}}s.t&&Object.entries(s.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;try{if(!(32&e.i)&&(e.i|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=G(n);if(!l.has(e)){const o=()=>{};((t,e,n)=>{let o=l.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,l.set(t,o)})(e,t,!!(1&n.i)),o()}}const o=e.M,i=()=>Ft(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()}catch(n){o(n,t),e.A&&(e.A(),e.A=void 0),e.F&&e.F(t)}})(t,n,s)}r()}})(this),u&&u.call(this)},disconnectedCallback(){(async t=>{Z.has(t)&&Z.delete(t),t.shadowRoot&&Z.has(t.shadowRoot)&&Z.delete(t.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(n,"is",{value:r.h,configurable:!0}),zt(n,r)}catch(t){return o(t),n}},It=t=>c.R=t,Zt=t=>Object.assign(c,t);function Gt(t,e){Mt({o:{i:0,h:e.tagName},$hostElement$:e},t)}function Jt(t){return t}export{r as H,X as a,lt as c,$ as getAssetPath,K as h,Yt as p,Gt as render,g as setAssetPath,It as setNonce,Zt as setPlatformOptions,Jt as t}
|
|
1
|
+
var t=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>e in t,o=(t,e)=>(0,console.error)(t,e),l=new Map,s="http://www.w3.org/1999/xlink",i=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],r="undefined"!=typeof window?window:{},c=r.HTMLElement||class{},f={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},u=(()=>{try{return!!r.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),a=!!u&&(()=>!!r.document&&Object.getOwnPropertyDescriptor(r.document.adoptedStyleSheets,"length").writable)(),d=!1,h=[],p=[],b=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&f.i?y(m):f.raf(m))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},m=()=>{v(h),v(p),(d=h.length>0)&&f.raf(m)},y=t=>Promise.resolve(void 0).then(t),g=b(p,!0),$=t=>{const e=new URL(t,f.u);return e.origin!==r.location.origin?e.href:e.pathname},j=t=>f.u=t,O=t=>{const e=Y(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&N(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!S(t,x(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Y(t,"childNodes").length&&O(t)}},w=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function N(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||x(o)===n)&&(s.push(o),void 0!==n))return s;s=[...s,...N(o.childNodes,e,n)]}return s}var S=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)x(l)!==e||!n&&l["s-sr"]||o.push(l);return o},C=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,k=(t,e,n)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const o=document.createTextNode("");if(o["s-nr"]=t,!e["s-cr"]||!e["s-cr"].parentNode)return;const l=e["s-cr"].parentNode;Y(l,n?"prepend":"appendChild").call(l,o),t["s-ol"]=o,t["s-sh"]=e["s-hn"]},x=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function E(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function _(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=x(t)||"";return{slotNode:N(Y(e,"childNodes"),e.tagName,o)[0],slotName:o}}var A=t=>{if(t.__cloneNode)return;const e=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const n=e.call(this,!1);if(t){let t,e,o=0;const l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],s=this.__childNodes||this.childNodes;for(;o<s.length;o++)t=s[o]["s-nr"],e=l.every((t=>!s[o][t])),t&&(n.__appendChild?n.__appendChild(t.cloneNode(!0)):n.appendChild(t.cloneNode(!0))),e&&n.appendChild(s[o].cloneNode(!0))}return n}},M=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=_(t,this);if(n){k(t,n);const o=S(n,e),l=o[o.length-1],s=Y(l,"parentNode"),i=Y(s,"insertBefore")(t,l.nextSibling);return E(n),O(this),i}return this.__appendChild(t)})},R=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&N(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void O(this)):this.__removeChild(t)})},F=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=x(e))||"",o=N(Y(this,"childNodes"),this.tagName,n)[0];if(o){k(e,o,!0);const t=S(o,n)[0],l=Y(t,"parentNode"),s=Y(l,"insertBefore")(e,Y(t,"nextSibling"));return E(o),s}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},L=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},T=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let l;if(o.innerHTML=n,"afterbegin"===t)for(;l=o.firstChild;)this.prepend(l);else if("beforeend"===t)for(;l=o.firstChild;)this.append(l)}},B=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},D=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=_(t,this),l=this.__childNodes?this.childNodes:w(this.childNodes);if(o){let s=!1;if(l.forEach((l=>{if(l!==e&&null!==e);else{if(s=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){k(t,o);const n=Y(e,"parentNode");Y(n,"insertBefore")(t,e),E(o)}}})),s)return t}const s=null==e?void 0:e.__parentNode;return s&&!this.isSameNode(s)?this.appendChild(t):this.__insertBefore(t,e)})},P=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},U=t=>{z("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:w(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},W=t=>{class e extends Array{item(t){return this[t]}}z("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),z("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),z("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),z("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...w(this.__childNodes)),t}})},H=t=>{t&&!t.__parentNode&&(z("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},V=["children","nextElementSibling","previousElementSibling"],q=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function z(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;V.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):q.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Y(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var I,Z,G=new WeakMap,J=t=>"sc-"+t.h,K=t=>"object"==(t=typeof t)||"function"===t,Q=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],f=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?f(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!K(o))&&(o+=""),i&&r?c[c.length-1].p+=o:c.push(i?X(null,o):o),r=i)};if(f(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,et);const u=X(t,null);return u.v=e,c.length>0&&(u.m=c),u.$=l,u.j=s,u},X=(t,e)=>({i:0,O:t,p:null!=e?e:null,N:null,m:null,v:null,$:null,j:null}),tt={},et={forEach:(t,e)=>t.map(nt).forEach(e),map:(t,e)=>t.map(nt).map(e).map(ot)},nt=t=>({vattrs:t.v,vchildren:t.m,vkey:t.$,vname:t.j,vtag:t.O,vtext:t.p}),ot=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Q(t.vtag,e,...t.vchildren||[])}const e=X(t.vtag,t.vtext);return e.v=t.vattrs,e.m=t.vchildren,e.$=t.vkey,e.j=t.vname,e},lt=(t,e,n)=>null==t||K(t)?t:4&e?(n&&"string"==typeof t||"false"!==t)&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,st=(t,e)=>{const n=t;return{emit:t=>it(n,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},it=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},rt=(t,o,l,i,c,u)=>{if(l===i)return;let a=n(t,o),d=o.toLowerCase();if("class"===o){const e=t.classList,n=ft(l);let o=ft(i);e.remove(...n.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!n.includes(t))))}else if("style"===o){for(const e in l)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)l&&i[e]===l[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===o);else if("ref"===o)i&&At(i,t);else if(t.__lookupSetter__(o)||"o"!==o[0]||"n"!==o[1]){if("a"===o[0]&&o.startsWith("attr:")){const n=o.slice(5);let l;{const o=e(t);if(o&&o.o&&o.o.t){const t=o.o.t[n];t&&t[1]&&(l=t[1])}}return l||(l=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==i||!1===i?!1===i&&""!==t.getAttribute(l)||t.removeAttribute(l):t.setAttribute(l,!0===i?"":i))}if("p"===o[0]&&o.startsWith("prop:")){const e=o.slice(5);try{t[e]=i}catch(t){}return}{const e=K(i);if(a||e&&null!==i)try{if(t.tagName.includes("-"))t[o]!==i&&(t[o]=i);else{const e=null==i?"":i;"list"===o?a=!1:null!=l&&t[o]===e||("function"==typeof t.__lookupSetter__(o)?t[o]=e:t.setAttribute(o,e))}}catch(t){}let n=!1;d!==(d=d.replace(/^xlink\:?/,""))&&(o=d,n=!0),null==i||!1===i?!1===i&&""!==t.getAttribute(o)||(n?t.removeAttributeNS(s,o):t.removeAttribute(o)):(!a||4&u||c)&&!e&&1===t.nodeType&&(i=!0===i?"":i,n?t.setAttributeNS(s,o,i):t.setAttribute(o,i))}}else if(o="-"===o[2]?o.slice(3):n(r,d)?d.slice(2):d[2]+o.slice(3),l||i){const e=o.endsWith(ut);o=o.replace(at,""),l&&f.rel(t,o,l,e),i&&f.ael(t,o,i,e)}},ct=/\s/,ft=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(ct):[]),ut="Capture",at=RegExp(ut+"$"),dt=(t,e,n)=>{const o=11===e.N.nodeType&&e.N.host?e.N.host:e.N,l=t&&t.v||{},s=e.v||{};for(const t of ht(Object.keys(l)))t in s||rt(o,t,l[t],void 0,n,e.i);for(const t of ht(Object.keys(s)))rt(o,t,l[t],s[t],n,e.i)};function ht(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var pt=!1,bt=!1,vt=!1,mt=!1,yt=[],gt=[],$t=(t,e,n)=>{var o;const l=e.m[n];let s,i,c,f=0;if(pt||(vt=!0,"slot"===l.O&&(l.i|=l.m?2:1)),null!=l.p)s=l.N=r.document.createTextNode(l.p);else if(1&l.i)s=l.N=r.document.createTextNode(""),dt(null,l,mt);else{if(!r.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=l.N=r.document.createElement(!pt&&2&l.i?"slot-fb":l.O),dt(null,l,mt),l.m){const e="template"===l.O?s.content:s;for(f=0;f<l.m.length;++f)i=$t(t,l,f),i&&e.appendChild(i)}}return s["s-hn"]=Z,3&l.i&&(s["s-sr"]=!0,s["s-cr"]=I,s["s-sn"]=l.j||"",s["s-rf"]=null==(o=l.v)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:w(l.childNodes)).forEach((t=>{o===x(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),c=t&&t.m&&t.m[n],c&&c.O===l.O&&t.N&&jt(t.N)),s},jt=t=>{f.i|=1;const e=t.closest(Z.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(Mt(e,t,null!=n?n:null),t["s-sh"]=void 0,vt=!0)}f.i&=-2},Ot=(t,e)=>{f.i|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===Z&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==Z&&o["s-ol"]&&(Mt(Ct(o).parentNode,o,Ct(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,vt=!0),e&&Ot(o,e)}f.i&=-2},wt=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for("template"===n.O&&(r=r.content);l<=s;++l)o[l]&&(i=$t(null,n,l),i&&(o[l].N=i,Mt(r,i,Ct(e))))},Nt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.N;_t(e),t&&(bt=!0,t["s-ol"]?t["s-ol"].remove():Ot(t,!0),t.remove())}}},St=(t,e,n=!1)=>t.O===e.O&&("slot"===t.O?t.j===e.j:n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),Ct=t=>t&&t["s-ol"]||t,kt=(t,e,n=!1)=>{const o=e.N=t.N,l=t.m,s=e.m,i=e.p;let r;null==i?("slot"!==e.O||pt||t.j!==e.j&&(e.N["s-sn"]=e.j||"",jt(e.N.parentElement)),dt(t,e,mt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,f=0,u=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,b=o[0],v=o[p];const m="template"===n.O?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==b)b=o[++c];else if(null==v)v=o[--p];else if(St(d,b,l))kt(d,b,l),d=e[++r],b=o[++c];else if(St(h,v,l))kt(h,v,l),h=e[--a],v=o[--p];else if(St(d,v,l))"slot"!==d.O&&"slot"!==v.O||Ot(d.N.parentNode,!1),kt(d,v,l),Mt(m,d.N,h.N.nextSibling),d=e[++r],v=o[--p];else if(St(h,b,l))"slot"!==d.O&&"slot"!==v.O||Ot(h.N.parentNode,!1),kt(h,b,l),Mt(m,h.N,d.N),h=e[--a],b=o[++c];else{for(f=-1,u=r;u<=a;++u)if(e[u]&&null!==e[u].$&&e[u].$===b.$){f=u;break}f>=0?(i=e[f],i.O!==b.O?s=$t(e&&e[c],n,f):(kt(i,b,l),e[f]=void 0,s=i.N),b=o[++c]):(s=$t(e&&e[c],n,c),b=o[++c]),s&&Mt(Ct(d.N).parentNode,s,Ct(d.N))}r>a?wt(t,null==o[p+1]?null:o[p+1].N,n,o,c,p):c>p&&Nt(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.p&&(o.textContent=""),wt(o,null,e,s,0,s.length-1)):!n&&null!==l&&Nt(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.p!==i&&(o.data=i)},xt=[],Et=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(C(e,l)){let n=xt.find((t=>t.S===e));bt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.S["s-sh"]=t["s-hn"],n.C=t):(e["s-sh"]=t["s-hn"],xt.push({C:t,S:e})),e["s-sr"]&&xt.map((t=>{C(t.S,e["s-sn"])&&(n=xt.find((t=>t.S===e)),n&&!t.C&&(t.C=n.C))}))}else xt.some((t=>t.S===e))||xt.push({S:e})}1===t.nodeType&&Et(t)}},_t=t=>{t.v&&t.v.ref&&yt.push((()=>t.v.ref(null))),t.m&&t.m.map(_t)},At=(t,e)=>{gt.push((()=>t(e)))},Mt=(t,e,n,o)=>{if("string"==typeof e["s-sn"]){11!==t.getRootNode().nodeType&&H(e),t.insertBefore(e,n);const{slotNode:l}=_(e);return l&&!o&&E(l),e}return t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n)},Rt=(t,e,n=!1)=>{var o,l,s,i,c;const u=t.$hostElement$,a=t.o,d=t.k||X(null,null),h=(t=>t&&t.O===tt)(e)?e:Q(null,null,e);if(Z=u.tagName,a._&&(h.v=h.v||{},a._.forEach((([t,e])=>{h.v[e]=u[t]}))),n&&h.v)for(const t of Object.keys(h.v))u.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(h.v[t]=u[t]);if(h.O=null,h.i|=4,t.k=h,h.N=d.N=u,pt=false,I=u["s-cr"],bt=!1,kt(d,h,n),f.i|=1,vt){Et(h.N);for(const t of xt){const e=t.S;if(!e["s-ol"]&&r.document){const t=r.document.createTextNode("");t["s-nr"]=e,Mt(e.parentNode,e["s-ol"]=t,e,n)}}for(const t of xt){const e=t.S,c=t.C;if(1===e.nodeType&&n&&(e["s-ih"]=null!=(o=e.hidden)&&o),c){const t=c.parentNode;let o=c.nextSibling;if(o&&1===o.nodeType){let n=null==(l=e["s-ol"])?void 0:l.previousSibling;for(;n;){let l=null!=(s=n["s-nr"])?s:null;if(l&&l["s-sn"]===e["s-sn"]&&t===(l.__parentNode||l.parentNode)){for(l=l.nextSibling;l===e||(null==l?void 0:l["s-sr"]);)l=null==l?void 0:l.nextSibling;if(!l||!l["s-nr"]){o=l;break}}n=n.previousSibling}}if((!o&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==o)&&e!==o){if(Mt(t,e,o,n),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=r.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(i=e["s-ih"])&&i)}e&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===e.nodeType&&(e.hidden=!0)}}if(bt&&O(h.N),f.i&=-2,xt.length=0,!pt&&!(1&a.i)&&u["s-cr"]){const t=h.N.__childNodes||h.N.childNodes;for(const e of t)if(e["s-hn"]!==Z&&!e["s-sh"])if(n&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=r.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],Mt(e.parentNode,t,e,n),e.parentNode.removeChild(e)}}I=void 0,yt.forEach((t=>t())),yt.length=0,gt.forEach((t=>t())),gt.length=0},Ft=(t,e)=>{if(e&&!t.A&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.A=()=>{e["s-p"].splice(n-1,1),o()})))}},Lt=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);Ft(t,t.M);const n=()=>Tt(t,e);if(!e)return g(n);queueMicrotask((()=>{n()}))},Tt=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw 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;return l=Vt(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=Bt(l,(()=>Vt(o,"componentWillRender",void 0,n))),Bt(l,(()=>Pt(t,o,e)))},Bt=(t,e)=>Dt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Dt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Pt=async(t,e,n)=>{var o;const s=t.$hostElement$,i=s["s-rc"];n&&(t=>{const e=t.o;((t,e)=>{var n,o,s;const i=J(e),c=l.get(i);if(!r.document)return i;if(t=11===t.nodeType?t:r.document,c)if("string"==typeof c){let l,s=G.get(t=t.head||t);if(s||G.set(t,s=new Set),!s.has(i)){l=r.document.createElement("style"),l.textContent=c;const d=null!=(n=f.R)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=r.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&l.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(u){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),a?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=c+e.textContent:t.prepend(l)}else t.append(l);1&e.i&&t.insertBefore(l,null),4&e.i&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(i)}}else{let e=G.get(t);if(e||G.set(t,e=new Set),!e.has(i)){const n=null!=(s=t.defaultView)?s:t.ownerDocument.defaultView;let o;if(c.constructor===n.CSSStyleSheet)o=c;else{o=new n.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)o.insertRule(c.cssRules[t].cssText,t)}a?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}})(t.$hostElement$.getRootNode(),e)})(t);Ut(t,e,s,n),i&&(i.map((t=>t())),s["s-rc"]=void 0);{const e=null!=(o=s["s-p"])?o:[],n=()=>Wt(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},Ut=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,Rt(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Wt=t=>{const e=t.$hostElement$,n=e,o=t.M;Vt(n,"componentDidRender",void 0,e),64&t.i?Vt(n,"componentDidUpdate",void 0,e):(t.i|=64,qt(e),Vt(n,"componentDidLoad",void 0,e),t.F(e),o||Ht()),t.A&&(t.A(),t.A=void 0),512&t.i&&y((()=>Lt(t,!1))),t.i&=-517},Ht=()=>{y((()=>it(r,"appload",{detail:{namespace:"boreal-web-components"}})))},Vt=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},qt=t=>t.classList.add("hydrated"),zt=(t,n,l,s)=>{const i=e(t);if(!i)return;const r=t,c=i.l.get(n),f=i.i,u=r;if(!((l=lt(l,s.t[n][0],!!(64&s.i)))===c||Number.isNaN(c)&&Number.isNaN(l))){if(i.l.set(n,l),s.L){const t=s.L[n];t&&t.map((t=>{try{const[[e,o]]=Object.entries(t);(128&f||1&o)&&(u?u[e](l,c,n):i.T.push((()=>{i.B[e](l,c,n)})))}catch(t){o(t,r)}}))}if(2&f){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(l,c,n)&&!(16&f))return;16&f||Lt(i,!1)}}},Yt=(t,n,o)=>{var l,s;const r=t.prototype;64&n.i&&1&o&&i.forEach((t=>{const n=r[t];Object.defineProperty(r,t,{value(...o){var l;const s=e(this),i=this;i?"function"==typeof n&&n.call(i,...o):null==(l=null==s?void 0:s.D)||l.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})}));{t.watchers&&!n.L&&(n.L=t.watchers),t.deserializers&&!n.P&&(n.P=t.deserializers),t.serializers&&!n.U&&(n.U=t.serializers);const o=Object.entries(null!=(l=n.t)?l:{});o.map((([t,[o]])=>{if(31&o||32&o){const{get:l,set:s}=Object.getOwnPropertyDescriptor(r,t)||{};l&&(n.t[t][0]|=2048),s&&(n.t[t][0]|=4096),Object.defineProperty(r,t,{get(){return l?l.apply(this):((t,n)=>e(this).l.get(n))(0,t)},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(l){const i=e(this);if(i){if(s)return void 0===(32&o?this[t]:i.$hostElement$[t])&&i.l.get(t)&&(l=i.l.get(t)),s.call(this,lt(l,o,!!(64&n.i))),void zt(this,t,l=32&o?this[t]:i.$hostElement$[t],n);zt(this,t,l,n)}}})}}));{const l=new Map;r.attributeChangedCallback=function(t,s,i){f.jmp((()=>{var c;const f=l.get(t),u=e(this);if(this.hasOwnProperty(f),r.hasOwnProperty(f)&&"number"==typeof this[f]&&this[f]==i)return;if(null==f){const e=null==u?void 0:u.i;if(u&&e&&!(8&e)&&i!==s){const o=this,l=null==(c=n.L)?void 0:c[t];null==l||l.forEach((n=>{const[[l,r]]=Object.entries(n);null!=o[l]&&(128&e||1&r)&&o[l].call(o,i,s,t)}))}return}const a=o.find((([t])=>t===f));a&&4&a[1][0]&&(i=null!==i&&"false"!==i);const d=Object.getOwnPropertyDescriptor(r,f);i==this[f]||d.get&&!d.set||(this[f]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.L)?s:{}),...o.filter((([t,e])=>31&e[0])).map((([t,e])=>{var o;const s=e[1]||t;return l.set(s,t),512&e[0]&&(null==(o=n._)||o.push([t,s])),s}))]))}}return t},It=(n,s)=>{const i={i:s[0],h:s[1]};try{i.t=s[2],i.L=n.L,i.P=n.P,i.U=n.U,i._=[],!(1&i.i)&&256&i.i?(t=>{A(t),M(t),L(t),F(t),P(t),T(t),B(t),D(t),U(t),W(t),R(t)})(n.prototype):A(n.prototype);const c=n.prototype.connectedCallback,a=n.prototype.disconnectedCallback;return Object.assign(n.prototype,{__hasHostListenerAttached:!1,__registerHost(){((e,n)=>{const o={i:0,$hostElement$:e,o:n,l:new Map,W:new Map};o.D=new Promise((t=>o.F=t)),e["s-p"]=[],e["s-rc"]=[];const l=o;e.__stencil__getHostRef=()=>l,512&n.i&&t(e,o)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!e(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&f.i)){const n=e(t);if(!n)return;const s=n.o,i=()=>{};if(1&n.i)(null==n?void 0:n.B)||(null==n?void 0:n.D)&&n.D.then((()=>{}));else{n.i|=1,12&s.i&&(t=>{if(!r.document)return;const e=t["s-cr"]=r.document.createComment("");e["s-cn"]=!0,Mt(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){Ft(n,n.M=e);break}}s.t&&Object.entries(s.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;try{if(!(32&e.i)&&(e.i|=32,s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),s&&s.style)){let t;"string"==typeof s.style&&(t=s.style);const e=J(n);if(!l.has(e)){const o=()=>{};((t,e,n)=>{let o=l.get(t);u&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,l.set(t,o)})(e,t,!!(1&n.i)),o()}}const o=e.M,i=()=>Lt(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()}catch(n){o(n,t),e.A&&(e.A(),e.A=void 0),e.F&&e.F(t)}})(t,n,s)}i()}})(this),c&&c.call(this)},disconnectedCallback(){(async t=>{G.has(t)&&G.delete(t),t.shadowRoot&&G.has(t.shadowRoot)&&G.delete(t.shadowRoot)})(this),a&&a.call(this)},__attachShadow(){this.shadowRoot=this}}),Object.defineProperty(n,"is",{value:i.h,configurable:!0}),Yt(n,i,3)}catch(t){return o(t),n}},Zt=t=>f.R=t,Gt=t=>Object.assign(f,t);function Jt(t,e){Rt({o:{i:0,h:e.tagName},$hostElement$:e},t)}function Kt(t){return t}export{c as H,tt as a,st as c,$ as getAssetPath,Q as h,It as p,Jt as render,j as setAssetPath,Zt as setNonce,Gt as setPlatformOptions,Kt as t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],i=i=>((a,i=[])=>{const r={};return i.forEach((i=>{if(a.hasAttribute(i)){const e=a.getAttribute(i);null!==e&&(r[i]=e),a.removeAttribute(i)}})),r})(i,a);export{i}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={DEFAULT:"default",ERROR:"error",DISABLED:"disabled",ACTIVE:"active"},e={INFO:"info"};export{a as C,e as S}
|