@warp-ds/elements 2.4.0-next.4 → 2.4.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/custom-elements.json +3121 -0
  2. package/dist/index.d.ts +728 -0
  3. package/dist/packages/checkbox/checkbox-group.js +3 -11
  4. package/dist/packages/checkbox/checkbox-group.js.map +7 -0
  5. package/dist/packages/checkbox/checkbox.js +2572 -201
  6. package/dist/packages/checkbox/checkbox.js.map +7 -0
  7. package/dist/packages/deadtoggle/index.js +2547 -51
  8. package/dist/packages/deadtoggle/index.js.map +7 -0
  9. package/dist/packages/pageindicator/index.js +28 -44
  10. package/dist/packages/pageindicator/index.js.map +7 -0
  11. package/dist/packages/pagination/index.js +2484 -183
  12. package/dist/packages/pagination/index.js.map +7 -0
  13. package/dist/packages/radio/radio-group-styles.js +3 -3
  14. package/dist/packages/radio/radio-group-styles.js.map +7 -0
  15. package/dist/packages/radio/radio-group.js +2618 -312
  16. package/dist/packages/radio/radio-group.js.map +7 -0
  17. package/dist/packages/radio/radio-styles.js +1 -0
  18. package/dist/packages/radio/radio-styles.js.map +7 -0
  19. package/dist/packages/radio/radio.js +2556 -109
  20. package/dist/packages/radio/radio.js.map +7 -0
  21. package/dist/packages/radio/radio.stories.js +3688 -47
  22. package/dist/packages/radio/radio.stories.js.map +7 -0
  23. package/dist/packages/slider/slider-thumb.js +2646 -399
  24. package/dist/packages/slider/slider-thumb.js.map +7 -0
  25. package/dist/packages/slider/slider.js +2603 -272
  26. package/dist/packages/slider/slider.js.map +7 -0
  27. package/dist/packages/stepindicator/index.js +2459 -189
  28. package/dist/packages/stepindicator/index.js.map +7 -0
  29. package/dist/packages/tabs/tab.js +2451 -78
  30. package/dist/packages/tabs/tab.js.map +7 -0
  31. package/dist/packages/tabs/tabs.js +2443 -260
  32. package/dist/packages/tabs/tabs.js.map +7 -0
  33. package/dist/packages/textarea/textarea.js +2465 -210
  34. package/dist/packages/textarea/textarea.js.map +7 -0
  35. package/dist/web-types.json +784 -1
  36. package/package.json +1 -1
