@warp-ds/elements 2.8.2-next.1 → 2.8.2-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +195 -121
- package/dist/index.d.ts +52 -22
- package/dist/packages/affix/affix.hydration.test.d.ts +1 -0
- package/dist/packages/affix/affix.hydration.test.js +33 -0
- package/dist/packages/affix/affix.js +5 -5
- package/dist/packages/affix/affix.js.map +3 -3
- package/dist/packages/alert/alert.d.ts +1 -0
- package/dist/packages/alert/alert.hydration.test.d.ts +1 -0
- package/dist/packages/alert/alert.hydration.test.js +47 -0
- package/dist/packages/alert/alert.js +7 -7
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/alert.test.js +21 -0
- package/dist/packages/attention/attention.hydration.test.d.ts +1 -0
- package/dist/packages/attention/attention.hydration.test.js +66 -0
- package/dist/packages/attention/attention.js +15 -15
- package/dist/packages/attention/attention.js.map +3 -3
- package/dist/packages/badge/badge.hydration.test.d.ts +1 -0
- package/dist/packages/badge/badge.hydration.test.js +50 -0
- package/dist/packages/badge/badge.js +2 -2
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/badge.test.js +14 -0
- package/dist/packages/box/box.hydration.test.d.ts +1 -0
- package/dist/packages/box/box.hydration.test.js +37 -0
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +141 -0
- package/dist/packages/breadcrumbs/breadcrumbs.js +7 -7
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +3 -3
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +3 -1
- package/dist/packages/button/button.hydration.test.d.ts +1 -0
- package/dist/packages/button/button.hydration.test.js +43 -0
- package/dist/packages/button/button.js +9 -9
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/card/card.hydration.test.d.ts +1 -0
- package/dist/packages/card/card.hydration.test.js +38 -0
- package/dist/packages/card/card.react.stories.d.ts +1 -1
- package/dist/packages/checkbox/checkbox.d.ts +17 -1
- package/dist/packages/checkbox/checkbox.hydration.test.d.ts +1 -0
- package/dist/packages/checkbox/checkbox.hydration.test.js +47 -0
- package/dist/packages/checkbox/checkbox.js +20 -19
- package/dist/packages/checkbox/checkbox.js.map +3 -3
- package/dist/packages/checkbox/styles.js +10 -9
- package/dist/packages/checkbox-group/checkbox-group.d.ts +7 -0
- package/dist/packages/checkbox-group/checkbox-group.hydration.test.d.ts +2 -0
- package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +40 -0
- package/dist/packages/checkbox-group/checkbox-group.js +14 -14
- package/dist/packages/checkbox-group/checkbox-group.js.map +3 -3
- package/dist/packages/checkbox-group/checkbox-group.test.js +10 -0
- package/dist/packages/combobox/combobox.hydration.test.d.ts +1 -0
- package/dist/packages/combobox/combobox.hydration.test.js +43 -0
- package/dist/packages/combobox/combobox.js +2 -2
- package/dist/packages/combobox/combobox.js.map +2 -2
- package/dist/packages/combobox/combobox.react.stories.d.ts +1 -1
- package/dist/packages/combobox/combobox.test.js +5 -2
- package/dist/packages/datepicker/datepicker.hydration.test.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.hydration.test.js +40 -0
- package/dist/packages/datepicker/datepicker.js +5 -5
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/expandable/expandable.hydration.test.d.ts +1 -0
- package/dist/packages/expandable/expandable.hydration.test.js +47 -0
- package/dist/packages/expandable/expandable.js +12 -12
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/icon/icon.hydration.test.d.ts +1 -0
- package/dist/packages/icon/icon.hydration.test.js +47 -0
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.test.d.ts +1 -0
- package/dist/packages/icon/icon.test.js +51 -0
- package/dist/packages/link/link.hydration.test.d.ts +1 -0
- package/dist/packages/link/link.hydration.test.js +54 -0
- package/dist/packages/link/link.js +4 -4
- package/dist/packages/link/link.js.map +3 -3
- package/dist/packages/link/link.test.js +14 -0
- package/dist/packages/modal/modal.hydration.test.d.ts +1 -0
- package/dist/packages/modal/modal.hydration.test.js +25 -0
- package/dist/packages/modal-header/modal-header.js +6 -6
- package/dist/packages/modal-header/modal-header.js.map +3 -3
- package/dist/packages/page-indicator/page-indicator.hydration.test.d.ts +1 -0
- package/dist/packages/page-indicator/page-indicator.hydration.test.js +41 -0
- package/dist/packages/page-indicator/page-indicator.js +7 -7
- package/dist/packages/page-indicator/page-indicator.js.map +3 -3
- package/dist/packages/page-indicator/page-indicator.test.js +23 -0
- package/dist/packages/pagination/pagination.d.ts +4 -0
- package/dist/packages/pagination/pagination.hydration.test.d.ts +1 -0
- package/dist/packages/pagination/pagination.hydration.test.js +38 -0
- package/dist/packages/pagination/pagination.js +20 -20
- package/dist/packages/pagination/pagination.js.map +3 -3
- package/dist/packages/pagination/pagination.react.stories.d.ts +1 -1
- package/dist/packages/pagination/pagination.test.js +18 -0
- package/dist/packages/pill/pill.hydration.test.d.ts +1 -0
- package/dist/packages/pill/pill.hydration.test.js +32 -0
- package/dist/packages/pill/pill.js +5 -5
- package/dist/packages/pill/pill.js.map +3 -3
- package/dist/packages/radio/radio.a11y.test.js +15 -6
- package/dist/packages/radio/radio.d.ts +33 -1
- package/dist/packages/radio/radio.hydration.test.d.ts +1 -0
- package/dist/packages/radio/radio.hydration.test.js +29 -0
- package/dist/packages/radio/radio.js +7 -7
- package/dist/packages/radio/radio.js.map +3 -3
- package/dist/packages/radio/radio.test.js +22 -15
- package/dist/packages/radio-group/radio-group.a11y.test.js +4 -0
- package/dist/packages/radio-group/radio-group.hydration.test.d.ts +2 -0
- package/dist/packages/radio-group/radio-group.hydration.test.js +32 -0
- package/dist/packages/radio-group/radio-group.js +17 -17
- package/dist/packages/radio-group/radio-group.js.map +3 -3
- package/dist/packages/radio-group/radio-group.test.js +3 -2
- package/dist/packages/select/select.hydration.test.d.ts +1 -0
- package/dist/packages/select/select.hydration.test.js +37 -0
- package/dist/packages/select/select.js +13 -13
- package/dist/packages/select/select.js.map +3 -3
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/slider/slider.hydration.test.d.ts +1 -0
- package/dist/packages/slider/slider.hydration.test.js +33 -0
- package/dist/packages/slider/slider.js +9 -9
- package/dist/packages/slider/slider.js.map +3 -3
- package/dist/packages/slider/slider.test.js +54 -0
- package/dist/packages/slider-thumb/slider-thumb.hydration.test.d.ts +1 -0
- package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +35 -0
- package/dist/packages/slider-thumb/slider-thumb.js +16 -16
- package/dist/packages/slider-thumb/slider-thumb.js.map +3 -3
- package/dist/packages/step/step.d.ts +1 -0
- package/dist/packages/step/step.hydration.test.d.ts +1 -0
- package/dist/packages/step/step.hydration.test.js +25 -0
- package/dist/packages/step/step.js +4 -4
- package/dist/packages/step/step.js.map +3 -3
- package/dist/packages/step-indicator/step-indicator.a11y.test.js +3 -1
- package/dist/packages/step-indicator/step-indicator.hydration.test.d.ts +1 -0
- package/dist/packages/step-indicator/step-indicator.hydration.test.js +25 -0
- package/dist/packages/switch/switch.a11y.test.js +23 -9
- package/dist/packages/switch/switch.d.ts +6 -0
- package/dist/packages/switch/switch.hydration.test.d.ts +1 -0
- package/dist/packages/switch/switch.hydration.test.js +54 -0
- package/dist/packages/switch/switch.js +7 -13
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/switch/switch.test.js +0 -5
- package/dist/packages/tab/tab.d.ts +39 -2
- package/dist/packages/tab/tab.hydration.test.d.ts +1 -0
- package/dist/packages/tab/tab.hydration.test.js +25 -0
- package/dist/packages/tab/tab.js +22 -12
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/tab-panel.d.ts +23 -1
- package/dist/packages/tab-panel/tab-panel.hydration.test.d.ts +1 -0
- package/dist/packages/tab-panel/tab-panel.hydration.test.js +21 -0
- package/dist/packages/tab-panel/tab-panel.js +18 -3
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/tabs.a11y.test.js +59 -8
- package/dist/packages/tabs/tabs.hydration.test.d.ts +1 -0
- package/dist/packages/tabs/tabs.hydration.test.js +20 -0
- package/dist/packages/tabs/tabs.js +6 -6
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.test.js +93 -1
- package/dist/packages/textarea/textarea.hydration.test.d.ts +1 -0
- package/dist/packages/textarea/textarea.hydration.test.js +43 -0
- package/dist/packages/textarea/textarea.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.hydration.test.d.ts +1 -0
- package/dist/packages/textfield/textfield.hydration.test.js +43 -0
- package/dist/packages/textfield/textfield.js +2 -2
- package/dist/packages/textfield/textfield.js.map +2 -2
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.test.js +26 -0
- package/dist/packages/toast/toast.js +6 -6
- package/dist/packages/toast/toast.js.map +3 -3
- package/dist/packages/toast/toast.test.d.ts +1 -0
- package/dist/packages/toast/toast.test.js +58 -0
- package/dist/setup-tests.d.ts +2 -1
- package/dist/setup-tests.js +4 -3
- package/dist/tests/react-hydration.d.ts +20 -0
- package/dist/tests/react-hydration.js +138 -0
- package/dist/web-types.json +67 -63
- package/package.json +4 -3
|
@@ -229,8 +229,9 @@ test('disabled group prevents selection and disables child radios', async () =>
|
|
|
229
229
|
const group = document.querySelector('w-radio-group');
|
|
230
230
|
const radios = Array.from(document.querySelectorAll('w-radio'));
|
|
231
231
|
await group.updateComplete;
|
|
232
|
-
|
|
233
|
-
expect(radios[
|
|
232
|
+
// Check the disabled property - aria-disabled is set via ElementInternals
|
|
233
|
+
expect(radios[0].disabled).toBe(true);
|
|
234
|
+
expect(radios[1].disabled).toBe(true);
|
|
234
235
|
expect(radios[0].tabIndex).toBe(-1);
|
|
235
236
|
expect(radios[1].tabIndex).toBe(-1);
|
|
236
237
|
radios[0].click();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './select.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { describe, expect, test, beforeEach, afterEach } from 'vitest';
|
|
2
|
+
import { setupHydrationWarningCapture, testHydration } from '../../tests/react-hydration';
|
|
3
|
+
import './select.js';
|
|
4
|
+
describe('w-select React SSR hydration', () => {
|
|
5
|
+
beforeEach(() => setupHydrationWarningCapture());
|
|
6
|
+
afterEach(() => {
|
|
7
|
+
window.__HYDRATION_WARNINGS__ = [];
|
|
8
|
+
});
|
|
9
|
+
test('default (no attributes) hydrates without warnings', async () => {
|
|
10
|
+
const warnings = await testHydration('w-select', {});
|
|
11
|
+
expect(warnings).toEqual([]);
|
|
12
|
+
});
|
|
13
|
+
test('with label hydrates without warnings', async () => {
|
|
14
|
+
const warnings = await testHydration('w-select', {
|
|
15
|
+
label: 'Country',
|
|
16
|
+
});
|
|
17
|
+
expect(warnings).toEqual([]);
|
|
18
|
+
});
|
|
19
|
+
test('with disabled state hydrates without warnings', async () => {
|
|
20
|
+
const warnings = await testHydration('w-select', {
|
|
21
|
+
disabled: true,
|
|
22
|
+
});
|
|
23
|
+
expect(warnings).toEqual([]);
|
|
24
|
+
});
|
|
25
|
+
test('with invalid state hydrates without warnings', async () => {
|
|
26
|
+
const warnings = await testHydration('w-select', {
|
|
27
|
+
invalid: true,
|
|
28
|
+
});
|
|
29
|
+
expect(warnings).toEqual([]);
|
|
30
|
+
});
|
|
31
|
+
test('with help text hydrates without warnings', async () => {
|
|
32
|
+
const warnings = await testHydration('w-select', {
|
|
33
|
+
'help-text': 'Select your country',
|
|
34
|
+
});
|
|
35
|
+
expect(warnings).toEqual([]);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var cr=Object.create;var be=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty;var Oe=o=>{throw TypeError(o)};var Te=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var hr=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of dr(e))!br.call(o,a)&&a!==r&&be(o,a,{get:()=>e[a],enumerable:!(t=Le(e,a))||t.enumerable});return o};var pr=(o,e,r)=>(r=o!=null?cr(ur(o)):{},hr(e||!o||!o.__esModule?be(r,"default",{value:o,enumerable:!0}):r,o));var p=(o,e,r,t)=>{for(var a=t>1?void 0:t?Le(e,r):e,
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function yr(o){return xr.get(o)||o}var kr=/\\(?:(\\)|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 Pe(o,e=!1){return o.replace(kr,function(r,t,a,s,
|
|
1
|
+
var cr=Object.create;var be=Object.defineProperty;var Le=Object.getOwnPropertyDescriptor;var dr=Object.getOwnPropertyNames;var ur=Object.getPrototypeOf,br=Object.prototype.hasOwnProperty;var Oe=o=>{throw TypeError(o)};var Te=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports);var hr=(o,e,r,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of dr(e))!br.call(o,a)&&a!==r&&be(o,a,{get:()=>e[a],enumerable:!(t=Le(e,a))||t.enumerable});return o};var pr=(o,e,r)=>(r=o!=null?cr(ur(o)):{},hr(e||!o||!o.__esModule?be(r,"default",{value:o,enumerable:!0}):r,o));var p=(o,e,r,t)=>{for(var a=t>1?void 0:t?Le(e,r):e,i=o.length-1,s;i>=0;i--)(s=o[i])&&(a=(t?s(e,r,a):s(a))||a);return t&&a&&be(e,r,a),a};var he=(o,e,r)=>e.has(o)||Oe("Cannot "+r);var x=(o,e,r)=>(he(o,e,"read from private field"),r?r.call(o):e.get(o)),q=(o,e,r)=>e.has(o)?Oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),pe=(o,e,r,t)=>(he(o,e,"write to private field"),t?t.call(o,r):e.set(o,r),r),w=(o,e,r)=>(he(o,e,"access private method"),r);var Se=Te(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.errorMessages=N.ErrorType=void 0;var R;(function(o){o.MalformedUnicode="MALFORMED_UNICODE",o.MalformedHexadecimal="MALFORMED_HEXADECIMAL",o.CodePointLimit="CODE_POINT_LIMIT",o.OctalDeprecation="OCTAL_DEPRECATION",o.EndOfString="END_OF_STRING"})(R=N.ErrorType||(N.ErrorType={}));N.errorMessages=new Map([[R.MalformedUnicode,"malformed Unicode character escape sequence"],[R.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[R.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[R.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[R.EndOfString,"malformed escape sequence at end of string"]])});var De=Te(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.unraw=T.errorMessages=T.ErrorType=void 0;var y=Se();Object.defineProperty(T,"ErrorType",{enumerable:!0,get:function(){return y.ErrorType}});Object.defineProperty(T,"errorMessages",{enumerable:!0,get:function(){return y.errorMessages}});function gr(o){return!o.match(/[^a-f0-9]/i)?parseInt(o,16):NaN}function ee(o,e,r){let t=gr(o);if(Number.isNaN(t)||r!==void 0&&r!==o.length)throw new SyntaxError(y.errorMessages.get(e));return t}function vr(o){let e=ee(o,y.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function Ve(o,e){let r=ee(o,y.ErrorType.MalformedUnicode,4);if(e!==void 0){let t=ee(e,y.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}function mr(o){return o.charAt(0)==="{"&&o.charAt(o.length-1)==="}"}function fr(o){if(!mr(o))throw new SyntaxError(y.errorMessages.get(y.ErrorType.MalformedUnicode));let e=o.slice(1,-1),r=ee(e,y.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(y.errorMessages.get(y.ErrorType.CodePointLimit)):t}}function wr(o,e=!1){if(e)throw new SyntaxError(y.errorMessages.get(y.ErrorType.OctalDeprecation));let r=parseInt(o,8);return String.fromCharCode(r)}var xr=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function yr(o){return xr.get(o)||o}var kr=/\\(?:(\\)|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 Pe(o,e=!1){return o.replace(kr,function(r,t,a,i,s,n,d,h,_){if(t!==void 0)return"\\";if(a!==void 0)return vr(a);if(i!==void 0)return fr(i);if(s!==void 0)return Ve(s,n);if(d!==void 0)return Ve(d);if(h==="0")return"\0";if(h!==void 0)return wr(h,!e);if(_!==void 0)return yr(_);throw new SyntaxError(y.errorMessages.get(y.ErrorType.EndOfString))})}T.unraw=Pe;T.default=Pe});var J=function(){for(var o=[],e=arguments.length;e--;)o[e]=arguments[e];return o.reduce(function(r,t){return r.concat(typeof t=="string"?t:Array.isArray(t)?J.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var Ne=pr(De(),1);var D=o=>typeof o=="string",_r=o=>typeof o=="function",$e=new Map,je="en";function fe(o){return[...Array.isArray(o)?o:[o],je]}function we(o,e,r){let t=fe(o);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 re(()=>oe("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(D(e)?new Date(e):e)}function Cr(o,e,r){let t;if(r||(r="default"),typeof r=="string")switch(t={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":t.timeZoneName="short";break;case"short":delete t.second}else t=r;return we(o,e,t)}function ge(o,e,r){let t=fe(o);return re(()=>oe("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function Ae(o,e,r,{offset:t=0,...a}){var n,d;let i=fe(o),s=e?re(()=>oe("plural-ordinal",i),()=>new Intl.PluralRules(i,{type:"ordinal"})):re(()=>oe("plural-cardinal",i),()=>new Intl.PluralRules(i,{type:"cardinal"}));return(d=(n=a[r])!=null?n:a[s.select(r-t)])!=null?d:a.other}function re(o,e){let r=o(),t=$e.get(r);return t||(t=e(),$e.set(r,t)),t}function oe(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var Ie=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Re="%__lingui_octothorpe__%",zr=(o,e,r={})=>{let t=e||o,a=s=>typeof s=="object"?s:r[s],i=(s,n)=>{let d=Object.keys(r).length?a("number"):void 0,h=ge(t,s,d);return n.replace(new RegExp(Re,"g"),h)};return{plural:(s,n)=>{let{offset:d=0}=n,h=Ae(t,!1,s,n);return i(s-d,h)},selectordinal:(s,n)=>{let{offset:d=0}=n,h=Ae(t,!0,s,n);return i(s-d,h)},select:Mr,number:(s,n)=>ge(t,s,a(n)||{style:n}),date:(s,n)=>we(t,s,a(n)||n),time:(s,n)=>Cr(t,s,a(n)||n)}},Mr=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function Er(o,e,r){return(t={},a)=>{let i=zr(e,r,a),s=(d,h=!1)=>Array.isArray(d)?d.reduce((_,E)=>{if(E==="#"&&h)return _+Re;if(D(E))return _+E;let[L,z,V]=E,P={};z==="plural"||z==="selectordinal"||z==="select"?Object.entries(V).forEach(([A,H])=>{P[A]=s(H,z==="plural"||z==="selectordinal")}):P=V;let C;if(z){let A=i[z];C=A(t[L],P)}else C=t[L];return C==null?_:_+C},""):d,n=s(o);return D(n)&&Ie.test(n)?(0,Ne.unraw)(n):D(n)?n:n?String(n):""}}var Fr=Object.defineProperty,Lr=(o,e,r)=>e in o?Fr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Or=(o,e,r)=>(Lr(o,typeof e!="symbol"?e+"":e,r),r),ve=class{constructor(){Or(this,"_events",{})}on(e,r){var a;var t;return(a=(t=this._events)[e])!=null||(t[e]=[]),this._events[e].push(r),()=>this.removeListener(e,r)}removeListener(e,r){let t=this._getListeners(e);if(!t)return;let a=t.indexOf(r);~a&&t.splice(a,1)}emit(e,...r){let t=this._getListeners(e);t&&t.map(a=>a.apply(this,r))}_getListeners(e){let r=this._events[e];return Array.isArray(r)?r:!1}},Tr=Object.defineProperty,Sr=(o,e,r)=>e in o?Tr(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,j=(o,e,r)=>(Sr(o,typeof e!="symbol"?e+"":e,r),r),me=class extends ve{constructor(e){var r;super(),j(this,"_locale",""),j(this,"_locales"),j(this,"_localeData",{}),j(this,"_messages",{}),j(this,"_missing"),j(this,"_messageCompiler"),j(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:je,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 t=this._localeData[e];t?Object.assign(t,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(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,r){let t=this._messages[e];t?Object.assign(t,r):this._messages[e]=r}load(e,r){typeof e=="string"&&typeof r=="object"?this._load(e,r):Object.entries(e).forEach(([t,a])=>this._load(t,a)),this.emit("change")}loadAndActivate({locale:e,locales:r,messages:t}){this._locale=e,this._locales=r||void 0,this._messages[this._locale]=t,this.emit("change")}activate(e,r){this._locale=e,this._locales=r,this.emit("change")}_(e,r,t){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=t==null?void 0:t.message;e||(e=""),D(e)||(r=e.values||r,a=e.message,e=e.id);let i=this.messages[e],s=i===void 0,n=this._missing;if(n&&s)return _r(n)?n(this._locale,e):n;s&&this.emit("missing",{id:e,locale:this._locale});let d=i||a||e;return D(d)&&(this._messageCompiler?d=this._messageCompiler(d):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
4
|
> ${d}
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),D(d)&&Ie.test(d)?JSON.parse(`"${d}"`):D(d)?d:Er(d,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return we(this._locales||this._locale,e,r)}number(e,r){return ge(this._locales||this._locale,e,r)}};function Vr(o={}){return new me(o)}var F=Vr();var b=function(o,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!t:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(o):t?t.value:e.get(o)},v=function(o,e,r,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!a:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,r):a?a.value=r:e.set(o,r),r};function Ye(o){var e,r,t,a,s,
|
|
10
|
+
`)),D(d)&&Ie.test(d)?JSON.parse(`"${d}"`):D(d)?d:Er(d,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return we(this._locales||this._locale,e,r)}number(e,r){return ge(this._locales||this._locale,e,r)}};function Vr(o={}){return new me(o)}var F=Vr();var b=function(o,e,r,t){if(r==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?o!==e||!t:!e.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?t:r==="a"?t.call(o):t?t.value:e.get(o)},v=function(o,e,r,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?o!==e||!a:!e.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(o,r):a?a.value=r:e.set(o,r),r};function Ye(o){var e,r,t,a,i,s,n,d,h,_,E,L,z,V,P,C,A,H,ce;class lr extends o{constructor(...c){var u,g,f;super(...c),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),t.set(this,!1),a.set(this,!1),i.set(this,void 0),s.set(this,void 0),n.set(this,!0),h.set(this,""),_.set(this,()=>{v(this,a,!0,"f"),v(this,r,!0,"f"),b(this,e,"m",C).call(this)}),E.set(this,()=>{v(this,r,!1,"f"),b(this,e,"m",A).call(this,this.shouldFormValueUpdate()?b(this,h,"f"):""),!this.validity.valid&&b(this,a,"f")&&v(this,t,!0,"f");let O=b(this,e,"m",C).call(this);this.validationMessageCallback&&this.validationMessageCallback(O?this.internals.validationMessage:"")}),L.set(this,()=>{var O;b(this,n,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),v(this,n,!1,"f")),v(this,a,!0,"f"),v(this,t,!0,"f"),b(this,e,"m",C).call(this),(O=this===null||this===void 0?void 0:this.validationMessageCallback)===null||O===void 0||O.call(this,this.showError?this.internals.validationMessage:"")}),z.set(this,void 0),V.set(this,!1),P.set(this,Promise.resolve()),(u=this.addEventListener)===null||u===void 0||u.call(this,"focus",b(this,_,"f")),(g=this.addEventListener)===null||g===void 0||g.call(this,"blur",b(this,E,"f")),(f=this.addEventListener)===null||f===void 0||f.call(this,"invalid",b(this,L,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let c=this.validators.map(f=>f.attribute).flat(),u=super.observedAttributes||[];return[...new Set([...u,...c])]}static getValidator(c){return this.validators.find(u=>u.attribute===c)||null}static getValidators(c){return this.validators.filter(u=>{var g;if(u.attribute===c||!((g=u.attribute)===null||g===void 0)&&g.includes(c))return!0})}get form(){return this.internals.form}get showError(){return b(this,e,"m",C).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(c,u,g){var f;(f=super.attributeChangedCallback)===null||f===void 0||f.call(this,c,u,g);let B=this.constructor.getValidators(c);B!=null&&B.length&&this.validationTarget&&this.setValue(b(this,h,"f"))}setValue(c){var u;v(this,t,!1,"f"),(u=this.validationMessageCallback)===null||u===void 0||u.call(this,""),v(this,h,c,"f");let f=this.shouldFormValueUpdate()?c:null;this.internals.setFormValue(f),b(this,e,"m",A).call(this,f),this.valueChangedCallback&&this.valueChangedCallback(f),b(this,e,"m",C).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(c=>c(b(this,P,"f")))}formResetCallback(){var c,u;v(this,a,!1,"f"),v(this,t,!1,"f"),b(this,e,"m",C).call(this),(c=this.resetFormControl)===null||c===void 0||c.call(this),(u=this.validationMessageCallback)===null||u===void 0||u.call(this,b(this,e,"m",C).call(this)?this.validationMessage:"")}}return r=new WeakMap,t=new WeakMap,a=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakMap,h=new WeakMap,_=new WeakMap,E=new WeakMap,L=new WeakMap,z=new WeakMap,V=new WeakMap,P=new WeakMap,e=new WeakSet,d=function(){let c=this.getRootNode(),u=`${this.localName}[name="${this.getAttribute("name")}"]`;return c.querySelectorAll(u)},C=function(){if(this.hasAttribute("disabled"))return!1;let c=b(this,t,"f")||b(this,a,"f")&&!this.validity.valid&&!b(this,r,"f");return c&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),c},A=function(c){let u=this.constructor,g={},f=u.validators,O=[],B=f.some(M=>M.isValid instanceof Promise);b(this,V,"f")||(v(this,P,new Promise(M=>{v(this,z,M,"f")}),"f"),v(this,V,!0,"f")),b(this,i,"f")&&(b(this,i,"f").abort(),v(this,s,b(this,i,"f"),"f"));let Z=new AbortController;v(this,i,Z,"f");let G,Fe=!1;f.length&&(f.forEach(M=>{let de=M.key||"customError",I=M.isValid(this,c,Z.signal);I instanceof Promise?(O.push(I),I.then(ue=>{ue!=null&&(g[de]=!ue,G=b(this,e,"m",ce).call(this,M,c),b(this,e,"m",H).call(this,g,G))})):(g[de]=!I,this.validity[de]!==!I&&(Fe=!0),!I&&!G&&(G=b(this,e,"m",ce).call(this,M,c)))}),Promise.allSettled(O).then(()=>{var M;Z!=null&&Z.signal.aborted||(v(this,V,!1,"f"),(M=b(this,z,"f"))===null||M===void 0||M.call(this))}),(Fe||!B)&&b(this,e,"m",H).call(this,g,G))},H=function(c,u){if(this.validationTarget)this.internals.setValidity(c,u,this.validationTarget),v(this,n,!1,"f");else{if(this.internals.setValidity(c,u),this.internals.validity.valid)return;v(this,n,!0,"f")}},ce=function(c,u){if(this.validityCallback){let g=this.validityCallback(c.key||"customError");if(g)return g}return c.message instanceof Function?c.message(this,u):c.message},lr}import{css as Zr,html as K,LitElement as Gr}from"lit";import{property as k}from"lit/decorators.js";import{ifDefined as _e}from"lit/directives/if-defined.js";import{when as Ce}from"lit/directives/when.js";var Pr=["en","nb","fi","da","sv"],xe="en",te=o=>Pr.find(e=>o===e||o.toLowerCase().includes(e))||xe;function ae(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return te(o)}try{let o=He(document);if(o)return te(o);let e=Nr();if(e)return te(e);let r=He(Ze());return r?te(r):xe}catch(o){return console.warn("could not detect locale, falling back to source locale",o),xe}}var Xe=(o,e,r,t,a)=>{F.load("en",o),F.load("nb",e),F.load("fi",r),F.load("da",t),F.load("sv",a);let i=ae();F.activate(i),Be(),$r()},Dr="warp-i18n-change";function Be(){typeof window!="undefined"&&window.dispatchEvent(new Event(Dr))}var Ue=!1;function $r(){if(Ue||typeof window=="undefined"||!(document!=null&&document.documentElement))return;Ue=!0;let o=()=>{let a=ae();F.locale!==a&&(F.activate(a),Be())},e=new MutationObserver(a=>{for(let i of a)if(i.type==="attributes"&&i.attributeName==="lang"){o();break}});e.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});let r=Ze();r&&r.documentElement&&r!==document&&e.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});let t=Ar();t&&e.observe(t,{attributes:!0,attributeFilter:["lang"]})}function Ze(){var o,e;try{return(e=(o=window.parent)==null?void 0:o.document)!=null?e:null}catch(r){return null}}function He(o){var e,r;try{return(r=(e=o==null?void 0:o.documentElement)==null?void 0:e.lang)!=null?r:""}catch(t){return""}}function Ar(){var o;try{return(o=window.frameElement)!=null?o:null}catch(e){return null}}function Nr(){var o,e,r;try{return(r=(e=(o=window.frameElement)==null?void 0:o.getAttribute)==null?void 0:e.call(o,"lang"))!=null?r:""}catch(t){return""}}import{css as Ge}from"lit";var qe=Ge`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|
|
@@ -2471,32 +2471,32 @@ Please compile your catalog first.
|
|
|
2471
2471
|
--w-icon-size: 32px;
|
|
2472
2472
|
}
|
|
2473
2473
|
|
|
2474
|
-
`;var ke=new Map,Xr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Br(o,e={}){var t;let r=(t=e.responseParser)!=null?t:(a=>a.text());return ke.has(o)||ke.set(o,fetch(o).then(r)),ke.get(o)}var $=class extends Yr{constructor(){super(...arguments);this.
|
|
2475
|
-
${Ce(this.label,()=>
|
|
2474
|
+
`;var ke=new Map,Xr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Br(o,e={}){var t;let r=(t=e.responseParser)!=null?t:(a=>a.text());return ke.has(o)||ke.set(o,fetch(o).then(r)),ke.get(o)}var $=class extends Yr{constructor(){super(...arguments);this.svg=null}async fetchIcon(r){let a=`https://assets.finn.no/pkg/eikons/v1/${this.locale||"en"}/${r}.svg`;try{let i=await Br(a);return new DOMParser().parseFromString(i,"text/html").body.querySelector("svg")}catch(i){return null}}firstUpdated(){this.loadIcon()}updated(r){(r.has("name")||r.has("locale"))&&this.loadIcon()}async loadIcon(){if(!this.name){this.svg=null;return}let r=await this.fetchIcon(this.name);r||(r=new DOMParser().parseFromString(Xr,"text/html").body.firstElementChild),this.svg=r}render(){let r=this.size||"medium",t=this.name||"",a={"w-icon":!0,"w-icon--s":r==="small","w-icon--m":r==="medium","w-icon--l":r==="large"},i=typeof r=="string"&&r.endsWith("px")?`--w-icon-size: ${r};`:"";return Rr`<div class="${Hr(a)}" style="${i}" part="w-${t.toLowerCase()}">${this.svg}</div>`}};$.styles=[or],p([ye({type:String,reflect:!0})],$.prototype,"name",2),p([ye({type:String,reflect:!0})],$.prototype,"size",2),p([ye({type:String,reflect:!0})],$.prototype,"locale",2),p([Ur()],$.prototype,"svg",2);customElements.get("w-icon")||customElements.define("w-icon",$);var S={base:"block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current",default:"s-text s-bg pl-8 border-1 s-border-strong hover:s-border-strong-hover active:s-border-active",disabled:"s-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none",invalid:"s-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!",readOnly:"s-text bg-transparent pl-0 border-0 pointer-events-none before:hidden",wrapper:"relative",selectWrapper:"relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",chevron:"block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer",chevronDisabled:"opacity-25"},tr={base:"antialiased block relative text-s font-bold pb-4 cursor-pointer s-text",optional:"pl-8 font-normal text-s s-text-subtle"},ze={base:"text-xs mt-4 block",color:"s-text-subtle",colorInvalid:"s-text-negative"},Q,W,U,l,Me,ie,ar,Y,se,Ee,ir,sr,nr,ne,le,m=class extends Ye(Gr){constructor(){super();q(this,l);this.autoFocus=!1;this.autofocus=!1;this.invalid=!1;this.always=!1;this.optional=!1;this.disabled=!1;this.readOnly=!1;this.readonly=!1;q(this,Q,null);q(this,W,()=>w(this,l,se).call(this));q(this,U);this._setValue=r=>{this.value=r,this.setValue(r)};Xe(Ke,We,Qe,Je,er)}resetFormControl(){this.value=x(this,Q)}connectedCallback(){var r,t;super.connectedCallback(),pe(this,Q,this.value),(this.autofocus||this.autoFocus)&&this.shadowRoot.querySelector("select").focus(),w(this,l,Ee).call(this,{syncValueFromSelected:!0}),(t=(r=this.ownerDocument)==null?void 0:r.defaultView)==null||t.addEventListener("pageshow",x(this,W)),pe(this,U,new MutationObserver(()=>{w(this,l,Ee).call(this,{syncValueFromSelected:!0})})),x(this,U).observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["selected","disabled","value"]})}disconnectedCallback(){var r,t,a;super.disconnectedCallback(),(t=(r=this.ownerDocument)==null?void 0:r.defaultView)==null||t.removeEventListener("pageshow",x(this,W)),(a=x(this,U))==null||a.disconnect()}firstUpdated(){this.value&&w(this,l,Y).call(this,this.value),w(this,l,se).call(this,{allowDefaultFirstOption:!1})}formStateRestoreCallback(r,t){if(typeof r=="string"&&r){this._setValue(r),w(this,l,Y).call(this,r);return}w(this,l,se).call(this,{allowDefaultFirstOption:!0})}willUpdate(r){r.has("value")&&this.setValue(this.value)}updated(r){var t,a;if(r.has("value")){let i=w(this,l,ie).call(this);i&&i.value!==this.value&&(i.value=(t=this.value)!=null?t:""),w(this,l,Y).call(this,(a=this.value)!=null?a:"")}}handleKeyDown(r){(this.readonly||this.readOnly)&&(r.key===" "||r.key==="ArrowDown"||r.key==="ArrowUp")&&r.preventDefault()}onChange(r){let a=r.currentTarget.value;r.stopPropagation(),this._setValue(a),w(this,l,Y).call(this,a),this.dispatchEvent(new CustomEvent("change",{detail:a,bubbles:!0,composed:!0}))}render(){return K`<div class="${S.wrapper}">
|
|
2475
|
+
${Ce(this.label,()=>K`<label class="${tr.base}" for="${x(this,l,ne)}">
|
|
2476
2476
|
${this.label}
|
|
2477
|
-
${Ce(this.optional,()=>
|
|
2477
|
+
${Ce(this.optional,()=>K`<span class="${tr.optional}"
|
|
2478
2478
|
>${F._({id:"select.label.optional",message:"(optional)",comment:"Shown behind label when marked as optional"})}</span
|
|
2479
2479
|
>`)}</label
|
|
2480
2480
|
>`)}
|
|
2481
2481
|
<div class="${S.selectWrapper}">
|
|
2482
2482
|
<select
|
|
2483
|
-
class="${x(this,
|
|
2484
|
-
id="${x(this,
|
|
2483
|
+
class="${x(this,l,ir)}"
|
|
2484
|
+
id="${x(this,l,ne)}"
|
|
2485
2485
|
?disabled=${this.disabled}
|
|
2486
2486
|
aria-readonly="${this.readonly}"
|
|
2487
|
-
aria-describedby="${_e(x(this,
|
|
2487
|
+
aria-describedby="${_e(x(this,l,le))}"
|
|
2488
2488
|
aria-invalid="${_e(this.invalid)}"
|
|
2489
|
-
aria-errormessage="${_e(this.invalid&&x(this,
|
|
2489
|
+
aria-errormessage="${_e(this.invalid&&x(this,l,le))}"
|
|
2490
2490
|
@keydown=${this.handleKeyDown}
|
|
2491
2491
|
@change=${this.onChange}>
|
|
2492
2492
|
${this._options}
|
|
2493
2493
|
</select>
|
|
2494
|
-
<div class="${x(this,
|
|
2494
|
+
<div class="${x(this,l,nr)}">
|
|
2495
2495
|
<w-icon name="ChevronDown" size="small" locale="${ae()}" class="flex"></w-icon>
|
|
2496
2496
|
</div>
|
|
2497
2497
|
</div>
|
|
2498
|
-
${Ce(this.helpText||this.always||this.invalid,()=>
|
|
2499
|
-
</div>`}};Q=new WeakMap,W=new WeakMap,
|
|
2498
|
+
${Ce(this.helpText||this.always||this.invalid,()=>K`<div id="${x(this,l,le)}" class="${x(this,l,sr)}">${this.helpText||this.hint}</div>`)}
|
|
2499
|
+
</div>`}};Q=new WeakMap,W=new WeakMap,U=new WeakMap,l=new WeakSet,Me=function(){return Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="option"||r.tagName.toLowerCase()==="w-option")},ie=function(){var r;return(r=this.shadowRoot)==null?void 0:r.querySelector("select")},ar=function(){return w(this,l,Me).call(this).some(r=>r.hasAttribute("selected"))},Y=function(r){let t=w(this,l,ie).call(this);if(!t)return;let a=!1;for(let i of Array.from(t.options)){let s=!a&&i.value===r;i.selected=s,i.toggleAttribute("selected",s),s&&(a=!0)}},se=function({allowDefaultFirstOption:r=!1}={}){let t=w(this,l,ie).call(this);if(!t)return;let a=t.value;!a||a===this.value||!r&&!this.value&&!w(this,l,ar).call(this)&&t.selectedIndex===0||(this._setValue(a),w(this,l,Y).call(this,a))},Ee=function({syncValueFromSelected:r=!1}={}){let t=w(this,l,Me).call(this),a,i=t.map(s=>{var E,L;let n=(E=s.getAttribute("value"))!=null?E:"",d=(L=s.textContent)!=null?L:"",h=s.hasAttribute("selected"),_=s.hasAttribute("disabled");return r&&a===void 0&&h&&(a=n),K`<option value="${n}" ?selected=${h} ?disabled=${_}>${d}</option>`});this._options=i,r&&a!==void 0&&a!==this.value&&this._setValue(a)},ir=function(){return J([S.base,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&S.default,this.invalid&&S.invalid,this.disabled&&S.disabled,(this.readonly||this.readOnly)&&S.readOnly])},sr=function(){return J([ze.base,this.invalid?ze.colorInvalid:ze.color])},nr=function(){return J([S.chevron,this.disabled&&S.chevronDisabled])},ne=function(){return"select_id"},le=function(){return this.helpText||this.hint?`${x(this,l,ne)}__hint`:void 0},m.styles=[qe,rr,Zr`
|
|
2500
2500
|
/* if there is an option with an empty value and it is selected */
|
|
2501
2501
|
select:has(option[value=""][selected]),
|
|
2502
2502
|
/* if there is an option with an empty value, and no other options are selected */
|