@warp-ds/elements 2.2.0-next.20 → 2.2.0-next.21

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 (238) hide show
  1. package/dist/api.js.map +1 -1
  2. package/dist/custom-elements.json +1219 -1078
  3. package/dist/index.d.ts +194 -173
  4. package/dist/packages/affix/affix.react.stories.d.ts +9 -0
  5. package/dist/packages/affix/affix.react.stories.js +10 -0
  6. package/dist/packages/affix/affix.stories.js +1 -1
  7. package/dist/packages/affix/index.js +1 -1
  8. package/dist/packages/affix/index.js.map +4 -4
  9. package/dist/packages/affix/react.d.ts +1 -1
  10. package/dist/packages/affix/react.js +10 -3
  11. package/dist/packages/alert/alert.react.stories.d.ts +13 -0
  12. package/dist/packages/alert/alert.react.stories.js +44 -0
  13. package/dist/packages/alert/alert.stories.js +1 -1
  14. package/dist/packages/alert/alert.test.js +3 -1
  15. package/dist/packages/alert/index.d.ts +1 -1
  16. package/dist/packages/alert/index.js +1 -1
  17. package/dist/packages/alert/index.js.map +4 -4
  18. package/dist/packages/alert/react.d.ts +1 -1
  19. package/dist/packages/alert/react.js +6 -3
  20. package/dist/packages/attention/attention.react.stories.d.ts +15 -0
  21. package/dist/packages/attention/attention.react.stories.js +92 -0
  22. package/dist/packages/attention/attention.stories.js +17 -32
  23. package/dist/packages/attention/attention.test.js +1 -1
  24. package/dist/packages/attention/index.d.ts +3 -2
  25. package/dist/packages/attention/index.js +238 -17
  26. package/dist/packages/attention/index.js.map +4 -4
  27. package/dist/packages/attention/react.d.ts +15 -1
  28. package/dist/packages/attention/react.js +13 -5
  29. package/dist/packages/badge/badge.react.stories.d.ts +18 -0
  30. package/dist/packages/badge/badge.react.stories.js +60 -0
  31. package/dist/packages/badge/badge.stories.js +1 -1
  32. package/dist/packages/badge/index.js +1 -1
  33. package/dist/packages/badge/index.js.map +4 -4
  34. package/dist/packages/badge/react.d.ts +1 -1
  35. package/dist/packages/badge/react.js +6 -3
  36. package/dist/packages/box/box.react.stories.d.ts +15 -0
  37. package/dist/packages/box/box.react.stories.js +45 -0
  38. package/dist/packages/box/box.stories.js +1 -1
  39. package/dist/packages/box/index.js +3 -3
  40. package/dist/packages/box/index.js.map +4 -4
  41. package/dist/packages/box/react.d.ts +1 -1
  42. package/dist/packages/box/react.js +6 -3
  43. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +13 -0
  44. package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +40 -0
  45. package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
  46. package/dist/packages/breadcrumbs/index.js +6 -6
  47. package/dist/packages/breadcrumbs/index.js.map +4 -4
  48. package/dist/packages/breadcrumbs/react.d.ts +1 -1
  49. package/dist/packages/breadcrumbs/react.js +6 -3
  50. package/dist/packages/button/button.react.stories.d.ts +22 -0
  51. package/dist/packages/button/button.react.stories.js +102 -0
  52. package/dist/packages/button/button.stories.js +1 -1
  53. package/dist/packages/button/index.js +2 -2
  54. package/dist/packages/button/index.js.map +4 -4
  55. package/dist/packages/button/react.d.ts +1 -1
  56. package/dist/packages/button/react.js +6 -3
  57. package/dist/packages/card/card.react.stories.d.ts +16 -0
  58. package/dist/packages/card/card.react.stories.js +63 -0
  59. package/dist/packages/card/card.stories.js +2 -2
  60. package/dist/packages/card/index.d.ts +1 -1
  61. package/dist/packages/card/index.js +2 -2
  62. package/dist/packages/card/index.js.map +4 -4
  63. package/dist/packages/card/react.d.ts +1 -1
  64. package/dist/packages/card/react.js +6 -3
  65. package/dist/packages/combobox/combobox.react.stories.d.ts +28 -0
  66. package/dist/packages/combobox/combobox.react.stories.js +90 -0
  67. package/dist/packages/combobox/combobox.stories.d.ts +5 -1
  68. package/dist/packages/combobox/combobox.stories.js +47 -25
  69. package/dist/packages/combobox/index.d.ts +1 -1
  70. package/dist/packages/combobox/index.js +4 -4
  71. package/dist/packages/combobox/index.js.map +4 -4
  72. package/dist/packages/combobox/react.d.ts +7 -0
  73. package/dist/packages/combobox/react.js +17 -0
  74. package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
  75. package/dist/packages/datepicker/DatePicker.test.js +3 -2
  76. package/dist/packages/datepicker/datepicker.d.ts +1 -1
  77. package/dist/packages/datepicker/datepicker.js +105 -105
  78. package/dist/packages/datepicker/datepicker.js.map +4 -4
  79. package/dist/packages/datepicker/datepicker.react.stories.d.ts +18 -0
  80. package/dist/packages/datepicker/datepicker.react.stories.js +26 -0
  81. package/dist/packages/datepicker/datepicker.stories.js +1 -1
  82. package/dist/packages/datepicker/datepicker.test.js +1 -1
  83. package/dist/packages/datepicker/index.js +105 -105
  84. package/dist/packages/datepicker/index.js.map +4 -4
  85. package/dist/packages/datepicker/react.d.ts +5 -2
  86. package/dist/packages/datepicker/react.js +10 -3
  87. package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
  88. package/dist/packages/dead-toggle/dead-toggle.react.stories.js +34 -0
  89. package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +5 -1
  90. package/dist/packages/dead-toggle/dead-toggle.stories.js +25 -3
  91. package/dist/packages/dead-toggle/index.js +1 -1
  92. package/dist/packages/dead-toggle/index.js.map +2 -2
  93. package/dist/packages/dead-toggle/react.d.ts +1 -1
  94. package/dist/packages/dead-toggle/react.js +6 -3
  95. package/dist/packages/expandable/expandable.react.stories.d.ts +18 -0
  96. package/dist/packages/expandable/expandable.react.stories.js +103 -0
  97. package/dist/packages/expandable/expandable.stories.js +1 -1
  98. package/dist/packages/expandable/index.js +2 -2
  99. package/dist/packages/expandable/index.js.map +4 -4
  100. package/dist/packages/expandable/react.d.ts +1 -1
  101. package/dist/packages/expandable/react.js +6 -3
  102. package/dist/packages/i18n.js +2 -1
  103. package/dist/packages/link/index.js +1 -1
  104. package/dist/packages/link/index.js.map +4 -4
  105. package/dist/packages/link/link.react.stories.d.ts +21 -0
  106. package/dist/packages/link/link.react.stories.js +96 -0
  107. package/dist/packages/link/link.stories.js +1 -12
  108. package/dist/packages/link/link.test.js +1 -1
  109. package/dist/packages/link/react.d.ts +1 -1
  110. package/dist/packages/link/react.js +6 -3
  111. package/dist/packages/modal/index.js +8 -8
  112. package/dist/packages/modal/index.js.map +4 -4
  113. package/dist/packages/modal/modal-footer.js +3 -3
  114. package/dist/packages/modal/modal-footer.js.map +3 -3
  115. package/dist/packages/modal/modal-header.js +4 -4
  116. package/dist/packages/modal/modal-header.js.map +4 -4
  117. package/dist/packages/modal/modal-main.js.map +1 -1
  118. package/dist/packages/modal/modal.react.stories.d.ts +14 -0
  119. package/dist/packages/modal/modal.react.stories.js +27 -0
  120. package/dist/packages/modal/modal.stories.d.ts +1 -1
  121. package/dist/packages/modal/modal.stories.js +1 -1
  122. package/dist/packages/modal/react.d.ts +11 -3
  123. package/dist/packages/modal/react.js +19 -6
  124. package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +19 -0
  125. package/dist/packages/pageindicator/pageindicator.react.stories.js +20 -0
  126. package/dist/packages/pageindicator/pageindicator.stories.d.ts +1 -1
  127. package/dist/packages/pageindicator/pageindicator.stories.js +1 -1
  128. package/dist/packages/pageindicator/react.d.ts +1 -1
  129. package/dist/packages/pageindicator/react.js +6 -3
  130. package/dist/packages/pagination/index.js +9 -3
  131. package/dist/packages/pagination/index.js.map +3 -3
  132. package/dist/packages/pagination/pagination.react.stories.d.ts +21 -0
  133. package/dist/packages/pagination/pagination.react.stories.js +45 -0
  134. package/dist/packages/pagination/pagination.stories.js +6 -6
  135. package/dist/packages/pagination/pagination.test.js +1 -1
  136. package/dist/packages/pagination/react.d.ts +5 -2
  137. package/dist/packages/pagination/react.js +10 -3
  138. package/dist/packages/pill/index.js.map +2 -2
  139. package/dist/packages/pill/pill.react.stories.d.ts +23 -0
  140. package/dist/packages/pill/pill.react.stories.js +22 -0
  141. package/dist/packages/pill/pill.stories.js +1 -1
  142. package/dist/packages/pill/pill.test.js +3 -1
  143. package/dist/packages/pill/react.d.ts +7 -0
  144. package/dist/packages/pill/react.js +17 -0
  145. package/dist/packages/rip-and-tear-checkbox/checkbox.js +5 -5
  146. package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +3 -3
  147. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +8 -0
  148. package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +11 -0
  149. package/dist/packages/rip-and-tear-checkbox/index.js +5 -5
  150. package/dist/packages/rip-and-tear-checkbox/index.js.map +3 -3
  151. package/dist/packages/rip-and-tear-checkbox/react.d.ts +5 -0
  152. package/dist/packages/rip-and-tear-checkbox/react.js +15 -0
  153. package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +12 -0
  154. package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +10 -0
  155. package/dist/packages/rip-and-tear-radio/index.js +8 -8
  156. package/dist/packages/rip-and-tear-radio/index.js.map +3 -3
  157. package/dist/packages/rip-and-tear-radio/radio-group.js +8 -8
  158. package/dist/packages/rip-and-tear-radio/radio-group.js.map +3 -3
  159. package/dist/packages/rip-and-tear-radio/radio.js.map +2 -2
  160. package/dist/packages/rip-and-tear-radio/radio.stories.js +9 -9
  161. package/dist/packages/rip-and-tear-radio/radio.stories.js.map +3 -3
  162. package/dist/packages/rip-and-tear-radio/react.d.ts +9 -0
  163. package/dist/packages/rip-and-tear-radio/react.js +22 -0
  164. package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +9 -0
  165. package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +10 -0
  166. package/dist/packages/rip-and-tear-radio/slot.js +3 -3
  167. package/dist/packages/select/index.d.ts +4 -4
  168. package/dist/packages/select/index.js +12 -12
  169. package/dist/packages/select/index.js.map +3 -3
  170. package/dist/packages/select/react.d.ts +6 -2
  171. package/dist/packages/select/react.js +15 -3
  172. package/dist/packages/select/select.react.stories.d.ts +18 -0
  173. package/dist/packages/select/select.react.stories.js +28 -0
  174. package/dist/packages/select/select.stories.js +2 -2
  175. package/dist/packages/select/select.test.js +1 -1
  176. package/dist/packages/slider/Slider.js +1 -1
  177. package/dist/packages/slider/SliderThumb.js +1 -1
  178. package/dist/packages/slider/index.js +6 -6
  179. package/dist/packages/slider/index.js.map +4 -4
  180. package/dist/packages/slider/react.d.ts +8 -0
  181. package/dist/packages/slider/react.js +20 -0
  182. package/dist/packages/slider/slider-thumb.js +2 -2
  183. package/dist/packages/slider/slider-thumb.js.map +4 -4
  184. package/dist/packages/slider/slider.js +2 -2
  185. package/dist/packages/slider/slider.js.map +4 -4
  186. package/dist/packages/slider/slider.react.stories.d.ts +18 -0
  187. package/dist/packages/slider/slider.react.stories.js +119 -0
  188. package/dist/packages/slider/slider.stories.js +2 -2
  189. package/dist/packages/slider/slider.test.js +1 -1
  190. package/dist/packages/steps/index.js +2 -2
  191. package/dist/packages/steps/index.js.map +4 -4
  192. package/dist/packages/steps/react.d.ts +1 -1
  193. package/dist/packages/steps/react.js +7 -4
  194. package/dist/packages/steps/steps.react.stories.d.ts +15 -0
  195. package/dist/packages/steps/steps.react.stories.js +112 -0
  196. package/dist/packages/switch/index.js +1 -1
  197. package/dist/packages/switch/index.js.map +4 -4
  198. package/dist/packages/switch/react.d.ts +5 -2
  199. package/dist/packages/switch/react.js +10 -3
  200. package/dist/packages/switch/switch.react.stories.d.ts +15 -0
  201. package/dist/packages/switch/switch.react.stories.js +29 -0
  202. package/dist/packages/tabs/index.d.ts +1 -1
  203. package/dist/packages/tabs/index.js +12 -12
  204. package/dist/packages/tabs/index.js.map +4 -4
  205. package/dist/packages/tabs/react.d.ts +11 -3
  206. package/dist/packages/tabs/react.js +18 -5
  207. package/dist/packages/tabs/tab-panel.js.map +2 -2
  208. package/dist/packages/tabs/tab.js +1 -1
  209. package/dist/packages/tabs/tab.js.map +4 -4
  210. package/dist/packages/tabs/tabs.d.ts +2 -0
  211. package/dist/packages/tabs/tabs.js +4 -4
  212. package/dist/packages/tabs/tabs.js.map +4 -4
  213. package/dist/packages/tabs/tabs.react.stories.d.ts +15 -0
  214. package/dist/packages/tabs/tabs.react.stories.js +51 -0
  215. package/dist/packages/tabs/tabs.stories.js +12 -12
  216. package/dist/packages/tabs/tabs.stories.js.map +4 -4
  217. package/dist/packages/textfield/index.js +1 -1
  218. package/dist/packages/textfield/index.js.map +4 -4
  219. package/dist/packages/textfield/react.d.ts +11 -2
  220. package/dist/packages/textfield/react.js +16 -3
  221. package/dist/packages/textfield/textfield.react.stories.d.ts +37 -0
  222. package/dist/packages/textfield/textfield.react.stories.js +88 -0
  223. package/dist/packages/textfield/textfield.stories.js +1 -1
  224. package/dist/packages/textfield/textfield.test.js +1 -1
  225. package/dist/packages/toast/api.d.ts +1 -1
  226. package/dist/packages/toast/index.d.ts +1 -1
  227. package/dist/packages/toast/index.js +14 -14
  228. package/dist/packages/toast/index.js.map +4 -4
  229. package/dist/packages/toast/toast-container.d.ts +1 -1
  230. package/dist/packages/toast/toast-container.js +2454 -149
  231. package/dist/packages/toast/toast-container.js.map +7 -0
  232. package/dist/packages/toast/toast.js +2459 -193
  233. package/dist/packages/toast/toast.js.map +7 -0
  234. package/dist/packages/toast/toast.stories.js +1 -1
  235. package/dist/packages/utils/expand-transition.js +1 -1
  236. package/dist/vscode.html-custom-data.json +90 -85
  237. package/dist/web-types.json +147 -139
  238. package/package.json +22 -21
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import { StoryObj } from '@storybook/react';
3
+ import { Pill } from './react';
4
+ declare const _default: {
5
+ title: string;
6
+ render(args: Omit<React.HTMLAttributes<import(".").WarpPill>, "onclick" | "onclose" | "onClick" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "canClose" | "onClose" | "suggestion" | "openSrLabel" | "openAriaLabel" | "closeSrLabel" | "closeAriaLabel" | "openFilterSrText" | "removeFilterSrText" | "_labelClasses" | "_closeClasses" | "_onClick" | "_onClose"> & {
7
+ onClick?: (e: Event) => void;
8
+ onclick?: (e: Event) => void;
9
+ onClose?: (e: Event) => void;
10
+ onclose?: (e: Event) => void;
11
+ } & Partial<Omit<import(".").WarpPill, keyof HTMLElement>> & React.RefAttributes<import(".").WarpPill>): React.JSX.Element;
12
+ component: import("@lit/react").ReactWebComponent<import(".").WarpPill, {
13
+ onClick: string;
14
+ onclick: string;
15
+ onClose: string;
16
+ onclose: string;
17
+ }>;
18
+ };
19
+ export default _default;
20
+ export type Story = StoryObj<typeof Pill>;
21
+ export declare const Default: Story;
22
+ export declare const Suggestion: Story;
23
+ export declare const Closable: Story;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { Pill } from './react';
3
+ export default {
4
+ title: 'Buttons/Pill',
5
+ render(args) {
6
+ return React.createElement(Pill, { ...args }, "Lorem");
7
+ },
8
+ component: Pill,
9
+ };
10
+ export const Default = {
11
+ args: {},
12
+ };
13
+ export const Suggestion = {
14
+ args: {
15
+ suggestion: true,
16
+ },
17
+ };
18
+ export const Closable = {
19
+ args: {
20
+ canClose: true,
21
+ },
22
+ };
@@ -1,6 +1,6 @@
1
- import { html } from 'lit';
2
1
  import { spread } from '@open-wc/lit-helpers';
