@warp-ds/elements 2.1.1 → 2.2.0-next.10
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 +27 -17
- package/dist/.storybook/utilities.d.ts +28 -0
- package/dist/api.js +1 -49
- package/dist/api.js.map +4 -4
- package/dist/custom-elements.json +4282 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +7 -0
- package/dist/index.js +4561 -6638
- package/dist/index.js.map +4 -4
- package/dist/packages/affix/affix.stories.d.ts +10 -0
- package/dist/packages/affix/affix.test.d.ts +1 -0
- package/dist/packages/affix/index.d.ts +52 -24
- package/dist/packages/affix/index.js +2571 -2240
- package/dist/packages/affix/index.js.map +4 -4
- package/dist/packages/affix/react.d.ts +2 -0
- package/dist/packages/affix/styles.d.ts +1 -0
- package/dist/packages/alert/alert.stories.d.ts +15 -0
- package/dist/packages/alert/alert.test.d.ts +1 -0
- package/dist/packages/alert/index.d.ts +27 -17
- package/dist/packages/alert/index.js +2568 -2446
- package/dist/packages/alert/index.js.map +4 -4
- package/dist/packages/alert/react.d.ts +2 -0
- package/dist/packages/alert/styles.d.ts +1 -0
- package/dist/packages/attention/attention.stories.d.ts +15 -0
- package/dist/packages/attention/attention.test.d.ts +1 -0
- package/dist/packages/attention/index.d.ts +62 -90
- package/dist/packages/attention/index.js +3497 -3984
- package/dist/packages/attention/index.js.map +4 -4
- package/dist/packages/attention/layout-styles.d.ts +1 -0
- package/dist/packages/attention/react.d.ts +1 -0
- package/dist/packages/attention/styles.d.ts +1 -0
- package/dist/packages/badge/badge.stories.d.ts +17 -0
- package/dist/packages/badge/badge.test.d.ts +1 -0
- package/dist/packages/badge/index.d.ts +17 -11
- package/dist/packages/badge/index.js +2550 -300
- package/dist/packages/badge/index.js.map +4 -4
- package/dist/packages/badge/react.d.ts +2 -0
- package/dist/packages/badge/styles.d.ts +1 -0
- package/dist/packages/box/box.stories.d.ts +14 -0
- package/dist/packages/box/box.test.d.ts +1 -0
- package/dist/packages/box/index.d.ts +22 -20
- package/dist/packages/box/index.js +2550 -304
- package/dist/packages/box/index.js.map +4 -4
- package/dist/packages/box/react.d.ts +2 -0
- package/dist/packages/box/slot.test.d.ts +1 -0
- package/dist/packages/box/styles.d.ts +1 -0
- package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +12 -0
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -0
- package/dist/packages/breadcrumbs/index.d.ts +24 -16
- package/dist/packages/breadcrumbs/index.js +2511 -2051
- package/dist/packages/breadcrumbs/index.js.map +4 -4
- package/dist/packages/breadcrumbs/react.d.ts +2 -0
- package/dist/packages/breadcrumbs/styles.d.ts +1 -0
- package/dist/packages/button/button.stories.d.ts +21 -0
- package/dist/packages/button/button.test.d.ts +1 -0
- package/dist/packages/button/index.d.ts +111 -56
- package/dist/packages/button/index.js +2735 -2130
- package/dist/packages/button/index.js.map +4 -4
- package/dist/packages/button/react.d.ts +2 -0
- package/dist/packages/button/styles.d.ts +1 -0
- package/dist/packages/card/card.stories.d.ts +15 -0
- package/dist/packages/card/card.test.d.ts +1 -0
- package/dist/packages/card/index.d.ts +33 -16
- package/dist/packages/card/index.js +2530 -2078
- package/dist/packages/card/index.js.map +4 -4
- package/dist/packages/card/react.d.ts +2 -0
- package/dist/packages/card/styles.d.ts +1 -0
- package/dist/packages/datepicker/DatePicker.test.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.d.ts +107 -0
- package/dist/packages/datepicker/datepicker.js +2929 -0
- package/dist/packages/datepicker/datepicker.js.map +7 -0
- package/dist/packages/datepicker/datepicker.stories.d.ts +11 -0
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -0
- package/dist/packages/datepicker/index.d.ts +1 -0
- package/dist/packages/datepicker/index.js +2929 -0
- package/dist/packages/datepicker/index.js.map +7 -0
- package/dist/packages/datepicker/locales/da/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/en/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/fi/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/nb/messages.d.mts +1 -0
- package/dist/packages/datepicker/locales/sv/messages.d.mts +1 -0
- package/dist/packages/datepicker/react.d.ts +2 -0
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.d.ts +1 -0
- package/dist/packages/datepicker/styles/w-datepicker.styles.d.ts +1 -0
- package/dist/packages/datepicker/utils.d.ts +13 -0
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +10 -0
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +1 -0
- package/dist/packages/dead-toggle/index.d.ts +21 -0
- package/dist/packages/dead-toggle/index.js +2610 -0
- package/dist/packages/dead-toggle/index.js.map +7 -0
- package/dist/packages/dead-toggle/react.d.ts +2 -0
- package/dist/packages/expandable/expandable.stories.d.ts +19 -0
- package/dist/packages/expandable/expandable.test.d.ts +1 -0
- package/dist/packages/expandable/index.d.ts +55 -50
- package/dist/packages/expandable/index.js +2545 -2293
- package/dist/packages/expandable/index.js.map +4 -4
- package/dist/packages/expandable/react.d.ts +2 -0
- package/dist/packages/expandable/styles.d.ts +1 -0
- package/dist/packages/link/index.d.ts +39 -0
- package/dist/packages/link/index.js +2769 -0
- package/dist/packages/link/index.js.map +7 -0
- package/dist/packages/link/link.stories.d.ts +20 -0
- package/dist/packages/link/link.test.d.ts +1 -0
- package/dist/packages/link/react.d.ts +2 -0
- package/dist/packages/link/styles.d.ts +1 -0
- package/dist/packages/modal/index.d.ts +4 -5
- package/dist/packages/modal/index.js +2765 -2569
- package/dist/packages/modal/index.js.map +4 -4
- package/dist/packages/modal/modal-footer.d.ts +18 -11
- package/dist/packages/modal/modal-footer.js +2499 -0
- package/dist/packages/modal/modal-footer.js.map +7 -0
- package/dist/packages/modal/modal-header.d.ts +30 -31
- package/dist/packages/modal/modal-header.js +2700 -0
- package/dist/packages/modal/modal-header.js.map +7 -0
- package/dist/packages/modal/modal-main.d.ts +32 -31
- package/dist/packages/modal/modal-main.js +2681 -0
- package/dist/packages/modal/modal-main.js.map +7 -0
- package/dist/packages/modal/modal.stories.d.ts +19 -0
- package/dist/packages/modal/react.d.ts +4 -0
- package/dist/packages/modal/util.d.ts +7 -17
- package/dist/packages/pageindicator/index.d.ts +14 -0
- package/dist/packages/pageindicator/index.js +169 -0
- package/dist/packages/pageindicator/index.js.map +7 -0
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +32 -0
- package/dist/packages/pageindicator/react.d.ts +2 -0
- package/dist/packages/pageindicator/style.d.ts +1 -0
- package/dist/packages/pagination/index.d.ts +37 -0
- package/dist/packages/pagination/index.js +2610 -0
- package/dist/packages/pagination/index.js.map +7 -0
- package/dist/packages/pagination/locales/da/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/en/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/fi/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/nb/messages.d.mts +1 -0
- package/dist/packages/pagination/locales/sv/messages.d.mts +1 -0
- package/dist/packages/pagination/pagination.stories.d.ts +14 -0
- package/dist/packages/pagination/pagination.test.d.ts +1 -0
- package/dist/packages/pagination/react.d.ts +2 -0
- package/dist/packages/pagination/styles.d.ts +1 -0
- package/dist/packages/pill/index.d.ts +44 -23
- package/dist/packages/pill/index.js +2524 -2175
- package/dist/packages/pill/index.js.map +4 -4
- package/dist/packages/pill/pill.stories.d.ts +12 -0
- package/dist/packages/pill/pill.test.d.ts +1 -0
- package/dist/packages/pill/styles.d.ts +1 -0
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +64 -0
- package/dist/packages/rip-and-tear-checkbox/index.css +2 -0
- package/dist/packages/rip-and-tear-checkbox/index.css.map +7 -0
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +6 -0
- package/dist/packages/rip-and-tear-checkbox/index.js +187 -0
- package/dist/packages/rip-and-tear-checkbox/index.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +46 -0
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +6 -0
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +103 -0
- package/dist/packages/rip-and-tear-radio/index.css +2 -0
- package/dist/packages/rip-and-tear-radio/index.css.map +7 -0
- package/dist/packages/rip-and-tear-radio/index.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/index.js +157 -0
- package/dist/packages/rip-and-tear-radio/index.js.map +7 -0
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +8 -0
- package/dist/packages/rip-and-tear-radio/math.d.ts +1 -0
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +72 -0
- package/dist/packages/rip-and-tear-radio/radio.d.ts +38 -0
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +11 -0
- package/dist/packages/rip-and-tear-radio/slot.d.ts +20 -0
- package/dist/packages/rip-and-tear-radio/watch.d.ts +26 -0
- package/dist/packages/select/index.d.ts +59 -48
- package/dist/packages/select/index.js +2565 -2236
- package/dist/packages/select/index.js.map +4 -4
- package/dist/packages/select/react.d.ts +2 -0
- package/dist/packages/select/select.stories.d.ts +10 -0
- package/dist/packages/select/select.test.d.ts +1 -0
- package/dist/packages/select/styles.d.ts +1 -0
- package/dist/packages/steps/index.d.ts +43 -0
- package/dist/packages/steps/index.js +2581 -0
- package/dist/packages/steps/index.js.map +7 -0
- package/dist/packages/steps/locales/da/messages.d.mts +1 -0
- package/dist/packages/steps/locales/en/messages.d.mts +1 -0
- package/dist/packages/steps/locales/fi/messages.d.mts +1 -0
- package/dist/packages/steps/locales/nb/messages.d.mts +1 -0
- package/dist/packages/steps/locales/sv/messages.d.mts +1 -0
- package/dist/packages/steps/react.d.ts +3 -0
- package/dist/packages/steps/steps.stories.d.ts +12 -0
- package/dist/packages/steps/styles.d.ts +1 -0
- package/dist/packages/styles.d.ts +2 -0
- package/dist/packages/switch/index.d.ts +20 -0
- package/dist/packages/switch/index.js +2564 -0
- package/dist/packages/switch/index.js.map +7 -0
- package/dist/packages/switch/react.d.ts +2 -0
- package/dist/packages/switch/styles.d.ts +1 -0
- package/dist/packages/switch/switch.stories.d.ts +9 -0
- package/dist/packages/tabs/index.d.ts +4 -0
- package/dist/packages/tabs/index.js +2579 -0
- package/dist/packages/tabs/index.js.map +7 -0
- package/dist/packages/tabs/react.d.ts +4 -0
- package/dist/packages/tabs/styles.d.ts +1 -0
- package/dist/packages/tabs/tab-panel.d.ts +20 -0
- package/dist/packages/tabs/tab.d.ts +23 -0
- package/dist/packages/tabs/tabs.d.ts +38 -0
- package/dist/packages/tabs/tabs.stories.d.ts +8 -0
- package/dist/packages/textfield/index.d.ts +72 -74
- package/dist/packages/textfield/index.js +2572 -413
- package/dist/packages/textfield/index.js.map +4 -4
- package/dist/packages/textfield/react.d.ts +2 -0
- package/dist/packages/textfield/styles.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.d.ts +17 -0
- package/dist/packages/textfield/textfield.test.d.ts +1 -0
- package/dist/packages/toast/api.d.ts +4 -45
- package/dist/packages/toast/index.d.ts +3 -0
- package/dist/packages/toast/index.js +2610 -2787
- package/dist/packages/toast/index.js.map +4 -4
- package/dist/packages/toast/styles.d.ts +1 -0
- package/dist/packages/toast/toast-container.d.ts +12 -63
- package/dist/packages/toast/toast.d.ts +34 -29
- package/dist/packages/toast/toast.stories.d.ts +12 -0
- package/dist/packages/toast/types.d.ts +15 -0
- package/dist/packages/utils/expand-transition.d.ts +3 -2
- package/dist/packages/utils/index.d.ts +1 -1
- package/dist/packages/utils/index.js +27 -0
- package/dist/packages/utils/index.js.map +7 -0
- package/dist/packages/utils/unstyled-heading.d.ts +4 -3
- package/dist/setup-tests.d.ts +1 -0
- package/dist/styles.css +1 -0
- package/dist/vscode.css-custom-data.json +6 -0
- package/dist/vscode.html-custom-data.json +421 -0
- package/dist/web-types.json +949 -0
- package/package.json +74 -28
- package/dist/index.d.ts +0 -19
- package/dist/packages/broadcast/component.d.ts +0 -36
- package/dist/packages/broadcast/index.d.ts +0 -2
- package/dist/packages/broadcast/index.js +0 -87
- package/dist/packages/broadcast/index.js.map +0 -7
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
2
|
+
import type { WarpPill } from './index.js';
|
|
3
|
+
import './index.js';
|
|
4
|
+
declare const args: Partial<WarpPill> & {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
declare const meta: Meta<typeof args>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof args>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Suggestion: Story;
|
|
12
|
+
export declare const Closable: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const styles: import("lit").CSSResult;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { PropertyValues } from 'lit';
|
|
2
|
+
import { BaseFormAssociatedElement } from '../rip-and-tear-radio/form-associated-element';
|
|
3
|
+
import '@warp-ds/icons/elements/check-16';
|
|
4
|
+
export declare class WCheckbox extends BaseFormAssociatedElement {
|
|
5
|
+
static css: any[];
|
|
6
|
+
static shadowRootOptions: {
|
|
7
|
+
delegatesFocus: boolean;
|
|
8
|
+
mode: ShadowRootMode;
|
|
9
|
+
serializable?: boolean;
|
|
10
|
+
slotAssignment?: SlotAssignmentMode;
|
|
11
|
+
};
|
|
12
|
+
static get validators(): import("../rip-and-tear-radio/form-associated-element").Validator<BaseFormAssociatedElement>[];
|
|
13
|
+
private readonly hasSlotController;
|
|
14
|
+
input: HTMLInputElement;
|
|
15
|
+
title: string;
|
|
16
|
+
/** The name of the checkbox, submitted as a name/value pair with form data. */
|
|
17
|
+
name: string;
|
|
18
|
+
private _value;
|
|
19
|
+
/** The value of the checkbox, submitted as a name/value pair with form data. */
|
|
20
|
+
get value(): string | null;
|
|
21
|
+
set value(val: string | null);
|
|
22
|
+
/** The checkbox's size. */
|
|
23
|
+
size: 'small' | 'medium' | 'large';
|
|
24
|
+
/** Disables the checkbox. */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
28
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
29
|
+
*/
|
|
30
|
+
indeterminate: boolean;
|
|
31
|
+
/** Draws the checkbox in a checked state. */
|
|
32
|
+
checked: boolean;
|
|
33
|
+
/** The default value of the form control. Primarily used for resetting the form control. */
|
|
34
|
+
defaultChecked: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you
|
|
37
|
+
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
|
38
|
+
* the same document or shadow root for this to work.
|
|
39
|
+
*/
|
|
40
|
+
form: any;
|
|
41
|
+
/** Makes the checkbox a required field. */
|
|
42
|
+
required: boolean;
|
|
43
|
+
/** The checkbox's hint. If you need to display HTML, use the `hint` slot instead. */
|
|
44
|
+
hint: string;
|
|
45
|
+
private handleClick;
|
|
46
|
+
handleDefaultCheckedChange(): void;
|
|
47
|
+
handleValueOrCheckedChange(): void;
|
|
48
|
+
handleStateChange(): void;
|
|
49
|
+
handleDisabledChange(): void;
|
|
50
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
51
|
+
formResetCallback(): void;
|
|
52
|
+
/** Simulates a click on the checkbox. */
|
|
53
|
+
click(): void;
|
|
54
|
+
/** Sets focus on the checkbox. */
|
|
55
|
+
focus(options?: FocusOptions): void;
|
|
56
|
+
/** Removes focus from the checkbox. */
|
|
57
|
+
blur(): void;
|
|
58
|
+
render(): import("lit").TemplateResult<1>;
|
|
59
|
+
}
|
|
60
|
+
declare global {
|
|
61
|
+
interface HTMLElementTagNameMap {
|
|
62
|
+
'w-checkbox': WCheckbox;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:host{box-sizing:border-box!important}:host *,:host *:before,:host *:after{box-sizing:inherit!important}:host{display:block;user-select:none;-webkit-user-select:none}[part~=control]{position:relative;width:2rem;height:2rem;border-color:var(--w-s-color-border);border-radius:2px;border-style:solid;border-width:1px;background-color:var(--w-s-color-background);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;margin-right:.8rem;text-align:center;line-height:var(--w-line-height-xs);font-size:var(--w-font-size-m)}[part~=base]{display:flex;align-items:center;position:relative;color:currentColor;vertical-align:middle;cursor:pointer}[part~=label]{display:block;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);user-select:none;cursor:pointer;padding:.2rem 0}label:hover [part~=control]:not(:has(:checked,:indeterminate)){background-color:var(--w-s-color-background-hover);border-color:var(--w-s-color-border-primary)}label:hover [part~=control]:has(:checked,:indeterminate){border-color:var(--w-s-color-border-primary-hover);background-color:var(--w-s-color-background-primary-hover)}[part~=control]:has(:checked,:indeterminate){color:var(--checked-icon-color, white);border-color:var(--w-s-color-border-primary);background-color:var(--w-s-color-background-primary)}[part~=control]:has(:indeterminate){font-weight:700}[part~=control]:has(:invalid){border-color:var(--w-s-color-border-negative)}[part~=control]:has(:invalid):hover{background-color:var(--w-s-color-background-negative-subtle-hover)}[part~=control]:has(:checked):has(:invalid){background-color:var(--w-s-color-background-negative)}[part~=control]:has(:checked){background-image:var(--w-icon-toggle-checked);background-position:center}[part~=control]:has(>input:focus-visible:not(:disabled)){outline:var(--wa-focus-ring);outline-offset:var(--wa-focus-ring-offset)}:host [part~=base]:has(input:disabled){opacity:.5;cursor:not-allowed}input{position:absolute;padding:0;margin:0;height:100%;width:100%;opacity:0;pointer-events:none}[part~=icon]{display:flex;input:not(:checked,:indeterminate)+&{visibility:hidden}}:host([required]) [part~=label]:after{content:var(--wa-form-control-required-content);color:var(--wa-form-control-required-content-color);margin-inline-start:var(--wa-form-control-required-content-offset)}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/rip-and-tear-radio/host.css", "../../../packages/rip-and-tear-checkbox/checkbox.css"],
|
|
4
|
+
"sourcesContent": [":host {\n box-sizing: border-box !important;\n}\n\n:host *,\n:host *::before,\n:host *::after {\n box-sizing: inherit !important;\n}\n\n", ":host {\n display: block;\n user-select: none;\n -webkit-user-select: none;\n}\n\n[part~='control'] {\n position: relative;\n width: 2rem;\n height: 2rem;\n border-color: var(--w-s-color-border);\n border-radius: 2px;\n border-style: solid;\n border-width: 1px;\n background-color: var(--w-s-color-background);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n margin-right: 0.8rem;\n text-align: center;\n line-height: var(--w-line-height-xs);\n font-size: var(--w-font-size-m);\n}\n\n[part~='base'] {\n display: flex;\n align-items: center;\n position: relative;\n color: currentColor;\n vertical-align: middle;\n cursor: pointer;\n}\n\n[part~='label'] {\n display: block;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m);\n user-select: none;\n cursor: pointer;\n padding: 0.2rem 0;\n}\n\nlabel:hover [part~='control']:not(:has(:checked, :indeterminate)) {\n background-color: var(--w-s-color-background-hover);\n border-color: var(--w-s-color-border-primary);\n}\n\nlabel:hover [part~='control']:has(:checked, :indeterminate) {\n border-color: var(--w-s-color-border-primary-hover);\n background-color: var(--w-s-color-background-primary-hover);\n}\n\n[part~='control']:has(:checked, :indeterminate) {\n color: var(--checked-icon-color, white);\n border-color: var(--w-s-color-border-primary);\n background-color: var(--w-s-color-background-primary);\n}\n\n[part~='control']:has(:indeterminate) {\n font-weight: 700;\n}\n\n[part~='control']:has(:invalid) {\n border-color: var(--w-s-color-border-negative);\n}\n\n[part~='control']:has(:invalid):hover {\n background-color: var(--w-s-color-background-negative-subtle-hover);\n}\n\n[part~='control']:has(:checked):has(:invalid) {\n background-color: var(--w-s-color-background-negative);\n}\n\n[part~='control']:has(:checked) {\n background-image: var(--w-icon-toggle-checked);\n background-position: center;\n}\n\n/* Focus */\n[part~='control']:has(> input:focus-visible:not(:disabled)) {\n outline: var(--wa-focus-ring);\n outline-offset: var(--wa-focus-ring-offset);\n}\n\n/* Disabled */\n:host [part~='base']:has(input:disabled) {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\ninput {\n position: absolute;\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n opacity: 0;\n pointer-events: none;\n}\n\n[part~='icon'] {\n display: flex;\n\n input:not(:checked, :indeterminate) + & {\n visibility: hidden;\n }\n}\n\n:host([required]) [part~='label']::after {\n content: var(--wa-form-control-required-content);\n color: var(--wa-form-control-required-content-color);\n margin-inline-start: var(--wa-form-control-required-content-offset);\n}\n\n"],
|
|
5
|
+
"mappings": "AAAA,MACE,WAAY,oBACd,CAEA,MAAM,EACN,MAAM,CAAC,QACP,MAAM,CAAC,OACL,WAAY,iBACd,CCRA,MACE,QAAS,MACT,YAAa,KACb,oBAAqB,IACvB,CAEA,CAAC,eACC,SAAU,SACV,MAAO,KACP,OAAQ,KACR,aAAc,IAAI,oBAVpB,cAWiB,IACf,aAAc,MACd,aAAc,IACd,iBAAkB,IAAI,wBACtB,oBAAqB,IACrB,2BAA4B,aAAa,EAAG,CAAE,CAAC,CAAE,EAAG,CAAE,GACtD,oBAAqB,KACrB,aAAc,MACd,WAAY,OACZ,YAAa,IAAI,oBACjB,UAAW,IAAI,gBACjB,CAEA,CAAC,YACC,QAAS,KACT,YAAa,OACb,SAAU,SACV,MAAO,aACP,eAAgB,OAChB,OAAQ,OACV,CAEA,CAAC,aACC,QAAS,MACT,UAAW,IAAI,iBACf,YAAa,IAAI,mBACjB,YAAa,KACb,OAAQ,QAtCV,QAuCW,MAAO,CAClB,CAEA,KAAK,OAAO,CAAC,cAAgB,KAAK,KAAK,SAAU,iBAC/C,iBAAkB,IAAI,8BACtB,aAAc,IAAI,2BACpB,CAEA,KAAK,OAAO,CAAC,cAAgB,KAAK,SAAU,gBAC1C,aAAc,IAAI,kCAClB,iBAAkB,IAAI,qCACxB,CAEA,CAAC,cAAgB,KAAK,SAAU,gBAC9B,MAAO,IAAI,oBAAoB,EAAE,OACjC,aAAc,IAAI,4BAClB,iBAAkB,IAAI,+BACxB,CAEA,CAAC,cAAgB,KAAK,gBACpB,YAAa,GACf,CAEA,CAAC,cAAgB,KAAK,UACpB,aAAc,IAAI,4BACpB,CAEA,CAAC,cAAgB,KAAK,SAAS,OAC7B,iBAAkB,IAAI,6CACxB,CAEA,CAAC,cAAgB,KAAK,SAAS,KAAK,UAClC,iBAAkB,IAAI,gCACxB,CAEA,CAAC,cAAgB,KAAK,UACpB,iBAAkB,IAAI,yBACtB,oBAAqB,MACvB,CAGA,CAAC,cAAgB,KAAK,CAAE,KAAK,cAAc,KAAK,YAC9C,QAAS,IAAI,iBACb,eAAgB,IAAI,uBACtB,CAGA,MAAM,CAAC,WAAa,KAAK,KAAK,WAC5B,QAAS,GACT,OAAQ,WACV,CAEA,MACE,SAAU,SA5FZ,QA6FW,EA7FX,OA8FU,EACR,OAAQ,KACR,MAAO,KACP,QAAS,EACT,eAAgB,IAClB,CAEA,CAAC,YACC,QAAS,KAET,KAAK,KAAK,SAAU,eAAgB,CAAE,EACpC,WAAY,MACd,CACF,CAEA,MAAM,CAAC,WAAW,CAAC,YAAc,OAC/B,QAAS,IAAI,oCACb,MAAO,IAAI,0CACX,oBAAqB,IAAI,0CAC3B",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
var Ft=Object.create;var _e=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var zt=Object.getOwnPropertyNames;var Kt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var De=r=>{throw TypeError(r)};var Ie=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Gt=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of zt(e))!Jt.call(r,i)&&i!==t&&_e(r,i,{get:()=>e[i],enumerable:!(s=He(e,i))||s.enumerable});return r};var Xt=(r,e,t)=>(t=r!=null?Ft(Kt(r)):{},Gt(e||!r||!r.__esModule?_e(t,"default",{value:r,enumerable:!0}):t,r));var u=(r,e,t,s)=>{for(var i=s>1?void 0:s?He(e,t):e,n=r.length-1,o;n>=0;n--)(o=r[n])&&(i=(s?o(e,t,i):o(i))||i);return s&&i&&_e(e,t,i),i};var qe=(r,e,t)=>e.has(r)||De("Cannot "+t);var Be=(r,e,t)=>(qe(r,e,"read from private field"),t?t.call(r):e.get(r)),je=(r,e,t)=>e.has(r)?De("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Fe=(r,e,t,s)=>(qe(r,e,"write to private field"),s?s.call(r,t):e.set(r,t),t);var Tt=Ie(N=>{"use strict";Object.defineProperty(N,"__esModule",{value:!0});N.errorMessages=N.ErrorType=void 0;var q;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(q=N.ErrorType||(N.ErrorType={}));N.errorMessages=new Map([[q.MalformedUnicode,"malformed Unicode character escape sequence"],[q.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[q.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[q.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[q.EndOfString,"malformed escape sequence at end of string"]])});var Ot=Ie(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.unraw=w.errorMessages=w.ErrorType=void 0;var y=Tt();Object.defineProperty(w,"ErrorType",{enumerable:!0,get:function(){return y.ErrorType}});Object.defineProperty(w,"errorMessages",{enumerable:!0,get:function(){return y.errorMessages}});function cs(r){return!r.match(/[^a-f0-9]/i)?parseInt(r,16):NaN}function fe(r,e,t){let s=cs(r);if(Number.isNaN(s)||t!==void 0&&t!==r.length)throw new SyntaxError(y.errorMessages.get(e));return s}function ds(r){let e=fe(r,y.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}function xt(r,e){let t=fe(r,y.ErrorType.MalformedUnicode,4);if(e!==void 0){let s=fe(e,y.ErrorType.MalformedUnicode,4);return String.fromCharCode(t,s)}return String.fromCharCode(t)}function hs(r){return r.charAt(0)==="{"&&r.charAt(r.length-1)==="}"}function us(r){if(!hs(r))throw new SyntaxError(y.errorMessages.get(y.ErrorType.MalformedUnicode));let e=r.slice(1,-1),t=fe(e,y.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(s){throw s instanceof RangeError?new SyntaxError(y.errorMessages.get(y.ErrorType.CodePointLimit)):s}}function ps(r,e=!1){if(e)throw new SyntaxError(y.errorMessages.get(y.ErrorType.OctalDeprecation));let t=parseInt(r,8);return String.fromCharCode(t)}var fs=new Map([["b","\b"],["f","\f"],["n",`
|
|
2
|
+
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function ms(r){return fs.get(r)||r}var gs=/\\(?:(\\)|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 Mt(r,e=!1){return r.replace(gs,function(t,s,i,n,o,l,a,c,d){if(s!==void 0)return"\\";if(i!==void 0)return ds(i);if(n!==void 0)return us(n);if(o!==void 0)return xt(o,l);if(a!==void 0)return xt(a);if(c==="0")return"\0";if(c!==void 0)return ps(c,!e);if(d!==void 0)return ms(d);throw new SyntaxError(y.errorMessages.get(y.ErrorType.EndOfString))})}w.unraw=Mt;w.default=Mt});var Q=globalThis,ee=Q.ShadowRoot&&(Q.ShadyCSS===void 0||Q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ke=Symbol(),ze=new WeakMap,W=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==Ke)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ee&&e===void 0){let s=t!==void 0&&t.length===1;s&&(e=ze.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&ze.set(t,e))}return e}toString(){return this.cssText}},te=r=>new W(typeof r=="string"?r:r+"",void 0,Ke);var Je=(r,e)=>{if(ee)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let s=document.createElement("style"),i=Q.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=t.cssText,r.appendChild(s)}},be=ee?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let s of e.cssRules)t+=s.cssText;return te(t)})(r):r;var{is:Zt,defineProperty:Yt,getOwnPropertyDescriptor:Qt,getOwnPropertyNames:Wt,getOwnPropertySymbols:es,getPrototypeOf:ts}=Object,C=globalThis,Ge=C.trustedTypes,ss=Ge?Ge.emptyScript:"",$e=C.reactiveElementPolyfillSupport,B=(r,e)=>r,j={toAttribute(r,e){switch(e){case Boolean:r=r?ss:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch(s){t=null}}return t}},se=(r,e)=>!Zt(r,e),Xe={attribute:!0,type:String,converter:j,reflect:!1,useDefault:!1,hasChanged:se},Ze,Ye;(Ze=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Ye=C.litPropertyMetadata)!=null||(C.litPropertyMetadata=new WeakMap);var E=class extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Xe){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(e,s,t);i!==void 0&&Yt(this.prototype,e,i)}}static getPropertyDescriptor(e,t,s){var o;let{get:i,set:n}=(o=Qt(this.prototype,e))!=null?o:{get(){return this[t]},set(l){this[t]=l}};return{get:i,set(l){let a=i==null?void 0:i.call(this);n==null||n.call(this,l),this.requestUpdate(e,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Xe}static _$Ei(){if(this.hasOwnProperty(B("elementProperties")))return;let e=ts(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(B("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(B("properties"))){let t=this.properties,s=[...Wt(t),...es(t)];for(let i of s)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[s,i]of t)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[t,s]of this.elementProperties){let i=this._$Eu(t,s);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let s=new Set(e.flat(1/0).reverse());for(let i of s)t.unshift(be(i))}else e!==void 0&&t.push(be(e));return t}static _$Eu(e,t){let s=t.attribute;return s===!1?void 0:typeof s=="string"?s:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,s;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((s=e.hostConnected)==null||s.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let s of t.keys())this.hasOwnProperty(s)&&(e.set(s,this[s]),delete this[s]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var t;let e=(t=this.shadowRoot)!=null?t:this.attachShadow(this.constructor.shadowRootOptions);return Je(e,this.constructor.elementStyles),e}connectedCallback(){var e,t;(e=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostConnected)==null?void 0:i.call(s)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var s;return(s=t.hostDisconnected)==null?void 0:s.call(t)})}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$ET(e,t){var n;let s=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,s);if(i!==void 0&&s.reflect===!0){let o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:j).toAttribute(t,s.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,t){var n,o,l;let s=this.constructor,i=s._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=s.getPropertyOptions(i),c=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)==null?void 0:n.fromAttribute)!==void 0?a.converter:j;this._$Em=i;let d=c.fromAttribute(t,a.type);this[i]=(l=d!=null?d:(o=this._$Ej)==null?void 0:o.get(i))!=null?l:d,this._$Em=null}}requestUpdate(e,t,s){var i,n;if(e!==void 0){let o=this.constructor,l=this[e];if(s!=null||(s=o.getPropertyOptions(e)),!(((i=s.hasChanged)!=null?i:se)(l,t)||s.useDefault&&s.reflect&&l===((n=this._$Ej)==null?void 0:n.get(e))&&!this.hasAttribute(o._$Eu(e,s))))return;this.C(e,t,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:s,reflect:i,wrapped:n},o){var l,a,c;s&&!((l=this._$Ej)!=null?l:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(a=o!=null?o:t)!=null?a:this[e]),n!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||s||(t=void 0),this._$AL.set(e,t)),i===!0&&this._$Em!==e&&((c=this._$Eq)!=null?c:this._$Eq=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s,i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((s=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[o,l]of this._$Ep)this[o]=l;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[o,l]of n){let{wrapped:a}=l,c=this[o];a!==!0||this._$AL.has(o)||c===void 0||this.C(o,void 0,l,c)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(n=>{var o;return(o=n.hostUpdate)==null?void 0:o.call(n)}),this.update(t)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}},Qe;E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[B("elementProperties")]=new Map,E[B("finalized")]=new Map,$e==null||$e({ReactiveElement:E}),((Qe=C.reactiveElementVersions)!=null?Qe:C.reactiveElementVersions=[]).push("2.1.1");var z=globalThis,re=z.trustedTypes,We=re?re.createPolicy("lit-html",{createHTML:r=>r}):void 0,Se="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,we="?"+A,rs=`<${we}>`,O=document,K=()=>O.createComment(""),J=r=>r===null||typeof r!="object"&&typeof r!="function",Ce=Array.isArray,ot=r=>Ce(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ee=`[
|
|
3
|
+
\f\r]`,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,et=/-->/g,tt=/>/g,x=RegExp(`>|${Ee}(?:([^\\s"'>=/]+)(${Ee}*=${Ee}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),st=/'/g,rt=/"/g,at=/^(?:script|style|textarea|title)$/i,ke=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ce=ke(1),lt=ke(2),ct=ke(3),v=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),it=new WeakMap,M=O.createTreeWalker(O,129);function dt(r,e){if(!Ce(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return We!==void 0?We.createHTML(e):e}var ht=(r,e)=>{let t=r.length-1,s=[],i,n=e===2?"<svg>":e===3?"<math>":"",o=F;for(let l=0;l<t;l++){let a=r[l],c,d,h=-1,_=0;for(;_<a.length&&(o.lastIndex=_,d=o.exec(a),d!==null);)_=o.lastIndex,o===F?d[1]==="!--"?o=et:d[1]!==void 0?o=tt:d[2]!==void 0?(at.test(d[2])&&(i=RegExp("</"+d[2],"g")),o=x):d[3]!==void 0&&(o=x):o===x?d[0]===">"?(o=i!=null?i:F,h=-1):d[1]===void 0?h=-2:(h=o.lastIndex-d[2].length,c=d[1],o=d[3]===void 0?x:d[3]==='"'?rt:st):o===rt||o===st?o=x:o===et||o===tt?o=F:(o=x,i=void 0);let g=o===x&&r[l+1].startsWith("/>")?" ":"";n+=o===F?a+rs:h>=0?(s.push(c),a.slice(0,h)+Se+a.slice(h)+A+g):a+A+(h===-2?l:g)}return[dt(r,n+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),s]},G=class r{constructor({strings:e,_$litType$:t},s){let i;this.parts=[];let n=0,o=0,l=e.length-1,a=this.parts,[c,d]=ht(e,t);if(this.el=r.createElement(c,s),M.currentNode=this.el.content,t===2||t===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=M.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(Se)){let _=d[o++],g=i.getAttribute(h).split(A),T=/([.?@])?(.*)/.exec(_);a.push({type:1,index:n,name:T[2],strings:g,ctor:T[1]==="."?ne:T[1]==="?"?oe:T[1]==="@"?ae:P}),i.removeAttribute(h)}else h.startsWith(A)&&(a.push({type:6,index:n}),i.removeAttribute(h));if(at.test(i.tagName)){let h=i.textContent.split(A),_=h.length-1;if(_>0){i.textContent=re?re.emptyScript:"";for(let g=0;g<_;g++)i.append(h[g],K()),M.nextNode(),a.push({type:2,index:++n});i.append(h[_],K())}}}else if(i.nodeType===8)if(i.data===we)a.push({type:2,index:n});else{let h=-1;for(;(h=i.data.indexOf(A,h+1))!==-1;)a.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(e,t){let s=O.createElement("template");return s.innerHTML=e,s}};function V(r,e,t=r,s){var o,l,a;if(e===v)return e;let i=s!==void 0?(o=t._$Co)==null?void 0:o[s]:t._$Cl,n=J(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==n&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),n===void 0?i=void 0:(i=new n(r),i._$AT(r,t,s)),s!==void 0?((a=t._$Co)!=null?a:t._$Co=[])[s]=i:t._$Cl=i),i!==void 0&&(e=V(r,i._$AS(r,e.values),i,s)),e}var ie=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var c;let{el:{content:t},parts:s}=this._$AD,i=((c=e==null?void 0:e.creationScope)!=null?c:O).importNode(t,!0);M.currentNode=i;let n=M.nextNode(),o=0,l=0,a=s[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new D(n,n.nextSibling,this,e):a.type===1?d=new a.ctor(n,a.name,a.strings,this,e):a.type===6&&(d=new le(n,this,e)),this._$AV.push(d),a=s[++l]}o!==(a==null?void 0:a.index)&&(n=M.nextNode(),o++)}return M.currentNode=O,i}p(e){let t=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}},D=class r{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,s,i){var n;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=i,this._$Cv=(n=i==null?void 0:i.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=V(this,e,t),J(e)?e===f||e==null||e===""?(this._$AH!==f&&this._$AR(),this._$AH=f):e!==this._$AH&&e!==v&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ot(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==f&&J(this._$AH)?this._$AA.nextSibling.data=e:this.T(O.createTextNode(e)),this._$AH=e}$(e){var n;let{values:t,_$litType$:s}=e,i=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=G.createElement(dt(s.h,s.h[0]),this.options)),s);if(((n=this._$AH)==null?void 0:n._$AD)===i)this._$AH.p(t);else{let o=new ie(i,this),l=o.u(this.options);o.p(t),this.T(l),this._$AH=o}}_$AC(e){let t=it.get(e.strings);return t===void 0&&it.set(e.strings,t=new G(e)),t}k(e){Ce(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,s,i=0;for(let n of e)i===t.length?t.push(s=new r(this.O(K()),this.O(K()),this,this.options)):s=t[i],s._$AI(n),i++;i<t.length&&(this._$AR(s&&s._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,t);e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,s,i,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}_$AI(e,t=this,s,i){let n=this.strings,o=!1;if(n===void 0)e=V(this,e,t,0),o=!J(e)||e!==this._$AH&&e!==v,o&&(this._$AH=e);else{let l=e,a,c;for(e=n[0],a=0;a<n.length-1;a++)c=V(this,l[s+a],t,a),c===v&&(c=this._$AH[a]),o||(o=!J(c)||c!==this._$AH[a]),c===f?e=f:e!==f&&(e+=(c!=null?c:"")+n[a+1]),this._$AH[a]=c}o&&!i&&this.j(e)}j(e){e===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}},ne=class extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===f?void 0:e}},oe=class extends P{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==f)}},ae=class extends P{constructor(e,t,s,i,n){super(e,t,s,i,n),this.type=5}_$AI(e,t=this){var o;if((e=(o=V(this,e,t,0))!=null?o:f)===v)return;let s=this._$AH,i=e===f&&s!==f||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,n=e!==f&&(s===f||i);i&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,s;typeof this._$AH=="function"?this._$AH.call((s=(t=this.options)==null?void 0:t.host)!=null?s:this.element,e):this._$AH.handleEvent(e)}},le=class{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){V(this,e)}},ut={M:Se,P:A,A:we,C:1,L:ht,R:ie,D:ot,V,I:D,H:P,N:oe,U:ae,B:ne,F:le},Ae=z.litHtmlPolyfillSupport,nt;Ae==null||Ae(G,D),((nt=z.litHtmlVersions)!=null?nt:z.litHtmlVersions=[]).push("3.3.1");var pt=(r,e,t)=>{var n,o;let s=(n=t==null?void 0:t.renderBefore)!=null?n:e,i=s._$litPart$;if(i===void 0){let l=(o=t==null?void 0:t.renderBefore)!=null?o:null;s._$litPart$=i=new D(e.insertBefore(K(),l),l,void 0,t!=null?t:{})}return i._$AI(r),i};var R=globalThis,$=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,s;let e=super.createRenderRoot();return(s=(t=this.renderOptions).renderBefore)!=null||(t.renderBefore=e.firstChild),e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=pt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return v}},ft;$._$litElement$=!0,$.finalized=!0,(ft=R.litElementHydrateSupport)==null||ft.call(R,{LitElement:$});var Te=R.litElementPolyfillSupport;Te==null||Te({LitElement:$});var mt;((mt=R.litElementVersions)!=null?mt:R.litElementVersions=[]).push("4.2.1");var is={attribute:!0,type:String,converter:j,reflect:!1,hasChanged:se},ns=(r=is,e,t)=>{let{kind:s,metadata:i}=t,n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),n.set(t.name,r),s==="accessor"){let{name:o}=t;return{set(l){let a=e.get.call(this);e.set.call(this,l),this.requestUpdate(o,a,r)},init(l){return l!==void 0&&this.C(o,void 0,r,l),l}}}if(s==="setter"){let{name:o}=t;return function(l){let a=this[o];e.call(this,l),this.requestUpdate(o,a,r)}}throw Error("Unsupported decorator location: "+s)};function p(r){return(e,t)=>typeof t=="object"?ns(r,e,t):((s,i,n)=>{let o=i.hasOwnProperty(n);return i.constructor.createProperty(n,s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,e,t)}var U=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function gt(r,e){return(t,s,i)=>{let n=o=>{var l,a;return(a=(l=o.renderRoot)==null?void 0:l.querySelector(r))!=null?a:null};if(e){let{get:o,set:l}=typeof s=="object"?t:i!=null?i:(()=>{let a=Symbol();return{get(){return this[a]},set(c){this[a]=c}}})();return U(t,s,{get(){let a=o.call(this);return a===void 0&&(a=n(this),(a!==null||this.hasUpdated)&&l.call(this,a)),a}})}return U(t,s,{get(){return n(this)}})}}var S={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},de=r=>(...e)=>({_$litDirective$:r,values:e}),I=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var yt=de(class extends I{constructor(r){var e;if(super(r),r.type!==S.ATTRIBUTE||r.name!=="class"||((e=r.strings)==null?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var s,i;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!((s=this.nt)!=null&&s.has(n))&&this.st.add(n);return this.render(e)}let t=r.element.classList;for(let n of this.st)n in e||(t.remove(n),this.st.delete(n));for(let n in e){let o=!!e[n];o===this.st.has(n)||(i=this.nt)!=null&&i.has(n)||(o?(t.add(n),this.st.add(n)):(t.remove(n),this.st.delete(n)))}return v}});var vt=r=>r!=null?r:f;var{I:Br}=ut;var _t=r=>r.strings===void 0;var os={},bt=(r,e=os)=>r._$AH=e;var xe=de(class extends I{constructor(r){if(super(r),r.type!==S.PROPERTY&&r.type!==S.ATTRIBUTE&&r.type!==S.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_t(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(r,[e]){if(e===v||e===f)return e;let t=r.element,s=r.name;if(r.type===S.PROPERTY){if(e===t[s])return v}else if(r.type===S.BOOLEAN_ATTRIBUTE){if(!!e===t.hasAttribute(s))return v}else if(r.type===S.ATTRIBUTE&&t.getAttribute(s)===e+"")return v;return bt(r),e}});var $t={};var X,L=class extends ${constructor(){super();je(this,X,!1);this.initialReflectedProperties=new Map;this.customStates={set:(t,s)=>{var i;(i=this.internals)!=null&&i.states&&(s?this.internals.states.add(t):this.internals.states.delete(t))},has:t=>{var s;return(s=this.internals)!=null&&s.states?this.internals.states.has(t):!1}};try{this.internals=this.attachInternals()}catch(s){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[s,i]of t.elementProperties)i.default==="inherit"&&i.initial!==void 0&&typeof s=="string"&&this.customStates.set(`initial-${s}-${i.initial}`,!0)}static get styles(){let t=Array.isArray(this.css)?this.css:this.css?[this.css]:[];return[$t,...t].map(s=>typeof s=="string"?te(s):s)}attributeChangedCallback(t,s,i){Be(this,X)||(this.constructor.elementProperties.forEach((n,o)=>{n.reflect&&this[o]!=null&&this.initialReflectedProperties.set(o,this[o])}),Fe(this,X,!0)),super.attributeChangedCallback(t,s,i)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach((s,i)=>{t.has(i)&&this[i]==null&&(this[i]=s)})}relayNativeEvent(t,s){t.stopImmediatePropagation(),this.dispatchEvent(new t.constructor(t.type,{...t,...s}))}};X=new WeakMap,u([p()],L.prototype,"dir",2),u([p()],L.prototype,"lang",2);var Et=()=>({observedAttributes:["custom-error"],checkValidity(r){let e={message:"",isValid:!0,invalidKeys:[]};return r.customError&&(e.message=r.customError,e.isValid=!1,e.invalidKeys=["customError"]),e}});var he=class extends Event{constructor(){super("w-invalid",{bubbles:!0,cancelable:!1,composed:!0})}};var b=class extends L{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 he))};this.handleInteraction=t=>{var i;let s=this.emittedEvents;s.includes(t.type)||s.push(t.type),s.length===((i=this.assumeInteractionOn)==null?void 0:i.length)&&(this.hasInteracted=!0)};this.addEventListener("invalid",this.emitInvalid)}static get validators(){return[Et()]}static get observedAttributes(){let t=new Set(super.observedAttributes||[]);for(let s of this.validators)if(s.observedAttributes)for(let i of s.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(!!1&&t.has("customError")&&(this.customError||(this.customError=null),this.setCustomValidity(this.customError||"")),t.has("value")||t.has("disabled")){let s=this.value;if(Array.isArray(s)){if(this.name){let i=new FormData;for(let n of s)i.append(this.name,n);this.setValue(i,i)}}else this.setValue(s,s)}t.has("disabled")&&(this.customStates.set("disabled",this.disabled),(this.hasAttribute("disabled")||!!1&&!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 s=t[0],i=t[1],n=t[2];n||(n=this.validationTarget),this.internals.setValidity(s,i,n||void 0),this.requestUpdate("validity"),this.setCustomStates()}setCustomStates(){let t=!!this.required,s=this.internals.validity.valid,i=this.hasInteracted;this.customStates.set("required",t),this.customStates.set("optional",!t),this.customStates.set("invalid",!s),this.customStates.set("valid",s),this.customStates.set("user-invalid",!s&&i),this.customStates.set("user-valid",s&&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,s){this.value=t,s==="restore"&&this.resetValidity(),this.updateValidity()}setValue(...t){let[s,i]=t;this.internals.setFormValue(s,i)}get allValidators(){let t=this.constructor.validators||[],s=this.validators||[];return[...t,...s]}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 s={customError:!!this.customError},i=this.validationTarget||this.input||void 0,n="";for(let o of t){let{isValid:l,message:a,invalidKeys:c}=o.checkValidity(this);l||(n||(n=a),(c==null?void 0:c.length)>=0&&c.forEach(d=>s[d]=!0))}n||(n=this.validationMessage),this.setValidity(s,n,i)}};b.formAssociated=!0,u([p({reflect:!0})],b.prototype,"name",2),u([p({type:Boolean})],b.prototype,"disabled",2),u([p({state:!0,attribute:!1})],b.prototype,"valueHasChanged",2),u([p({state:!0,attribute:!1})],b.prototype,"hasInteracted",2),u([p({attribute:"custom-error",reflect:!0})],b.prototype,"customError",2),u([p({attribute:!1,state:!0,type:Object})],b.prototype,"validity",1);var At=(r={})=>{let{validationElement:e,validationProperty:t}=r;e||(e=Object.assign(document.createElement("input"),{required:!0})),t||(t="value");let s={observedAttributes:["required"],message:e.validationMessage,checkValidity(i){var c;let n={message:"",isValid:!0,invalidKeys:[]};return((c=i.required)!=null?c:i.hasAttribute("required"))&&!i[t]&&(n.message=typeof s.message=="function"?s.message(i):s.message||"",n.isValid=!1,n.invalidKeys.push("valueMissing")),n}};return s};var ue=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=>{if(e.nodeType===Node.TEXT_NODE&&e.textContent.trim()!=="")return!0;if(e.nodeType===Node.ELEMENT_NODE){let t=e;if(t.tagName.toLowerCase()==="w-visually-hidden")return!1;if(!t.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(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function pe(r,e){let t={waitUntilFirstUpdate:!1,...e};return(s,i)=>{let{update:n}=s,o=Array.isArray(r)?r:[r];s.update=function(l){o.forEach(a=>{let c=a;if(l.has(c)){let d=l.get(c),h=this[c];d!==h&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[i](d,h)}}),n.call(this,l)}}}var wt=Symbol.for(""),ls=r=>{if((r==null?void 0:r.r)===wt)return r==null?void 0:r._$litStatic$},Ct=r=>({_$litStatic$:r,r:wt});var St=new Map,Oe=r=>(e,...t)=>{let s=t.length,i,n,o=[],l=[],a,c=0,d=!1;for(;c<s;){for(a=e[c];c<s&&(n=t[c],(i=ls(n))!==void 0);)a+=i+e[++c],d=!0;c!==s&&l.push(n),o.push(a),c++}if(c===s&&o.push(e[s]),d){let h=o.join("$$lit$$");(e=St.get(h))===void 0&&(o.raw=o,St.set(h,e=o)),t=l}return r(e,...t)},kt=Oe(ce),yi=Oe(lt),vi=Oe(ct);var Rt=Xt(Ot(),1);var k=r=>typeof r=="string",ys=r=>typeof r=="function",Vt=new Map,Ut="en";function Ue(r){return[...Array.isArray(r)?r:[r],Ut]}function Le(r,e,t){let s=Ue(r);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 me(()=>ge("date",s,t),()=>new Intl.DateTimeFormat(s,i)).format(k(e)?new Date(e):e)}function vs(r,e,t){let s;if(t||(t="default"),typeof t=="string")switch(s={second:"numeric",minute:"numeric",hour:"numeric"},t){case"full":case"long":s.timeZoneName="short";break;case"short":delete s.second}else s=t;return Le(r,e,s)}function Ve(r,e,t){let s=Ue(r);return me(()=>ge("number",s,t),()=>new Intl.NumberFormat(s,t)).format(e)}function Pt(r,e,t,{offset:s=0,...i}){var l,a;let n=Ue(r),o=e?me(()=>ge("plural-ordinal",n),()=>new Intl.PluralRules(n,{type:"ordinal"})):me(()=>ge("plural-cardinal",n),()=>new Intl.PluralRules(n,{type:"cardinal"}));return(a=(l=i[t])!=null?l:i[o.select(t-s)])!=null?a:i.other}function me(r,e){let t=r(),s=Vt.get(t);return s||(s=e(),Vt.set(t,s)),s}function ge(r,e,t){let s=e.join("-");return`${r}-${s}-${JSON.stringify(t)}`}var Lt=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Nt="%__lingui_octothorpe__%",_s=(r,e,t={})=>{let s=e||r,i=o=>typeof o=="object"?o:t[o],n=(o,l)=>{let a=Object.keys(t).length?i("number"):void 0,c=Ve(s,o,a);return l.replace(new RegExp(Nt,"g"),c)};return{plural:(o,l)=>{let{offset:a=0}=l,c=Pt(s,!1,o,l);return n(o-a,c)},selectordinal:(o,l)=>{let{offset:a=0}=l,c=Pt(s,!0,o,l);return n(o-a,c)},select:bs,number:(o,l)=>Ve(s,o,i(l)||{style:l}),date:(o,l)=>Le(s,o,i(l)||l),time:(o,l)=>vs(s,o,i(l)||l)}},bs=(r,e)=>{var t;return(t=e[r])!=null?t:e.other};function $s(r,e,t){return(s={},i)=>{let n=_s(e,t,i),o=(a,c=!1)=>Array.isArray(a)?a.reduce((d,h)=>{if(h==="#"&&c)return d+Nt;if(k(h))return d+h;let[_,g,T]=h,ye={};g==="plural"||g==="selectordinal"||g==="select"?Object.entries(T).forEach(([ve,jt])=>{ye[ve]=o(jt,g==="plural"||g==="selectordinal")}):ye=T;let Y;if(g){let ve=n[g];Y=ve(s[_],ye)}else Y=s[_];return Y==null?d:d+Y},""):a,l=o(r);return k(l)&&Lt.test(l)?(0,Rt.unraw)(l):k(l)?l:l?String(l):""}}var Es=Object.defineProperty,As=(r,e,t)=>e in r?Es(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ss=(r,e,t)=>(As(r,typeof e!="symbol"?e+"":e,t),t),Pe=class{constructor(){Ss(this,"_events",{})}on(e,t){var i;var s;return(i=(s=this._events)[e])!=null||(s[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){let s=this._getListeners(e);if(!s)return;let i=s.indexOf(t);~i&&s.splice(i,1)}emit(e,...t){let s=this._getListeners(e);s&&s.map(i=>i.apply(this,t))}_getListeners(e){let t=this._events[e];return Array.isArray(t)?t:!1}},ws=Object.defineProperty,Cs=(r,e,t)=>e in r?ws(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,H=(r,e,t)=>(Cs(r,typeof e!="symbol"?e+"":e,t),t),Re=class extends Pe{constructor(e){var t;super(),H(this,"_locale",""),H(this,"_locales"),H(this,"_localeData",{}),H(this,"_messages",{}),H(this,"_missing"),H(this,"_messageCompiler"),H(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:Ut,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 s=this._localeData[e];s?Object.assign(s,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(s=>this._loadLocaleData(s,e[s])),this.emit("change")}_load(e,t){let s=this._messages[e];s?Object.assign(s,t):this._messages[e]=t}load(e,t){typeof e=="string"&&typeof t=="object"?this._load(e,t):Object.entries(e).forEach(([s,i])=>this._load(s,i)),this.emit("change")}loadAndActivate({locale:e,locales:t,messages:s}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=s,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,s){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=s==null?void 0:s.message;e||(e=""),k(e)||(t=e.values||t,i=e.message,e=e.id);let n=this.messages[e],o=n===void 0,l=this._missing;if(l&&o)return ys(l)?l(this._locale,e):l;o&&this.emit("missing",{id:e,locale:this._locale});let a=n||i||e;return k(a)&&(this._messageCompiler?a=this._messageCompiler(a):console.warn(`Uncompiled message detected! Message:
|
|
5
|
+
|
|
6
|
+
> ${a}
|
|
7
|
+
|
|
8
|
+
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
|
|
9
|
+
ICU features such as interpolation and plurals will not work properly for that message.
|
|
10
|
+
|
|
11
|
+
Please compile your catalog first.
|
|
12
|
+
`)),k(a)&&Lt.test(a)?JSON.parse(`"${a}"`):k(a)?a:$s(a,this._locale,this._locales)(t,s==null?void 0:s.formats)}date(e,t){return Le(this._locales||this._locale,e,t)}number(e,t){return Ve(this._locales||this._locale,e,t)}};function ks(r={}){return new Re(r)}var Z=ks();var Ts=JSON.parse('{"icon.title.check":["Sjekkmerke"]}'),xs=JSON.parse('{"icon.title.check":["Checkmark"]}'),Ms=JSON.parse('{"icon.title.check":["Valintamerkki"]}'),Os=JSON.parse('{"icon.title.check":["Flueben"]}'),Vs=JSON.parse('{"icon.title.check":["Bock"]}'),Ht=["en","nb","fi","da","sv"],Dt="en",Ps=()=>{var r;let e;switch((r=process==null?void 0:process.env)==null?void 0:r.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},It=()=>{var r;let e=(r=document==null?void 0:document.location)==null?void 0:r.hostname;return e!=null&&e.includes("finn")?"nb":e.includes("tori")?"fi":e.includes("blocket")?"sv":e.includes("dba")?"da":Dt},Ne=r=>Ht.find(e=>r===e||r.toLowerCase().includes(e))||It();function Rs(){var r;if(typeof window=="undefined"){let e=Ps();return Ne(e)}try{let e=(r=document==null?void 0:document.documentElement)==null?void 0:r.lang,t=It();return Ht.includes(e)?Ne(e!=null?e:t):(console.warn("Unsupported locale set in html lang tag, falling back to detection by hostname"),Ne(t))}catch(e){return console.warn("could not detect locale, falling back to source locale",e),Dt}}var Us=(r,e,t,s,i,n)=>r==="nb"?t:r==="fi"?s:r==="da"?i:r==="sv"?n:e,Ls=(r,e,t,s,i)=>{let n=Rs(),o=Us(n,r,e,t,s,i);Z.load(n,o),Z.activate(n)};Ls(xs,Ts,Ms,Os,Vs);var Ns=class extends ${render(){let r=Z.t({message:"Checkmark",id:"icon.title.check",comment:"Title for check icon"});return kt`<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">${Ct(`<title>${r}</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",Ns);var qt={};var Bt,m=class extends b{constructor(){super(...arguments);this.hasSlotController=new ue(this,"hint");this.title="";this.name="";this._value=(Bt=this.getAttribute("value"))!=null?Bt: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=[At({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"),s=this.hint?!0:!!t,i=!this.checked&&this.indeterminate;return ce`
|
|
13
|
+
<label part="base">
|
|
14
|
+
<span part="control">
|
|
15
|
+
<input
|
|
16
|
+
class="input"
|
|
17
|
+
type="checkbox"
|
|
18
|
+
title=${this.title}
|
|
19
|
+
name=${this.name}
|
|
20
|
+
value=${vt(this._value)}
|
|
21
|
+
.indeterminate=${xe(this.indeterminate)}
|
|
22
|
+
.checked=${xe(this.checked)}
|
|
23
|
+
.disabled=${this.disabled}
|
|
24
|
+
.required=${this.required}
|
|
25
|
+
aria-checked=${this.checked?"true":"false"}
|
|
26
|
+
aria-describedby="hint"
|
|
27
|
+
@click=${this.handleClick} />
|
|
28
|
+
${i?"\u2013":""}
|
|
29
|
+
</span>
|
|
30
|
+
|
|
31
|
+
<slot part="label"></slot>
|
|
32
|
+
</label>
|
|
33
|
+
|
|
34
|
+
<slot id="hint" part="hint" name="hint" aria-hidden=${s?"false":"true"} class="${yt({"has-slotted":s})}">
|
|
35
|
+
${this.hint}
|
|
36
|
+
</slot>
|
|
37
|
+
`}};m.css=[qt],m.shadowRootOptions={...b.shadowRootOptions,delegatesFocus:!0},u([gt('input[type="checkbox"]')],m.prototype,"input",2),u([p()],m.prototype,"title",2),u([p({reflect:!0})],m.prototype,"name",2),u([p({reflect:!0})],m.prototype,"value",1),u([p({reflect:!0})],m.prototype,"size",2),u([p({type:Boolean})],m.prototype,"disabled",2),u([p({type:Boolean,reflect:!0})],m.prototype,"indeterminate",2),u([p({type:Boolean,attribute:!1})],m.prototype,"checked",2),u([p({type:Boolean,reflect:!0,attribute:"checked"})],m.prototype,"defaultChecked",2),u([p({reflect:!0})],m.prototype,"form",2),u([p({type:Boolean,reflect:!0})],m.prototype,"required",2),u([p()],m.prototype,"hint",2),u([pe("defaultChecked")],m.prototype,"handleDefaultCheckedChange",1),u([pe(["checked","indeterminate"])],m.prototype,"handleStateChange",1),u([pe("disabled")],m.prototype,"handleDisabledChange",1);customElements.get("w-checkbox")||customElements.define("w-checkbox",m);
|
|
38
|
+
/*! Bundled license information:
|
|
39
|
+
|
|
40
|
+
@lit/reactive-element/css-tag.js:
|
|
41
|
+
(**
|
|
42
|
+
* @license
|
|
43
|
+
* Copyright 2019 Google LLC
|
|
44
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
45
|
+
*)
|
|
46
|
+
|
|
47
|
+
@lit/reactive-element/reactive-element.js:
|
|
48
|
+
(**
|
|
49
|
+
* @license
|
|
50
|
+
* Copyright 2017 Google LLC
|
|
51
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
|
+
*)
|
|
53
|
+
|
|
54
|
+
lit-html/lit-html.js:
|
|
55
|
+
(**
|
|
56
|
+
* @license
|
|
57
|
+
* Copyright 2017 Google LLC
|
|
58
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
59
|
+
*)
|
|
60
|
+
|
|
61
|
+
lit-element/lit-element.js:
|
|
62
|
+
(**
|
|
63
|
+
* @license
|
|
64
|
+
* Copyright 2017 Google LLC
|
|
65
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
66
|
+
*)
|
|
67
|
+
|
|
68
|
+
lit-html/is-server.js:
|
|
69
|
+
(**
|
|
70
|
+
* @license
|
|
71
|
+
* Copyright 2022 Google LLC
|
|
72
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
+
*)
|
|
74
|
+
|
|
75
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
76
|
+
(**
|
|
77
|
+
* @license
|
|
78
|
+
* Copyright 2017 Google LLC
|
|
79
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
|
+
*)
|
|
81
|
+
|
|
82
|
+
@lit/reactive-element/decorators/property.js:
|
|
83
|
+
(**
|
|
84
|
+
* @license
|
|
85
|
+
* Copyright 2017 Google LLC
|
|
86
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
87
|
+
*)
|
|
88
|
+
|
|
89
|
+
@lit/reactive-element/decorators/state.js:
|
|
90
|
+
(**
|
|
91
|
+
* @license
|
|
92
|
+
* Copyright 2017 Google LLC
|
|
93
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
94
|
+
*)
|
|
95
|
+
|
|
96
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
97
|
+
(**
|
|
98
|
+
* @license
|
|
99
|
+
* Copyright 2017 Google LLC
|
|
100
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
|
+
*)
|
|
102
|
+
|
|
103
|
+
@lit/reactive-element/decorators/base.js:
|
|
104
|
+
(**
|
|
105
|
+
* @license
|
|
106
|
+
* Copyright 2017 Google LLC
|
|
107
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
108
|
+
*)
|
|
109
|
+
|
|
110
|
+
@lit/reactive-element/decorators/query.js:
|
|
111
|
+
(**
|
|
112
|
+
* @license
|
|
113
|
+
* Copyright 2017 Google LLC
|
|
114
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
|
+
*)
|
|
116
|
+
|
|
117
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
118
|
+
(**
|
|
119
|
+
* @license
|
|
120
|
+
* Copyright 2017 Google LLC
|
|
121
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
+
*)
|
|
123
|
+
|
|
124
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
125
|
+
(**
|
|
126
|
+
* @license
|
|
127
|
+
* Copyright 2017 Google LLC
|
|
128
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
|
+
*)
|
|
130
|
+
|
|
131
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
132
|
+
(**
|
|
133
|
+
* @license
|
|
134
|
+
* Copyright 2021 Google LLC
|
|
135
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
136
|
+
*)
|
|
137
|
+
|
|
138
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
139
|
+
(**
|
|
140
|
+
* @license
|
|
141
|
+
* Copyright 2017 Google LLC
|
|
142
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
143
|
+
*)
|
|
144
|
+
|
|
145
|
+
lit-html/directive.js:
|
|
146
|
+
(**
|
|
147
|
+
* @license
|
|
148
|
+
* Copyright 2017 Google LLC
|
|
149
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
150
|
+
*)
|
|
151
|
+
|
|
152
|
+
lit-html/directives/class-map.js:
|
|
153
|
+
(**
|
|
154
|
+
* @license
|
|
155
|
+
* Copyright 2018 Google LLC
|
|
156
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
157
|
+
*)
|
|
158
|
+
|
|
159
|
+
lit-html/directives/if-defined.js:
|
|
160
|
+
(**
|
|
161
|
+
* @license
|
|
162
|
+
* Copyright 2018 Google LLC
|
|
163
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
164
|
+
*)
|
|
165
|
+
|
|
166
|
+
lit-html/directive-helpers.js:
|
|
167
|
+
(**
|
|
168
|
+
* @license
|
|
169
|
+
* Copyright 2020 Google LLC
|
|
170
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
|
+
*)
|
|
172
|
+
|
|
173
|
+
lit-html/directives/live.js:
|
|
174
|
+
(**
|
|
175
|
+
* @license
|
|
176
|
+
* Copyright 2020 Google LLC
|
|
177
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
178
|
+
*)
|
|
179
|
+
|
|
180
|
+
lit-html/static.js:
|
|
181
|
+
(**
|
|
182
|
+
* @license
|
|
183
|
+
* Copyright 2020 Google LLC
|
|
184
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
185
|
+
*)
|
|
186
|
+
*/
|
|
187
|
+
//# sourceMappingURL=index.js.map
|