@@ -1,242 +1,2624 @@
1
- // @warp-css;
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- import { FormControlMixin } from '@open-wc/form-control';
9
- import { html, LitElement, nothing } from 'lit';
10
- import { property, query, state } from 'lit/decorators.js';
11
- import { ifDefined } from 'lit/directives/if-defined.js';
12
- import { reset } from '../styles.js';
13
- import { wSliderThumbStyles } from './styles/w-slider-thumb.styles.js';
14
- import { styles as unoStyles } from './styles.js';
15
- import { i18n } from '@lingui/core';
16
- /**
17
- * Component to place inside a `<w-slider>`.
18
- *
19
- * [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-slider-and-range-slider--docs)
20
- */
21
- class WarpSliderThumb extends FormControlMixin(LitElement) {
22
- constructor() {
23
- super(...arguments);
24
- this.invalid = false;
25
- /** Set by `<w-slider>` */
26
- this.allowValuesOutsideRange = false;
27
- /** Set by `<w-slider>` */
28
- this.suffix = '';
29
- /** @internal */
30
- this._showTooltip = false;
31
- /** @internal */
32
- this._inputHasFocus = false;
33
- // capture the initial value using connectedCallback and #initialValue
34
- this.#initialValue = null;
35
- /**
36
- * Reference to the anchor positioning style element used by the polyfill.
37
- * @internal
38
- */
39
- this.anchorPositioningStyleElement = null;
40
- }
41
- static { this.shadowRootOptions = {
42
- ...LitElement.shadowRootOptions,
43
- delegatesFocus: true,
44
- }; }
45
- static { this.styles = [reset, unoStyles, wSliderThumbStyles]; }
46
- // capture the initial value using connectedCallback and #initialValue
47
- #initialValue;
48
- resetFormControl() {
49
- this.value = this.#initialValue;
50
- }
51
- #showTooltip() {
52
- this._showTooltip = true;
53
- this.shadowRoot.querySelector('w-attention').handleDone();
54
- }
55
- #hideTooltip() {
56
- this._showTooltip = false;
57
- }
58
- // Synchronizes the range input's value with the form value
59
- #syncRangeValue() {
60
- if (!this.range)
61
- return;
62
- if (this.value === '') {
63
- this.range.value = this.boundaryValue;
64
- }
65
- else if (this.value) {
66
- this.range.value = this.value;
1
+ var Ue=Object.create;var ie=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Xe=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty;var ve=t=>{throw TypeError(t)};var fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ze=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of He(e))!qe.call(t,a)&&a!==r&&ie(t,a,{get:()=>e[a],enumerable:!(o=me(e,a))||o.enumerable});return t};var Be=(t,e,r)=>(r=t!=null?Ue(Xe(t)):{},Ze(e||!t||!t.__esModule?ie(r,"default",{value:t,enumerable:!0}):r,t));var m=(t,e,r,o)=>{for(var a=o>1?void 0:o?me(e,r):e,n=t.length-1,s;n>=0;n--)(s=t[n])&&(a=(o?s(e,r,a):s(a))||a);return o&&a&&ie(e,r,a),a};var se=(t,e,r)=>e.has(t)||ve("Cannot "+r);var we=(t,e,r)=>(se(t,e,"read from private field"),r?r.call(t):e.get(t)),ne=(t,e,r)=>e.has(t)?ve("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),xe=(t,e,r,o)=>(se(t,e,"write to private field"),o?o.call(t,r):e.set(t,r),r),p=(t,e,r)=>(se(t,e,"access private method"),r);var Ee=fe(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.errorMessages=L.ErrorType=void 0;var A;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(A=L.ErrorType||(L.ErrorType={}));L.errorMessages=new Map([[A.MalformedUnicode,"malformed Unicode character escape sequence"],[A.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[A.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[A.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[A.EndOfString,"malformed escape sequence at end of string"]])});var Ve=fe($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.unraw=$.errorMessages=$.ErrorType=void 0;var _=Ee();Object.defineProperty($,"ErrorType",{enumerable:!0,get:function(){return _.ErrorType}});Object.defineProperty($,"errorMessages",{enumerable:!0,get:function(){return _.errorMessages}});function We(t){return!t.match(/[^a-f0-9]/i)?parseInt(t,16):NaN}function B(t,e,r){let o=We(t);if(Number.isNaN(o)||r!==void 0&&r!==t.length)throw new SyntaxError(_.errorMessages.get(e));return o}function Je(t){let e=B(t,_.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function Me(t,e){let r=B(t,_.ErrorType.MalformedUnicode,4);if(e!==void 0){let o=B(e,_.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function Qe(t){return t.charAt(0)==="{"&&t.charAt(t.length-1)==="}"}function er(t){if(!Qe(t))throw new SyntaxError(_.errorMessages.get(_.ErrorType.MalformedUnicode));let e=t.slice(1,-1),r=B(e,_.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(_.errorMessages.get(_.ErrorType.CodePointLimit)):o}}function rr(t,e=!1){if(e)throw new SyntaxError(_.errorMessages.get(_.ErrorType.OctalDeprecation));let r=parseInt(t,8);return String.fromCharCode(r)}var tr=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function or(t){return tr.get(t)||t}var ar=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function Fe(t,e=!1){return t.replace(ar,function(r,o,a,n,s,i,d,g,k){if(o!==void 0)return"\\";if(a!==void 0)return Je(a);if(n!==void 0)return er(n);if(s!==void 0)return Me(s,i);if(d!==void 0)return Me(d);if(g==="0")return"\0";if(g!==void 0)return rr(g,!e);if(k!==void 0)return or(k);throw new SyntaxError(_.errorMessages.get(_.ErrorType.EndOfString))})}$.unraw=Fe;$.default=Fe});var u=function(t,e,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(t):o?o.value:e.get(t)},w=function(t,e,r,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(t,r):a?a.value=r:e.set(t,r),r};function ke(t){var e,r,o,a,n,s,i,d,g,k,z,F,y,E,M,v,T,Y,te;class Ye extends t{constructor(...l){var h,f,x;super(...l),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),a.set(this,!1),n.set(this,void 0),s.set(this,void 0),i.set(this,!0),g.set(this,""),k.set(this,()=>{w(this,a,!0,"f"),w(this,r,!0,"f"),u(this,e,"m",v).call(this)}),z.set(this,()=>{w(this,r,!1,"f"),u(this,e,"m",T).call(this,this.shouldFormValueUpdate()?u(this,g,"f"):""),!this.validity.valid&&u(this,a,"f")&&w(this,o,!0,"f");let V=u(this,e,"m",v).call(this);this.validationMessageCallback&&this.validationMessageCallback(V?this.internals.validationMessage:"")}),F.set(this,()=>{var V;u(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),w(this,i,!1,"f")),w(this,a,!0,"f"),w(this,o,!0,"f"),u(this,e,"m",v).call(this),(V=this===null||this===void 0?void 0:this.validationMessageCallback)===null||V===void 0||V.call(this,this.showError?this.internals.validationMessage:"")}),y.set(this,void 0),E.set(this,!1),M.set(this,Promise.resolve()),(h=this.addEventListener)===null||h===void 0||h.call(this,"focus",u(this,k,"f")),(f=this.addEventListener)===null||f===void 0||f.call(this,"blur",u(this,z,"f")),(x=this.addEventListener)===null||x===void 0||x.call(this,"invalid",u(this,F,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let l=this.validators.map(x=>x.attribute).flat(),h=super.observedAttributes||[];return[...new Set([...h,...l])]}static getValidator(l){return this.validators.find(h=>h.attribute===l)||null}static getValidators(l){return this.validators.filter(h=>{var f;if(h.attribute===l||!((f=h.attribute)===null||f===void 0)&&f.includes(l))return!0})}get form(){return this.internals.form}get showError(){return u(this,e,"m",v).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(l,h,f){var x;(x=super.attributeChangedCallback)===null||x===void 0||x.call(this,l,h,f);let H=this.constructor.getValidators(l);H!=null&&H.length&&this.validationTarget&&this.setValue(u(this,g,"f"))}setValue(l){var h;w(this,o,!1,"f"),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,""),w(this,g,l,"f");let x=this.shouldFormValueUpdate()?l:null;this.internals.setFormValue(x),u(this,e,"m",T).call(this,x),this.valueChangedCallback&&this.valueChangedCallback(x),u(this,e,"m",v).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(l=>l(u(this,M,"f")))}formResetCallback(){var l,h;w(this,a,!1,"f"),w(this,o,!1,"f"),u(this,e,"m",v).call(this),(l=this.resetFormControl)===null||l===void 0||l.call(this),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,u(this,e,"m",v).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap,i=new WeakMap,g=new WeakMap,k=new WeakMap,z=new WeakMap,F=new WeakMap,y=new WeakMap,E=new WeakMap,M=new WeakMap,e=new WeakSet,d=function(){let l=this.getRootNode(),h=`${this.localName}[name="${this.getAttribute("name")}"]`;return l.querySelectorAll(h)},v=function(){if(this.hasAttribute("disabled"))return!1;let l=u(this,o,"f")||u(this,a,"f")&&!this.validity.valid&&!u(this,r,"f");return l&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),l},T=function(l){let h=this.constructor,f={},x=h.validators,V=[],H=x.some(C=>C.isValid instanceof Promise);u(this,E,"f")||(w(this,M,new Promise(C=>{w(this,y,C,"f")}),"f"),w(this,E,!0,"f")),u(this,n,"f")&&(u(this,n,"f").abort(),w(this,s,u(this,n,"f"),"f"));let X=new AbortController;w(this,n,X,"f");let q,ge=!1;x.length&&(x.forEach(C=>{let oe=C.key||"customError",R=C.isValid(this,l,X.signal);R instanceof Promise?(V.push(R),R.then(ae=>{ae!=null&&(f[oe]=!ae,q=u(this,e,"m",te).call(this,C,l),u(this,e,"m",Y).call(this,f,q))})):(f[oe]=!R,this.validity[oe]!==!R&&(ge=!0),!R&&!q&&(q=u(this,e,"m",te).call(this,C,l)))}),Promise.allSettled(V).then(()=>{var C;X!=null&&X.signal.aborted||(w(this,E,!1,"f"),(C=u(this,y,"f"))===null||C===void 0||C.call(this))}),(ge||!H)&&u(this,e,"m",Y).call(this,f,q))},Y=function(l,h){if(this.validationTarget)this.internals.setValidity(l,h,this.validationTarget),w(this,i,!1,"f");else{if(this.internals.setValidity(l,h),this.internals.validity.valid)return;w(this,i,!0,"f")}},te=function(l,h){if(this.validityCallback){let f=this.validityCallback(l.key||"customError");if(f)return f}return l.message instanceof Function?l.message(this,h):l.message},Ye}import{html as I,LitElement as Le,nothing as O}from"lit";import{property as P,query as De,state as S}from"lit/decorators.js";import{ifDefined as J}from"lit/directives/if-defined.js";import{css as ye}from"lit";var _e=ye`
3
+ *,
4
+ :before,
5
+ :after {
6
+ box-sizing: border-box;
7
+ border-style: solid;
8
+ border-width: 0;
9
+ border-color: var(--w-s-color-border);
10
+ }
11
+ html {
12
+ font-size: 62.5%;
13
+ }
14
+ body {
15
+ background-color: var(--w-s-color-background);
16
+ min-height: 100%;
17
+ margin: 0;
18
+ overflow-y: scroll;
19
+ }
20
+ body,
21
+ :host {
22
+ -webkit-text-size-adjust: 100%;
23
+ tab-size: 4;
24
+ -webkit-tap-highlight-color: transparent;
25
+ font-family: var(--w-font-family);
26
+ font-size: var(--w-font-size-m);
27
+ line-height: var(--w-line-height-m);
28
+ color: var(--w-s-color-text);
29
+ }
30
+ hr {
31
+ color: inherit;
32
+ border-top-width: 1px;
33
+ height: 0;
34
+ }
35
+ abbr:where([title]) {
36
+ -webkit-text-decoration: underline dotted;
37
+ text-decoration: underline dotted;
38
+ }
39
+ h1,
40
+ h2,
41
+ h3,
42
+ h4,
43
+ h5,
44
+ h6 {
45
+ font-size: inherit;
46
+ font-weight: 700;
47
+ }
48
+ a {
49
+ cursor: pointer;
50
+ color: var(--w-s-color-text-link);
51
+ text-decoration: none;
52
+ }
53
+ a:hover,
54
+ a:focus,
55
+ a:active {
56
+ text-decoration: underline;
57
+ }
58
+ a:focus-visible {
59
+ outline: 2px solid var(--w-s-color-border-focus);
60
+ outline-offset: 1px;
61
+ }
62
+ b,
63
+ strong {
64
+ font-weight: 700;
65
+ }
66
+ code,
67
+ kbd,
68
+ samp,
69
+ pre {
70
+ font-family:
71
+ ui-monospace,
72
+ SFMono-Regular,
73
+ Menlo,
74
+ Monaco,
75
+ Consolas,
76
+ Liberation Mono,
77
+ Courier New,
78
+ monospace;
79
+ font-size: 1em;
80
+ }
81
+ sub,
82
+ sup {
83
+ vertical-align: baseline;
84
+ font-size: 75%;
85
+ line-height: 0;
86
+ position: relative;
87
+ }
88
+ sub {
89
+ bottom: -0.25em;
90
+ }
91
+ sup {
92
+ top: -0.5em;
93
+ }
94
+ table {
95
+ text-indent: 0;
96
+ border-color: inherit;
97
+ border-collapse: collapse;
98
+ }
99
+ button,
100
+ input,
101
+ optgroup,
102
+ select,
103
+ textarea {
104
+ font-family: inherit;
105
+ font-size: 100%;
106
+ font-weight: inherit;
107
+ line-height: inherit;
108
+ color: inherit;
109
+ margin: 0;
110
+ padding: 0;
111
+ }
112
+ button,
113
+ select {
114
+ text-transform: none;
115
+ }
116
+ button,
117
+ [type='button'],
118
+ [type='reset'],
119
+ [type='submit'] {
120
+ -webkit-appearance: button;
121
+ }
122
+ :-moz-focusring {
123
+ outline: auto;
124
+ }
125
+ :-moz-ui-invalid {
126
+ box-shadow: none;
127
+ }
128
+ progress {
129
+ vertical-align: baseline;
130
+ }
131
+ ::-webkit-inner-spin-button {
132
+ height: auto;
133
+ }
134
+ ::-webkit-outer-spin-button {
135
+ height: auto;
136
+ }
137
+ [type='search'] {
138
+ -webkit-appearance: textfield;
139
+ outline-offset: -2px;
140
+ }
141
+ ::-webkit-search-decoration {
142
+ -webkit-appearance: none;
143
+ }
144
+ ::-webkit-file-upload-button {
145
+ -webkit-appearance: button;
146
+ font: inherit;
147
+ }
148
+ summary {
149
+ display: list-item;
150
+ }
151
+ blockquote,
152
+ dl,
153
+ dd,
154
+ h1,
155
+ h2,
156
+ h3,
157
+ h4,
158
+ h5,
159
+ h6,
160
+ hr,
161
+ figure,
162
+ p,
163
+ pre {
164
+ margin: 0;
165
+ }
166
+ fieldset {
167
+ margin: 0;
168
+ padding: 0;
169
+ }
170
+ legend {
171
+ padding: 0;
172
+ }
173
+ ol,
174
+ ul,
175
+ menu {
176
+ margin: 0;
177
+ padding: 0;
178
+ list-style: none;
179
+ }
180
+ textarea {
181
+ resize: vertical;
182
+ }
183
+ input::placeholder,
184
+ textarea::placeholder {
185
+ opacity: 1;
186
+ color: var(--w-s-color-text-placeholder);
187
+ }
188
+ button,
189
+ [role='button'] {
190
+ cursor: pointer;
191
+ }
192
+ :disabled {
193
+ cursor: default;
194
+ }
195
+ img,
196
+ svg,
197
+ video,
198
+ canvas,
199
+ audio,
200
+ iframe,
201
+ embed,
202
+ object {
203
+ vertical-align: middle;
204
+ display: block;
205
+ }
206
+ img,
207
+ video {
208
+ max-width: 100%;
209
+ height: auto;
210
+ }
211
+ h1 {
212
+ font-size: var(--w-font-size-xxl);
213
+ line-height: var(--w-line-height-xxl);
214
+ }
215
+ h2 {
216
+ font-size: var(--w-font-size-xl);
217
+ line-height: var(--w-line-height-xl);
218
+ }
219
+ h3 {
220
+ font-size: var(--w-font-size-l);
221
+ line-height: var(--w-line-height-l);
222
+ }
223
+ h4 {
224
+ font-size: var(--w-font-size-m);
225
+ line-height: var(--w-line-height-m);
226
+ }
227
+ h5 {
228
+ font-size: var(--w-font-size-s);
229
+ line-height: var(--w-line-height-s);
230
+ }
231
+ dt,
232
+ dd {
233
+ margin: 0 16px;
234
+ }
235
+ h1,
236
+ h2,
237
+ h3,
238
+ h4,
239
+ h5,
240
+ ul,
241
+ ol,
242
+ dl,
243
+ p,
244
+ blockquote {
245
+ margin: 0 0 8px;
246
+ }
247
+ [hidden] {
248
+ display: none !important;
249
+ }
250
+ [tabindex='-1']:focus:not(:focus-visible) {
251
+ outline: none;
252
+ }
253
+ legend {
254
+ float: left;
255
+ width: 100%;
256
+ margin: 0;
257
+ padding: 0;
258
+ display: table;
259
+ }
260
+ legend + * {
261
+ clear: both;
262
+ }
263
+ fieldset {
264
+ border: 0;
265
+ min-width: 0;
266
+ margin: 0;
267
+ padding: 0.01em 0 0;
268
+ }
269
+ body:not(:-moz-handler-blocked) fieldset {
270
+ display: table-cell;
271
+ }
272
+ svg {
273
+ pointer-events: none;
274
+ }
275
+ `,xr=ye`*, :before, :after {
276
+ --w-rotate: 0;
277
+ --w-rotate-x: 0;
278
+ --w-rotate-y: 0;
279
+ --w-rotate-z: 0;
280
+ --w-scale-x: 1;
281
+ --w-scale-y: 1;
282
+ --w-scale-z: 1;
283
+ --w-skew-x: 0;
284
+ --w-skew-y: 0;
285
+ --w-translate-x: 0;
286
+ --w-translate-y: 0;
287
+ --w-translate-z: 0
67
288
  }
68
- }
69
- #handleValidity(error) {
70
- this.dispatchEvent(new CustomEvent('slidervalidity', {
71
- bubbles: true,
72
- detail: { invalid: error, slot: this.slot },
73
- }));
74
- }
75
- async updateFieldAfterValidation() {
76
- const input = this.shadowRoot.querySelector('w-textfield');
77
- await this.#handleValueChange(input.value, true);
78
- }
79
- async #handleValueChange(value, isFromTextInput) {
80
- let valueNum = Number.parseInt(value);
81
- if (this.allowValuesOutsideRange && !isFromTextInput && this.step) {
82
- const valueIsCloseToSliderEdge = (this.slot === 'to' && valueNum >= Number(this.max) - 1) ||
83
- (this.slot === 'from' && valueNum <= Number(this.min) + 1);
84
- if (!valueIsCloseToSliderEdge) {
85
- const multiplier = 1 / this.step;
86
- valueNum = Math.round(valueNum * multiplier) / multiplier;
87
- value = valueNum.toString();
289
+
290
+ .h4, .t4 {
291
+ font-weight: 700;
292
+ font-size: var(--w-font-size-m);
293
+ line-height: var(--w-line-height-m)
294
+ }
295
+
296
+ .t3 {
297
+ font-weight: 700;
298
+ font-size: var(--w-font-size-l);
299
+ line-height: var(--w-line-height-l)
300
+ }
301
+
302
+ @media (min-width: 480px) {
303
+ .sm\\:h3 {
304
+ font-weight: 700;
305
+ font-size: var(--w-font-size-l);
306
+ line-height: var(--w-line-height-l)
307
+ }
308
+ }
309
+
310
+ .text-center {
311
+ text-align: center
312
+ }
313
+
314
+ .before\\:text-center:before {
315
+ text-align: center
316
+ }
317
+
318
+ .text-left {
319
+ text-align: left
320
+ }
321
+
322
+ .text-right {
323
+ text-align: right
324
+ }
325
+
326
+ .align-middle {
327
+ vertical-align: middle
328
+ }
329
+
330
+ .animate-inprogress {
331
+ background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;
332
+ background-size: 30px 30px;
333
+ animation: animate-inprogress 3s linear infinite
334
+ }
335
+
336
+ @keyframes animate-inprogress {
337
+ 0% {
338
+ background-position: 0 0
339
+ }
340
+ to {
341
+ background-position: 60px 0
342
+ }
343
+ }
344
+
345
+ .\\[--w-modal-max-height\\:80\\%\\] {
346
+ --w-modal-max-height: 80%
347
+ }
348
+
349
+ .\\[--w-modal-width\\:640px\\] {
350
+ --w-modal-width: 640px
351
+ }
352
+
353
+ .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {
354
+ --w-outline-offset: -2px
355
+ }
356
+
357
+ .backdrop-blur {
358
+ -webkit-backdrop-filter: blur(4px);
359
+ backdrop-filter: blur(4px)
360
+ }
361
+
362
+ .peer:checked ~ .peer-checked\\:before\\:bg-center:before {
363
+ background-position: center
364
+ }
365
+
366
+ .hover\\:bg-clip-padding:hover {
367
+ -webkit-background-clip: padding-box;
368
+ background-clip: padding-box
369
+ }
370
+
371
+ .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {
372
+ background-color: transparent
373
+ }
374
+
375
+ .bg-\\[--w-black\\/25\\] {
376
+ background-color: rgba(var(--w-rgb-black), .25)
377
+ }
378
+
379
+ .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {
380
+ background-color: rgba(var(--w-rgb-black), .7)
381
+ }
382
+
383
+ .bg-\\[--w-color-badge-info-background\\] {
384
+ background-color: var(--w-color-badge-info-background)
385
+ }
386
+
387
+ .bg-\\[--w-color-badge-negative-background\\] {
388
+ background-color: var(--w-color-badge-negative-background)
389
+ }
390
+
391
+ .bg-\\[--w-color-badge-neutral-background\\] {
392
+ background-color: var(--w-color-badge-neutral-background)
393
+ }
394
+
395
+ .bg-\\[--w-color-badge-positive-background\\] {
396
+ background-color: var(--w-color-badge-positive-background)
397
+ }
398
+
399
+ .bg-\\[--w-color-badge-sponsored-background\\] {
400
+ background-color: var(--w-color-badge-sponsored-background)
401
+ }
402
+
403
+ .bg-\\[--w-color-badge-warning-background\\] {
404
+ background-color: var(--w-color-badge-warning-background)
405
+ }
406
+
407
+ .bg-\\[--w-color-button-primary-background\\] {
408
+ background-color: var(--w-color-button-primary-background)
409
+ }
410
+
411
+ .bg-\\[--w-color-buttongroup-utility-background-selected\\] {
412
+ background-color: var(--w-color-buttongroup-utility-background-selected)
413
+ }
414
+
415
+ .bg-\\[--w-color-callout-background\\] {
416
+ background-color: var(--w-color-callout-background)
417
+ }
418
+
419
+ .bg-\\[--w-color-pill-suggestion-background\\] {
420
+ background-color: var(--w-color-pill-suggestion-background)
421
+ }
422
+
423
+ .bg-\\[--w-color-switch-track-background\\] {
424
+ background-color: var(--w-color-switch-track-background)
425
+ }
426
+
427
+ .bg-\\[--w-s-color-surface-elevated-100\\] {
428
+ background-color: var(--w-s-color-surface-elevated-100)
429
+ }
430
+
431
+ .bg-\\[--w-s-color-surface-elevated-300\\] {
432
+ background-color: var(--w-s-color-surface-elevated-300)
433
+ }
434
+
435
+ .bg-\\[--w-s-icon-selected\\] {
436
+ background-color: var(--w-s-icon-selected)
437
+ }
438
+
439
+ .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {
440
+ background-color: var(--w-color-switch-track-background-hover)
441
+ }
442
+
443
+ .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {
444
+ background-color: var(--w-color-button-pill-background-hover)
445
+ }
446
+
447
+ .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {
448
+ background-color: var(--w-color-button-primary-background-hover)
449
+ }
450
+
451
+ .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {
452
+ background-color: var(--w-color-buttongroup-utility-background-hover)
453
+ }
454
+
455
+ .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {
456
+ background-color: var(--w-color-pill-suggestion-background-hover)
457
+ }
458
+
459
+ .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {
460
+ background-color: var(--w-s-icon-subtle)
461
+ }
462
+
463
+ .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {
464
+ background-color: rgba(var(--w-rgb-black), .85)
465
+ }
466
+
467
+ .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {
468
+ background-color: var(--w-color-button-pill-background-active)
469
+ }
470
+
471
+ .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {
472
+ background-color: var(--w-color-button-primary-background-active)
473
+ }
474
+
475
+ .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {
476
+ background-color: var(--w-color-buttongroup-utility-background-selected)
477
+ }
478
+
479
+ .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {
480
+ background-color: var(--w-color-pill-suggestion-background-active)
481
+ }
482
+
483
+ .active\\:bg-\\[var\\(--w-black\\)\\]:active {
484
+ background-color: var(--w-black)
485
+ }
486
+
487
+ .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {
488
+ background-image: var(--w-icon-toggle-checked)
489
+ }
490
+
491
+ .appearance-none {
492
+ -moz-appearance: none;
493
+ appearance: none;
494
+ -webkit-appearance: none
495
+ }
496
+
497
+ .will-change-height {
498
+ will-change: height
499
+ }
500
+
501
+ .border, .border-1 {
502
+ border-width: 1px
503
+ }
504
+
505
+ .border-b {
506
+ border-bottom-width: 1px
507
+ }
508
+
509
+ .before\\:border:before {
510
+ border-width: 1px
511
+ }
512
+
513
+ .border-0 {
514
+ border-width: 0
515
+ }
516
+
517
+ .border-2 {
518
+ border-width: 2px
519
+ }
520
+
521
+ .border-b-0 {
522
+ border-bottom-width: 0
523
+ }
524
+
525
+ .border-b-4 {
526
+ border-bottom-width: 4px
527
+ }
528
+
529
+ .border-l-4 {
530
+ border-left-width: 4px
531
+ }
532
+
533
+ .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {
534
+ border-right-width: 0
535
+ }
536
+
537
+ .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {
538
+ border-width: .6rem
539
+ }
540
+
541
+ .border-transparent {
542
+ border-color: transparent
543
+ }
544
+
545
+ .border-\\[--w-color-buttongroup-utility-border\\] {
546
+ border-color: var(--w-color-buttongroup-utility-border)
547
+ }
548
+
549
+ .border-\\[--w-color-callout-border\\] {
550
+ border-color: var(--w-color-callout-border)
551
+ }
552
+
553
+ .border-\\[--w-s-color-background-inverted\\] {
554
+ border-color: var(--w-s-color-background-inverted)
555
+ }
556
+
557
+ .border-\\[--w-s-color-surface-elevated-300\\] {
558
+ border-color: var(--w-s-color-surface-elevated-300)
559
+ }
560
+
561
+ .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {
562
+ border-color: var(--w-color-buttongroup-utility-border-selected)
563
+ }
564
+
565
+ .divide-x > * + * {
566
+ --w-divide-x-reverse: 0;
567
+ border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));
568
+ border-right-width: calc(1px * var(--w-divide-x-reverse))
569
+ }
570
+
571
+ .divide-y > * + * {
572
+ --w-divide-y-reverse: 0;
573
+ border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));
574
+ border-bottom-width: calc(1px * var(--w-divide-y-reverse))
575
+ }
576
+
577
+ .rounded-4 {
578
+ border-radius: 4px
579
+ }
580
+
581
+ .rounded-8 {
582
+ border-radius: 8px
583
+ }
584
+
585
+ .rounded-full {
586
+ border-radius: 9999px
587
+ }
588
+
589
+ .before\\:rounded-2:before {
590
+ border-radius: 2px
591
+ }
592
+
593
+ .before\\:rounded-full:before {
594
+ border-radius: 9999px
595
+ }
596
+
597
+ .rounded-b-0 {
598
+ border-bottom-left-radius: 0;
599
+ border-bottom-right-radius: 0
600
+ }
601
+
602
+ .rounded-bl-0 {
603
+ border-bottom-left-radius: 0
604
+ }
605
+
606
+ .rounded-br-0 {
607
+ border-bottom-right-radius: 0
608
+ }
609
+
610
+ .rounded-l-0 {
611
+ border-top-left-radius: 0;
612
+ border-bottom-left-radius: 0
613
+ }
614
+
615
+ .rounded-l-full {
616
+ border-top-left-radius: 9999px;
617
+ border-bottom-left-radius: 9999px
618
+ }
619
+
620
+ .rounded-r-0 {
621
+ border-top-right-radius: 0;
622
+ border-bottom-right-radius: 0
623
+ }
624
+
625
+ .rounded-r-full {
626
+ border-top-right-radius: 9999px;
627
+ border-bottom-right-radius: 9999px
628
+ }
629
+
630
+ .rounded-tl-0 {
631
+ border-top-left-radius: 0
632
+ }
633
+
634
+ .rounded-tl-4 {
635
+ border-top-left-radius: 4px
636
+ }
637
+
638
+ .rounded-tr-0 {
639
+ border-top-right-radius: 0
640
+ }
641
+
642
+ .group:first-of-type .group-first-of-type\\:rounded-bl-8 {
643
+ border-bottom-left-radius: 8px
644
+ }
645
+
646
+ .group:first-of-type .group-first-of-type\\:rounded-tl-8 {
647
+ border-top-left-radius: 8px
648
+ }
649
+
650
+ .first\\:rounded-lb-4:first-child {
651
+ border-bottom-left-radius: 4px
652
+ }
653
+
654
+ .first\\:rounded-lt-4:first-child {
655
+ border-top-left-radius: 4px
656
+ }
657
+
658
+ .first\\:rounded-rt-4:first-child {
659
+ border-top-right-radius: 4px
660
+ }
661
+
662
+ .group:last-of-type .group-last-of-type\\:rounded-br-8 {
663
+ border-bottom-right-radius: 8px
664
+ }
665
+
666
+ .group:last-of-type .group-last-of-type\\:rounded-tr-8 {
667
+ border-top-right-radius: 8px
668
+ }
669
+
670
+ .last\\:rounded-lb-4:last-child {
671
+ border-bottom-left-radius: 4px
672
+ }
673
+
674
+ .last\\:rounded-rb-4:last-child {
675
+ border-bottom-right-radius: 4px
676
+ }
677
+
678
+ .last\\:rounded-rt-4:last-child {
679
+ border-top-right-radius: 4px
680
+ }
681
+
682
+ .caret-current {
683
+ caret-color: currentColor
684
+ }
685
+
686
+ .opacity-25 {
687
+ opacity: 25%
688
+ }
689
+
690
+ .block {
691
+ display: block
692
+ }
693
+
694
+ .before\\:block:before {
695
+ display: block
696
+ }
697
+
698
+ .inline-block {
699
+ display: inline-block
700
+ }
701
+
702
+ .inline {
703
+ display: inline
704
+ }
705
+
706
+ .flex, .open\\:flex[open] {
707
+ display: flex
708
+ }
709
+
710
+ .inline-flex {
711
+ display: inline-flex
712
+ }
713
+
714
+ .grid {
715
+ display: grid
716
+ }
717
+
718
+ .inline-grid {
719
+ display: inline-grid
720
+ }
721
+
722
+ .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {
723
+ display: none
724
+ }
725
+
726
+ .before\\:hidden:before {
727
+ display: none
728
+ }
729
+
730
+ .hover\\:underline:hover {
731
+ text-decoration-line: underline
732
+ }
733
+
734
+ .focus\\:underline:focus {
735
+ text-decoration-line: underline
736
+ }
737
+
738
+ .focus-visible\\:underline:focus-visible {
739
+ text-decoration-line: underline
740
+ }
741
+
742
+ .active\\:underline:active {
743
+ text-decoration-line: underline
744
+ }
745
+
746
+ .hover\\:no-underline:hover {
747
+ text-decoration: none
748
+ }
749
+
750
+ .focus\\:no-underline:focus {
751
+ text-decoration: none
752
+ }
753
+
754
+ .active\\:no-underline:active {
755
+ text-decoration: none
756
+ }
757
+
758
+ .flex-1 {
759
+ flex: 1 1 0%
760
+ }
761
+
762
+ .shrink {
763
+ flex-shrink: 1
764
+ }
765
+
766
+ .shrink-0 {
767
+ flex-shrink: 0
768
+ }
769
+
770
+ .shrink-0\\! {
771
+ flex-shrink: 0 !important
772
+ }
773
+
774
+ .grow, .grow-1 {
775
+ flex-grow: 1
776
+ }
777
+
778
+ .basis-auto {
779
+ flex-basis: auto
780
+ }
781
+
782
+ .flex-col {
783
+ flex-direction: column
784
+ }
785
+
786
+ .focus-within\\:focusable:focus-within {
787
+ outline: 2px solid var(--w-s-color-border-focus);
788
+ outline-offset: var(--w-outline-offset, 1px)
789
+ }
790
+
791
+ .focusable:focus, .focusable:focus-visible {
792
+ outline: 2px solid var(--w-s-color-border-focus);
793
+ outline-offset: var(--w-outline-offset, 1px)
794
+ }
795
+
796
+ .focusable:not(:focus-visible) {
797
+ outline: none
798
+ }
799
+
800
+ .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {
801
+ outline: 2px solid var(--w-s-color-border-focus);
802
+ outline-offset: var(--w-outline-offset, 1px)
803
+ }
804
+
805
+ .peer:not(:focus-visible) ~ .peer-focus\\:focusable {
806
+ outline: none
807
+ }
808
+
809
+ .focusable-inset {
810
+ --w-outline-offset: -3px
811
+ }
812
+
813
+ .gap-12 {
814
+ gap: 1.2rem
815
+ }
816
+
817
+ .gap-8 {
818
+ gap: .8rem
819
+ }
820
+
821
+ .gap-x-16 {
822
+ column-gap: 1.6rem
823
+ }
824
+
825
+ .gap-y-16 {
826
+ row-gap: 1.6rem
827
+ }
828
+
829
+ .row-span-2 {
830
+ grid-row: span 2/span 2
831
+ }
832
+
833
+ .col-span-2 {
834
+ grid-column: span 2/span 2
835
+ }
836
+
837
+ .col-span-3 {
838
+ grid-column: span 3/span 3
839
+ }
840
+
841
+ .row-start-1 {
842
+ grid-row-start: 1
843
+ }
844
+
845
+ .row-start-2 {
846
+ grid-row-start: 2
847
+ }
848
+
849
+ .col-start-2 {
850
+ grid-column-start: 2
851
+ }
852
+
853
+ .auto-rows-auto {
854
+ grid-auto-rows: auto
855
+ }
856
+
857
+ .grid-flow-col {
858
+ grid-auto-flow: column
859
+ }
860
+
861
+ .grid-rows-\\[20px_auto\\] {
862
+ grid-template-rows:20px auto
863
+ }
864
+
865
+ .grid-rows-\\[auto_20px\\] {
866
+ grid-template-rows:auto 20px
867
+ }
868
+
869
+ .grid-cols-\\[1fr_20px_1fr\\] {
870
+ grid-template-columns:1fr 20px 1fr
871
+ }
872
+
873
+ .grid-cols-\\[1fr_20px\\] {
874
+ grid-template-columns:1fr 20px
875
+ }
876
+
877
+ .grid-cols-\\[20px_1fr\\] {
878
+ grid-template-columns:20px 1fr
879
+ }
880
+
881
+ .grid-cols-\\[auto_1fr_auto\\] {
882
+ grid-template-columns:auto 1fr auto
883
+ }
884
+
885
+ .grid-cols-1 {
886
+ grid-template-columns:repeat(1, minmax(0, 1fr))
887
+ }
888
+
889
+ .grid-cols-2 {
890
+ grid-template-columns:repeat(2, minmax(0, 1fr))
891
+ }
892
+
893
+ .grid-cols-3 {
894
+ grid-template-columns:repeat(3, minmax(0, 1fr))
895
+ }
896
+
897
+ .grid-cols-4 {
898
+ grid-template-columns:repeat(4, minmax(0, 1fr))
899
+ }
900
+
901
+ .grid-cols-5 {
902
+ grid-template-columns:repeat(5, minmax(0, 1fr))
903
+ }
904
+
905
+ .grid-cols-6 {
906
+ grid-template-columns:repeat(6, minmax(0, 1fr))
907
+ }
908
+
909
+ .grid-cols-7 {
910
+ grid-template-columns:repeat(7, minmax(0, 1fr))
911
+ }
912
+
913
+ .grid-cols-8 {
914
+ grid-template-columns:repeat(8, minmax(0, 1fr))
915
+ }
916
+
917
+ .grid-cols-9 {
918
+ grid-template-columns:repeat(9, minmax(0, 1fr))
919
+ }
920
+
921
+ .overflow-hidden {
922
+ overflow: hidden
923
+ }
924
+
925
+ .overflow-x-hidden {
926
+ overflow-x: hidden
927
+ }
928
+
929
+ .overflow-y-auto {
930
+ overflow-y: auto
931
+ }
932
+
933
+ .list-none {
934
+ list-style-type: none
935
+ }
936
+
937
+ .outline-\\[--w-s-color-border-negative\\]\\! {
938
+ outline-color: var(--w-s-color-border-negative) !important
939
+ }
940
+
941
+ .outline-none {
942
+ outline: 2px solid transparent;
943
+ outline-offset: 2px
944
+ }
945
+
946
+ .focus\\:outline-none:focus {
947
+ outline: 2px solid transparent;
948
+ outline-offset: 2px
949
+ }
950
+
951
+ .items-start {
952
+ align-items: flex-start
953
+ }
954
+
955
+ .items-end {
956
+ align-items: flex-end
957
+ }
958
+
959
+ .items-center {
960
+ align-items: center
961
+ }
962
+
963
+ .self-center {
964
+ align-self: center
965
+ }
966
+
967
+ .inset-0 {
968
+ top: 0rem;
969
+ right: 0rem;
970
+ bottom: 0rem;
971
+ left: 0rem
972
+ }
973
+
974
+ .-bottom-0 {
975
+ bottom: -0rem
976
+ }
977
+
978
+ .bottom-0 {
979
+ bottom: 0rem
980
+ }
981
+
982
+ .bottom-10 {
983
+ bottom: 1rem
984
+ }
985
+
986
+ .bottom-16 {
987
+ bottom: 1.6rem
988
+ }
989
+
990
+ .left-0 {
991
+ left: 0rem
992
+ }
993
+
994
+ .left-4 {
995
+ left: .4rem
996
+ }
997
+
998
+ .right-0 {
999
+ right: 0rem
1000
+ }
1001
+
1002
+ .right-8 {
1003
+ right: .8rem
1004
+ }
1005
+
1006
+ .top-\\[1\\.92rem\\] {
1007
+ top: 1.92rem
1008
+ }
1009
+
1010
+ .top-0 {
1011
+ top: 0rem
1012
+ }
1013
+
1014
+ .top-20 {
1015
+ top: 2rem
1016
+ }
1017
+
1018
+ .top-4 {
1019
+ top: .4rem
1020
+ }
1021
+
1022
+ .top-8 {
1023
+ top: .8rem
1024
+ }
1025
+
1026
+ .before\\:bottom-0:before {
1027
+ bottom: 0rem
1028
+ }
1029
+
1030
+ .before\\:left-0:before {
1031
+ left: 0rem
1032
+ }
1033
+
1034
+ .before\\:right-0:before {
1035
+ right: 0rem
1036
+ }
1037
+
1038
+ .before\\:top-2:before {
1039
+ top: .2rem
1040
+ }
1041
+
1042
+ .-bottom-\\[8px\\] {
1043
+ bottom: -8px
1044
+ }
1045
+
1046
+ .-left-\\[8px\\] {
1047
+ left: -8px
1048
+ }
1049
+
1050
+ .-right-\\[8px\\] {
1051
+ right: -8px
1052
+ }
1053
+
1054
+ .-top-\\[8px\\] {
1055
+ top: -8px
1056
+ }
1057
+
1058
+ .top-\\[19px\\] {
1059
+ top: 19px
1060
+ }
1061
+
1062
+ .top-\\[30\\%\\] {
1063
+ top: 30%
1064
+ }
1065
+
1066
+ .justify-end {
1067
+ justify-content: flex-end
1068
+ }
1069
+
1070
+ .justify-center {
1071
+ justify-content: center
1072
+ }
1073
+
1074
+ .justify-between {
1075
+ justify-content: space-between
1076
+ }
1077
+
1078
+ .justify-items-center {
1079
+ justify-items: center
1080
+ }
1081
+
1082
+ .justify-self-start {
1083
+ justify-self: start
1084
+ }
1085
+
1086
+ .justify-self-end {
1087
+ justify-self: end
1088
+ }
1089
+
1090
+ .justify-self-center {
1091
+ justify-self: center
1092
+ }
1093
+
1094
+ .absolute {
1095
+ position: absolute
1096
+ }
1097
+
1098
+ .fixed {
1099
+ position: fixed
1100
+ }
1101
+
1102
+ .relative {
1103
+ position: relative
1104
+ }
1105
+
1106
+ .open\\:fixed[open] {
1107
+ position: fixed
1108
+ }
1109
+
1110
+ .before\\:absolute:before {
1111
+ position: absolute
1112
+ }
1113
+
1114
+ .z-10, .peer:checked ~ .peer-checked\\:z-10 {
1115
+ z-index: 10
1116
+ }
1117
+
1118
+ .z-30 {
1119
+ z-index: 30
1120
+ }
1121
+
1122
+ .z-50 {
1123
+ z-index: 50
1124
+ }
1125
+
1126
+ .hover\\:z-30:hover {
1127
+ z-index: 30
1128
+ }
1129
+
1130
+ .\\!s-bg-selected {
1131
+ background-color: var(--w-s-color-background-selected) !important
1132
+ }
1133
+
1134
+ .s-bg {
1135
+ background-color: var(--w-s-color-background)
1136
+ }
1137
+
1138
+ .s-bg-disabled {
1139
+ background-color: var(--w-s-color-background-disabled)
1140
+ }
1141
+
1142
+ .s-bg-disabled-subtle {
1143
+ background-color: var(--w-s-color-background-disabled-subtle)
1144
+ }
1145
+
1146
+ .s-bg-info-subtle {
1147
+ background-color: var(--w-s-color-background-info-subtle)
1148
+ }
1149
+
1150
+ .s-bg-inverted {
1151
+ background-color: var(--w-s-color-background-inverted)
1152
+ }
1153
+
1154
+ .s-bg-negative {
1155
+ background-color: var(--w-s-color-background-negative)
1156
+ }
1157
+
1158
+ .s-bg-negative-subtle {
1159
+ background-color: var(--w-s-color-background-negative-subtle)
1160
+ }
1161
+
1162
+ .s-bg-positive-subtle {
1163
+ background-color: var(--w-s-color-background-positive-subtle)
1164
+ }
1165
+
1166
+ .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {
1167
+ background-color: var(--w-s-color-background-primary)
1168
+ }
1169
+
1170
+ .s-bg-selected {
1171
+ background-color: var(--w-s-color-background-selected)
1172
+ }
1173
+
1174
+ .s-bg-subtle {
1175
+ background-color: var(--w-s-color-background-subtle)
1176
+ }
1177
+
1178
+ .s-bg-warning-subtle {
1179
+ background-color: var(--w-s-color-background-warning-subtle)
1180
+ }
1181
+
1182
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {
1183
+ background-color: var(--w-s-color-background-negative-hover)
1184
+ }
1185
+
1186
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {
1187
+ background-color: var(--w-s-color-background-primary-hover)
1188
+ }
1189
+
1190
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {
1191
+ background-color: var(--w-s-color-background-disabled)
1192
+ }
1193
+
1194
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {
1195
+ background-color: var(--w-s-color-background-negative)
1196
+ }
1197
+
1198
+ .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {
1199
+ background-color: var(--w-s-color-background-primary)
1200
+ }
1201
+
1202
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {
1203
+ background-color: var(--w-s-color-background-disabled)
1204
+ }
1205
+
1206
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {
1207
+ background-color: var(--w-s-color-background-negative)
1208
+ }
1209
+
1210
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {
1211
+ background-color: var(--w-s-color-background-primary)
1212
+ }
1213
+
1214
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {
1215
+ background-color: var(--w-s-color-background-negative-hover)
1216
+ }
1217
+
1218
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {
1219
+ background-color: var(--w-s-color-background-primary-hover)
1220
+ }
1221
+
1222
+ .\\!hover\\:s-bg-selected-hover:hover {
1223
+ background-color: var(--w-s-color-background-selected-hover) !important
1224
+ }
1225
+
1226
+ .group:hover .group-hover\\:s-bg-primary-hover {
1227
+ background-color: var(--w-s-color-background-primary-hover)
1228
+ }
1229
+
1230
+ .hover\\:before\\:s-bg-hover:hover:before {
1231
+ background-color: var(--w-s-color-background-hover)
1232
+ }
1233
+
1234
+ .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {
1235
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1236
+ }
1237
+
1238
+ .hover\\:s-bg-hover:hover {
1239
+ background-color: var(--w-s-color-background-hover)
1240
+ }
1241
+
1242
+ .hover\\:s-bg-negative-hover:hover {
1243
+ background-color: var(--w-s-color-background-negative-hover)
1244
+ }
1245
+
1246
+ .hover\\:s-bg-negative-subtle-hover:hover {
1247
+ background-color: var(--w-s-color-background-negative-subtle-hover)
1248
+ }
1249
+
1250
+ .hover\\:s-bg-primary-hover:hover {
1251
+ background-color: var(--w-s-color-background-primary-hover)
1252
+ }
1253
+
1254
+ .hover\\:s-bg-selected-hover:hover {
1255
+ background-color: var(--w-s-color-background-selected-hover)
1256
+ }
1257
+
1258
+ .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {
1259
+ background-color: var(--w-s-color-background-hover)
1260
+ }
1261
+
1262
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {
1263
+ background-color: var(--w-s-color-background-hover)
1264
+ }
1265
+
1266
+ .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {
1267
+ background-color: var(--w-s-color-background-negative-subtle)
1268
+ }
1269
+
1270
+ .focus\\:s-bg-primary-hover:focus {
1271
+ background-color: var(--w-s-color-background-primary-hover)
1272
+ }
1273
+
1274
+ .\\!active\\:s-bg-selected-active:active {
1275
+ background-color: var(--w-s-color-background-selected-active) !important
1276
+ }
1277
+
1278
+ .active\\:s-bg-active:active {
1279
+ background-color: var(--w-s-color-background-active)
1280
+ }
1281
+
1282
+ .active\\:s-bg-negative-active:active {
1283
+ background-color: var(--w-s-color-background-negative-active)
1284
+ }
1285
+
1286
+ .active\\:s-bg-negative-subtle-active:active {
1287
+ background-color: var(--w-s-color-background-negative-subtle-active)
1288
+ }
1289
+
1290
+ .active\\:s-bg-primary-active:active {
1291
+ background-color: var(--w-s-color-background-primary-active)
1292
+ }
1293
+
1294
+ .active\\:s-bg-selected-active:active {
1295
+ background-color: var(--w-s-color-background-selected-active)
1296
+ }
1297
+
1298
+ .before\\:s-bg-disabled-subtle:before {
1299
+ background-color: var(--w-s-color-background-disabled-subtle)
1300
+ }
1301
+
1302
+ .before\\:s-bg:before {
1303
+ background-color: var(--w-s-color-background)
1304
+ }
1305
+
1306
+ .s-text {
1307
+ color: var(--w-s-color-text)
1308
+ }
1309
+
1310
+ .s-text-disabled {
1311
+ color: var(--w-s-color-text-disabled)
1312
+ }
1313
+
1314
+ .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {
1315
+ color: var(--w-s-color-text-inverted)
1316
+ }
1317
+
1318
+ .s-text-inverted-static {
1319
+ color: var(--w-s-color-text-inverted-static)
1320
+ }
1321
+
1322
+ .s-text-link {
1323
+ color: var(--w-s-color-text-link)
1324
+ }
1325
+
1326
+ .s-text-negative {
1327
+ color: var(--w-s-color-text-negative)
1328
+ }
1329
+
1330
+ .s-text-subtle {
1331
+ color: var(--w-s-color-text-subtle)
1332
+ }
1333
+
1334
+ .hover\\:s-text-link:hover {
1335
+ color: var(--w-s-color-text-link)
1336
+ }
1337
+
1338
+ .active\\:s-text:active {
1339
+ color: var(--w-s-color-text)
1340
+ }
1341
+
1342
+ .placeholder\\:s-text-placeholder::placeholder {
1343
+ color: var(--w-s-color-text-placeholder)
1344
+ }
1345
+
1346
+ .s-icon {
1347
+ color: var(--w-s-color-icon)
1348
+ }
1349
+
1350
+ .s-icon-info {
1351
+ color: var(--w-s-color-icon-info)
1352
+ }
1353
+
1354
+ .s-icon-inverted {
1355
+ color: var(--w-s-color-icon-inverted)
1356
+ }
1357
+
1358
+ .s-icon-negative {
1359
+ color: var(--w-s-color-icon-negative)
1360
+ }
1361
+
1362
+ .s-icon-positive {
1363
+ color: var(--w-s-color-icon-positive)
1364
+ }
1365
+
1366
+ .s-icon-warning {
1367
+ color: var(--w-s-color-icon-warning)
1368
+ }
1369
+
1370
+ .hover\\:s-icon-hover:hover {
1371
+ color: var(--w-s-color-icon-hover)
1372
+ }
1373
+
1374
+ .active\\:s-icon-active:active {
1375
+ color: var(--w-s-color-icon-active)
1376
+ }
1377
+
1378
+ .before\\:s-icon-inverted:before {
1379
+ color: var(--w-s-color-icon-inverted)
1380
+ }
1381
+
1382
+ .s-border {
1383
+ border-color: var(--w-s-color-border)
1384
+ }
1385
+
1386
+ .s-border-disabled {
1387
+ border-color: var(--w-s-color-border-disabled)
1388
+ }
1389
+
1390
+ .s-border-info-subtle {
1391
+ border-color: var(--w-s-color-border-info-subtle)
1392
+ }
1393
+
1394
+ .s-border-l-info {
1395
+ border-left-color: var(--w-s-color-border-info)
1396
+ }
1397
+
1398
+ .s-border-l-negative {
1399
+ border-left-color: var(--w-s-color-border-negative)
1400
+ }
1401
+
1402
+ .s-border-l-positive {
1403
+ border-left-color: var(--w-s-color-border-positive)
1404
+ }
1405
+
1406
+ .s-border-l-warning {
1407
+ border-left-color: var(--w-s-color-border-warning)
1408
+ }
1409
+
1410
+ .s-border-negative {
1411
+ border-color: var(--w-s-color-border-negative)
1412
+ }
1413
+
1414
+ .s-border-negative-subtle {
1415
+ border-color: var(--w-s-color-border-negative-subtle)
1416
+ }
1417
+
1418
+ .s-border-positive-subtle {
1419
+ border-color: var(--w-s-color-border-positive-subtle)
1420
+ }
1421
+
1422
+ .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {
1423
+ border-color: var(--w-s-color-border-primary)
1424
+ }
1425
+
1426
+ .s-border-selected {
1427
+ border-color: var(--w-s-color-border-selected)
1428
+ }
1429
+
1430
+ .s-border-warning-subtle {
1431
+ border-color: var(--w-s-color-border-warning-subtle)
1432
+ }
1433
+
1434
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {
1435
+ border-color: var(--w-s-color-border-negative-hover)
1436
+ }
1437
+
1438
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {
1439
+ border-color: var(--w-s-color-border-primary-hover)
1440
+ }
1441
+
1442
+ .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {
1443
+ border-color: var(--w-s-color-border-selected-hover)
1444
+ }
1445
+
1446
+ .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {
1447
+ border-color: var(--w-s-color-border-disabled)
1448
+ }
1449
+
1450
+ .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {
1451
+ border-color: var(--w-s-color-border-negative)
1452
+ }
1453
+
1454
+ .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {
1455
+ border-color: var(--w-s-color-border-primary)
1456
+ }
1457
+
1458
+ .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {
1459
+ border-color: var(--w-s-color-border-selected)
1460
+ }
1461
+
1462
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {
1463
+ border-color: var(--w-s-color-border-disabled)
1464
+ }
1465
+
1466
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {
1467
+ border-color: var(--w-s-color-border-negative)
1468
+ }
1469
+
1470
+ .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {
1471
+ border-color: var(--w-s-color-border-primary)
1472
+ }
1473
+
1474
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {
1475
+ border-color: var(--w-s-color-border-negative-hover)
1476
+ }
1477
+
1478
+ .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {
1479
+ border-color: var(--w-s-color-border-primary-hover)
1480
+ }
1481
+
1482
+ .group:hover .group-hover\\:s-border-selected-hover {
1483
+ border-color: var(--w-s-color-border-selected-hover)
1484
+ }
1485
+
1486
+ .hover\\:before\\:s-border-negative-hover:hover:before {
1487
+ border-color: var(--w-s-color-border-negative-hover)
1488
+ }
1489
+
1490
+ .hover\\:before\\:s-border-primary:hover:before {
1491
+ border-color: var(--w-s-color-border-primary)
1492
+ }
1493
+
1494
+ .hover\\:s-border-disabled:hover {
1495
+ border-color: var(--w-s-color-border-disabled)
1496
+ }
1497
+
1498
+ .hover\\:s-border-hover:hover {
1499
+ border-color: var(--w-s-color-border-hover)
1500
+ }
1501
+
1502
+ .hover\\:s-border-negative-hover:hover {
1503
+ border-color: var(--w-s-color-border-negative-hover)
1504
+ }
1505
+
1506
+ .hover\\:s-border-primary-hover:hover {
1507
+ border-color: var(--w-s-color-border-primary-hover)
1508
+ }
1509
+
1510
+ .hover\\:s-border-primary:hover {
1511
+ border-color: var(--w-s-color-border-primary)
1512
+ }
1513
+
1514
+ .hover\\:s-border-selected-hover:hover {
1515
+ border-color: var(--w-s-color-border-selected-hover)
1516
+ }
1517
+
1518
+ .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {
1519
+ border-color: var(--w-s-color-border-negative-hover)
1520
+ }
1521
+
1522
+ .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {
1523
+ border-color: var(--w-s-color-border-primary)
1524
+ }
1525
+
1526
+ .focus\\:s-border-primary-hover:focus {
1527
+ border-color: var(--w-s-color-border-primary-hover)
1528
+ }
1529
+
1530
+ .active\\:s-border-active:active {
1531
+ border-color: var(--w-s-color-border-active)
1532
+ }
1533
+
1534
+ .active\\:s-border-disabled:active {
1535
+ border-color: var(--w-s-color-border-disabled)
1536
+ }
1537
+
1538
+ .active\\:s-border-primary-active:active {
1539
+ border-color: var(--w-s-color-border-primary-active)
1540
+ }
1541
+
1542
+ .active\\:s-border-selected-active:active {
1543
+ border-color: var(--w-s-color-border-selected-active)
1544
+ }
1545
+
1546
+ .active\\:s-border-selected:active {
1547
+ border-color: var(--w-s-color-border-selected)
1548
+ }
1549
+
1550
+ .group:active .group-active\\:s-border-active {
1551
+ border-color: var(--w-s-color-border-active)
1552
+ }
1553
+
1554
+ .group:active .group-active\\:s-border-selected-active {
1555
+ border-color: var(--w-s-color-border-selected-active)
1556
+ }
1557
+
1558
+ .before\\:s-border-disabled:before {
1559
+ border-color: var(--w-s-color-border-disabled)
1560
+ }
1561
+
1562
+ .before\\:s-border-negative:before {
1563
+ border-color: var(--w-s-color-border-negative)
1564
+ }
1565
+
1566
+ .s-surface-sunken {
1567
+ background-color: var(--w-s-color-surface-sunken)
1568
+ }
1569
+
1570
+ .s-surface-elevated-200 {
1571
+ background-color: var(--w-s-color-surface-elevated-200);
1572
+ box-shadow: var(--w-s-shadow-surface-elevated-200)
1573
+ }
1574
+
1575
+ .hover\\:s-surface-elevated-200-hover:hover {
1576
+ background-color: var(--w-s-color-surface-elevated-200-hover);
1577
+ box-shadow: var(--w-s-shadow-surface-elevated-200-hover)
1578
+ }
1579
+
1580
+ .active\\:s-surface-elevated-200-active:active {
1581
+ background-color: var(--w-s-color-surface-elevated-200-active);
1582
+ box-shadow: var(--w-s-shadow-surface-elevated-200-active)
1583
+ }
1584
+
1585
+ .drop-shadow-m {
1586
+ filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)
1587
+ }
1588
+
1589
+ .shadow-m {
1590
+ box-shadow: var(--w-shadow-m)
1591
+ }
1592
+
1593
+ .shadow-s {
1594
+ box-shadow: var(--w-shadow-s)
1595
+ }
1596
+
1597
+ .shadow-\\[--w-shadow-slider\\] {
1598
+ box-shadow: var(--w-shadow-slider)
1599
+ }
1600
+
1601
+ .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {
1602
+ box-shadow: var(--w-shadow-slider-handle-hover)
1603
+ }
1604
+
1605
+ .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {
1606
+ box-shadow: var(--w-shadow-slider-handle-hover)
1607
+ }
1608
+
1609
+ .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {
1610
+ box-shadow: var(--w-shadow-slider-handle-active)
1611
+ }
1612
+
1613
+ .h-0 {
1614
+ height: 0rem
1615
+ }
1616
+
1617
+ .h-16 {
1618
+ height: 1.6rem
1619
+ }
1620
+
1621
+ .h-2 {
1622
+ height: .2rem
1623
+ }
1624
+
1625
+ .h-20 {
1626
+ height: 2rem
1627
+ }
1628
+
1629
+ .h-24 {
1630
+ height: 2.4rem
1631
+ }
1632
+
1633
+ .h-4 {
1634
+ height: .4rem
1635
+ }
1636
+
1637
+ .h-44 {
1638
+ height: 4.4rem
1639
+ }
1640
+
1641
+ .h-6 {
1642
+ height: .6rem
1643
+ }
1644
+
1645
+ .h-8 {
1646
+ height: .8rem
1647
+ }
1648
+
1649
+ .h-full {
1650
+ height: 100%
1651
+ }
1652
+
1653
+ .h-unset {
1654
+ height: unset
1655
+ }
1656
+
1657
+ .max-h-unset {
1658
+ max-height: unset
1659
+ }
1660
+
1661
+ .max-w-full {
1662
+ max-width: 100%
1663
+ }
1664
+
1665
+ .max-w-max {
1666
+ max-width: max-content
1667
+ }
1668
+
1669
+ .max-w-unset {
1670
+ max-width: unset
1671
+ }
1672
+
1673
+ .min-h-32 {
1674
+ min-height: 3.2rem
1675
+ }
1676
+
1677
+ .min-h-40 {
1678
+ min-height: 4rem
1679
+ }
1680
+
1681
+ .min-w-16 {
1682
+ min-width: 1.6rem
1683
+ }
1684
+
1685
+ .min-w-32 {
1686
+ min-width: 3.2rem
1687
+ }
1688
+
1689
+ .w-16 {
1690
+ width: 1.6rem
1691
+ }
1692
+
1693
+ .w-2 {
1694
+ width: .2rem
1695
+ }
1696
+
1697
+ .w-20 {
1698
+ width: 2rem
1699
+ }
1700
+
1701
+ .w-24 {
1702
+ width: 2.4rem
1703
+ }
1704
+
1705
+ .w-32 {
1706
+ width: 3.2rem
1707
+ }
1708
+
1709
+ .w-40 {
1710
+ width: 4rem
1711
+ }
1712
+
1713
+ .w-44 {
1714
+ width: 4.4rem
1715
+ }
1716
+
1717
+ .w-8 {
1718
+ width: .8rem
1719
+ }
1720
+
1721
+ .w-full {
1722
+ width: 100%
1723
+ }
1724
+
1725
+ .w-max {
1726
+ width: max-content
1727
+ }
1728
+
1729
+ .w-unset {
1730
+ width: unset
1731
+ }
1732
+
1733
+ .before\\:h-20:before {
1734
+ height: 2rem
1735
+ }
1736
+
1737
+ .before\\:h-full:before {
1738
+ height: 100%
1739
+ }
1740
+
1741
+ .before\\:w-20:before {
1742
+ width: 2rem
1743
+ }
1744
+
1745
+ .before\\:w-32:before {
1746
+ width: 3.2rem
1747
+ }
1748
+
1749
+ .h-\\[--w-modal-height\\] {
1750
+ height: var(--w-modal-height)
1751
+ }
1752
+
1753
+ .h-\\[14px\\] {
1754
+ height: 14px
1755
+ }
1756
+
1757
+ .h-\\[16px\\] {
1758
+ height: 16px
1759
+ }
1760
+
1761
+ .max-h-\\[--w-modal-max-height\\] {
1762
+ max-height: var(--w-modal-max-height)
1763
+ }
1764
+
1765
+ .min-h-\\[--w-modal-min-height\\] {
1766
+ min-height: var(--w-modal-min-height)
1767
+ }
1768
+
1769
+ .min-h-\\[32px\\] {
1770
+ min-height: 32px
1771
+ }
1772
+
1773
+ .min-h-\\[40px\\] {
1774
+ min-height: 40px
1775
+ }
1776
+
1777
+ .min-h-\\[42\\] {
1778
+ min-height: 4.2rem
1779
+ }
1780
+
1781
+ .min-h-\\[44px\\] {
1782
+ min-height: 44px
1783
+ }
1784
+
1785
+ .min-w-\\[32px\\] {
1786
+ min-width: 32px
1787
+ }
1788
+
1789
+ .min-w-\\[40px\\] {
1790
+ min-width: 40px
1791
+ }
1792
+
1793
+ .min-w-\\[44px\\] {
1794
+ min-width: 44px
1795
+ }
1796
+
1797
+ .w-\\[--w-modal-width\\] {
1798
+ width: var(--w-modal-width)
1799
+ }
1800
+
1801
+ .w-\\[14px\\] {
1802
+ width: 14px
1803
+ }
1804
+
1805
+ .w-\\[16px\\] {
1806
+ width: 16px
1807
+ }
1808
+
1809
+ .space-x-8 > :not([hidden]) ~ :not([hidden]) {
1810
+ --w-space-x-reverse: 0;
1811
+ margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));
1812
+ margin-right: calc(.8rem * var(--w-space-x-reverse))
1813
+ }
1814
+
1815
+ .space-y-16 > :not([hidden]) ~ :not([hidden]) {
1816
+ --w-space-y-reverse: 0;
1817
+ margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));
1818
+ margin-bottom: calc(1.6rem * var(--w-space-y-reverse))
1819
+ }
1820
+
1821
+ .m-0 {
1822
+ margin: 0rem
1823
+ }
1824
+
1825
+ .m-auto {
1826
+ margin: auto
1827
+ }
1828
+
1829
+ .-mx-16 {
1830
+ margin-left: -1.6rem;
1831
+ margin-right: -1.6rem
1832
+ }
1833
+
1834
+ .mx-0 {
1835
+ margin-left: 0rem;
1836
+ margin-right: 0rem
1837
+ }
1838
+
1839
+ .mx-8 {
1840
+ margin-left: .8rem;
1841
+ margin-right: .8rem
1842
+ }
1843
+
1844
+ .mx-auto {
1845
+ margin-left: auto;
1846
+ margin-right: auto
1847
+ }
1848
+
1849
+ .-mb-1 {
1850
+ margin-bottom: -.1rem
1851
+ }
1852
+
1853
+ .-ml-8 {
1854
+ margin-left: -.8rem
1855
+ }
1856
+
1857
+ .-mr-1 {
1858
+ margin-right: -.1rem
1859
+ }
1860
+
1861
+ .-mr-8 {
1862
+ margin-right: -.8rem
1863
+ }
1864
+
1865
+ .-mt-2 {
1866
+ margin-top: -.2rem
1867
+ }
1868
+
1869
+ .-mt-4 {
1870
+ margin-top: -.4rem
1871
+ }
1872
+
1873
+ .last-child\\:mb-0 > :last-child, .mb-0 {
1874
+ margin-bottom: 0rem
1875
+ }
1876
+
1877
+ .mb-32 {
1878
+ margin-bottom: 3.2rem
1879
+ }
1880
+
1881
+ .ml-8 {
1882
+ margin-left: .8rem
1883
+ }
1884
+
1885
+ .ml-auto {
1886
+ margin-left: auto
1887
+ }
1888
+
1889
+ .mr-8 {
1890
+ margin-right: .8rem
1891
+ }
1892
+
1893
+ .mt-16 {
1894
+ margin-top: 1.6rem
1895
+ }
1896
+
1897
+ .mt-4 {
1898
+ margin-top: .4rem
1899
+ }
1900
+
1901
+ .group:not(:first-child) .group-not-first\\:-ml-2 {
1902
+ margin-left: -.2rem
1903
+ }
1904
+
1905
+ .last\\:mb-0:last-child {
1906
+ margin-bottom: 0rem
1907
+ }
1908
+
1909
+ .last\\:mr-0:last-child {
1910
+ margin-right: 0rem
1911
+ }
1912
+
1913
+ .m-\\[8px\\] {
1914
+ margin: 8px
1915
+ }
1916
+
1917
+ .p-0 {
1918
+ padding: 0rem
1919
+ }
1920
+
1921
+ .p-16 {
1922
+ padding: 1.6rem
1923
+ }
1924
+
1925
+ .p-4 {
1926
+ padding: .4rem
1927
+ }
1928
+
1929
+ .p-8 {
1930
+ padding: .8rem
1931
+ }
1932
+
1933
+ .px-0 {
1934
+ padding-left: 0rem;
1935
+ padding-right: 0rem
1936
+ }
1937
+
1938
+ .px-1 {
1939
+ padding-left: .1rem;
1940
+ padding-right: .1rem
1941
+ }
1942
+
1943
+ .px-12 {
1944
+ padding-left: 1.2rem;
1945
+ padding-right: 1.2rem
1946
+ }
1947
+
1948
+ .px-14 {
1949
+ padding-left: 1.4rem;
1950
+ padding-right: 1.4rem
88
1951
  }
