@warp-ds/elements 2.9.1-next.2 → 2.9.1-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.
Files changed (94) hide show
  1. package/dist/custom-elements.json +8 -23
  2. package/dist/docs/attention/api.md +6 -3
  3. package/dist/docs/attention/attention.md +6 -3
  4. package/dist/docs/slider-thumb/api.md +0 -24
  5. package/dist/docs/slider-thumb/slider-thumb.md +0 -24
  6. package/dist/index.d.ts +0 -18
  7. package/dist/packages/affix/affix.js +11 -12
  8. package/dist/packages/affix/affix.js.map +4 -4
  9. package/dist/packages/alert/alert.d.ts +1 -1
  10. package/dist/packages/alert/alert.js.map +1 -1
  11. package/dist/packages/attention/attention.d.ts +3 -2
  12. package/dist/packages/attention/attention.js +27 -28
  13. package/dist/packages/attention/attention.js.map +4 -4
  14. package/dist/packages/breadcrumbs/breadcrumbs.js +7 -8
  15. package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
  16. package/dist/packages/button/button.d.ts +4 -2
  17. package/dist/packages/button/button.js +14 -15
  18. package/dist/packages/button/button.js.map +4 -4
  19. package/dist/packages/card/card.js +8 -9
  20. package/dist/packages/card/card.js.map +4 -4
  21. package/dist/packages/checkbox/checkbox.d.ts +2 -0
  22. package/dist/packages/checkbox-group/checkbox-group.d.ts +2 -0
  23. package/dist/packages/checkbox-group/checkbox-group.js +15 -16
  24. package/dist/packages/checkbox-group/checkbox-group.js.map +4 -4
  25. package/dist/packages/checkbox-group/locales/da/messages.mjs +1 -1
  26. package/dist/packages/checkbox-group/locales/en/messages.mjs +1 -1
  27. package/dist/packages/checkbox-group/locales/fi/messages.mjs +1 -1
  28. package/dist/packages/checkbox-group/locales/nb/messages.mjs +1 -1
  29. package/dist/packages/checkbox-group/locales/sv/messages.mjs +1 -1
  30. package/dist/packages/combobox/combobox.js +13 -14
  31. package/dist/packages/combobox/combobox.js.map +4 -4
  32. package/dist/packages/combobox/locales/da/messages.mjs +1 -1
  33. package/dist/packages/combobox/locales/en/messages.mjs +1 -1
  34. package/dist/packages/combobox/locales/fi/messages.mjs +1 -1
  35. package/dist/packages/combobox/locales/nb/messages.mjs +1 -1
  36. package/dist/packages/combobox/locales/sv/messages.mjs +1 -1
  37. package/dist/packages/datepicker/datepicker.d.ts +2 -0
  38. package/dist/packages/datepicker/datepicker.js +51 -52
  39. package/dist/packages/datepicker/datepicker.js.map +4 -4
  40. package/dist/packages/datepicker/locales/da/messages.mjs +1 -1
  41. package/dist/packages/datepicker/locales/en/messages.mjs +1 -1
  42. package/dist/packages/datepicker/locales/fi/messages.mjs +1 -1
  43. package/dist/packages/datepicker/locales/nb/messages.mjs +1 -1
  44. package/dist/packages/datepicker/locales/sv/messages.mjs +1 -1
  45. package/dist/packages/link/link.d.ts +2 -0
  46. package/dist/packages/modal-header/modal-header.js +13 -14
  47. package/dist/packages/modal-header/modal-header.js.map +4 -4
  48. package/dist/packages/page-indicator/page-indicator.js +7 -8
  49. package/dist/packages/page-indicator/page-indicator.js.map +4 -4
  50. package/dist/packages/pagination/locales/da/messages.mjs +1 -1
  51. package/dist/packages/pagination/locales/en/messages.mjs +1 -1
  52. package/dist/packages/pagination/locales/fi/messages.mjs +1 -1
  53. package/dist/packages/pagination/locales/nb/messages.mjs +1 -1
  54. package/dist/packages/pagination/locales/sv/messages.mjs +1 -1
  55. package/dist/packages/pagination/pagination.js +31 -32
  56. package/dist/packages/pagination/pagination.js.map +4 -4
  57. package/dist/packages/pill/pill.js +11 -12
  58. package/dist/packages/pill/pill.js.map +4 -4
  59. package/dist/packages/radio/radio.d.ts +2 -0
  60. package/dist/packages/radio-group/radio-group.d.ts +2 -0
  61. package/dist/packages/radio-group/radio-group.js +17 -18
  62. package/dist/packages/radio-group/radio-group.js.map +4 -4
  63. package/dist/packages/select/select.js +19 -20
  64. package/dist/packages/select/select.js.map +4 -4
  65. package/dist/packages/slider/locales/da/messages.mjs +1 -1
  66. package/dist/packages/slider/locales/en/messages.mjs +1 -1
  67. package/dist/packages/slider/locales/fi/messages.mjs +1 -1
  68. package/dist/packages/slider/locales/nb/messages.mjs +1 -1
  69. package/dist/packages/slider/locales/sv/messages.mjs +1 -1
  70. package/dist/packages/slider/slider.d.ts +2 -0
  71. package/dist/packages/slider/slider.js +22 -23
  72. package/dist/packages/slider/slider.js.map +4 -4
  73. package/dist/packages/slider-thumb/slider-thumb.d.ts +5 -0
  74. package/dist/packages/slider-thumb/slider-thumb.js +33 -34
  75. package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
  76. package/dist/packages/step/locales/da/messages.mjs +1 -1
  77. package/dist/packages/step/locales/en/messages.mjs +1 -1
  78. package/dist/packages/step/locales/fi/messages.mjs +1 -1
  79. package/dist/packages/step/locales/nb/messages.mjs +1 -1
  80. package/dist/packages/step/locales/sv/messages.mjs +1 -1
  81. package/dist/packages/step/step.js +11 -12
  82. package/dist/packages/step/step.js.map +4 -4
  83. package/dist/packages/switch/switch.d.ts +2 -0
  84. package/dist/packages/tab/tab.d.ts +2 -0
  85. package/dist/packages/tabs/tabs.js +1 -1
  86. package/dist/packages/tabs/tabs.js.map +3 -3
  87. package/dist/packages/textarea/textarea.d.ts +2 -0
  88. package/dist/packages/textarea/textarea.js +20 -21
  89. package/dist/packages/textarea/textarea.js.map +4 -4
  90. package/dist/packages/textfield/textfield.d.ts +2 -0
  91. package/dist/packages/toast/toast.js +13 -14
  92. package/dist/packages/toast/toast.js.map +4 -4
  93. package/dist/web-types.json +6 -6
  94. package/package.json +19 -19
