@nysds/nys-datepicker 1.21.1 → 1.22.1

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.
@@ -1,5 +1,5 @@
1
- import { LitElement as me, unsafeCSS as je, html as A } from "lit";
2
- import { property as g, state as ze } from "lit/decorators.js";
1
+ import { LitElement as De, unsafeCSS as Ke, html as A } from "lit";
2
+ import { property as g, state as Ve } from "lit/decorators.js";
3
3
  import { ifDefined as D } from "lit/directives/if-defined.js";
4
4
  import "@nysds/nys-label";
5
5
  import "@nysds/nys-errormessage";
@@ -10,36 +10,46 @@ import "@nysds/nys-button";
10
10
  * █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
11
11
  * █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
12
12
  *
13
- * Datepicker Component v1.21.1
13
+ * Datepicker Component v1.22.1
14
14
  * Part of the New York State Design System
15
15
  * Repository: https://github.com/its-hcd/nysds
16
16
  * License: MIT
17
17
  */
18
18
  /*!
19
- * New York State Design System v1.21.1
19
+ * New York State Design System v1.22.1
20
20
  * Description: A design system for New York State's digital products.
21
21
  * Repository: https://github.com/its-hcd/nysds
22
22
  * License: MIT
23
23
  */
24
- let Ke = 0;
25
- function Ge(t) {
26
- return `${t}-${Date.now()}-${Ke++}`;
24
+ let Ge = 0;
25
+ function Qe(t) {
26
+ return `${t}-${Date.now()}-${Ge++}`;
27
27
  }
28
- const Qe = (t) => {
28
+ function ne(t, e, a) {
29
+ t.dispatchEvent(
30
+ new CustomEvent(e, { detail: a, bubbles: !0, composed: !0 })
31
+ );
32
+ }
33
+ function oe(t, e) {
34
+ t.dispatchEvent(
35
+ new Event(`nys-${e}`, { bubbles: !0, composed: !0 })
36
+ );
37
+ }
38
+ const Xe = (t) => {
29
39
  class e extends t {
30
40
  get idPrefix() {
31
41
  return this.localName || "nys-element";
32
42
  }
33
43
  ensureId() {
34
- this.id || (this.id = Ge(this.idPrefix));
44
+ this.id || (this.id = Qe(this.idPrefix));
35
45
  }
36
46
  connectedCallback() {
37
47
  super.connectedCallback(), this.ensureId();
38
48
  }
39
49
  }
40
50
  return e;
41
- }, Xe = (t) => {
42
- class e extends Qe(t) {
51
+ }, Je = (t) => {
52
+ class e extends Xe(t) {
43
53
  constructor() {
44
54
  super(...arguments), this.__internals = null;
45
55
  }
@@ -56,14 +66,14 @@ const Qe = (t) => {
56
66
  get defaultRole() {
57
67
  return null;
58
68
  }
59
- setHostAria(s, r) {
69
+ setHostAria(s, i) {
60
70
  const n = this.internals;
61
71
  if (n && s in n) {
62
- n[s] = r;
72
+ n[s] = i;
63
73
  return;
64
74
  }
65
- const i = Je(s);
66
- r === null ? this.removeAttribute(i) : this.setAttribute(i, r);
75
+ const r = Ze(s);
76
+ i === null ? this.removeAttribute(r) : this.setAttribute(r, i);
67
77
  }
68
78
  reflectDefaultSemantics() {
69
79
  const s = this.defaultRole;
@@ -75,21 +85,33 @@ const Qe = (t) => {
75
85
  }
76
86
  return e;
77
87
  };
78
- function Je(t) {
88
+ function Ze(t) {
79
89
  if (t === "role") return "role";
80
90
  const e = t.replace(/^aria/, "");
81
91
  return "aria-" + e.charAt(0).toLowerCase() + e.slice(1);
82
92
  }
83
- const Ve = (t) => {
84
- const e = class extends Xe(t) {
85
- setFormValue(r) {
86
- this.internals?.setFormValue(r ?? null);
93
+ const et = (t) => {
94
+ const e = class extends Je(t) {
95
+ constructor() {
96
+ super(...arguments), this.__internalValidationMessage = "";
97
+ }
98
+ get internalValidationMessage() {
99
+ return this.__internalValidationMessage;
100
+ }
101
+ set internalValidationMessage(i) {
102
+ i !== this.__internalValidationMessage && (this.__internalValidationMessage = i, this.requestUpdate("internalValidationMessage"));
103
+ }
104
+ resolvedErrorMessage() {
105
+ return this.errorMessage || this.internalValidationMessage;
87
106
  }
88
- setValidityFromState(r, n, i) {
107
+ setFormValue(i) {
108
+ this.internals?.setFormValue(i ?? null);
109
+ }
110
+ setValidityFromState(i, n, r) {
89
111
  const o = this.internals;
90
112
  if (!o) return;
91
- const c = Object.values(r).some(Boolean);
92
- c ? o.setValidity(r, n ?? "Invalid value", i) : o.setValidity({}), this.setHostAria("ariaInvalid", c ? "true" : "false");
113
+ const l = Object.values(i).some(Boolean);
114
+ l ? o.setValidity(i, n ?? "Invalid value", r) : o.setValidity({}), this.setHostAria("ariaInvalid", l ? "true" : "false");
93
115
  }
94
116
  clearValidity() {
95
117
  this.internals?.setValidity({}), this.setHostAria("ariaInvalid", "false");
@@ -101,11 +123,11 @@ const Ve = (t) => {
101
123
  return this.internals?.reportValidity() ?? !0;
102
124
  }
103
125
  formResetCallback() {
104
- this.clearValidity();
126
+ this.internalValidationMessage = "", this.clearValidity();
105
127
  }
106
128
  };
107
129
  return e.formAssociated = !0, e;
108
- }, Ze = /* @__PURE__ */ Ve(me), et = ':host{--_nys-datepicker-width: fit-content;--_nys-datepicker-width--input: var(--nys-form-width-md, 200px);--_nys-datepicker-gap: var(--nys-space-100, 8px);--_nys-datepicker-height: var(--nys-size-600, 48px);--_nys-datepicker-radius: var(--nys-radius-xl, 12px);--_nys-datepicker-color: var( --nys-color-text, var(--nys-color-neutral-900, #1b1b1b) );--_nys-datepicker-color--disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-space-sm: var(--nys-space-50, 4px);--_nys-datepicker-space-md: var(--nys-space-100, 8px);--_nys-datepicker-space-lg: var(--nys-space-150, 12px);--_nys-datepicker-border-width: var(--nys-border-width-sm, 1px);--_nys-datepicker-border-color: var(--nys-color-neutral-400, #909395);--_nys-datepicker-border-radius: var(--nys-radius-md, 4px);--_nys-datepicker-outline-color--hover: var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker-outline-color--focus: var(--nys-color-focus, #004dd1);--_nys-datepicker-font-size: var(--nys-font-size-ui-md, 16px);--_nys-datepicker-font-weight: var(--nys-font-weight-regular, 400);--_nys-datepicker-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-datepicker-letterspacing: var(--nys-font-letterspacing-ui-md, .044px);--_nys-datepicker-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-datepicker-text-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker-text-disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-background-color: var(--nys-color-ink-reverse, #ffffff);--_nys-datepicker-background-color--button--active: var( --nys-color-gray-100, #d0d0ce );--_nys-datepicker-padding--calendar: var(--nys-space-200, 16px);--_nys-datepicker-color--calendar--weekends: var( --nys-color-text-weaker, #797c7f );--_nys-datepicker-gap--calendar-row: var(--nys-space-2-px, 2px);--_nys-datepicker-font-size--date: var(--nys-font-size-ui-sm, 14px);--_nys-datepicker-background-color--date--hover: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--date--active: var( --nys-color-neutral-100, #d0d0ce );--_nys-datepicker-background-color--date--selected: var( --nys-color-info-weak, #e5effa );--_nys-datepicker-focus-ring--date: var(--nys-color-link, #004dd1);--_nys-datepicker-color--date: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--hover: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--selected: var(--nys-color-info, #004dd1);--_nys-datepicker-color--date--disabled: var( --nys-color-text-disabled, #bec0c1 );--_nys-datepicker-border-color--date--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-background-color--navigation--hover: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-background-color--navigation--pressed: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--navigation--disabled: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-color--navigation--hover: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--pressed: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-box-shadow-border--navigation: inset 0 0 0 1px var(--nys-color-neutral-900, #1b1b1b)}:host([width=lg]){--_nys-datepicker-width--input: var(--nys-form-width-lg, 384px)}:host([width=full]){--_nys-datepicker-width--input: 100%}:host([showError]){--_nys-datepicker-border-color: var(--nys-color-danger, #b52c2c)}:host([inverted]){--_nys-datepicker-outline-color--focus: var( --nys-color-focus-reverse, #7aa5e7 )}.nys-datepicker--container{position:relative;display:flex;flex-direction:column;gap:var(--_nys-datepicker-space-sm);font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);font-weight:var(--_nys-datepicker-font-weight);line-height:var(--_nys-datepicker-line-height);width:100%}.nys-datepicker--container .nys-datepicker--input-container{position:relative;width:var(--_nys-datepicker-width--input);display:flex;cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container.disabled #calendar-button{cursor:not-allowed;color:var(--_nys-datepicker-color--date--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input{cursor:text;text-align:start;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);flex:1;height:24px;outline:transparent solid 1px;border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-border-color);background-color:var(--_nys-datepicker-background-color);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);color:var(--_nys-datepicker-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:hover{outline-color:var(--_nys-datepicker-outline-color--hover);border-color:var(--_nys-datepicker-outline-color--hover)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:focus{outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:disabled{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);cursor:not-allowed;color:var(--_nys-datepicker-color--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input::-webkit-date-and-time-value{text-align:start}.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-inner-spin-button,.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-calendar-picker-indicator{display:none;appearance:none}.nys-datepicker--container .nys-datepicker--input-container #calendar-button{display:flex;align-items:center;justify-content:center;padding:var(--_nys-datepicker-space-sm);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-background-color);outline:transparent solid 1px;background-color:var(--_nys-datepicker-background-color);position:absolute;top:50%;right:var(--_nys-datepicker-space-sm);transform:translateY(-50%);cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:hover{outline-color:var(--_nys-datepicker-background-color--date--hover);border-color:var(--_nys-datepicker-background-color--date--hover);background:var(--_nys-datepicker-background-color--date--hover)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:active{outline-color:var(--_nys-datepicker-background-color--button--active);border-color:var(--_nys-datepicker-background-color--button--active);background:var(--_nys-datepicker-background-color--button--active)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:focus:not(:active):not(:disabled){outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .wc-datepicker--container{display:flex;width:fit-content}.nys-datepicker--container .wc-datepicker--container *{flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}wc-datepicker{display:none;padding:var(--_nys-datepicker-padding--calendar);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--nys-color-neutral-100, #d0d0ce);background-color:var(--_nys-datepicker-background-color);box-shadow:0 4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01));color:var(--_nys-datepicker-text-color);margin-bottom:3px}wc-datepicker.active{display:flex;flex-direction:column-reverse;position:absolute;z-index:1}wc-datepicker .position-top{box-shadow:0 -4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 -4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01))}wc-datepicker *,wc-datepicker *:before,wc-datepicker *:after{margin:0;box-sizing:border-box}.wc-datepicker{display:block;width:min-content;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size--date);font-weight:400;line-height:var(--_nys-datepicker-line-height);letter-spacing:var(--_nys-datepicker-letterspacing)}.wc-datepicker--disabled *:disabled{opacity:.5;cursor:not-allowed}.wc-datepicker--disabled .wc-datepicker__date{cursor:not-allowed;opacity:.5}.wc-datepicker--disabled .wc-datepicker__date:focus{outline:none;border-color:var(--_nys-datepicker-border-color--date--disabled);box-shadow:none}.wc-datepicker--disabled .wc-datepicker__date:hover:not(.wc-datepicker__date--selected){background-color:transparent}.wc-datepicker--disabled .wc-datepicker__date--selected:hover{color:var(--_nys-datepicker-background-color);background-color:var(--_nys-datepicker-background-color--date--selected)}.wc-datepicker--disabled #wc-month-dropdown-icon{color:var(--_nys-datepicker-color--date--disabled)}.wc-datepicker__header{display:flex;align-items:center;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__current-month{display:flex;flex-grow:1;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__month-select,.wc-datepicker__year-select{display:flex;align-items:center;font-size:var(--_nys-datepicker-font-size);font-family:var(--_nys-datepicker-font-family);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color);background-color:var(--_nys-datepicker-background-color);line-height:var(--_nys-datepicker-line-height)}.wc-datepicker__month-select:hover:not(:disabled),.wc-datepicker__year-select:hover:not(:disabled){border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover);background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:active:not(:disabled),.wc-datepicker__month-select[aria-pressed=true],.wc-datepicker__year-select:active:not(:disabled),.wc-datepicker__year-select[aria-pressed=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed);background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:disabled,.wc-datepicker__month-select[aria-disabled=true],.wc-datepicker__year-select:disabled,.wc-datepicker__year-select[aria-disabled=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);background-color:var(--_nys-datepicker-background-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker .month-wrapper{position:relative;width:135px;display:flex;align-items:center;align-self:stretch}.wc-datepicker .month-wrapper #wc-month-dropdown-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none}.wc-datepicker__month-select{width:100%;max-width:100%;flex-grow:1;cursor:pointer;appearance:none;text-overflow:ellipsis;padding-right:var(--nys-space-400, 32px)}.wc-datepicker__month-select>*{width:91px;height:24px}.wc-datepicker__year-select{border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;padding-right:var(--_nys-datepicker-space-sm);max-width:5rem}.wc-datepicker__previous-month-button,.wc-datepicker__next-month-button,.wc-datepicker__previous-year-button,.wc-datepicker__next-year-button{display:inline-flex;width:40px;max-width:40px;max-height:42px;padding:var(--_nys-datepicker-space-lg);justify-content:center;align-items:center;border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color--date);background-color:var(--_nys-datepicker-background-color);cursor:pointer}.wc-datepicker__previous-month-button:hover:not(:disabled),.wc-datepicker__next-month-button:hover:not(:disabled),.wc-datepicker__previous-year-button:hover:not(:disabled),.wc-datepicker__next-year-button:hover:not(:disabled){background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover)}.wc-datepicker__previous-month-button:active:not(:disabled),.wc-datepicker__previous-month-button[aria-pressed=true],.wc-datepicker__next-month-button:active:not(:disabled),.wc-datepicker__next-month-button[aria-pressed=true],.wc-datepicker__previous-year-button:active:not(:disabled),.wc-datepicker__previous-year-button[aria-pressed=true],.wc-datepicker__next-year-button:active:not(:disabled),.wc-datepicker__next-year-button[aria-pressed=true]{background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed)}.wc-datepicker__previous-month-button:disabled,.wc-datepicker__previous-month-button[aria-disabled=true],.wc-datepicker__next-month-button:disabled,.wc-datepicker__next-month-button[aria-disabled=true],.wc-datepicker__previous-year-button:disabled,.wc-datepicker__previous-year-button[aria-disabled=true],.wc-datepicker__next-year-button:disabled,.wc-datepicker__next-year-button[aria-disabled=true]{background-color:var(--_nys-datepicker-background-color--navigation--disabled);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker__calendar{width:100%;table-layout:fixed;border-collapse:collapse}.wc-datepicker__weekday{padding:var(--_nys-datepicker-padding--calendar) 0 var(--_nys-datepicker-space-sm) 0;min-width:var(--nys-size-500, 40px);font-weight:600;aspect-ratio:1}.wc-datepicker__weekday>span{width:42.3px;height:24px;display:flex;justify-content:center;align-items:center}.wc-datepicker__weekday[aria-label=Saturday],.wc-datepicker__weekday[aria-label=Sunday]{color:var(--_nys-datepicker-color--calendar--weekends)}.wc-datepicker__date{padding:var(--_nys-datepicker-space-md);text-align:center;cursor:pointer;border-radius:var(--nys-radius-lg)}.wc-datepicker__date:focus,.wc-datepicker__date:focus-visible{outline:none}.wc-datepicker__date:focus{box-shadow:inset 0 0 0 2px var(--_nys-datepicker-focus-ring--date)}.wc-datepicker__date:hover:not(.wc-datepicker__date--selected):not(:active){color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--hover)}.wc-datepicker__date:active{color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--active)}.wc-datepicker__date>*{display:flex;justify-content:center;align-items:center;aspect-ratio:1;width:24.3px;height:24px}.wc-datepicker__date--today{font-weight:600;color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--today>*{font-style:normal;text-decoration-line:underline}.wc-datepicker__date--selected{text-decoration-line:none;background-color:var(--_nys-datepicker-background-color--date--selected);color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--selected>*{font-weight:600}.wc-datepicker__date--disabled{color:var(--_nys-datepicker-color--date--disabled);cursor:default}.wc-datepicker__date--disabled:not(.wc-datepicker__date--disabled--selected,.wc-datepicker__date--disabled--in-range):hover{background-color:transparent}.wc-datepicker__date.wc-datepicker__date--overflowing{color:var(--_nys-datepicker-text-disabled)}.wc-datepicker__date.wc-datepicker__date--overflowing:hover,.wc-datepicker__date.wc-datepicker__date--overflowing:active{color:var(--_nys-datepicker-color)}.wc-datepicker--button-container{display:flex;padding-top:var(--_nys-datepicker-space-lg);align-items:flex-end;gap:var(--_nys-datepicker-padding--calendar);align-self:stretch}.wc-datepicker tr.wc-datepicker__calendar-row.sc-wc-datepicker{display:flex;align-items:center;gap:var(--_nys-datepicker-gap--calendar-row);align-self:stretch}', R = {
130
+ }, tt = /* @__PURE__ */ et(De), at = ':host{--_nys-datepicker-width: fit-content;--_nys-datepicker-width--input: var(--nys-form-width-md, 200px);--_nys-datepicker-gap: var(--nys-space-100, 8px);--_nys-datepicker-height: var(--nys-size-600, 48px);--_nys-datepicker-radius: var(--nys-radius-xl, 12px);--_nys-datepicker-color: var( --nys-color-text, var(--nys-color-neutral-900, #1b1b1b) );--_nys-datepicker-color--disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-space-sm: var(--nys-space-50, 4px);--_nys-datepicker-space-md: var(--nys-space-100, 8px);--_nys-datepicker-space-lg: var(--nys-space-150, 12px);--_nys-datepicker-border-width: var(--nys-border-width-sm, 1px);--_nys-datepicker-border-color: var(--nys-color-neutral-400, #909395);--_nys-datepicker-border-radius: var(--nys-radius-md, 4px);--_nys-datepicker-outline-color--hover: var(--nys-color-neutral-900, #1b1b1b);--_nys-datepicker-outline-color--focus: var(--nys-color-focus, #004dd1);--_nys-datepicker-font-size: var(--nys-font-size-ui-md, 16px);--_nys-datepicker-font-weight: var(--nys-font-weight-regular, 400);--_nys-datepicker-line-height: var(--nys-font-lineheight-ui-md, 24px);--_nys-datepicker-letterspacing: var(--nys-font-letterspacing-ui-md, .044px);--_nys-datepicker-font-family: var( --nys-font-family-ui, var( --nys-font-family-sans, "Proxima Nova", "Helvetica Neue", "Helvetica", "Arial", sans-serif ) );--_nys-datepicker-text-color: var(--nys-color-text, #1b1b1b);--_nys-datepicker-text-disabled: var(--nys-color-text-disabled, #bec0c1);--_nys-datepicker-background-color: var(--nys-color-ink-reverse, #ffffff);--_nys-datepicker-background-color--button--active: var( --nys-color-gray-100, #d0d0ce );--_nys-datepicker-padding--calendar: var(--nys-space-200, 16px);--_nys-datepicker-color--calendar--weekends: var( --nys-color-text-weaker, #797c7f );--_nys-datepicker-gap--calendar-row: var(--nys-space-2-px, 2px);--_nys-datepicker-font-size--date: var(--nys-font-size-ui-sm, 14px);--_nys-datepicker-background-color--date--hover: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--date--active: var( --nys-color-neutral-100, #d0d0ce );--_nys-datepicker-background-color--date--selected: var( --nys-color-info-weak, #e5effa );--_nys-datepicker-focus-ring--date: var(--nys-color-link, #004dd1);--_nys-datepicker-color--date: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--hover: var(--nys-color-text, #1b1b1b);--_nys-datepicker-color--date--selected: var(--nys-color-info, #004dd1);--_nys-datepicker-color--date--disabled: var( --nys-color-text-disabled, #bec0c1 );--_nys-datepicker-border-color--date--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-background-color--navigation--hover: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-background-color--navigation--pressed: var( --nys-color-neutral-50, #ededed );--_nys-datepicker-background-color--navigation--disabled: var( --nys-color-neutral-10, #f6f6f6 );--_nys-datepicker-color--navigation--hover: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--pressed: var( --nys-color-neutral-900, #1b1b1b );--_nys-datepicker-color--navigation--disabled: var( --nys-color-neutral-200, #bec0c1 );--_nys-datepicker-box-shadow-border--navigation: inset 0 0 0 1px var(--nys-color-neutral-900, #1b1b1b)}:host([width=lg]){--_nys-datepicker-width--input: var(--nys-form-width-lg, 384px)}:host([width=full]){--_nys-datepicker-width--input: 100%}:host([showError]){--_nys-datepicker-border-color: var(--nys-color-danger, #b52c2c)}:host([inverted]){--_nys-datepicker-outline-color--focus: var( --nys-color-focus-reverse, #7aa5e7 )}.nys-datepicker--container{position:relative;display:flex;flex-direction:column;gap:var(--_nys-datepicker-space-sm);font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);font-weight:var(--_nys-datepicker-font-weight);line-height:var(--_nys-datepicker-line-height);width:100%}.nys-datepicker--container .nys-datepicker--input-container{position:relative;width:var(--_nys-datepicker-width--input);display:flex;cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container.disabled #calendar-button{cursor:not-allowed;color:var(--_nys-datepicker-color--date--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input{cursor:text;text-align:start;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size);flex:1;height:24px;outline:transparent solid 1px;border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-border-color);background-color:var(--_nys-datepicker-background-color);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);color:var(--_nys-datepicker-color)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:hover{outline-color:var(--_nys-datepicker-outline-color--hover);border-color:var(--_nys-datepicker-outline-color--hover)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:focus{outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input:disabled{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);cursor:not-allowed;color:var(--_nys-datepicker-color--disabled)}.nys-datepicker--container .nys-datepicker--input-container .nys-datepicker--input::-webkit-date-and-time-value{text-align:start}.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-inner-spin-button,.nys-datepicker--container .nys-datepicker--input-container input[type=date]::-webkit-calendar-picker-indicator{display:none;appearance:none}.nys-datepicker--container .nys-datepicker--input-container #calendar-button{display:flex;align-items:center;justify-content:center;padding:var(--_nys-datepicker-space-sm);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-background-color);outline:transparent solid 1px;background-color:var(--_nys-datepicker-background-color);position:absolute;top:50%;right:var(--_nys-datepicker-space-sm);transform:translateY(-50%);cursor:pointer}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:hover{outline-color:var(--_nys-datepicker-background-color--date--hover);border-color:var(--_nys-datepicker-background-color--date--hover);background:var(--_nys-datepicker-background-color--date--hover)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:active{outline-color:var(--_nys-datepicker-background-color--button--active);border-color:var(--_nys-datepicker-background-color--button--active);background:var(--_nys-datepicker-background-color--button--active)}.nys-datepicker--container .nys-datepicker--input-container #calendar-button:focus:not(:active):not(:disabled){outline-color:var(--_nys-datepicker-outline-color--focus);border-color:var(--_nys-datepicker-outline-color--focus)}.nys-datepicker--container .wc-datepicker--container{display:flex;width:fit-content}.nys-datepicker--container .wc-datepicker--container *{flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0}wc-datepicker{display:none;padding:var(--_nys-datepicker-padding--calendar);border-radius:var(--_nys-datepicker-border-radius);border:var(--_nys-datepicker-border-width) solid var(--nys-color-neutral-100, #d0d0ce);background-color:var(--_nys-datepicker-background-color);box-shadow:0 4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01));color:var(--_nys-datepicker-text-color);margin-bottom:3px}wc-datepicker.active{display:flex;flex-direction:column-reverse;position:absolute;z-index:1}wc-datepicker .position-top{box-shadow:0 -4px 6px -1px var(--nys-color-black-transparent-100, rgba(27, 27, 27, .1)),0 -4px 6px -1px var(--nys-color-black-transparent-50, rgba(27, 27, 27, .01))}wc-datepicker *,wc-datepicker *:before,wc-datepicker *:after{margin:0;box-sizing:border-box}.wc-datepicker{display:block;width:min-content;font-family:var(--_nys-datepicker-font-family);font-size:var(--_nys-datepicker-font-size--date);font-weight:400;line-height:var(--_nys-datepicker-line-height);letter-spacing:var(--_nys-datepicker-letterspacing)}.wc-datepicker--disabled *:disabled{opacity:.5;cursor:not-allowed}.wc-datepicker--disabled .wc-datepicker__date{cursor:not-allowed;opacity:.5}.wc-datepicker--disabled .wc-datepicker__date:focus{outline:none;border-color:var(--_nys-datepicker-border-color--date--disabled);box-shadow:none}.wc-datepicker--disabled .wc-datepicker__date:hover:not(.wc-datepicker__date--selected){background-color:transparent}.wc-datepicker--disabled .wc-datepicker__date--selected:hover{color:var(--_nys-datepicker-background-color);background-color:var(--_nys-datepicker-background-color--date--selected)}.wc-datepicker--disabled #wc-month-dropdown-icon{color:var(--_nys-datepicker-color--date--disabled)}.wc-datepicker__header{display:flex;align-items:center;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__current-month{display:flex;flex-grow:1;gap:var(--_nys-datepicker-space-sm)}.wc-datepicker__month-select,.wc-datepicker__year-select{display:flex;align-items:center;font-size:var(--_nys-datepicker-font-size);font-family:var(--_nys-datepicker-font-family);padding:var(--_nys-datepicker-space-md) var(--_nys-datepicker-space-lg);border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color);background-color:var(--_nys-datepicker-background-color);line-height:var(--_nys-datepicker-line-height)}.wc-datepicker__month-select:hover:not(:disabled),.wc-datepicker__year-select:hover:not(:disabled){border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover);background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:active:not(:disabled),.wc-datepicker__month-select[aria-pressed=true],.wc-datepicker__year-select:active:not(:disabled),.wc-datepicker__year-select[aria-pressed=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed);background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation)}.wc-datepicker__month-select:disabled,.wc-datepicker__month-select[aria-disabled=true],.wc-datepicker__year-select:disabled,.wc-datepicker__year-select[aria-disabled=true]{border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);background-color:var(--_nys-datepicker-background-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker .month-wrapper{position:relative;width:135px;display:flex;align-items:center;align-self:stretch}.wc-datepicker .month-wrapper #wc-month-dropdown-icon{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none}.wc-datepicker__month-select{width:100%;max-width:100%;flex-grow:1;cursor:pointer;appearance:none;text-overflow:ellipsis;padding-right:var(--nys-space-400, 32px)}.wc-datepicker__month-select>*{width:91px;height:24px}.wc-datepicker__year-select{border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;padding-right:var(--_nys-datepicker-space-sm);max-width:5rem}.wc-datepicker__previous-month-button,.wc-datepicker__next-month-button,.wc-datepicker__previous-year-button,.wc-datepicker__next-year-button{display:inline-flex;width:40px;max-width:40px;max-height:42px;padding:var(--_nys-datepicker-space-lg);justify-content:center;align-items:center;border:solid var(--_nys-datepicker-border-width) var(--_nys-datepicker-border-color);border-radius:.25rem;color:var(--_nys-datepicker-color--date);background-color:var(--_nys-datepicker-background-color);cursor:pointer}.wc-datepicker__previous-month-button:hover:not(:disabled),.wc-datepicker__next-month-button:hover:not(:disabled),.wc-datepicker__previous-year-button:hover:not(:disabled),.wc-datepicker__next-year-button:hover:not(:disabled){background-color:var(--_nys-datepicker-background-color--navigation--hover);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--hover)}.wc-datepicker__previous-month-button:active:not(:disabled),.wc-datepicker__previous-month-button[aria-pressed=true],.wc-datepicker__next-month-button:active:not(:disabled),.wc-datepicker__next-month-button[aria-pressed=true],.wc-datepicker__previous-year-button:active:not(:disabled),.wc-datepicker__previous-year-button[aria-pressed=true],.wc-datepicker__next-year-button:active:not(:disabled),.wc-datepicker__next-year-button[aria-pressed=true]{background-color:var(--_nys-datepicker-background-color--navigation--pressed);box-shadow:var(--_nys-datepicker-box-shadow-border--navigation);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--pressed)}.wc-datepicker__previous-month-button:disabled,.wc-datepicker__previous-month-button[aria-disabled=true],.wc-datepicker__next-month-button:disabled,.wc-datepicker__next-month-button[aria-disabled=true],.wc-datepicker__previous-year-button:disabled,.wc-datepicker__previous-year-button[aria-disabled=true],.wc-datepicker__next-year-button:disabled,.wc-datepicker__next-year-button[aria-disabled=true]{background-color:var(--_nys-datepicker-background-color--navigation--disabled);border:var(--_nys-datepicker-border-width) solid var(--_nys-datepicker-color--navigation--disabled);color:var(--_nys-datepicker-color--disabled)}.wc-datepicker__calendar{width:100%;table-layout:fixed;border-collapse:collapse}.wc-datepicker__weekday{padding:var(--_nys-datepicker-padding--calendar) 0 var(--_nys-datepicker-space-sm) 0;min-width:var(--nys-size-500, 40px);font-weight:600;aspect-ratio:1}.wc-datepicker__weekday>span{width:42.3px;height:24px;display:flex;justify-content:center;align-items:center}.wc-datepicker__weekday[aria-label=Saturday],.wc-datepicker__weekday[aria-label=Sunday]{color:var(--_nys-datepicker-color--calendar--weekends)}.wc-datepicker__date{padding:var(--_nys-datepicker-space-md);text-align:center;cursor:pointer;border-radius:var(--nys-radius-lg)}.wc-datepicker__date:focus,.wc-datepicker__date:focus-visible{outline:none}.wc-datepicker__date:focus{box-shadow:inset 0 0 0 2px var(--_nys-datepicker-focus-ring--date)}.wc-datepicker__date:hover:not(.wc-datepicker__date--selected):not(:active){color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--hover)}.wc-datepicker__date:active{color:var(--_nys-datepicker-color--date--hover);background-color:var(--_nys-datepicker-background-color--date--active)}.wc-datepicker__date>*{display:flex;justify-content:center;align-items:center;aspect-ratio:1;width:24.3px;height:24px}.wc-datepicker__date--today{font-weight:600;color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--today>*{font-style:normal;text-decoration-line:underline}.wc-datepicker__date--selected{text-decoration-line:none;background-color:var(--_nys-datepicker-background-color--date--selected);color:var(--_nys-datepicker-color--date--selected)}.wc-datepicker__date--selected>*{font-weight:600}.wc-datepicker__date--disabled{color:var(--_nys-datepicker-color--date--disabled);cursor:default}.wc-datepicker__date--disabled:not(.wc-datepicker__date--disabled--selected,.wc-datepicker__date--disabled--in-range):hover{background-color:transparent}.wc-datepicker__date.wc-datepicker__date--overflowing{color:var(--_nys-datepicker-text-disabled)}.wc-datepicker__date.wc-datepicker__date--overflowing:hover,.wc-datepicker__date.wc-datepicker__date--overflowing:active{color:var(--_nys-datepicker-color)}.wc-datepicker--button-container{display:flex;padding-top:var(--_nys-datepicker-space-lg);align-items:flex-end;gap:var(--_nys-datepicker-padding--calendar);align-self:stretch}.wc-datepicker tr.wc-datepicker__calendar-row.sc-wc-datepicker{display:flex;align-items:center;gap:var(--_nys-datepicker-gap--calendar-row);align-self:stretch}', R = {
109
131
  allRenderFn: !1,
110
132
  cmpDidLoad: !0,
111
133
  cmpDidUnload: !1,
@@ -189,30 +211,30 @@ const Ve = (t) => {
189
211
  transformTagName: !1,
190
212
  attachStyles: !0
191
213
  };
192
- let B, we, X, De = !1, H = !1, se = !1, $ = !1, ne = null, te = !1;
193
- const T = (t, e = "") => () => {
194
- }, oe = "http://www.w3.org/1999/xlink", ce = {}, tt = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xhtml", st = (t) => t != null, re = (t) => (t = typeof t, t === "object" || t === "function");
195
- function rt(t) {
214
+ let B, xe, Q, Se = !1, H = !1, se = !1, _ = !1, le = null, te = !1;
215
+ const E = (t, e = "") => () => {
216
+ }, ce = "http://www.w3.org/1999/xlink", de = {}, st = "http://www.w3.org/2000/svg", it = "http://www.w3.org/1999/xhtml", rt = (t) => t != null, ie = (t) => (t = typeof t, t === "object" || t === "function");
217
+ function nt(t) {
196
218
  var e, a, s;
197
219
  return (s = (a = (e = t.head) === null || e === void 0 ? void 0 : e.querySelector('meta[name="csp-nonce"]')) === null || a === void 0 ? void 0 : a.getAttribute("content")) !== null && s !== void 0 ? s : void 0;
198
220
  }
199
221
  const h = (t, e, ...a) => {
200
- let s = null, r = null, n = null, i = !1, o = !1;
201
- const c = [], l = (d) => {
202
- for (let p = 0; p < d.length; p++)
203
- s = d[p], Array.isArray(s) ? l(s) : s != null && typeof s != "boolean" && ((i = typeof t != "function" && !re(s)) && (s = String(s)), i && o ? c[c.length - 1].$text$ += s : c.push(i ? j(null, s) : s), o = i);
222
+ let s = null, i = null, n = null, r = !1, o = !1;
223
+ const l = [], c = (u) => {
224
+ for (let p = 0; p < u.length; p++)
225
+ s = u[p], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((r = typeof t != "function" && !ie(s)) && (s = String(s)), r && o ? l[l.length - 1].$text$ += s : l.push(r ? j(null, s) : s), o = r);
204
226
  };
205
- if (l(a), e) {
206
- e.key && (r = e.key), e.name && (n = e.name);
227
+ if (c(a), e) {
228
+ e.key && (i = e.key), e.name && (n = e.name);
207
229
  {
208
- const d = e.className || e.class;
209
- d && (e.class = typeof d != "object" ? d : Object.keys(d).filter((p) => d[p]).join(" "));
230
+ const u = e.className || e.class;
231
+ u && (e.class = typeof u != "object" ? u : Object.keys(u).filter((p) => u[p]).join(" "));
210
232
  }
211
233
  }
212
234
  if (typeof t == "function")
213
- return t(e === null ? {} : e, c, nt);
214
- const u = j(t, null);
215
- return u.$attrs$ = e, c.length > 0 && (u.$children$ = c), u.$key$ = r, u.$name$ = n, u;
235
+ return t(e === null ? {} : e, l, lt);
236
+ const d = j(t, null);
237
+ return d.$attrs$ = e, l.length > 0 && (d.$children$ = l), d.$key$ = i, d.$name$ = n, d;
216
238
  }, j = (t, e) => {
217
239
  const a = {
218
240
  $flags$: 0,
@@ -222,174 +244,174 @@ const h = (t, e, ...a) => {
222
244
  $children$: null
223
245
  };
224
246
  return a.$attrs$ = null, a.$key$ = null, a.$name$ = null, a;
225
- }, xe = {}, it = (t) => t && t.$tag$ === xe, nt = {
226
- forEach: (t, e) => t.map(le).forEach(e),
227
- map: (t, e) => t.map(le).map(e).map(ot)
228
- }, le = (t) => ({
247
+ }, Ce = {}, ot = (t) => t && t.$tag$ === Ce, lt = {
248
+ forEach: (t, e) => t.map(ue).forEach(e),
249
+ map: (t, e) => t.map(ue).map(e).map(ct)
250
+ }, ue = (t) => ({
229
251
  vattrs: t.$attrs$,
230
252
  vchildren: t.$children$,
231
253
  vkey: t.$key$,
232
254
  vname: t.$name$,
233
255
  vtag: t.$tag$,
234
256
  vtext: t.$text$
235
- }), ot = (t) => {
257
+ }), ct = (t) => {
236
258
  if (typeof t.vtag == "function") {
237
259
  const a = Object.assign({}, t.vattrs);
238
260
  return t.vkey && (a.key = t.vkey), t.vname && (a.name = t.vname), h(t.vtag, a, ...t.vchildren || []);
239
261
  }
240
262
  const e = j(t.vtag, t.vtext);
241
263
  return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
242
- }, ct = (t) => At.map((e) => e(t)).find((e) => !!e), lt = (t, e) => t != null && !re(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, dt = (t) => t, de = (t, e, a) => {
243
- const s = dt(t);
264
+ }, dt = (t) => Ft.map((e) => e(t)).find((e) => !!e), ut = (t, e) => t != null && !ie(t) ? e & 4 ? t === "false" ? !1 : t === "" || !!t : e & 2 ? parseFloat(t) : e & 1 ? String(t) : t : t, ht = (t) => t, he = (t, e, a) => {
265
+ const s = ht(t);
244
266
  return {
245
- emit: (r) => ut(s, e, {
267
+ emit: (i) => pt(s, e, {
246
268
  bubbles: !0,
247
269
  composed: !0,
248
270
  cancelable: !0,
249
- detail: r
271
+ detail: i
250
272
  })
251
273
  };
252
- }, ut = (t, e, a) => {
274
+ }, pt = (t, e, a) => {
253
275
  const s = b.ce(e, a);
254
276
  return t.dispatchEvent(s), s;
255
- }, ue = /* @__PURE__ */ new WeakMap(), ht = (t, e, a) => {
277
+ }, pe = /* @__PURE__ */ new WeakMap(), ft = (t, e, a) => {
256
278
  let s = K.get(t);
257
- qt && a ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = e : s.replaceSync(e)) : s = e, K.set(t, s);
258
- }, pt = (t, e, a, s) => {
259
- var r;
260
- let n = Se(e, a);
261
- const i = K.get(n);
262
- if (t = t.nodeType === 11 ? t : w, i)
263
- if (typeof i == "string") {
279
+ Ut && a ? (s = s || new CSSStyleSheet(), typeof s == "string" ? s = e : s.replaceSync(e)) : s = e, K.set(t, s);
280
+ }, yt = (t, e, a, s) => {
281
+ var i;
282
+ let n = Me(e, a);
283
+ const r = K.get(n);
284
+ if (t = t.nodeType === 11 ? t : w, r)
285
+ if (typeof r == "string") {
264
286
  t = t.head || t;
265
- let o = ue.get(t), c;
266
- if (o || ue.set(t, o = /* @__PURE__ */ new Set()), !o.has(n)) {
287
+ let o = pe.get(t), l;
288
+ if (o || pe.set(t, o = /* @__PURE__ */ new Set()), !o.has(n)) {
267
289
  {
268
- c = w.createElement("style"), c.innerHTML = i;
269
- const l = (r = b.$nonce$) !== null && r !== void 0 ? r : rt(w);
270
- l != null && c.setAttribute("nonce", l), t.insertBefore(c, t.querySelector("link"));
290
+ l = w.createElement("style"), l.innerHTML = r;
291
+ const c = (i = b.$nonce$) !== null && i !== void 0 ? i : nt(w);
292
+ c != null && l.setAttribute("nonce", c), t.insertBefore(l, t.querySelector("link"));
271
293
  }
272
294
  o && o.add(n);
273
295
  }
274
- } else t.adoptedStyleSheets.includes(i) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, i]);
296
+ } else t.adoptedStyleSheets.includes(r) || (t.adoptedStyleSheets = [...t.adoptedStyleSheets, r]);
275
297
  return n;
276
- }, ft = (t) => {
277
- const e = t.$cmpMeta$, a = t.$hostElement$, s = e.$flags$, r = T("attachStyles", e.$tagName$), n = pt(a.shadowRoot ? a.shadowRoot : a.getRootNode(), e, t.$modeName$);
278
- s & 10 && (a["s-sc"] = n, a.classList.add(n + "-h"), s & 2 && a.classList.add(n + "-s")), r();
279
- }, Se = (t, e) => "sc-" + (e && t.$flags$ & 32 ? t.$tagName$ + "-" + e : t.$tagName$), he = (t, e, a, s, r, n) => {
298
+ }, gt = (t) => {
299
+ const e = t.$cmpMeta$, a = t.$hostElement$, s = e.$flags$, i = E("attachStyles", e.$tagName$), n = yt(a.shadowRoot ? a.shadowRoot : a.getRootNode(), e, t.$modeName$);
300
+ s & 10 && (a["s-sc"] = n, a.classList.add(n + "-h"), s & 2 && a.classList.add(n + "-s")), i();
301
+ }, Me = (t, e) => "sc-" + (e && t.$flags$ & 32 ? t.$tagName$ + "-" + e : t.$tagName$), fe = (t, e, a, s, i, n) => {
280
302
  if (a !== s) {
281
- let i = ge(t, e), o = e.toLowerCase();
303
+ let r = ke(t, e), o = e.toLowerCase();
282
304
  if (e === "class") {
283
- const c = t.classList, l = pe(a), u = pe(s);
284
- c.remove(...l.filter((d) => d && !u.includes(d))), c.add(...u.filter((d) => d && !l.includes(d)));
305
+ const l = t.classList, c = ye(a), d = ye(s);
306
+ l.remove(...c.filter((u) => u && !d.includes(u))), l.add(...d.filter((u) => u && !c.includes(u)));
285
307
  } else if (e === "style") {
286
- for (const c in a)
287
- (!s || s[c] == null) && (c.includes("-") ? t.style.removeProperty(c) : t.style[c] = "");
288
- for (const c in s)
289
- (!a || s[c] !== a[c]) && (c.includes("-") ? t.style.setProperty(c, s[c]) : t.style[c] = s[c]);
308
+ for (const l in a)
309
+ (!s || s[l] == null) && (l.includes("-") ? t.style.removeProperty(l) : t.style[l] = "");
310
+ for (const l in s)
311
+ (!a || s[l] !== a[l]) && (l.includes("-") ? t.style.setProperty(l, s[l]) : t.style[l] = s[l]);
290
312
  } else if (e !== "key")
291
313
  if (e === "ref")
292
314
  s && s(t);
293
315
  else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n")
294
- e[2] === "-" ? e = e.slice(3) : ge(V, o) ? e = o.slice(2) : e = o[2] + e.slice(3), a && b.rel(t, e, a, !1), s && b.ael(t, e, s, !1);
316
+ e[2] === "-" ? e = e.slice(3) : ke(J, o) ? e = o.slice(2) : e = o[2] + e.slice(3), a && b.rel(t, e, a, !1), s && b.ael(t, e, s, !1);
295
317
  else {
296
- const c = re(s);
297
- if ((i || c && s !== null) && !r)
318
+ const l = ie(s);
319
+ if ((r || l && s !== null) && !i)
298
320
  try {
299
321
  if (t.tagName.includes("-"))
300
322
  t[e] = s;
301
323
  else {
302
- const u = s ?? "";
303
- e === "list" ? i = !1 : (a == null || t[e] != u) && (t[e] = u);
324
+ const d = s ?? "";
325
+ e === "list" ? r = !1 : (a == null || t[e] != d) && (t[e] = d);
304
326
  }
305
327
  } catch {
306
328
  }
307
- let l = !1;
308
- o !== (o = o.replace(/^xlink\:?/, "")) && (e = o, l = !0), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && (l ? t.removeAttributeNS(oe, e) : t.removeAttribute(e)) : (!i || n & 4 || r) && !c && (s = s === !0 ? "" : s, l ? t.setAttributeNS(oe, e, s) : t.setAttribute(e, s));
329
+ let c = !1;
330
+ o !== (o = o.replace(/^xlink\:?/, "")) && (e = o, c = !0), s == null || s === !1 ? (s !== !1 || t.getAttribute(e) === "") && (c ? t.removeAttributeNS(ce, e) : t.removeAttribute(e)) : (!r || n & 4 || i) && !l && (s = s === !0 ? "" : s, c ? t.setAttributeNS(ce, e, s) : t.setAttribute(e, s));
309
331
  }
310
332
  }
311
- }, yt = /\s/, pe = (t) => t ? t.split(yt) : [], Me = (t, e, a, s) => {
312
- const r = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, n = t && t.$attrs$ || ce, i = e.$attrs$ || ce;
333
+ }, vt = /\s/, ye = (t) => t ? t.split(vt) : [], Ee = (t, e, a, s) => {
334
+ const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, n = t && t.$attrs$ || de, r = e.$attrs$ || de;
313
335
  for (s in n)
314
- s in i || he(r, s, n[s], void 0, a, e.$flags$);
315
- for (s in i)
316
- he(r, s, n[s], i[s], a, e.$flags$);
336
+ s in r || fe(i, s, n[s], void 0, a, e.$flags$);
337
+ for (s in r)
338
+ fe(i, s, n[s], r[s], a, e.$flags$);
317
339
  }, z = (t, e, a, s) => {
318
- const r = e.$children$[a];
319
- let n = 0, i, o, c;
320
- if (De || (se = !0, r.$tag$ === "slot" && (B && s.classList.add(B + "-s"), r.$flags$ |= r.$children$ ? (
340
+ const i = e.$children$[a];
341
+ let n = 0, r, o, l;
342
+ if (Se || (se = !0, i.$tag$ === "slot" && (B && s.classList.add(B + "-s"), i.$flags$ |= i.$children$ ? (
321
343
  // slot element has fallback content
322
344
  2
323
345
  ) : (
324
346
  // slot element does not have fallback content
325
347
  1
326
- ))), r.$text$ !== null)
327
- i = r.$elm$ = w.createTextNode(r.$text$);
328
- else if (r.$flags$ & 1)
329
- i = r.$elm$ = w.createTextNode("");
348
+ ))), i.$text$ !== null)
349
+ r = i.$elm$ = w.createTextNode(i.$text$);
350
+ else if (i.$flags$ & 1)
351
+ r = i.$elm$ = w.createTextNode("");
330
352
  else {
331
- if ($ || ($ = r.$tag$ === "svg"), i = r.$elm$ = w.createElementNS($ ? tt : at, r.$flags$ & 2 ? "slot-fb" : r.$tag$), $ && r.$tag$ === "foreignObject" && ($ = !1), Me(null, r, $), st(B) && i["s-si"] !== B && i.classList.add(i["s-si"] = B), r.$children$)
332
- for (n = 0; n < r.$children$.length; ++n)
333
- o = z(t, r, n, i), o && i.appendChild(o);
334
- r.$tag$ === "svg" ? $ = !1 : i.tagName === "foreignObject" && ($ = !0);
353
+ if (_ || (_ = i.$tag$ === "svg"), r = i.$elm$ = w.createElementNS(_ ? st : it, i.$flags$ & 2 ? "slot-fb" : i.$tag$), _ && i.$tag$ === "foreignObject" && (_ = !1), Ee(null, i, _), rt(B) && r["s-si"] !== B && r.classList.add(r["s-si"] = B), i.$children$)
354
+ for (n = 0; n < i.$children$.length; ++n)
355
+ o = z(t, i, n, r), o && r.appendChild(o);
356
+ i.$tag$ === "svg" ? _ = !1 : r.tagName === "foreignObject" && (_ = !0);
335
357
  }
336
- return i["s-hn"] = X, r.$flags$ & 3 && (i["s-sr"] = !0, i["s-cr"] = we, i["s-sn"] = r.$name$ || "", c = t && t.$children$ && t.$children$[a], c && c.$tag$ === r.$tag$ && t.$elm$ && P(t.$elm$, !1)), i;
337
- }, P = (t, e) => {
358
+ return r["s-hn"] = Q, i.$flags$ & 3 && (r["s-sr"] = !0, r["s-cr"] = xe, r["s-sn"] = i.$name$ || "", l = t && t.$children$ && t.$children$[a], l && l.$tag$ === i.$tag$ && t.$elm$ && q(t.$elm$, !1)), r;
359
+ }, q = (t, e) => {
338
360
  b.$flags$ |= 1;
339
361
  const a = t.childNodes;
340
362
  for (let s = a.length - 1; s >= 0; s--) {
341
- const r = a[s];
342
- r["s-hn"] !== X && r["s-ol"] && (Le(r).insertBefore(r, ie(r)), r["s-ol"].remove(), r["s-ol"] = void 0, se = !0), e && P(r, e);
363
+ const i = a[s];
364
+ i["s-hn"] !== Q && i["s-ol"] && (Re(i).insertBefore(i, re(i)), i["s-ol"].remove(), i["s-ol"] = void 0, se = !0), e && q(i, e);
343
365
  }
344
366
  b.$flags$ &= -2;
345
- }, Ce = (t, e, a, s, r, n) => {
346
- let i = t["s-cr"] && t["s-cr"].parentNode || t, o;
347
- for (i.shadowRoot && i.tagName === X && (i = i.shadowRoot); r <= n; ++r)
348
- s[r] && (o = z(null, a, r, t), o && (s[r].$elm$ = o, i.insertBefore(o, ie(e))));
349
- }, Te = (t, e, a, s, r) => {
367
+ }, Te = (t, e, a, s, i, n) => {
368
+ let r = t["s-cr"] && t["s-cr"].parentNode || t, o;
369
+ for (r.shadowRoot && r.tagName === Q && (r = r.shadowRoot); i <= n; ++i)
370
+ s[i] && (o = z(null, a, i, t), o && (s[i].$elm$ = o, r.insertBefore(o, re(e))));
371
+ }, Le = (t, e, a, s, i) => {
350
372
  for (; e <= a; ++e)
351
- (s = t[e]) && (r = s.$elm$, Be(s), H = !0, r["s-ol"] ? r["s-ol"].remove() : P(r, !0), r.remove());
352
- }, gt = (t, e, a, s) => {
353
- let r = 0, n = 0, i = 0, o = 0, c = e.length - 1, l = e[0], u = e[c], d = s.length - 1, p = s[0], k = s[d], _, S;
354
- for (; r <= c && n <= d; )
355
- if (l == null)
356
- l = e[++r];
357
- else if (u == null)
358
- u = e[--c];
373
+ (s = t[e]) && (i = s.$elm$, Ie(s), H = !0, i["s-ol"] ? i["s-ol"].remove() : q(i, !0), i.remove());
374
+ }, kt = (t, e, a, s) => {
375
+ let i = 0, n = 0, r = 0, o = 0, l = e.length - 1, c = e[0], d = e[l], u = s.length - 1, p = s[0], v = s[u], $, S;
376
+ for (; i <= l && n <= u; )
377
+ if (c == null)
378
+ c = e[++i];
379
+ else if (d == null)
380
+ d = e[--l];
359
381
  else if (p == null)
360
382
  p = s[++n];
361
- else if (k == null)
362
- k = s[--d];
363
- else if (Y(l, p))
364
- O(l, p), l = e[++r], p = s[++n];
365
- else if (Y(u, k))
366
- O(u, k), u = e[--c], k = s[--d];
367
- else if (Y(l, k))
368
- (l.$tag$ === "slot" || k.$tag$ === "slot") && P(l.$elm$.parentNode, !1), O(l, k), t.insertBefore(l.$elm$, u.$elm$.nextSibling), l = e[++r], k = s[--d];
369
- else if (Y(u, p))
370
- (l.$tag$ === "slot" || k.$tag$ === "slot") && P(u.$elm$.parentNode, !1), O(u, p), t.insertBefore(u.$elm$, l.$elm$), u = e[--c], p = s[++n];
383
+ else if (v == null)
384
+ v = s[--u];
385
+ else if (Y(c, p))
386
+ O(c, p), c = e[++i], p = s[++n];
387
+ else if (Y(d, v))
388
+ O(d, v), d = e[--l], v = s[--u];
389
+ else if (Y(c, v))
390
+ (c.$tag$ === "slot" || v.$tag$ === "slot") && q(c.$elm$.parentNode, !1), O(c, v), t.insertBefore(c.$elm$, d.$elm$.nextSibling), c = e[++i], v = s[--u];
391
+ else if (Y(d, p))
392
+ (c.$tag$ === "slot" || v.$tag$ === "slot") && q(d.$elm$.parentNode, !1), O(d, p), t.insertBefore(d.$elm$, c.$elm$), d = e[--l], p = s[++n];
371
393
  else {
372
- for (i = -1, o = r; o <= c; ++o)
394
+ for (r = -1, o = i; o <= l; ++o)
373
395
  if (e[o] && e[o].$key$ !== null && e[o].$key$ === p.$key$) {
374
- i = o;
396
+ r = o;
375
397
  break;
376
398
  }
377
- i >= 0 ? (S = e[i], S.$tag$ !== p.$tag$ ? _ = z(e && e[n], a, i, t) : (O(S, p), e[i] = void 0, _ = S.$elm$), p = s[++n]) : (_ = z(e && e[n], a, n, t), p = s[++n]), _ && Le(l.$elm$).insertBefore(_, ie(l.$elm$));
399
+ r >= 0 ? (S = e[r], S.$tag$ !== p.$tag$ ? $ = z(e && e[n], a, r, t) : (O(S, p), e[r] = void 0, $ = S.$elm$), p = s[++n]) : ($ = z(e && e[n], a, n, t), p = s[++n]), $ && Re(c.$elm$).insertBefore($, re(c.$elm$));
378
400
  }
379
- r > c ? Ce(t, s[d + 1] == null ? null : s[d + 1].$elm$, a, s, n, d) : n > d && Te(e, r, c);
380
- }, Y = (t, e) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : t.$key$ === e.$key$ : !1, ie = (t) => t && t["s-ol"] || t, Le = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, O = (t, e) => {
381
- const a = e.$elm$ = t.$elm$, s = t.$children$, r = e.$children$, n = e.$tag$, i = e.$text$;
401
+ i > l ? Te(t, s[u + 1] == null ? null : s[u + 1].$elm$, a, s, n, u) : n > u && Le(e, i, l);
402
+ }, Y = (t, e) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : t.$key$ === e.$key$ : !1, re = (t) => t && t["s-ol"] || t, Re = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, O = (t, e) => {
403
+ const a = e.$elm$ = t.$elm$, s = t.$children$, i = e.$children$, n = e.$tag$, r = e.$text$;
382
404
  let o;
383
- i === null ? ($ = n === "svg" ? !0 : n === "foreignObject" ? !1 : $, n === "slot" || Me(t, e, $), s !== null && r !== null ? gt(a, s, e, r) : r !== null ? (t.$text$ !== null && (a.textContent = ""), Ce(a, null, e, r, 0, r.length - 1)) : s !== null && Te(s, 0, s.length - 1), $ && n === "svg" && ($ = !1)) : (o = a["s-cr"]) ? o.parentNode.textContent = i : t.$text$ !== i && (a.data = i);
384
- }, Ee = (t) => {
405
+ r === null ? (_ = n === "svg" ? !0 : n === "foreignObject" ? !1 : _, n === "slot" || Ee(t, e, _), s !== null && i !== null ? kt(a, s, e, i) : i !== null ? (t.$text$ !== null && (a.textContent = ""), Te(a, null, e, i, 0, i.length - 1)) : s !== null && Le(s, 0, s.length - 1), _ && n === "svg" && (_ = !1)) : (o = a["s-cr"]) ? o.parentNode.textContent = r : t.$text$ !== r && (a.data = r);
406
+ }, Be = (t) => {
385
407
  const e = t.childNodes;
386
- let a, s, r, n, i, o;
387
- for (s = 0, r = e.length; s < r; s++)
408
+ let a, s, i, n, r, o;
409
+ for (s = 0, i = e.length; s < i; s++)
388
410
  if (a = e[s], a.nodeType === 1) {
389
411
  if (a["s-sr"]) {
390
- for (i = a["s-sn"], a.hidden = !1, n = 0; n < r; n++)
391
- if (o = e[n].nodeType, e[n]["s-hn"] !== a["s-hn"] || i !== "") {
392
- if (o === 1 && i === e[n].getAttribute("slot")) {
412
+ for (r = a["s-sn"], a.hidden = !1, n = 0; n < i; n++)
413
+ if (o = e[n].nodeType, e[n]["s-hn"] !== a["s-hn"] || r !== "") {
414
+ if (o === 1 && r === e[n].getAttribute("slot")) {
393
415
  a.hidden = !0;
394
416
  break;
395
417
  }
@@ -398,110 +420,110 @@ const h = (t, e, ...a) => {
398
420
  break;
399
421
  }
400
422
  }
401
- Ee(a);
423
+ Be(a);
402
424
  }
403
- }, m = [], Re = (t) => {
404
- let e, a, s, r, n, i, o = 0;
405
- const c = t.childNodes, l = c.length;
406
- for (; o < l; o++) {
407
- if (e = c[o], e["s-sr"] && (a = e["s-cr"]) && a.parentNode)
408
- for (s = a.parentNode.childNodes, r = e["s-sn"], i = s.length - 1; i >= 0; i--)
409
- a = s[i], !a["s-cn"] && !a["s-nr"] && a["s-hn"] !== e["s-hn"] && (fe(a, r) ? (n = m.find((u) => u.$nodeToRelocate$ === a), H = !0, a["s-sn"] = a["s-sn"] || r, n ? n.$slotRefNode$ = e : m.push({
425
+ }, m = [], Oe = (t) => {
426
+ let e, a, s, i, n, r, o = 0;
427
+ const l = t.childNodes, c = l.length;
428
+ for (; o < c; o++) {
429
+ if (e = l[o], e["s-sr"] && (a = e["s-cr"]) && a.parentNode)
430
+ for (s = a.parentNode.childNodes, i = e["s-sn"], r = s.length - 1; r >= 0; r--)
431
+ a = s[r], !a["s-cn"] && !a["s-nr"] && a["s-hn"] !== e["s-hn"] && (ge(a, i) ? (n = m.find((d) => d.$nodeToRelocate$ === a), H = !0, a["s-sn"] = a["s-sn"] || i, n ? n.$slotRefNode$ = e : m.push({
410
432
  $slotRefNode$: e,
411
433
  $nodeToRelocate$: a
412
- }), a["s-sr"] && m.map((u) => {
413
- fe(u.$nodeToRelocate$, a["s-sn"]) && (n = m.find((d) => d.$nodeToRelocate$ === a), n && !u.$slotRefNode$ && (u.$slotRefNode$ = n.$slotRefNode$));
414
- })) : m.some((u) => u.$nodeToRelocate$ === a) || m.push({
434
+ }), a["s-sr"] && m.map((d) => {
435
+ ge(d.$nodeToRelocate$, a["s-sn"]) && (n = m.find((u) => u.$nodeToRelocate$ === a), n && !d.$slotRefNode$ && (d.$slotRefNode$ = n.$slotRefNode$));
436
+ })) : m.some((d) => d.$nodeToRelocate$ === a) || m.push({
415
437
  $nodeToRelocate$: a
416
438
  }));
417
- e.nodeType === 1 && Re(e);
439
+ e.nodeType === 1 && Oe(e);
418
440
  }
419
- }, fe = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", Be = (t) => {
420
- t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(Be);
421
- }, kt = (t, e) => {
422
- const a = t.$hostElement$, s = t.$cmpMeta$, r = t.$vnode$ || j(null, null), n = it(e) ? e : h(null, null, e);
423
- X = a.tagName, s.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {}, s.$attrsToReflect$.map(([i, o]) => n.$attrs$[o] = a[i])), n.$tag$ = null, n.$flags$ |= 4, t.$vnode$ = n, n.$elm$ = r.$elm$ = a.shadowRoot || a, B = a["s-sc"], we = a["s-cr"], De = (s.$flags$ & 1) !== 0, H = !1, O(r, n);
441
+ }, ge = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", Ie = (t) => {
442
+ t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(Ie);
443
+ }, bt = (t, e) => {
444
+ const a = t.$hostElement$, s = t.$cmpMeta$, i = t.$vnode$ || j(null, null), n = ot(e) ? e : h(null, null, e);
445
+ Q = a.tagName, s.$attrsToReflect$ && (n.$attrs$ = n.$attrs$ || {}, s.$attrsToReflect$.map(([r, o]) => n.$attrs$[o] = a[r])), n.$tag$ = null, n.$flags$ |= 4, t.$vnode$ = n, n.$elm$ = i.$elm$ = a.shadowRoot || a, B = a["s-sc"], xe = a["s-cr"], Se = (s.$flags$ & 1) !== 0, H = !1, O(i, n);
424
446
  {
425
447
  if (b.$flags$ |= 1, se) {
426
- Re(n.$elm$);
427
- let i, o, c, l, u, d, p = 0;
448
+ Oe(n.$elm$);
449
+ let r, o, l, c, d, u, p = 0;
428
450
  for (; p < m.length; p++)
429
- i = m[p], o = i.$nodeToRelocate$, o["s-ol"] || (c = w.createTextNode(""), c["s-nr"] = o, o.parentNode.insertBefore(o["s-ol"] = c, o));
451
+ r = m[p], o = r.$nodeToRelocate$, o["s-ol"] || (l = w.createTextNode(""), l["s-nr"] = o, o.parentNode.insertBefore(o["s-ol"] = l, o));
430
452
  for (p = 0; p < m.length; p++)
431
- if (i = m[p], o = i.$nodeToRelocate$, i.$slotRefNode$) {
432
- for (l = i.$slotRefNode$.parentNode, u = i.$slotRefNode$.nextSibling, c = o["s-ol"]; c = c.previousSibling; )
433
- if (d = c["s-nr"], d && d["s-sn"] === o["s-sn"] && l === d.parentNode && (d = d.nextSibling, !d || !d["s-nr"])) {
434
- u = d;
453
+ if (r = m[p], o = r.$nodeToRelocate$, r.$slotRefNode$) {
454
+ for (c = r.$slotRefNode$.parentNode, d = r.$slotRefNode$.nextSibling, l = o["s-ol"]; l = l.previousSibling; )
455
+ if (u = l["s-nr"], u && u["s-sn"] === o["s-sn"] && c === u.parentNode && (u = u.nextSibling, !u || !u["s-nr"])) {
456
+ d = u;
435
457
  break;
436
458
  }
437
- (!u && l !== o.parentNode || o.nextSibling !== u) && o !== u && (!o["s-hn"] && o["s-ol"] && (o["s-hn"] = o["s-ol"].parentNode.nodeName), l.insertBefore(o, u));
459
+ (!d && c !== o.parentNode || o.nextSibling !== d) && o !== d && (!o["s-hn"] && o["s-ol"] && (o["s-hn"] = o["s-ol"].parentNode.nodeName), c.insertBefore(o, d));
438
460
  } else
439
461
  o.nodeType === 1 && (o.hidden = !0);
440
462
  }
441
- H && Ee(n.$elm$), b.$flags$ &= -2, m.length = 0;
463
+ H && Be(n.$elm$), b.$flags$ &= -2, m.length = 0;
442
464
  }
443
- }, vt = (t, e) => {
444
- }, Oe = (t, e) => (t.$flags$ |= 16, vt(t, t.$ancestorComponent$), Wt(() => bt(t, e))), bt = (t, e) => {
445
- const a = t.$hostElement$, s = T("scheduleUpdate", t.$cmpMeta$.$tagName$), r = a;
465
+ }, _t = (t, e) => {
466
+ }, Ae = (t, e) => (t.$flags$ |= 16, _t(t, t.$ancestorComponent$), jt(() => $t(t, e))), $t = (t, e) => {
467
+ const a = t.$hostElement$, s = E("scheduleUpdate", t.$cmpMeta$.$tagName$), i = a;
446
468
  let n;
447
- return e ? n = I(r, "componentWillLoad") : n = I(r, "componentWillUpdate"), n = ye(n, () => I(r, "componentWillRender")), s(), ye(n, () => $t(t, r, e));
448
- }, $t = async (t, e, a) => {
449
- const s = t.$hostElement$, r = T("update", t.$cmpMeta$.$tagName$);
450
- s["s-rc"], a && ft(t);
451
- const n = T("render", t.$cmpMeta$.$tagName$);
452
- _t(t, e, s), n(), r(), mt(t);
453
- }, _t = (t, e, a) => {
469
+ return e ? n = I(i, "componentWillLoad") : n = I(i, "componentWillUpdate"), n = ve(n, () => I(i, "componentWillRender")), s(), ve(n, () => mt(t, i, e));
470
+ }, mt = async (t, e, a) => {
471
+ const s = t.$hostElement$, i = E("update", t.$cmpMeta$.$tagName$);
472
+ s["s-rc"], a && gt(t);
473
+ const n = E("render", t.$cmpMeta$.$tagName$);
474
+ wt(t, e, s), n(), i(), Dt(t);
475
+ }, wt = (t, e, a) => {
454
476
  try {
455
- ne = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (R.hasRenderFn || R.reflect) && (R.vdomRender || R.reflect) && (R.hydrateServerSide || kt(t, e));
477
+ le = e, e = e.render && e.render(), t.$flags$ &= -17, t.$flags$ |= 2, (R.hasRenderFn || R.reflect) && (R.vdomRender || R.reflect) && (R.hydrateServerSide || bt(t, e));
456
478
  } catch (o) {
457
- q(o, t.$hostElement$);
479
+ P(o, t.$hostElement$);
458
480
  }
459
- return ne = null, null;
460
- }, mt = (t) => {
461
- const e = t.$cmpMeta$.$tagName$, a = t.$hostElement$, s = T("postUpdate", e), r = a;
462
- t.$ancestorComponent$, I(r, "componentDidRender"), t.$flags$ & 64 ? (I(r, "componentDidUpdate"), s()) : (t.$flags$ |= 64, I(r, "componentDidLoad"), s());
481
+ return le = null, null;
482
+ }, Dt = (t) => {
483
+ const e = t.$cmpMeta$.$tagName$, a = t.$hostElement$, s = E("postUpdate", e), i = a;
484
+ t.$ancestorComponent$, I(i, "componentDidRender"), t.$flags$ & 64 ? (I(i, "componentDidUpdate"), s()) : (t.$flags$ |= 64, I(i, "componentDidLoad"), s());
463
485
  }, I = (t, e, a) => {
464
486
  if (t && t[e])
465
487
  try {
466
488
  return t[e](a);
467
489
  } catch (s) {
468
- q(s);
490
+ P(s);
469
491
  }
470
- }, ye = (t, e) => t && t.then ? t.then(e) : e(), wt = (t, e) => J(t).$instanceValues$.get(e), Dt = (t, e, a, s) => {
471
- const r = J(t), n = t, i = r.$instanceValues$.get(e), o = r.$flags$, c = n;
472
- a = lt(a, s.$members$[e][0]);
473
- const l = Number.isNaN(i) && Number.isNaN(a);
474
- if (a !== i && !l) {
475
- r.$instanceValues$.set(e, a);
492
+ }, ve = (t, e) => t && t.then ? t.then(e) : e(), xt = (t, e) => X(t).$instanceValues$.get(e), St = (t, e, a, s) => {
493
+ const i = X(t), n = t, r = i.$instanceValues$.get(e), o = i.$flags$, l = n;
494
+ a = ut(a, s.$members$[e][0]);
495
+ const c = Number.isNaN(r) && Number.isNaN(a);
496
+ if (a !== r && !c) {
497
+ i.$instanceValues$.set(e, a);
476
498
  {
477
499
  if (s.$watchers$ && o & 128) {
478
- const d = s.$watchers$[e];
479
- d && d.map((p) => {
500
+ const u = s.$watchers$[e];
501
+ u && u.map((p) => {
480
502
  try {
481
- c[p](a, i, e);
482
- } catch (k) {
483
- q(k, n);
503
+ l[p](a, r, e);
504
+ } catch (v) {
505
+ P(v, n);
484
506
  }
485
507
  });
486
508
  }
487
509
  if ((o & 18) === 2) {
488
- if (c.componentShouldUpdate && c.componentShouldUpdate(a, i, e) === !1)
510
+ if (l.componentShouldUpdate && l.componentShouldUpdate(a, r, e) === !1)
489
511
  return;
490
- Oe(r, !1);
512
+ Ae(i, !1);
491
513
  }
492
514
  }
493
515
  }
494
- }, xt = (t, e, a) => {
516
+ }, Ct = (t, e, a) => {
495
517
  if (e.$members$) {
496
518
  t.watchers && (e.$watchers$ = t.watchers);
497
- const s = Object.entries(e.$members$), r = t.prototype;
498
- s.map(([n, [i]]) => {
499
- (i & 31 || i & 32) && Object.defineProperty(r, n, {
519
+ const s = Object.entries(e.$members$), i = t.prototype;
520
+ s.map(([n, [r]]) => {
521
+ (r & 31 || r & 32) && Object.defineProperty(i, n, {
500
522
  get() {
501
- return wt(this, n);
523
+ return xt(this, n);
502
524
  },
503
525
  set(o) {
504
- Dt(this, n, o, e);
526
+ St(this, n, o, e);
505
527
  },
506
528
  configurable: !0,
507
529
  enumerable: !0
@@ -509,71 +531,71 @@ const h = (t, e, ...a) => {
509
531
  });
510
532
  {
511
533
  const n = /* @__PURE__ */ new Map();
512
- r.attributeChangedCallback = function(i, o, c) {
534
+ i.attributeChangedCallback = function(r, o, l) {
513
535
  b.jmp(() => {
514
- const l = n.get(i);
515
- if (this.hasOwnProperty(l))
516
- c = this[l], delete this[l];
517
- else if (r.hasOwnProperty(l) && typeof this[l] == "number" && this[l] == c)
536
+ const c = n.get(r);
537
+ if (this.hasOwnProperty(c))
538
+ l = this[c], delete this[c];
539
+ else if (i.hasOwnProperty(c) && typeof this[c] == "number" && this[c] == l)
518
540
  return;
519
- this[l] = c === null && typeof this[l] == "boolean" ? !1 : c;
541
+ this[c] = l === null && typeof this[c] == "boolean" ? !1 : l;
520
542
  });
521
543
  }, t.observedAttributes = s.filter(
522
- ([i, o]) => o[0] & 15
544
+ ([r, o]) => o[0] & 15
523
545
  /* MEMBER_FLAGS.HasAttribute */
524
- ).map(([i, o]) => {
525
- const c = o[1] || i;
526
- return n.set(c, i), o[0] & 512 && e.$attrsToReflect$.push([i, c]), c;
546
+ ).map(([r, o]) => {
547
+ const l = o[1] || r;
548
+ return n.set(l, r), o[0] & 512 && e.$attrsToReflect$.push([r, l]), l;
527
549
  });
528
550
  }
529
551
  }
530
552
  return t;
531
- }, St = async (t, e, a, s, r) => {
532
- if ((e.$flags$ & 32) === 0 && (r = t.constructor, e.$flags$ |= 32, customElements.whenDefined(a.$tagName$).then(() => e.$flags$ |= 128), r.style)) {
533
- let i = r.style;
534
- typeof i != "string" && (i = i[e.$modeName$ = ct(t)]);
535
- const o = Se(a, e.$modeName$);
553
+ }, Mt = async (t, e, a, s, i) => {
554
+ if ((e.$flags$ & 32) === 0 && (i = t.constructor, e.$flags$ |= 32, customElements.whenDefined(a.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
555
+ let r = i.style;
556
+ typeof r != "string" && (r = r[e.$modeName$ = dt(t)]);
557
+ const o = Me(a, e.$modeName$);
536
558
  if (!K.has(o)) {
537
- const c = T("registerStyles", a.$tagName$);
538
- ht(o, i, !!(a.$flags$ & 1)), c();
559
+ const l = E("registerStyles", a.$tagName$);
560
+ ft(o, r, !!(a.$flags$ & 1)), l();
539
561
  }
540
562
  }
541
- e.$ancestorComponent$, Oe(e, !0);
542
- }, Mt = (t) => {
543
- }, Ct = (t) => {
563
+ e.$ancestorComponent$, Ae(e, !0);
564
+ }, Et = (t) => {
565
+ }, Tt = (t) => {
544
566
  if ((b.$flags$ & 1) === 0) {
545
- const e = J(t), a = e.$cmpMeta$, s = T("connectedCallback", a.$tagName$);
546
- e.$flags$ & 1 ? (Ie(t, e, a.$listeners$), Mt(e.$lazyInstance$)) : (e.$flags$ |= 1, a.$flags$ & 12 && Tt(t), a.$members$ && Object.entries(a.$members$).map(([r, [n]]) => {
547
- if (n & 31 && t.hasOwnProperty(r)) {
548
- const i = t[r];
549
- delete t[r], t[r] = i;
567
+ const e = X(t), a = e.$cmpMeta$, s = E("connectedCallback", a.$tagName$);
568
+ e.$flags$ & 1 ? (Ne(t, e, a.$listeners$), Et(e.$lazyInstance$)) : (e.$flags$ |= 1, a.$flags$ & 12 && Lt(t), a.$members$ && Object.entries(a.$members$).map(([i, [n]]) => {
569
+ if (n & 31 && t.hasOwnProperty(i)) {
570
+ const r = t[i];
571
+ delete t[i], t[i] = r;
550
572
  }
551
- }), St(t, e, a)), s();
573
+ }), Mt(t, e, a)), s();
552
574
  }
553
- }, Tt = (t) => {
575
+ }, Lt = (t) => {
554
576
  const e = t["s-cr"] = w.createComment("");
555
577
  e["s-cn"] = !0, t.insertBefore(e, t.firstChild);
556
- }, Lt = (t) => {
578
+ }, Rt = (t) => {
557
579
  if ((b.$flags$ & 1) === 0) {
558
- const e = J(t);
580
+ const e = X(t);
559
581
  e.$rmListeners$ && (e.$rmListeners$.map((a) => a()), e.$rmListeners$ = void 0);
560
582
  }
561
- }, Et = (t, e) => {
583
+ }, Bt = (t, e) => {
562
584
  const a = {
563
585
  $flags$: e[0],
564
586
  $tagName$: e[1]
565
587
  };
566
588
  a.$members$ = e[2], a.$listeners$ = e[3], a.$watchers$ = t.$watchers$, a.$attrsToReflect$ = [];
567
- const s = t.prototype.connectedCallback, r = t.prototype.disconnectedCallback;
589
+ const s = t.prototype.connectedCallback, i = t.prototype.disconnectedCallback;
568
590
  return Object.assign(t.prototype, {
569
591
  __registerHost() {
570
- It(this, a);
592
+ Nt(this, a);
571
593
  },
572
594
  connectedCallback() {
573
- Ct(this), s && s.call(this);
595
+ Tt(this), s && s.call(this);
574
596
  },
575
597
  disconnectedCallback() {
576
- Lt(this), r && r.call(this);
598
+ Rt(this), i && i.call(this);
577
599
  },
578
600
  __attachShadow() {
579
601
  this.attachShadow({
@@ -581,30 +603,30 @@ const h = (t, e, ...a) => {
581
603
  delegatesFocus: !!(a.$flags$ & 16)
582
604
  });
583
605
  }
584
- }), t.is = a.$tagName$, xt(t, a);
585
- }, Ie = (t, e, a, s) => {
586
- a && a.map(([r, n, i]) => {
587
- const o = Bt(t, r), c = Rt(e, i), l = Ot(r);
588
- b.ael(o, n, c, l), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => b.rel(o, n, c, l));
606
+ }), t.is = a.$tagName$, Ct(t, a);
607
+ }, Ne = (t, e, a, s) => {
608
+ a && a.map(([i, n, r]) => {
609
+ const o = It(t, i), l = Ot(e, r), c = At(i);
610
+ b.ael(o, n, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => b.rel(o, n, l, c));
589
611
  });
590
- }, Rt = (t, e) => (a) => {
612
+ }, Ot = (t, e) => (a) => {
591
613
  try {
592
614
  R.lazyLoad || t.$hostElement$[e](a);
593
615
  } catch (s) {
594
- q(s);
616
+ P(s);
595
617
  }
596
- }, Bt = (t, e) => e & 4 ? w : e & 8 ? V : e & 16 ? w.body : t, Ot = (t) => Ft ? {
618
+ }, It = (t, e) => e & 4 ? w : e & 8 ? J : e & 16 ? w.body : t, At = (t) => Pt ? {
597
619
  passive: (t & 1) !== 0,
598
620
  capture: (t & 2) !== 0
599
- } : (t & 2) !== 0, Ae = /* @__PURE__ */ new WeakMap(), J = (t) => Ae.get(t), It = (t, e) => {
621
+ } : (t & 2) !== 0, Fe = /* @__PURE__ */ new WeakMap(), X = (t) => Fe.get(t), Nt = (t, e) => {
600
622
  const a = {
601
623
  $flags$: 0,
602
624
  $hostElement$: t,
603
625
  $cmpMeta$: e,
604
626
  $instanceValues$: /* @__PURE__ */ new Map()
605
627
  };
606
- return Ie(t, a, e.$listeners$), Ae.set(t, a);
607
- }, ge = (t, e) => e in t, q = (t, e) => (0, console.error)(t, e), K = /* @__PURE__ */ new Map(), At = [], V = typeof window < "u" ? window : {}, w = V.document || { head: {} }, Nt = V.HTMLElement || class {
628
+ return Ne(t, a, e.$listeners$), Fe.set(t, a);
629
+ }, ke = (t, e) => e in t, P = (t, e) => (0, console.error)(t, e), K = /* @__PURE__ */ new Map(), Ft = [], J = typeof window < "u" ? window : {}, w = J.document || { head: {} }, qt = J.HTMLElement || class {
608
630
  }, b = {
609
631
  $flags$: 0,
610
632
  $resourcesUrl$: "",
@@ -613,7 +635,7 @@ const h = (t, e, ...a) => {
613
635
  ael: (t, e, a, s) => t.addEventListener(e, a, s),
614
636
  rel: (t, e, a, s) => t.removeEventListener(e, a, s),
615
637
  ce: (t, e) => new CustomEvent(t, e)
616
- }, Ft = /* @__PURE__ */ (() => {
638
+ }, Pt = /* @__PURE__ */ (() => {
617
639
  let t = !1;
618
640
  try {
619
641
  w.addEventListener("e", null, Object.defineProperty({}, "passive", {
@@ -624,62 +646,62 @@ const h = (t, e, ...a) => {
624
646
  } catch {
625
647
  }
626
648
  return t;
627
- })(), Pt = (t) => Promise.resolve(t), qt = /* @__PURE__ */ (() => {
649
+ })(), Yt = (t) => Promise.resolve(t), Ut = /* @__PURE__ */ (() => {
628
650
  try {
629
651
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replaceSync == "function";
630
652
  } catch {
631
653
  }
632
654
  return !1;
633
- })(), ke = [], Ne = [], Yt = (t, e) => (a) => {
634
- t.push(a), te || (te = !0, e && b.$flags$ & 4 ? Ut(ae) : b.raf(ae));
635
- }, ve = (t) => {
655
+ })(), be = [], qe = [], Wt = (t, e) => (a) => {
656
+ t.push(a), te || (te = !0, e && b.$flags$ & 4 ? Ht(ae) : b.raf(ae));
657
+ }, _e = (t) => {
636
658
  for (let e = 0; e < t.length; e++)
637
659
  try {
638
660
  t[e](performance.now());
639
661
  } catch (a) {
640
- q(a);
662
+ P(a);
641
663
  }
642
664
  t.length = 0;
643
665
  }, ae = () => {
644
- ve(ke), ve(Ne), (te = ke.length > 0) && b.raf(ae);
645
- }, Ut = (t) => Pt().then(t), Wt = /* @__PURE__ */ Yt(Ne, !0);
666
+ _e(be), _e(qe), (te = be.length > 0) && b.raf(ae);
667
+ }, Ht = (t) => Yt().then(t), jt = /* @__PURE__ */ Wt(qe, !0);
646
668
  function U(t, e) {
647
669
  const a = new Date(t);
648
670
  return a.setDate(a.getDate() + e), a;
649
671
  }
650
- function Ht(t, e, a) {
651
- const s = [], r = G(t), n = r.getDay() === 0 ? 7 : r.getDay(), i = N(t), o = i.getDay() === 0 ? 7 : i.getDay(), c = a === 1 ? 7 : a - 1, l = [], u = [];
672
+ function zt(t, e, a) {
673
+ const s = [], i = V(t), n = i.getDay() === 0 ? 7 : i.getDay(), r = N(t), o = r.getDay() === 0 ? 7 : r.getDay(), l = a === 1 ? 7 : a - 1, c = [], d = [];
652
674
  {
653
- let k = (7 - a + n) % 7, _ = Q(r);
654
- for (; k > 0; )
655
- l.push(_), _ = Q(_), k -= 1;
656
- l.reverse();
657
- let L = (7 - o + c) % 7, E = F(i);
658
- for (; L > 0; )
659
- u.push(E), E = F(E), L -= 1;
660
- }
661
- let d = r;
662
- for (; d.getMonth() === t.getMonth(); )
663
- s.push(d), d = F(d);
664
- return [...l, ...s, ...u];
675
+ let v = (7 - a + n) % 7, $ = G(i);
676
+ for (; v > 0; )
677
+ c.push($), $ = G($), v -= 1;
678
+ c.reverse();
679
+ let T = (7 - o + l) % 7, L = F(r);
680
+ for (; T > 0; )
681
+ d.push(L), L = F(L), T -= 1;
682
+ }
683
+ let u = i;
684
+ for (; u.getMonth() === t.getMonth(); )
685
+ s.push(u), u = F(u);
686
+ return [...c, ...s, ...d];
665
687
  }
666
- function G(t) {
667
- return v(/* @__PURE__ */ new Date(`${String(Pe(t)).padStart(4, "0")}-${String(Fe(t)).padStart(2, "0")}-01`));
688
+ function V(t) {
689
+ return k(/* @__PURE__ */ new Date(`${String(Ye(t)).padStart(4, "0")}-${String(Pe(t)).padStart(2, "0")}-01`));
668
690
  }
669
- function M(t) {
691
+ function C(t) {
670
692
  if (t instanceof Date)
671
693
  return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}-${String(t.getDate()).padStart(2, "0")}`;
672
694
  }
673
695
  function N(t) {
674
- const e = G(t);
696
+ const e = V(t);
675
697
  return e.setMonth(e.getMonth() + 1), e.setDate(e.getDate() - 1), e;
676
698
  }
677
- function Fe(t) {
699
+ function Pe(t) {
678
700
  return t.getMonth() + 1;
679
701
  }
680
- function jt(t) {
702
+ function Kt(t) {
681
703
  return new Array(12).fill(void 0).map((e, a) => {
682
- const s = v(/* @__PURE__ */ new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
704
+ const s = k(/* @__PURE__ */ new Date(`2006-${String(a + 1).padStart(2, "0")}-01`));
683
705
  return Intl.DateTimeFormat(t, {
684
706
  month: "long"
685
707
  }).format(s);
@@ -692,24 +714,24 @@ function Z(t) {
692
714
  const e = new Date(t);
693
715
  return e.setDate(1), e.setMonth(e.getMonth() + 1), e;
694
716
  }
695
- function be(t) {
717
+ function $e(t) {
696
718
  const e = new Date(t);
697
719
  return e.setFullYear(e.getFullYear() + 1), e;
698
720
  }
699
- function Q(t) {
721
+ function G(t) {
700
722
  return W(t, 1);
701
723
  }
702
724
  function ee(t) {
703
725
  const e = new Date(t);
704
726
  return e.setDate(1), e.setMonth(e.getMonth() - 1), e;
705
727
  }
706
- function $e(t) {
728
+ function me(t) {
707
729
  const e = new Date(t);
708
730
  return e.setFullYear(e.getFullYear() - 1), e;
709
731
  }
710
- function zt(t, e) {
732
+ function Vt(t, e) {
711
733
  return new Array(7).fill(void 0).map((a, s) => (t + s) % 7 + 1).map((a) => {
712
- const s = v(/* @__PURE__ */ new Date(`2006-01-0${a}`));
734
+ const s = k(/* @__PURE__ */ new Date(`2006-01-0${a}`));
713
735
  return [
714
736
  Intl.DateTimeFormat(e, {
715
737
  weekday: "short"
@@ -720,10 +742,10 @@ function zt(t, e) {
720
742
  ];
721
743
  });
722
744
  }
723
- function Pe(t) {
745
+ function Ye(t) {
724
746
  return t.getFullYear();
725
747
  }
726
- function _e(t, e) {
748
+ function we(t, e) {
727
749
  if (!t || !e || !e.from || !e.to)
728
750
  return !1;
729
751
  const a = e.from < e.to ? e.from : e.to, s = e.from < e.to ? e.to : e.from;
@@ -732,7 +754,7 @@ function _e(t, e) {
732
754
  function x(t, e) {
733
755
  return !t || !e ? !1 : t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
734
756
  }
735
- function v(t) {
757
+ function k(t) {
736
758
  const e = new Date(t);
737
759
  return e.setMinutes(e.getMinutes() + e.getTimezoneOffset()), e;
738
760
  }
@@ -740,7 +762,7 @@ function W(t, e) {
740
762
  const a = new Date(t);
741
763
  return a.setDate(a.getDate() - e), a;
742
764
  }
743
- const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}", Gt = {
765
+ const Gt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}", Qt = {
744
766
  clearButton: "Clear value",
745
767
  monthSelect: "Select month",
746
768
  nextMonthButton: "Next month",
@@ -750,15 +772,15 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
750
772
  previousYearButton: "Previous year",
751
773
  todayButton: "Show today",
752
774
  yearSelect: "Select year"
753
- }, Qt = /* @__PURE__ */ Et(class extends Nt {
775
+ }, Xt = /* @__PURE__ */ Bt(class extends qt {
754
776
  constructor() {
755
- super(), this.__registerHost(), this.selectDate = de(this, "selectDate"), this.changeMonth = de(this, "changeMonth"), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.goToRangeStartOnSelect = !0, this.labels = Gt, this.locale = navigator?.language || "en-US", this.maxSearchDays = 365, this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = M(/* @__PURE__ */ new Date()), this.pendingClick = !1, this.init = () => {
756
- this.currentDate = this.startDate ? v(new Date(this.startDate)) : /* @__PURE__ */ new Date(), this.updateWeekdays(), this.handleMinDate(), this.handleMaxDate();
777
+ super(), this.__registerHost(), this.selectDate = he(this, "selectDate"), this.changeMonth = he(this, "changeMonth"), this.disabled = !1, this.disableDate = () => !1, this.elementClassName = "wc-datepicker", this.firstDayOfWeek = 0, this.goToRangeStartOnSelect = !0, this.labels = Qt, this.locale = navigator?.language || "en-US", this.maxSearchDays = 365, this.showClearButton = !1, this.showMonthStepper = !0, this.showTodayButton = !1, this.showYearStepper = !1, this.startDate = C(/* @__PURE__ */ new Date()), this.pendingClick = !1, this.init = () => {
778
+ this.currentDate = this.startDate ? k(new Date(this.startDate)) : /* @__PURE__ */ new Date(), this.updateWeekdays(), this.handleMinDate(), this.handleMaxDate();
757
779
  }, this.getAvailableDate = (t, e) => {
758
780
  let a, s = !1;
759
781
  switch (e) {
760
782
  case "previousDay":
761
- a = Q(t);
783
+ a = G(t);
762
784
  break;
763
785
  case "nextDay":
764
786
  a = F(t);
@@ -770,7 +792,7 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
770
792
  a = U(t, 7);
771
793
  break;
772
794
  case "firstOfMonth":
773
- a = G(t);
795
+ a = V(t);
774
796
  break;
775
797
  case "lastOfMonth":
776
798
  a = N(t);
@@ -782,17 +804,17 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
782
804
  a = Z(t);
783
805
  break;
784
806
  case "previousYear":
785
- a = $e(t);
807
+ a = me(t);
786
808
  break;
787
809
  case "nextYear":
788
- a = be(t);
810
+ a = $e(t);
789
811
  break;
790
812
  }
791
813
  for (; this.disableDate(a) && !s; ) {
792
814
  switch (e) {
793
815
  case "previousDay":
794
816
  case "lastOfMonth":
795
- a = Q(a);
817
+ a = G(a);
796
818
  break;
797
819
  case "nextDay":
798
820
  case "firstOfMonth":
@@ -823,7 +845,7 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
823
845
  s = a.getMonth() !== t.getMonth() + 1;
824
846
  break;
825
847
  default:
826
- s = !_e(a, {
848
+ s = !we(a, {
827
849
  from: W(t, this.maxSearchDays),
828
850
  to: U(t, this.maxSearchDays)
829
851
  });
@@ -834,11 +856,11 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
834
856
  }, this.nextMonth = () => {
835
857
  this.updateCurrentDate(Z(this.currentDate));
836
858
  }, this.nextYear = () => {
837
- this.updateCurrentDate(be(this.currentDate));
859
+ this.updateCurrentDate($e(this.currentDate));
838
860
  }, this.previousMonth = () => {
839
861
  this.updateCurrentDate(ee(this.currentDate));
840
862
  }, this.previousYear = () => {
841
- this.updateCurrentDate($e(this.currentDate));
863
+ this.updateCurrentDate(me(this.currentDate));
842
864
  }, this.showToday = () => {
843
865
  this.updateCurrentDate(/* @__PURE__ */ new Date());
844
866
  }, this.clear = () => {
@@ -850,25 +872,25 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
850
872
  const e = t.target.closest("[data-date]");
851
873
  if (!e)
852
874
  return;
853
- const a = v(new Date(e.dataset.date));
875
+ const a = k(new Date(e.dataset.date));
854
876
  this.isDateDisabled(a) || (this.updateCurrentDate(a), this.onSelectDate(a));
855
877
  }, this.onMonthSelect = (t) => {
856
- const e = +t.target.value - 1, a = this.currentDate.getDate(), s = new Date(this.currentDate.getFullYear(), e, 1), r = N(s).getDate(), n = Math.min(a, r), i = new Date(this.currentDate.getFullYear(), e, n);
857
- this.updateCurrentDate(i);
878
+ const e = +t.target.value - 1, a = this.currentDate.getDate(), s = new Date(this.currentDate.getFullYear(), e, 1), i = N(s).getDate(), n = Math.min(a, i), r = new Date(this.currentDate.getFullYear(), e, n);
879
+ this.updateCurrentDate(r);
858
880
  }, this.onYearSelect = (t) => {
859
881
  let e = +t.target.value;
860
882
  const a = t.target;
861
883
  isNaN(e) ? (e = (/* @__PURE__ */ new Date()).getFullYear(), a.value = String(e)) : e < 0 ? (e = 0, a.value = String(e)) : e > 9999 && (e = 9999, a.value = String(e));
862
- const s = this.currentDate.getDate(), r = this.currentDate.getMonth(), n = /* @__PURE__ */ new Date();
863
- n.setFullYear(e, r, 1);
864
- const i = N(n).getDate(), o = Math.min(s, i), c = /* @__PURE__ */ new Date();
865
- c.setFullYear(e, r, o), this.updateCurrentDate(c);
884
+ const s = this.currentDate.getDate(), i = this.currentDate.getMonth(), n = /* @__PURE__ */ new Date();
885
+ n.setFullYear(e, i, 1);
886
+ const r = N(n).getDate(), o = Math.min(s, r), l = /* @__PURE__ */ new Date();
887
+ l.setFullYear(e, i, o), this.updateCurrentDate(l);
866
888
  }, this.onKeyDown = (t) => {
867
889
  this.disabled || (t.code === "ArrowLeft" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousDay"), !0)) : t.code === "ArrowRight" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextDay"), !0)) : t.code === "ArrowUp" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousSameWeekDay"), !0)) : t.code === "ArrowDown" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextSameWeekDay"), !0)) : t.code === "PageUp" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "previousMonth"), !0)) : t.code === "PageDown" ? (t.preventDefault(), t.shiftKey ? this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextYear"), !0) : this.updateCurrentDate(this.getAvailableDate(this.currentDate, "nextMonth"), !0)) : t.code === "Home" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "firstOfMonth"), !0)) : t.code === "End" ? (t.preventDefault(), this.updateCurrentDate(this.getAvailableDate(this.currentDate, "lastOfMonth"), !0)) : (t.code === "Space" || t.code === "Enter") && (t.preventDefault(), this.isDateDisabled(this.currentDate) || this.onSelectDate(this.currentDate)));
868
890
  }, this.onMouseEnter = (t) => {
869
891
  if (this.disabled)
870
892
  return;
871
- const e = v(new Date(t.target.closest("td").dataset.date));
893
+ const e = k(new Date(t.target.closest("td").dataset.date));
872
894
  this.hoveredDate = e;
873
895
  }, this.onMouseLeave = () => {
874
896
  this.hoveredDate = void 0;
@@ -877,7 +899,7 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
877
899
  }, this.onFocus = (t) => {
878
900
  if (this.pendingClick)
879
901
  return;
880
- const e = v(new Date(t.target.dataset.date));
902
+ const e = k(new Date(t.target.dataset.date));
881
903
  x(e, this.currentDate) || this.updateCurrentDate(e);
882
904
  };
883
905
  }
@@ -894,28 +916,28 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
894
916
  this.value = void 0, this.selectDate.emit(void 0);
895
917
  }
896
918
  watchStartDate() {
897
- this.currentDate = this.startDate ? v(new Date(this.startDate)) : /* @__PURE__ */ new Date();
919
+ this.currentDate = this.startDate ? k(new Date(this.startDate)) : /* @__PURE__ */ new Date();
898
920
  }
899
921
  watchValue() {
900
922
  this.value && (Array.isArray(this.value) ? this.currentDate = this.value.length > 1 && !this.goToRangeStartOnSelect ? this.value[1] : this.value[0] : this.value instanceof Date && (this.currentDate = this.value));
901
923
  }
902
924
  handleMinDate() {
903
- this.minDate && this.currentDate < v(new Date(this.minDate)) && (this.currentDate = v(new Date(this.minDate)));
925
+ this.minDate && this.currentDate < k(new Date(this.minDate)) && (this.currentDate = k(new Date(this.minDate)));
904
926
  }
905
927
  handleMaxDate() {
906
- this.maxDate && this.currentDate > v(new Date(this.maxDate)) && (this.currentDate = v(new Date(this.maxDate)));
928
+ this.maxDate && this.currentDate > k(new Date(this.maxDate)) && (this.currentDate = k(new Date(this.maxDate)));
907
929
  }
908
930
  componentDidRender() {
909
931
  this.moveFocusAfterMonthChanged && (this.focusDate(this.currentDate), this.moveFocusAfterMonthChanged = !1);
910
932
  }
911
933
  updateWeekdays() {
912
- this.weekdays = zt(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
934
+ this.weekdays = Vt(this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek, this.locale);
913
935
  }
914
936
  getClassName(t) {
915
937
  return t ? `${this.elementClassName}__${t}` : this.elementClassName;
916
938
  }
917
939
  getCalendarRows() {
918
- const t = Ht(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), e = [];
940
+ const t = zt(this.currentDate, !0, this.firstDayOfWeek === 0 ? 7 : this.firstDayOfWeek), e = [];
919
941
  for (let a = 0; a < t.length; a += 7) {
920
942
  const s = t.slice(a, a + 7);
921
943
  e.push(s);
@@ -944,15 +966,15 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
944
966
  }
945
967
  focusDate(t) {
946
968
  var e;
947
- (e = this.el.querySelector(`[data-date="${M(t)}"]`)) === null || e === void 0 || e.focus();
969
+ (e = this.el.querySelector(`[data-date="${C(t)}"]`)) === null || e === void 0 || e.focus();
948
970
  }
949
971
  updateCurrentDate(t, e) {
950
972
  const a = t.getMonth(), s = t.getFullYear();
951
973
  if (s > 9999 || s < 0)
952
974
  return;
953
975
  (a !== this.currentDate.getMonth() || s !== this.currentDate.getFullYear()) && (this.changeMonth.emit({
954
- month: Fe(t),
955
- year: Pe(t),
976
+ month: Pe(t),
977
+ year: Ye(t),
956
978
  day: t.getDate()
957
979
  }), e && (this.moveFocusAfterMonthChanged = !0)), this.currentDate = t, e && this.focusDate(this.currentDate);
958
980
  }
@@ -962,12 +984,12 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
962
984
  if (this.isRangeValue(this.value)) {
963
985
  const s = ((e = this.value) === null || e === void 0 ? void 0 : e[0]) === void 0 || this.value.length === 2 ? [t] : [this.value[0], t];
964
986
  s.length === 2 && s[0] > s[1] && s.reverse();
965
- const r = s[1] === void 0 ? [M(s[0])] : [M(s[0]), M(s[1])];
966
- this.value = s, this.selectDate.emit(r);
987
+ const i = s[1] === void 0 ? [C(s[0])] : [C(s[0]), C(s[1])];
988
+ this.value = s, this.selectDate.emit(i);
967
989
  } else {
968
990
  if (((a = this.value) === null || a === void 0 ? void 0 : a.getTime()) === t.getTime())
969
991
  return;
970
- this.value = t, this.selectDate.emit(M(t));
992
+ this.value = t, this.selectDate.emit(C(t));
971
993
  }
972
994
  }
973
995
  // @ts-ignore
@@ -977,54 +999,54 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
977
999
  get isPreviousMonthDisabled() {
978
1000
  if (!this.minDate)
979
1001
  return !1;
980
- const t = ee(this.currentDate), e = v(new Date(this.minDate));
1002
+ const t = ee(this.currentDate), e = k(new Date(this.minDate));
981
1003
  return N(t) < e;
982
1004
  }
983
1005
  get isNextMonthDisabled() {
984
1006
  if (!this.maxDate)
985
1007
  return !1;
986
- const t = Z(this.currentDate), e = v(new Date(this.maxDate));
987
- return G(t) > e;
1008
+ const t = Z(this.currentDate), e = k(new Date(this.maxDate));
1009
+ return V(t) > e;
988
1010
  }
989
1011
  isDateDisabled(t) {
990
1012
  if (this.disableDate(t))
991
1013
  return !0;
992
- const e = this.minDate && t < v(new Date(this.minDate)), a = this.maxDate && t > v(new Date(this.maxDate));
1014
+ const e = this.minDate && t < k(new Date(this.minDate)), a = this.maxDate && t > k(new Date(this.maxDate));
993
1015
  return !!(e || a);
994
1016
  }
995
1017
  render() {
996
1018
  const t = this.showTodayButton || this.showClearButton;
997
- return h(xe, null, h("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
1019
+ return h(Ce, null, h("div", { "aria-disabled": String(this.disabled), "aria-label": this.labels.picker, class: {
998
1020
  [this.getClassName()]: !0,
999
1021
  [`${this.getClassName()}--disabled`]: this.disabled
1000
1022
  }, role: "group" }, h("div", { class: this.getClassName("header") }, h("span", { "aria-atomic": "true", "aria-live": "polite", class: "visually-hidden" }, this.getTitle()), this.showYearStepper && h("button", { "aria-label": this.labels.previousYearButton, class: this.getClassName("previous-year-button"), disabled: this.disabled, innerHTML: this.previousYearButtonContent || void 0, onClick: this.previousYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "11 17 6 12 11 7" }), h("polyline", { points: "18 17 13 12 18 7" }))), this.showMonthStepper && h("button", { "aria-label": this.labels.previousMonthButton, class: {
1001
1023
  [this.getClassName("previous-month-button")]: !0,
1002
1024
  [this.getClassName("next-month-button--disabled")]: this.isPreviousMonthDisabled
1003
- }, disabled: this.disabled || this.isPreviousMonthDisabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "15 18 9 12 15 6" }))), h("span", { class: this.getClassName("current-month") }, h("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, onChange: this.onMonthSelect }, jt(this.locale).map((e, a) => h("option", { key: e, selected: this.currentDate.getMonth() === a, value: a + 1 }, e))), h("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && h("button", { "aria-label": this.labels.nextMonthButton, class: {
1025
+ }, disabled: this.disabled || this.isPreviousMonthDisabled, innerHTML: this.previousMonthButtonContent || void 0, onClick: this.previousMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "15 18 9 12 15 6" }))), h("span", { class: this.getClassName("current-month") }, h("select", { title: this.labels.monthSelect, "aria-label": this.labels.monthSelect, class: this.getClassName("month-select"), disabled: this.disabled, onChange: this.onMonthSelect }, Kt(this.locale).map((e, a) => h("option", { key: e, selected: this.currentDate.getMonth() === a, value: a + 1 }, e))), h("input", { title: this.labels.yearSelect, "aria-label": this.labels.yearSelect, class: this.getClassName("year-select"), disabled: this.disabled, max: 9999, maxLength: 4, min: 1, onChange: this.onYearSelect, type: "number", value: this.currentDate.getFullYear() })), this.showMonthStepper && h("button", { "aria-label": this.labels.nextMonthButton, class: {
1004
1026
  [this.getClassName("next-month-button")]: !0,
1005
1027
  [this.getClassName("next-month-button--disabled")]: this.isNextMonthDisabled
1006
1028
  }, disabled: this.disabled || this.isNextMonthDisabled, innerHTML: this.nextMonthButtonContent || void 0, onClick: this.nextMonth, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "9 18 15 12 9 6" }))), this.showYearStepper && h("button", { "aria-label": this.labels.nextYearButton, class: this.getClassName("next-year-button"), disabled: this.disabled, innerHTML: this.nextYearButtonContent || void 0, onClick: this.nextYear, type: "button" }, h("svg", { fill: "none", height: "24", "stroke-linecap": "round", "stroke-linejoin": "round", "stroke-width": "2", stroke: "currentColor", viewBox: "0 0 24 24", width: "24" }, h("polyline", { points: "13 17 18 12 13 7" }), h("polyline", { points: "6 17 11 12 6 7" })))), h("div", { class: this.getClassName("body") }, h("table", { class: this.getClassName("calendar"), onKeyDown: this.onKeyDown, role: "grid" }, h("thead", { class: this.getClassName("calendar-header") }, h("tr", { class: this.getClassName("weekday-row") }, this.weekdays.map((e) => h("th", { "aria-label": e[1], abbr: e[1], class: this.getClassName("weekday"), key: e[0], scope: "col" }, h("span", null, e[0]))))), h("tbody", null, this.getCalendarRows().map((e) => {
1007
1029
  const a = `row-${e[0].getMonth()}-${e[0].getDate()}`;
1008
1030
  return h("tr", { class: this.getClassName("calendar-row"), key: a }, e.map((s) => {
1009
- var r, n, i, o, c;
1010
- const l = x(s, this.currentDate), u = s.getMonth() !== this.currentDate.getMonth(), d = Array.isArray(this.value) ? x(s, this.value[0]) || x(s, this.value[1]) : x(s, this.value), p = this.isRangeValue ? _e(s, {
1011
- from: (r = this.value) === null || r === void 0 ? void 0 : r[0],
1031
+ var i, n, r, o, l;
1032
+ const c = x(s, this.currentDate), d = s.getMonth() !== this.currentDate.getMonth(), u = Array.isArray(this.value) ? x(s, this.value[0]) || x(s, this.value[1]) : x(s, this.value), p = this.isRangeValue ? we(s, {
1033
+ from: (i = this.value) === null || i === void 0 ? void 0 : i[0],
1012
1034
  to: ((n = this.value) === null || n === void 0 ? void 0 : n[1]) || this.hoveredDate || this.currentDate
1013
- }) : !1, k = !((i = this.value) === null || i === void 0) && i[0] ? [
1035
+ }) : !1, v = !((r = this.value) === null || r === void 0) && r[0] ? [
1014
1036
  (o = this.value) === null || o === void 0 ? void 0 : o[0],
1015
- ((c = this.value) === null || c === void 0 ? void 0 : c[1]) || this.hoveredDate
1016
- ].sort((We, He) => We - He) : [], _ = this.range && x(k[0], s), S = this.range && x(k[1], s), L = x(s, /* @__PURE__ */ new Date()), E = this.isDateDisabled(s), qe = `cell-${s.getMonth()}-${s.getDate()}`, Ye = {
1037
+ ((l = this.value) === null || l === void 0 ? void 0 : l[1]) || this.hoveredDate
1038
+ ].sort((je, ze) => je - ze) : [], $ = this.range && x(v[0], s), S = this.range && x(v[1], s), T = x(s, /* @__PURE__ */ new Date()), L = this.isDateDisabled(s), Ue = `cell-${s.getMonth()}-${s.getDate()}`, We = {
1017
1039
  [this.getClassName("date")]: !0,
1018
- [this.getClassName("date--current")]: l,
1019
- [this.getClassName("date--disabled")]: E,
1020
- [this.getClassName("date--overflowing")]: u,
1021
- [this.getClassName("date--today")]: L,
1022
- [this.getClassName("date--selected")]: d,
1040
+ [this.getClassName("date--current")]: c,
1041
+ [this.getClassName("date--disabled")]: L,
1042
+ [this.getClassName("date--overflowing")]: d,
1043
+ [this.getClassName("date--today")]: T,
1044
+ [this.getClassName("date--selected")]: u,
1023
1045
  [this.getClassName("date--in-range")]: p,
1024
- [this.getClassName("date--start")]: _,
1046
+ [this.getClassName("date--start")]: $,
1025
1047
  [this.getClassName("date--end")]: S
1026
- }, Ue = d ? "strong" : L ? "em" : "span";
1027
- return h("td", { "aria-disabled": String(E), "aria-selected": d ? "true" : void 0, "aria-current": L ? "date" : d ? "true" : void 0, class: Ye, "data-date": M(s), key: qe, onClick: this.onClick, onMouseDown: this.onMouseDown, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: x(s, this.currentDate) && !this.disabled ? 0 : -1 }, h(Ue, { "aria-hidden": "true" }, s.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
1048
+ }, He = u ? "strong" : T ? "em" : "span";
1049
+ return h("td", { "aria-disabled": String(L), "aria-selected": u ? "true" : void 0, "aria-current": T ? "date" : u ? "true" : void 0, class: We, "data-date": C(s), key: Ue, onClick: this.onClick, onMouseDown: this.onMouseDown, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onFocus: this.onFocus, role: "gridcell", tabIndex: x(s, this.currentDate) && !this.disabled ? 0 : -1 }, h(He, { "aria-hidden": "true" }, s.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
1028
1050
  day: "numeric",
1029
1051
  month: "long",
1030
1052
  year: "numeric"
@@ -1047,7 +1069,7 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
1047
1069
  };
1048
1070
  }
1049
1071
  static get style() {
1050
- return Kt;
1072
+ return Gt;
1051
1073
  }
1052
1074
  }, [2, "wc-datepicker", {
1053
1075
  clearButtonContent: [1, "clear-button-content"],
@@ -1076,24 +1098,22 @@ const Kt = ".visually-hidden.sc-wc-datepicker{position:absolute;overflow:hidden;
1076
1098
  currentDate: [32],
1077
1099
  hoveredDate: [32],
1078
1100
  weekdays: [32]
1079
- }]), Xt = Qt;
1080
- var Jt = Object.defineProperty, y = (t, e, a, s) => {
1081
- for (var r = void 0, n = t.length - 1, i; n >= 0; n--)
1082
- (i = t[n]) && (r = i(e, a, r) || r);
1083
- return r && Jt(e, a, r), r;
1101
+ }]), Jt = Xt;
1102
+ var Zt = Object.defineProperty, y = (t, e, a, s) => {
1103
+ for (var i = void 0, n = t.length - 1, r; n >= 0; n--)
1104
+ (r = t[n]) && (i = r(e, a, i) || i);
1105
+ return i && Zt(e, a, i), i;
1084
1106
  };
1085
- customElements.get("wc-datepicker") || customElements.define("wc-datepicker", Xt);
1086
- var C;
1087
- const f = (C = class extends Ze {
1107
+ customElements.get("wc-datepicker") || customElements.define("wc-datepicker", Jt);
1108
+ var M;
1109
+ const f = (M = class extends tt {
1088
1110
  constructor() {
1089
- super(...arguments), this.id = "", this.name = "", this.width = "full", this.hideTodayButton = !1, this.hideClearButton = !1, this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.form = null, this.tooltip = "", this.type = "date", this.label = "", this.description = "", this.startDate = "", this.minDate = "", this.maxDate = "", this.inverted = !1, this.value = void 0, this.datepickerIsOpen = !1, this.DATEPICKER_GAP = 4, this._hasUserInteracted = !1, this._onKeydownEsc = (e) => {
1090
- if (e.key !== "Escape" || e.code !== "Escape" || !this.datepickerIsOpen) return;
1091
- e.preventDefault(), e.stopPropagation(), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this.removeEventListener("keydown", this._handleFocusTrap), this.shadowRoot?.querySelector("input")?.focus();
1111
+ super(...arguments), this.id = "", this.name = "", this.width = "full", this.hideTodayButton = !1, this.hideClearButton = !1, this.disabled = !1, this.required = !1, this.optional = !1, this.showError = !1, this.errorMessage = "", this.form = null, this.tooltip = "", this.type = "date", this.label = "", this.description = "", this.startDate = "", this.minDate = "", this.maxDate = "", this.inverted = !1, this.value = void 0, this.datepickerIsOpen = !1, this.DATEPICKER_GAP = 4, this._hasUserInteracted = !1, this._dirtySinceCommit = !1, this._onKeydownEsc = (e) => {
1112
+ e.key !== "Escape" || e.code !== "Escape" || this.datepickerIsOpen && (e.preventDefault(), e.stopPropagation(), this._closeCalendar(), this._focusInput());
1092
1113
  }, this._handleScrollReposition = () => {
1093
1114
  this.datepickerIsOpen && this._positionDatepicker();
1094
1115
  };
1095
1116
  }
1096
- // need this flag for "eager mode"
1097
1117
  /**
1098
1118
  * Lifecycle methods
1099
1119
  * --------------------------------------------------------------------------
@@ -1101,10 +1121,10 @@ const f = (C = class extends Ze {
1101
1121
  * NysFormControlElement (@nysds/internals).
1102
1122
  */
1103
1123
  connectedCallback() {
1104
- super.connectedCallback(), this.addEventListener("invalid", this._handleInvalid), this.addEventListener("focusout", this._handleBlur), this.addEventListener("keydown", this._onKeydownEsc);
1124
+ super.connectedCallback(), this.addEventListener("invalid", this._handleInvalid), this.addEventListener("focusin", this._handleFocus), this.addEventListener("focusout", this._handleBlur), this.addEventListener("keydown", this._onKeydownEsc);
1105
1125
  }
1106
1126
  disconnectedCallback() {
1107
- super.disconnectedCallback(), this._stopDatepickerPositioning(), this.removeEventListener("invalid", this._handleInvalid), this.removeEventListener("focusout", this._handleBlur), this.removeEventListener("keydown", this._onKeydownEsc);
1127
+ super.disconnectedCallback(), this._stopDatepickerPositioning(), this.removeEventListener("invalid", this._handleInvalid), this.removeEventListener("focusin", this._handleFocus), this.removeEventListener("focusout", this._handleBlur), this.removeEventListener("keydown", this._onKeydownEsc);
1108
1128
  }
1109
1129
  async firstUpdated() {
1110
1130
  this._setValue(this.value), !(this._shouldUseNativeDatepicker() || !await this._whenWcDatepickerReady()) && (setTimeout(() => this._replaceButtonSVG(), 0), setTimeout(() => this._addMonthDropdownIcon(), 0), setTimeout(() => this._handleDateChange(), 0), setTimeout(() => this._onDocumentClick(), 0));
@@ -1114,6 +1134,7 @@ const f = (C = class extends Ze {
1114
1134
  const a = e.get("value"), s = this.value;
1115
1135
  !s && a !== s ? (this.setFormValue(""), this._manageRequire()) : s && this._setValue(s);
1116
1136
  }
1137
+ e.has("required") && !e.has("value") && this._manageRequire();
1117
1138
  }
1118
1139
  async _whenWcDatepickerReady() {
1119
1140
  await customElements.whenDefined("wc-datepicker");
@@ -1146,8 +1167,8 @@ const f = (C = class extends Ze {
1146
1167
  String(a.getDate()).padStart(2, "0")
1147
1168
  ].join("-");
1148
1169
  this.value = a, this.setFormValue(s);
1149
- const r = this.shadowRoot?.querySelector("input");
1150
- r && (r.value = s);
1170
+ const i = this.shadowRoot?.querySelector("input");
1171
+ i && (i.value = s);
1151
1172
  const n = this.shadowRoot?.querySelector("wc-datepicker");
1152
1173
  n && (n.value = a), this._manageRequire();
1153
1174
  }
@@ -1155,8 +1176,11 @@ const f = (C = class extends Ze {
1155
1176
  _manageRequire() {
1156
1177
  const e = this.shadowRoot?.querySelector("input");
1157
1178
  if (!e) return;
1158
- const a = this.errorMessage || "This field is required.";
1159
- this.required && !this.value ? this.setValidityFromState({ valueMissing: !0 }, a, e) : this.clearValidity();
1179
+ this.required && !this.value ? (this.internalValidationMessage = "This field is required.", this.setValidityFromState(
1180
+ { valueMissing: !0 },
1181
+ this.resolvedErrorMessage(),
1182
+ e
1183
+ )) : (this.internalValidationMessage = "", this.clearValidity());
1160
1184
  }
1161
1185
  /**
1162
1186
  * Actively validates the component:
@@ -1169,7 +1193,7 @@ const f = (C = class extends Ze {
1169
1193
  if (!e) return;
1170
1194
  this._manageRequire();
1171
1195
  let a = "";
1172
- e.validity.valueMissing ? a = this.errorMessage || "This field is required." : a = e.validationMessage, this._setValidityMessage(a);
1196
+ e.validity.valueMissing ? a = "This field is required." : a = e.validationMessage, this._setValidityMessage(a);
1173
1197
  }
1174
1198
  /**
1175
1199
  * Passive check of validity:
@@ -1184,7 +1208,11 @@ const f = (C = class extends Ze {
1184
1208
  // Sets custom validity message
1185
1209
  _setValidityMessage(e = "") {
1186
1210
  const a = this.shadowRoot?.querySelector("input");
1187
- a && (!e && this.showError && this.errorMessage?.trim() || (this.showError = !!e, this.errorMessage?.trim() && e !== "" && (e = this.errorMessage), e ? this.setValidityFromState({ customError: !0 }, e, a) : this.clearValidity()));
1211
+ a && (!e && this.showError && this.errorMessage?.trim() || (this.showError = !!e, this.internalValidationMessage = e, e ? this.setValidityFromState(
1212
+ { customError: !0 },
1213
+ this.resolvedErrorMessage(),
1214
+ a
1215
+ ) : this.clearValidity()));
1188
1216
  }
1189
1217
  // Handles native 'invalid' events
1190
1218
  _handleInvalid(e) {
@@ -1193,7 +1221,7 @@ const f = (C = class extends Ze {
1193
1221
  if (a) {
1194
1222
  const s = this.internals?.form;
1195
1223
  s ? Array.from(s.elements).find(
1196
- (i) => typeof i.checkValidity == "function" && !i.checkValidity()
1224
+ (r) => typeof r.checkValidity == "function" && !r.checkValidity()
1197
1225
  ) === this && a.focus() : a.focus();
1198
1226
  }
1199
1227
  }
@@ -1228,25 +1256,25 @@ const f = (C = class extends Ze {
1228
1256
  if (a && !a.parentElement?.classList.contains("month-wrapper")) {
1229
1257
  const s = document.createElement("span");
1230
1258
  s.className = "month-wrapper", a.parentNode?.insertBefore(s, a), s.appendChild(a);
1231
- const r = document.createElement("nys-icon");
1232
- r.setAttribute("name", "chevron_down"), r.setAttribute("id", "wc-month-dropdown-icon"), r.setAttribute("size", "20"), s.appendChild(r);
1259
+ const i = document.createElement("nys-icon");
1260
+ i.setAttribute("name", "chevron_down"), i.setAttribute("id", "wc-month-dropdown-icon"), i.setAttribute("size", "20"), s.appendChild(i);
1233
1261
  }
1234
1262
  }
1235
1263
  // Creates a Date at local midnight to avoid UTC timezone shifting
1236
1264
  _parseLocalDate(e) {
1237
- const [a, s, r] = e.split("-").map(Number);
1238
- return new Date(a, s - 1, r);
1265
+ const [a, s, i] = e.split("-").map(Number);
1266
+ return new Date(a, s - 1, i);
1239
1267
  }
1240
1268
  _setTodayDate() {
1241
1269
  const e = /* @__PURE__ */ new Date();
1242
- e.setHours(0, 0, 0, 0), this._setValue(e), this._setFocusOnTodayDate();
1270
+ e.setHours(0, 0, 0, 0), this._setValue(e);
1243
1271
  }
1244
1272
  async _setFocusOnTodayDate(e = !1) {
1245
1273
  if (this.minDate) {
1246
- const i = /* @__PURE__ */ new Date();
1247
- i.setHours(0, 0, 0, 0);
1274
+ const r = /* @__PURE__ */ new Date();
1275
+ r.setHours(0, 0, 0, 0);
1248
1276
  const o = this._parseLocalDate(this.minDate);
1249
- if (i < o) return;
1277
+ if (r < o) return;
1250
1278
  }
1251
1279
  const a = /* @__PURE__ */ new Date();
1252
1280
  a.setHours(0, 0, 0, 0);
@@ -1254,9 +1282,9 @@ const f = (C = class extends Ze {
1254
1282
  a.getFullYear(),
1255
1283
  String(a.getMonth() + 1).padStart(2, "0"),
1256
1284
  String(a.getDate()).padStart(2, "0")
1257
- ].join("-"), r = this.shadowRoot?.querySelector("wc-datepicker");
1258
- if (!r) return;
1259
- const n = r.querySelector(
1285
+ ].join("-"), i = this.shadowRoot?.querySelector("wc-datepicker");
1286
+ if (!i) return;
1287
+ const n = i.querySelector(
1260
1288
  `td[data-date="${s}"]`
1261
1289
  );
1262
1290
  n && (e || n.focus());
@@ -1272,40 +1300,66 @@ const f = (C = class extends Ze {
1272
1300
  }
1273
1301
  return !1;
1274
1302
  }
1303
+ // The current value normalized to a YYYY-MM-DD string (local time, no UTC
1304
+ // shift). Empty string when no date is set. This is the shape nys-change
1305
+ // always carries, regardless of whether `value` holds a Date or a string.
1306
+ _valueAsString() {
1307
+ return this.value ? typeof this.value == "string" ? this.value : [
1308
+ this.value.getFullYear(),
1309
+ String(this.value.getMonth() + 1).padStart(2, "0"),
1310
+ String(this.value.getDate()).padStart(2, "0")
1311
+ ].join("-") : "";
1312
+ }
1275
1313
  _dispatchInputEvent() {
1276
- this.dispatchEvent(
1277
- new CustomEvent("nys-input", {
1278
- detail: { id: this.id, value: this.value },
1279
- bubbles: !0,
1280
- composed: !0
1281
- })
1282
- );
1314
+ ne(this, "nys-input", {
1315
+ id: this.id,
1316
+ name: this.name,
1317
+ value: this.value
1318
+ });
1319
+ }
1320
+ // Commit the current value: fires nys-change and clears the dirty flag so
1321
+ // a later blur doesn't re-commit the same selection.
1322
+ _dispatchChangeEvent() {
1323
+ this._dirtySinceCommit = !1, ne(this, "nys-change", {
1324
+ id: this.id,
1325
+ name: this.name,
1326
+ value: this._valueAsString()
1327
+ });
1328
+ }
1329
+ _closeCalendar() {
1330
+ this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._stopDatepickerPositioning(), this.removeEventListener("keydown", this._handleFocusTrap);
1331
+ }
1332
+ // We need to return focus to input after the calendar closes
1333
+ _focusInput() {
1334
+ this.shadowRoot?.querySelector("input")?.focus();
1283
1335
  }
1284
1336
  /**
1285
1337
  * Event Handlers
1286
1338
  * --------------------------------------------------------------------------
1287
1339
  */
1288
1340
  _handleInputKeydown(e) {
1289
- this.disabled || this._shouldUseNativeDatepicker() || ((e.key == " " || e.code == "Space") && (e.preventDefault(), this._openDatepicker()), (e.key === "Escape" || e.code === "Escape") && (e.preventDefault(), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active")));
1341
+ this.disabled || this._shouldUseNativeDatepicker() || ((e.key == " " || e.code == "Space") && (e.preventDefault(), this._openDatepicker()), (e.key === "Escape" || e.code === "Escape") && (e.preventDefault(), this._closeCalendar()), (e.key === "Enter" || e.code === "Enter") && this.datepickerIsOpen && this._closeCalendar());
1342
+ }
1343
+ // Fires nys-focus only when focus enters the component from outside;
1344
+ // internal focus moves (input <-> calendar popup) don't re-fire it.
1345
+ _handleFocus(e) {
1346
+ const a = e.relatedTarget;
1347
+ a && (this.contains(a) || this.shadowRoot?.contains(a)) || oe(this, "focus");
1290
1348
  }
1291
1349
  _handleBlur(e) {
1292
1350
  const a = e.relatedTarget;
1293
- if (a && (this.contains(a) || this.shadowRoot?.contains(a)) || this.datepickerIsOpen && !a)
1294
- return;
1295
- this._hasUserInteracted || (this._hasUserInteracted = !0), this.shadowRoot?.querySelector("wc-datepicker")?.classList.remove("active"), this.datepickerIsOpen = !1, this._validate(), this.dispatchEvent(
1296
- new Event("nys-blur", { bubbles: !0, composed: !0 })
1297
- ), this.removeEventListener("keydown", this._handleFocusTrap);
1351
+ a && (this.contains(a) || this.shadowRoot?.contains(a)) || this.datepickerIsOpen && !a || (this._hasUserInteracted || (this._hasUserInteracted = !0), this._closeCalendar(), this._validate(), this._dirtySinceCommit && this._dispatchChangeEvent(), oe(this, "blur"), this.removeEventListener("keydown", this._handleFocusTrap));
1298
1352
  }
1299
1353
  // For when users click outside of the datepicker, we remove the calendar popup
1300
1354
  _onDocumentClick() {
1301
1355
  if (this._shouldUseNativeDatepicker()) return;
1302
1356
  const e = (a) => {
1303
- const s = a.composedPath(), r = this.shadowRoot?.querySelector(
1357
+ const s = a.composedPath(), i = this.shadowRoot?.querySelector(
1304
1358
  ".nys-datepicker--input-container"
1305
1359
  ), n = this.shadowRoot?.querySelector(
1306
1360
  ".wc-datepicker--container"
1307
- ), i = this.shadowRoot?.querySelector("wc-datepicker");
1308
- r && s.includes(r) || n && s.includes(n) || i && s.includes(i) || i?.classList.remove("active");
1361
+ ), r = this.shadowRoot?.querySelector("wc-datepicker");
1362
+ i && s.includes(i) || n && s.includes(n) || r && s.includes(r) || r?.classList.remove("active");
1309
1363
  };
1310
1364
  document.addEventListener("click", e);
1311
1365
  }
@@ -1319,7 +1373,7 @@ const f = (C = class extends Ze {
1319
1373
  return;
1320
1374
  }
1321
1375
  const a = this.shadowRoot?.querySelector("wc-datepicker")?.classList.toggle("active");
1322
- this.datepickerIsOpen = !!a, a ? (this.value || this._setFocusOnTodayDate(), this._startDatepickerPositioning(), this.addEventListener("keydown", this._handleFocusTrap)) : this._stopDatepickerPositioning();
1376
+ this.datepickerIsOpen = !!a, a ? (this.value || this._setFocusOnTodayDate(), this._startDatepickerPositioning(), this.addEventListener("keydown", this._handleFocusTrap)) : (this._stopDatepickerPositioning(), this.removeEventListener("keydown", this._handleFocusTrap));
1323
1377
  }
1324
1378
  _openDatepicker() {
1325
1379
  if (this.disabled || this._shouldUseNativeDatepicker()) return;
@@ -1328,33 +1382,44 @@ const f = (C = class extends Ze {
1328
1382
  }
1329
1383
  _handleDateChange() {
1330
1384
  const e = this.shadowRoot?.querySelector("wc-datepicker");
1331
- e && e.addEventListener("selectDate", (a) => {
1332
- const s = a.detail, r = this._parseLocalDate(s);
1333
- if (this._isOutOfRange(r)) {
1385
+ e && (e.addEventListener("selectDate", (a) => {
1386
+ const s = a.detail, i = this._parseLocalDate(s);
1387
+ if (this._isOutOfRange(i)) {
1334
1388
  e.classList.add("active");
1335
1389
  return;
1336
1390
  }
1337
- this._setValue(r), this._validate(), this._dispatchInputEvent(), e.classList.remove("active"), this.datepickerIsOpen = !1, this.removeEventListener("keydown", this._handleFocusTrap);
1338
- });
1391
+ this._setValue(i), this._validate(), this._dispatchInputEvent(), this._dispatchChangeEvent(), this._closeCalendar();
1392
+ }), e.addEventListener("click", (a) => {
1393
+ const s = a.target?.closest(
1394
+ "td[data-date]"
1395
+ );
1396
+ if (!s) return;
1397
+ const i = s.getAttribute("data-date");
1398
+ if (!i) return;
1399
+ const n = this._parseLocalDate(i);
1400
+ this._isOutOfRange(n) || this._closeCalendar();
1401
+ }));
1339
1402
  }
1340
1403
  _handleTodayClick() {
1341
- this.disabled || (this._setTodayDate(), this._hasUserInteracted = !0, this._validate(), this._dispatchInputEvent());
1404
+ if (this.disabled) return;
1405
+ const e = /* @__PURE__ */ new Date();
1406
+ e.setHours(0, 0, 0, 0), !this._isOutOfRange(e) && (this._setTodayDate(), this._hasUserInteracted = !0, this._validate(), this._dispatchInputEvent(), this._dispatchChangeEvent(), this._closeCalendar());
1342
1407
  }
1343
1408
  _handleClearClick() {
1344
1409
  if (this.disabled) return;
1345
1410
  this.value = void 0, this.setFormValue("");
1346
1411
  const e = this.shadowRoot?.querySelector("input");
1347
- e && (e.value = ""), this._hasUserInteracted = !0, this._validate(), this._dispatchInputEvent();
1412
+ e && (e.value = ""), this._hasUserInteracted = !0, this._validate(), this._dispatchInputEvent(), this._dispatchChangeEvent();
1348
1413
  }
1349
1414
  _handleInputChange(e) {
1350
1415
  const a = e.target;
1351
1416
  if (!a) return;
1352
1417
  const s = this._getValidDateFromInput(a.value);
1353
1418
  if (!s) {
1354
- a.value || (this.value = void 0, this.setFormValue(""), this._hasUserInteracted && this._validate());
1419
+ a.value || (this.value !== void 0 && (this._dirtySinceCommit = !0), this.value = void 0, this.setFormValue(""), this._hasUserInteracted && this._validate());
1355
1420
  return;
1356
1421
  }
1357
- this._setValue(s), this._hasUserInteracted && this._validate(), this._dispatchInputEvent();
1422
+ a.value !== this._valueAsString() && (this._dirtySinceCommit = !0), this._setValue(s), this._hasUserInteracted && this._validate(), this._dispatchInputEvent();
1358
1423
  }
1359
1424
  _getValidDateFromInput(e) {
1360
1425
  const s = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
@@ -1362,25 +1427,31 @@ const f = (C = class extends Ze {
1362
1427
  }
1363
1428
  _handleFocusTrap(e) {
1364
1429
  if (!this.datepickerIsOpen || e.key !== "Tab") return;
1365
- const a = this.shadowRoot?.querySelector(
1366
- ".wc-datepicker--container"
1367
- );
1368
- if (!a) return;
1369
- const s = [
1430
+ const a = [
1370
1431
  "button:not([disabled])",
1371
1432
  "input:not([disabled])",
1372
1433
  "select:not([disabled])",
1373
1434
  "[tabindex]:not([tabindex='-1'])"
1374
- ], r = [];
1375
- if (a.querySelectorAll("nys-button").forEach((c) => {
1376
- r.push(c);
1377
- }), r.push(
1435
+ ], s = [], i = this.shadowRoot?.querySelector(
1436
+ ".nys-datepicker--input"
1437
+ );
1438
+ i && !i.disabled && s.push(i);
1439
+ const n = this.shadowRoot?.querySelector(
1440
+ "#calendar-button"
1441
+ );
1442
+ n && !n.disabled && s.push(n);
1443
+ const r = this.shadowRoot?.querySelector(
1444
+ ".wc-datepicker--container"
1445
+ );
1446
+ if (r && (r.querySelectorAll("nys-button").forEach((d) => {
1447
+ s.push(d);
1448
+ }), s.push(
1378
1449
  ...Array.from(
1379
- a.querySelectorAll(s.join(","))
1380
- ).filter((c) => c.offsetParent !== null)
1381
- ), r.length === 0) return;
1382
- const n = r[0], i = r[r.length - 1], o = this.shadowRoot?.activeElement;
1383
- e.shiftKey ? o === n && (e.preventDefault(), i.focus()) : o === i && (e.preventDefault(), n.focus());
1450
+ r.querySelectorAll(a.join(","))
1451
+ ).filter((d) => d.offsetParent !== null)
1452
+ )), s.length === 0) return;
1453
+ const o = s[0], l = s[s.length - 1], c = this.shadowRoot?.activeElement;
1454
+ e.shiftKey ? c === o && (e.preventDefault(), l.focus()) : c === l && (e.preventDefault(), o.focus());
1384
1455
  }
1385
1456
  _isSafari() {
1386
1457
  const e = navigator.userAgent;
@@ -1417,10 +1488,10 @@ const f = (C = class extends Ze {
1417
1488
  );
1418
1489
  if (!e || !a || !s) return;
1419
1490
  e.classList.remove("position-top"), e.style.top = "";
1420
- const r = e?.getBoundingClientRect();
1421
- if (window.innerHeight - r?.bottom < this.DATEPICKER_GAP) {
1422
- const i = a.getBoundingClientRect(), o = s.getBoundingClientRect(), c = i.top - o.top - r.height - this.DATEPICKER_GAP;
1423
- e.style.top = `${c}px`, e.classList.add("position-top");
1491
+ const i = e?.getBoundingClientRect();
1492
+ if (window.innerHeight - i?.bottom < this.DATEPICKER_GAP) {
1493
+ const r = a.getBoundingClientRect(), o = s.getBoundingClientRect(), l = r.top - o.top - i.height - this.DATEPICKER_GAP;
1494
+ e.style.top = `${l}px`, e.classList.add("position-top");
1424
1495
  }
1425
1496
  }
1426
1497
  _startDatepickerPositioning() {
@@ -1528,13 +1599,13 @@ const f = (C = class extends Ze {
1528
1599
  <nys-errormessage
1529
1600
  id=${this.id + "--error"}
1530
1601
  ?showError=${this.showError}
1531
- errorMessage=${this.internals.validationMessage || this.errorMessage}
1602
+ errorMessage=${this.resolvedErrorMessage()}
1532
1603
  ></nys-errormessage>`;
1533
1604
  }
1534
- }, C.styles = je(et), C.shadowRootOptions = {
1535
- ...me.shadowRootOptions,
1605
+ }, M.styles = Ke(at), M.shadowRootOptions = {
1606
+ ...De.shadowRootOptions,
1536
1607
  delegatesFocus: !0
1537
- }, C);
1608
+ }, M);
1538
1609
  y([
1539
1610
  g({ type: String, reflect: !0 })
1540
1611
  ], f.prototype, "id");
@@ -1602,11 +1673,11 @@ y([
1602
1673
  })
1603
1674
  ], f.prototype, "value");
1604
1675
  y([
1605
- ze()
1676
+ Ve()
1606
1677
  ], f.prototype, "datepickerIsOpen");
1607
- let Vt = f;
1608
- customElements.get("nys-datepicker") || customElements.define("nys-datepicker", Vt);
1678
+ let ea = f;
1679
+ customElements.get("nys-datepicker") || customElements.define("nys-datepicker", ea);
1609
1680
  export {
1610
- Vt as NysDatepicker
1681
+ ea as NysDatepicker
1611
1682
  };
1612
1683
  //# sourceMappingURL=nys-datepicker.js.map