89
- }
90
- // Update validation state
91
- // Check that the user hasn't typed in a value beyond max or min
92
- const maxNum = Number.parseInt(this.max);
93
- const minNum = Number.parseInt(this.min);
94
- if (!this.allowValuesOutsideRange && (valueNum > maxNum || valueNum < minNum)) {
95
- this.#handleValidity(i18n.t({
96
- id: 'slider.error.out_of_bounds',
97
- message: 'Value must be between {min} and {max}',
98
- values: {
99
- min: `${this.min} ${this.suffix}`.trim(),
100
- max: `${this.max} ${this.suffix}`.trim(),
101
- },
102
- }));
103
- return { shouldCancel: true };
104
- }
105
- if (value === '') {
106
- if (this.required) {
107
- this.#handleValidity(i18n.t({
108
- id: 'slider.error.required',
109
- message: 'This field is required',
110
- }));
111
- }
112
- // To not bork when input field is empty
113
- return { shouldCancel: true };
114
- }
115
- this.value = value;
116
- const valueIsAtTheSliderEdge = value === this.max || value === this.min;
117
- // Stop a range slider's from value from reaching past the to value and vice versa
118
- // by updating the other component's min and max values.
119
- // Skip this check when typing in textfield with allowValuesOutsideRange enabled
120
- let shouldCancel = false;
121
- if (this.slot) {
122
- const toThumb = this.parentElement.querySelector('w-slider-thumb[slot="to"]');
123
- const fromThumb = this.parentElement.querySelector('w-slider-thumb[slot="from"]');
124
- const toValue = toThumb.textfield.value || this.max;
125
- const fromValue = fromThumb.textfield.value || this.min;
126
- const numericToValue = Number.parseInt(toValue);
127
- const numericFromValue = Number.parseInt(fromValue);
128
- const numberOverLapError = i18n.t({
129
- id: 'slider.error.overlap',
130
- message: 'The maximum value cannot be less than the minimum',
131
- });
132
- if (this.slot === 'from') {
133
- // Check that the from value is not about to be dragged past the --to value
134
- const toBoundary = this.allowValuesOutsideRange && numericToValue > maxNum
135
- ? numericToValue
136
- : Math.min(numericToValue, this.allowValuesOutsideRange ? maxNum - 1 : maxNum);
137
- if (valueNum > toBoundary) {
138
- shouldCancel = true;
139
- // The user might have moved the slider so fast that this.value is far away from overlapping.
140
- // Set it to be equal to the to/from value, depending on what slider the user's moving.
141
- if (this.allowValuesOutsideRange && valueIsAtTheSliderEdge) {
142
- this.value = String(toBoundary);
143
- }
144
- else {
145
- this.value = toValue;
146
- }
147
- if (isFromTextInput) {
148
- this.#handleValidity(numberOverLapError);
149
- // Don't override the user's input in the textfield
150
- await this.updateComplete;
151
- this.textfield.value = value;
152
- }
1952
+
1953
+ .px-16 {
1954
+ padding-left: 1.6rem;
1955
+ padding-right: 1.6rem
1956
+ }
1957
+
1958
+ .px-8 {
1959
+ padding-left: .8rem;
1960
+ padding-right: .8rem
1961
+ }
1962
+
1963
+ .py-0 {
1964
+ padding-top: 0rem;
1965
+ padding-bottom: 0rem
1966
+ }
1967
+
1968
+ .py-1 {
1969
+ padding-top: .1rem;
1970
+ padding-bottom: .1rem
1971
+ }
1972
+
1973
+ .py-10 {
1974
+ padding-top: 1rem;
1975
+ padding-bottom: 1rem
1976
+ }
1977
+
1978
+ .py-12 {
1979
+ padding-top: 1.2rem;
1980
+ padding-bottom: 1.2rem
1981
+ }
1982
+
1983
+ .py-2 {
1984
+ padding-top: .2rem;
1985
+ padding-bottom: .2rem
1986
+ }
1987
+
1988
+ .py-4 {
1989
+ padding-top: .4rem;
1990
+ padding-bottom: .4rem
1991
+ }
1992
+
1993
+ .py-6 {
1994
+ padding-top: .6rem;
1995
+ padding-bottom: .6rem
1996
+ }
1997
+
1998
+ .py-8 {
1999
+ padding-top: .8rem;
2000
+ padding-bottom: .8rem
2001
+ }
2002
+
2003
+ .pb-0 {
2004
+ padding-bottom: 0rem
2005
+ }
2006
+
2007
+ .pb-32 {
2008
+ padding-bottom: 3.2rem
2009
+ }
2010
+
2011
+ .pb-4 {
2012
+ padding-bottom: .4rem
2013
+ }
2014
+
2015
+ .pb-8 {
2016
+ padding-bottom: .8rem
2017
+ }
2018
+
2019
+ .pl-0 {
2020
+ padding-left: 0rem
2021
+ }
2022
+
2023
+ .pl-1 {
2024
+ padding-left: .1rem
2025
+ }
2026
+
2027
+ .pl-12 {
2028
+ padding-left: 1.2rem
2029
+ }
2030
+
2031
+ .pl-28 {
2032
+ padding-left: 2.8rem
2033
+ }
2034
+
2035
+ .pl-4 {
2036
+ padding-left: .4rem
2037
+ }
2038
+
2039
+ .pl-8 {
2040
+ padding-left: .8rem
2041
+ }
2042
+
2043
+ .pr-12 {
2044
+ padding-right: 1.2rem
2045
+ }
2046
+
2047
+ .pr-14 {
2048
+ padding-right: 1.4rem
2049
+ }
2050
+
2051
+ .pr-2 {
2052
+ padding-right: .2rem
2053
+ }
2054
+
2055
+ .pr-32 {
2056
+ padding-right: 3.2rem
2057
+ }
2058
+
2059
+ .pr-40 {
2060
+ padding-right: 4rem
2061
+ }
2062
+
2063
+ .pt-0 {
2064
+ padding-top: 0rem
2065
+ }
2066
+
2067
+ .pt-1 {
2068
+ padding-top: .1rem
2069
+ }
2070
+
2071
+ .pt-16 {
2072
+ padding-top: 1.6rem
2073
+ }
2074
+
2075
+ .pt-24 {
2076
+ padding-top: 2.4rem
2077
+ }
2078
+
2079
+ .pt-8 {
2080
+ padding-top: .8rem
2081
+ }
2082
+
2083
+ .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {
2084
+ padding-bottom: 0rem
2085
+ }
2086
+
2087
+ .last\\:pb-1:last-child {
2088
+ padding-bottom: .1rem
2089
+ }
2090
+
2091
+ .last\\:pr-1:last-child {
2092
+ padding-right: .1rem
2093
+ }
2094
+
2095
+ .p-\\[8px\\] {
2096
+ padding: 8px
2097
+ }
2098
+
2099
+ .px-\\[15px\\] {
2100
+ padding-left: 15px;
2101
+ padding-right: 15px
2102
+ }
2103
+
2104
+ .px-\\[8px\\] {
2105
+ padding-left: 8px;
2106
+ padding-right: 8px
2107
+ }
2108
+
2109
+ .py-\\[11px\\] {
2110
+ padding-top: 11px;
2111
+ padding-bottom: 11px
2112
+ }
2113
+
2114
+ .py-\\[5px\\] {
2115
+ padding-top: 5px;
2116
+ padding-bottom: 5px
2117
+ }
2118
+
2119
+ .py-\\[7px\\] {
2120
+ padding-top: 7px;
2121
+ padding-bottom: 7px
2122
+ }
2123
+
2124
+ .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {
2125
+ padding-left: var(--w-prefix-width, 40px)
2126
+ }
2127
+
2128
+ .invisible {
2129
+ visibility: hidden
2130
+ }
2131
+
2132
+ .backface-hidden {
2133
+ backface-visibility: hidden
2134
+ }
2135
+
2136
+ .break-words {
2137
+ overflow-wrap: break-word
2138
+ }
2139
+
2140
+ .before\\:content-\\[\\"–\\"\\]:before {
2141
+ content: "–"
2142
+ }
2143
+
2144
+ .before\\:content-\\[\\"\\"\\]:before {
2145
+ content: ""
2146
+ }
2147
+
2148
+ .cursor-default {
2149
+ cursor: default
2150
+ }
2151
+
2152
+ .cursor-pointer {
2153
+ cursor: pointer
2154
+ }
2155
+
2156
+ .antialiased {
2157
+ -webkit-font-smoothing: antialiased;
2158
+ -moz-osx-font-smoothing: grayscale;
2159
+ font-smoothing: grayscale
2160
+ }
2161
+
2162
+ .font-bold {
2163
+ font-weight: 700
2164
+ }
2165
+
2166
+ .before\\:font-bold:before {
2167
+ font-weight: 700
2168
+ }
2169
+
2170
+ .font-normal {
2171
+ font-weight: 400
2172
+ }
2173
+
2174
+ .pointer-events-auto {
2175
+ pointer-events: auto
2176
+ }
2177
+
2178
+ .pointer-events-none {
2179
+ pointer-events: none
2180
+ }
2181
+
2182
+ .before\\:pointer-events-none:before {
2183
+ pointer-events: none
2184
+ }
2185
+
2186
+ .pb-safe-\\[32\\] {
2187
+ padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))
2188
+ }
2189
+
2190
+ .sr-only {
2191
+ position: absolute;
2192
+ width: 1px;
2193
+ height: 1px;
2194
+ padding: 0;
2195
+ margin: -1px;
2196
+ overflow: hidden;
2197
+ clip: rect(0, 0, 0, 0);
2198
+ white-space: nowrap;
2199
+ border-width: 0
2200
+ }
2201
+
2202
+ .touch-pan-y {
2203
+ touch-action: pan-y
2204
+ }
2205
+
2206
+ .select-none {
2207
+ -webkit-user-select: none;
2208
+ user-select: none
2209
+ }
2210
+
2211
+ .translate-x-20 {
2212
+ --w-translate-x: 2rem;
2213
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2214
+ }
2215
+
2216
+ .translate-z-0 {
2217
+ --w-translate-z: 0rem;
2218
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2219
+ }
2220
+
2221
+ .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {
2222
+ --w-rotate-x: 0;
2223
+ --w-rotate-y: 0;
2224
+ --w-rotate-z: 0;
2225
+ --w-rotate: -180deg;
2226
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2227
+ }
2228
+
2229
+ .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {
2230
+ --w-rotate-x: 0;
2231
+ --w-rotate-y: 0;
2232
+ --w-rotate-z: 0;
2233
+ --w-rotate: 180deg;
2234
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2235
+ }
2236
+
2237
+ .rotate-90 {
2238
+ --w-rotate-x: 0;
2239
+ --w-rotate-y: 0;
2240
+ --w-rotate-z: 0;
2241
+ --w-rotate: 90deg;
2242
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2243
+ }
2244
+
2245
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {
2246
+ transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2247
+ }
2248
+
2249
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {
2250
+ transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))
2251
+ }
2252
+
2253
+ .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {
2254
+ transition-property: transform;
2255
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2256
+ transition-duration: .15s
2257
+ }
2258
+
2259
+ .transition-300 {
2260
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
2261
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2262
+ transition-duration: .3s
2263
+ }
2264
+
2265
+ .transition-all {
2266
+ transition-property: all;
2267
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2268
+ transition-duration: .15s
2269
+ }
2270
+
2271
+ .transition-colors {
2272
+ transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
2273
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2274
+ transition-duration: .15s
2275
+ }
2276
+
2277
+ .transition-shadow {
2278
+ transition-property: box-shadow;
2279
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2280
+ transition-duration: .15s
2281
+ }
2282
+
2283
+ .before\\:transition-all:before {
2284
+ transition-property: all;
2285
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1);
2286
+ transition-duration: .15s
2287
+ }
2288
+
2289
+ .duration-300 {
2290
+ transition-duration: .3s
2291
+ }
2292
+
2293
+ .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {
2294
+ transition-timing-function: cubic-bezier(.4, 0, .2, 1)
2295
+ }
2296
+
2297
+ .text-m {
2298
+ font-size: var(--w-font-size-m);
2299
+ line-height: var(--w-line-height-m)
2300
+ }
2301
+
2302
+ .text-s {
2303
+ font-size: var(--w-font-size-s);
2304
+ line-height: var(--w-line-height-s)
2305
+ }
2306
+
2307
+ .text-xs {
2308
+ font-size: var(--w-font-size-xs);
2309
+ line-height: var(--w-line-height-xs)
2310
+ }
2311
+
2312
+ .leading-m {
2313
+ line-height: var(--w-line-height-m)
2314
+ }
2315
+
2316
+ .before\\:leading-xs:before {
2317
+ line-height: var(--w-line-height-xs)
2318
+ }
2319
+
2320
+ .leading-\\[24\\] {
2321
+ line-height: 2.4rem
2322
+ }
2323
+
2324
+ @media (max-width: 479.9px) {
2325
+ .lt-sm\\:rounded-b-0 {
2326
+ border-bottom-left-radius: 0;
2327
+ border-bottom-right-radius: 0
153
2328
  }
154
2329
  }