@@ -1504,7 +1504,10 @@
1504
1504
  },
1505
1505
  "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
1506
1506
  "default": "'bottom'",
1507
- "attribute": "placement"
1507
+ "attribute": "placement",
1508
+ "parsedType": {
1509
+ "text": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'"
1510
+ }
1508
1511
  },
1509
1512
  {
1510
1513
  "kind": "field",
@@ -1701,7 +1704,10 @@
1701
1704
  },
1702
1705
  "description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
1703
1706
  "default": "'bottom'",
1704
- "fieldName": "placement"
1707
+ "fieldName": "placement",
1708
+ "parsedType": {
1709
+ "text": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'"
1710
+ }
1705
1711
  },
1706
1712
  {
1707
1713
  "name": "tooltip",
@@ -6506,27 +6512,6 @@
6506
6512
  "attribute": "placeholder",
6507
6513
  "reflects": true
6508
6514
  },
6509
- {
6510
- "kind": "field",
6511
- "name": "range",
6512
- "type": {
6513
- "text": "HTMLInputElement"
6514
- }
6515
- },
6516
- {
6517
- "kind": "field",
6518
- "name": "tooltipTarget",
6519
- "type": {
6520
- "text": "HTMLOutputElement"
6521
- }
6522
- },
6523
- {
6524
- "kind": "field",
6525
- "name": "textfield",
6526
- "type": {
6527
- "text": "WarpTextField"
6528
- }
6529
- },
6530
6515
  {
6531
6516
  "kind": "field",
6532
6517
  "name": "#initialValue",
@@ -14,7 +14,7 @@
14
14
  | flip | `boolean` | `false` | Enables automatic flipping when placement has no space. |
15
15
  | highlight | `boolean` | `false` | Renders the component with highlight styling. |
16
16
  | noArrow | `boolean` | `false` | Hides the directional arrow of the attention component. |
17
- | placement | `Directions` | `'bottom'` | Preferred placement relative to the trigger element. |
17
+ | placement | [`Directions`](#directions) | `'bottom'` | Preferred placement relative to the trigger element. |
18
18
  | popover | `boolean` | `false` | Enables native popover behavior for the attention element. |
19
19
  | show | `boolean` | `false` | Controls whether the attention panel is visible. |
20
20
  | skidding | `number` | `0` | Cross-axis offset for fine-grained positioning. |
@@ -105,7 +105,7 @@ Disable the arrow when the visual connection to the trigger should not be shown.
105
105
  Preferred placement relative to the trigger element.
106
106
  Sets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.
107
107
 
108
- - Type: `Directions`
108
+ - Type: [`Directions`](#directions)
109
109
  - Default: `'bottom'`
110
110
 
111
111
  #### popover
@@ -142,4 +142,7 @@ Use for compact, non-modal contextual hints anchored to another element.
142
142
 
143
143
  ### Types
144
144
 
145
- No types documented.
145
+ #### Directions
146
+
147
+ `'top' \| 'top-start' \| 'top-end' \| 'right' \| 'right-start' \| 'right-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end' \| 'left' \| 'left-start' \| 'left-end'`
148
+
@@ -262,7 +262,7 @@ When `can-close` is used, ensure your app listens to the `close` event and updat
262
262
  | flip | `boolean` | `false` | Enables automatic flipping when placement has no space. |
263
263
  | highlight | `boolean` | `false` | Renders the component with highlight styling. |
264
264
  | noArrow | `boolean` | `false` | Hides the directional arrow of the attention component. |
265
- | placement | `Directions` | `'bottom'` | Preferred placement relative to the trigger element. |
265
+ | placement | [`Directions`](#directions) | `'bottom'` | Preferred placement relative to the trigger element. |
266
266
  | popover | `boolean` | `false` | Enables native popover behavior for the attention element. |
267
267
  | show | `boolean` | `false` | Controls whether the attention panel is visible. |
268
268
  | skidding | `number` | `0` | Cross-axis offset for fine-grained positioning. |
@@ -353,7 +353,7 @@ Disable the arrow when the visual connection to the trigger should not be shown.
353
353
  Preferred placement relative to the trigger element.
354
354
  Sets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.
355
355
 
356
- - Type: `Directions`
356
+ - Type: [`Directions`](#directions)
357
357
  - Default: `'bottom'`
358
358
 
359
359
  #### popover
@@ -390,4 +390,7 @@ Use for compact, non-modal contextual hints anchored to another element.
390
390
 
391
391
  ### Types
392
392
 
393
- No types documented.
393
+ #### Directions
394
+
395
+ `'top' \| 'top-start' \| 'top-end' \| 'right' \| 'right-start' \| 'right-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end' \| 'left' \| 'left-start' \| 'left-end'`
396
+
@@ -10,12 +10,9 @@
10
10
  | boundaryValue | `string` | `-` | - |
11
11
  | name | `string` | `-` | - |
12
12
  | placeholder | `string` | `-` | - |
13
- | range | `HTMLInputElement` | `-` | - |
14
13
  | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
15
14
  | textFieldDisplayValue | `unknown` | `-` | Value to display in the textfield (shows boundary when focused on empty value) |
16
- | textfield | `WarpTextField` | `-` | - |
17
15
  | tooltipDisplayValue | `string \| number` | `-` | Value to display in the tooltip |
18
- | tooltipTarget | `HTMLOutputElement` | `-` | - |
19
16
  | value | `string` | `-` | - |
20
17
 
21
18
  ### Property Details
@@ -62,13 +59,6 @@
62
59
  - Type: `string`
63
60
  - Default: `-`
64
61
 
65
- #### range
66
-
67
-
68
-
69
- - Type: `HTMLInputElement`
70
- - Default: `-`
71
-
72
62
  #### shadowRootOptions
73
63
 
74
64
 
@@ -83,13 +73,6 @@ Value to display in the textfield (shows boundary when focused on empty value)
83
73
  - Type: `unknown`
84
74
  - Default: `-`
85
75
 
86
- #### textfield
87
-
88
-
89
-
90
- - Type: `WarpTextField`
91
- - Default: `-`
92
-
93
76
  #### tooltipDisplayValue
94
77
 
95
78
  Value to display in the tooltip
@@ -97,13 +80,6 @@ Value to display in the tooltip
97
80
  - Type: `string \| number`
98
81
  - Default: `-`
99
82
 
100
- #### tooltipTarget
101
-
102
-
103
-
104
- - Type: `HTMLOutputElement`
105
- - Default: `-`
106
-
107
83
  #### value
108
84
 
109
85
 
@@ -24,12 +24,9 @@ Component to place inside a `<w-slider>`.
24
24
  | boundaryValue | `string` | `-` | - |
25
25
  | name | `string` | `-` | - |
26
26
  | placeholder | `string` | `-` | - |
27
- | range | `HTMLInputElement` | `-` | - |
28
27
  | shadowRootOptions | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
29
28
  | textFieldDisplayValue | `unknown` | `-` | Value to display in the textfield (shows boundary when focused on empty value) |
30
- | textfield | `WarpTextField` | `-` | - |
31
29
  | tooltipDisplayValue | `string \| number` | `-` | Value to display in the tooltip |
32
- | tooltipTarget | `HTMLOutputElement` | `-` | - |
33
30
  | value | `string` | `-` | - |
34
31
 
35
32
  ### Property Details
@@ -76,13 +73,6 @@ Component to place inside a `<w-slider>`.
76
73
  - Type: `string`
77
74
  - Default: `-`
78
75
 
79
- #### range
80
-
81
-
82
-
83
- - Type: `HTMLInputElement`
84
- - Default: `-`
85
-
86
76
  #### shadowRootOptions
87
77
 
88
78
 
@@ -97,13 +87,6 @@ Value to display in the textfield (shows boundary when focused on empty value)
97
87
  - Type: `unknown`
98
88
  - Default: `-`
99
89
 
100
- #### textfield
101
-
102
-
103
-
104
- - Type: `WarpTextField`
105
- - Default: `-`
106
-
107
90
  #### tooltipDisplayValue
108
91
 
109
92
  Value to display in the tooltip
@@ -111,13 +94,6 @@ Value to display in the tooltip
111
94
  - Type: `string \| number`
112
95
  - Default: `-`
113
96
 
114
- #### tooltipTarget
115
-
116
-
117
-
118
- - Type: `HTMLOutputElement`
119
- - Default: `-`
120
-
121
97
  #### value
122
98
 
123
99
 
package/dist/index.d.ts CHANGED
@@ -1503,12 +1503,6 @@ export type WarpSliderThumbProps = {
1503
1503
  value?: WarpSliderThumb["value"];
1504
1504
  /** */
1505
1505
  placeholder?: WarpSliderThumb["placeholder"];
1506
- /** */
1507
- range?: WarpSliderThumb["range"];
1508
- /** */
1509
- tooltipTarget?: WarpSliderThumb["tooltipTarget"];
1510
- /** */
1511
- textfield?: WarpSliderThumb["textfield"];
1512
1506
 
1513
1507
  /** */
1514
1508
  onthumbreset?: (e: CustomEvent) => void;
@@ -1532,12 +1526,6 @@ export type WarpSliderThumbSolidJsProps = {
1532
1526
  /** */
1533
1527
  "prop:placeholder"?: WarpSliderThumb["placeholder"];
1534
1528
  /** */
1535
- "prop:range"?: WarpSliderThumb["range"];
1536
- /** */
1537
- "prop:tooltipTarget"?: WarpSliderThumb["tooltipTarget"];
1538
- /** */
1539
- "prop:textfield"?: WarpSliderThumb["textfield"];
1540
- /** */
1541
1529
  "on:thumbreset"?: (e: CustomEvent) => void;
1542
1530
  /** */
1543
1531
  "on:slidervalidity"?: (e: CustomEvent) => void;
@@ -2681,9 +2669,6 @@ export type CustomElements = {
2681
2669
  * - `name`: undefined
2682
2670
  * - `value`: undefined
2683
2671
  * - `placeholder`: undefined
2684
- * - `range`: undefined (property only)
2685
- * - `tooltipTarget`: undefined (property only)
2686
- * - `textfield`: undefined (property only)
2687
2672
  * - `boundaryValue`: undefined (property only) (readonly)
2688
2673
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
2689
2674
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
@@ -3771,9 +3756,6 @@ export type CustomElementsSolidJs = {
3771
3756
  * - `name`: undefined
3772
3757
  * - `value`: undefined
3773
3758
  * - `placeholder`: undefined
3774
- * - `range`: undefined (property only)
3775
- * - `tooltipTarget`: undefined (property only)
3776
- * - `textfield`: undefined (property only)
3777
3759
  * - `boundaryValue`: undefined (property only) (readonly)
3778
3760
  * - `textFieldDisplayValue`: Value to display in the textfield (shows boundary when focused on empty value) (property only) (readonly)
3779
3761
  * - `tooltipDisplayValue`: Value to display in the tooltip (property only) (readonly)
@@ -1,13 +1,12 @@
1
- var Le=Object.create;var J=Object.defineProperty;var ce=Object.getOwnPropertyDescriptor;var Se=Object.getOwnPropertyNames;var Te=Object.getPrototypeOf,Pe=Object.prototype.hasOwnProperty;var de=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Oe=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Se(e))!Pe.call(t,a)&&a!==r&&J(t,a,{get:()=>e[a],enumerable:!(o=ce(e,a))||o.enumerable});return t};var De=(t,e,r)=>(r=t!=null?Le(Te(t)):{},Oe(e||!t||!t.__esModule?J(r,"default",{value:t,enumerable:!0}):r,t));var k=(t,e,r,o)=>{for(var a=o>1?void 0:o?ce(e,r):e,l=t.length-1,s;l>=0;l--)(s=t[l])&&(a=(o?s(e,r,a):s(a))||a);return o&&a&&J(e,r,a),a};var ue=de(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.errorMessages=T.ErrorType=void 0;var V;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(V=T.ErrorType||(T.ErrorType={}));T.errorMessages=new Map([[V.MalformedUnicode,"malformed Unicode character escape sequence"],[V.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[V.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[V.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[V.EndOfString,"malformed escape sequence at end of string"]])});var he=de(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.unraw=_.errorMessages=_.ErrorType=void 0;var m=ue();Object.defineProperty(_,"ErrorType",{enumerable:!0,get:function(){return m.ErrorType}});Object.defineProperty(_,"errorMessages",{enumerable:!0,get:function(){return m.errorMessages}});function Ve(t){return!t.match(/[^a-f0-9]/i)?parseInt(t,16):NaN}function U(t,e,r){let o=Ve(t);if(Number.isNaN(o)||r!==void 0&&r!==t.length)throw new SyntaxError(m.errorMessages.get(e));return o}function je(t){let e=U(t,m.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function be(t,e){let r=U(t,m.ErrorType.MalformedUnicode,4);if(e!==void 0){let o=U(e,m.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function $e(t){return t.charAt(0)==="{"&&t.charAt(t.length-1)==="}"}function Ne(t){if(!$e(t))throw new SyntaxError(m.errorMessages.get(m.ErrorType.MalformedUnicode));let e=t.slice(1,-1),r=U(e,m.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(m.errorMessages.get(m.ErrorType.CodePointLimit)):o}}function Ae(t,e=!1){if(e)throw new SyntaxError(m.errorMessages.get(m.ErrorType.OctalDeprecation));let r=parseInt(t,8);return String.fromCharCode(r)}var Ie=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Ye(t){return Ie.get(t)||t}var Re=/\\(?:(\\)|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(t,e=!1){return t.replace(Re,function(r,o,a,l,s,i,u,h,x){if(o!==void 0)return"\\";if(a!==void 0)return je(a);if(l!==void 0)return Ne(l);if(s!==void 0)return be(s,i);if(u!==void 0)return be(u);if(h==="0")return"\0";if(h!==void 0)return Ae(h,!e);if(x!==void 0)return Ye(x);throw new SyntaxError(m.errorMessages.get(m.ErrorType.EndOfString))})}_.unraw=pe;_.default=pe});var K=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.reduce(function(r,o){return r.concat(typeof o=="string"?o:Array.isArray(o)?K.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(a){return o[a]?a:""}):"")},[]).join(" ")};var fe=De(he(),1);var F=t=>typeof t=="string",Ue=t=>typeof t=="function",ge=new Map,ve="en";function te(t){return[...Array.isArray(t)?t:[t],ve]}function oe(t,e,r){let o=te(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 X(()=>B("date",o,r),()=>new Intl.DateTimeFormat(o,a)).format(F(e)?new Date(e):e)}function Xe(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 oe(t,e,o)}function Q(t,e,r){let o=te(t);return X(()=>B("number",o,r),()=>new Intl.NumberFormat(o,r)).format(e)}function me(t,e,r,{offset:o=0,...a}){var i,u;let l=te(t),s=e?X(()=>B("plural-ordinal",l),()=>new Intl.PluralRules(l,{type:"ordinal"})):X(()=>B("plural-cardinal",l),()=>new Intl.PluralRules(l,{type:"cardinal"}));return(u=(i=a[r])!=null?i:a[s.select(r-o)])!=null?u:a.other}function X(t,e){let r=t(),o=ge.get(r);return o||(o=e(),ge.set(r,o)),o}function B(t,e,r){let o=e.join("-");return`${t}-${o}-${JSON.stringify(r)}`}var we=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,xe="%__lingui_octothorpe__%",Be=(t,e,r={})=>{let o=e||t,a=s=>typeof s=="object"?s:r[s],l=(s,i)=>{let u=Object.keys(r).length?a("number"):void 0,h=Q(o,s,u);return i.replace(new RegExp(xe,"g"),h)};return{plural:(s,i)=>{let{offset:u=0}=i,h=me(o,!1,s,i);return l(s-u,h)},selectordinal:(s,i)=>{let{offset:u=0}=i,h=me(o,!0,s,i);return l(s-u,h)},select:He,number:(s,i)=>Q(o,s,a(i)||{style:i}),date:(s,i)=>oe(o,s,a(i)||i),time:(s,i)=>Xe(o,s,a(i)||i)}},He=(t,e)=>{var r;return(r=e[t])!=null?r:e.other};function Ze(t,e,r){return(o={},a)=>{let l=Be(e,r,a),s=(u,h=!1)=>Array.isArray(u)?u.reduce((x,z)=>{if(z==="#"&&h)return x+xe;if(F(z))return x+z;let[O,v,M]=z,E={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(M).forEach(([S,j])=>{E[S]=s(j,v==="plural"||v==="selectordinal")}):E=M;let f;if(v){let S=l[v];f=S(o[O],E)}else f=o[O];return f==null?x:x+f},""):u,i=s(t);return F(i)&&we.test(i)?(0,fe.unraw)(i):F(i)?i:i?String(i):""}}var Ge=Object.defineProperty,We=(t,e,r)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qe=(t,e,r)=>(We(t,typeof e!="symbol"?e+"":e,r),r),ee=class{constructor(){qe(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}},Je=Object.defineProperty,Ke=(t,e,r)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,P=(t,e,r)=>(Ke(t,typeof e!="symbol"?e+"":e,r),r),re=class extends ee{constructor(e){var r;super(),P(this,"_locale",""),P(this,"_locales"),P(this,"_localeData",{}),P(this,"_messages",{}),P(this,"_missing"),P(this,"_messageCompiler"),P(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:ve,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=""),F(e)||(r=e.values||r,a=e.message,e=e.id);let l=this.messages[e],s=l===void 0,i=this._missing;if(i&&s)return Ue(i)?i(this._locale,e):i;s&&this.emit("missing",{id:e,locale:this._locale});let u=l||a||e;return F(u)&&(this._messageCompiler?u=this._messageCompiler(u):console.warn(`Uncompiled message detected! Message:
1
+ var ve=Object.defineProperty;var fe=Object.getOwnPropertyDescriptor;var w=(o,e,r,t)=>{for(var a=t>1?void 0:t?fe(e,r):e,d=o.length-1,s;d>=0;d--)(s=o[d])&&(a=(t?s(e,r,a):s(a))||a);return t&&a&&ve(e,r,a),a};var W=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)?W.apply(void 0,t):typeof t=="object"&&t?Object.keys(t).map(function(a){return t[a]?a:""}):"")},[]).join(" ")};var F=o=>typeof o=="string",we=o=>typeof o=="function",oe=new Map,ie="en";function H(o){return[...Array.isArray(o)?o:[o],ie]}function K(o,e,r){let t=H(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 O(()=>N("date",t,r),()=>new Intl.DateTimeFormat(t,a)).format(F(e)?new Date(e):e)}function xe(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 K(o,e,t)}function G(o,e,r){let t=H(o);return O(()=>N("number",t,r),()=>new Intl.NumberFormat(t,r)).format(e)}function ae(o,e,r,{offset:t=0,...a}){var i,b;let d=H(o),s=e?O(()=>N("plural-ordinal",d),()=>new Intl.PluralRules(d,{type:"ordinal"})):O(()=>N("plural-cardinal",d),()=>new Intl.PluralRules(d,{type:"cardinal"}));return(b=(i=a[r])!=null?i:a[s.select(r-t)])!=null?b:a.other}function O(o,e){let r=o(),t=oe.get(r);return t||(t=e(),oe.set(r,t)),t}function N(o,e,r){let t=e.join("-");return`${o}-${t}-${JSON.stringify(r)}`}var ne=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,se=o=>o.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,r,t)=>{if(r){let a=parseInt(r,16);return String.fromCharCode(a)}else{let a=parseInt(t,16);return String.fromCharCode(a)}}),le="%__lingui_octothorpe__%",ke=(o,e,r={})=>{let t=e||o,a=s=>typeof s=="object"?s:r[s],d=(s,i)=>{let b=Object.keys(r).length?a("number"):void 0,g=G(t,s,b);return i.replace(new RegExp(le,"g"),g)};return{plural:(s,i)=>{let{offset:b=0}=i,g=ae(t,!1,s,i);return d(s-b,g)},selectordinal:(s,i)=>{let{offset:b=0}=i,g=ae(t,!0,s,i);return d(s-b,g)},select:ye,number:(s,i)=>G(t,s,a(i)||{style:i}),date:(s,i)=>K(t,s,a(i)||i),time:(s,i)=>xe(t,s,a(i)||i)}},ye=(o,e)=>{var r;return(r=e[o])!=null?r:e.other};function _e(o,e,r){return(t={},a)=>{let d=ke(e,r,a),s=(b,g=!1)=>Array.isArray(b)?b.reduce((y,_)=>{if(_==="#"&&g)return y+le;if(F(_))return y+_;let[P,v,z]=_,C={};v==="plural"||v==="selectordinal"||v==="select"?Object.entries(z).forEach(([M,T])=>{C[M]=s(T,v==="plural"||v==="selectordinal")}):C=z;let m;if(v){let M=d[v];m=M(t[P],C)}else m=t[P];return m==null?y:y+m},""):b,i=s(o);return F(i)&&ne.test(i)?se(i):F(i)?i:i?String(i):""}}var ze=Object.defineProperty,Ce=(o,e,r)=>e in o?ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,Fe=(o,e,r)=>(Ce(o,typeof e!="symbol"?e+"":e,r),r),U=class{constructor(){Fe(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}},Ee=Object.defineProperty,Me=(o,e,r)=>e in o?Ee(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r,L=(o,e,r)=>(Me(o,typeof e!="symbol"?e+"":e,r),r),q=class extends U{constructor(e){var r;super(),L(this,"_locale",""),L(this,"_locales"),L(this,"_localeData",{}),L(this,"_messages",{}),L(this,"_missing"),L(this,"_messageCompiler"),L(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:ie,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=""),F(e)||(r=e.values||r,a=e.message,e=e.id);let d=this.messages[e],s=d===void 0,i=this._missing;if(i&&s)return we(i)?i(this._locale,e):i;s&&this.emit("missing",{id:e,locale:this._locale});let b=d||a||e;return F(b)&&(this._messageCompiler?b=this._messageCompiler(b):console.warn(`Uncompiled message detected! Message:
3
2
 
4
- > ${u}
3
+ > ${b}
5
4
 
6
5
  That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
7
6
  ICU features such as interpolation and plurals will not work properly for that message.
8
7
 
9
8
  Please compile your catalog first.
10
- `)),F(u)&&we.test(u)?JSON.parse(`"${u}"`):F(u)?u:Ze(u,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(e,r){return oe(this._locales||this._locale,e,r)}number(e,r){return Q(this._locales||this._locale,e,r)}};function Qe(t={}){return new re(t)}var ae=Qe();import{html as Y,LitElement as ur}from"lit";import{property as R}from"lit/decorators.js";var d=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)},p=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,l,s,i,u,h,x,z,O,v,M,E,f,S,j,G;class Fe extends t{constructor(...n){var c,b,g;super(...n),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),a.set(this,!1),l.set(this,void 0),s.set(this,void 0),i.set(this,!0),h.set(this,""),x.set(this,()=>{p(this,a,!0,"f"),p(this,r,!0,"f"),d(this,e,"m",f).call(this)}),z.set(this,()=>{p(this,r,!1,"f"),d(this,e,"m",S).call(this,this.shouldFormValueUpdate()?d(this,h,"f"):""),!this.validity.valid&&d(this,a,"f")&&p(this,o,!0,"f");let y=d(this,e,"m",f).call(this);this.validationMessageCallback&&this.validationMessageCallback(y?this.internals.validationMessage:"")}),O.set(this,()=>{var y;d(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),p(this,i,!1,"f")),p(this,a,!0,"f"),p(this,o,!0,"f"),d(this,e,"m",f).call(this),(y=this===null||this===void 0?void 0:this.validationMessageCallback)===null||y===void 0||y.call(this,this.showError?this.internals.validationMessage:"")}),v.set(this,void 0),M.set(this,!1),E.set(this,Promise.resolve()),(c=this.addEventListener)===null||c===void 0||c.call(this,"focus",d(this,x,"f")),(b=this.addEventListener)===null||b===void 0||b.call(this,"blur",d(this,z,"f")),(g=this.addEventListener)===null||g===void 0||g.call(this,"invalid",d(this,O,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let n=this.validators.map(g=>g.attribute).flat(),c=super.observedAttributes||[];return[...new Set([...c,...n])]}static getValidator(n){return this.validators.find(c=>c.attribute===n)||null}static getValidators(n){return this.validators.filter(c=>{var b;if(c.attribute===n||!((b=c.attribute)===null||b===void 0)&&b.includes(n))return!0})}get form(){return this.internals.form}get showError(){return d(this,e,"m",f).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(n,c,b){var g;(g=super.attributeChangedCallback)===null||g===void 0||g.call(this,n,c,b);let N=this.constructor.getValidators(n);N!=null&&N.length&&this.validationTarget&&this.setValue(d(this,h,"f"))}setValue(n){var c;p(this,o,!1,"f"),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,""),p(this,h,n,"f");let g=this.shouldFormValueUpdate()?n:null;this.internals.setFormValue(g),d(this,e,"m",S).call(this,g),this.valueChangedCallback&&this.valueChangedCallback(g),d(this,e,"m",f).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(n=>n(d(this,E,"f")))}formResetCallback(){var n,c;p(this,a,!1,"f"),p(this,o,!1,"f"),d(this,e,"m",f).call(this),(n=this.resetFormControl)===null||n===void 0||n.call(this),(c=this.validationMessageCallback)===null||c===void 0||c.call(this,d(this,e,"m",f).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,a=new WeakMap,l=new WeakMap,s=new WeakMap,i=new WeakMap,h=new WeakMap,x=new WeakMap,z=new WeakMap,O=new WeakMap,v=new WeakMap,M=new WeakMap,E=new WeakMap,e=new WeakSet,u=function(){let n=this.getRootNode(),c=`${this.localName}[name="${this.getAttribute("name")}"]`;return n.querySelectorAll(c)},f=function(){if(this.hasAttribute("disabled"))return!1;let n=d(this,o,"f")||d(this,a,"f")&&!this.validity.valid&&!d(this,r,"f");return n&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),n},S=function(n){let c=this.constructor,b={},g=c.validators,y=[],N=g.some(w=>w.isValid instanceof Promise);d(this,M,"f")||(p(this,E,new Promise(w=>{p(this,v,w,"f")}),"f"),p(this,M,!0,"f")),d(this,l,"f")&&(d(this,l,"f").abort(),p(this,s,d(this,l,"f"),"f"));let A=new AbortController;p(this,l,A,"f");let I,le=!1;g.length&&(g.forEach(w=>{let W=w.key||"customError",D=w.isValid(this,n,A.signal);D instanceof Promise?(y.push(D),D.then(q=>{q!=null&&(b[W]=!q,I=d(this,e,"m",G).call(this,w,n),d(this,e,"m",j).call(this,b,I))})):(b[W]=!D,this.validity[W]!==!D&&(le=!0),!D&&!I&&(I=d(this,e,"m",G).call(this,w,n)))}),Promise.allSettled(y).then(()=>{var w;A!=null&&A.signal.aborted||(p(this,M,!1,"f"),(w=d(this,v,"f"))===null||w===void 0||w.call(this))}),(le||!N)&&d(this,e,"m",j).call(this,b,I))},j=function(n,c){if(this.validationTarget)this.internals.setValidity(n,c,this.validationTarget),p(this,i,!1,"f");else{if(this.internals.setValidity(n,c),this.internals.validity.valid)return;p(this,i,!0,"f")}},G=function(n,c){if(this.validityCallback){let b=this.validityCallback(n.key||"customError");if(b)return b}return n.message instanceof Function?n.message(this,c):n.message},Fe}import{css as ye}from"lit";var _e=ye`
9
+ `)),F(b)&&ne.test(b)?se(b):F(b)?b:_e(b,this._locale,this._locales)(r,t==null?void 0:t.formats)}date(e,r){return K(this._locales||this._locale,e,r)}number(e,r){return G(this._locales||this._locale,e,r)}};function Le(o={}){return new q(o)}var J=Le();import{html as Y,LitElement as Ie}from"lit";import{property as A}from"lit/decorators.js";var c=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)},h=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 ce(o){var e,r,t,a,d,s,i,b,g,y,_,P,v,z,C,m,M,T,X;class me extends o{constructor(...n){var l,u,p;super(...n),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),t.set(this,!1),a.set(this,!1),d.set(this,void 0),s.set(this,void 0),i.set(this,!0),g.set(this,""),y.set(this,()=>{h(this,a,!0,"f"),h(this,r,!0,"f"),c(this,e,"m",m).call(this)}),_.set(this,()=>{h(this,r,!1,"f"),c(this,e,"m",M).call(this,this.shouldFormValueUpdate()?c(this,g,"f"):""),!this.validity.valid&&c(this,a,"f")&&h(this,t,!0,"f");let x=c(this,e,"m",m).call(this);this.validationMessageCallback&&this.validationMessageCallback(x?this.internals.validationMessage:"")}),P.set(this,()=>{var x;c(this,i,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),h(this,i,!1,"f")),h(this,a,!0,"f"),h(this,t,!0,"f"),c(this,e,"m",m).call(this),(x=this===null||this===void 0?void 0:this.validationMessageCallback)===null||x===void 0||x.call(this,this.showError?this.internals.validationMessage:"")}),v.set(this,void 0),z.set(this,!1),C.set(this,Promise.resolve()),(l=this.addEventListener)===null||l===void 0||l.call(this,"focus",c(this,y,"f")),(u=this.addEventListener)===null||u===void 0||u.call(this,"blur",c(this,_,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",c(this,P,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let n=this.validators.map(p=>p.attribute).flat(),l=super.observedAttributes||[];return[...new Set([...l,...n])]}static getValidator(n){return this.validators.find(l=>l.attribute===n)||null}static getValidators(n){return this.validators.filter(l=>{var u;if(l.attribute===n||!((u=l.attribute)===null||u===void 0)&&u.includes(n))return!0})}get form(){return this.internals.form}get showError(){return c(this,e,"m",m).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(n,l,u){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,n,l,u);let j=this.constructor.getValidators(n);j!=null&&j.length&&this.validationTarget&&this.setValue(c(this,g,"f"))}setValue(n){var l;h(this,t,!1,"f"),(l=this.validationMessageCallback)===null||l===void 0||l.call(this,""),h(this,g,n,"f");let p=this.shouldFormValueUpdate()?n:null;this.internals.setFormValue(p),c(this,e,"m",M).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),c(this,e,"m",m).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(n=>n(c(this,C,"f")))}formResetCallback(){var n,l;h(this,a,!1,"f"),h(this,t,!1,"f"),c(this,e,"m",m).call(this),(n=this.resetFormControl)===null||n===void 0||n.call(this),(l=this.validationMessageCallback)===null||l===void 0||l.call(this,c(this,e,"m",m).call(this)?this.validationMessage:"")}}return r=new WeakMap,t=new WeakMap,a=new WeakMap,d=new WeakMap,s=new WeakMap,i=new WeakMap,g=new WeakMap,y=new WeakMap,_=new WeakMap,P=new WeakMap,v=new WeakMap,z=new WeakMap,C=new WeakMap,e=new WeakSet,b=function(){let n=this.getRootNode(),l=`${this.localName}[name="${this.getAttribute("name")}"]`;return n.querySelectorAll(l)},m=function(){if(this.hasAttribute("disabled"))return!1;let n=c(this,t,"f")||c(this,a,"f")&&!this.validity.valid&&!c(this,r,"f");return n&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),n},M=function(n){let l=this.constructor,u={},p=l.validators,x=[],j=p.some(f=>f.isValid instanceof Promise);c(this,z,"f")||(h(this,C,new Promise(f=>{h(this,v,f,"f")}),"f"),h(this,z,!0,"f")),c(this,d,"f")&&(c(this,d,"f").abort(),h(this,s,c(this,d,"f"),"f"));let $=new AbortController;h(this,d,$,"f");let D,te=!1;p.length&&(p.forEach(f=>{let Z=f.key||"customError",S=f.isValid(this,n,$.signal);S instanceof Promise?(x.push(S),S.then(B=>{B!=null&&(u[Z]=!B,D=c(this,e,"m",X).call(this,f,n),c(this,e,"m",T).call(this,u,D))})):(u[Z]=!S,this.validity[Z]!==!S&&(te=!0),!S&&!D&&(D=c(this,e,"m",X).call(this,f,n)))}),Promise.allSettled(x).then(()=>{var f;$!=null&&$.signal.aborted||(h(this,z,!1,"f"),(f=c(this,v,"f"))===null||f===void 0||f.call(this))}),(te||!j)&&c(this,e,"m",T).call(this,u,D))},T=function(n,l){if(this.validationTarget)this.internals.setValidity(n,l,this.validationTarget),h(this,i,!1,"f");else{if(this.internals.setValidity(n,l),this.internals.validity.valid)return;h(this,i,!0,"f")}},X=function(n,l){if(this.validityCallback){let u=this.validityCallback(n.key||"customError");if(u)return u}return n.message instanceof Function?n.message(this,l):n.message},me}import{css as de}from"lit";var be=de`
11
10
  *,
12
11
  :before,
13
12
  :after {
@@ -280,7 +279,7 @@ Please compile your catalog first.
280
279
  svg {
281
280
  pointer-events: none;
282
281
  }
283
- `,yr=ye`*, :before, :after {
282
+ `,He=de`*, :before, :after {
284
283
  --w-rotate: 0;
285
284
  --w-rotate-x: 0;
286
285
  --w-rotate-y: 0;
@@ -2446,7 +2445,7 @@ Please compile your catalog first.
2446
2445
  display: none
2447
2446
  }
2448
2447
  }
2449
- `;import{css as er}from"lit";var Ce=er`*,: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}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;import{html as tr,LitElement as or}from"lit";import{property as ie,state as ar}from"lit/decorators.js";import{classMap as ir}from"lit/directives/class-map.js";import{css as rr}from"lit";var ze=rr`
2448
+ `;import{css as Pe}from"lit";var ue=Pe`*,: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}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.rounded-4{border-radius:4px}.block{display:block}.flex{display:flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-text{color:var(--w-s-color-text)}.w-40{width:4rem}.w-max{width:max-content}.pb-0{padding-bottom:0}.pl-12{padding-left:1.2rem}.pr-12{padding-right:1.2rem}.cursor-default{cursor:default}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale}.font-bold{font-weight:700}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}`;import{html as Te,LitElement as Ve}from"lit";import{property as Q,state as je}from"lit/decorators.js";import{classMap as $e}from"lit/directives/class-map.js";import{css as Se}from"lit";var he=Se`
2450
2449
  :host {
2451
2450
  display: inline-block;
2452
2451
  }
@@ -2471,21 +2470,21 @@ Please compile your catalog first.
2471
2470
  --w-icon-size: 32px;
2472
2471
  }
2473
2472
 
2474
- `;var ne=new Map,nr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function sr(t,e={}){var o;let r=(o=e.responseParser)!=null?o:(a=>a.text());return ne.has(t)||ne.set(t,fetch(t).then(r)),ne.get(t)}var L=class extends or{constructor(){super(...arguments);this.locale=document.documentElement.lang||"en";this.svg=null}async fetchIcon(r){let o=`https://assets.finn.no/pkg/eikons/v1/${this.locale}/${r}.svg`;try{let a=await sr(o);return new DOMParser().parseFromString(a,"text/html").body.querySelector("svg")}catch(a){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(nr,"text/html").body.firstElementChild),this.svg=r}render(){let r=this.size||"medium",o=this.name||"",a={"w-icon":!0,"w-icon--s":r==="small","w-icon--m":r==="medium","w-icon--l":r==="large"},l=typeof r=="string"&&r.endsWith("px")?`--w-icon-size: ${r};`:"";return tr`<div class="${ir(a)}" style="${l}" part="w-${o.toLowerCase()}">${this.svg}</div>`}};L.styles=[ze],k([ie({type:String,reflect:!0})],L.prototype,"name",2),k([ie({type:String,reflect:!0})],L.prototype,"size",2),k([ie({type:String,reflect:!0,useDefault:!0})],L.prototype,"locale",2),k([ar()],L.prototype,"svg",2);customElements.get("w-icon")||customElements.define("w-icon",L);var lr=["en","nb","fi","da","sv"],se="en",H=t=>lr.find(e=>t===e||t.toLowerCase().includes(e))||se;function Z(){if(typeof window=="undefined"){let t=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return H(t)}try{let t=Me(document);if(t)return H(t);let e=dr();if(e)return H(e);let r=Me(cr());return r?H(r):se}catch(t){return console.warn("could not detect locale, falling back to source locale",t),se}}function cr(){var t,e;try{return(e=(t=window.parent)==null?void 0:t.document)!=null?e:null}catch(r){return null}}function Me(t){var e,r;try{return(r=(e=t==null?void 0:t.documentElement)==null?void 0:e.lang)!=null?r:""}catch(o){return""}}function dr(){var t,e,r;try{return(r=(e=(t=window.frameElement)==null?void 0:t.getAttribute)==null?void 0:e.call(t,"lang"))!=null?r:""}catch(o){return""}}var Ee="absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ",br={wrapper:Ee+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},pr={wrapper:Ee+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},C=class extends ke(ur){constructor(){super(...arguments);this.ariaLabel=null;this.clear=!1;this.search=!1;this.label="";this.icon=null}get _classBase(){return this.slot==="suffix"?br:pr}get _classes(){return K([this._classBase.wrapper,this.label?this._classBase.wrapperWithLabel:this._classBase.wrapperWithIcon])}resetContainingTextField(r){let o=this.closest("w-textfield");o&&o.resetFormControl(),r.stopPropagation()}submitContainingForm(r){let o=this.internals.form;o&&o.submit(),r.stopPropagation()}get _searchButton(){let r=this.ariaLabel||ae._({id:"affix.aria.search",message:"Search",comment:"Aria label for the search button in affix"});return Y`
2473
+ `;var ee=new Map,De='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Ye(o,e={}){var t;let r=(t=e.responseParser)!=null?t:(a=>a.text());return ee.has(o)||ee.set(o,fetch(o).then(r)),ee.get(o)}var E=class extends Ve{constructor(){super(...arguments);this.locale=document.documentElement.lang||"en";this.svg=null}async fetchIcon(r){let t=`https://assets.finn.no/pkg/eikons/v1/${this.locale}/${r}.svg`;try{let a=await Ye(t);return new DOMParser().parseFromString(a,"text/html").body.querySelector("svg")}catch(a){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(De,"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"},d=typeof r=="string"&&r.endsWith("px")?`--w-icon-size: ${r};`:"";return Te`<div class="${$e(a)}" style="${d}" part="w-${t.toLowerCase()}">${this.svg}</div>`}};E.styles=[he],w([Q({type:String,reflect:!0})],E.prototype,"name",2),w([Q({type:String,reflect:!0})],E.prototype,"size",2),w([Q({type:String,reflect:!0,useDefault:!0})],E.prototype,"locale",2),w([je()],E.prototype,"svg",2);customElements.get("w-icon")||customElements.define("w-icon",E);var Ae=["en","nb","fi","da","sv"],re="en",I=o=>Ae.find(e=>o===e||o.toLowerCase().includes(e))||re;function R(){if(typeof window=="undefined"){let o=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return I(o)}try{let o=pe(document);if(o)return I(o);let e=Ne();if(e)return I(e);let r=pe(Oe());return r?I(r):re}catch(o){return console.warn("could not detect locale, falling back to source locale",o),re}}function Oe(){var o,e;try{return(e=(o=window.parent)==null?void 0:o.document)!=null?e:null}catch(r){return null}}function pe(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 Ne(){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""}}var ge="absolute top-0 bottom-0 flex justify-center items-center focusable rounded-4 focus:[--w-outline-offset:-2px] bg-transparent ",Re={wrapper:ge+"right-0",wrapperWithLabel:"w-max pr-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},Xe={wrapper:ge+"left-0",wrapperWithLabel:"w-max pl-12",wrapperWithIcon:"w-40",label:"antialiased block relative cursor-default pb-0 font-bold text-xs s-text"},k=class extends ce(Ie){constructor(){super(...arguments);this.ariaLabel=null;this.clear=!1;this.search=!1;this.label="";this.icon=null}get _classBase(){return this.slot==="suffix"?Re:Xe}get _classes(){return W([this._classBase.wrapper,this.label?this._classBase.wrapperWithLabel:this._classBase.wrapperWithIcon])}resetContainingTextField(r){let t=this.closest("w-textfield");t&&t.resetFormControl(),r.stopPropagation()}submitContainingForm(r){let t=this.internals.form;t&&t.submit(),r.stopPropagation()}get _searchButton(){let r=this.ariaLabel||J._({id:"affix.aria.search",message:"Search",comment:"Aria label for the search button in affix"});return Y`
2475
2474
  <button aria-label="${r}" class="${this._classes}" type="submit" @click="${this.submitContainingForm.bind(this)}">
2476
- <w-icon name="Search" size="small" locale="${Z()}" class="flex"></w-icon>
2475
+ <w-icon name="Search" size="small" locale="${R()}" class="flex"></w-icon>
2477
2476
  </button>
2478
- `}get _clearButton(){let r=this.ariaLabel||ae._({id:"affix.aria.clearInput",message:"Clear input",comment:"Aria label for the clear input button in affix"});return Y`
2477
+ `}get _clearButton(){let r=this.ariaLabel||J._({id:"affix.aria.clearInput",message:"Clear input",comment:"Aria label for the clear input button in affix"});return Y`
2479
2478
  <button aria-label="${r}" class="${this._classes}" type="reset" @click="${this.resetContainingTextField.bind(this)}">
2480
- <w-icon name="Close" size="small" locale="${Z()}" class="flex"></w-icon>
2479
+ <w-icon name="Close" size="small" locale="${R()}" class="flex"></w-icon>
2481
2480
  </button>
2482
2481
  `}get _icon(){return this.icon?Y`
2483
2482
  <div class="${this._classes}">
2484
- <w-icon name="${this.icon}" size="small" locale="${Z()}" class="flex"></w-icon>
2483
+ <w-icon name="${this.icon}" size="small" locale="${R()}" class="flex"></w-icon>
2485
2484
  </div>
2486
2485
  `:""}get _text(){return Y`
2487
2486
  <div class="${this._classes}">
2488
2487
  <span class="${this._classBase.label}">${this.label}</span>
2489
2488
  </div>
2490
- `}get _markup(){if(this.label)return this._text;if(this.icon)return this._icon;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return Y`${this._markup}`}};C.styles=[_e,Ce],k([R({attribute:"aria-label",reflect:!0,useDefault:!0})],C.prototype,"ariaLabel",2),k([R({type:Boolean})],C.prototype,"clear",2),k([R({type:Boolean})],C.prototype,"search",2),k([R({reflect:!0,useDefault:!0})],C.prototype,"label",2),k([R({reflect:!0,useDefault:!0})],C.prototype,"icon",2);customElements.get("w-affix")||customElements.define("w-affix",C);export{C as WarpAffix};
2489
+ `}get _markup(){if(this.label)return this._text;if(this.icon)return this._icon;if(this.search)return this._searchButton;if(this.clear)return this._clearButton}render(){return Y`${this._markup}`}};k.styles=[be,ue],w([A({attribute:"aria-label",reflect:!0,useDefault:!0})],k.prototype,"ariaLabel",2),w([A({type:Boolean})],k.prototype,"clear",2),w([A({type:Boolean})],k.prototype,"search",2),w([A({reflect:!0,useDefault:!0})],k.prototype,"label",2),w([A({reflect:!0,useDefault:!0})],k.prototype,"icon",2);customElements.get("w-affix")||customElements.define("w-affix",k);export{k as WarpAffix};
2491
2490
  //# sourceMappingURL=affix.js.map