@maggioli-design-system/mds-input-range 2.5.4 → 2.6.1
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/dist/cjs/{index-37d5e60f.js → index-1f95f3de.js} +4 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/mds-input-range.cjs.entry.js +4 -3
- package/dist/cjs/mds-input-range.cjs.js +2 -2
- package/dist/collection/components/mds-input-range/mds-input-range.css +38 -22
- package/dist/collection/components/mds-input-range/mds-input-range.js +22 -1
- package/dist/collection/components/mds-input-range/test/mds-input-range.stories.js +1 -1
- package/dist/collection/dictionary/typography.js +5 -1
- package/dist/components/mds-input-range.js +4 -2
- package/dist/documentation.json +59 -5
- package/dist/esm/{index-e9d1fa7e.js → index-a1c32812.js} +4 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mds-input-range.entry.js +4 -3
- package/dist/esm/mds-input-range.js +3 -3
- package/dist/esm-es5/index-a1c32812.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-input-range.entry.js +1 -1
- package/dist/esm-es5/mds-input-range.js +1 -1
- package/dist/mds-input-range/mds-input-range.esm.js +1 -1
- package/dist/mds-input-range/mds-input-range.js +1 -1
- package/dist/mds-input-range/{p-b6d99f83.system.js → p-032aeb78.system.js} +1 -1
- package/dist/mds-input-range/p-805599e2.js +2 -0
- package/dist/mds-input-range/p-ab2218cb.entry.js +1 -0
- package/dist/mds-input-range/p-b15e7f8e.system.entry.js +1 -0
- package/dist/mds-input-range/p-e5970baa.system.js +2 -0
- package/dist/stats.json +115 -39
- package/dist/types/components/mds-input-range/mds-input-range.d.ts +5 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/dictionary/icon.d.ts +1 -1
- package/dist/types/dictionary/typography.d.ts +2 -1
- package/dist/types/type/typography.d.ts +1 -0
- package/documentation.json +75 -6
- package/package.json +1 -1
- package/readme.md +13 -7
- package/src/components/mds-input-range/mds-input-range.css +39 -23
- package/src/components/mds-input-range/mds-input-range.tsx +12 -2
- package/src/components/mds-input-range/readme.md +13 -7
- package/src/components/mds-input-range/test/mds-input-range.stories.tsx +3 -1
- package/src/components.d.ts +8 -0
- package/src/dictionary/typography.ts +6 -0
- package/src/type/typography.ts +4 -0
- package/www/build/mds-input-range.esm.js +1 -1
- package/www/build/mds-input-range.js +1 -1
- package/www/build/{p-b6d99f83.system.js → p-032aeb78.system.js} +1 -1
- package/www/build/p-805599e2.js +2 -0
- package/www/build/p-ab2218cb.entry.js +1 -0
- package/www/build/p-b15e7f8e.system.entry.js +1 -0
- package/www/build/p-e5970baa.system.js +2 -0
- package/dist/esm-es5/index-e9d1fa7e.js +0 -1
- package/dist/mds-input-range/p-155deafe.js +0 -2
- package/dist/mds-input-range/p-55273f42.entry.js +0 -1
- package/dist/mds-input-range/p-7315ada7.system.js +0 -2
- package/dist/mds-input-range/p-b3abfa80.system.entry.js +0 -1
- package/src/fixtures/icons.json +0 -473
- package/www/build/p-155deafe.js +0 -2
- package/www/build/p-55273f42.entry.js +0 -1
- package/www/build/p-7315ada7.system.js +0 -2
- package/www/build/p-b3abfa80.system.entry.js +0 -1
|
@@ -3,28 +3,36 @@
|
|
|
3
3
|
@tailwind components;
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
+
* @prop --mds-input-range-thumb-background-disabled: Sets the thumb background color when the component is disabled
|
|
7
|
+
* @prop --mds-input-range-thumb-background: Sets the thumb background color
|
|
8
|
+
* @prop --mds-input-range-thumb-cursor: Sets the thumb cursor
|
|
6
9
|
* @prop --mds-input-range-thumb-size: Sets the thumb width and height of the component
|
|
7
|
-
* @prop --mds-input-range-
|
|
8
|
-
* @prop --mds-input-range-track-background:
|
|
9
|
-
* @prop --mds-input-range-track-
|
|
10
|
-
* @prop --mds-input-range-track-progress-background:
|
|
10
|
+
* @prop --mds-input-range-track-background-disabled: Sets the track background color when the component is disabled
|
|
11
|
+
* @prop --mds-input-range-track-background: Sets the track background color
|
|
12
|
+
* @prop --mds-input-range-track-progress-background-disabled: Sets the track progress background color when the component is disabled
|
|
13
|
+
* @prop --mds-input-range-track-progress-background: Sets the track progress background color
|
|
14
|
+
* @prop --mds-input-range-track-size: Sets the track width and height
|
|
11
15
|
*/
|
|
12
16
|
|
|
13
17
|
:host {
|
|
18
|
+
--mds-input-range-thumb-background-disabled: rgb(var(--tone-neutral-08));
|
|
19
|
+
--mds-input-range-thumb-background: rgb(var(--tone-neutral));
|
|
20
|
+
--mds-input-range-thumb-cursor: col-resize;
|
|
14
21
|
--mds-input-range-thumb-size: theme('spacing.400');
|
|
15
|
-
--mds-input-range-
|
|
16
|
-
--mds-input-range-
|
|
17
|
-
--mds-input-range-track-background:
|
|
18
|
-
--mds-input-range-track-
|
|
19
|
-
--mds-input-range-track-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
--mds-input-range-track-
|
|
22
|
+
--mds-input-range-track-background-disabled: rgb(var(--tone-neutral-08));
|
|
23
|
+
--mds-input-range-track-background: rgb(var(--tone-neutral-08));
|
|
24
|
+
--mds-input-range-track-progress-background-disabled: rgb(var(--tone-neutral-06));
|
|
25
|
+
--mds-input-range-track-progress-background: rgb(var(--variant-primary-03));
|
|
26
|
+
--mds-input-range-track-size: theme('spacing.600');
|
|
27
|
+
|
|
28
|
+
/* private properties */
|
|
29
|
+
--private-border-width: calc(calc(var(--mds-input-range-track-size) - var(--mds-input-range-thumb-size)) / 2);
|
|
30
|
+
--private-thumb-size: calc(var(--mds-input-range-thumb-size) + var(--private-border-width) * 2);
|
|
23
31
|
|
|
24
32
|
@apply
|
|
25
33
|
duration-300
|
|
26
34
|
ease-in-out
|
|
27
|
-
gap-
|
|
35
|
+
gap-200;
|
|
28
36
|
|
|
29
37
|
display: grid;
|
|
30
38
|
transition-property: color;
|
|
@@ -49,17 +57,14 @@
|
|
|
49
57
|
.range {
|
|
50
58
|
align-items: center;
|
|
51
59
|
display: flex;
|
|
52
|
-
height: var(--
|
|
60
|
+
height: var(--private-thumb-size);
|
|
53
61
|
position: relative;
|
|
54
62
|
}
|
|
55
63
|
|
|
56
64
|
.track {
|
|
57
65
|
@apply w-full;
|
|
58
66
|
|
|
59
|
-
--margin: calc(var(--mds-input-range-track-size) / 2);
|
|
60
|
-
|
|
61
67
|
box-sizing: border-box;
|
|
62
|
-
padding: 0 var(--margin);
|
|
63
68
|
position: absolute;
|
|
64
69
|
}
|
|
65
70
|
|
|
@@ -87,15 +92,16 @@
|
|
|
87
92
|
|
|
88
93
|
appearance: none;
|
|
89
94
|
background-color: var(--mds-input-range-thumb-background);
|
|
90
|
-
border:
|
|
95
|
+
border-color: var(--mds-input-range-track-progress-background);
|
|
91
96
|
border-radius: var(--mds-input-range-thumb-size);
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
border-style: solid;
|
|
98
|
+
border-width: var(--private-border-width);
|
|
99
|
+
cursor: var(--mds-input-range-thumb-cursor);
|
|
100
|
+
height: var(--private-thumb-size);
|
|
95
101
|
line-height: 0;
|
|
96
102
|
transform: translate(0, -50%);
|
|
97
|
-
transition-property: background-color,
|
|
98
|
-
width: var(--
|
|
103
|
+
transition-property: background-color, border;
|
|
104
|
+
width: var(--private-thumb-size);
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
.field::-webkit-slider-runnable-track {
|
|
@@ -114,6 +120,16 @@
|
|
|
114
120
|
display: flex;
|
|
115
121
|
height: var(--mds-input-range-track-size);
|
|
116
122
|
transition-property: background-color;
|
|
123
|
+
|
|
124
|
+
/*
|
|
125
|
+
Align fill end with thumb center.
|
|
126
|
+
Thumb center travels across (100% - thumbSize); at 0% and 100% it's inset by thumbSize/2.
|
|
127
|
+
We use track size as the thumb's outer size (matches current thumb calc).
|
|
128
|
+
*/
|
|
129
|
+
width: calc(
|
|
130
|
+
(100% - var(--mds-input-range-track-size)) * (var(--mds-input-range-progress, 0) * 0.01)
|
|
131
|
+
+ (var(--mds-input-range-track-size) / 2)
|
|
132
|
+
);
|
|
117
133
|
}
|
|
118
134
|
|
|
119
135
|
.track-total {
|
|
@@ -2,6 +2,7 @@ import { AttachInternals, Component, Element, Event, EventEmitter, Host, h, Prop
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @part header - The element containing the labels displayed over the input element
|
|
5
|
+
* @part track - The element containing the track of the input range
|
|
5
6
|
*/
|
|
6
7
|
@Component({
|
|
7
8
|
tag: 'mds-input-range',
|
|
@@ -23,6 +24,11 @@ export class MdsInputRange {
|
|
|
23
24
|
*/
|
|
24
25
|
@Prop() readonly formatValue?: (value: number) => string
|
|
25
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Is needed to reference the form data after the form is submitted
|
|
29
|
+
*/
|
|
30
|
+
@Prop({ reflect: true }) readonly name?: string
|
|
31
|
+
|
|
26
32
|
/**
|
|
27
33
|
* The greatest value in the range of permitted values
|
|
28
34
|
*/
|
|
@@ -138,10 +144,13 @@ export class MdsInputRange {
|
|
|
138
144
|
<mds-text class="value" typography="label">{ this.formatValue ? this.formatValue(this.value) : this.value }</mds-text>
|
|
139
145
|
</header>
|
|
140
146
|
<div class="range">
|
|
141
|
-
<div class="track">
|
|
147
|
+
<div class="track" part="track">
|
|
142
148
|
<div class="contrast-area"></div>
|
|
143
149
|
<div class="track-total">
|
|
144
|
-
<div
|
|
150
|
+
<div
|
|
151
|
+
class="track-progress"
|
|
152
|
+
style={{ '--mds-input-range-progress': `${this.progress ?? 0}` }}
|
|
153
|
+
></div>
|
|
145
154
|
</div>
|
|
146
155
|
</div>
|
|
147
156
|
<input
|
|
@@ -155,6 +164,7 @@ export class MdsInputRange {
|
|
|
155
164
|
step={this.step}
|
|
156
165
|
type="range"
|
|
157
166
|
value={this.value}
|
|
167
|
+
name={this.name}
|
|
158
168
|
/>
|
|
159
169
|
</div>
|
|
160
170
|
</Host>
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
| `formatValue` | -- | A function to custom how value is represented | `((value: number) => string) \| undefined` | `undefined` |
|
|
14
14
|
| `max` | `max` | The greatest value in the range of permitted values | `number` | `100` |
|
|
15
15
|
| `min` | `min` | The lowest value in the range of permitted values | `number` | `0` |
|
|
16
|
+
| `name` | `name` | Is needed to reference the form data after the form is submitted | `string \| undefined` | `undefined` |
|
|
16
17
|
| `step` | `step` | The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any, which is described below. | `number` | `1` |
|
|
17
18
|
| `value` | `value` | The value attribute contains a number which contains a representation of the selected number. | `number` | `undefined` |
|
|
18
19
|
|
|
@@ -29,17 +30,22 @@
|
|
|
29
30
|
| Part | Description |
|
|
30
31
|
| ---------- | ------------------------------------------------------------------ |
|
|
31
32
|
| `"header"` | The element containing the labels displayed over the input element |
|
|
33
|
+
| `"track"` | The element containing the track of the input range |
|
|
32
34
|
|
|
33
35
|
|
|
34
36
|
## CSS Custom Properties
|
|
35
37
|
|
|
36
|
-
| Name
|
|
37
|
-
|
|
|
38
|
-
| `--mds-input-range-thumb-background`
|
|
39
|
-
| `--mds-input-range-thumb-
|
|
40
|
-
| `--mds-input-range-
|
|
41
|
-
| `--mds-input-range-
|
|
42
|
-
| `--mds-input-range-track-
|
|
38
|
+
| Name | Description |
|
|
39
|
+
| ------------------------------------------------------ | ----------------------------------------------------------------------- |
|
|
40
|
+
| `--mds-input-range-thumb-background` | Sets the thumb background color |
|
|
41
|
+
| `--mds-input-range-thumb-background-disabled` | Sets the thumb background color when the component is disabled |
|
|
42
|
+
| `--mds-input-range-thumb-cursor` | Sets the thumb cursor |
|
|
43
|
+
| `--mds-input-range-thumb-size` | Sets the thumb width and height of the component |
|
|
44
|
+
| `--mds-input-range-track-background` | Sets the track background color |
|
|
45
|
+
| `--mds-input-range-track-background-disabled` | Sets the track background color when the component is disabled |
|
|
46
|
+
| `--mds-input-range-track-progress-background` | Sets the track progress background color |
|
|
47
|
+
| `--mds-input-range-track-progress-background-disabled` | Sets the track progress background color when the component is disabled |
|
|
48
|
+
| `--mds-input-range-track-size` | Sets the track width and height |
|
|
43
49
|
|
|
44
50
|
|
|
45
51
|
----------------------------------------------
|
|
@@ -30,7 +30,9 @@ export default {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
const Template = args => (
|
|
33
|
-
<
|
|
33
|
+
<div class="grid gap-400">
|
|
34
|
+
<mds-input-range {...args}>Range label</mds-input-range>
|
|
35
|
+
</div>
|
|
34
36
|
)
|
|
35
37
|
|
|
36
38
|
const TemplateFormatLabel = args => {
|
package/src/components.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export namespace Components {
|
|
|
23
23
|
* The lowest value in the range of permitted values
|
|
24
24
|
*/
|
|
25
25
|
"min": number;
|
|
26
|
+
/**
|
|
27
|
+
* Is needed to reference the form data after the form is submitted
|
|
28
|
+
*/
|
|
29
|
+
"name"?: string;
|
|
26
30
|
/**
|
|
27
31
|
* The step attribute is a number that specifies the granularity that the value must adhere to, or the special value any, which is described below.
|
|
28
32
|
*/
|
|
@@ -77,6 +81,10 @@ declare namespace LocalJSX {
|
|
|
77
81
|
* The lowest value in the range of permitted values
|
|
78
82
|
*/
|
|
79
83
|
"min"?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Is needed to reference the form data after the form is submitted
|
|
86
|
+
*/
|
|
87
|
+
"name"?: string;
|
|
80
88
|
/**
|
|
81
89
|
* Emits when the input range is changed
|
|
82
90
|
*/
|
|
@@ -74,10 +74,16 @@ const typographyInputDictionary = [
|
|
|
74
74
|
'detail',
|
|
75
75
|
]
|
|
76
76
|
|
|
77
|
+
const typographyTechnicalDictionary = [
|
|
78
|
+
'option',
|
|
79
|
+
'label',
|
|
80
|
+
]
|
|
81
|
+
|
|
77
82
|
export {
|
|
78
83
|
typographyDictionary,
|
|
79
84
|
typographyInfoDictionary,
|
|
80
85
|
typographyInputDictionary,
|
|
86
|
+
typographyTechnicalDictionary,
|
|
81
87
|
typographyMonoDictionary,
|
|
82
88
|
typographyReadDictionary,
|
|
83
89
|
typographyReadingVariationsDictionary,
|
package/src/type/typography.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,b as e}from"./p-805599e2.js";export{s as setNonce}from"./p-805599e2.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,s={};return""!==e&&(s.resourcesUrl=new URL(".",e).href),a(s)})().then((async a=>(await n(),e([["p-ab2218cb",[[65,"mds-input-range",{formatValue:[16],name:[513],max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],a))));
|
|
@@ -115,7 +115,7 @@ DOMTokenList
|
|
|
115
115
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
116
116
|
var start = function() {
|
|
117
117
|
// if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
|
|
118
|
-
var url = new URL('./p-
|
|
118
|
+
var url = new URL('./p-032aeb78.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
|
|
119
119
|
System.import(url.href);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,a){function u(n){try{c(r.next(n))}catch(n){a(n)}}function o(n){try{c(r["throw"](n))}catch(n){a(n)}}function c(n){n.done?t(n.value):i(n.value).then(u,o)}c((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(e){return c([n,e])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(t=0)),t)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=e.call(n,t)}catch(n){o=[6,n];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,a){function u(n){try{c(r.next(n))}catch(n){a(n)}}function o(n){try{c(r["throw"](n))}catch(n){a(n)}}function c(n){n.done?t(n.value):i(n.value).then(u,o)}c((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(e){return c([n,e])}}function c(o){if(r)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(t=0)),t)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=e.call(n,t)}catch(n){o=[6,n];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-e5970baa.system.js","./p-56ba5cbf.system.js"],(function(n,e){"use strict";var t,r,i;return{setters:[function(e){t=e.p;r=e.b;n("setNonce",e.s)},function(n){i=n.g}],execute:function(){var n=this;var a=function(){var n=e.meta.url;var r={};if(n!==""){r.resourcesUrl=new URL(".",n).href}return t(r)};a().then((function(e){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,i()];case 1:n.sent();return[2,r([["p-b15e7f8e.system",[[65,"mds-input-range",{formatValue:[16],name:[513],max:[2],min:[2],step:[2],disabled:[1540],value:[1538],progress:[32]},null,{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}]]]],e)]}}))}))}))}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,h=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?w(v):a.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{b(h),b(m),(p=h.length>0)&&a.raf(v)},w=e=>f().then(e),$=y(m,!0),S=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,E=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?R(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.p=r),u.h=l,u},R=(e,t)=>({o:0,m:e,i:t,v:null,p:null,u:null,h:null}),x={},D=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,A=e=>t(e).$hostElement$,U=(e,t,n)=>{const o=A(e);return{emit:e=>W(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},W=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},N=new WeakMap,H=e=>"sc-"+e.$,L=(e,t,n,l,s,i)=>{if(n===l)return;let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n);let s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(V,""),n&&a.rel(e,t,n,o),l&&a.ael(e,t,l,o)}},T=/\s/,F=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(T):[]),z="Capture",V=RegExp(z+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.p[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElement(o.m),q(null,o,I),o.p)for(i=0;i<o.p.length;++i)s=Y(e,o,i),s&&l.appendChild(s)}return l["s-hn"]=C,l},_=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Y(null,n,l),i&&(o[l].v=i,X(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.h&&t.h&&(e.h=t.h),!0):e.h===t.h),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.p,s=t.p,i=t.i;null===i?(q(e,t,I),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],p=t[f],h=o.length-1,m=o[0],y=o[h];for(;r<=f&&c<=h;)if(null==d)d=t[++r];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--h];else if(J(d,m,l))K(d,m,l),d=t[++r],m=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--f],y=o[--h];else if(J(d,y,l))K(d,y,l),X(e,d.v,p.v.nextSibling),d=t[++r],y=o[--h];else if(J(p,m,l))K(p,m,l),X(e,p.v,d.v),p=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===m.h){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=Y(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=Y(t&&t[c],n,c),m=o[++c]),s&&X(d.v.parentNode,s,d.v)}r>f?_(e,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&B(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),_(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.p&&e.p.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},ee=(e,t)=>{if(e.o|=16,!(4&e.o))return Z(e,e.j),$((()=>te(e,t)));e.o|=512},te=(e,t)=>{const n=e.$hostElement$,o=e.t;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=ce(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=ne(l,(()=>ce(o,"componentWillRender",void 0,n))),ne(l,(()=>le(e,o,t)))},ne=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=H(t),l=i.get(o);if(!u.document)return o;if(e=11===e.nodeType?e:u.document,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.O)?n:g(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);se(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},se=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||R(null,null),i=(e=>e&&e.m===x)(t)?t:P(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,o=e.j;ce(n,"componentDidRender",void 0,t),64&e.o?ce(n,"componentDidUpdate",void 0,t):(e.o|=64,ue(t),ce(n,"componentDidLoad",void 0,t),e.P(t),o||re()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>ee(e,!1))),e.o&=-517},re=()=>{w((()=>W(u,"appload",{detail:{namespace:"mds-input-range"}})))},ce=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ue=e=>e.setAttribute("hydrated",""),ae=(e,n,o,s)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.R.get(n),u=i.o,a=i.t;if(o=D(o,s.D[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.R.set(n,o),a)){if(s.A&&128&u){const e=s.A[n];e&&e.map((e=>{try{a[e](o,c,n)}catch(e){l(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;ee(i,!1)}}},fe=(e,n,o)=>{var l,s;const i=e.prototype;if(64&n.o&&1&o&&c.forEach((e=>{Object.defineProperty(i,e,{value(...n){const o=t(this),l=o.t;if(l){const t=l[e];"function"==typeof t&&t.call(l,...n)}else o.U.then((t=>{const o=t[e];"function"==typeof o&&o.call(t,...n)}))}})})),n.D||n.A||e.watchers){e.watchers&&!n.A&&(n.A=e.watchers);const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(n.D[e][0]|=2048),r&&(n.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).R.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=t(this);if(r){const t=32&l?this[e]:i.$hostElement$[e];return void 0===t&&i.R.get(e)?s=i.R.get(e):!i.R.get(e)&&t&&i.R.set(e,t),r.call(this,D(s,l)),void ae(this,e,s=32&l?this[e]:i.$hostElement$[e],n)}{if(!(1&o&&4096&n.D[e][0]))return ae(this,e,s,n),void(1&o&&!i.t&&i.U.then((()=>{4096&n.D[e][0]&&i.t[e]!==i.R.get(e)&&(i.t[e]=s)})));const t=()=>{const t=i.t[e];!i.R.get(e)&&t&&i.R.set(e,t),i.t[e]=D(s,l),ae(this,e,i.t[e],n)};i.t?t():i.U.then((()=>t()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=t(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const t=o.t,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=t[n]&&t[n].call(t,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.A)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{var l;const s=t[1]||e;return o.set(s,e),512&t[0]&&(null==(l=n.M)||l.push([e,s])),s}))]))}}return e},de=(e,t)=>{ce(e,"connectedCallback",void 0,t)},pe=(e,t)=>{ce(e,"disconnectedCallback",void 0,t||e)},he=(e,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],p=u.customElements,h=u.document.head,m=h.querySelector("meta[charset]"),y=u.document.createElement("style"),b=[];let v,w=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{var o;const r={o:n[0],$:n[1],D:n[2],W:n[3]};4&r.o&&($=!0),r.D=n[2],r.M=[],r.A=null!=(o=n[4])?o:{};const u=r.$,h=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,R:new Map};n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),w?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const n=t(e),o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?de(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>de(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){Z(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.N){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.N;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(n.A=o.watchers,fe(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),de(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=H(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>ee(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);(null==n?void 0:n.t)?pe(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>pe(n.t,e)))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).U}};64&r.o&&(h.formAssociated=!0),r.N=e[0],f.includes(u)||p.get(u)||(c.push(u),p.define(u,fe(h,r,1)))}))})),c.length>0&&($&&(y.textContent+=r),y.textContent+=c.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(o=a.O)?o:g(u.document);null!=e&&y.setAttribute("nonce",e),h.insertBefore(y,m?m.nextSibling:h.firstChild)}w=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(re,30)))},me=e=>a.O=e;export{x as H,he as b,U as c,A as g,P as h,f as p,n as r,me as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as r,g as d}from"./p-805599e2.js";const i=class{constructor(a){t(this,a),this.changeEvent=e(this,"mdsInputRangeChange",7),a.$hostElement$["s-ei"]?this.internals=a.$hostElement$["s-ei"]:(this.internals=a.$hostElement$.attachInternals(),a.$hostElement$["s-ei"]=this.internals),this.max=100,this.min=0,this.step=1,this.onInput=()=>{if(Number.isNaN(this.inputElement.value))throw Error(`Entered value ${this.inputElement.value} is not a Number`);this.value=Number(this.inputElement.value)}}calculateProgress(){let t=Number(this.inputElement.value);const e=Math.pow(10,this.decimalPlaces);t>this.max?t=this.max:t<this.min&&(t=this.min),(t-this.min)*e%(this.step*e)!=0&&(t=(Math.round((t*e-this.min*e)/(this.step*e))*(this.step*e)+this.min*e)/e),this.value=t,this.internals.setFormValue(this.value.toString()),this.progress=(this.value-this.min)/(this.max-this.min)*100}countDecimals(t){return Math.floor(t)===t?0:t.toString().split(".")[1].length||0}disabledChanged(t){t&&this.internals.setFormValue(null)}valueChanged(t,e){t!==e&&(this.inputElement.value=this.value.toString(),this.calculateProgress(),this.changeEvent.emit(this.value))}minChanged(){this.calculateProgress()}maxChanged(){this.calculateProgress()}stepChanged(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step),this.calculateProgress()}formResetCallback(){this.internals.setFormValue("")}componentDidLoad(){var t;this.decimalPlaces=this.countDecimals(this.step),this.onInput(),this.label=null!==(t=this.element.textContent)&&void 0!==t?t:"",this.calculateProgress()}render(){var t;return a(r,{key:"9a4edc2c6507810ccc86a48207652b37606fbd59"},a("header",{key:"f8c23be475e7e91ff4e77ca9152bdc164c4472fe",class:"header",part:"header"},a("mds-text",{key:"d1d753f05d0d6a74ac5855baec702856824f62dd",class:"label",typography:"label"},a("slot",{key:"89a0b3be4e54e7f4d9abbae3f441c421e428866d"})),a("mds-text",{key:"2d8eade92dadba997ab9a6e8a2d5d0a6194a5740",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),a("div",{key:"76b9f55cf9533a0d77edad81ff6fa1c6558427a6",class:"range"},a("div",{key:"28220c6a14194dc011583b6c93faea0e24e6b948",class:"track",part:"track"},a("div",{key:"652e0da13381878b5b8230a3a91570abfa4e29f1",class:"contrast-area"}),a("div",{key:"70006e3b638ee1f8c2401818bd36010ffe6f0073",class:"track-total"},a("div",{key:"d2f25778c70b63b2b6ab0951ed55c8faae682e4f",class:"track-progress",style:{"--mds-input-range-progress":`${null!==(t=this.progress)&&void 0!==t?t:0}`}}))),a("input",{key:"fb9a57174b72c222fc8daec71402d7c5c987b5c9",ref:t=>this.inputElement=t,class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))}static get formAssociated(){return!0}get element(){return d(this)}static get watchers(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}}};i.style='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-thumb-background:rgb(var(--tone-neutral));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:1rem;--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-track-size:1.5rem;--private-border-width:calc(calc(var(--mds-input-range-track-size) - var(--mds-input-range-thumb-size)) / 2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width) * 2);gap:0.5rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--private-thumb-size);position:relative}.track{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, border;transition-property:background-color, border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color;width:calc(\n (100% - var(--mds-input-range-track-size)) * (var(--mds-input-range-progress, 0) * 0.01)\n + (var(--mds-input-range-track-size) / 2)\n )}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled="false"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';export{i as mds_input_range}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-e5970baa.system.js"],(function(t){"use strict";var e,r,a,i,d;return{setters:[function(t){e=t.r;r=t.c;a=t.h;i=t.H;d=t.g}],execute:function(){var n='@-webkit-keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@keyframes focus-bounce{0%,75%,100%{outline-offset:var(--magma-outline-focus-offset, 6px)}50%{outline-offset:var(--magma-outline-blur-offset, 2px)}}@tailwind components; :host{--mds-input-range-thumb-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-thumb-background:rgb(var(--tone-neutral));--mds-input-range-thumb-cursor:col-resize;--mds-input-range-thumb-size:1rem;--mds-input-range-track-background-disabled:rgb(var(--tone-neutral-08));--mds-input-range-track-background:rgb(var(--tone-neutral-08));--mds-input-range-track-progress-background-disabled:rgb(var(--tone-neutral-06));--mds-input-range-track-progress-background:rgb(var(--variant-primary-03));--mds-input-range-track-size:1.5rem;--private-border-width:calc(calc(var(--mds-input-range-track-size) - var(--mds-input-range-thumb-size)) / 2);--private-thumb-size:calc(var(--mds-input-range-thumb-size) + var(--private-border-width) * 2);gap:0.5rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);display:grid;-webkit-transition-property:color;transition-property:color}.header{gap:0.5rem;display:-ms-flexbox;display:flex}.label{min-width:0rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.value{margin-left:auto}.range{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:var(--private-thumb-size);position:relative}.track{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute}.field{-webkit-animation-duration:var(--magma-outline-animation-duration, 1s);animation-duration:var(--magma-outline-animation-duration, 1s);-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:focus-bounce;animation-name:focus-bounce;-webkit-animation-play-state:paused;animation-play-state:paused;-webkit-animation-timing-function:cubic-bezier(0, 0, 0.2, 1);animation-timing-function:cubic-bezier(0, 0, 0.2, 1);outline:var(--magma-outline-blur);-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:ease-in-out;transition-timing-function:ease-in-out}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field{z-index:20;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border-radius:1000px;-ms-flex-positive:1;flex-grow:1;margin:0}.field:focus-visible{--magma-outline-blur:var(--magma-outline-focus);-webkit-animation-play-state:running;animation-play-state:running}.field::-webkit-slider-thumb{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-appearance:none;appearance:none;background-color:var(--mds-input-range-thumb-background);border-color:var(--mds-input-range-track-progress-background);border-radius:var(--mds-input-range-thumb-size);border-style:solid;border-width:var(--private-border-width);cursor:var(--mds-input-range-thumb-cursor);height:var(--private-thumb-size);line-height:0;-webkit-transform:translate(0, -50%);transform:translate(0, -50%);-webkit-transition-property:background-color, border;transition-property:background-color, border;width:var(--private-thumb-size)}.field::-webkit-slider-runnable-track{-webkit-appearance:none;appearance:none;border:0;height:0;width:100%}.track-progress{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-progress-background);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);-webkit-transition-property:background-color;transition-property:background-color;width:calc(\n (100% - var(--mds-input-range-track-size)) * (var(--mds-input-range-progress, 0) * 0.01)\n + (var(--mds-input-range-track-size) / 2)\n )}.track-total{-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mds-input-range-track-background);border-radius:var(--mds-input-range-track-size);display:-ms-flexbox;display:flex;height:var(--mds-input-range-track-size);overflow:hidden;-webkit-transition-property:background-color;transition-property:background-color;width:100%}.contrast-area{margin-left:0.25rem;margin-right:0.25rem;border-radius:var(--mds-input-range-track-size)}:host([disabled]:not([disabled="false"])){--mds-input-range-thumb-background:var(--mds-input-range-thumb-background-disabled);--mds-input-range-track-background:var(--mds-input-range-track-background-disabled);--mds-input-range-track-progress-background:var(--mds-input-range-track-progress-background-disabled)}:host([disabled]:not([disabled="false"])) .field::-webkit-slider-thumb{cursor:not-allowed}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .field::-webkit-slider-thumb,:host-context(.pref-animation-reduce) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-reduce) .track-progress,:host-context(.pref-animation-reduce) .track-total{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .field::-webkit-slider-thumb,:host-context(.pref-animation-system) .field::-webkit-slider-runnable-track,:host-context(.pref-animation-system) .track-progress,:host-context(.pref-animation-system) .track-total{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-range-thumb-background:rgb(var(--variant-primary-04));--mds-input-range-track-background:rgb(var(--tone-neutral-07));--mds-input-range-track-progress-background:rgb(var(--variant-primary-05))}}:host-context(.pref-contrast-more){color:rgb(var(--tone-neutral-01))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){color:rgb(var(--tone-neutral-01))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}';var s=n;var o=t("mds_input_range",function(){function t(t){var a=this;e(this,t);this.changeEvent=r(this,"mdsInputRangeChange",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.max=100;this.min=0;this.step=1;this.onInput=function(){if(Number.isNaN(a.inputElement.value))throw Error("Entered value ".concat(a.inputElement.value," is not a Number"));a.value=Number(a.inputElement.value)}}t.prototype.calculateProgress=function(){var t=Number(this.inputElement.value);var e=Math.pow(10,this.decimalPlaces);if(t>this.max)t=this.max;else if(t<this.min)t=this.min;if((t-this.min)*e%(this.step*e)!==0){t=(Math.round((t*e-this.min*e)/(this.step*e))*(this.step*e)+this.min*e)/e}this.value=t;this.internals.setFormValue(this.value.toString());var r=this.max-this.min;var a=this.value-this.min;this.progress=a/r*100};t.prototype.countDecimals=function(t){if(Math.floor(t)===t)return 0;return t.toString().split(".")[1].length||0};t.prototype.disabledChanged=function(t){if(t){this.internals.setFormValue(null)}};t.prototype.valueChanged=function(t,e){if(t===e)return;this.inputElement.value=this.value.toString();this.calculateProgress();this.changeEvent.emit(this.value)};t.prototype.minChanged=function(){this.calculateProgress()};t.prototype.maxChanged=function(){this.calculateProgress()};t.prototype.stepChanged=function(){if(this.step<=0)throw Error("step cant be negative or zero");this.decimalPlaces=this.countDecimals(this.step);this.calculateProgress()};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentDidLoad=function(){var t;this.decimalPlaces=this.countDecimals(this.step);this.onInput();this.label=(t=this.element.textContent)!==null&&t!==void 0?t:"";this.calculateProgress()};t.prototype.render=function(){var t=this;var e;return a(i,{key:"9a4edc2c6507810ccc86a48207652b37606fbd59"},a("header",{key:"f8c23be475e7e91ff4e77ca9152bdc164c4472fe",class:"header",part:"header"},a("mds-text",{key:"d1d753f05d0d6a74ac5855baec702856824f62dd",class:"label",typography:"label"},a("slot",{key:"89a0b3be4e54e7f4d9abbae3f441c421e428866d"})),a("mds-text",{key:"2d8eade92dadba997ab9a6e8a2d5d0a6194a5740",class:"value",typography:"label"},this.formatValue?this.formatValue(this.value):this.value)),a("div",{key:"76b9f55cf9533a0d77edad81ff6fa1c6558427a6",class:"range"},a("div",{key:"28220c6a14194dc011583b6c93faea0e24e6b948",class:"track",part:"track"},a("div",{key:"652e0da13381878b5b8230a3a91570abfa4e29f1",class:"contrast-area"}),a("div",{key:"70006e3b638ee1f8c2401818bd36010ffe6f0073",class:"track-total"},a("div",{key:"d2f25778c70b63b2b6ab0951ed55c8faae682e4f",class:"track-progress",style:{"--mds-input-range-progress":"".concat((e=this.progress)!==null&&e!==void 0?e:0)}}))),a("input",{key:"fb9a57174b72c222fc8daec71402d7c5c987b5c9",ref:function(e){return t.inputElement=e},class:"field","aria-label":this.label,disabled:this.disabled,max:this.max,min:this.min,onInput:this.onInput,step:this.step,type:"range",value:this.value,name:this.name})))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"],min:["minChanged"],max:["maxChanged"],step:["stepChanged"]}},enumerable:false,configurable:true});return t}());o.style=s}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function o(r){try{u(t.next(r))}catch(r){a(r)}}function f(r){try{u(t["throw"](r))}catch(r){a(r)}}function u(r){r.done?n(r.value):i(r.value).then(o,f)}u((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(r){return function(e){return u([r,e])}}function u(f){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(n=0)),n)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=e.call(r,n)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="mds-input-range";var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};var a=Object.defineProperty;var o=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var f=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var u=r("r",(function(r,e){r.__stencil__getHostRef=function(){return e};e.t=r}));var l=function(r,e){var n={i:0,$hostElement$:r,o:e,u:new Map};{n.l=new Promise((function(r){return n.v=r}));r["s-p"]=[];r["s-rc"]=[]}var t=n;r.__stencil__getHostRef=function(){return t};return t};var s=function(r,e){return e in r};var c=function(r,e){return(0,console.error)(r,e)};var v=new Map;var d=function(r,n,t){var i=r.h.replace(/-/g,"_");var a=r.p;if(!a){return void 0}var o=v.get(a);if(o){return o[i]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{v.set(a,r)}return r[i]}),(function(r){c(r,n.$hostElement$)}))};var h=new Map;var p="sty-id";var m="{visibility:hidden}[hydrated]{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var b=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var w=typeof window!=="undefined"?window:{};var S={i:0,m:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var g=r("p",(function(r){return Promise.resolve(r)}));var _=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var $=false;var k=[];var j=[];var C=function(r,e){return function(n){r.push(n);if(!$){$=true;if(e&&S.i&4){x(O)}else{S.raf(O)}}}};var A=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){c(r)}}r.length=0};var O=function(){A(k);{A(j);if($=k.length>0){S.raf(O)}}};var x=function(r){return g().then(r)};var E=C(j,true);var T=function(r){r=typeof r;return r==="object"||r==="function"};function D(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var M={};o(M,{err:function(){return P},map:function(){return R},ok:function(){return L},unwrap:function(){return F},unwrapErr:function(){return N}});var L=function(r){return{isOk:true,isErr:false,value:r}};var P=function(r){return{isOk:false,isErr:true,value:r}};function R(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return L(r)}))}else{return L(n)}}if(r.isErr){var t=r.value;return P(t)}throw"should never get here"}var F=function(r){if(r.isOk){return r.value}else{throw r.value}};var N=function(r){if(r.isErr){return r.value}else{throw r.value}};var U=function(r,e){if(e===void 0){e=""}{return function(){return}}};var W=function(r,e){{return function(){return}}};var z=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var o=false;var f=false;var u=[];var l=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof r!=="function"&&!T(i)){i=String(i)}if(o&&f){u[u.length-1].S+=i}else{u.push(o?H(null,i):i)}f=o}}};l(n);if(e){if(e.key){a=e.key}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}var c=H(r,null);c._=e;if(u.length>0){c.$=u}{c.k=a}return c}));var H=function(r,e){var n={i:0,j:r,S:e,C:null,$:null};{n._=null}{n.k=null}return n};var B=r("H",{});var G=function(r){return r&&r.j===B};var I=function(r,e){if(r!=null&&!T(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var Q=r("g",(function(r){return f(r).$hostElement$}));var V=r("c",(function(r,e,n){var t=Q(r);return{emit:function(r){return q(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var q=function(r,e,n){var t=S.ce(e,n);r.dispatchEvent(t);return t};var K=new WeakMap;var X=function(r,e,n){var t=h.get(r);if(_&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}h.set(r,t)};var Y=function(r,e,n){var t;var i=Z(e);var a=h.get(i);if(!w.document){return i}r=r.nodeType===11?r:w.document;if(a){if(typeof a==="string"){r=r.head||r;var o=K.get(r);var f=void 0;if(!o){K.set(r,o=new Set)}if(!o.has(i)){{f=document.querySelector("[".concat(p,'="').concat(i,'"]'))||w.document.createElement("style");f.innerHTML=a;var u=(t=S.A)!=null?t:D(w.document);if(u!=null){f.setAttribute("nonce",u)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(f,(s==null?void 0:s.parentNode)===r?s:null)}else if("host"in r){if(_){var c=new CSSStyleSheet;c.replaceSync(a);r.adoptedStyleSheets=__spreadArray([c],r.adoptedStyleSheets,true)}else{var v=r.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{r.prepend(f)}}}else{r.append(f)}}if(e.i&1){r.insertBefore(f,null)}}if(e.i&4){f.innerHTML+=y}if(o){o.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var J=function(r){var e=r.o;var n=r.$hostElement$;var t=e.i;var i=U("attachStyles",e.h);var a=Y(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2||t&128){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var Z=function(r,e){return"sc-"+r.h};var rr=function(r,e,n,t,i,a,o){if(n===t){return}var f=s(r,e);var u=e.toLowerCase();if(e==="class"){var l=r.classList;var c=nr(n);var v=nr(t);{l.remove.apply(l,c.filter((function(r){return r&&!v.includes(r)})));l.add.apply(l,v.filter((function(r){return r&&!c.includes(r)})))}}else if(e==="style"){{for(var d in n){if(!t||t[d]==null){if(d.includes("-")){r.style.removeProperty(d)}else{r.style[d]=""}}}}for(var d in t){if(!n||t[d]!==n[d]){if(d.includes("-")){r.style.setProperty(d,t[d])}else{r.style[d]=t[d]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(s(w,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var h=e.endsWith(tr);e=e.replace(ir,"");if(n){S.rel(r,e,n,h)}if(t){S.ael(r,e,t,h)}}}else{var p=T(t);if((f||p&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var m=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=m){if(typeof r.__lookupSetter__(e)==="function"){r[e]=m}else{r.setAttribute(e,m)}}}else if(r[e]!==t){r[e]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!p&&r.nodeType===1){t=t===true?"":t;{r.setAttribute(e,t)}}}};var er=/\s/;var nr=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(er)};var tr="Capture";var ir=new RegExp(tr+"$");var ar=function(r,e,n,t){var i=e.C.nodeType===11&&e.C.host?e.C.host:e.C;var a=r&&r._||{};var o=e._||{};{for(var f=0,u=or(Object.keys(a));f<u.length;f++){var l=u[f];if(!(l in o)){rr(i,l,a[l],void 0,n,e.i)}}}for(var s=0,c=or(Object.keys(o));s<c.length;s++){var l=c[s];rr(i,l,a[l],o[l],n,e.i)}};function or(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var fr;var ur=false;var lr=false;var sr=function(r,e,n){var t=e.$[n];var a=0;var o;var f;if(t.S!==null){o=t.C=w.document.createTextNode(t.S)}else{if(!w.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}o=t.C=w.document.createElement(!ur&&i.slotRelocation&&t.i&2?"slot-fb":t.j);{ar(null,t,lr)}if(t.$){for(a=0;a<t.$.length;++a){f=sr(r,t,a);if(f){o.appendChild(f)}}}}o["s-hn"]=fr;return o};var cr=function(r,e,n,t,i,a){var o=r;var f;if(o.shadowRoot&&o.tagName===fr){o=o.shadowRoot}for(;i<=a;++i){if(t[i]){f=sr(null,n,i);if(f){t[i].C=f;yr(o,f,e)}}}};var vr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.C;mr(i);if(a){a.remove()}}}};var dr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var o=0;var f=0;var u=0;var l=e.length-1;var s=e[0];var c=e[l];var v=t.length-1;var d=t[0];var h=t[v];var p;var m;while(a<=l&&o<=v){if(s==null){s=e[++a]}else if(c==null){c=e[--l]}else if(d==null){d=t[++o]}else if(h==null){h=t[--v]}else if(hr(s,d,i)){pr(s,d,i);s=e[++a];d=t[++o]}else if(hr(c,h,i)){pr(c,h,i);c=e[--l];h=t[--v]}else if(hr(s,h,i)){pr(s,h,i);yr(r,s.C,c.C.nextSibling);s=e[++a];h=t[--v]}else if(hr(c,d,i)){pr(c,d,i);yr(r,c.C,s.C);c=e[--l];d=t[++o]}else{f=-1;{for(u=a;u<=l;++u){if(e[u]&&e[u].k!==null&&e[u].k===d.k){f=u;break}}}if(f>=0){m=e[f];if(m.j!==d.j){p=sr(e&&e[o],n,f)}else{pr(m,d,i);e[f]=void 0;p=m.C}d=t[++o]}else{p=sr(e&&e[o],n,o);d=t[++o]}if(p){{yr(s.C.parentNode,p,s.C)}}}}if(a>l){cr(r,t[v+1]==null?null:t[v+1].C,n,t,o,v)}else if(o>v){vr(e,a,l)}};var hr=function(r,e,n){if(n===void 0){n=false}if(r.j===e.j){if(!n){return r.k===e.k}if(n&&!r.k&&e.k){r.k=e.k}return true}return false};var pr=function(r,e,n){if(n===void 0){n=false}var t=e.C=r.C;var a=r.$;var o=e.$;var f=e.S;if(f===null){{ar(r,e,lr)}if(a!==null&&o!==null){dr(t,a,e,o,n)}else if(o!==null){if(r.S!==null){t.textContent=""}cr(t,null,e,o,0,o.length-1)}else if(!n&&i.updatable&&a!==null){vr(a,0,a.length-1)}}else if(r.S!==f){t.data=f}};var mr=function(r){{r._&&r._.ref&&r._.ref(null);r.$&&r.$.map(mr)}};var yr=function(r,e,n){{return r==null?void 0:r.insertBefore(e,n)}};var br=function(r,e,n){if(n===void 0){n=false}var t=r.$hostElement$;var i=r.o;var a=r.O||H(null,null);var o=G(e)?e:z(null,null,e);fr=t.tagName;if(i.T){o._=o._||{};i.T.map((function(r){var e=r[0],n=r[1];return o._[n]=t[e]}))}if(n&&o._){for(var f=0,u=Object.keys(o._);f<u.length;f++){var l=u[f];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o._[l]=t[l]}}}o.j=null;o.i|=4;r.O=o;o.C=a.C=t.shadowRoot||t;ur=!!(i.i&1)&&!(i.i&128);pr(a,o,n)};var wr=function(r,e){if(e&&!r.D&&e["s-p"]){var n=e["s-p"].push(new Promise((function(t){return r.D=function(){e["s-p"].splice(n-1,1);t()}})))}};var Sr=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}wr(r,r.M);var n=function(){return gr(r,e)};return E(n)};var gr=function(r,e){var n=r.$hostElement$;var t=U("scheduleUpdate",r.o.h);var i=r.t;if(!i){throw new Error("Can't render component <".concat(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"))}var a;if(e){a=Or(i,"componentWillLoad",void 0,n)}else{a=Or(i,"componentWillUpdate",void 0,n)}a=_r(a,(function(){return Or(i,"componentWillRender",void 0,n)}));t();return _r(a,(function(){return kr(r,i,e)}))};var _r=function(r,e){return $r(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var $r=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var kr=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,l;return __generator(this,(function(s){i=r.$hostElement$;a=U("update",r.o.h);o=i["s-rc"];if(t){J(r)}f=U("render",r.o.h);{jr(r,e,i,t)}if(o){o.map((function(r){return r()}));i["s-rc"]=void 0}f();a();{u=(n=i["s-p"])!=null?n:[];l=function(){return Cr(r)};if(u.length===0){l()}else{Promise.all(u).then(l);r.i|=4;u.length=0}}return[2]}))}))};var jr=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{br(r,e,t)}}}}catch(e){c(e,r.$hostElement$)}return null};var Cr=function(r){var e=r.o.h;var n=r.$hostElement$;var t=U("postUpdate",e);var i=r.t;var a=r.M;Or(i,"componentDidRender",void 0,n);if(!(r.i&64)){r.i|=64;{xr(n)}Or(i,"componentDidLoad",void 0,n);t();{r.v(n);if(!a){Ar()}}}else{Or(i,"componentDidUpdate",void 0,n);t()}{if(r.D){r.D();r.D=void 0}if(r.i&512){x((function(){return Sr(r,false)}))}r.i&=~(4|512)}};var Ar=function(r){x((function(){return q(w,"appload",{detail:{namespace:t}})}))};var Or=function(r,e,n,t){if(r&&r[e]){try{return r[e](n)}catch(r){c(r,t)}}return void 0};var xr=function(r){var e;return r.setAttribute((e=i.hydratedSelectorName)!=null?e:"hydrated","")};var Er=function(r,e){return f(r).u.get(e)};var Tr=function(r,e,n,t){var i=f(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.h,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.u.get(e);var u=i.i;var l=i.t;n=I(n,t.L[e][0]);var s=Number.isNaN(o)&&Number.isNaN(n);var v=n!==o&&!s;if((!(u&8)||o===void 0)&&v){i.u.set(e,n);if(l){if(t.P&&u&128){var d=t.P[e];if(d){d.map((function(r){try{l[r](n,o,e)}catch(r){c(r,a)}}))}}if((u&(2|16))===2){if(l.componentShouldUpdate){if(l.componentShouldUpdate(n,o,e)===false){return}}Sr(i,false)}}}};var Dr=function(r,e,n){var t,a;var o=r.prototype;if(e.i&64&&n&1){b.forEach((function(r){Object.defineProperty(o,r,{value:function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var t=f(this);var i=t.t;if(!i){t.l.then((function(n){var t=n[r];typeof t==="function"&&t.call.apply(t,__spreadArray([n],e,false))}))}else{var a=i[r];typeof a==="function"&&a.call.apply(a,__spreadArray([i],e,false))}}})}))}if(e.L||(e.P||r.watchers)){if(r.watchers&&!e.P){e.P=r.watchers}var u=Object.entries((t=e.L)!=null?t:{});u.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){var a=Object.getOwnPropertyDescriptor(o,t)||{},u=a.get,l=a.set;if(u)e.L[t][0]|=2048;if(l)e.L[t][0]|=4096;if(n&1||!u){Object.defineProperty(o,t,{get:function(){{if((e.L[t][0]&2048)===0){return Er(this,t)}var r=f(this);var n=r?r.t:o;if(!n)return;return n[t]}},configurable:true,enumerable:true})}Object.defineProperty(o,t,{set:function(r){var a=this;var o=f(this);if(l){var u=i&32?this[t]:o.$hostElement$[t];if(typeof u==="undefined"&&o.u.get(t)){r=o.u.get(t)}else if(!o.u.get(t)&&u){o.u.set(t,u)}l.apply(this,[I(r,i)]);r=i&32?this[t]:o.$hostElement$[t];Tr(this,t,r,e);return}{if((n&1)===0||(e.L[t][0]&4096)===0){Tr(this,t,r,e);if(n&1&&!o.t){o.l.then((function(){if(e.L[t][0]&4096&&o.t[t]!==o.u.get(t)){o.t[t]=r}}))}return}var s=function(){var n=o.t[t];if(!o.u.get(t)&&n){o.u.set(t,n)}o.t[t]=I(r,i);Tr(a,t,o.t[t],e)};if(o.t){s()}else{o.l.then((function(){return s()}))}}}})}}));if(n&1){var l=new Map;o.attributeChangedCallback=function(r,n,t){var a=this;S.jmp((function(){var u;var s=l.get(r);if(a.hasOwnProperty(s)&&i.lazyLoad){t=a[s];delete a[s]}else if(o.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var c=f(a);var v=c==null?void 0:c.i;if(v&&!(v&8)&&v&128&&t!==n){var d=c.t;var h=(u=e.P)==null?void 0:u[r];h==null?void 0:h.forEach((function(e){if(d[e]!=null){d[e].call(d,t,n,r)}}))}return}var p=Object.getOwnPropertyDescriptor(o,s);t=t===null&&typeof a[s]==="boolean"?false:t;if(t!==a[s]&&(!p.get||!!p.set)){a[s]=t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=e.P)!=null?a:{}),true),u.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;l.set(a,n);if(t[0]&512){(i=e.T)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var Mr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,o,f,u,l,s,v,p,m;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.p;if(!i)return[3,4];a=d(t,e);if(!(a&&"then"in a))return[3,2];o=W();return[4,a];case 1:n=y.sent();o();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.h,"#").concat(e.R,'" was not found'))}if(!n.isProxied){{t.P=n.watchers}Dr(n,t,2);n.isProxied=true}f=U("createInstance",t.h);{e.i|=8}try{new n(e)}catch(e){c(e,r)}{e.i&=~8}{e.i|=128}f();Lr(e.t,r);return[3,5];case 4:n=r.constructor;u=r.localName;customElements.whenDefined(u).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}s=Z(t);if(!h.has(s)){v=U("registerStyles",t.h);X(s,l,!!(t.i&1));v()}}y.label=6;case 6:p=e.M;m=function(){return Sr(e,true)};if(p&&p["s-rc"]){p["s-rc"].push(m)}else{m()}return[2]}}))}))};var Lr=function(r,e){{Or(r,"connectedCallback",void 0,e)}};var Pr=function(r){if((S.i&1)===0){var e=f(r);var n=e.o;var t=U("connectedCallback",n.h);if(!(e.i&1)){e.i|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){wr(e,e.M=i);break}}}if(n.L){Object.entries(n.L).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{Mr(r,e,n)}}else{if(e==null?void 0:e.t){Lr(e.t,r)}else if(e==null?void 0:e.l){e.l.then((function(){return Lr(e.t,r)}))}}t()}};var Rr=function(r,e){{Or(r,"disconnectedCallback",void 0,e||r)}};var Fr=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((S.i&1)===0){e=f(r);if(e==null?void 0:e.t){Rr(e.t,r)}else if(e==null?void 0:e.l){e.l.then((function(){return Rr(e.t,r)}))}}if(K.has(r)){K.delete(r)}if(r.shadowRoot&&K.has(r.shadowRoot)){K.delete(r.shadowRoot)}return[2]}))}))};var Nr=r("b",(function(r,e){if(e===void 0){e={}}var n;if(!w.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=U();var i=[];var a=e.exclude||[];var o=w.customElements;var u=w.document.head;var s=u.querySelector("meta[charset]");var c=w.document.createElement("style");var v=[];var d;var h=true;Object.assign(S,e);S.m=new URL(e.resourcesUrl||"./",w.document.baseURI).href;var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],h:e[1],L:e[2],F:e[3]};if(t.i&4){p=true}{t.L=e[2]}{t.T=[]}{t.P=(n=e[4])!=null?n:{}}var u=t.h;var s=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;l(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.h,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;f(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(d){clearTimeout(d);d=null}if(h){v.push(this)}else{S.jmp((function(){return Pr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;S.jmp((function(){return Fr(r)}));S.raf((function(){var e;var n=f(r);var t=v.findIndex((function(e){return e===r}));if(t>-1){v.splice(t,1)}if(((e=n==null?void 0:n.O)==null?void 0:e.C)instanceof Node&&!n.O.C.isConnected){delete n.O.C}}))};e.prototype.componentOnReady=function(){return f(this).l};return e}(HTMLElement);if(t.i&64){s.formAssociated=true}t.p=r[0];if(!a.includes(u)&&!o.get(u)){i.push(u);o.define(u,Dr(s,t,1))}}))}));if(i.length>0){if(p){c.textContent+=y}{c.textContent+=i.sort()+m}if(c.innerHTML.length){c.setAttribute("data-styles","");var b=(n=S.A)!=null?n:D(w.document);if(b!=null){c.setAttribute("nonce",b)}u.insertBefore(c,s?s.nextSibling:u.firstChild)}}h=false;if(v.length){v.map((function(r){return r.connectedCallback()}))}else{{S.jmp((function(){return d=setTimeout(Ar,30)}))}}t()}));var Ur=r("s",(function(r){return S.A=r}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(r,t){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t))e[t]=r[t]};return e(r,t)};return function(r,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?t(e.value):i(e.value).then(o,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(t=0)),t)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n<i;n++){if(a||!(n in r)){if(!a)a=Array.prototype.slice.call(r,0,n);a[n]=r[n]}}return e.concat(a||Array.prototype.slice.call(r))};var NAMESPACE="mds-input-range";var BUILD={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:true,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:true,hydratedClass:false,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:false,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:false,watchCallback:true};var __defProp=Object.defineProperty;var __export=function(e,r){for(var t in r)__defProp(e,t,{get:r[t],enumerable:true})};var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,r){e.__stencil__getHostRef=function(){return r};r.t=e};var registerHost=function(e,r){var t={i:0,$hostElement$:e,o:r,u:new Map};{t.l=new Promise((function(e){return t.v=e}));e["s-p"]=[];e["s-rc"]=[]}var n=t;e.__stencil__getHostRef=function(){return n};return n};var isMemberInElement=function(e,r){return r in e};var consoleError=function(e,r){return(0,console.error)(e,r)};var cmpModules=new Map;var loadModule=function(e,r,t){var n=e.p.replace(/-/g,"_");var i=e.m;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}if(!t||!BUILD.hotModuleReplacement){var o=function(e){cmpModules.set(i,e);return e[n]};switch(i){case"mds-input-range":return import("./mds-input-range.entry.js").then(o,consoleError)}}return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,r.$hostElement$)}))};var styles=new Map;var HYDRATED_STYLE_ID="sty-id";var HYDRATED_CSS="{visibility:hidden}[hydrated]{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"];var win=typeof window!=="undefined"?window:{};var plt={i:0,h:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,r,t,n){return e.addEventListener(r,t,n)},rel:function(e,r,t,n){return e.removeEventListener(r,t,n)},ce:function(e,r){return new CustomEvent(e,r)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,r){return function(t){e.push(t);if(!queuePending){queuePending=true;if(r&&plt.i&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};function queryNonceMetaTagContent(e){var r,t,n;return(n=(t=(r=e.head)==null?void 0:r.querySelector('meta[name="csp-nonce"]'))==null?void 0:t.getAttribute("content"))!=null?n:void 0}var result_exports={};__export(result_exports,{err:function(){return err},map:function(){return map},ok:function(){return ok},unwrap:function(){return unwrap},unwrapErr:function(){return unwrapErr}});var ok=function(e){return{isOk:true,isErr:false,value:e}};var err=function(e){return{isOk:false,isErr:true,value:e}};function map(e,r){if(e.isOk){var t=r(e.value);if(t instanceof Promise){return t.then((function(e){return ok(e)}))}else{return ok(t)}}if(e.isErr){var n=e.value;return err(n)}throw"should never get here"}var unwrap=function(e){if(e.isOk){return e.value}else{throw e.value}};var unwrapErr=function(e){if(e.isErr){return e.value}else{throw e.value}};var createTime=function(e,r){if(r===void 0){r=""}{return function(){return}}};var uniqueTime=function(e,r){{return function(){return}}};var h=function(e,r){var t=[];for(var n=2;n<arguments.length;n++){t[n-2]=arguments[n]}var i=null;var a=null;var o=false;var s=false;var u=[];var l=function(r){for(var t=0;t<r.length;t++){i=r[t];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(o&&s){u[u.length-1].S+=i}else{u.push(o?newVNode(null,i):i)}s=o}}};l(t);if(r){if(r.key){a=r.key}{var f=r.className||r.class;if(f){r.class=typeof f!=="object"?f:Object.keys(f).filter((function(e){return f[e]})).join(" ")}}}var c=newVNode(e,null);c.C=r;if(u.length>0){c._=u}{c.T=a}return c};var newVNode=function(e,r){var t={i:0,A:e,S:r,R:null,_:null};{t.C=null}{t.T=null}return t};var Host={};var isHost=function(e){return e&&e.A===Host};var parsePropertyValue=function(e,r){if(e!=null&&!isComplexType(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,r,t){var n=getElement(e);return{emit:function(e){return emitEvent(n,r,{bubbles:!!(t&4),composed:!!(t&2),cancelable:!!(t&1),detail:e})}}};var emitEvent=function(e,r,t){var n=plt.ce(r,t);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,r,t){var n=styles.get(e);if(supportsConstructableStylesheets&&t){n=n||new CSSStyleSheet;if(typeof n==="string"){n=r}else{n.replaceSync(r)}}else{n=r}styles.set(e,n)};var addStyle=function(e,r,t){var n;var i=getScopeId(r);var a=styles.get(i);if(!win.document){return i}e=e.nodeType===11?e:win.document;if(a){if(typeof a==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var s=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(i)){{s=document.querySelector("[".concat(HYDRATED_STYLE_ID,'="').concat(i,'"]'))||win.document.createElement("style");s.innerHTML=a;var u=(n=plt.k)!=null?n:queryNonceMetaTagContent(win.document);if(u!=null){s.setAttribute("nonce",u)}if(!(r.i&1)){if(e.nodeName==="HEAD"){var l=e.querySelectorAll("link[rel=preconnect]");var f=l.length>0?l[l.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(f==null?void 0:f.parentNode)===e?f:null)}else if("host"in e){if(supportsConstructableStylesheets){var c=new CSSStyleSheet;c.replaceSync(a);e.adoptedStyleSheets=__spreadArray([c],e.adoptedStyleSheets,true)}else{var v=e.querySelector("style");if(v){v.innerHTML=a+v.innerHTML}else{e.prepend(s)}}}else{e.append(s)}}if(r.i&1){e.insertBefore(s,null)}}if(r.i&4){s.innerHTML+=SLOT_FB_CSS}if(o){o.add(i)}}}else if(!e.adoptedStyleSheets.includes(a)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[a],false)}}return i};var attachStyles=function(e){var r=e.o;var t=e.$hostElement$;var n=r.i;var i=createTime("attachStyles",r.p);var a=addStyle(t.shadowRoot?t.shadowRoot:t.getRootNode(),r);if(n&10&&n&2||n&128){t["s-sc"]=a;t.classList.add(a+"-h")}i()};var getScopeId=function(e,r){return"sc-"+e.p};var setAccessor=function(e,r,t,n,i,a,o){if(t===n){return}var s=isMemberInElement(e,r);var u=r.toLowerCase();if(r==="class"){var l=e.classList;var f=parseClassList(t);var c=parseClassList(n);{l.remove.apply(l,f.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!f.includes(e)})))}}else if(r==="style"){{for(var v in t){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!t||n[v]!==t[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(r==="key");else if(r==="ref"){if(n){n(e)}}else if(!s&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(isMemberInElement(win,u)){r=u.slice(2)}else{r=u[2]+r.slice(3)}if(t||n){var d=r.endsWith(CAPTURE_EVENT_SUFFIX);r=r.replace(CAPTURE_EVENT_REGEX,"");if(t){plt.rel(e,r,t,d)}if(n){plt.ael(e,r,n,d)}}}else{var p=isComplexType(n);if((s||p&&n!==null)&&!i){try{if(!e.tagName.includes("-")){var m=n==null?"":n;if(r==="list"){s=false}else if(t==null||e[r]!=m){if(typeof e.__lookupSetter__(r)==="function"){e[r]=m}else{e.setAttribute(r,m)}}}else if(e[r]!==n){e[r]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!s||a&4||i)&&!p&&e.nodeType===1){n=n===true?"":n;{e.setAttribute(r,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,r,t,n){var i=r.R.nodeType===11&&r.R.host?r.R.host:r.R;var a=e&&e.C||{};var o=r.C||{};{for(var s=0,u=sortedAttrNames(Object.keys(a));s<u.length;s++){var l=u[s];if(!(l in o)){setAccessor(i,l,a[l],void 0,t,r.i)}}}for(var f=0,c=sortedAttrNames(Object.keys(o));f<c.length;f++){var l=c[f];setAccessor(i,l,a[l],o[l],t,r.i)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var hostTagName;var useNativeShadowDom=false;var isSvgMode=false;var createElm=function(e,r,t){var n=r._[t];var i=0;var a;var o;if(n.S!==null){a=n.R=win.document.createTextNode(n.S)}else{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}a=n.R=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&n.i&2?"slot-fb":n.A);{updateElement(null,n,isSvgMode)}if(n._){for(i=0;i<n._.length;++i){o=createElm(e,n,i);if(o){a.appendChild(o)}}}}a["s-hn"]=hostTagName;return a};var addVnodes=function(e,r,t,n,i,a){var o=e;var s;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;i<=a;++i){if(n[i]){s=createElm(null,t,i);if(s){n[i].R=s;insertBefore(o,s,r)}}}};var removeVnodes=function(e,r,t){for(var n=r;n<=t;++n){var i=e[n];if(i){var a=i.R;nullifyVNodeRefs(i);if(a){a.remove()}}}};var updateChildren=function(e,r,t,n,i){if(i===void 0){i=false}var a=0;var o=0;var s=0;var u=0;var l=r.length-1;var f=r[0];var c=r[l];var v=n.length-1;var d=n[0];var p=n[v];var m;var h;while(a<=l&&o<=v){if(f==null){f=r[++a]}else if(c==null){c=r[--l]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(f,d,i)){patch(f,d,i);f=r[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=r[--l];p=n[--v]}else if(isSameVnode(f,p,i)){patch(f,p,i);insertBefore(e,f.R,c.R.nextSibling);f=r[++a];p=n[--v]}else if(isSameVnode(c,d,i)){patch(c,d,i);insertBefore(e,c.R,f.R);c=r[--l];d=n[++o]}else{s=-1;{for(u=a;u<=l;++u){if(r[u]&&r[u].T!==null&&r[u].T===d.T){s=u;break}}}if(s>=0){h=r[s];if(h.A!==d.A){m=createElm(r&&r[o],t,s)}else{patch(h,d,i);r[s]=void 0;m=h.R}d=n[++o]}else{m=createElm(r&&r[o],t,o);d=n[++o]}if(m){{insertBefore(f.R.parentNode,m,f.R)}}}}if(a>l){addVnodes(e,n[v+1]==null?null:n[v+1].R,t,n,o,v)}else if(o>v){removeVnodes(r,a,l)}};var isSameVnode=function(e,r,t){if(t===void 0){t=false}if(e.A===r.A){if(!t){return e.T===r.T}if(t&&!e.T&&r.T){e.T=r.T}return true}return false};var patch=function(e,r,t){if(t===void 0){t=false}var n=r.R=e.R;var i=e._;var a=r._;var o=r.S;if(o===null){{updateElement(e,r,isSvgMode)}if(i!==null&&a!==null){updateChildren(n,i,r,a,t)}else if(a!==null){if(e.S!==null){n.textContent=""}addVnodes(n,null,r,a,0,a.length-1)}else if(!t&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}}else if(e.S!==o){n.data=o}};var nullifyVNodeRefs=function(e){{e.C&&e.C.ref&&e.C.ref(null);e._&&e._.map(nullifyVNodeRefs)}};var insertBefore=function(e,r,t){{return e==null?void 0:e.insertBefore(r,t)}};var renderVdom=function(e,r,t){if(t===void 0){t=false}var n=e.$hostElement$;var i=e.o;var a=e.D||newVNode(null,null);var o=isHost(r)?r:h(null,null,r);hostTagName=n.tagName;if(i.N){o.C=o.C||{};i.N.map((function(e){var r=e[0],t=e[1];return o.C[t]=n[r]}))}if(t&&o.C){for(var s=0,u=Object.keys(o.C);s<u.length;s++){var l=u[s];if(n.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){o.C[l]=n[l]}}}o.A=null;o.i|=4;e.D=o;o.R=a.R=n.shadowRoot||n;useNativeShadowDom=!!(i.i&1)&&!(i.i&128);patch(a,o,t)};var attachToAncestor=function(e,r){if(r&&!e.L&&r["s-p"]){var t=r["s-p"].push(new Promise((function(n){return e.L=function(){r["s-p"].splice(t-1,1);n()}})))}};var scheduleUpdate=function(e,r){{e.i|=16}if(e.i&4){e.i|=512;return}attachToAncestor(e,e.M);var t=function(){return dispatchHooks(e,r)};return writeTask(t)};var dispatchHooks=function(e,r){var t=e.$hostElement$;var n=createTime("scheduleUpdate",e.o.p);var i=e.t;if(!i){throw new Error("Can't render component <".concat(t.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"))}var a;if(r){a=safeCall(i,"componentWillLoad",void 0,t)}else{a=safeCall(i,"componentWillUpdate",void 0,t)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,t)}));n();return enqueue(a,(function(){return updateComponent(e,i,r)}))};var enqueue=function(e,r){return isPromisey(e)?e.then(r).catch((function(e){console.error(e);r()})):r()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,r,t){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,u,l;return __generator(this,(function(f){i=e.$hostElement$;a=createTime("update",e.o.p);o=i["s-rc"];if(t){attachStyles(e)}s=createTime("render",e.o.p);{callRender(e,r,i,t)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}s();a();{u=(n=i["s-p"])!=null?n:[];l=function(){return postUpdateComponent(e)};if(u.length===0){l()}else{Promise.all(u).then(l);e.i|=4;u.length=0}}return[2]}))}))};var callRender=function(e,r,t,n){try{r=r.render();{e.i&=~16}{e.i|=2}{{{renderVdom(e,r,n)}}}}catch(r){consoleError(r,e.$hostElement$)}return null};var postUpdateComponent=function(e){var r=e.o.p;var t=e.$hostElement$;var n=createTime("postUpdate",r);var i=e.t;var a=e.M;safeCall(i,"componentDidRender",void 0,t);if(!(e.i&64)){e.i|=64;{addHydratedFlag(t)}safeCall(i,"componentDidLoad",void 0,t);n();{e.v(t);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,t);n()}{if(e.L){e.L();e.L=void 0}if(e.i&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.i&=~(4|512)}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,r,t,n){if(e&&e[r]){try{return e[r](t)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var r;return e.setAttribute((r=BUILD.hydratedSelectorName)!=null?r:"hydrated","")};var getValue=function(e,r){return getHostRef(e).u.get(r)};var setValue=function(e,r,t,n){var i=getHostRef(e);if(!i){throw new Error("Couldn't find host element for \"".concat(n.p,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.u.get(r);var s=i.i;var u=i.t;t=parsePropertyValue(t,n.V[r][0]);var l=Number.isNaN(o)&&Number.isNaN(t);var f=t!==o&&!l;if((!(s&8)||o===void 0)&&f){i.u.set(r,t);if(u){if(n.H&&s&128){var c=n.H[r];if(c){c.map((function(e){try{u[e](t,o,r)}catch(e){consoleError(e,a)}}))}}if((s&(2|16))===2){if(u.componentShouldUpdate){if(u.componentShouldUpdate(t,o,r)===false){return}}scheduleUpdate(i,false)}}}};var proxyComponent=function(e,r,t){var n,i;var a=e.prototype;if(r.i&64&&t&1){FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((function(e){Object.defineProperty(a,e,{value:function(){var r=[];for(var t=0;t<arguments.length;t++){r[t]=arguments[t]}var n=getHostRef(this);var i=n.t;if(!i){n.l.then((function(t){var n=t[e];typeof n==="function"&&n.call.apply(n,__spreadArray([t],r,false))}))}else{var a=i[e];typeof a==="function"&&a.call.apply(a,__spreadArray([i],r,false))}}})}))}if(r.V||(r.H||e.watchers)){if(e.watchers&&!r.H){r.H=e.watchers}var o=Object.entries((n=r.V)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||t&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},s=o.get,u=o.set;if(s)r.V[n][0]|=2048;if(u)r.V[n][0]|=4096;if(t&1||!s){Object.defineProperty(a,n,{get:function(){{if((r.V[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var t=e?e.t:a;if(!t)return;return t[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(u){var s=i&32?this[n]:o.$hostElement$[n];if(typeof s==="undefined"&&o.u.get(n)){e=o.u.get(n)}else if(!o.u.get(n)&&s){o.u.set(n,s)}u.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,r);return}{if((t&1)===0||(r.V[n][0]&4096)===0){setValue(this,n,e,r);if(t&1&&!o.t){o.l.then((function(){if(r.V[n][0]&4096&&o.t[n]!==o.u.get(n)){o.t[n]=e}}))}return}var l=function(){var t=o.t[n];if(!o.u.get(n)&&t){o.u.set(n,t)}o.t[n]=parsePropertyValue(e,i);setValue(a,n,o.t[n],r)};if(o.t){l()}else{o.l.then((function(){return l()}))}}}})}}));if(t&1){var s=new Map;a.attributeChangedCallback=function(e,t,n){var i=this;plt.jmp((function(){var o;var u=s.get(e);if(i.hasOwnProperty(u)&&BUILD.lazyLoad){n=i[u];delete i[u]}else if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var l=getHostRef(i);var f=l==null?void 0:l.i;if(f&&!(f&8)&&f&128&&n!==t){var c=l.t;var v=(o=r.H)==null?void 0:o[e];v==null?void 0:v.forEach((function(r){if(c[r]!=null){c[r].call(c,n,t,e)}}))}return}var d=Object.getOwnPropertyDescriptor(a,u);n=n===null&&typeof i[u]==="boolean"?false:n;if(n!==i[u]&&(!d.get||!!d.set)){i[u]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=r.H)!=null?i:{}),true),o.filter((function(e){var r=e[0],t=e[1];return t[0]&15})).map((function(e){var t=e[0],n=e[1];var i;var a=n[1]||t;s.set(a,t);if(n[0]&512){(i=r.N)==null?void 0:i.push([t,a])}return a})),true)))}}return e};var initializeComponent=function(e,r,t,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,s,u,l,f,c,v,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((r.i&32)===0))return[3,6];r.i|=32;i=t.m;if(!i)return[3,4];a=loadModule(t,r);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=p.sent();o();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.p,"#").concat(r.O,'" was not found'))}if(!n.isProxied){{t.H=n.watchers}proxyComponent(n,t,2);n.isProxied=true}s=createTime("createInstance",t.p);{r.i|=8}try{new n(r)}catch(r){consoleError(r,e)}{r.i&=~8}{r.i|=128}s();fireConnectedCallback(r.t,e);return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return r.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}f=getScopeId(t);if(!styles.has(f)){c=createTime("registerStyles",t.p);registerStyle(f,l,!!(t.i&1));c()}}p.label=6;case 6:v=r.M;d=function(){return scheduleUpdate(r,true)};if(v&&v["s-rc"]){v["s-rc"].push(d)}else{d()}return[2]}}))}))};var fireConnectedCallback=function(e,r){{safeCall(e,"connectedCallback",void 0,r)}};var connectedCallback=function(e){if((plt.i&1)===0){var r=getHostRef(e);var t=r.o;var n=createTime("connectedCallback",t.p);if(!(r.i&1)){r.i|=1;{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(r,r.M=i);break}}}if(t.V){Object.entries(t.V).map((function(r){var t=r[0],n=r[1][0];if(n&31&&e.hasOwnProperty(t)){var i=e[t];delete e[t];e[t]=i}}))}{initializeComponent(e,r,t)}}else{if(r==null?void 0:r.t){fireConnectedCallback(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return fireConnectedCallback(r.t,e)}))}}n()}};var disconnectInstance=function(e,r){{safeCall(e,"disconnectedCallback",void 0,r||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var r;return __generator(this,(function(t){if((plt.i&1)===0){r=getHostRef(e);if(r==null?void 0:r.t){disconnectInstance(r.t,e)}else if(r==null?void 0:r.l){r.l.then((function(){return disconnectInstance(r.t,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,r){if(r===void 0){r={}}var t;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=r.exclude||[];var o=win.customElements;var s=win.document.head;var u=s.querySelector("meta[charset]");var l=win.document.createElement("style");var f=[];var c;var v=true;Object.assign(plt,r);plt.h=new URL(r.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(r){var t;var n={i:r[0],p:r[1],V:r[2],P:r[3]};if(n.i&4){d=true}{n.V=r[2]}{n.N=[]}{n.H=(t=r[4])!=null?t:{}}var s=n.p;var u=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;t.hasRegisteredEventListeners=false;r=t;registerHost(r,n);if(n.i&1){{if(!r.shadowRoot){{r.attachShadow({mode:"open"})}}else{if(r.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(n.p,"! Mode is set to ").concat(r.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return t}r.prototype.connectedCallback=function(){var e=this;getHostRef(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var r;var t=getHostRef(e);var n=f.findIndex((function(r){return r===e}));if(n>-1){f.splice(n,1)}if(((r=t==null?void 0:t.D)==null?void 0:r.R)instanceof Node&&!t.D.R.isConnected){delete t.D.R}}))};r.prototype.componentOnReady=function(){return getHostRef(this).l};return r}(HTMLElement);if(n.i&64){u.formAssociated=true}n.m=e[0];if(!a.includes(s)&&!o.get(s)){i.push(s);o.define(s,proxyComponent(u,n,1))}}))}));if(i.length>0){if(d){l.textContent+=SLOT_FB_CSS}{l.textContent+=i.sort()+HYDRATED_CSS}if(l.innerHTML.length){l.setAttribute("data-styles","");var p=(t=plt.k)!=null?t:queryNonceMetaTagContent(win.document);if(p!=null){l.setAttribute("nonce",p)}s.insertBefore(l,u?u.nextSibling:s.firstChild)}}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.k=e};export{Host as H,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,h=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?w(v):a.raf(v))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},v=()=>{b(h),b(m),(p=h.length>0)&&a.raf(v)},w=e=>f().then(e),$=y(m,!0),S=e=>"object"==(e=typeof e)||"function"===e;function g(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>O,ok:()=>j,unwrap:()=>E,unwrapErr:()=>M});var j=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function O(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>j(e))):j(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,E=e=>{if(e.isOk)return e.value;throw e.value},M=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?R(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.p=r),u.h=l,u},R=(e,t)=>({o:0,m:e,i:t,v:null,p:null,u:null,h:null}),x={},D=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):e,A=e=>t(e).$hostElement$,U=(e,t,n)=>{const o=A(e);return{emit:e=>W(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},W=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},N=new WeakMap,H=e=>"sc-"+e.$,L=(e,t,n,l,s,i)=>{if(n===l)return;let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n);let s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&1===e.nodeType&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(z);t=t.replace(V,""),n&&a.rel(e,t,n,o),l&&a.ael(e,t,l,o)}},T=/\s/,F=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(T):[]),z="Capture",V=RegExp(z+"$"),q=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of G(Object.keys(l)))e in s||L(o,e,l[e],void 0,n,t.o);for(const e of G(Object.keys(s)))L(o,e,l[e],s[e],n,t.o)};function G(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var I=!1,Y=(e,t,n)=>{const o=t.p[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElement(o.m),q(null,o,I),o.p)for(i=0;i<o.p.length;++i)s=Y(e,o,i),s&&l.appendChild(s)}return l["s-hn"]=C,l},_=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Y(null,n,l),i&&(o[l].v=i,X(r,i,t)))},B=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;Q(t),e&&e.remove()}}},J=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.h&&t.h&&(e.h=t.h),!0):e.h===t.h),K=(e,t,n=!1)=>{const o=t.v=e.v,l=e.p,s=t.p,i=t.i;null===i?(q(e,t,I),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],p=t[f],h=o.length-1,m=o[0],y=o[h];for(;r<=f&&c<=h;)if(null==d)d=t[++r];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--h];else if(J(d,m,l))K(d,m,l),d=t[++r],m=o[++c];else if(J(p,y,l))K(p,y,l),p=t[--f],y=o[--h];else if(J(d,y,l))K(d,y,l),X(e,d.v,p.v.nextSibling),d=t[++r],y=o[--h];else if(J(p,m,l))K(p,m,l),X(e,p.v,d.v),p=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].h&&t[a].h===m.h){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=Y(t&&t[c],n,u):(K(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=Y(t&&t[c],n,c),m=o[++c]),s&&X(d.v.parentNode,s,d.v)}r>f?_(e,null==o[h+1]?null:o[h+1].v,n,o,c,h):c>h&&B(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),_(o,null,t,s,0,s.length-1)):!n&&null!==l&&B(l,0,l.length-1)):e.i!==i&&(o.data=i)},Q=e=>{e.u&&e.u.ref&&e.u.ref(null),e.p&&e.p.map(Q)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{if(t&&!e.S&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.S=()=>{t["s-p"].splice(n-1,1),o()})))}},ee=(e,t)=>{if(e.o|=16,!(4&e.o))return Z(e,e.j),$((()=>te(e,t)));e.o|=512},te=(e,t)=>{const n=e.$hostElement$,o=e.t;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=ce(o,t?"componentWillLoad":"componentWillUpdate",void 0,n),l=ne(l,(()=>ce(o,"componentWillRender",void 0,n))),ne(l,(()=>le(e,o,t)))},ne=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=H(t),l=i.get(o);if(!u.document)return o;if(e=11===e.nodeType?e:u.document,l)if("string"==typeof l){let s,i=N.get(e=e.head||e);if(i||N.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.O)?n:g(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);se(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},se=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||R(null,null),i=(e=>e&&e.m===x)(t)?t:P(null,null,t);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([e,t])=>i.u[t]=o[e]))),n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,K(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,o=e.j;ce(n,"componentDidRender",void 0,t),64&e.o?ce(n,"componentDidUpdate",void 0,t):(e.o|=64,ue(t),ce(n,"componentDidLoad",void 0,t),e.P(t),o||re()),e.S&&(e.S(),e.S=void 0),512&e.o&&w((()=>ee(e,!1))),e.o&=-517},re=()=>{w((()=>W(u,"appload",{detail:{namespace:"mds-input-range"}})))},ce=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ue=e=>e.setAttribute("hydrated",""),ae=(e,n,o,s)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${s.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.R.get(n),u=i.o,a=i.t;if(o=D(o,s.D[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.R.set(n,o),a)){if(s.A&&128&u){const e=s.A[n];e&&e.map((e=>{try{a[e](o,c,n)}catch(e){l(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;ee(i,!1)}}},fe=(e,n,o)=>{var l,s;const i=e.prototype;if(64&n.o&&1&o&&c.forEach((e=>{Object.defineProperty(i,e,{value(...n){const o=t(this),l=o.t;if(l){const t=l[e];"function"==typeof t&&t.call(l,...n)}else o.U.then((t=>{const o=t[e];"function"==typeof o&&o.call(t,...n)}))}})})),n.D||n.A||e.watchers){e.watchers&&!n.A&&(n.A=e.watchers);const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(n.D[e][0]|=2048),r&&(n.D[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.D[e][0]))return((e,n)=>t(this).R.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=t(this);if(r){const t=32&l?this[e]:i.$hostElement$[e];return void 0===t&&i.R.get(e)?s=i.R.get(e):!i.R.get(e)&&t&&i.R.set(e,t),r.call(this,D(s,l)),void ae(this,e,s=32&l?this[e]:i.$hostElement$[e],n)}{if(!(1&o&&4096&n.D[e][0]))return ae(this,e,s,n),void(1&o&&!i.t&&i.U.then((()=>{4096&n.D[e][0]&&i.t[e]!==i.R.get(e)&&(i.t[e]=s)})));const t=()=>{const t=i.t[e];!i.R.get(e)&&t&&i.R.set(e,t),i.t[e]=D(s,l),ae(this,e,i.t[e],n)};i.t?t():i.U.then((()=>t()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=t(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const t=o.t,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=t[n]&&t[n].call(t,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.A)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{var l;const s=t[1]||e;return o.set(s,e),512&t[0]&&(null==(l=n.M)||l.push([e,s])),s}))]))}}return e},de=(e,t)=>{ce(e,"connectedCallback",void 0,t)},pe=(e,t)=>{ce(e,"disconnectedCallback",void 0,t||e)},he=(e,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],p=u.customElements,h=u.document.head,m=h.querySelector("meta[charset]"),y=u.document.createElement("style"),b=[];let v,w=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(e.map((e=>{e[1].map((n=>{var o;const r={o:n[0],$:n[1],D:n[2],W:n[3]};4&r.o&&($=!0),r.D=n[2],r.M=[],r.A=null!=(o=n[4])?o:{};const u=r.$,h=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,k:t,R:new Map};n.U=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),w?b.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const n=t(e),o=n.k,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?de(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>de(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){Z(n,n.j=t);break}}o.D&&Object.entries(o.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.N){const i=((e,t)=>{const n=e.$.replace(/-/g,"_"),o=e.N;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${t.H}" was not found`);o.isProxied||(n.A=o.watchers,fe(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),de(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=H(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>ee(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);(null==n?void 0:n.t)?pe(n.t,e):(null==n?void 0:n.U)&&n.U.then((()=>pe(n.t,e)))}N.has(e)&&N.delete(e),e.shadowRoot&&N.has(e.shadowRoot)&&N.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=b.findIndex((e=>e===this));o>-1&&b.splice(o,1),(null==(e=null==n?void 0:n.C)?void 0:e.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return t(this).U}};64&r.o&&(h.formAssociated=!0),r.N=e[0],f.includes(u)||p.get(u)||(c.push(u),p.define(u,fe(h,r,1)))}))})),c.length>0&&($&&(y.textContent+=r),y.textContent+=c.sort()+"{visibility:hidden}[hydrated]{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(o=a.O)?o:g(u.document);null!=e&&y.setAttribute("nonce",e),h.insertBefore(y,m?m.nextSibling:h.firstChild)}w=!1,b.length?b.map((e=>e.connectedCallback())):a.jmp((()=>v=setTimeout(re,30)))},me=e=>a.O=e;export{x as H,he as b,U as c,A as g,P as h,f as p,n as r,me as s}
|