155
- else {
156
- // Check that the to value is not about to be dragged past the --from value
157
- const fromBoundary = this.allowValuesOutsideRange && numericFromValue < minNum
158
- ? numericFromValue
159
- : Math.max(Number.parseInt(fromValue), this.allowValuesOutsideRange ? minNum + 1 : minNum);
160
- if (valueNum < fromBoundary) {
161
- shouldCancel = true;
162
- // The user might have moved the slider so fast that this.value is far away from overlapping.
163
- // Set it to be equal to the to/from value, depending on what slider the user's moving.
164
- if (this.allowValuesOutsideRange && valueIsAtTheSliderEdge) {
165
- this.value = String(fromBoundary);
166
- }
167
- else {
168
- this.value = fromValue;
169
- }
170
- if (isFromTextInput) {
171
- this.#handleValidity(numberOverLapError);
172
- // Don't override the user's input in the textfield
173
- await this.updateComplete;
174
- this.textfield.value = value;
175
- }
2330
+ @media (min-width: 480px) {
2331
+ .sm\\:border-b-0 {
2332
+ border-bottom-width: 0
2333
+ }
2334
+
2335
+ .sm\\:rounded-8 {
2336
+ border-radius: 8px
2337
+ }
2338
+
2339
+ .sm\\:rounded-b-8 {
2340
+ border-bottom-left-radius: 8px;
2341
+ border-bottom-right-radius: 8px
2342
+ }
2343
+
2344
+ .sm\\:gap-16 {
2345
+ gap: 1.6rem
2346
+ }
2347
+
2348
+ .sm\\:place-content-center {
2349
+ place-content: center
2350
+ }
2351
+
2352
+ .sm\\:place-items-center {
2353
+ place-items: center
2354
+ }
2355
+
2356
+ .sm\\:h-24 {
2357
+ height: 2.4rem
2358
+ }
2359
+
2360
+ .sm\\:min-h-48 {
2361
+ min-height: 4.8rem
2362
+ }
2363
+
2364
+ .sm\\:w-24 {
2365
+ width: 2.4rem
2366
+ }
2367
+
2368
+ .sm\\:min-h-\\[32px\\] {
2369
+ min-height: 32px
2370
+ }
2371
+
2372
+ .sm\\:min-h-\\[44px\\] {
2373
+ min-height: 44px
2374
+ }
2375
+
2376
+ .sm\\:min-h-\\[45\\] {
2377
+ min-height: 4.5rem
2378
+ }
2379
+
2380
+ .sm\\:min-w-\\[32px\\] {
2381
+ min-width: 32px
2382
+ }
2383
+
2384
+ .sm\\:min-w-\\[44px\\] {
2385
+ min-width: 44px
2386
+ }
2387
+
2388
+ .sm\\:mx-0 {
2389
+ margin-left: 0rem;
2390
+ margin-right: 0rem
2391
+ }
2392
+
2393
+ .sm\\:mx-16 {
2394
+ margin-left: 1.6rem;
2395
+ margin-right: 1.6rem
2396
+ }
2397
+
2398
+ .sm\\:-ml-12 {
2399
+ margin-left: -1.2rem
2400
+ }
2401
+
2402
+ .sm\\:-mr-12 {
2403
+ margin-right: -1.2rem
2404
+ }
2405
+
2406
+ .sm\\:-mt-8 {
2407
+ margin-top: -.8rem
2408
+ }
2409
+
2410
+ .sm\\:px-32 {
2411
+ padding-left: 3.2rem;
2412
+ padding-right: 3.2rem
2413
+ }
2414
+
2415
+ .sm\\:py-0 {
2416
+ padding-top: 0rem;
2417
+ padding-bottom: 0rem
2418
+ }
2419
+
2420
+ .sm\\:pb-32 {
2421
+ padding-bottom: 3.2rem
2422
+ }
2423
+
2424
+ .sm\\:pt-24 {
2425
+ padding-top: 2.4rem
2426
+ }
2427
+
2428
+ .sm\\:pt-32 {
2429
+ padding-top: 3.2rem
176
2430
  }
177
2431
  }
178
- }
179
- if (shouldCancel) {
180
- return { shouldCancel: true };
181
- }
182
- this.#handleValidity('');
183
- this.range.value = Math.min(Math.max(Number(value), Number(this.min)), Number(this.max)).toString();
184
- this.value = this.allowValuesOutsideRange && !isFromTextInput && valueIsAtTheSliderEdge ? '' : value;
185
- this.shadowRoot.querySelector('w-attention').handleDone();
186
- return { shouldCancel: false };
187
- }
188
- async #onInput(e) {
189
- const isFromTextInput = e.currentTarget.tagName === 'W-TEXTFIELD';
190
- if (e instanceof CustomEvent)
191
- return; // We rely on the InputEvent event that fires right after the CustomEvent
192
- const value = e.currentTarget.value;
193
- const result = await this.#handleValueChange(value, isFromTextInput);
194
- if (result.shouldCancel) {
195
- e.preventDefault();
196
- // Needed to stop slider from moving independendtly of the value when we cancel the event
197
- return false;
198
- }
199
- return true;
200
- }
201
- async #onRangeSliderKeyDown(e) {
202
- if (e.key !== 'ArrowLeft' && e.key !== 'ArrowRight')
203
- return;
204
- const currentValue = Number(this.range.value);
205
- const stepValue = this.step || 1;
206
- let newValue;
207
- if (e.key === 'ArrowLeft') {
208
- newValue = currentValue - stepValue;
209
- }
210
- else {
211
- newValue = currentValue + stepValue;
212
- }
213
- newValue = Math.min(Math.max(newValue, Number(this.min)), Number(this.max));
214
- const result = await this.#handleValueChange(newValue.toString(), false);
215
- if (result.shouldCancel) {
216
- e.preventDefault();
217
- }
218
- }
219
- async connectedCallback() {
220
- super.connectedCallback();
221
- this.#initialValue = this.value;
222
- this.setValue(this.value);
223
- if (!('anchorName' in document.documentElement.style)) {
224
- // Load the polyfill for CSS anchor positioning by @oddbird for browsers without native support.
225
- const dirname = import.meta.url.substring(0, import.meta.url.lastIndexOf('/'));
226
- try {
227
- const [{ default: polyfill }] = await Promise.all([
228
- import(
229
- /* @vite-ignore */
230
- `${dirname}/oddbird-css-anchor-positioning.js`),
231
- this.updateComplete,
232
- ]);
233
- // We need to work around a limitation in the polyfill. It doesn't support constructed stylesheets.
234
- // This is based on the approach in Fluent UI: https://github.com/microsoft/fluentui/pull/32852/files#diff-7b316dca1b4391eae93d5edf48e9689e83d39f1c82cb3f8d61450dfad6f3c59eR73
235
- if (!this.anchorPositioningStyleElement) {
236
- this.anchorPositioningStyleElement = document.createElement('style');
237
- this.shadowRoot.prepend(this.anchorPositioningStyleElement);
2432
+ @media (min-width: 768px) {
2433
+ .md\\:block {
2434
+ display: block
2435
+ }
2436
+
2437
+ .md\\:hidden {
2438
+ display: none
238
2439
  }
239
- this.anchorPositioningStyleElement.textContent = `
2440
+ }
2441
+ `;import{css as Ge}from"lit";var Ce=Ge`
2442
+ .w-slider-thumb {
2443
+ position: relative;
2444
+ display: grid;
2445
+ pointer-events: none; /* For range inputs we position two of these on top of each other. Let clicks go through the top one. */
2446
+ grid-template-areas:
2447
+ "slider slider slider"
2448
+ "frommarker . tomarker"
2449
+ "fromtextfield . totextfield";
2450
+ grid-template-columns: 1fr 24px 1fr;
2451
+ }
2452
+
2453
+ .w-slider-thumb__range {
2454
+ appearance: none;
2455
+ background-color: transparent;
2456
+ grid-area: slider;
2457
+ height: 44px; /* touch target */
2458
+ margin-left: 0;
2459
+ pointer-events: none; /* let clicks pass through for range slider where we place two inputs over each other */
2460
+ }
2461
+
2462
+ .w-slider-thumb__range::-webkit-slider-runnable-track {
2463
+ box-shadow: none;
2464
+ color: var(--w-s-color-text);
2465
+ height: var(--w-slider-track-height);
2466
+ }
2467
+
2468
+ /*
2469
+ Use anchor positioning to place the tooltip target in relation to the slider thumb.
2470
+ We use a polyfill to bring support to older Safari, Firefox at time of writing.
2471
+ */
2472
+ .w-slider-thumb__range::-webkit-slider-thumb {
2473
+ anchor-name: --thumb;
2474
+
2475
+ appearance: none;
2476
+ cursor: pointer;
2477
+ background: var(--w-s-color-background-primary);
2478
+ border-radius: 50%;
2479
+ height: var(--w-slider-thumb-size);
2480
+ margin-top: calc(
2481
+ -1 * calc(var(--w-slider-thumb-offset) - calc(
2482
+ var(--w-slider-track-height) / 2
2483
+ ))
2484
+ );
2485
+ pointer-events: initial;
2486
+ width: var(--w-slider-thumb-size);
2487
+ z-index: 1;
2488
+ }
2489
+
2490
+ .w-slider-thumb__range::-moz-range-thumb {
2491
+ anchor-name: --thumb;
2492
+
2493
+ appearance: none;
2494
+ cursor: pointer;
2495
+ background: var(--w-s-color-background-primary);
2496
+ border-radius: 50%;
2497
+ border-color: transparent;
2498
+ height: var(--w-slider-thumb-size);
2499
+ margin-top: calc(
2500
+ -1 * calc(var(--w-slider-thumb-offset) - calc(
2501
+ var(--w-slider-track-height) / 2
2502
+ ))
2503
+ );
2504
+ pointer-events: initial;
2505
+ width: var(--w-slider-thumb-size);
2506
+ z-index: 1;
2507
+
2508
+ box-shadow: none;
2509
+ }
2510
+
2511
+ .w-slider-thumb__range:active::-webkit-slider-thumb,
2512
+ .w-slider-thumb__range:hover::-webkit-slider-thumb {
2513
+ background: var(--w-s-color-background-primary-hover);
2514
+ box-shadow: var(--w-shadow-slider-handle-hover);
2515
+ }
2516
+
2517
+ .w-slider-thumb__range:focus,
2518
+ .w-slider-thumb__range:focus-visible {
2519
+ outline: none;
2520
+ }
2521
+
2522
+ .w-slider-thumb__range:focus-visible::-webkit-slider-thumb {
2523
+ outline: 2px solid var(--w-s-color-border-focus);
2524
+ outline-offset: var(--w-outline-offset, 1px);
2525
+ box-shadow: none;
2526
+ }
2527
+
2528
+ .w-slider-thumb__range:active::-moz-range-thumb,
2529
+ .w-slider-thumb__range:hover::-moz-range-thumb {
2530
+ background: var(--w-s-color-background-primary-hover);
2531
+ box-shadow: var(--w-shadow-slider-handle-hover);
2532
+ }
2533
+
2534
+ .w-slider-thumb__range:focus-visible::-moz-range-thumb {
2535
+ outline: 2px solid var(--w-s-color-border-focus);
2536
+ outline-offset: var(--w-outline-offset, 1px);
2537
+ box-shadow: none;
2538
+ }
2539
+
2540
+ .w-slider-thumb__tooltip-target {
2541
+ display: block;
2542
+ pointer-events: none;
2543
+ position: absolute;
2544
+ border: 2px solid transparent;
2545
+ border-radius: 20px;
2546
+ width: 8px;
2547
+ height: 8px;
2548
+ position-anchor: --thumb;
2549
+ position-area: center; /* Position the tooltip target right on the range thumb */
2550
+ }
2551
+
2552
+ /* Uncomment this to debug the invisible anchor target */
2553
+ /* .w-slider-thumb__tooltip-target { border-color: lime; } */
2554
+
2555
+ .w-slider-thumb__from-marker,
2556
+ .w-slider-thumb__to-marker {
2557
+ margin-inline: 2px; /* visual alignment with input border, slider thumb */
2558
+ color: var(--w-s-color-text-subtle);
2559
+ font-size: var(--w-font-size-s);
2560
+ line-height: var(--w-line-height-s);
2561
+ }
2562
+
2563
+ .w-slider-thumb__from-marker {
2564
+ grid-area: frommarker;
2565
+ }
2566
+
2567
+ .w-slider-thumb__to-marker {
2568
+ grid-area: tomarker;
2569
+ text-align: right;
2570
+ }
2571
+
2572
+ .w-slider-thumb__textfield {
2573
+ margin-top: 12px;
2574
+ pointer-events: auto;
2575
+ grid-row: 3 / 4;
2576
+ grid-column: 1 / 3; /* Single sliders should have the text field use the fromtextfield _and_ gap portion of the CSS grid. */
2577
+ }
2578
+
2579
+ :host([name="from"]) .w-slider-thumb__textfield {
2580
+ grid-column: 1 / 2; /* Range sliders should leave the gap empty. */
2581
+ }
2582
+
2583
+ :host([name="from"]) .w-slider-thumb__range {
2584
+ margin-left: var(--w-slider-thumb-size);
2585
+ }
2586
+
2587
+ :host([name="to"]) .w-slider-thumb__range {
2588
+ margin-right: var(--w-slider-thumb-size);
2589
+ }
2590
+
2591
+ :host([name="from"]) .w-slider-thumb__range::-webkit-slider-thumb,
2592
+ :host([name="from"]) .w-slider-thumb__tooltip-target {
2593
+ transform: translateX(calc(-1 * var(--w-slider-thumb-size) - 1px));
2594
+ }
2595
+
2596
+ :host([name="from"]) .w-slider-thumb__range::-moz-range-thumb {
2597
+ transform: translateX(calc(-1 * var(--w-slider-thumb-size) - 1px));
2598
+ }
2599
+
2600
+ :host([name="to"]) .w-slider-thumb__textfield {
2601
+ grid-row: 3 / 4;
2602
+ grid-column: 3 / 4;
2603
+ }
2604
+
2605
+ :host([name="to"]) .w-slider-thumb__tooltip-target,
2606
+ :host([name="to"]) .w-slider-thumb__range::-webkit-slider-thumb {
2607
+ transform: translateX(calc(var(--w-slider-thumb-size) - 1px));
2608
+ }
2609
+
2610
+ :host([name="to"]) .w-slider-thumb__range::-moz-range-thumb {
2611
+ transform: translateX(calc(var(--w-slider-thumb-size) - 1px));
2612
+ }
2613
+ `;import{css as Ke}from"lit";var ze=Ke`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;var Se=Be(Ve(),1);var N=t=>typeof t=="string",ir=t=>typeof t=="function",$e=new Map,Ne="en";function he(t){return[...Array.isArray(t)?t:[t],Ne]}function ue(t,e,r){let o=he(t);r||(r="default");let a;if(typeof r=="string")switch(a={day:"numeric",month:"short",year:"numeric"},r){case"full":a.weekday="long";case"long":a.month="long";break;case"short":a.month="numeric";break}else a=r;return G(()=>K("date",o,r),()=>new Intl.DateTimeFormat(o,a)).format(N(e)?new Date(e):e)}function sr(t,e,r){let o;if(r||(r="default"),typeof r=="string")switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return ue(t,e,o)}function le(t,e,r){let o=he(t);return G(()=>K("number",o,r),()=>new Intl.NumberFormat(o,r)).format(e)}function Oe(t,e,r,{offset:o=0,...a}){var i,d;let n=he(t),s=e?G(()=>K("plural-ordinal",n),()=>new Intl.PluralRules(n,{type:"ordinal"})):G(()=>K("plural-cardinal",n),()=>new Intl.PluralRules(n,{type:"cardinal"}));return(d=(i=a[r])!=null?i:a[s.select(r-o)])!=null?d:a.other}function G(t,e){let r=t(),o=$e.get(r);return o||(o=e(),$e.set(r,o)),o}function K(t,e,r){let o=e.join("-");return`${t}-${o}-${JSON.stringify(r)}`}var Pe=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Te="%__lingui_octothorpe__%",nr=(t,e,r={})=>{let o=e||t,a=s=>typeof s=="object"?s:r[s],n=(s,i)=>{let d=Object.keys(r).length?a("number"):void 0,g=le(o,s,d);return i.replace(new RegExp(Te,"g"),g)};return{plural:(s,i)=>{let{offset:d=0}=i,g=Oe(o,!1,s,i);return n(s-d,g)},selectordinal:(s,i)=>{let{offset:d=0}=i,g=Oe(o,!0,s,i);return n(s-d,g)},select:lr,number:(s,i)=>le(o,s,a(i)||{style:i}),date:(s,i)=>ue(o,s,a(i)||i),time:(s,i)=>sr(o,s,a(i)||i)}},lr=(t,e)=>{var r;return(r=e[t])!=null?r:e.other};function dr(t,e,r){return(o={},a)=>{let n=nr(e,r,a),s=(d,g=!1)=>Array.isArray(d)?d.reduce((k,z)=>{if(z==="#"&&g)return k+Te;if(N(z))return k+z;let[F,y,E]=z,M={};y==="plural"||y==="selectordinal"||y==="select"?Object.entries(E).forEach(([T,Y])=>{M[T]=s(Y,y==="plural"||y==="selectordinal")}):M=E;let v;if(y){let T=n[y];v=T(o[F],M)}else v=o[F];return v==null?k:k+v},""):d,i=s(t);return N(i)&&Pe.test(i)?(0,Se.unraw)(i):N(i)?i:i?String(i):""}}var cr=Object.defineProperty,hr=(t,e,r)=>e in t?cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ur=(t,e,r)=>(hr(t,typeof e!="symbol"?e+"":e,r),r),de=class{constructor(){ur(this,"_events",{})}on(e,r){var a;var o;return(a=(o=this._events)[e])!=null||(o[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let o=this._getListeners(e);if(!o)return;let a=o.indexOf(r);~a&&o.splice(a,1)}emit(e,...r){let o=this._getListeners(e);o&&o.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},br=Object.defineProperty,pr=(t,e,r)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e,r)=>(pr(t,typeof e!="symbol"?e+"":e,r),r),ce=class extends de{constructor(e){var r;super(),D(this,"_locale",""),D(this,"_locales"),D(this,"_localeData",{}),D(this,"_messages",{}),D(this,"_missing"),D(this,"_messageCompiler"),D(this,"t",this._.bind(this)),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),e.localeData!=null&&this.loadLocaleData(e.localeData),(typeof e.locale=="string"||e.locales)&&this.activate((r=e.locale)!=null?r:Ne,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var e;return(e=this._messages[this._locale])!=null?e:{}}get localeData(){var e;return(e=this._localeData[this._locale])!=null?e:{}}_loadLocaleData(e,r){let o=this._localeData[e];o?Object.assign(o,r):this._localeData[e]=r}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,r){typeof e=="string"?this._loadLocaleData(e,r):Object.keys(e).forEach(o=>this._loadLocaleData(o,e[o])),this.emit("change")}_load(e,r){let o=this._messages[e];o?Object.assign(o,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([o,a])=>this._load(o,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:o}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,o){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let a=o==null?void 0:o.message;e||(e=""),N(e)||(r=e.values||r,a=e.message,e=e.id);let n=this.messages[e],s=n===void 0,i=this._missing;if(i&&s)return ir(i)?i(this._locale,e):i;s&&this.emit("missing",{id:e,locale:this._locale});let d=n||a||e;return N(d)&&(this._messageCompiler?d=this._messageCompiler(d):console.warn(`Uncompiled message detected! Message:
2614
+
2615
+ > ${d}
2616
+
2617
+ That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
2618
+ ICU features such as interpolation and plurals will not work properly for that message.
2619
+
2620
+ Please compile your catalog first.
2621
+ `)),N(d)&&Pe.test(d)?JSON.parse(`"${d}"`):N(d)?d:dr(d,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(e,r){return ue(this._locales||this._locale,e,r)}number(e,r){return le(this._locales||this._locale,e,r)}};function gr(t={}){return new ce(t)}var W=gr();var Re={};var Z,c,Q,ee,be,j,re,pe,Ae,Ie,je,b=class extends ke(Le){constructor(){super(...arguments);ne(this,c);this.invalid=!1;this.allowValuesOutsideRange=!1;this.suffix="";this._showTooltip=!1;this._inputHasFocus=!1;ne(this,Z,null);this.anchorPositioningStyleElement=null}resetFormControl(){this.value=we(this,Z)}async updateFieldAfterValidation(){let r=this.shadowRoot.querySelector("w-textfield");await p(this,c,re).call(this,r.value,!0)}async connectedCallback(){if(super.connectedCallback(),xe(this,Z,this.value),this.setValue(this.value),"anchorName"in document.documentElement.style)await this.updateComplete;else{let r=Re.url.substring(0,Re.url.lastIndexOf("/"));try{let[{default:o}]=await Promise.all([import(`${r}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepend(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent=`
240
2622
  /*
241
2623
  * The polyfill can only anchor to ::before and ::after pseudo elements, not the pseudo element slider thumb.
242
2624
  * We work around that by recreating a transparent version of the active range
@@ -285,132 +2667,59 @@ class WarpSliderThumb extends FormControlMixin(LitElement) {
285
2667
  left: anchor(--polyfilled-thumb left);
286
2668
  margin-left: 38px;
287
2669
  }
288
- `;
289
- await polyfill({
290
- roots: [this.shadowRoot],
291
- elements: [this.anchorPositioningStyleElement],
292
- });
293
- }
294
- catch (e) {
295
- console.error(new Error('Error registering the CSS anchor positioning polyfill. The UI will look broken.', { cause: e }));
296
- }
297
- }
298
- else {
299
- await this.updateComplete;
300
- }
301
- this.#syncRangeValue();
302
- }
303
- #onTextFieldFocus(e) {
304
- // Safari fires the focus event we register on `w-textfield` also when the range input
305
- // is focused. This breaks the input masking. Rely on the custom event that is also
306
- // fired by w-textfield on focus.
307
- if (e instanceof CustomEvent && e.type === 'focus') {
308
- this._inputHasFocus = true;
309
- }
310
- }
311
- #onTextFieldBlur(e) {
312
- if (e instanceof CustomEvent && e.type === 'blur') {
313
- this._inputHasFocus = false;
314
- }
315
- }
316
- // The boundary value for this thumb (min for 'from', max for 'to' or default)
317
- get boundaryValue() {
318
- return this.slot === 'from' ? this.min : this.max;
319
- }
320
- /** Value to display in the textfield (shows boundary when focused on empty value) */
321
- get textFieldDisplayValue() {
322
- if (this._inputHasFocus) {
323
- // When focused, show the range's clamped value if the form value is empty (slider at boundary)
324
- // This allows users to see and edit the actual min/max value
325
- if (this.value !== '') {
326
- return this.value;
327
- }
328
- if (!this.range?.value) {
329
- return '';
330
- }
331
- return Math.min(Math.max(Number(this.range.value), Number(this.min) + 1), Number(this.max) - 1).toString();
332
- }
333
- // When not focused, display the value as-is:
334
- // - Empty string if slider set it to empty (at boundary)
335
- // - Actual value if user typed it (even if it equals min/max)
336
- return this.value;
337
- }
338
- /** Value to display in the tooltip */
339
- get tooltipDisplayValue() {
340
- if (this.formatter) {
341
- return this.formatter(this.value, this.slot);
342
- }
343
- if (this.value === '') {
344
- return this.range?.value ?? this.boundaryValue;
345
- }
346
- return this.value || 0;
347
- }
348
- updated(changedProperties) {
349
- if (changedProperties.has('value')) {
350
- this.setValue(this.value);
351
- this.#syncRangeValue();
352
- }
353
- }
354
- render() {
355
- return html `
2670
+ `,await o({roots:[this.shadowRoot],elements:[this.anchorPositioningStyleElement]})}catch(o){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:o}))}}p(this,c,be).call(this)}get boundaryValue(){return this.slot==="from"?this.min:this.max}get textFieldDisplayValue(){var r;return this._inputHasFocus?this.value!==""?this.value:(r=this.range)!=null&&r.value?Math.min(Math.max(Number(this.range.value),Number(this.min)+1),Number(this.max)-1).toString():"":this.value}get tooltipDisplayValue(){var r,o;return this.formatter?this.formatter(this.value,this.slot):this.value===""?(o=(r=this.range)==null?void 0:r.value)!=null?o:this.boundaryValue:this.value||0}updated(r){r.has("value")&&(this.setValue(this.value),p(this,c,be).call(this))}render(){return I`
356
2671
  <div class="w-slider-thumb">
357
2672
  <label for="range">${this.label}</label>
358
- ${!('anchorName' in document.documentElement.style)
359
- ? html `<div class="polyfill-range">
2673
+ ${"anchorName"in document.documentElement.style?O:I`<div class="polyfill-range">
360
2674
  <div class="polyfill-active-range"></div>
361
- </div>`
362
- : nothing}
2675
+ </div>`}
363
2676
  <input
364
2677
  id="range"
365
2678
  aria-label="${this.ariaLabel}"
366
- aria-describedby="${ifDefined(this.ariaDescription ? 'aria-description' : undefined)}"
2679
+ aria-describedby="${J(this.ariaDescription?"aria-description":void 0)}"
367
2680
  class="w-slider-thumb__range"
368
2681
  type="range"
369
2682
  .value="${this.value}"
370
2683
  aria-valuetext="${this.tooltipDisplayValue}"
371
2684
  min="${this.min}"
372
2685
  max="${this.max}"
373
- step="${ifDefined(!this.allowValuesOutsideRange && this.step ? this.step : undefined)}"
2686
+ step="${J(!this.allowValuesOutsideRange&&this.step?this.step:void 0)}"
374
2687
  ?disabled="${this.disabled}"
375
- @mousedown="${this.#showTooltip}"
376
- @mouseup="${this.#hideTooltip}"
377
- @touchstart="${this.#showTooltip}"
378
- @touchend="${this.#hideTooltip}"
379
- @focus="${this.#showTooltip}"
380
- @blur="${this.#hideTooltip}"
381
- @input="${this.#onInput}"
382
- @keydown="${this.allowValuesOutsideRange ? this.#onRangeSliderKeyDown : nothing}"
2688
+ @mousedown="${p(this,c,Q)}"
2689
+ @mouseup="${p(this,c,ee)}"
2690
+ @touchstart="${p(this,c,Q)}"
2691
+ @touchend="${p(this,c,ee)}"
2692
+ @focus="${p(this,c,Q)}"
2693
+ @blur="${p(this,c,ee)}"
2694
+ @input="${p(this,c,pe)}"
2695
+ @keydown="${this.allowValuesOutsideRange?p(this,c,Ae):O}"
383
2696
  />
384
2697
 
385
- ${this.slot === 'from'
386
- ? html `<span class="w-slider-thumb__from-marker"
387
- >${this.formatter ? this.formatter(this.allowValuesOutsideRange ? '' : this.min, 'from') : this.min}
2698
+ ${this.slot==="from"?I`<span class="w-slider-thumb__from-marker"
2699
+ >${this.formatter?this.formatter(this.allowValuesOutsideRange?"":this.min,"from"):this.min}
388
2700
  ${this.suffix}</span
389
- >`
390
- : nothing}
391
- ${this.slot === 'to'
392
- ? html `<span class="w-slider-thumb__to-marker"
393
- >${this.formatter ? this.formatter(this.allowValuesOutsideRange ? '' : this.max, 'to') : this.max}
2701
+ >`:O}
2702
+ ${this.slot==="to"?I`<span class="w-slider-thumb__to-marker"
2703
+ >${this.formatter?this.formatter(this.allowValuesOutsideRange?"":this.max,"to"):this.max}
394
2704
  ${this.suffix}</span
395
- >`
396
- : nothing}
2705
+ >`:O}
397
2706
 
398
2707
  <w-textfield
399
2708
  aria-label="${this.ariaLabel}"
400
- aria-description="${ifDefined(this.ariaDescription)}"
2709
+ aria-description="${J(this.ariaDescription)}"
401
2710
  class="w-slider-thumb__textfield"
402
2711
  type="number"
403
- .formatter=${this.formatter ? (value) => this.formatter(value, this.slot) : nothing}
2712
+ .formatter=${this.formatter?r=>this.formatter(r,this.slot):O}
404
2713
  .value="${this.textFieldDisplayValue}"
405
- min="${this.allowValuesOutsideRange ? nothing : this.min}"
406
- max="${this.allowValuesOutsideRange ? nothing : this.max}"
407
- step="${ifDefined(this.step)}"
408
- ?invalid="${Boolean(this.invalid)}"
409
- @input="${this.#onInput}"
410
- @focus="${this.#onTextFieldFocus}"
411
- @blur="${this.#onTextFieldBlur}"
2714
+ min="${this.allowValuesOutsideRange?O:this.min}"
2715
+ max="${this.allowValuesOutsideRange?O:this.max}"
2716
+ step="${J(this.step)}"
2717
+ ?invalid="${!!this.invalid}"
2718
+ @input="${p(this,c,pe)}"
2719
+ @focus="${p(this,c,Ie)}"
2720
+ @blur="${p(this,c,je)}"
412
2721
  >
413
- ${this.suffix ? html `<w-affix slot="suffix" label="${this.suffix}"></w-affix>` : nothing}
2722
+ ${this.suffix?I`<w-affix slot="suffix" label="${this.suffix}"></w-affix>`:O}
414
2723
  </w-textfield>
415
2724
 
416
2725
  <w-attention
@@ -426,7 +2735,7 @@ class WarpSliderThumb extends FormControlMixin(LitElement) {
426
2735
  slot="target"
427
2736
  ></output>
428
2737
  <span slot="message">
429
- ${this.tooltipDisplayValue}${this.suffix ? html `&nbsp;${this.suffix}` : nothing}
2738
+ ${this.tooltipDisplayValue}${this.suffix?I`&nbsp;${this.suffix}`:O}
430
2739
  </span>
431
2740
  </w-attention>
432
2741
 
@@ -435,67 +2744,5 @@ class WarpSliderThumb extends FormControlMixin(LitElement) {
435
2744
  >${this.ariaDescription}</span
436
2745
  >
437
2746
  </div>
438
- `;
439
- }
440
- }
441
- __decorate([
442
- property({ attribute: 'aria-label', reflect: true })
443
- ], WarpSliderThumb.prototype, "ariaLabel", void 0);
444
- __decorate([
445
- property({ attribute: 'aria-description', reflect: true })
446
- ], WarpSliderThumb.prototype, "ariaDescription", void 0);
447
- __decorate([
448
- property({ reflect: true })
449
- ], WarpSliderThumb.prototype, "label", void 0);
450
- __decorate([
451
- property({ reflect: true })
452
- ], WarpSliderThumb.prototype, "name", void 0);
453
- __decorate([
454
- property({ reflect: true })
455
- ], WarpSliderThumb.prototype, "value", void 0);
456
- __decorate([
457
- property({ type: Boolean, reflect: true })
458
- ], WarpSliderThumb.prototype, "disabled", void 0);
459
- __decorate([
460
- property({ type: Boolean, reflect: true })
461
- ], WarpSliderThumb.prototype, "invalid", void 0);
462
- __decorate([
463
- property({ attribute: false, reflect: false })
464
- ], WarpSliderThumb.prototype, "allowValuesOutsideRange", void 0);
465
- __decorate([
466
- state()
467
- ], WarpSliderThumb.prototype, "markers", void 0);
468
- __decorate([
469
- state()
470
- ], WarpSliderThumb.prototype, "required", void 0);
471
- __decorate([
472
- state()
473
- ], WarpSliderThumb.prototype, "step", void 0);
474
- __decorate([
475
- state()
476
- ], WarpSliderThumb.prototype, "min", void 0);
477
- __decorate([
478
- state()
479
- ], WarpSliderThumb.prototype, "max", void 0);
480
- __decorate([
481
- state()
482
- ], WarpSliderThumb.prototype, "suffix", void 0);
483
- __decorate([
484
- state()
485
- ], WarpSliderThumb.prototype, "formatter", void 0);
486
- __decorate([
487
- query('input[type="range"]')
488
- ], WarpSliderThumb.prototype, "range", void 0);
489
- __decorate([
490
- query('w-textfield')
491
- ], WarpSliderThumb.prototype, "textfield", void 0);
492
- __decorate([
493
- state()
494
- ], WarpSliderThumb.prototype, "_showTooltip", void 0);
495
- __decorate([
496
- state()
497
- ], WarpSliderThumb.prototype, "_inputHasFocus", void 0);
498
- if (!customElements.get('w-slider-thumb')) {
499
- customElements.define('w-slider-thumb', WarpSliderThumb);
500
- }
501
- export { WarpSliderThumb };
2747
+ `}};Z=new WeakMap,c=new WeakSet,Q=function(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()},ee=function(){this._showTooltip=!1},be=function(){this.range&&(this.value===""?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))},j=function(r){this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invalid:r,slot:this.slot}}))},re=async function(r,o){let a=Number.parseInt(r);if(this.allowValuesOutsideRange&&!o&&this.step&&!(this.slot==="to"&&a>=Number(this.max)-1||this.slot==="from"&&a<=Number(this.min)+1)){let k=1/this.step;a=Math.round(a*k)/k,r=a.toString()}let n=Number.parseInt(this.max),s=Number.parseInt(this.min);if(!this.allowValuesOutsideRange&&(a>n||a<s))return p(this,c,j).call(this,W.t({id:"slider.error.out_of_bounds",message:"Value must be between {min} and {max}",values:{min:`${this.min} ${this.suffix}`.trim(),max:`${this.max} ${this.suffix}`.trim()}})),{shouldCancel:!0};if(r==="")return this.required&&p(this,c,j).call(this,W.t({id:"slider.error.required",message:"This field is required"})),{shouldCancel:!0};this.value=r;let i=r===this.max||r===this.min,d=!1;if(this.slot){let g=this.parentElement.querySelector('w-slider-thumb[slot="to"]'),k=this.parentElement.querySelector('w-slider-thumb[slot="from"]'),z=g.textfield.value||this.max,F=k.textfield.value||this.min,y=Number.parseInt(z),E=Number.parseInt(F),M=W.t({id:"slider.error.overlap",message:"The maximum value cannot be less than the minimum"});if(this.slot==="from"){let v=this.allowValuesOutsideRange&&y>n?y:Math.min(y,this.allowValuesOutsideRange?n-1:n);a>v&&(d=!0,this.allowValuesOutsideRange&&i?this.value=String(v):this.value=z,o&&(p(this,c,j).call(this,M),await this.updateComplete,this.textfield.value=r))}else{let v=this.allowValuesOutsideRange&&E<s?E:Math.max(Number.parseInt(F),this.allowValuesOutsideRange?s+1:s);a<v&&(d=!0,this.allowValuesOutsideRange&&i?this.value=String(v):this.value=F,o&&(p(this,c,j).call(this,M),await this.updateComplete,this.textfield.value=r))}}return d?{shouldCancel:!0}:(p(this,c,j).call(this,""),this.range.value=Math.min(Math.max(Number(r),Number(this.min)),Number(this.max)).toString(),this.value=this.allowValuesOutsideRange&&!o&&i?"":r,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})},pe=async function(r){let o=r.currentTarget.tagName==="W-TEXTFIELD";if(r instanceof CustomEvent)return;let a=r.currentTarget.value;return(await p(this,c,re).call(this,a,o)).shouldCancel?(r.preventDefault(),!1):!0},Ae=async function(r){if(r.key!=="ArrowLeft"&&r.key!=="ArrowRight")return;let o=Number(this.range.value),a=this.step||1,n;r.key==="ArrowLeft"?n=o-a:n=o+a,n=Math.min(Math.max(n,Number(this.min)),Number(this.max)),(await p(this,c,re).call(this,n.toString(),!1)).shouldCancel&&r.preventDefault()},Ie=function(r){r instanceof CustomEvent&&r.type==="focus"&&(this._inputHasFocus=!0)},je=function(r){r instanceof CustomEvent&&r.type==="blur"&&(this._inputHasFocus=!1)},b.shadowRootOptions={...Le.shadowRootOptions,delegatesFocus:!0},b.styles=[_e,ze,Ce],m([P({attribute:"aria-label",reflect:!0})],b.prototype,"ariaLabel",2),m([P({attribute:"aria-description",reflect:!0})],b.prototype,"ariaDescription",2),m([P({reflect:!0})],b.prototype,"label",2),m([P({reflect:!0})],b.prototype,"name",2),m([P({reflect:!0})],b.prototype,"value",2),m([P({type:Boolean,reflect:!0})],b.prototype,"disabled",2),m([P({type:Boolean,reflect:!0})],b.prototype,"invalid",2),m([P({attribute:!1,reflect:!1})],b.prototype,"allowValuesOutsideRange",2),m([S()],b.prototype,"markers",2),m([S()],b.prototype,"required",2),m([S()],b.prototype,"step",2),m([S()],b.prototype,"min",2),m([S()],b.prototype,"max",2),m([S()],b.prototype,"suffix",2),m([S()],b.prototype,"formatter",2),m([De('input[type="range"]')],b.prototype,"range",2),m([De("w-textfield")],b.prototype,"textfield",2),m([S()],b.prototype,"_showTooltip",2),m([S()],b.prototype,"_inputHasFocus",2);customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",b);export{b as WarpSliderThumb};
2748
+ //# sourceMappingURL=slider-thumb.js.map