@warp-ds/elements 2.2.0-next.20 → 2.2.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -37
- package/dist/api.js.map +1 -1
- package/dist/custom-elements.json +1118 -977
- package/dist/index.d.ts +183 -162
- package/dist/packages/affix/affix.react.stories.d.ts +9 -0
- package/dist/packages/affix/affix.react.stories.js +10 -0
- package/dist/packages/affix/affix.stories.js +1 -1
- package/dist/packages/affix/index.js +1 -1
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +1 -1
- package/dist/packages/affix/react.js +10 -3
- package/dist/packages/alert/alert.react.stories.d.ts +13 -0
- package/dist/packages/alert/alert.react.stories.js +44 -0
- package/dist/packages/alert/alert.stories.js +1 -1
- package/dist/packages/alert/alert.test.js +3 -1
- package/dist/packages/alert/index.d.ts +1 -1
- package/dist/packages/alert/index.js +2 -2
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/alert/react.js +6 -3
- package/dist/packages/alert/styles.js +1 -1
- package/dist/packages/attention/attention.react.stories.d.ts +15 -0
- package/dist/packages/attention/attention.react.stories.js +92 -0
- package/dist/packages/attention/attention.stories.d.ts +1 -0
- package/dist/packages/attention/attention.stories.js +31 -39
- package/dist/packages/attention/attention.test.js +1 -1
- package/dist/packages/attention/index.d.ts +3 -2
- package/dist/packages/attention/index.js +238 -17
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/react.d.ts +15 -1
- package/dist/packages/attention/react.js +13 -5
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/badge.react.stories.d.ts +18 -0
- package/dist/packages/badge/badge.react.stories.js +60 -0
- package/dist/packages/badge/badge.stories.js +1 -1
- package/dist/packages/badge/index.js +1 -1
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/badge/react.js +6 -3
- package/dist/packages/box/box.react.stories.d.ts +15 -0
- package/dist/packages/box/box.react.stories.js +45 -0
- package/dist/packages/box/box.stories.js +1 -1
- package/dist/packages/box/index.js +3 -3
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/box/react.js +6 -3
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +13 -0
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +40 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/dist/packages/breadcrumbs/index.js +6 -6
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +6 -3
- package/dist/packages/button/button.react.stories.d.ts +22 -0
- package/dist/packages/button/button.react.stories.js +102 -0
- package/dist/packages/button/button.stories.js +1 -1
- package/dist/packages/button/index.js +2 -2
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/button/react.js +6 -3
- package/dist/packages/card/card.react.stories.d.ts +16 -0
- package/dist/packages/card/card.react.stories.js +63 -0
- package/dist/packages/card/card.stories.js +2 -2
- package/dist/packages/card/index.d.ts +1 -1
- package/dist/packages/card/index.js +2 -2
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/card/react.js +6 -3
- package/dist/packages/combobox/combobox.react.stories.d.ts +28 -0
- package/dist/packages/combobox/combobox.react.stories.js +90 -0
- package/dist/packages/combobox/combobox.stories.d.ts +5 -1
- package/dist/packages/combobox/combobox.stories.js +47 -25
- package/dist/packages/combobox/index.d.ts +1 -1
- package/dist/packages/combobox/index.js +4 -4
- package/dist/packages/combobox/index.js.map +4 -4
- package/dist/packages/combobox/react.d.ts +7 -0
- package/dist/packages/combobox/react.js +17 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
- package/dist/packages/datepicker/DatePicker.test.js +3 -2
- package/dist/packages/datepicker/datepicker.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.js +105 -105
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +18 -0
- package/dist/packages/datepicker/datepicker.react.stories.js +26 -0
- package/dist/packages/datepicker/datepicker.stories.js +1 -1
- package/dist/packages/datepicker/datepicker.test.js +1 -1
- package/dist/packages/datepicker/index.js +105 -105
- package/dist/packages/datepicker/index.js.map +4 -4
- package/dist/packages/datepicker/react.d.ts +5 -2
- package/dist/packages/datepicker/react.js +10 -3
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +15 -0
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +34 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +5 -1
- package/dist/packages/dead-toggle/dead-toggle.stories.js +25 -3
- package/dist/packages/dead-toggle/index.js +1 -1
- package/dist/packages/dead-toggle/index.js.map +2 -2
- package/dist/packages/dead-toggle/react.d.ts +1 -1
- package/dist/packages/dead-toggle/react.js +6 -3
- package/dist/packages/expandable/expandable.react.stories.d.ts +18 -0
- package/dist/packages/expandable/expandable.react.stories.js +103 -0
- package/dist/packages/expandable/expandable.stories.js +1 -1
- package/dist/packages/expandable/index.js +2 -2
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/expandable/react.js +6 -3
- package/dist/packages/i18n.js +2 -1
- package/dist/packages/link/index.js +1 -1
- package/dist/packages/link/index.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +21 -0
- package/dist/packages/link/link.react.stories.js +96 -0
- package/dist/packages/link/link.stories.js +1 -12
- package/dist/packages/link/link.test.js +1 -1
- package/dist/packages/link/react.d.ts +1 -1
- package/dist/packages/link/react.js +6 -3
- package/dist/packages/modal/index.js +8 -8
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/modal-footer.js +3 -3
- package/dist/packages/modal/modal-footer.js.map +3 -3
- package/dist/packages/modal/modal-header.js +4 -4
- package/dist/packages/modal/modal-header.js.map +4 -4
- package/dist/packages/modal/modal-main.js.map +1 -1
- package/dist/packages/modal/modal.react.stories.d.ts +14 -0
- package/dist/packages/modal/modal.react.stories.js +27 -0
- package/dist/packages/modal/modal.stories.d.ts +1 -1
- package/dist/packages/modal/modal.stories.js +1 -1
- package/dist/packages/modal/react.d.ts +11 -3
- package/dist/packages/modal/react.js +19 -6
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +19 -0
- package/dist/packages/pageindicator/pageindicator.react.stories.js +20 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +1 -1
- package/dist/packages/pageindicator/pageindicator.stories.js +1 -1
- package/dist/packages/pageindicator/react.d.ts +1 -1
- package/dist/packages/pageindicator/react.js +6 -3
- package/dist/packages/pagination/index.js +9 -3
- package/dist/packages/pagination/index.js.map +3 -3
- package/dist/packages/pagination/pagination.react.stories.d.ts +21 -0
- package/dist/packages/pagination/pagination.react.stories.js +45 -0
- package/dist/packages/pagination/pagination.stories.js +6 -6
- package/dist/packages/pagination/pagination.test.js +1 -1
- package/dist/packages/pagination/react.d.ts +5 -2
- package/dist/packages/pagination/react.js +10 -3
- package/dist/packages/pill/index.js +1 -1
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/pill/pill.react.stories.d.ts +23 -0
- package/dist/packages/pill/pill.react.stories.js +22 -0
- package/dist/packages/pill/pill.stories.js +1 -1
- package/dist/packages/pill/pill.test.js +3 -1
- package/dist/packages/pill/react.d.ts +7 -0
- package/dist/packages/pill/react.js +17 -0
- package/dist/packages/pill/styles.js +1 -1
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +5 -5
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +3 -3
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +8 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +11 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +5 -5
- package/dist/packages/rip-and-tear-checkbox/index.js.map +3 -3
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +5 -0
- package/dist/packages/rip-and-tear-checkbox/react.js +15 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +12 -0
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-radio/index.js +8 -8
- package/dist/packages/rip-and-tear-radio/index.js.map +3 -3
- package/dist/packages/rip-and-tear-radio/radio-group.js +8 -8
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +3 -3
- package/dist/packages/rip-and-tear-radio/radio.js.map +2 -2
- package/dist/packages/rip-and-tear-radio/radio.stories.js +9 -9
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +3 -3
- package/dist/packages/rip-and-tear-radio/react.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/react.js +22 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +9 -0
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +10 -0
- package/dist/packages/rip-and-tear-radio/slot.js +3 -3
- package/dist/packages/select/index.d.ts +4 -4
- package/dist/packages/select/index.js +12 -12
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/select/react.d.ts +6 -2
- package/dist/packages/select/react.js +15 -3
- package/dist/packages/select/select.react.stories.d.ts +18 -0
- package/dist/packages/select/select.react.stories.js +28 -0
- package/dist/packages/select/select.stories.js +2 -2
- package/dist/packages/select/select.test.js +1 -1
- package/dist/packages/select/styles.js +1 -1
- package/dist/packages/slider/Slider.js +1 -1
- package/dist/packages/slider/SliderThumb.js +1 -1
- package/dist/packages/slider/index.js +6 -6
- package/dist/packages/slider/index.js.map +4 -4
- package/dist/packages/slider/react.d.ts +8 -0
- package/dist/packages/slider/react.js +20 -0
- package/dist/packages/slider/slider-thumb.js +3 -3
- package/dist/packages/slider/slider-thumb.js.map +4 -4
- package/dist/packages/slider/slider.js +2 -2
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.react.stories.d.ts +18 -0
- package/dist/packages/slider/slider.react.stories.js +119 -0
- package/dist/packages/slider/slider.stories.js +2 -2
- package/dist/packages/slider/slider.test.js +1 -1
- package/dist/packages/slider/styles.js +1 -1
- package/dist/packages/steps/index.js +2 -2
- package/dist/packages/steps/index.js.map +4 -4
- package/dist/packages/steps/react.d.ts +1 -1
- package/dist/packages/steps/react.js +7 -4
- package/dist/packages/steps/steps.react.stories.d.ts +15 -0
- package/dist/packages/steps/steps.react.stories.js +112 -0
- package/dist/packages/switch/index.js +1 -1
- package/dist/packages/switch/index.js.map +4 -4
- package/dist/packages/switch/react.d.ts +5 -2
- package/dist/packages/switch/react.js +10 -3
- package/dist/packages/switch/switch.react.stories.d.ts +15 -0
- package/dist/packages/switch/switch.react.stories.js +29 -0
- package/dist/packages/tabs/index.d.ts +1 -1
- package/dist/packages/tabs/index.js +12 -12
- package/dist/packages/tabs/index.js.map +4 -4
- package/dist/packages/tabs/react.d.ts +11 -3
- package/dist/packages/tabs/react.js +18 -5
- package/dist/packages/tabs/tab-panel.js.map +2 -2
- package/dist/packages/tabs/tab.js +1 -1
- package/dist/packages/tabs/tab.js.map +4 -4
- package/dist/packages/tabs/tabs.d.ts +2 -0
- package/dist/packages/tabs/tabs.js +4 -4
- package/dist/packages/tabs/tabs.js.map +4 -4
- package/dist/packages/tabs/tabs.react.stories.d.ts +15 -0
- package/dist/packages/tabs/tabs.react.stories.js +51 -0
- package/dist/packages/tabs/tabs.stories.js +12 -12
- package/dist/packages/tabs/tabs.stories.js.map +4 -4
- package/dist/packages/textfield/index.js +2 -2
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +11 -2
- package/dist/packages/textfield/react.js +16 -3
- package/dist/packages/textfield/styles.js +1 -1
- package/dist/packages/textfield/textfield.react.stories.d.ts +37 -0
- package/dist/packages/textfield/textfield.react.stories.js +88 -0
- package/dist/packages/textfield/textfield.stories.js +1 -1
- package/dist/packages/textfield/textfield.test.js +1 -1
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/index.d.ts +1 -1
- package/dist/packages/toast/index.js +14 -14
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/toast-container.d.ts +1 -1
- package/dist/packages/toast/toast-container.js +2454 -149
- package/dist/packages/toast/toast-container.js.map +7 -0
- package/dist/packages/toast/toast.js +2459 -193
- package/dist/packages/toast/toast.js.map +7 -0
- package/dist/packages/toast/toast.stories.js +1 -1
- package/dist/packages/utils/expand-transition.js +1 -1
- package/dist/vscode.html-custom-data.json +83 -78
- package/dist/web-types.json +135 -127
- package/package.json +22 -21
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { WarpBreadcrumbs } from '
|
|
1
|
+
import { WarpBreadcrumbs } from '.';
|
|
2
2
|
export declare const Breadcrumbs: import("@lit/react").ReactWebComponent<WarpBreadcrumbs, {}>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
import { createComponent } from '@lit/react';
|
|
3
|
-
import
|
|
3
|
+
import React from 'react';
|
|
4
|
+
// decouple from CDN by providing a dummy class
|
|
5
|
+
class Component extends LitElement {
|
|
6
|
+
}
|
|
4
7
|
export const Breadcrumbs = createComponent({
|
|
5
8
|
tagName: 'w-breadcrumbs',
|
|
6
|
-
elementClass:
|
|
9
|
+
elementClass: Component,
|
|
7
10
|
react: React,
|
|
8
11
|
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StoryObj } from '@storybook/react';
|
|
3
|
+
import { Button } from './react';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
render(args: Omit<React.HTMLAttributes<import(".").WarpButton>, "rel" | "_classes" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "variant" | "form" | "small" | "quiet" | "href" | "target" | "fullWidth" | "buttonClass" | "name" | "type" | "loading" | "value" | "ariaValueTextLoading" | "updated" | "firstUpdated" | "_primaryClasses" | "_secondaryClasses" | "_utilityClasses" | "_negativeClasses" | "_pillClasses" | "_linkClasses" | "_handleButtonClick" | "validationTarget" | "internals" | "showError" | "validationMessage" | "validity" | "validationComplete" | "checkValidity" | "formResetCallback" | "resetFormControl" | "valueChangedCallback" | "validityCallback" | "validationMessageCallback" | "setValue" | "shouldFormValueUpdate"> & {} & Partial<Omit<import(".").WarpButton, keyof HTMLElement>> & React.RefAttributes<import(".").WarpButton>): React.JSX.Element;
|
|
7
|
+
component: import("@lit/react").ReactWebComponent<import(".").WarpButton, {}>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export type Story = StoryObj<typeof Button>;
|
|
11
|
+
export declare const Primary: Story;
|
|
12
|
+
export declare const Secondary: Story;
|
|
13
|
+
export declare const Negative: Story;
|
|
14
|
+
export declare const Utility: Story;
|
|
15
|
+
export declare const Link: Story;
|
|
16
|
+
export declare const Pill: Story;
|
|
17
|
+
export declare const Small: Story;
|
|
18
|
+
export declare const Quiet: Story;
|
|
19
|
+
export declare const Loading: Story;
|
|
20
|
+
export declare const FullWidth: Story;
|
|
21
|
+
export declare const AsLink: Story;
|
|
22
|
+
export declare const FormControl: Story;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from './react';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Buttons/Button',
|
|
5
|
+
render(args) {
|
|
6
|
+
return React.createElement(Button, { ...args }, "Button Text");
|
|
7
|
+
},
|
|
8
|
+
component: Button,
|
|
9
|
+
};
|
|
10
|
+
export const Primary = {
|
|
11
|
+
args: {
|
|
12
|
+
variant: 'primary',
|
|
13
|
+
type: 'button',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export const Secondary = {
|
|
17
|
+
args: {
|
|
18
|
+
variant: 'secondary',
|
|
19
|
+
type: 'button',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
export const Negative = {
|
|
23
|
+
args: {
|
|
24
|
+
variant: 'negative',
|
|
25
|
+
type: 'button',
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
export const Utility = {
|
|
29
|
+
args: {
|
|
30
|
+
variant: 'utility',
|
|
31
|
+
type: 'button',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const Link = {
|
|
35
|
+
args: {
|
|
36
|
+
variant: 'link',
|
|
37
|
+
type: 'button',
|
|
38
|
+
href: 'https://developer.mozilla.org/en-US/docs/Web/API/Web_components',
|
|
39
|
+
target: '_new',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
export const Pill = {
|
|
43
|
+
args: {
|
|
44
|
+
variant: 'pill',
|
|
45
|
+
type: 'button',
|
|
46
|
+
},
|
|
47
|
+
render(args) {
|
|
48
|
+
return React.createElement(Button, { ...args }, "\uD83D\uDC99");
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export const Small = {
|
|
52
|
+
args: {
|
|
53
|
+
variant: 'primary',
|
|
54
|
+
small: true,
|
|
55
|
+
type: 'button',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
export const Quiet = {
|
|
59
|
+
args: {
|
|
60
|
+
variant: 'secondary',
|
|
61
|
+
quiet: true,
|
|
62
|
+
type: 'button',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const Loading = {
|
|
66
|
+
args: {
|
|
67
|
+
variant: 'primary',
|
|
68
|
+
loading: true,
|
|
69
|
+
type: 'button',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
export const FullWidth = {
|
|
73
|
+
args: {
|
|
74
|
+
variant: 'primary',
|
|
75
|
+
fullWidth: true,
|
|
76
|
+
type: 'button',
|
|
77
|
+
},
|
|
78
|
+
render(args) {
|
|
79
|
+
return (React.createElement("div", { className: "w-full flex flex-col gap-8" },
|
|
80
|
+
React.createElement(Button, { ...args }, "Full width")));
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
export const AsLink = {
|
|
84
|
+
args: {
|
|
85
|
+
variant: 'primary',
|
|
86
|
+
href: 'https://example.com',
|
|
87
|
+
target: '_blank',
|
|
88
|
+
type: 'button',
|
|
89
|
+
},
|
|
90
|
+
render(args) {
|
|
91
|
+
return React.createElement(Button, { ...args }, "Visit Example");
|
|
92
|
+
},
|
|
93
|
+
};
|
|
94
|
+
export const FormControl = {
|
|
95
|
+
args: {},
|
|
96
|
+
render() {
|
|
97
|
+
return (React.createElement("form", { name: "form-control" },
|
|
98
|
+
React.createElement("input", { type: "text", defaultValue: "I am an input field", name: "demoValue", style: { border: '1px solid lime' } }),
|
|
99
|
+
React.createElement(Button, { type: "reset", name: "resetButton", value: "fooyoo" }, "Reset"),
|
|
100
|
+
React.createElement(Button, { type: "submit", name: "submuitButtton", value: "fooyoo" }, "Send thing")));
|
|
101
|
+
},
|
|
102
|
+
};
|
|
@@ -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-button');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var Ue=Object.create;var ne=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var Ye=Object.getOwnPropertyNames;var Ie=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var pe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Xe=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ye(e))!Re.call(t,a)&&a!==r&&ne(t,a,{get:()=>e[a],enumerable:!(o=he(e,a))||o.enumerable});return t};var He=(t,e,r)=>(r=t!=null?Ue(Ie(t)):{},Xe(e||!t||!t.__esModule?ne(r,"default",{value:t,enumerable:!0}):r,t));var m=(t,e,r,o)=>{for(var a=o>1?void 0:o?he(e,r):e,b=t.length-1,c;b>=0;b--)(c=t[b])&&(a=(o?c(e,r,a):c(a))||a);return o&&a&&ne(e,r,a),a};var ve=pe(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.errorMessages=A.ErrorType=void 0;var I;(function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"})(I=A.ErrorType||(A.ErrorType={}));A.errorMessages=new Map([[I.MalformedUnicode,"malformed Unicode character escape sequence"],[I.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[I.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[I.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[I.EndOfString,"malformed escape sequence at end of string"]])});var we=pe(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.unraw=F.errorMessages=F.ErrorType=void 0;var C=ve();Object.defineProperty(F,"ErrorType",{enumerable:!0,get:function(){return C.ErrorType}});Object.defineProperty(F,"errorMessages",{enumerable:!0,get:function(){return C.errorMessages}});function Ze(t){return!t.match(/[^a-f0-9]/i)?parseInt(t,16):NaN}function J(t,e,r){let o=Ze(t);if(Number.isNaN(o)||r!==void 0&&r!==t.length)throw new SyntaxError(C.errorMessages.get(e));return o}function Be(t){let e=J(t,C.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function me(t,e){let r=J(t,C.ErrorType.MalformedUnicode,4);if(e!==void 0){let o=J(e,C.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,o)}return String.fromCharCode(r)}function Ge(t){return t.charAt(0)==="{"&&t.charAt(t.length-1)==="}"}function Je(t){if(!Ge(t))throw new SyntaxError(C.errorMessages.get(C.ErrorType.MalformedUnicode));let e=t.slice(1,-1),r=J(e,C.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(o){throw o instanceof RangeError?new SyntaxError(C.errorMessages.get(C.ErrorType.CodePointLimit)):o}}function Ke(t,e=!1){if(e)throw new SyntaxError(C.errorMessages.get(C.ErrorType.OctalDeprecation));let r=parseInt(t,8);return String.fromCharCode(r)}var We=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
-
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function er(t){return We.get(t)||t}var rr=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function fe(t,e=!1){return t.replace(rr,function(r,o,a,b,c,l,v,k,E){if(o!==void 0)return"\\";if(a!==void 0)return Be(a);if(b!==void 0)return Je(b);if(c!==void 0)return me(c,l);if(v!==void 0)return me(v);if(k==="0")return"\0";if(k!==void 0)return Ke(k,!e);if(E!==void 0)return er(E);throw new SyntaxError(C.errorMessages.get(C.ErrorType.EndOfString))})}F.unraw=fe;F.default=fe});
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function er(t){return We.get(t)||t}var rr=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function fe(t,e=!1){return t.replace(rr,function(r,o,a,b,c,l,v,k,E){if(o!==void 0)return"\\";if(a!==void 0)return Be(a);if(b!==void 0)return Je(b);if(c!==void 0)return me(c,l);if(v!==void 0)return me(v);if(k==="0")return"\0";if(k!==void 0)return Ke(k,!e);if(E!==void 0)return er(E);throw new SyntaxError(C.errorMessages.get(C.ErrorType.EndOfString))})}F.unraw=fe;F.default=fe});var se=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)?se.apply(void 0,o):typeof o=="object"&&o?Object.keys(o).map(function(a){return o[a]?a:""}):"")},[]).join(" ")};var ke=He(we(),1);var T=t=>typeof t=="string",tr=t=>typeof t=="function",xe=new Map,$e="en";function ue(t){return[...Array.isArray(t)?t:[t],$e]}function be(t,e,r){let o=ue(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 K(()=>W("date",o,r),()=>new Intl.DateTimeFormat(o,a)).format(T(e)?new Date(e):e)}function or(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 be(t,e,o)}function le(t,e,r){let o=ue(t);return K(()=>W("number",o,r),()=>new Intl.NumberFormat(o,r)).format(e)}function ye(t,e,r,{offset:o=0,...a}){var l,v;let b=ue(t),c=e?K(()=>W("plural-ordinal",b),()=>new Intl.PluralRules(b,{type:"ordinal"})):K(()=>W("plural-cardinal",b),()=>new Intl.PluralRules(b,{type:"cardinal"}));return(v=(l=a[r])!=null?l:a[c.select(r-o)])!=null?v:a.other}function K(t,e){let r=t(),o=xe.get(r);return o||(o=e(),xe.set(r,o)),o}function W(t,e,r){let o=e.join("-");return`${t}-${o}-${JSON.stringify(r)}`}var _e=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Ce="%__lingui_octothorpe__%",ar=(t,e,r={})=>{let o=e||t,a=c=>typeof c=="object"?c:r[c],b=(c,l)=>{let v=Object.keys(r).length?a("number"):void 0,k=le(o,c,v);return l.replace(new RegExp(Ce,"g"),k)};return{plural:(c,l)=>{let{offset:v=0}=l,k=ye(o,!1,c,l);return b(c-v,k)},selectordinal:(c,l)=>{let{offset:v=0}=l,k=ye(o,!0,c,l);return b(c-v,k)},select:ir,number:(c,l)=>le(o,c,a(l)||{style:l}),date:(c,l)=>be(o,c,a(l)||l),time:(c,l)=>or(o,c,a(l)||l)}},ir=(t,e)=>{var r;return(r=e[t])!=null?r:e.other};function nr(t,e,r){return(o={},a)=>{let b=ar(e,r,a),c=(v,k=!1)=>Array.isArray(v)?v.reduce((E,D)=>{if(D==="#"&&k)return E+Ce;if(T(D))return E+D;let[U,M,P]=D,O={};M==="plural"||M==="selectordinal"||M==="select"?Object.entries(P).forEach(([j,R])=>{O[j]=c(R,M==="plural"||M==="selectordinal")}):O=P;let z;if(M){let j=b[M];z=j(o[U],O)}else z=o[U];return z==null?E:E+z},""):v,l=c(t);return T(l)&&_e.test(l)?(0,ke.unraw)(l):T(l)?l:l?String(l):""}}var sr=Object.defineProperty,lr=(t,e,r)=>e in t?sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dr=(t,e,r)=>(lr(t,typeof e!="symbol"?e+"":e,r),r),de=class{constructor(){dr(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}},cr=Object.defineProperty,ur=(t,e,r)=>e in t?cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,N=(t,e,r)=>(ur(t,typeof e!="symbol"?e+"":e,r),r),ce=class extends de{constructor(e){var r;super(),N(this,"_locale",""),N(this,"_locales"),N(this,"_localeData",{}),N(this,"_messages",{}),N(this,"_missing"),N(this,"_messageCompiler"),N(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:$e,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=""),T(e)||(r=e.values||r,a=e.message,e=e.id);let b=this.messages[e],c=b===void 0,l=this._missing;if(l&&c)return tr(l)?l(this._locale,e):l;c&&this.emit("missing",{id:e,locale:this._locale});let v=b||a||e;return T(v)&&(this._messageCompiler?v=this._messageCompiler(v):console.warn(`Uncompiled message detected! Message:
|
|
3
3
|
|
|
4
4
|
> ${v}
|
|
5
5
|
|
|
@@ -7,7 +7,7 @@ That means you use raw catalog or your catalog doesn't have a translation for th
|
|
|
7
7
|
ICU features such as interpolation and plurals will not work properly for that message.
|
|
8
8
|
|
|
9
9
|
Please compile your catalog first.
|
|
10
|
-
`)),T(v)&&_e.test(v)?JSON.parse(`"${v}"`):T(v)?v:nr(v,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(e,r){return be(this._locales||this._locale,e,r)}number(e,r){return le(this._locales||this._locale,e,r)}};function br(t={}){return new ce(t)}var G=br();var p=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)},x=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 ee(t){var e,r,o,a,b,c,l,v,k,E,D,U,M,P,O,z,j,R,oe;class Ne extends t{constructor(...u){var h,w,$;super(...u),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),a.set(this,!1),b.set(this,void 0),c.set(this,void 0),l.set(this,!0),k.set(this,""),E.set(this,()=>{x(this,a,!0,"f"),x(this,r,!0,"f"),p(this,e,"m",z).call(this)}),D.set(this,()=>{x(this,r,!1,"f"),p(this,e,"m",j).call(this,this.shouldFormValueUpdate()?p(this,k,"f"):""),!this.validity.valid&&p(this,a,"f")&&x(this,o,!0,"f");let q=p(this,e,"m",z).call(this);this.validationMessageCallback&&this.validationMessageCallback(q?this.internals.validationMessage:"")}),U.set(this,()=>{var q;p(this,l,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),x(this,l,!1,"f")),x(this,a,!0,"f"),x(this,o,!0,"f"),p(this,e,"m",z).call(this),(q=this===null||this===void 0?void 0:this.validationMessageCallback)===null||q===void 0||q.call(this,this.showError?this.internals.validationMessage:"")}),M.set(this,void 0),P.set(this,!1),O.set(this,Promise.resolve()),(h=this.addEventListener)===null||h===void 0||h.call(this,"focus",p(this,E,"f")),(w=this.addEventListener)===null||w===void 0||w.call(this,"blur",p(this,D,"f")),($=this.addEventListener)===null||$===void 0||$.call(this,"invalid",p(this,U,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let u=this.validators.map($=>$.attribute).flat(),h=super.observedAttributes||[];return[...new Set([...h,...u])]}static getValidator(u){return this.validators.find(h=>h.attribute===u)||null}static getValidators(u){return this.validators.filter(h=>{var w;if(h.attribute===u||!((w=h.attribute)===null||w===void 0)&&w.includes(u))return!0})}get form(){return this.internals.form}get showError(){return p(this,e,"m",z).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(u,h,w){var $;($=super.attributeChangedCallback)===null||$===void 0||$.call(this,u,h,w);let H=this.constructor.getValidators(u);H!=null&&H.length&&this.validationTarget&&this.setValue(p(this,k,"f"))}setValue(u){var h;x(this,o,!1,"f"),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,""),x(this,k,u,"f");let $=this.shouldFormValueUpdate()?u:null;this.internals.setFormValue($),p(this,e,"m",j).call(this,$),this.valueChangedCallback&&this.valueChangedCallback($),p(this,e,"m",z).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(u=>u(p(this,O,"f")))}formResetCallback(){var u,h;x(this,a,!1,"f"),x(this,o,!1,"f"),p(this,e,"m",z).call(this),(u=this.resetFormControl)===null||u===void 0||u.call(this),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,p(this,e,"m",z).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,a=new WeakMap,b=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,E=new WeakMap,D=new WeakMap,U=new WeakMap,M=new WeakMap,P=new WeakMap,O=new WeakMap,e=new WeakSet,v=function(){let u=this.getRootNode(),h=`${this.localName}[name="${this.getAttribute("name")}"]`;return u.querySelectorAll(h)},z=function(){if(this.hasAttribute("disabled"))return!1;let u=p(this,o,"f")||p(this,a,"f")&&!this.validity.valid&&!p(this,r,"f");return u&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),u},j=function(u){let h=this.constructor,w={},$=h.validators,q=[],H=$.some(L=>L.isValid instanceof Promise);p(this,P,"f")||(x(this,O,new Promise(L=>{x(this,M,L,"f")}),"f"),x(this,P,!0,"f")),p(this,b,"f")&&(p(this,b,"f").abort(),x(this,c,p(this,b,"f"),"f"));let Z=new AbortController;x(this,b,Z,"f");let B,ge=!1;$.length&&($.forEach(L=>{let ae=L.key||"customError",Y=L.isValid(this,u,Z.signal);Y instanceof Promise?(q.push(Y),Y.then(ie=>{ie!=null&&(w[ae]=!ie,B=p(this,e,"m",oe).call(this,L,u),p(this,e,"m",R).call(this,w,B))})):(w[ae]=!Y,this.validity[ae]!==!Y&&(ge=!0),!Y&&!B&&(B=p(this,e,"m",oe).call(this,L,u)))}),Promise.allSettled(q).then(()=>{var L;Z!=null&&Z.signal.aborted||(x(this,P,!1,"f"),(L=p(this,M,"f"))===null||L===void 0||L.call(this))}),(ge||!H)&&p(this,e,"m",R).call(this,w,B))},R=function(u,h){if(this.validationTarget)this.internals.setValidity(u,h,this.validationTarget),x(this,l,!1,"f");else{if(this.internals.setValidity(u,h),this.internals.validity.valid)return;x(this,l,!0,"f")}},oe=function(u,h){if(this.validityCallback){let w=this.validityCallback(u.key||"customError");if(w)return w}return u.message instanceof Function?u.message(this,h):u.message},Ne}import{property as S}from"lit/decorators.js";var gr=["en","nb","fi","da","sv"],Se="en",ze=t=>gr.find(e=>t===e||t.toLowerCase().includes(e))||Se;function hr(){if(typeof window=="undefined"){let t=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ze(t)}try{let t=document.documentElement.lang;return ze(t)}catch(t){return console.warn("could not detect locale, falling back to source locale",t),Se}}var pr=(t,e,r,o,a,b)=>t==="nb"?r:t==="fi"?o:t==="da"?a:t==="sv"?b:e,Me=(t,e,r,o,a)=>{let b=hr(),c=pr(b,t,e,r,o,a);G.load(b,c),G.activate(b)};import{html as mr,LitElement as Qe}from"lit";import{property as Q}from"lit/decorators.js";import{classMap as fr}from"lit/directives/class-map.js";import{css as Le}from"lit";var re=Le`
|
|
10
|
+
`)),T(v)&&_e.test(v)?JSON.parse(`"${v}"`):T(v)?v:nr(v,this._locale,this._locales)(r,o==null?void 0:o.formats)}date(e,r){return be(this._locales||this._locale,e,r)}number(e,r){return le(this._locales||this._locale,e,r)}};function br(t={}){return new ce(t)}var G=br();var p=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)},x=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 ee(t){var e,r,o,a,b,c,l,v,k,E,D,U,M,P,O,z,j,R,oe;class Ne extends t{constructor(...u){var h,w,$;super(...u),e.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),a.set(this,!1),b.set(this,void 0),c.set(this,void 0),l.set(this,!0),k.set(this,""),E.set(this,()=>{x(this,a,!0,"f"),x(this,r,!0,"f"),p(this,e,"m",z).call(this)}),D.set(this,()=>{x(this,r,!1,"f"),p(this,e,"m",j).call(this,this.shouldFormValueUpdate()?p(this,k,"f"):""),!this.validity.valid&&p(this,a,"f")&&x(this,o,!0,"f");let q=p(this,e,"m",z).call(this);this.validationMessageCallback&&this.validationMessageCallback(q?this.internals.validationMessage:"")}),U.set(this,()=>{var q;p(this,l,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),x(this,l,!1,"f")),x(this,a,!0,"f"),x(this,o,!0,"f"),p(this,e,"m",z).call(this),(q=this===null||this===void 0?void 0:this.validationMessageCallback)===null||q===void 0||q.call(this,this.showError?this.internals.validationMessage:"")}),M.set(this,void 0),P.set(this,!1),O.set(this,Promise.resolve()),(h=this.addEventListener)===null||h===void 0||h.call(this,"focus",p(this,E,"f")),(w=this.addEventListener)===null||w===void 0||w.call(this,"blur",p(this,D,"f")),($=this.addEventListener)===null||$===void 0||$.call(this,"invalid",p(this,U,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let u=this.validators.map($=>$.attribute).flat(),h=super.observedAttributes||[];return[...new Set([...h,...u])]}static getValidator(u){return this.validators.find(h=>h.attribute===u)||null}static getValidators(u){return this.validators.filter(h=>{var w;if(h.attribute===u||!((w=h.attribute)===null||w===void 0)&&w.includes(u))return!0})}get form(){return this.internals.form}get showError(){return p(this,e,"m",z).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(u,h,w){var $;($=super.attributeChangedCallback)===null||$===void 0||$.call(this,u,h,w);let H=this.constructor.getValidators(u);H!=null&&H.length&&this.validationTarget&&this.setValue(p(this,k,"f"))}setValue(u){var h;x(this,o,!1,"f"),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,""),x(this,k,u,"f");let $=this.shouldFormValueUpdate()?u:null;this.internals.setFormValue($),p(this,e,"m",j).call(this,$),this.valueChangedCallback&&this.valueChangedCallback($),p(this,e,"m",z).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(u=>u(p(this,O,"f")))}formResetCallback(){var u,h;x(this,a,!1,"f"),x(this,o,!1,"f"),p(this,e,"m",z).call(this),(u=this.resetFormControl)===null||u===void 0||u.call(this),(h=this.validationMessageCallback)===null||h===void 0||h.call(this,p(this,e,"m",z).call(this)?this.validationMessage:"")}}return r=new WeakMap,o=new WeakMap,a=new WeakMap,b=new WeakMap,c=new WeakMap,l=new WeakMap,k=new WeakMap,E=new WeakMap,D=new WeakMap,U=new WeakMap,M=new WeakMap,P=new WeakMap,O=new WeakMap,e=new WeakSet,v=function(){let u=this.getRootNode(),h=`${this.localName}[name="${this.getAttribute("name")}"]`;return u.querySelectorAll(h)},z=function(){if(this.hasAttribute("disabled"))return!1;let u=p(this,o,"f")||p(this,a,"f")&&!this.validity.valid&&!p(this,r,"f");return u&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),u},j=function(u){let h=this.constructor,w={},$=h.validators,q=[],H=$.some(L=>L.isValid instanceof Promise);p(this,P,"f")||(x(this,O,new Promise(L=>{x(this,M,L,"f")}),"f"),x(this,P,!0,"f")),p(this,b,"f")&&(p(this,b,"f").abort(),x(this,c,p(this,b,"f"),"f"));let Z=new AbortController;x(this,b,Z,"f");let B,ge=!1;$.length&&($.forEach(L=>{let ae=L.key||"customError",Y=L.isValid(this,u,Z.signal);Y instanceof Promise?(q.push(Y),Y.then(ie=>{ie!=null&&(w[ae]=!ie,B=p(this,e,"m",oe).call(this,L,u),p(this,e,"m",R).call(this,w,B))})):(w[ae]=!Y,this.validity[ae]!==!Y&&(ge=!0),!Y&&!B&&(B=p(this,e,"m",oe).call(this,L,u)))}),Promise.allSettled(q).then(()=>{var L;Z!=null&&Z.signal.aborted||(x(this,P,!1,"f"),(L=p(this,M,"f"))===null||L===void 0||L.call(this))}),(ge||!H)&&p(this,e,"m",R).call(this,w,B))},R=function(u,h){if(this.validationTarget)this.internals.setValidity(u,h,this.validationTarget),x(this,l,!1,"f");else{if(this.internals.setValidity(u,h),this.internals.validity.valid)return;x(this,l,!0,"f")}},oe=function(u,h){if(this.validityCallback){let w=this.validityCallback(u.key||"customError");if(w)return w}return u.message instanceof Function?u.message(this,h):u.message},Ne}import{html as te,LitElement as je}from"lit";import{property as S}from"lit/decorators.js";var gr=["en","nb","fi","da","sv"],Se="en",ze=t=>gr.find(e=>t===e||t.toLowerCase().includes(e))||Se;function hr(){if(typeof window=="undefined"){let t=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return ze(t)}try{let t=document.documentElement.lang;return ze(t)}catch(t){return console.warn("could not detect locale, falling back to source locale",t),Se}}var pr=(t,e,r,o,a,b)=>t==="nb"?r:t==="fi"?o:t==="da"?a:t==="sv"?b:e,Me=(t,e,r,o,a)=>{let b=hr(),c=pr(b,t,e,r,o,a);G.load(b,c),G.activate(b)};import{html as mr,LitElement as Qe}from"lit";import{property as Q}from"lit/decorators.js";import{classMap as fr}from"lit/directives/class-map.js";import{css as Le}from"lit";var re=Le`
|
|
11
11
|
*,
|
|
12
12
|
:before,
|
|
13
13
|
:after {
|