3
2
  import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
3
+ import { html } from 'lit';
4
4
  import { prespread } from '../../.storybook/utilities.js';
5
5
  import './index.js';
6
6
  const { events, args, argTypes } = getStorybookHelpers('w-pill');
@@ -9,7 +9,9 @@ test('renders a pill', async () => {
9
9
  test('renders a pill with a close icon', async () => {
10
10
  const page = render(html ` <w-pill can-close>Close me</w-pill>`);
11
11
  await expect.element(page.getByText('Close me')).toBeVisible();
12
- await expect.poll(() => page.getByText('Close me').element().shadowRoot.querySelector('w-icon-close-16')).toBeVisible();
12
+ await expect
13
+ .poll(() => page.getByText('Close me').element().shadowRoot.querySelector('w-icon-close-16'))
14
+ .toBeVisible();
13
15
  });
14
16
  test('renders screen reader label on the pill', async () => {
15
17
  const page = render(html ` <w-pill open-sr-label="Open me please">Close me</w-pill>`);
@@ -0,0 +1,7 @@
1
+ import { WarpPill } from '.';
2
+ export declare const Pill: import("@lit/react").ReactWebComponent<WarpPill, {
3
+ onClick: string;
4
+ onclick: string;
5
+ onClose: string;
6
+ onclose: string;
7
+ }>;
@@ -0,0 +1,17 @@
1
+ import { LitElement } from 'lit';
2
+ import React from 'react';
3
+ import { createComponent } from '@lit/react';
4
+ // decouple from CDN by providing a dummy class
5
+ class Component extends LitElement {
6
+ }
7
+ export const Pill = createComponent({
8
+ tagName: 'w-pill',
9
+ elementClass: Component,
10
+ react: React,
11
+ events: {
12
+ onClick: 'w-pill-click', // should be click
13
+ onclick: 'w-pill-click',
14
+ onClose: 'w-pill-close', // should be close
15
+ onclose: 'w-pill-close',
16
+ },
17
+ });
@@ -1,5 +1,5 @@
1
- var Ee=Object.create;var H=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty;var J=s=>{throw TypeError(s)};var G=(s,t)=>()=>(t||s((t={exports:{}}).exports,t),t.exports);var _e=(s,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of we(t))!Ce.call(s,i)&&i!==e&&H(s,i,{get:()=>t[i],enumerable:!(r=z(t,i))||r.enumerable});return s};var Ve=(s,t,e)=>(e=s!=null?Ee(ke(s)):{},_e(t||!s||!s.__esModule?H(e,"default",{value:s,enumerable:!0}):e,s));var c=(s,t,e,r)=>{for(var i=r>1?void 0:r?z(t,e):t,a=s.length-1,n;a>=0;a--)(n=s[a])&&(i=(r?n(t,e,i):n(i))||i);return r&&i&&H(t,e,i),i};var X=(s,t,e)=>t.has(s)||J("Cannot "+e);var Z=(s,t,e)=>(X(s,t,"read from private field"),e?e.call(s):t.get(s)),Q=(s,t,e)=>t.has(s)?J("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),Y=(s,t,e,r)=>(X(s,t,"write to private field"),r?r.call(s,e):t.set(s,e),e);var se=G(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.errorMessages=w.ErrorType=void 0;var _;(function(s){s.MalformedUnicode="MALFORMED_UNICODE",s.MalformedHexadecimal="MALFORMED_HEXADECIMAL",s.CodePointLimit="CODE_POINT_LIMIT",s.OctalDeprecation="OCTAL_DEPRECATION",s.EndOfString="END_OF_STRING"})(_=w.ErrorType||(w.ErrorType={}));w.errorMessages=new Map([[_.MalformedUnicode,"malformed Unicode character escape sequence"],[_.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[_.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[_.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[_.EndOfString,"malformed escape sequence at end of string"]])});var ne=G(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.unraw=g.errorMessages=g.ErrorType=void 0;var h=se();Object.defineProperty(g,"ErrorType",{enumerable:!0,get:function(){return h.ErrorType}});Object.defineProperty(g,"errorMessages",{enumerable:!0,get:function(){return h.errorMessages}});function Le(s){return!s.match(/[^a-f0-9]/i)?parseInt(s,16):NaN}function N(s,t,e){let r=Le(s);if(Number.isNaN(r)||e!==void 0&&e!==s.length)throw new SyntaxError(h.errorMessages.get(t));return r}function Oe(s){let t=N(s,h.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}function ie(s,t){let e=N(s,h.ErrorType.MalformedUnicode,4);if(t!==void 0){let r=N(t,h.ErrorType.MalformedUnicode,4);return String.fromCharCode(e,r)}return String.fromCharCode(e)}function Ne(s){return s.charAt(0)==="{"&&s.charAt(s.length-1)==="}"}function Ie(s){if(!Ne(s))throw new SyntaxError(h.errorMessages.get(h.ErrorType.MalformedUnicode));let t=s.slice(1,-1),e=N(t,h.ErrorType.MalformedUnicode);try{return String.fromCodePoint(e)}catch(r){throw r instanceof RangeError?new SyntaxError(h.errorMessages.get(h.ErrorType.CodePointLimit)):r}}function xe(s,t=!1){if(t)throw new SyntaxError(h.errorMessages.get(h.ErrorType.OctalDeprecation));let e=parseInt(s,8);return String.fromCharCode(e)}var De=new Map([["b","\b"],["f","\f"],["n",`
2
- `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Re(s){return De.get(s)||s}var He=/\\(?:(\\)|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 ae(s,t=!1){return s.replace(He,function(e,r,i,a,n,o,l,d,f){if(r!==void 0)return"\\";if(i!==void 0)return Oe(i);if(a!==void 0)return Ie(a);if(n!==void 0)return ie(n,o);if(l!==void 0)return ie(l);if(d==="0")return"\0";if(d!==void 0)return xe(d,!t);if(f!==void 0)return Re(f);throw new SyntaxError(h.errorMessages.get(h.ErrorType.EndOfString))})}g.unraw=ae;g.default=ae});import{html as lt}from"lit";import{property as p,query as ct}from"lit/decorators.js";import{classMap as dt}from"lit/directives/class-map.js";import{ifDefined as ut}from"lit/directives/if-defined.js";import{live as ye}from"lit/directives/live.js";import{isServer as U}from"lit";import{property as C}from"lit/decorators.js";import{LitElement as Me,unsafeCSS as Te}from"lit";import{property as ee}from"lit/decorators.js";import{css as Se}from"lit";var W=Se`
1
+ var Ee=Object.create;var H=Object.defineProperty;var z=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ke=Object.getPrototypeOf,Ce=Object.prototype.hasOwnProperty;var J=s=>{throw TypeError(s)};var G=(s,e)=>()=>(e||s((e={exports:{}}).exports,e),e.exports);var _e=(s,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of we(e))!Ce.call(s,i)&&i!==t&&H(s,i,{get:()=>e[i],enumerable:!(r=z(e,i))||r.enumerable});return s};var Ve=(s,e,t)=>(t=s!=null?Ee(ke(s)):{},_e(e||!s||!s.__esModule?H(t,"default",{value:s,enumerable:!0}):t,s));var c=(s,e,t,r)=>{for(var i=r>1?void 0:r?z(e,t):e,a=s.length-1,n;a>=0;a--)(n=s[a])&&(i=(r?n(e,t,i):n(i))||i);return r&&i&&H(e,t,i),i};var X=(s,e,t)=>e.has(s)||J("Cannot "+t);var Z=(s,e,t)=>(X(s,e,"read from private field"),t?t.call(s):e.get(s)),Q=(s,e,t)=>e.has(s)?J("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t),Y=(s,e,t,r)=>(X(s,e,"write to private field"),r?r.call(s,t):e.set(s,t),t);var se=G(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.errorMessages=w.ErrorType=void 0;var _;(function(s){s.MalformedUnicode="MALFORMED_UNICODE",s.MalformedHexadecimal="MALFORMED_HEXADECIMAL",s.CodePointLimit="CODE_POINT_LIMIT",s.OctalDeprecation="OCTAL_DEPRECATION",s.EndOfString="END_OF_STRING"})(_=w.ErrorType||(w.ErrorType={}));w.errorMessages=new Map([[_.MalformedUnicode,"malformed Unicode character escape sequence"],[_.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[_.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[_.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[_.EndOfString,"malformed escape sequence at end of string"]])});var ne=G(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});g.unraw=g.errorMessages=g.ErrorType=void 0;var h=se();Object.defineProperty(g,"ErrorType",{enumerable:!0,get:function(){return h.ErrorType}});Object.defineProperty(g,"errorMessages",{enumerable:!0,get:function(){return h.errorMessages}});function Le(s){return!s.match(/[^a-f0-9]/i)?parseInt(s,16):NaN}function N(s,e,t){let r=Le(s);if(Number.isNaN(r)||t!==void 0&&t!==s.length)throw new SyntaxError(h.errorMessages.get(e));return r}function Oe(s){let e=N(s,h.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function ie(s,e){let t=N(s,h.ErrorType.MalformedUnicode,4);if(e!==void 0){let r=N(e,h.ErrorType.MalformedUnicode,4);return String.fromCharCode(t,r)}return String.fromCharCode(t)}function Ne(s){return s.charAt(0)==="{"&&s.charAt(s.length-1)==="}"}function Ie(s){if(!Ne(s))throw new SyntaxError(h.errorMessages.get(h.ErrorType.MalformedUnicode));let e=s.slice(1,-1),t=N(e,h.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(r){throw r instanceof RangeError?new SyntaxError(h.errorMessages.get(h.ErrorType.CodePointLimit)):r}}function xe(s,e=!1){if(e)throw new SyntaxError(h.errorMessages.get(h.ErrorType.OctalDeprecation));let t=parseInt(s,8);return String.fromCharCode(t)}var De=new Map([["b","\b"],["f","\f"],["n",`
2
+ `],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function Re(s){return De.get(s)||s}var He=/\\(?:(\\)|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 ae(s,e=!1){return s.replace(He,function(t,r,i,a,n,o,l,d,f){if(r!==void 0)return"\\";if(i!==void 0)return Oe(i);if(a!==void 0)return Ie(a);if(n!==void 0)return ie(n,o);if(l!==void 0)return ie(l);if(d==="0")return"\0";if(d!==void 0)return xe(d,!e);if(f!==void 0)return Re(f);throw new SyntaxError(h.errorMessages.get(h.ErrorType.EndOfString))})}g.unraw=ae;g.default=ae});import{html as lt}from"lit";import{property as p,query as ct}from"lit/decorators.js";import{classMap as dt}from"lit/directives/class-map.js";import{ifDefined as ut}from"lit/directives/if-defined.js";import{live as ye}from"lit/directives/live.js";import{isServer as U}from"lit";import{property as C}from"lit/decorators.js";import{LitElement as Me,unsafeCSS as Te}from"lit";import{property as ee}from"lit/decorators.js";import{css as Se}from"lit";var W=Se`
3
3
  :host {
4
4
  box-sizing: border-box !important;
5
5
  }
@@ -9,7 +9,7 @@ var Ee=Object.create;var H=Object.defineProperty;var z=Object.getOwnPropertyDesc
9
9
  :host *::after {
10
10
  box-sizing: inherit !important;
11
11
  }
12
- `;var V,E=class extends Me{constructor(){super();Q(this,V,!1);this.initialReflectedProperties=new Map;this.customStates={set:(e,r)=>{var i;(i=this.internals)!=null&&i.states&&(r?this.internals.states.add(e):this.internals.states.delete(e))},has:e=>{var r;return(r=this.internals)!=null&&r.states?this.internals.states.has(e):!1}};try{this.internals=this.attachInternals()}catch(r){console.error("Element internals are not supported in your browser. Consider using a polyfill")}this.customStates.set("wa-defined",!0);let e=this.constructor;for(let[r,i]of e.elementProperties)i.default==="inherit"&&i.initial!==void 0&&typeof r=="string"&&this.customStates.set(`initial-${r}-${i.initial}`,!0)}static get styles(){let e=Array.isArray(this.css)?this.css:this.css?[this.css]:[];return[W,...e].map(r=>typeof r=="string"?Te(r):r)}attributeChangedCallback(e,r,i){Z(this,V)||(this.constructor.elementProperties.forEach((a,n)=>{a.reflect&&this[n]!=null&&this.initialReflectedProperties.set(n,this[n])}),Y(this,V,!0)),super.attributeChangedCallback(e,r,i)}willUpdate(e){super.willUpdate(e),this.initialReflectedProperties.forEach((r,i)=>{e.has(i)&&this[i]==null&&(this[i]=r)})}relayNativeEvent(e,r){e.stopImmediatePropagation(),this.dispatchEvent(new e.constructor(e.type,{...e,...r}))}};V=new WeakMap,c([ee()],E.prototype,"dir",2),c([ee()],E.prototype,"lang",2);var te=()=>({observedAttributes:["custom-error"],checkValidity(s){let t={message:"",isValid:!0,invalidKeys:[]};return s.customError&&(t.message=s.customError,t.isValid=!1,t.invalidKeys=["customError"]),t}});var T=class extends Event{constructor(){super("w-invalid",{bubbles:!0,cancelable:!1,composed:!0})}};var m=class extends E{constructor(){super();this.name=null;this.disabled=!1;this.required=!1;this.assumeInteractionOn=["input"];this.validators=[];this.valueHasChanged=!1;this.hasInteracted=!1;this.customError=null;this.emittedEvents=[];this.emitInvalid=e=>{e.target===this&&(this.hasInteracted=!0,this.dispatchEvent(new T))};this.handleInteraction=e=>{var i;let r=this.emittedEvents;r.includes(e.type)||r.push(e.type),r.length===((i=this.assumeInteractionOn)==null?void 0:i.length)&&(this.hasInteracted=!0)};U||this.addEventListener("invalid",this.emitInvalid)}static get validators(){return[te()]}static get observedAttributes(){let e=new Set(super.observedAttributes||[]);for(let r of this.validators)if(r.observedAttributes)for(let i of r.observedAttributes)e.add(i);return[...e]}connectedCallback(){super.connectedCallback(),this.updateValidity(),this.assumeInteractionOn.forEach(e=>{this.addEventListener(e,this.handleInteraction)})}firstUpdated(...e){super.firstUpdated(...e),this.updateValidity()}willUpdate(e){if(!U&&e.has("customError")&&(this.customError||(this.customError=null),this.setCustomValidity(this.customError||"")),e.has("value")||e.has("disabled")){let r=this.value;if(Array.isArray(r)){if(this.name){let i=new FormData;for(let a of r)i.append(this.name,a);this.setValue(i,i)}}else this.setValue(r,r)}e.has("disabled")&&(this.customStates.set("disabled",this.disabled),(this.hasAttribute("disabled")||!U&&!this.matches(":disabled"))&&this.toggleAttribute("disabled",this.disabled)),this.updateValidity(),super.willUpdate(e)}get labels(){return this.internals.labels}getForm(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.updateValidity(),this.hasInteracted=!0,this.internals.reportValidity()}get validationTarget(){return this.input||void 0}setValidity(...e){let r=e[0],i=e[1],a=e[2];a||(a=this.validationTarget),this.internals.setValidity(r,i,a||void 0),this.requestUpdate("validity"),this.setCustomStates()}setCustomStates(){let e=!!this.required,r=this.internals.validity.valid,i=this.hasInteracted;this.customStates.set("required",e),this.customStates.set("optional",!e),this.customStates.set("invalid",!r),this.customStates.set("valid",r),this.customStates.set("user-invalid",!r&&i),this.customStates.set("user-valid",r&&i)}setCustomValidity(e){if(!e){this.customError=null,this.setValidity({});return}this.customError=e,this.setValidity({customError:!0},e,this.validationTarget)}formResetCallback(){this.resetValidity(),this.hasInteracted=!1,this.valueHasChanged=!1,this.emittedEvents=[],this.updateValidity()}formDisabledCallback(e){this.disabled=e,this.updateValidity()}formStateRestoreCallback(e,r){this.value=e,r==="restore"&&this.resetValidity(),this.updateValidity()}setValue(...e){let[r,i]=e;this.internals.setFormValue(r,i)}get allValidators(){let e=this.constructor.validators||[],r=this.validators||[];return[...e,...r]}resetValidity(){this.setCustomValidity(""),this.setValidity({})}updateValidity(){if(this.disabled||this.hasAttribute("disabled")||!this.willValidate){this.resetValidity();return}let e=this.allValidators;if(!(e!=null&&e.length))return;let r={customError:!!this.customError},i=this.validationTarget||this.input||void 0,a="";for(let n of e){let{isValid:o,message:l,invalidKeys:d}=n.checkValidity(this);o||(a||(a=l),(d==null?void 0:d.length)>=0&&d.forEach(f=>r[f]=!0))}a||(a=this.validationMessage),this.setValidity(r,a,i)}};m.formAssociated=!0,c([C({reflect:!0})],m.prototype,"name",2),c([C({type:Boolean})],m.prototype,"disabled",2),c([C({state:!0,attribute:!1})],m.prototype,"valueHasChanged",2),c([C({state:!0,attribute:!1})],m.prototype,"hasInteracted",2),c([C({attribute:"custom-error",reflect:!0})],m.prototype,"customError",2),c([C({attribute:!1,state:!0,type:Object})],m.prototype,"validity",1);var re=(s={})=>{let{validationElement:t,validationProperty:e}=s;t||(t=Object.assign(document.createElement("input"),{required:!0})),e||(e="value");let r={observedAttributes:["required"],message:t.validationMessage,checkValidity(i){var d;let a={message:"",isValid:!0,invalidKeys:[]};return((d=i.required)!=null?d:i.hasAttribute("required"))&&!i[e]&&(a.message=typeof r.message=="function"?r.message(i):r.message||"",a.isValid=!1,a.invalidKeys.push("valueMissing")),a}};return r};var L=class{constructor(t,...e){this.slotNames=[];this.handleSlotChange=t=>{let e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()};(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===Node.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===Node.ELEMENT_NODE){let e=t;if(e.tagName.toLowerCase()==="w-visually-hidden")return!1;if(!e.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function O(s,t){let e={waitUntilFirstUpdate:!1,...t};return(r,i)=>{let{update:a}=r,n=Array.isArray(s)?s:[s];r.update=function(o){n.forEach(l=>{let d=l;if(o.has(d)){let f=o.get(d),v=this[d];f!==v&&(!e.waitUntilFirstUpdate||this.hasUpdated)&&this[i](f,v)}}),a.call(this,o)}}}import{LitElement as Ge}from"lit";import{unsafeStatic as Xe,html as Ze}from"lit/static-html.js";var ce=Ve(ne(),1);var y=s=>typeof s=="string",Ue=s=>typeof s=="function",oe=new Map,de="en";function P(s){return[...Array.isArray(s)?s:[s],de]}function $(s,t,e){let r=P(s);e||(e="default");let i;if(typeof e=="string")switch(i={day:"numeric",month:"short",year:"numeric"},e){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=e;return I(()=>x("date",r,e),()=>new Intl.DateTimeFormat(r,i)).format(y(t)?new Date(t):t)}function Ae(s,t,e){let r;if(e||(e="default"),typeof e=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},e){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=e;return $(s,t,r)}function A(s,t,e){let r=P(s);return I(()=>x("number",r,e),()=>new Intl.NumberFormat(r,e)).format(t)}function le(s,t,e,{offset:r=0,...i}){var o,l;let a=P(s),n=t?I(()=>x("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):I(()=>x("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(o=i[e])!=null?o:i[n.select(e-r)])!=null?l:i.other}function I(s,t){let e=s(),r=oe.get(e);return r||(r=t(),oe.set(e,r)),r}function x(s,t,e){let r=t.join("-");return`${s}-${r}-${JSON.stringify(e)}`}var ue=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,he="%__lingui_octothorpe__%",Fe=(s,t,e={})=>{let r=t||s,i=n=>typeof n=="object"?n:e[n],a=(n,o)=>{let l=Object.keys(e).length?i("number"):void 0,d=A(r,n,l);return o.replace(new RegExp(he,"g"),d)};return{plural:(n,o)=>{let{offset:l=0}=o,d=le(r,!1,n,o);return a(n-l,d)},selectordinal:(n,o)=>{let{offset:l=0}=o,d=le(r,!0,n,o);return a(n-l,d)},select:qe,number:(n,o)=>A(r,n,i(o)||{style:o}),date:(n,o)=>$(r,n,i(o)||o),time:(n,o)=>Ae(r,n,i(o)||o)}},qe=(s,t)=>{var e;return(e=t[s])!=null?e:t.other};function Pe(s,t,e){return(r={},i)=>{let a=Fe(t,e,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((f,v)=>{if(v==="#"&&d)return f+he;if(y(v))return f+v;let[B,b,K]=v,D={};b==="plural"||b==="selectordinal"||b==="select"?Object.entries(K).forEach(([R,be])=>{D[R]=n(be,b==="plural"||b==="selectordinal")}):D=K;let M;if(b){let R=a[b];M=R(r[B],D)}else M=r[B];return M==null?f:f+M},""):l,o=n(s);return y(o)&&ue.test(o)?(0,ce.unraw)(o):y(o)?o:o?String(o):""}}var $e=Object.defineProperty,je=(s,t,e)=>t in s?$e(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,Be=(s,t,e)=>(je(s,typeof t!="symbol"?t+"":t,e),e),F=class{constructor(){Be(this,"_events",{})}on(t,e){var i;var r;return(i=(r=this._events)[t])!=null||(r[t]=[]),this._events[t].push(e),()=>this.removeListener(t,e)}removeListener(t,e){let r=this._getListeners(t);if(!r)return;let i=r.indexOf(e);~i&&r.splice(i,1)}emit(t,...e){let r=this._getListeners(t);r&&r.map(i=>i.apply(this,e))}_getListeners(t){let e=this._events[t];return Array.isArray(e)?e:!1}},Ke=Object.defineProperty,ze=(s,t,e)=>t in s?Ke(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,k=(s,t,e)=>(ze(s,typeof t!="symbol"?t+"":t,e),e),q=class extends F{constructor(t){var e;super(),k(this,"_locale",""),k(this,"_locales"),k(this,"_localeData",{}),k(this,"_messages",{}),k(this,"_missing"),k(this,"_messageCompiler"),k(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate((e=t.locale)!=null?e:de,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){var t;return(t=this._messages[this._locale])!=null?t:{}}get localeData(){var t;return(t=this._localeData[this._locale])!=null?t:{}}_loadLocaleData(t,e){let r=this._localeData[t];r?Object.assign(r,e):this._localeData[t]=e}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,e){typeof t=="string"?this._loadLocaleData(t,e):Object.keys(t).forEach(r=>this._loadLocaleData(r,t[r])),this.emit("change")}_load(t,e){let r=this._messages[t];r?Object.assign(r,e):this._messages[t]=e}load(t,e){typeof t=="string"&&typeof e=="object"?this._load(t,e):Object.entries(t).forEach(([r,i])=>this._load(r,i)),this.emit("change")}loadAndActivate({locale:t,locales:e,messages:r}){this._locale=t,this._locales=e||void 0,this._messages[this._locale]=r,this.emit("change")}activate(t,e){this._locale=t,this._locales=e,this.emit("change")}_(t,e,r){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 i=r==null?void 0:r.message;t||(t=""),y(t)||(e=t.values||e,i=t.message,t=t.id);let a=this.messages[t],n=a===void 0,o=this._missing;if(o&&n)return Ue(o)?o(this._locale,t):o;n&&this.emit("missing",{id:t,locale:this._locale});let l=a||i||t;return y(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
12
+ `;var V,E=class extends Me{constructor(){super();Q(this,V,!1);this.initialReflectedProperties=new Map;this.customStates={set:(t,r)=>{var i;(i=this.internals)!=null&&i.states&&(r?this.internals.states.add(t):this.internals.states.delete(t))},has:t=>{var r;return(r=this.internals)!=null&&r.states?this.internals.states.has(t):!1}};try{this.internals=this.attachInternals()}catch(r){console.error("Element internals are not supported in your browser. Consider using a polyfill")}this.customStates.set("wa-defined",!0);let t=this.constructor;for(let[r,i]of t.elementProperties)i.default==="inherit"&&i.initial!==void 0&&typeof r=="string"&&this.customStates.set(`initial-${r}-${i.initial}`,!0)}static get styles(){let t=Array.isArray(this.css)?this.css:this.css?[this.css]:[];return[W,...t].map(r=>typeof r=="string"?Te(r):r)}attributeChangedCallback(t,r,i){Z(this,V)||(this.constructor.elementProperties.forEach((a,n)=>{a.reflect&&this[n]!=null&&this.initialReflectedProperties.set(n,this[n])}),Y(this,V,!0)),super.attributeChangedCallback(t,r,i)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach((r,i)=>{t.has(i)&&this[i]==null&&(this[i]=r)})}relayNativeEvent(t,r){t.stopImmediatePropagation(),this.dispatchEvent(new t.constructor(t.type,{...t,...r}))}};V=new WeakMap,c([ee()],E.prototype,"dir",2),c([ee()],E.prototype,"lang",2);var te=()=>({observedAttributes:["custom-error"],checkValidity(s){let e={message:"",isValid:!0,invalidKeys:[]};return s.customError&&(e.message=s.customError,e.isValid=!1,e.invalidKeys=["customError"]),e}});var T=class extends Event{constructor(){super("w-invalid",{bubbles:!0,cancelable:!1,composed:!0})}};var m=class extends E{constructor(){super();this.name=null;this.disabled=!1;this.required=!1;this.assumeInteractionOn=["input"];this.validators=[];this.valueHasChanged=!1;this.hasInteracted=!1;this.customError=null;this.emittedEvents=[];this.emitInvalid=t=>{t.target===this&&(this.hasInteracted=!0,this.dispatchEvent(new T))};this.handleInteraction=t=>{var i;let r=this.emittedEvents;r.includes(t.type)||r.push(t.type),r.length===((i=this.assumeInteractionOn)==null?void 0:i.length)&&(this.hasInteracted=!0)};U||this.addEventListener("invalid",this.emitInvalid)}static get validators(){return[te()]}static get observedAttributes(){let t=new Set(super.observedAttributes||[]);for(let r of this.validators)if(r.observedAttributes)for(let i of r.observedAttributes)t.add(i);return[...t]}connectedCallback(){super.connectedCallback(),this.updateValidity(),this.assumeInteractionOn.forEach(t=>{this.addEventListener(t,this.handleInteraction)})}firstUpdated(...t){super.firstUpdated(...t),this.updateValidity()}willUpdate(t){if(!U&&t.has("customError")&&(this.customError||(this.customError=null),this.setCustomValidity(this.customError||"")),t.has("value")||t.has("disabled")){let r=this.value;if(Array.isArray(r)){if(this.name){let i=new FormData;for(let a of r)i.append(this.name,a);this.setValue(i,i)}}else this.setValue(r,r)}t.has("disabled")&&(this.customStates.set("disabled",this.disabled),(this.hasAttribute("disabled")||!U&&!this.matches(":disabled"))&&this.toggleAttribute("disabled",this.disabled)),this.updateValidity(),super.willUpdate(t)}get labels(){return this.internals.labels}getForm(){return this.internals.form}get validity(){return this.internals.validity}get willValidate(){return this.internals.willValidate}get validationMessage(){return this.internals.validationMessage}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.updateValidity(),this.hasInteracted=!0,this.internals.reportValidity()}get validationTarget(){return this.input||void 0}setValidity(...t){let r=t[0],i=t[1],a=t[2];a||(a=this.validationTarget),this.internals.setValidity(r,i,a||void 0),this.requestUpdate("validity"),this.setCustomStates()}setCustomStates(){let t=!!this.required,r=this.internals.validity.valid,i=this.hasInteracted;this.customStates.set("required",t),this.customStates.set("optional",!t),this.customStates.set("invalid",!r),this.customStates.set("valid",r),this.customStates.set("user-invalid",!r&&i),this.customStates.set("user-valid",r&&i)}setCustomValidity(t){if(!t){this.customError=null,this.setValidity({});return}this.customError=t,this.setValidity({customError:!0},t,this.validationTarget)}formResetCallback(){this.resetValidity(),this.hasInteracted=!1,this.valueHasChanged=!1,this.emittedEvents=[],this.updateValidity()}formDisabledCallback(t){this.disabled=t,this.updateValidity()}formStateRestoreCallback(t,r){this.value=t,r==="restore"&&this.resetValidity(),this.updateValidity()}setValue(...t){let[r,i]=t;this.internals.setFormValue(r,i)}get allValidators(){let t=this.constructor.validators||[],r=this.validators||[];return[...t,...r]}resetValidity(){this.setCustomValidity(""),this.setValidity({})}updateValidity(){if(this.disabled||this.hasAttribute("disabled")||!this.willValidate){this.resetValidity();return}let t=this.allValidators;if(!(t!=null&&t.length))return;let r={customError:!!this.customError},i=this.validationTarget||this.input||void 0,a="";for(let n of t){let{isValid:o,message:l,invalidKeys:d}=n.checkValidity(this);o||(a||(a=l),(d==null?void 0:d.length)>=0&&d.forEach(f=>r[f]=!0))}a||(a=this.validationMessage),this.setValidity(r,a,i)}};m.formAssociated=!0,c([C({reflect:!0})],m.prototype,"name",2),c([C({type:Boolean})],m.prototype,"disabled",2),c([C({state:!0,attribute:!1})],m.prototype,"valueHasChanged",2),c([C({state:!0,attribute:!1})],m.prototype,"hasInteracted",2),c([C({attribute:"custom-error",reflect:!0})],m.prototype,"customError",2),c([C({attribute:!1,state:!0,type:Object})],m.prototype,"validity",1);var re=(s={})=>{let{validationElement:e,validationProperty:t}=s;e||(e=Object.assign(document.createElement("input"),{required:!0})),t||(t="value");let r={observedAttributes:["required"],message:e.validationMessage,checkValidity(i){var d;let a={message:"",isValid:!0,invalidKeys:[]};return((d=i.required)!=null?d:i.hasAttribute("required"))&&!i[t]&&(a.message=typeof r.message=="function"?r.message(i):r.message||"",a.isValid=!1,a.invalidKeys.push("valueMissing")),a}};return r};var L=class{constructor(e,...t){this.slotNames=[];this.handleSlotChange=e=>{let t=e.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=e).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(e=>{var t;if(e.nodeType===Node.TEXT_NODE&&((t=e.textContent)==null?void 0:t.trim())!=="")return!0;if(e.nodeType===Node.ELEMENT_NODE){let r=e;if(r.tagName.toLowerCase()==="w-visually-hidden")return!1;if(!r.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(e){return this.host.querySelector(`:scope > [slot="${e}"]`)!==null}test(e){return e==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(e)}hostConnected(){var e;(e=this.host.shadowRoot)==null||e.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){var e;(e=this.host.shadowRoot)==null||e.removeEventListener("slotchange",this.handleSlotChange)}};function O(s,e){let t={waitUntilFirstUpdate:!1,...e};return(r,i)=>{let{update:a}=r,n=Array.isArray(s)?s:[s];r.update=function(o){n.forEach(l=>{let d=l;if(o.has(d)){let f=o.get(d),v=this[d];f!==v&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[i](f,v)}}),a.call(this,o)}}}import{LitElement as Ge}from"lit";import{unsafeStatic as Xe,html as Ze}from"lit/static-html.js";var ce=Ve(ne(),1);var y=s=>typeof s=="string",Ue=s=>typeof s=="function",oe=new Map,de="en";function P(s){return[...Array.isArray(s)?s:[s],de]}function $(s,e,t){let r=P(s);t||(t="default");let i;if(typeof t=="string")switch(i={day:"numeric",month:"short",year:"numeric"},t){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric";break}else i=t;return I(()=>x("date",r,t),()=>new Intl.DateTimeFormat(r,i)).format(y(e)?new Date(e):e)}function Ae(s,e,t){let r;if(t||(t="default"),typeof t=="string")switch(r={second:"numeric",minute:"numeric",hour:"numeric"},t){case"full":case"long":r.timeZoneName="short";break;case"short":delete r.second}else r=t;return $(s,e,r)}function A(s,e,t){let r=P(s);return I(()=>x("number",r,t),()=>new Intl.NumberFormat(r,t)).format(e)}function le(s,e,t,{offset:r=0,...i}){var o,l;let a=P(s),n=e?I(()=>x("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):I(()=>x("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return(l=(o=i[t])!=null?o:i[n.select(t-r)])!=null?l:i.other}function I(s,e){let t=s(),r=oe.get(t);return r||(r=e(),oe.set(t,r)),r}function x(s,e,t){let r=e.join("-");return`${s}-${r}-${JSON.stringify(t)}`}var ue=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,he="%__lingui_octothorpe__%",Fe=(s,e,t={})=>{let r=e||s,i=n=>typeof n=="object"?n:t[n],a=(n,o)=>{let l=Object.keys(t).length?i("number"):void 0,d=A(r,n,l);return o.replace(new RegExp(he,"g"),d)};return{plural:(n,o)=>{let{offset:l=0}=o,d=le(r,!1,n,o);return a(n-l,d)},selectordinal:(n,o)=>{let{offset:l=0}=o,d=le(r,!0,n,o);return a(n-l,d)},select:qe,number:(n,o)=>A(r,n,i(o)||{style:o}),date:(n,o)=>$(r,n,i(o)||o),time:(n,o)=>Ae(r,n,i(o)||o)}},qe=(s,e)=>{var t;return(t=e[s])!=null?t:e.other};function Pe(s,e,t){return(r={},i)=>{let a=Fe(e,t,i),n=(l,d=!1)=>Array.isArray(l)?l.reduce((f,v)=>{if(v==="#"&&d)return f+he;if(y(v))return f+v;let[B,b,K]=v,D={};b==="plural"||b==="selectordinal"||b==="select"?Object.entries(K).forEach(([R,be])=>{D[R]=n(be,b==="plural"||b==="selectordinal")}):D=K;let M;if(b){let R=a[b];M=R(r[B],D)}else M=r[B];return M==null?f:f+M},""):l,o=n(s);return y(o)&&ue.test(o)?(0,ce.unraw)(o):y(o)?o:o?String(o):""}}var $e=Object.defineProperty,je=(s,e,t)=>e in s?$e(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Be=(s,e,t)=>(je(s,typeof e!="symbol"?e+"":e,t),t),F=class{constructor(){Be(this,"_events",{})}on(e,t){var i;var r;return(i=(r=this._events)[e])!=null||(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let r=this._getListeners(e);if(!r)return;let i=r.indexOf(t);~i&&r.splice(i,1)}emit(e,...t){let r=this._getListeners(e);r&&r.map(i=>i.apply(this,t))}_getListeners(e){let t=this._events[e];return Array.isArray(t)?t:!1}},Ke=Object.defineProperty,ze=(s,e,t)=>e in s?Ke(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,k=(s,e,t)=>(ze(s,typeof e!="symbol"?e+"":e,t),t),q=class extends F{constructor(e){var t;super(),k(this,"_locale",""),k(this,"_locales"),k(this,"_localeData",{}),k(this,"_messages",{}),k(this,"_missing"),k(this,"_messageCompiler"),k(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((t=e.locale)!=null?t:de,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,t){let r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){typeof e=="string"?this._loadLocaleData(e,t):Object.keys(e).forEach(r=>this._loadLocaleData(r,e[r])),this.emit("change")}_load(e,t){let r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){typeof e=="string"&&typeof t=="object"?this._load(e,t):Object.entries(e).forEach(([r,i])=>this._load(r,i)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:r}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=r,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){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 i=r==null?void 0:r.message;e||(e=""),y(e)||(t=e.values||t,i=e.message,e=e.id);let a=this.messages[e],n=a===void 0,o=this._missing;if(o&&n)return Ue(o)?o(this._locale,e):o;n&&this.emit("missing",{id:e,locale:this._locale});let l=a||i||e;return y(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
13
13
 
14
14
  > ${l}
15
15
 
@@ -17,7 +17,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
17
17
  ICU features such as interpolation and plurals will not work properly for that message.
18
18
 
19
19
  Please compile your catalog first.
20
- `)),y(l)&&ue.test(l)?JSON.parse(`"${l}"`):y(l)?l:Pe(l,this._locale,this._locales)(e,r==null?void 0:r.formats)}date(t,e){return $(this._locales||this._locale,t,e)}number(t,e){return A(this._locales||this._locale,t,e)}};function Je(s={}){return new q(s)}var S=Je();var Qe=JSON.parse('{"icon.title.check":["Sjekkmerke"]}'),Ye=JSON.parse('{"icon.title.check":["Checkmark"]}'),We=JSON.parse('{"icon.title.check":["Valintamerkki"]}'),et=JSON.parse('{"icon.title.check":["Flueben"]}'),tt=JSON.parse('{"icon.title.check":["Bock"]}'),fe=["en","nb","fi","da","sv"],me="en",rt=()=>{var s;let t;switch((s=process==null?void 0:process.env)==null?void 0:s.NMP_BRAND){case"FINN":t="nb";break;case"TORI":t="fi";break;case"BLOCKET":t="sv";break;case"DBA":t="da";break;default:t="en"}return t},pe=()=>{var s;let t=(s=document==null?void 0:document.location)==null?void 0:s.hostname;return t!=null&&t.includes("finn")?"nb":t.includes("tori")?"fi":t.includes("blocket")?"sv":t.includes("dba")?"da":me},j=s=>fe.find(t=>s===t||s.toLowerCase().includes(t))||pe();function st(){var s;if(typeof window=="undefined"){let t=rt();return j(t)}try{let t=(s=document==null?void 0:document.documentElement)==null?void 0:s.lang,e=pe();return fe.includes(t)?j(t!=null?t:e):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),j(e))}catch(t){return console.warn("could not detect locale, falling back to source locale",t),me}}var it=(s,t,e,r,i,a)=>s==="nb"?e:s==="fi"?r:s==="da"?i:s==="sv"?a:t,at=(s,t,e,r,i)=>{let a=st(),n=it(a,s,t,e,r,i);S.load(a,n),S.activate(a)};at(Ye,Qe,We,et,tt);var nt=class extends Ge{render(){let s=S.t({message:"Checkmark",id:"icon.title.check",comment:"Title for check icon"});return Ze`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-check-16-part">${Xe(`<title>${s}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.83 7.667 7.163 11l5.334-6"></path></svg>`}};customElements.get("w-icon-check-16")||customElements.define("w-icon-check-16",nt);import{css as ot}from"lit";var ge=ot`
20
+ `)),y(l)&&ue.test(l)?JSON.parse(`"${l}"`):y(l)?l:Pe(l,this._locale,this._locales)(t,r==null?void 0:r.formats)}date(e,t){return $(this._locales||this._locale,e,t)}number(e,t){return A(this._locales||this._locale,e,t)}};function Je(s={}){return new q(s)}var S=Je();var Qe=JSON.parse('{"icon.title.check":["Sjekkmerke"]}'),Ye=JSON.parse('{"icon.title.check":["Checkmark"]}'),We=JSON.parse('{"icon.title.check":["Valintamerkki"]}'),et=JSON.parse('{"icon.title.check":["Flueben"]}'),tt=JSON.parse('{"icon.title.check":["Bock"]}'),fe=["en","nb","fi","da","sv"],me="en",rt=()=>{var s;let e;switch((s=process==null?void 0:process.env)==null?void 0:s.NMP_BRAND){case"FINN":e="nb";break;case"TORI":e="fi";break;case"BLOCKET":e="sv";break;case"DBA":e="da";break;default:e="en"}return e},pe=()=>{var s;let e=(s=document==null?void 0:document.location)==null?void 0:s.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":me},j=s=>fe.find(e=>s===e||s.toLowerCase().includes(e))||pe();function st(){var s;if(typeof window=="undefined"){let e=rt();return j(e)}try{let e=(s=document==null?void 0:document.documentElement)==null?void 0:s.lang,t=pe();return fe.includes(e)?j(e!=null?e:t):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),j(t))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),me}}var it=(s,e,t,r,i,a)=>s==="nb"?t:s==="fi"?r:s==="da"?i:s==="sv"?a:e,at=(s,e,t,r,i)=>{let a=st(),n=it(a,s,e,t,r,i);S.load(a,n),S.activate(a)};at(Ye,Qe,We,et,tt);var nt=class extends Ge{render(){let s=S.t({message:"Checkmark",id:"icon.title.check",comment:"Title for check icon"});return Ze`<svg xmlns="http://www.w3.org/2000/svg"width="16"height="16"fill="none"viewBox="0 0 16 16" part="w-icon-check-16-part">${Xe(`<title>${s}</title>`)}<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.83 7.667 7.163 11l5.334-6"></path></svg>`}};customElements.get("w-icon-check-16")||customElements.define("w-icon-check-16",nt);import{css as ot}from"lit";var ge=ot`
21
21
  :host {
22
22
  display: block;
23
23
  user-select: none;
@@ -131,7 +131,7 @@ input {
131
131
  content: var(--wa-form-control-required-content);
132
132
  color: var(--wa-form-control-required-content-color);
133
133
  margin-inline-start: var(--wa-form-control-required-content-offset);
134
- }`;var ve,u=class extends m{constructor(){super(...arguments);this.hasSlotController=new L(this,"hint");this.title="";this.name="";this._value=(ve=this.getAttribute("value"))!=null?ve:null;this.size="medium";this.disabled=!1;this.indeterminate=!1;this.checked=this.hasAttribute("checked");this.defaultChecked=this.hasAttribute("checked");this.form=null;this.required=!1;this.hint=""}static get validators(){let e=[re({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...e]}get value(){var e;return(e=this._value)!=null?e:"on"}set value(e){this._value=e}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleDefaultCheckedChange(){!this.hasInteracted&&this.checked!==this.defaultChecked&&(this.checked=this.defaultChecked,this.handleValueOrCheckedChange())}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(e){super.willUpdate(e),e.has("defaultChecked")&&(this.hasInteracted||(this.checked=this.defaultChecked)),(e.has("value")||e.has("checked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this.checked=this.defaultChecked,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}render(){let e=this.hasSlotController.test("hint"),r=this.hint?!0:!!e,i=!this.checked&&this.indeterminate;return lt`
134
+ }`;var ve,u=class extends m{constructor(){super(...arguments);this.hasSlotController=new L(this,"hint");this.title="";this.name="";this._value=(ve=this.getAttribute("value"))!=null?ve:null;this.size="medium";this.disabled=!1;this.indeterminate=!1;this.checked=this.hasAttribute("checked");this.defaultChecked=this.hasAttribute("checked");this.form=null;this.required=!1;this.hint=""}static get validators(){let t=[re({validationProperty:"checked",validationElement:Object.assign(document.createElement("input"),{type:"checkbox",required:!0})})];return[...super.validators,...t]}get value(){var t;return(t=this._value)!=null?t:"on"}set value(t){this._value=t}handleClick(){this.hasInteracted=!0,this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})}handleDefaultCheckedChange(){!this.hasInteracted&&this.checked!==this.defaultChecked&&(this.checked=this.defaultChecked,this.handleValueOrCheckedChange())}handleValueOrCheckedChange(){this.setValue(this.checked?this.value:null,this._value),this.updateValidity()}handleStateChange(){this.hasUpdated&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate),this.customStates.set("checked",this.checked),this.customStates.set("indeterminate",this.indeterminate),this.updateValidity()}handleDisabledChange(){this.customStates.set("disabled",this.disabled)}willUpdate(t){super.willUpdate(t),t.has("defaultChecked")&&(this.hasInteracted||(this.checked=this.defaultChecked)),(t.has("value")||t.has("checked"))&&this.handleValueOrCheckedChange()}formResetCallback(){this.checked=this.defaultChecked,super.formResetCallback(),this.handleValueOrCheckedChange()}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}render(){let t=this.hasSlotController.test("hint"),r=this.hint?!0:!!t,i=!this.checked&&this.indeterminate;return lt`
135
135
  <label part="base">
136
136
  <span part="control">
137
137
  <input